regex: fix false multibyte matches in some regular expressions
[gnulib.git] / ChangeLog
1 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
2
3         regex: fix false multibyte matches in some regular expressions
4         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
5         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
6         * lib/regex_internal.c (re_string_skip_chars):
7         Fix miscomputation of remain_len that may cause incomplete
8         multi-byte character and false match.
9
10 2012-02-24  Jim Meyering  <meyering@redhat.com>
11
12         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
13         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
14         uses with "==" *before* the call, e.g., 0 == strcmp (...)
15         Remove now-unnecessary str''cmp obfuscation.
16         Suggested by Akim Demaille.
17
18 2012-02-24  Bruno Haible  <bruno@clisp.org>
19
20         streq: Rename macro.
21         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
22         * NEWS: Mention the change.
23         * lib/mbrtowc.c (mbrtowc): Update.
24         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
25         * lib/wcwidth.c (wcwidth): Update.
26         Suggested by Akim Demaille and Jim Meyering.
27
28 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
29
30         regex: fix typo in definition of MIN
31         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
32         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
33
34 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
35             Bruno Haible  <bruno@clisp.org>
36
37         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
38         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
39         entries into a stack-allocated buffer directly.
40         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
41
42 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
43             Bruno Haible  <bruno@clisp.org>
44
45         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
46
47          - There were several instances of this pattern:
48
49              for (;;) {
50                n = acl (f, GETACLCNT, 0, NULL);
51                [ allocate an array A of size N ]
52                if (acl (f, GETACL, n, a) == n)
53                  break;
54              }
55
56            This loop might never terminate if some other process is constantly
57            manipulating the file's ACL.  The loop should be rewritten to
58            terminate.
59
60          - The acl (... GETACLNT ...) call is merely an optimization; its value
61            is merely a hint as to how big to make the array.  A better
62            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
63            and just guess a reasonably-big size, growing the size and trying
64            again if it's not large enough.  This guarantees termination, and
65            saves a system call.
66
67         * lib/acl-internal.h: Include <limits.h>.
68         (MIN, SIZE_MAX): New macros.
69         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
70         a stack-allocated buffer, and use malloc if it does not fit. Don't
71         use GETACLCNT.
72         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
73
74 2012-02-19  Bruno Haible  <bruno@clisp.org>
75
76         acl: Fix endless loop on Solaris with vxfs.
77         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
78         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
79         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
80         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
81         * tests/test-sameacls.c (main)[Solaris]: Likewise.
82         Reported by Bill Jones in
83         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
84
85 2012-02-19  Bruno Haible  <bruno@clisp.org>
86
87         acl: Fix copy-acl test failure on Solaris 11 2011-11.
88         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
89         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
90         that this function returns 0 in some more cases.
91
92 2012-02-19  Bruno Haible  <bruno@clisp.org>
93
94         acl: Update doc references.
95         * doc/acl-resources.txt: Update links to Solaris documentation.
96
97 2012-02-19  Bruno Haible  <bruno@clisp.org>
98
99         Fix test failure in many locales on Solaris 11.
100         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
101         'tr' arguments.
102         * tests/test-pipe-filter-ii1.c (main): Likewise.
103         * build-aux/bootstrap (check_versions): Run 'tr' command with range
104         expressions in the C locale.
105         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
106         * m4/host-os.m4 (gl_HOST_OS): Likewise.
107
108 2012-02-19  Bruno Haible  <bruno@clisp.org>
109
110         gnulib-tool: Improve usage message.
111         * gnulib-tool (func_usage): Move doc of --help and --version to the
112         section "Operation modes".
113
114 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
115
116         README-release: make it easier to execute commands
117         * top/README-release: break commands out on to separate lines.
118
119 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
120
121         GNUmakefile: simplify detection of unconfigured trees
122         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
123         whether the tree make is being run from is already configured or
124         not.  Related simplifications.
125
126 2012-02-13  Simon Josefsson  <simon@josefsson.org>
127
128         * gnulib-tool (func_usage): Document --help and --version.
129
130 2012-02-11  Jim Meyering  <meyering@redhat.com>
131
132         bootstrap: don't exit 0 upon gnulib-tool failure
133         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
134         its exit status, not 0.
135
136 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
137
138         README-release: various improvements
139         * top/README-release: Give a command to push changes for the
140         release.  Add "distcheck" to list of other pre-release checks.
141         Fix instance of "make stable" which should be "make TYPE".
142
143 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
144
145         maint: replace FSF snail-mail addresses with URLs
146         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
147         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
148         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
149         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
150         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
151         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
152         * lib/check-version.c, lib/check-version.h, lib/config.charset:
153         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
154         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
155         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
156         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
157         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
158         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
159         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
160         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
161         * lib/glthread/thread.c, lib/glthread/thread.h:
162         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
163         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
164         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
165         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
166         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
167         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
168         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
169         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
170         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
171         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
172         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
173         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
174         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
175         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
176         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
177         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
178         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
179         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
180         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
181         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
182         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
183         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
184         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
185         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
186         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
187         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
188         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
189         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
190         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
191         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
192         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
193         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
194         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
195         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
196         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
197         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
198         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
199         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
200         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
201         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
202         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
203         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
204         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
205         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
206         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
207         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
208         * tests/test-poll.c, tests/test-quotearg-simple.c:
209         * tests/test-quotearg.c, tests/test-quotearg.h:
210         * tests/test-round-ieee.c, tests/test-round1.c:
211         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
212         * tests/test-roundl-ieee.c, tests/test-roundl.c:
213         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
214         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
215         * tests/test-strerror.c, tests/test-strerror_r.c:
216         * tests/test-strsignal.c, tests/test-strverscmp.c:
217         * tests/test-xmemdup0.c:
218         Replace FSF snail mail addresses with URLs, as per GNU coding
219         standards.  See glibc bug
220         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
221
222 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
223
224         README-release: capitalize a word and split a line
225         * top/README-release: Fix punctuation and spacing.
226
227 2012-02-08  Akim Demaille  <demaille@gostai.com>
228
229         fatal-signal: use C prototypes (with explicit void).
230         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
231         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
232
233 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
234
235         regex: spelling fix
236         * lib/regexec.c: spelling fix
237
238         regex: rely on stdint.h for SIZE_MAX
239         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
240
241 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
242
243         regex: merge glibc changes
244
245         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
246         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
247         (init_word_char): Work even if bitset words are not exactly 32 or
248         64 bits wide.  Don't assume there are no padding bits.
249         * lib/regex.c [_LIBC]: Do not include <config.h>.
250         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
251         and -Wtype-limits.
252         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
253         needless disagreement with glibc.  All uses changed.  Define it to
254         1 only if _GNU_SOURCE, to match glibc.
255         (_REG_RM_NAME): Remove; no longer needed, since the names in
256         question are now all protected by __USE_GNU.
257         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
258         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
259         * lib/regex_internal.h (MIN): New macro.
260
261         2012-01-03 Ulrich Drepper <drepper@gmail.com>
262         * lib/regcomp.c (init_word_char): Optimize regex a bit.
263
264         2011-12-30 Jakub Jelinek <jakub@redhat.com>
265         * lib/regex_internal.c (re_string_fetch_byte_case):
266         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
267         is miscompiled, and it turns out it is because of an incorrect
268         attribute on re_string_fetch_byte_case.  Unlike
269         re_string_peek_byte_case, this one is really not pure, it modifies
270         memory (increments pstr->cur_idx), and with the pure attribute GCC
271         assumed it doesn't and it cached the presumed value of
272         regexp->cur_idx in a variable across the
273          for (;; ++i)
274            {
275              if (i >= BRACKET_NAME_BUF_SIZE)
276                return REG_EBRACK;
277              if (token->type == OP_OPEN_CHAR_CLASS)
278                ch = re_string_fetch_byte_case (regexp);
279              else
280                ch = re_string_fetch_byte (regexp);
281              if (re_string_eoi(regexp))
282                return REG_EBRACK;
283              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
284                break;
285              elem->opr.name[i] = ch;
286            }
287
288         2011-11-29 Andreas Schwab <schwab@redhat.com>
289         * lib/regcomp.c (build_equiv_class):
290         Fix access after end of search string in regex matcher.
291
292         2011-11-12 Ulrich Drepper <drepper@redhat.com>
293         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
294
295         2011-10-12 Ulrich Drepper <drepper@redhat.com>
296         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
297
298         2011-10-11 Ulrich Drepper <drepper@redhat.com>
299         * lib/regcomp.c (parse_branch, parse_sub_exp):
300         More regex memory leak fixes and tests.
301         (parse_sub_exp, parse_bracket_exp):
302         Fix memory leak for some invalid regular expressions.
303
304         2011-05-28 Ulrich Drepper <drepper@gmail.com>
305         * lib/regex_internal.c, lib/regexec.c:
306         Fix unnecessary overallocation due to incomplete character.  When
307         incomplete characters are found at the end of a string the code
308         ran amok and allocated lots of memory.  Stricter limits are now in
309         place.
310
311         2011-05-20 Reuben Thomas <rrt@sc3d.org>
312         * lib/regex.h: Update documentation.
313
314         2011-05-16 Aharon Robbins <arnold@skeeve.com>
315         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
316
317         2010-05-05 Andreas Schwab <schwab@redhat.com>
318         * lib/regexec.c (find_collation_sequence_value):
319         Fix lookup of collation sequence value during regexp matching.
320
321         2010-01-22 Ulrich Drepper <drepper@redhat.com>
322         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
323
324         2008-01-16 Ulrich Drepper <drepper@redhat.com>
325         * lib/regex.h: Cleanup namespace.
326
327         2007-11-26 Ulrich Drepper <drepper@redhat.com>
328         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
329
330         2007-08-26 Ulrich Drepper <drepper@redhat.com>
331         * lib/regex_internal.h: Prevent some declarations and definitions
332         to be seen when used in tests.
333
334         2005-05-06 Ulrich Drepper <drepper@redhat.com>
335         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
336         __libc_lock_* macros if not _LIBC.
337         (struct re_dfa_t): Add lock.
338
339 2012-02-07  Eric Blake  <eblake@redhat.com>
340
341         maint.mk: also prohibit lower-case @var@
342         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
343         lower case, like @top_srcdir@.
344
345 2012-02-04  Eric Blake  <eblake@redhat.com>
346
347         canonicalize: avoid uninitialized memory use
348         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
349         random '/' left in dest.
350         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
351
352 2012-02-04  Bruno Haible  <bruno@clisp.org>
353
354         isatty: Fix test failure of ptsname_r on native Windows.
355         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
356         and don't set errno.
357         (isatty): Test first whether fd is valid. Set errno when returning 0.
358
359 2012-02-04  Bruno Haible  <bruno@clisp.org>
360
361         spawn-pipe tests: Fix a NULL program name in a diagnostic.
362         * tests/test-spawn-pipe-main.c: Include progname.h.
363         (main): Invoke set_program_name.
364         * modules/spawn-pipe-tests (Depends-on): Add progname.
365
366         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
367         * tests/test-nonblocking-socket-main.c: Include progname.h.
368         (main): Invoke set_program_name.
369         * modules/nonblocking-socket-tests (Depends-on): Add progname.
370
371         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
372         * tests/test-nonblocking-pipe-main.c: Include progname.h.
373         (main): Invoke set_program_name.
374         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
375
376 2012-02-04  Eric Blake  <eblake@redhat.com>
377
378         canonicalize-lgpl: fix // handling
379         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
380
381         canonicalize: fix // handling
382         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
383         /// to //, since only // is special.
384
385 2012-02-04  Bruno Haible  <bruno@clisp.org>
386
387         ioctl: Fix test failure on native Windows.
388         * lib/ioctl.c: Include msvc-nothrow.h.
389         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
390
391 2012-02-04  Bruno Haible  <bruno@clisp.org>
392
393         fsync: Avoid test failure on native Windows.
394         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
395         read-only.
396
397 2012-02-04  Bruno Haible  <bruno@clisp.org>
398
399         sys_select: Avoid syntax error on OpenBSD 5.0.
400         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
401         currently being included, just include the system's <sys/select.h>.
402
403 2012-02-04  Bruno Haible  <bruno@clisp.org>
404
405         sys_select: Avoid syntax error on OpenBSD 5.0.
406         * lib/sys_select.in.h: Include <signal.h> only after the include_next
407         <sys/select.h>, not before.
408         Reported by Jiri B <jirib@devio.us>.
409
410 2012-02-04  Bruno Haible  <bruno@clisp.org>
411
412         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
413         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
414         global variables.
415         * tests/test-get-rusage-data.c (main): Likewise.
416         Reported by Jim Meyering.
417
418 2012-02-04  Bruno Haible  <bruno@clisp.org>
419
420         stdioext: Fix last commit.
421         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
422
423 2012-02-03  Bruno Haible  <bruno@clisp.org>
424
425         stdioext: Add tentative support for Plan9.
426         * lib/stdio-impl.h: Include <errno.h>.
427         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
428         * lib/freadable.c (freadable): Likewise.
429         * lib/fwritable.c (fwritable): Likewise.
430         * lib/fbufmode.c (fbufmode): Likewise.
431         * lib/freading.c (freading): Likewise.
432         * lib/fwriting.c (fwriting): Likewise.
433         * lib/freadptr.c (freadptr): Likewise.
434         * lib/freadseek.c (freadptrinc): Likewise.
435         * lib/freadahead.c (freadahead): Likewise.
436         * lib/fpurge.c (fpurge): Likewise.
437         * lib/fseeko.c (rpl_fseeko): Likewise.
438         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
439         Reported by Jens Staal <staal1978@gmail.com>.
440
441 2012-02-02  Jim Meyering  <meyering@redhat.com>
442
443         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
444         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
445         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
446         not even to try to add the attribute.  Instead, add a pragma to suppress
447         the suggestion/warning.
448
449 2012-01-31  Karl Berry  <karl@gnu.org>
450
451         setstate doc: typo.
452         * doc/posix-functions/setstate.texi (setstate): { not (.
453
454 2012-01-31  Bruno Haible  <bruno@clisp.org>
455
456         popen: Make more robust on Windows.
457         * lib/popen.c: On native Windows, use the _popen based code even if
458         HAVE_POPEN is set.
459         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
460         environment variable on native Windows.
461
462 2012-01-30  Bruno Haible  <bruno@clisp.org>
463
464         pclose: Fix typo.
465         * lib/stdio.in.h (pclose): Fix typo in warning message.
466
467 2012-01-30  Bruno Haible  <bruno@clisp.org>
468
469         doc about getlogin_r, setstate.
470         * doc/posix-functions/getlogin_r.texi: List the incompatible
471         declaration problem under "not fixed by gnulib".
472         * doc/posix-functions/setstate.texi: Mention incompatible declaration
473         problem on Solaris 11 and other platforms.
474
475 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
476             Bruno Haible  <bruno@clisp.org>
477
478         poll tests: Make test more robust.
479         * tests/test-poll.c: Include macros.h.
480         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
481         return value of various I/O operations.
482         * modules/poll-tests (Files): Add tests/macros.h.
483
484 2012-01-30  Bruno Haible  <bruno@clisp.org>
485
486         sys_stat: Fix support for mingw64 and MSVC.
487         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
488         header files already do it.
489         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
490         stat itself.
491         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
492
493 2012-01-30  Bruno Haible  <bruno@clisp.org>
494
495         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
496         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
497         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
498
499 2012-01-29  Bruno Haible  <bruno@clisp.org>
500
501         quotearg: Fix test failure on MacOS X 10.5.
502         * tests/test-quotearg-simple.c: Include localcharset.h.
503         (main): If the locale encoding is not ASCII, bypass the tests of
504         locale_quoting_style and clocale_quoting_style.
505         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
506
507 2012-01-29  Jim Meyering  <meyering@redhat.com>
508
509         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
510         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
511         detect uses of canonicalize_file_name.
512
513 2012-01-28  Bruno Haible  <bruno@clisp.org>
514
515         test-framework-sh: Fix test failure with AIX 7.1 diff.
516         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
517         in column 1, like 'diff -c' does.
518         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
519         whether 'diff -u' is used. Instead, test whether the output contains
520         some '@' character.
521
522 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
523
524         strtoimax: eliminate need for stdint.h, inttypes.h checks
525         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
526         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
527         the prerequisites for a recently-introduced strtoimax test.
528         I guess this might cause strtoimax to be replaced when not
529         strictly necessary on older hosts, but this shouldn't introduce
530         any bugs and it should make Emacs 'configure' faster on typical
531         modern hosts.  Problem discovered when importing the latest gnulib
532         to an Emacs test version.
533         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
534
535 2012-01-28  Bruno Haible  <bruno@clisp.org>
536
537         sys_time: Override 'struct timeval' on some native Windows platforms.
538         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
539         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
540         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
541         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
542         needs to be overridden.
543         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
544         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
545         * tests/test-sys_select.c: Check that the tv_sec member has the same
546         size as a 'time_t'.
547         * tests/test-sys_time.c: Likewise.
548         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
549         is set, set also REPLACE_GETTIMEOFDAY.
550         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
551         convert the resulting 'struct timeval' before returning.
552         * lib/select.c: Include <sys/time.h>.
553         (select, timeval): Undefine at the right place.
554         * modules/select (Depends-on): Add sys_time.
555         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
556         some Windows platforms.
557         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
558
559 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
560
561         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
562         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
563         an integer.
564         * lib/fcntl.c (dupfd): Likewise.
565         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
566
567 2012-01-28  Bruno Haible  <bruno@clisp.org>
568
569         fcntl: Avoid compilation error on native Windows.
570         * modules/fcntl (Depends-on): Add 'close'.
571
572 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
573
574         select, poll, isatty: Avoid warnings on x86_64 mingw64.
575         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
576         pointer to an integer.
577         * lib/poll.c (IsConsoleHandle): Likewise.
578         * lib/isatty.c (IsConsoleHandle): Likewise.
579
580 2012-01-28  Jim Meyering  <meyering@redhat.com>
581
582         doc: clarify README-release
583         * top/README-release: Clarify: you should make a point to have
584         the latest stable versions of build tools in your PATH, and the
585         reference to buildreq is solely for its list of tool names, not
586         for its minimal-functional version numbers.
587         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
588
589         maint.mk: use more readable (yet functionally equivalent) quoting
590         It is common to quote a single quote in a single quoted string like
591         this:  '...'\''...'.  Unless you know the idiom, that looks like
592         gibberish, so prefer to double-quote the string when possible.
593         Then you can use a more readable, lone single quote: "...'..."
594         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
595         "don't" is more readable than the equivalent 'don'\''t'.
596         (sc_cast_of_x_alloc_return_value): Likewise.
597         (sc_cast_of_alloca_return_value): Likewise.
598         (sc_makefile_path_separator_check): Similar: use ":" in '...',
599         rather than '\'':'\''.
600
601 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
602
603         stdalign: relax _Alignof and tighten _Alignas test
604         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
605         as it was too strict: alignof must divide offsetof, but it need
606         not equal offsetof.  Inspired by Joseph S. Myers's comment
607         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
608         Conversely, tighten the _Alignas test a bit, as the resulting
609         alignment must be exactly 8.
610
611 2012-01-27  Bruno Haible  <bruno@clisp.org>
612
613         stdalign: Document the last change.
614         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
615
616 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
617
618         stdalign: check that alignof and offsetof are consistent
619         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
620         Problem reported for gnulib by Richard W.M. Jones in
621         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
622
623 2012-01-27  Jim Meyering  <meyering@redhat.com>
624
625         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
626         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
627         convert a sequence with gaps to the minimal containing range.
628         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
629         * tests/test-update-copyright.sh: Test for this.
630         The FSF confirmed it is ok to do this, assuming there is at
631         least one significant change per year in the affected range:
632         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
633
634 2012-01-26  Bruno Haible  <bruno@clisp.org>
635
636         pipe2: refine doc about thread-safety
637         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
638         multithread-safety problem.
639         * doc/glibc-functions/accept4.texi: Likewise.
640
641 2012-01-26  Bruno Haible  <bruno@clisp.org>
642
643         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
644         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
645         In the test program, include <fcntl.h>, for O_RDONLY.
646
647 2012-01-26  Eric Blake  <eblake@redhat.com>
648
649         pipe2: document lack of thread-safety in replacement
650         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
651         issue in replacement.
652         * doc/glibc-functions/accept4.texi (accept4): Likewise.
653         Based on a report by Eric Wong.
654
655 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
656             Bruno Haible  <bruno@clisp.org>
657
658         malloca: Avoid warnings on x86_64 mingw64.
659         * lib/malloca.c: Include <stdint.h>.
660         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
661         * modules/malloca (Depends-on): Add stdint.
662         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
663
664 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
665
666         obstack: remove __STDC__ conditionals
667         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
668         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
669         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
670         m4/include_next.m4 as the only gnulib-maintained places that still
671         refer to __STDC__.
672
673 2012-01-24  Bruno Haible  <bruno@clisp.org>
674
675         havelib: Modern quoting.
676         * build-aux/config.rpath: Quote 'like this', not `like this', as per
677         the recent change to the GNU coding standards.
678
679 2012-01-24  Bruno Haible  <bruno@clisp.org>
680
681         stdint: Improve support for Android.
682         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
683         Reported by Simon Josefsson <simon@josefsson.org>.
684
685 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
686
687         doc: omit trailing empty lines from INSTALL etc.
688         * doc/Makefile (INSTALL): Omit trailing empty lines.
689         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
690         omit trailing empty lines.  This simplifies the build procedure.
691
692 2012-01-23  Jim Meyering  <meyering@redhat.com>
693
694         tests: avoid spurious warnings about gl_sockets_startup
695         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
696         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
697         reporting a "statement with no effect".
698         * tests/test-accept.c (main): Mark as "(void)".
699         * tests/test-accept4.c (main): Likewise.
700         * tests/test-bind.c (main): Likewise.
701         * tests/test-connect.c (main): Likewise.
702         * tests/test-getpeername.c (main): Likewise.
703         * tests/test-getsockname.c (main): Likewise.
704         * tests/test-getsockopt.c (main): Likewise.
705         * tests/test-listen.c (main): Likewise.
706         * tests/test-recv.c (main): Likewise.
707         * tests/test-recvfrom.c (main): Likewise.
708         * tests/test-send.c (main): Likewise.
709         * tests/test-sendto.c (main): Likewise.
710         * tests/test-setsockopt.c (main): Likewise.
711         * tests/test-shutdown.c (main): Likewise.
712
713 2012-01-21  Bruno Haible  <bruno@clisp.org>
714
715         locale-fr.m4: Fix for Android.
716         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
717         failure of the test program on Bionic libc.
718
719 2012-01-21  Jim Meyering  <meyering@redhat.com>
720
721         bootstrap: fail when bootstrap_post_import_hook fails
722         Otherwise, it's far too easy to miss diagnostics emitted
723         between gnulib-tool's output and that of running configure.
724         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
725
726 2012-01-17  Jim Meyering  <meyering@redhat.com>
727
728         maint: enable sc_trailing_blank
729         * build-aux/pmccabe.css: Remove trailing blanks.
730         * doc/acl-cygwin.txt: Likewise.
731         * doc/gnu-oids.texi: Likewise
732         * cfg.mk: Enable sc_trailing_blank.
733         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
734
735 2012-01-17  Jim Meyering  <meyering@redhat.com>
736
737         maint: enable sc_prohibit_openat_without_use
738         * cfg.mk: Enable sc_prohibit_openat_without_use.
739         Exempt lib/selinux-at.c.
740
741 2012-01-17  Jim Meyering  <meyering@redhat.com>
742
743         maint: enable sc_prohibit_cloexec_without_use
744         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
745         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
746
747 2012-01-17  Jim Meyering  <meyering@redhat.com>
748
749         maint: enable sc_prohibit_intprops_without_use
750         * cfg.mk: Enable sc_prohibit_intprops_without_use
751         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
752
753 2012-01-17  Jim Meyering  <meyering@redhat.com>
754
755         maint: enable sc_prohibit_hash_pjw_without_use
756         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
757         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
758         to match any use of \<hash_pjw\>, i.e., not necessarily with a
759         following " (".
760
761 2012-01-17  Jim Meyering  <meyering@redhat.com>
762
763         maint: enable double-word-prohibiting rule
764         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
765         Exempt three files.
766
767 2012-01-17  Jim Meyering  <meyering@redhat.com>
768
769         maint: remove empty lines at EOF, but excluding modules/*
770         Apply syntax rules at home as well as abroad.  Most changes
771         were induced by running this:
772           make srcdir=. _build-aux=build-aux -f top/maint.mk \
773             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
774             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
775         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
776         Exempt modules/* and two binary files.
777         Also exempt doc/INSTALL*, per request from Bruno Haible.
778         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
779         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
780         * doc/Copyright/request-assign.future: Likewise.
781         * doc/Copyright/request-disclaim.changes: Likewise.
782         * doc/INSTALL: Likewise.
783         * doc/INSTALL.ISO: Likewise.
784         * doc/INSTALL.UTF-8: Likewise.
785         * doc/acl-cygwin.txt: Likewise.
786         * doc/acl-resources.txt: Likewise.
787         * doc/fdl-1.2.texi: Likewise.
788         * doc/fdl-1.3.texi: Likewise.
789         * doc/fdl.texi: Likewise.
790         * lib/argp-pin.c: Likewise.
791         * lib/round.c: Likewise.
792         * lib/unicase/u16-totitle.c: Likewise.
793         * lib/unictype/block_test.c: Likewise.
794         * lib/uninorm/canonical-decomposition.c: Likewise.
795         * m4/README: Likewise.
796         * m4/relocatable-lib.m4: Likewise.
797         * tests/test-isnand-nolibm.c: Likewise.
798         * tests/test-isnand.c: Likewise.
799         * tests/uninorm/NormalizationTest.txt: Likewise.
800
801 2012-01-17  Jim Meyering  <meyering@redhat.com>
802
803         maint: add framework to run syntax-check rules against gnulib sources
804         * cfg.mk: New file, to disable all currently-failing tests.
805         We'll enable them one by one, as they are made to pass.
806         * Makefile (sc_maint): New rule.
807
808 2012-01-21  Bruno Haible  <bruno@clisp.org>
809
810         stdint: Add support for Android.
811         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
812         include the system's <stdint.h>.
813         Reported by Simon Josefsson <simon@josefsson.org>.
814
815 2012-01-19  Jim Meyering  <meyering@redhat.com>
816
817         bootstrap: add bootstrap_post_import_hook
818         Bison does still need something like the gnulib_mk_hook whose
819         invocation I had to remove along with slurp in commit 767ccd40.
820         Technically, we could get along without it, but doing so would
821         have required living with a warning and a mandatory post-bootstrap
822         automake rerun.
823         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
824         (bootstrap_post_import_hook): New function.
825         Invoke it after gnulib-tool --import and before autoreconf.
826
827 2012-01-18  Jim Meyering  <meyering@redhat.com>
828
829         gitlog-to-changelog: don't use "no_"-prefixed variable name
830         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
831         to enable both --cluster and --no-cluster.  Change variable name,
832         s/\$no_cluster/$cluster/, and reverse usage to match.
833
834         gitlog-to-changelog: use "||", not "or" in expressions
835         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
836         expressions.
837
838 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
839
840         gitlog-to-changelog: new option --no-cluster
841         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
842         clustering of adjacent commit messages.
843
844 2012-01-17  Jim Meyering  <meyering@redhat.com>
845
846         maint: spell file systems with two words, not one
847         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
848         two words, not one.
849
850 2012-01-16  Jim Meyering  <meyering@redhat.com>
851
852         bootstrap: add a FIXME comment to ensure we eventually remove the hack
853         * build-aux/bootstrap (gnulib_tool_options): Add comment.
854
855 2012-01-16  Eric Blake  <eblake@redhat.com>
856
857         bootstrap: cater to autoconf 2.59
858         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
859         is not available.
860
861         bootstrap: properly check for libtool
862         * build-aux/bootstrap (libtoolize): Also run libtool when older
863         usage is detected.
864
865 2012-01-15  Bruno Haible  <bruno@clisp.org>
866
867         Improve support for MSVC 9.
868         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
869         clashes on MSVC.
870         * lib/fcntl.in.h: Likewise.
871         * lib/stdlib.in.h: Likewise.
872         * lib/sys_stat.in.h: Likewise.
873
874 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
875
876         gnupload: we hold the master copy of this script now
877         For motivation and more information, see:
878         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
879         * build-aux/gnupload: Make it clear in the heading comments that the
880         master copy of this file is maintained by gnulib.  Since we are at
881         it, bump its copyright year and ...
882         ($scriptversion): ... the date in its version.
883         ($usage): Patches and bug reports should be sent to the gnulib list,
884         not the automake one.
885         * config/srclist.txt: Don't try to sync 'gnupload' from automake
886         anymore.
887
888 2012-01-15  Bruno Haible  <bruno@clisp.org>
889
890         Fix module 'random'.
891         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
892         initstate, setstate are declared.
893
894 2012-01-14  Bruno Haible  <bruno@clisp.org>
895
896         Tests for module 'random'.
897         * modules/random-tests: New file.
898         * tests/test-random.c: New file, based on tests/test-random_r.c.
899
900         New module 'random'.
901         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
902         declarations.
903         * lib/random.c: New file, based on glibc/stdlib/random.c.
904         * m4/random.m4: New file.
905         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
906         HAVE_RANDOM.
907         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
908         * modules/random: New file.
909         * config/srclist.txt: Add an entry for random.c.
910         * doc/posix-functions/random.texi: Mention the 'random' module.
911         * doc/posix-functions/initstate.texi: Likewise.
912         * doc/posix-functions/setstate.texi: Likewise.
913         * doc/posix-functions/srandom.texi: Likewise.
914
915 2012-01-12  Bruno Haible  <bruno@clisp.org>
916
917         random_r: Use common idioms.
918         * lib/random_r.c: Include <stdlib.h> first.
919
920         random_r: Override incompatible API on AIX, OSF/1.
921         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
922         Override the system function if REPLACE_RANDOM_R is 1.
923         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
924         and OSF/1, set REPLACE_RANDOM_R.
925         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
926         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
927         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
928         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
929         * doc/glibc-functions/random_r.texi: Likewise.
930         * doc/glibc-functions/setstate_r.texi: Likewise.
931
932         random_r: Support for MSVC 9.
933         * lib/random_r.c: Include stdint.h, not inttypes.h.
934
935 2012-01-12  Eric Blake  <eblake@redhat.com>
936
937         inet_ntop: guard extra work by IF_LINT
938         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
939         better code generation when not checking for warnings.
940         Suggested by Paul Eggert and Jim Meyering.
941
942         strptime: fix regression on mingw
943         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
944         Fix regression.  Reported by Bruno Haible.
945
946 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
947             Bruno Haible  <bruno@clisp.org>
948
949         copy-file: add error-code-returning variant.
950         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
951         (qcopy_file_preserving): New declaration.
952         * lib/copy-file.c (qcopy_file_preserving): Renamed from
953         copy_file_preserving. Change return type to 'int'. Don't emit an error
954         message here.
955         (copy_file_preserving): New function.
956         * tests/test-copy-file.c: Include <stdlib.h>.
957         (main): Test qcopy_file_preserving if the environment variable
958         NO_STDERR_OUTPUT is set.
959         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
960         with NO_STDERR_OUTPUT
961         * tests/test-copy-file-2.sh: Likewise.
962
963 2012-01-10  Bruno Haible  <bruno@clisp.org>
964
965         copy-file: Use 'quote' module consistently.
966         * lib/copy-file.c (copy_file_preserving): Use quote().
967
968         copy-file: Refactor.
969         * lib/copy-file.c: Include quote.h.
970         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
971         message here.
972         * modules/copy-file (Depends-on): Add quote.
973
974         acl: Export qcopy_acl.
975         * lib/acl.h (qcopy_acl): New declaration.
976         * lib/copy-acl.c (qcopy_acl): Make non-static.
977
978         acl: Rename a local variable.
979         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
980
981         acl: Align return values of copy_acl and qcopy_acl.
982         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
983         maybe < -1.
984
985 2012-01-11  Eric Blake  <eblake@redhat.com>
986
987         strptime: silence gcc warnings
988         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
989         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
990         Reported by Daniel P. Berrange.
991
992         inet_ntop: silence gcc warning
993         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
994         Reported by Daniel P. Berrange.
995
996 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
997
998         getloadavg test: skip the test on GNU/Linux without /proc mounted
999         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
1000         file.  When /proc is not mounted, it always fails with ENOENT.
1001         * tests/test-getloadavg.c (main): Treat ENOENT return code from
1002         getloadavg(3) the same way as ENOSYS and ENOTSUP.
1003
1004 2012-01-10  Bruno Haible  <bruno@clisp.org>
1005
1006         regex: Avoid link error on MSVC 9.
1007         * modules/regex (Depends-on): Add wctype.
1008
1009 2012-01-10  Bruno Haible  <bruno@clisp.org>
1010
1011         doc: Mention --with-tests option.
1012         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
1013         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
1014         --with-tests.
1015         Reported by Reuben Thomas.
1016
1017 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
1018
1019         users.txt: order package names lexicographically.
1020         * users.txt: Order package names lexicographically.
1021
1022 2012-01-10  Jim Meyering  <meyering@redhat.com>
1023
1024         maint.mk: fix description in comment
1025         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
1026
1027         ignore-value: remove deprecated ignore_ptr function
1028         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
1029         * NEWS: Note this.
1030
1031 2012-01-09  Jim Meyering  <meyering@redhat.com>
1032
1033         test-init.sh: avoid a subshell
1034         * tests/test-init.sh: Remove protective subshell.
1035         Suggested by Bernhard Voelker.  While a subshell is normally
1036         required to protect against older shells (Solaris, FreeBSD) that
1037         warn about a missing program before performing redirection, the
1038         shell-selection tests performed by init.sh probably exclude any
1039         offending shell.
1040
1041 2012-01-08  Bruno Haible  <bruno@clisp.org>
1042
1043         setlocale tests: Avoid test failure on Solaris 11 2011-11.
1044         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
1045         variable.
1046
1047 2012-01-08  Bruno Haible  <bruno@clisp.org>
1048
1049         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
1050         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1051         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
1052         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
1053         macro.
1054         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
1055         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
1056         * lib/spawn_faction_addopen.c: Add workaround implementation if
1057         HAVE_WORKING_POSIX_SPAWN.
1058         * modules/spawn (Makefile): Substitute
1059         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
1060         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
1061         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
1062         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
1063         (Depends-on): Update conditions.
1064         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
1065         the Solaris 11 bug.
1066
1067 2012-01-08  Bruno Haible  <bruno@clisp.org>
1068
1069         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
1070         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1071         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
1072         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
1073         macro.
1074         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
1075         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
1076         * lib/spawn_faction_adddup2.c: Add workaround implementation if
1077         HAVE_WORKING_POSIX_SPAWN.
1078         * modules/spawn (Makefile): Substitute
1079         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
1080         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
1081         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
1082         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
1083         (Depends-on): Update conditions.
1084         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
1085         the Solaris 11 bug.
1086
1087 2012-01-08  Bruno Haible  <bruno@clisp.org>
1088
1089         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
1090         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
1091         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
1092         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
1093         HAVE_WORKING_POSIX_SPAWN.
1094         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
1095         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
1096         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
1097         * lib/spawn_faction_addclose.c: Add workaround implementation if
1098         HAVE_WORKING_POSIX_SPAWN.
1099         * modules/spawn (Makefile): Substitute
1100         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
1101         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
1102         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
1103         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
1104         (Depends-on): Update conditions.
1105         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
1106         the Solaris 11 bug.
1107
1108 2012-01-08  Bruno Haible  <bruno@clisp.org>
1109
1110         doc: Update for Solaris 11 2011-11.
1111         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
1112         * m4/printf.m4: Update comments.
1113
1114 2012-01-08  Bruno Haible  <bruno@clisp.org>
1115
1116         mktime: Avoid compilation error on Solaris 11.
1117         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
1118
1119 2012-01-08  Bruno Haible  <bruno@clisp.org>
1120
1121         doc: Small fix.
1122         * doc/posix-headers/nl_types.texi: Correct platforms list.
1123
1124 2012-01-08  Simon Josefsson  <simon@josefsson.org>
1125
1126         Add lgpl-3.0 module.
1127         * MODULES.html.sh (Support for building documentation): Add
1128         lgpl-3.0.
1129         * modules/lgpl-3.0: New file.
1130
1131 2012-01-08  Jim Meyering  <meyering@redhat.com>
1132
1133         select.c: indent with spaces, not TABs
1134         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
1135
1136 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1137
1138         quotearg: do not use grave accent for left quote
1139         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
1140         locale_quoting_style.
1141         (quotearg_buffer_restyled): Fix example.
1142         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
1143
1144 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1145
1146         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
1147         Most programs do not have translation catalogs for English and much
1148         less separate catalogs for British and American English.  Drop the
1149         suggestion to translators about these two, and provide it
1150         automatically for Unicode locales.  Like most programs, even those
1151         using American English, we use single quotation marks.  This conflicts
1152         with the American typographic convention, but works better when you
1153         cite the entire error message within double quotes.  It also tries not
1154         to clash with established practice and with what non-gnulib programs
1155         will usually do.
1156         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
1157         using an UTF-8 or GB-18030 locale.  The list of other locales with
1158         quotes was provided by Bruno Haible.
1159         (quotearg_buffer_restyled): Adjust instructions to translators.
1160         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
1161         text, since this would be wrong when using Unicode.
1162         * modules/quotearg: Depend on c-strcaseeq.
1163
1164 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
1165
1166         quotearg: fix Wikipedia link
1167         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
1168
1169 2012-01-07  Simon Josefsson  <simon@josefsson.org>
1170
1171         Fix for mingw with MSVC9.
1172         * m4/ld-version-script.m4: Check that compiler rejects version
1173         scripts with syntax errors.  Reported by Bruno Haible
1174         <bruno@clisp.org>.
1175
1176 2012-01-06  Bruno Haible  <bruno@clisp.org>
1177
1178         Talk about "native Windows API", not "Woe32".
1179         * lib/accept4.c: Update comments to mention native Windows.
1180         * lib/execute.c: Likewise.
1181         * lib/fatal-signal.c: Likewise.
1182         * lib/localcharset.c: Likewise.
1183         * lib/nanosleep.c: Likewise.
1184         * lib/nl_langinfo.c: Likewise.
1185         * lib/pclose.c: Likewise.
1186         * lib/pipe-filter-gi.c: Likewise.
1187         * lib/pipe-filter-ii.c: Likewise.
1188         * lib/pipe.c: Likewise.
1189         * lib/pipe2.c: Likewise.
1190         * lib/popen.c: Likewise.
1191         * lib/progreloc.c: Likewise.
1192         * lib/relocatable.c: Likewise.
1193         * lib/sigaction.c: Likewise.
1194         * lib/sigprocmask.c: Likewise.
1195         * lib/spawn-pipe.h: Likewise.
1196         * lib/spawn-pipe.c: Likewise.
1197         * lib/spawni.c: Likewise.
1198         * lib/stat-time.h: Likewise.
1199         * lib/w32spawn.h: Likewise.
1200         * tests/test-isatty.c: Likewise.
1201         * lib/config.charset: More comments.
1202         * doc/gnulib-intro.texi: Mention native Windows.
1203         * doc/posix-functions/_Exit_C99.texi: Likewise.
1204         * doc/posix-headers/fcntl.texi: Likewise.
1205
1206 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
1207
1208         argp: Avoid crash if translator uses % characters in a translation.
1209         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
1210         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
1211
1212 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
1213
1214         doc: C11 and C++11 are now official
1215         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
1216         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
1217         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
1218         * modules/stdalign:
1219         Replace references to draft C1X to C11, and to draft C++0X to C++11.
1220
1221 2012-01-06  Bruno Haible  <bruno@clisp.org>
1222
1223         uc-is-grapheme-break tests: Tweak.
1224         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
1225         message.
1226
1227 2012-01-06  Bruno Haible  <bruno@clisp.org>
1228
1229         test-init.sh: correct the test for diff -u
1230         * tests/test-init.sh: Also redirect stdout to /dev/null.
1231
1232 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
1233
1234         Use ', not `, for quoting output.
1235         * build-aux/announce-gen (usage, sizes, print_news_deltas)
1236         (print_changelog_deltas, get_tool_versions, main program):
1237         * build-aux/git-version-gen:
1238         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
1239         * build-aux/move-if-change (help):
1240         * build-aux/useless-if-before-free (usage, main program):
1241         * check-module (parse_module_file, usage)
1242         (find_included_lib_files, check_module):
1243         * lib/argmatch.c (main) [TEST]:
1244         * lib/argp-help.c (_help):
1245         * lib/getopt1.c (main) [TEST]:
1246         * lib/git-merge-changelog.c (usage):
1247         * lib/xstrtol-error.c (xstrtol_error):
1248         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
1249         * m4/argz.m4 (gl_FUNC_ARGZ):
1250         * m4/bison.m4 (gl_BISON):
1251         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
1252         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
1253         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
1254         * m4/fpending.m4 (gl_PREREQ_FPENDING):
1255         * m4/gc-random.m4 (gl_GC_RANDOM):
1256         * m4/intl.m4 (gt_CHECK_DECL):
1257         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
1258         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
1259         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
1260         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
1261         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
1262         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
1263         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
1264         * tests/test-dirname.c (main):
1265         * tests/test-getpass.c (main):
1266         * tests/test-iconvme.c (main):
1267         * tests/test-parse-datetime.c (LOG):
1268         * tests/test-xstrtoimax.sh:
1269         * tests/test-xstrtol.sh:
1270         * tests/test-xstrtoll.sh:
1271         * tests/test-xstrtoumax.sh:
1272         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
1273         * top/GNUmakefile (abort-due-to-no-makefile):
1274         Quote 'like this', not `like this', as per the recent change to
1275         the GNU coding standards.
1276
1277 2012-01-05  Bruno Haible  <bruno@clisp.org>
1278
1279         strtoimax: Don't force a replacement on systems where intmax_t is int.
1280         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
1281         'intmax_t' is not larger than 'int'.
1282         Reported by Pádraig Brady <P@draigBrady.com>.
1283
1284 2012-01-05  Bruno Haible  <bruno@clisp.org>
1285
1286         doc: Mention NetBSD bugs.
1287         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
1288         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
1289
1290 2012-01-05  Bruno Haible  <bruno@clisp.org>
1291
1292         strtoumax tests: Enhance tests.
1293         * tests/test-strtoumax.c (main): Add tests for large values.
1294
1295 2012-01-05  Bruno Haible  <bruno@clisp.org>
1296
1297         strtoimax: Work around AIX 5.1 bug.
1298         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
1299         definition.
1300         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
1301         Set HAVE_STRTOIMAX.
1302         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
1303         REPLACE_STRTOIMAX.
1304         * modules/inttypes-incomplete (Makefile.am): Substitute
1305         REPLACE_STRTOIMAX.
1306         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
1307         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
1308         (Depends-on): Update conditions.
1309         * tests/test-strtoimax.c (main): Add tests for large values.
1310         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
1311
1312 2012-01-05  Bruno Haible  <bruno@clisp.org>
1313
1314         inttypes: Modernize.
1315         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
1316         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
1317         (Makefile.am): Update inttypes.h rule.
1318
1319 2012-01-05  Jim Meyering  <meyering@redhat.com>
1320
1321         init.sh: don't waste a subshell just to redirect stderr
1322         * tests/init.sh: In testing for diff -u and diff -c, use a
1323         stderr-redirecting exec inside `...` rather than a subshell.
1324
1325         test-init.sh: avoid failure on HP-UX 11.00
1326         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
1327         resolves to diff -c or cmp.  Reported by Bruno Haible.
1328
1329 2012-01-05  Bruno Haible  <bruno@clisp.org>
1330
1331         Tests for module 'strtoull'.
1332         * modules/strtoull-tests: New file.
1333         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
1334
1335 2012-01-05  Bruno Haible  <bruno@clisp.org>
1336
1337         Tests for module 'strtoll'.
1338         * modules/strtoll-tests: New file.
1339         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
1340
1341 2012-01-05  Bruno Haible  <bruno@clisp.org>
1342
1343         Tests for module 'strtoul'.
1344         * modules/strtoul-tests: New file.
1345         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
1346
1347 2012-01-05  Bruno Haible  <bruno@clisp.org>
1348
1349         Tests for module 'strtol'.
1350         * modules/strtol-tests: New file.
1351         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
1352
1353 2012-01-04  Jim Meyering  <meyering@redhat.com>
1354
1355         test-init.sh: accommodate Solaris 5.10's different diff -u output
1356         * tests/test-init.sh: Also exempt @@ lines from the comparison
1357         of diff output, since Solaris 5.10 and GNU diff formats differ.
1358         Reported by Stefano Lattarini.
1359
1360 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
1361
1362         test-posixtm: don't assume signed integer wraparound
1363         * tests/test-posixtm.c (main): Don't assume wraparound semantics
1364         after signed integer overflow.  Inspired by (though it may not
1365         fix) Bruno Haible's bug report in
1366         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
1367
1368         Spell out "Windows 9x" and "Windows XP".
1369         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
1370         "Windows 9x" and "WinXP" with "Windows XP".
1371
1372 2012-01-04  Jim Meyering  <meyering@redhat.com>
1373
1374         test-vc-list-files-cvs.sh: remove obsolete comment
1375         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
1376         double exit.  Now that's all encapsulated via skip_ and Exit.
1377
1378 2012-01-04  Bruno Haible  <bruno@clisp.org>
1379
1380         Talk about "native Windows API", not "Win32".
1381         * lib/classpath.c: Update comments to mention native Windows.
1382         * lib/csharpexec.c: Likewise.
1383         * lib/dup2.c: Likewise.
1384         * lib/error.c: Likewise.
1385         * lib/fcntl.c: Likewise.
1386         * lib/filename.h: Likewise.
1387         * lib/findprog.c: Likewise.
1388         * lib/get-rusage-as.c: Likewise.
1389         * lib/get-rusage-data.c: Likewise.
1390         * lib/getpagesize.c: Likewise.
1391         * lib/javaexec.c: Likewise.
1392         * lib/msvc-inval.c: Likewise.
1393         * lib/msvc-nothrow.c: Likewise.
1394         * lib/nanosleep.c: Likewise.
1395         * lib/nonblocking.c: Likewise.
1396         * lib/printf-parse.c: Likewise.
1397         * lib/setlocale.c: Likewise.
1398         * lib/sigaction.c: Likewise.
1399         * lib/strerror_r.c: Likewise.
1400         * lib/tmpdir.c: Likewise.
1401         * lib/vasnprintf.c: Likewise.
1402         * lib/w32spawn.h: Likewise.
1403         * lib/waitpid.c: Likewise.
1404         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
1405         * m4/locale-ar.m4: Likewise.
1406         * m4/locale-fr.m4: Likewise.
1407         * m4/locale-ja.m4: Likewise.
1408         * m4/locale-tr.m4: Likewise.
1409         * m4/locale-zh.m4: Likewise.
1410         * m4/printf.m4: Likewise.
1411         * tests/test-cloexec.c: Likewise.
1412         * tests/test-copy-acl.sh: Likewise.
1413         * tests/test-copy-file.sh: Likewise.
1414         * tests/test-file-has-acl.sh: Likewise.
1415         * tests/test-set-mode-acl.sh: Likewise.
1416         * tests/test-dup-safer.c: Likewise.
1417         * tests/test-dup2.c: Likewise.
1418         * tests/test-dup3.c: Likewise.
1419         * tests/test-fcntl.c: Likewise.
1420         * tests/test-nonblocking-pipe.h: Likewise.
1421         * tests/test-nonblocking-socket.h: Likewise.
1422         * tests/test-pipe.c: Likewise.
1423         * tests/test-pipe2.c: Likewise.
1424         * tests/test-spawn-pipe-child.c: Likewise.
1425         * doc/acl-resources.txt: Likewise.
1426         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1427         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
1428         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
1429         * lib/localcharset.c: Update comments to mention native Windows.
1430         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1431         * lib/localename.c: Likewise.
1432         * lib/progreloc.c: Likewise.
1433         * lib/relocatable.c: Likewise.
1434         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
1435         (windows_compute_revents): Renamed from win32_compute_revents.
1436         (windows_compute_revents_socket): Renamed from
1437         win32_compute_revents_socket.
1438         * lib/select.c: Update comments to mention native Windows.
1439         (windows_poll_handle): Renamed from win32_poll_handle.
1440         * m4/threadlib.m4: Update comments to mention native Windows.
1441         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
1442         --enable-threads=windows instead of --enable-threads=win32. Set
1443         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
1444         * lib/glthread/lock.h: Update comments to mention native Windows.
1445         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
1446         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
1447         USE_WIN32_THREADS.
1448         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
1449         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
1450         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
1451         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
1452         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
1453         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
1454         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
1455         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
1456         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
1457         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
1458         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
1459         * tests/test-tls.c: Likewise.
1460         Rationale:
1461         Microsoft renamed the "Win32 API" to "Windows API", as it is available
1462         on both 32-bit and 64-bit Windows systems.
1463         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
1464         line of distinction is between "native Windows" on one side and Unix/
1465         POSIX systems on the other side. More details in
1466         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
1467         Suggested by Paul Eggert.
1468
1469 2012-01-03  Bruno Haible  <bruno@clisp.org>
1470
1471         isatty: Support for MSVC 9.
1472         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
1473         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
1474         (_isatty_nothrow): New function.
1475         (isatty): Use it instead of _isatty.
1476         (IsConsoleHandle): Add comment, from Paolo Bonzini.
1477         * lib/poll.c (IsConsoleHandle): Likewise.
1478         * lib/select.c (IsConsoleHandle): Likewise.
1479         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
1480         (gl_PREREQ_ISATTY): New macro.
1481         * modules/isatty (Depends-on): Add msvc-inval.
1482         (configure.ac): Invoke gl_PREREQ_ISATTY.
1483
1484 2012-01-03  Jim Meyering  <meyering@redhat.com>
1485
1486         maint.mk: remove temporary transition aid from over 1.5 years ago
1487         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
1488         purpose was to aid in the transition (avoiding silent malfunction)
1489         from that old name to the new _sc_search_regexp.  This shim was
1490         added by commit 219c504b.
1491
1492         init.sh: do not try to accommodate compare arguments starting with "-"
1493         * tests/init.sh (compare_dev_null_): Do not try to accommodate
1494         compare arguments that start with "-".  Besides, we do not worry
1495         about this when invoking diff or cmp; why start now with sed?
1496         Using "--" to separate options from argument would trigger sed
1497         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
1498         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
1499
1500 2012-01-02  Bruno Haible  <bruno@clisp.org>
1501
1502         Enhance tests for module 'isatty'.
1503         * modules/isatty-tests (Depends-on): Add pipe-posix.
1504         * tests/test-isatty.c: Include <fcntl.h>.
1505         (DEV_NULL): New macro.
1506         (main): Test the resut of isatty() also on regular files, pipes, and
1507         /dev/null.
1508
1509         New module 'isatty'.
1510         * lib/unistd.in.h (isatty): New declaration.
1511         * lib/isatty.c: New file, based on an idea of
1512         Bastien Roucariès <roucaries.bastien@gmail.com>.
1513         * m4/isatty.m4: New file.
1514         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
1515         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
1516         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
1517         REPLACE_ISATTY.
1518         * modules/isatty: New file.
1519         * doc/posix-functions/isatty.texi: Mention the new module.
1520         Suggested by Paolo Bonzini.
1521
1522 2012-01-02  Bruno Haible  <bruno@clisp.org>
1523
1524         canonicalize: Tweak 2011-12-29 commit.
1525         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
1526         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
1527
1528 2012-01-02  Jim Meyering  <meyering@redhat.com>
1529
1530         gitlog-to-changelog: describe input syntax in --help output
1531         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
1532
1533         gitlog-to-changelog: fix typo in --help: show backslash before email @
1534         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
1535         in sources, but not in actual output.
1536
1537 2011-12-30  Jim Meyering  <meyering@redhat.com>
1538
1539         gitlog-to-changelog: don't malfunction when name contains %-directive
1540         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
1541         in a name string cause trouble.  E.g., with a user name of "%s",
1542         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
1543
1544 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
1545
1546         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
1547         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
1548         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
1549         the "  (tiny change)" notation that is appended to the standard
1550         ChangeLog "date  name  email" header line.
1551
1552 2012-01-01  Jim Meyering  <meyering@redhat.com>
1553
1554         test-framework-sh: init.sh: fix "make dist" failure
1555         When using gnulib-tool's --with-tests option and any module that
1556         depends on test-framework-sh, "make dist" would fail due to the
1557         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
1558         in the gltests directory, and not in the gllib/ directory.
1559         One way to work around that is to move the EXTRA_DIST += init.sh
1560         from the primary module to the -tests one:
1561         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
1562         * modules/test-framework-sh (Makefile.am): ...not here.
1563         Reported by Tom G. Christensen in
1564         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
1565
1566         version-etc: update copyright year reported by --version
1567         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
1568
1569 2011-12-31  Pádraig Brady  <P@draigBrady.com>
1570
1571         canonicalize: only stat() if required
1572         * lib/canonicalize.c (canonicalize_filename_mode):
1573         Avoid calling l?stat() when both CAN_MISSING,
1574         and CAN_NOLINKS are set, as we neither need
1575         to resolve symlinks or test component existence.
1576
1577 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
1578
1579         doc: cover st_ino issues once; add OpenVMS etc.
1580         * doc/posix-functions/stat.texi (stat):
1581         * doc/posix-functions/lstat.texi (lstat):
1582         * doc/posix-functions/fstatat.texi (fstatat):
1583         * doc/posix-functions/fstat.texi (fstat):
1584         Move general 'struct stat' stuff to sys_stat.texi,
1585         leaving behind a pointer.
1586         * doc/posix-headers/sys_stat.texi (sys/stat.h):
1587         Merge duplicate info about 'struct stat' problems into here.
1588         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
1589         and suggest partial workarounds.
1590
1591         same-inode: port to OpenVMS
1592         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
1593         three st_ino values.
1594
1595 2011-12-30  Pádraig Brady  <P@draigBrady.com>
1596
1597         canonicalize: fix references to stat() and lstat()
1598         * lib/canonicalize.c (canonicalize_filename_mode):
1599         Ensure references always resolve to a replacement
1600         function if required (even via a macro).
1601
1602 2011-12-30  Jim Meyering  <meyering@redhat.com>
1603
1604         gitlog-to-changelog: remove a little duplication
1605         * build-aux/gitlog-to-changelog (main): Grep @lines once,
1606         rather than twice.
1607
1608 2011-12-29  Pádraig Brady  <P@draigBrady.com>
1609
1610         canonicalize: add support for not resolving symlinks
1611         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
1612         indicate we don't want to follow symlinks.  Also
1613         provide CAN_MODE_MASK to aid setting these existing
1614         mutually exclusive values.
1615         * lib/canonicalize.c (canonicalize_filename_mode):
1616         Extract the flags from can_mode parameter, which
1617         are currently just used to select between stat()
1618         and lstat().  Also ensure that mutually exclusive
1619         values are flagged immediately as invalid.
1620         * tests/test-canonicalize.c: Verify symlinks are
1621         not followed, and that invalid flag combinations
1622         are diagnosed.
1623
1624 2011-12-25  Jim Meyering  <meyering@redhat.com>
1625
1626         gitlog-to-changelog: do not clump multi-paragraph entries
1627         Identical header lines (date,name,email+coauthors) are suppressed,
1628         thus putting all entries with those same characteristics under
1629         a single header.  However, when a log entry consists of two or
1630         more paragraphs, it may not be clear where it starts and ends.
1631         This change makes it so that such an entry is always separated
1632         from others by a header line, even when that header would
1633         otherwise be suppressed.
1634         * build-aux/gitlog-to-changelog: Implement the above.
1635         Inspired by a related request from Stefano Lattarini in
1636         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
1637
1638 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
1639
1640         announce-gen: fix `cmd' typo in diagnostic
1641         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
1642         diagnostic: a missing '$' meant that the command was not output.
1643
1644 2011-12-23  Jim Meyering  <meyering@redhat.com>
1645
1646         test-framework-sh: distribute init.sh
1647         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
1648         Otherwise, "make -C gnulib-tests check" (at least in grep) would
1649         fail due to the lack of init.sh.
1650
1651         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
1652         * modules/atexit-tests: Rather than listing tests/init.sh,
1653         now that there's a module for it, simply depend on that new module.
1654         * modules/closein-tests: Likewise.
1655         * modules/exclude-tests: Likewise.
1656         * modules/getcwd-tests: Likewise.
1657         * modules/perror-tests: Likewise.
1658         * modules/pread-tests: Likewise.
1659         * modules/pwrite-tests: Likewise.
1660         * modules/vc-list-files-tests: Likewise.
1661         * modules/verify-tests: Likewise.
1662         * modules/xalloc-die-tests: Likewise.
1663         * modules/xstrtoimax-tests: Likewise.
1664         * modules/xstrtol-tests: Likewise.
1665         * modules/xstrtoll-tests: Likewise.
1666         * modules/xstrtoumax-tests: Likewise.
1667         * modules/yesno-tests: Likewise.
1668
1669 2011-12-22  Jim Meyering  <meyering@redhat.com>
1670
1671         test-framework-sh: add minimal tests of init.sh's compare function
1672         * modules/test-framework-sh-tests: New file.
1673         * tests/test-init.sh: New file.
1674
1675         test-framework-sh: new module
1676         * modules/test-framework-sh: New file.
1677         * MODULES.html.sh (Support for maintaining and releasing projects):
1678         List it.
1679
1680         init.sh: do not emit simulated diff output to stderr
1681         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
1682
1683 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
1684
1685         .gitignore: ignore gnulib.dvi and regex.info
1686         * doc/.gitignore:add gnulib.dvi and regex.info
1687
1688 2011-12-22  Jim Meyering  <meyering@redhat.com>
1689
1690         init.sh: correct previous change
1691         * tests/init.sh (compare): My previous change was wrong.
1692         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
1693
1694         init.sh: avoid unwarranted test failure when using "set -e"
1695         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
1696         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
1697         a use like "compare exp out" would get evoke an unconditional failure.
1698
1699 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
1700
1701         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
1702         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
1703         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
1704         autoreconf that did not.
1705         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
1706         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
1707
1708 2011-12-17  Jim Meyering  <meyering@redhat.com>
1709
1710         bootstrap: remove some now-unneeded code
1711         This script arose back when gnulib-tool was young.
1712         Since then, it has seen improvements that render much of this
1713         script unnecessary.  In particular, it can now make symlinks
1714         to the files it uses.  Also, I no longer see as much value in
1715         marking files as read-only via comments.
1716         If you relied on the symlink-creation feature of the preceding
1717         version of this script, you can get most of that functionality
1718         by adding the --symlink option to the definition of
1719         gnulib_tool_option_extras in your bootstrap.conf file.
1720         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
1721         Run autopoint and libtoolize *before* gnulib-tool.
1722         After it, run an abbreviated autoreconf, rather than a loop around
1723         all tools.
1724         (slirp, bt_mark_as_generated): Remove functions.
1725
1726 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1727
1728         ftoastr: fix typo
1729         * lib/ftoastr.h: Fix misspelling in comment.
1730
1731 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
1732
1733         * top/README-release: fix punctuation.
1734
1735 2011-12-17  Jim Meyering  <meyering@redhat.com>
1736
1737         bootstrap: correct the recent buildreq change
1738         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
1739         had no effect.
1740         * build-aux/bootstrap (buildreq): Bracket each search term with
1741         "*...*", so that the shell "case" statement works as intended.
1742         Add comments.
1743
1744 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
1745
1746         build: let bootstrap resort to wget when downloading .po files
1747         * build-aux/bootstrap (download_po_files): Fallback to wget when
1748         downloading the .po files via rsync fails.  This is necessary to
1749         bootstrap from behind a strict firewall.
1750
1751 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
1752
1753         stdint: don't assume C++11 when compiling with g++
1754         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
1755         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
1756         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
1757         work also in C++ before C++11, as that improperly inhibits
1758         generating a substitute stdint.h for that case.
1759
1760 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
1761
1762         alloca: protect comment from gnulib-tool
1763         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
1764         that gnulib-tool doesn't think it's a license, and munge it to
1765         say "GCC version 3".
1766
1767 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
1768
1769         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
1770         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
1771         $(abs_top_builddir) instead of $(top_builddir).
1772
1773 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
1774
1775         strftime-tests: also test nanoseconds
1776         * tests/test-strftime.c (T): Add a test of %N.
1777
1778 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
1779
1780         inttypes, stdint: add C++11 support
1781         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
1782         when including inttypes.h and stdint.h.  Support this change to
1783         the standard.
1784         * doc/posix-headers/inttypes.texi (inttypes.h):
1785         * doc/posix-headers/stdint.texi (stdint.h): Document this.
1786         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
1787         Define if not defined already, for the benefit of pre-C++11 hosts.
1788         Define the standard format macros (e.g., PRId8) always.
1789         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
1790         Likewise, if __cpluspus.  Define the standard constant and limit
1791         macros (e.g., INT8_C, INT8_MAX) always.
1792         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
1793         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
1794         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
1795         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
1796         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
1797         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
1798         Likewise.
1799
1800 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
1801
1802         nonblocking tests: Fix test failure on Linux/PPC.
1803         Suggested by Prerna Saxena in
1804         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
1805         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
1806         Set to 1100000.
1807
1808 2011-12-12  Jim Meyering  <meyering@redhat.com>
1809
1810         argmatch: don't hard-code `' when listing valid option arguments
1811         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
1812         use the quote function to add quotes.  Use fputs rather than
1813         fprintf for the format string with no format directive.
1814
1815 2011-12-07  Eric Blake  <eblake@redhat.com>
1816
1817         bootstrap: detect tools required by gnulib-tool
1818         * build-aux/bootstrap (buildreq): Provide minimum implicit
1819         dependencies.
1820         * DEPENDENCIES: Mention patch as a prereq.
1821
1822 2011-12-04  Bruno Haible  <bruno@clisp.org>
1823
1824         sethostname: Port to Windows platforms.
1825         * lib/sethostname.c: Provide an alternate implementation for Windows
1826         platforms.
1827         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
1828         (main): Skip the test if sethostname() fails with EPERM. On Windows
1829         platforms, don't check the result of gethostname().
1830
1831 2011-12-04  Bruno Haible  <bruno@clisp.org>
1832             Jim Meyering  <meyering@redhat.com>
1833
1834         tests: Avoid spurious error message on platforms without mktemp program.
1835         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
1836
1837 2011-12-04  Bruno Haible  <bruno@clisp.org>
1838
1839         sethostname: Fix documentation.
1840         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
1841         "not fixed" section.
1842
1843 2011-12-03  Bruno Haible  <bruno@clisp.org>
1844
1845         gnulib-tool: Verify that the License field is present and non-empty.
1846         * gnulib-tool (func_get_license_raw): New function, extracted from
1847         func_get_license.
1848         (func_get_license): Use it. Warn if the module is not a test module and
1849         has no license.
1850         Suggested by Jim Meyering.
1851
1852 2011-12-03  Bruno Haible  <bruno@clisp.org>
1853
1854         sethostname tests: Fix link error on mingw.
1855         * tests/test-sethostname1.c: New file, extracted from
1856         tests/test-sethostname.c.
1857         * tests/test-sethostname2.c: New file, extracted from
1858         tests/test-sethostname.c.
1859         * tests/test-sethostname.c: Remove file.
1860         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
1861         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
1862         (Depends-on): Add gethostname.
1863         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
1864         Link the latter with $(GETHOSTNAME_LIB).
1865
1866         sethostname tests: Fix compilation error on mingw.
1867         * tests/test-sethostname.c: Don't include <sys/types.h>.
1868         (geteuid): Use a dummy value without uid_t.
1869         * modules/sethostname-tests (Depends-on): Remove sys_types.
1870
1871         sethostname tests: Avoid a gcc warning.
1872         * tests/test-sethostname.c (main): Remove an unused variable.
1873
1874         Tweak last commit.
1875         * modules/sethostname-tests (Files): Sort by decreasing importance.
1876         (configure.ac): Check for geteuid.
1877         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
1878         the test when there's nothing to test. Drop an unnecessary cast.
1879         Improve an error message. Verify that the final sethostname() call
1880         succeeds.
1881
1882 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1883
1884         Add a test suite for the sethostname module.
1885         * modules/sethostname-tests: New file.  A test program
1886         for the sethostname module.
1887         * tests/test-sethostname.c: Likewise.
1888
1889 2011-12-03  Bruno Haible  <bruno@clisp.org>
1890
1891         Tweak last commit.
1892         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
1893         Fix preprocessor directives indentation. Fix typos.
1894         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
1895         * modules/unistd (Makefile): Likewise.
1896
1897 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1898
1899         Integrate the sethostname module into unistd.
1900         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
1901         into the unistd.h header.
1902         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
1903         preprocessor directives.
1904         * modules/unistd: Setup the Makefile substitutions of the
1905         SETHOSTNAME preprocessor directives.
1906
1907 2011-12-03  Bruno Haible  <bruno@clisp.org>
1908
1909         Tweak last commit.
1910         * lib/sethostname.c: Don't include <string.h>.
1911         (sethostname): No need to copy the argument string to the stack. Don't
1912         call clearerr. Preserve errno when fprintf failed.
1913         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
1914         Don't invoke AC_REPLACE_FUNCS.
1915         * modules/sethostname (Link): Remove empty section.
1916         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
1917         failure problem.
1918
1919 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1920
1921         New module 'sethostname'.
1922         * lib/sethostname.c (sethostname): New file.  Provide sethostname
1923         for systems that lack it.
1924         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
1925         sethostname declaration and function.
1926         * modules/sethostname: New file.  Define the sethostname module.
1927
1928 2011-12-03  Bruno Haible  <bruno@clisp.org>
1929
1930         Tweak last commit.
1931         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
1932
1933 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
1934
1935         Split the HOST_NAME_MAX detection into a separate m4 macro.
1936         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
1937         macro so it can be used by the pending sethostname module.
1938
1939 2011-12-03  Bruno Haible  <bruno@clisp.org>
1940
1941         Fix module descriptions syntax.
1942         * modules/argv-iter (License): Fix syntax.
1943         * modules/di-set (License): Likewise.
1944         * modules/ino-map (License): Likewise.
1945         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
1946
1947 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
1948
1949         stdalign: port to Clang 3.0
1950         Problem reported by Simon Josefsson in
1951         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
1952         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
1953         which has <stdalign.h> but which does not define alignof.
1954         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
1955
1956 2011-12-01  Eric Blake  <eblake@redhat.com>
1957
1958         mktempd: silence dd usage
1959         * build-aux/mktempd (rand_bytes): Silence dd.
1960
1961 2011-11-30  Simon Josefsson  <simon@josefsson.org>
1962
1963         manywarnings: Don't mention gcc version in docstring.
1964         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
1965         Jim Meyering <meyering@redhat.com>.
1966
1967 2011-11-30  Jim Meyering  <meyering@redhat.com>
1968
1969         hash: mark a few floating point constants with "f" suffix
1970         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
1971         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
1972         floating point constants with "f", since they're destined to be
1973         saved/used as "float"s.
1974
1975 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
1976
1977         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
1978         * tests/test-float.c (test_long_double): Correct and re-enable the
1979         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
1980
1981 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
1982
1983         Avoid subtracting two pointers that don't point into the same block.
1984         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
1985         only pointers into the same memory block are subtracted. We cannot
1986         assume that sizeof (ptrdiff_t) == sizeof (void *).
1987
1988 2011-11-29  Eric Blake  <eblake@redhat.com>
1989
1990         maint.mk: add syntax check for use of compare from init.sh
1991         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
1992         moved here from coreutils.
1993
1994         manywarnings: drop -Wunsuffixed-float-constants
1995         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
1996         '1.0D', which is the only way to silence this warning for 'double'.
1997
1998 2011-11-29  Jim Meyering  <meyering@redhat.com>
1999
2000         hash: mark compute_bucket_size with the pure attribute
2001         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
2002
2003         quotearg, propername: correct pragma guard expression
2004         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
2005         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
2006
2007 2011-11-28  Jim Meyering  <meyering@redhat.com>
2008
2009         propername: do not mark proper_name with the const attribute
2010         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
2011         since it examines data pointed to by its parameter.
2012         * lib/propername.c (proper_name): Instead, add a pragma to suppress
2013         the suggestion from -Wsuggest-attribute=const.
2014
2015         propername: mark one more function as const
2016         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
2017
2018 2011-11-27  Jim Meyering  <meyering@redhat.com>
2019
2020         mark functions with const and pure attributes
2021
2022         Mark functions per suggestions from gcc-4.6 when using these options:
2023         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
2024         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
2025         Follow these guidelines: when possible, apply the attribute to
2026         an extern declaration, not to its definition.  Apply it to the
2027         definition only when the definition is static.
2028         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
2029         * lib/argv-iter.h (argv_iter_n_args): Likewise.
2030         * lib/base64.h (isbase64): Likewise.
2031         * lib/basename-lgpl.c (last_component, base_len): Likewise.
2032         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
2033         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
2034         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
2035         (c_tolower, c_toupper): Likewise.
2036         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
2037         * lib/chdir-long.c (find_non_slash): Likewise.
2038         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
2039         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
2040         * lib/file-type.h (file_type): Likewise.
2041         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
2042         * lib/filevercmp.c (verrevcmp): Likewise.
2043         * lib/freadahead.h (freadahead): Likewise.
2044         * lib/fts.c (fts_maxarglen): Likewise.
2045         * lib/hash-pjw.h (hash_pjw): Likewise.
2046         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
2047         * lib/hash.c (is_prime, next_prime): Likewise.
2048         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
2049         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
2050         (hash_table_ok, hash_get_first, hash_string): Likewise.
2051         (compute_bucket_size): Likewise.
2052         * lib/i-ring.h (i_ring_empty): Likewise.
2053         * lib/isnan.c (isnanl): Likewise.
2054         * lib/math.h (isnanl, rpl_isnanl): Likewise.
2055         * lib/memcasecmp.h (memcasecmp): Likewise.
2056         * lib/memchr2.h (memchr2): Likewise.
2057         * lib/memcmp2.h (memcmp2): Likewise.
2058         * lib/parse-datetime.y (lookup_zone): Likewise.
2059         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
2060         [!WINDOWS_SOCKETS]: Likewise.
2061         * lib/strnlen1.h (strnlen1): Likewise.
2062         * lib/uniwidth.in.h (uc_width): Likewise.
2063         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
2064         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
2065         (quoting_options_from_style): Add a comment.
2066         * lib/propername.h (proper_name): Add a comment.
2067
2068 2011-11-27  Bruno Haible  <bruno@clisp.org>
2069
2070         Remove unused macros from !_LIBC code in glibc-borrowed files.
2071         * lib/fnmatch.c (STRCOLL): Remove macro.
2072         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
2073         * lib/glob.c (__stat, __readdir64): Remove macros.
2074         * lib/tempname.c (__open64, __xstat64): Remove macros.
2075         Suggested by Paul Eggert.
2076
2077 2011-11-27  Bruno Haible  <bruno@clisp.org>
2078
2079         getcwd: Fix link error on MSVC 9.
2080         * modules/getcwd (Depends-on): Add readdir, rewinddir.
2081
2082 2011-11-27  Bruno Haible  <bruno@clisp.org>
2083
2084         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
2085         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
2086         HAVE_OPENDIR is 0.
2087         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
2088         HAVE_CLOSEDIR is 0.
2089         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
2090         is 0.
2091         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
2092
2093 2011-11-27  Bruno Haible  <bruno@clisp.org>
2094
2095         getcwd: Fix bug from 2011-08-17.
2096         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
2097         platforms that need it.
2098         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
2099         code of 4 to be a failure, not a success. This ensures that
2100         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
2101
2102 2011-11-27  Bruno Haible  <bruno@clisp.org>
2103
2104         binary-io tests: Avoid test failure on mingw when libtool is used.
2105         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
2106         Don't verify the size of t-bin-out1.tmp here.
2107         * tests/test-binary-io.sh: Verify it here.
2108         Reported by Simon Josefsson.
2109
2110 2011-11-26  Bruno Haible  <bruno@clisp.org>
2111
2112         Fix conflict between two instantiations of module 'unistd'.
2113         * gnulib-tool (func_emit_autoconf_snippet): Substitute
2114         ${include_guard_prefix} also in the autoconf snippet.
2115         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
2116         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
2117         GNULIB_UNISTD_H_GETOPT.
2118         * modules/getopt-posix (configure.ac): Set the
2119         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
2120         * modules/getopt-gnu (configure.ac): Likewise.
2121         * modules/unistd (Makefile.am): Change the substitution value of
2122         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
2123         Reported by Simon Josefsson.
2124
2125 2011-11-25  Bruno Haible  <bruno@clisp.org>
2126
2127         pagealign_alloc: Doc and comments.
2128         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
2129         module.
2130         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
2131
2132 2011-11-25  Jim Meyering  <meyering@redhat.com>
2133
2134         test-update-copyright.sh: avoid false-positive failure
2135         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
2136         around false positive failure on Cygwin/Windows.  The latter was
2137         matching erroneously-created files with names like
2138         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
2139
2140 2011-11-25  Simon Josefsson  <simon@josefsson.org>
2141
2142         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
2143         * m4/valgrind-tests.m4: Check that the parameters that will be
2144         used works, not just a subset of them.  Reported by Bruno Haible
2145         <bruno@clisp.org>.
2146
2147 2011-11-24  Jim Meyering  <meyering@redhat.com>
2148
2149         test-stdalign.c: comment out long double tests
2150         * tests/test-stdalign.c: Don't try to reduce alignment of long double
2151         variables.  That provokes errors like this from gcc-4.7.0 20111124:
2152         error: '_Alignas' specifiers cannot reduce alignment of \
2153         'static_longdouble_alignas'.
2154
2155 2011-11-22  Jim Meyering  <meyering@redhat.com>
2156
2157         init.sh: make "compare /dev/null FILE" output more readable
2158         * tests/init.sh (compare_): Document the preferred order of arguments.
2159         (emit_diff_u_header_): New function.
2160         (compare_dev_null_): Emit a simulated diff, rather than just the
2161         contents of the unexpected file.  Suggestion from Bruno Haible.
2162
2163 2011-11-21  Jim Meyering  <meyering@redhat.com>
2164             Eric Blake  <eblake@redhat.com>
2165
2166         init.sh: work around OSF/1 5.1's mishandling of /dev/null
2167         * tests/init.sh: Make our compare function slightly more portable.
2168         Reported by Bruno Haible in
2169         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
2170
2171 2011-11-21  Simon Josefsson  <simon@josefsson.org>
2172
2173         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
2174         before using it, in code that ends up in config.h.
2175
2176 2011-11-20  Bruno Haible  <bruno@clisp.org>
2177
2178         getcwd: Work around getcwd bug on AIX 5..7.
2179         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
2180         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
2181         Use a different value for gl_cv_func_getcwd_path_max. Move the
2182         definition of HAVE_PARTLY_WORKING_GETCWD from here...
2183         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
2184         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
2185         Define HAVE_MINIMALLY_WORKING_GETCWD.
2186         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
2187         where it is not even minimally working, that is, on AIX.
2188         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
2189         m4/getcwd-path-max.m4.
2190         (main): Update exit code computation.
2191         * doc/posix-functions/getcwd.texi: Mention list of platforms where
2192         getcwd does not handle long file names.
2193
2194 2011-11-20  Bruno Haible  <bruno@clisp.org>
2195
2196         getcwd: Fix bug from 2009-09-10.
2197         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
2198         like "no".
2199
2200 2011-11-20  Simon Josefsson  <simon@josefsson.org>
2201
2202         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
2203
2204 2011-11-20  Bruno Haible  <bruno@clisp.org>
2205
2206         fma tests: Avoid shadowing local variables.
2207         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
2208         expected.
2209
2210 2011-11-20  Bruno Haible  <bruno@clisp.org>
2211
2212         copysignf tests: Fix.
2213         * tests/test-copysignf.c: Fix signature check.
2214
2215 2011-11-20  Bruno Haible  <bruno@clisp.org>
2216
2217         fma: Remove unused code.
2218         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
2219         unused macros.
2220
2221 2011-11-20  Bruno Haible  <bruno@clisp.org>
2222
2223         sethostname: Fix doc about AIX.
2224         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
2225         sethostname; it has it.
2226
2227         sethostname: Mention more portability problems.
2228         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
2229         problem.
2230         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
2231
2232 2011-11-19  Bruno Haible  <bruno@clisp.org>
2233
2234         Depend on module fcntl-h when AT_FDCWD is used.
2235         * modules/utimens (Depends-on): Add fcntl-h.
2236         * modules/areadlinkat (Depends-on): Likewise.
2237         * modules/areadlinkat-with-size (Depends-on): Likewise.
2238         * modules/faccessat (Depends-on): Likewise.
2239         * modules/fchmodat (Depends-on): Likewise.
2240         * modules/fchownat (Depends-on): Likewise.
2241         * modules/getcwd (Depends-on): Likewise.
2242         * modules/mkdirat (Depends-on): Likewise.
2243         * modules/mkfifoat (Depends-on): Likewise.
2244         * modules/readlinkat (Depends-on): Likewise.
2245         * modules/symlinkat (Depends-on): Likewise.
2246         * modules/dup2-tests (Depends-on): Likewise.
2247         * modules/fdutimensat-tests (Depends-on): Likewise.
2248         * modules/futimens-tests (Depends-on): Likewise.
2249
2250 2011-11-19  Bruno Haible  <bruno@clisp.org>
2251
2252         euidaccess: Update a comment.
2253         * lib/euidaccess.c: Update comment about platforms with faccessat.
2254
2255 2011-11-19  Bruno Haible  <bruno@clisp.org>
2256
2257         openat: Fix file list.
2258         * modules/openat (Files): Remove lib/at-func.c.
2259
2260 2011-11-19  Bruno Haible  <bruno@clisp.org>
2261
2262         fstatat: Simplify.
2263         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
2264         gnulib should define rpl_fstatat, there is a
2265         "#define fstatat rpl_fstatat" in <sys/stat.h>.
2266
2267 2011-11-19  Bruno Haible  <bruno@clisp.org>
2268
2269         Ensure 'inline' can be used in tests/test-utimens-common.h.
2270         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
2271         * modules/futimens-tests (configure.ac): Likewise.
2272         * modules/utimens-tests (configure.ac): Likewise.
2273         * modules/utimensat-tests (configure.ac): Likewise.
2274
2275 2011-11-19  Simon Josefsson  <simon@josefsson.org>
2276
2277         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
2278         not hash_insert0.
2279         (hash_insert_if_absent): Doc fix.
2280
2281 2011-11-19  Simon Josefsson  <simon@josefsson.org>
2282
2283         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
2284
2285 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
2286
2287         test-getcwd: disambiguate exit status
2288         * tests/test-getcwd.c (test_long_name): Return 0..7.
2289         (main): Exit with an unambiguous exit status.  The old
2290         code yielded a mysterious mixture of two failure codes.
2291
2292         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
2293         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
2294         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
2295         rpl_fstatat or fstatat.  This should fix the other problem
2296         reported by Kai Habel in
2297         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
2298         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
2299         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
2300         and I reproduced it on a Solaris 8 host we still have in production.
2301
2302 2011-11-18  Jim Meyering  <meyering@redhat.com>
2303
2304         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
2305         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
2306         Add a sentence to the comment.
2307         (hash_insert0): New function that simply calls hash_insert_if_absent.
2308         * lib/hash.h (hash_insert_if_absent): Declare it.
2309         (hash_insert0): Add deprecation attribute.
2310         (_GL_ATTRIBUTE_DEPRECATED): Define.
2311         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
2312         not hash_insert0.
2313         * NEWS: Mention it, even though it's not really an incompatible change.
2314
2315 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
2316
2317         openat: avoid compilation failure due to lack of <errno.h> inclusion
2318         * lib/openat.c: Include <errno.h>.
2319
2320 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
2321
2322         * modules/getcwd (Depends-on): Add fdopendir.
2323         This fixes one of the two problems reported by Kai Habel in
2324         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
2325
2326         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
2327         stdalign problem reported by Ian Beckwith in
2328         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
2329         * modules/crypto/gc-arcfour (Depends-on):
2330         Depend conditionally on crypto/arcfour.
2331         * modules/crypto/gc-arctwo (Depends-on):
2332         Depend conditionally on crypto/arctwo.
2333         * modules/crypto/gc-des (Depends-on):
2334         Depend conditionally on crypto/des.
2335         * modules/crypto/gc-hmac-md5 (Depends-on):
2336         Depend conditionally on crypto/hmac-md5.
2337         * modules/crypto/gc-hmac-sha1 (Depends-on):
2338         Depend conditionally on crypto/hmac-sha1.
2339         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
2340         * modules/crypto/gc-md4 (Depends-on):
2341         Depend conditionally on crypto/md4.
2342         * modules/crypto/gc-md5 (Depends-on):
2343         Depend conditionally on crypto/md5.
2344         * modules/crypto/gc-rijndael (Depends-on):
2345         Depend conditionally on crypto/rijndael.
2346         * modules/crypto/gc-sha1 (Depends-on):
2347         Depend conditionally on crypto/sha1.
2348         * modules/crypto/gc-arcfour:
2349         * modules/crypto/gc-arctwo:
2350         * modules/crypto/gc-des:
2351         * modules/crypto/gc-hmac-md5:
2352         * modules/crypto/gc-hmac-sha1:
2353         * modules/crypto/gc-md2:
2354         * modules/crypto/gc-md4:
2355         * modules/crypto/gc-md5:
2356         * modules/crypto/gc-rijndael:
2357         * modules/crypto/gc-sha1:
2358         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
2359         now that the conditional dependencies do the work for us.
2360
2361 2011-11-17  Jim Meyering  <meyering@redhat.com>
2362
2363         tests: factor st_ctime-comparison out of two headers
2364         * tests/test-utimens-common.h (ctime_compare): Define.
2365         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
2366         * tests/test-lutimens.h (test_lutimens): Likewise.
2367         * tests/test-utimens.h (test_utimens): Likewise.
2368
2369         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
2370         Invoke the test program via an init.sh-using wrapper.
2371         * tests/test-getcwd.sh: New file.
2372         * modules/getcwd-tests (Files): Add it.
2373         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
2374
2375 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
2376
2377         gitlog-to-changelog: support multi-author commits.
2378         The FSF cares about keeping track of all authors of patches to its
2379         projects, but Git doesn't provide obvious support for multi-author
2380         changesets. Consensus seems to be forming around the use of extra
2381         Signed-off-by inspired lines in the log message formatted as
2382         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
2383         multi-author commits between version control systems.
2384         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
2385         log message and output in standard ChangeLog multi-author format.
2386         Reported by Peter Rosin <peda@lysator.liu.se>
2387
2388 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
2389             Bruno Haible  <bruno@clisp.org>
2390
2391         Fix some modules' file list.
2392         * modules/fstatat (Files): Add m4/lstat.m4.
2393         * modules/openat (Files): Likewise.
2394         * modules/unlinkat (Files): Likewise.
2395
2396 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
2397
2398         maint.mk: fix tight-scope.mk generation in VPATH builds.
2399         * top/maint.mk (tight-scope.mk): Make sure to prefix file
2400         reference with $(srcdir) so that the file is found correctly even
2401         when running `make syntax-check' in a VPATH build.
2402
2403 2011-11-13  Bruno Haible  <bruno@clisp.org>
2404             Jim Meyering  <meyering@redhat.com>
2405
2406         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
2407         * tests/init.sh (compare): Remove "No differences encountered" or
2408         synonymous output from the 'diff' program.
2409
2410 2011-11-13  Bruno Haible  <bruno@clisp.org>
2411
2412         Makefile: Tweak indentation.
2413         * Makefile: Use tab as first character in every line that contains rule
2414         commands.
2415
2416 2011-11-13  Bruno Haible  <bruno@clisp.org>
2417
2418         Syntax check for copyright statements.
2419         * check-copyright: New file.
2420         * Makefile (sc_check_copyright): New rule.
2421
2422 2011-11-13  Simon Josefsson  <simon@josefsson.org>
2423
2424         * build-aux/git-version-gen: Add --prefix to configure the tag
2425         match string.
2426
2427 2011-11-13  Simon Josefsson  <simon@josefsson.org>
2428
2429         * build-aux/git-version-gen: Add --help and --version.
2430
2431 2011-11-12  Jim Meyering  <meyering@redhat.com>
2432
2433         revamp the other test-exclude?.sh scripts to use init.sh, too
2434         * tests/test-exclude1.sh: Use init.sh.
2435         * tests/test-exclude2.sh: Likewise.
2436         * tests/test-exclude3.sh: Likewise.
2437         * tests/test-exclude4.sh: Likewise.
2438         * tests/test-exclude5.sh: Likewise.
2439         * tests/test-exclude6.sh: Likewise.
2440         * tests/test-exclude7.sh: Likewise.
2441         * tests/test-exclude8.sh: Likewise.
2442         * modules/exclude-tests (Files): List init.sh.
2443
2444         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
2445         These shell scripts ignored failure of the binary test-exclude,
2446         so making the latter return 77 didn't cause them to be skipped.
2447         * tests/test-exclude5.sh: Exit with test-exclude's error status
2448         when that program fails.  Revamp to use init.sh.
2449         * tests/test-exclude2.sh: Likewise.
2450
2451         test-exclude: fix a typo
2452         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
2453
2454 2011-11-11  Bruno Haible  <bruno@clisp.org>
2455
2456         obstack: Fix compilation error on MSVC 9.
2457         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
2458
2459 2011-11-11  Jim Meyering  <meyering@redhat.com>
2460
2461         test-exclude: skip tests rather than failing on deficient systems
2462         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
2463         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
2464         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
2465         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
2466
2467 2011-11-10  Bruno Haible  <bruno@clisp.org>
2468
2469         ptsname_r test: Avoid gcc warning on glibc systems.
2470         * tests/test-ptsname_r.c (null_ptr): New function.
2471         (test_errors): Use it.
2472
2473 2011-11-10  Bruno Haible  <bruno@clisp.org>
2474
2475         ptsname_r: Avoid compilation error on OSF/1 5.1.
2476         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
2477         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
2478         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
2479         function is not declared or incompatibly declared.
2480         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
2481         * modules/ptsname_r (Depends-on, configure.ac): Update.
2482         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
2483
2484 2011-11-10  Bruno Haible  <bruno@clisp.org>
2485
2486         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
2487         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
2488         When cross-compiling, guess yes on all platforms except AIX.
2489         Reported by Ludovic Courtès <ludo@gnu.org>.
2490
2491 2011-11-09  Bruno Haible  <bruno@clisp.org>
2492
2493         ptsname_r tests: Fix bugs.
2494         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
2495         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
2496
2497 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
2498
2499         fstatat: work with cross-compilation
2500         Problem reported by Ludovic Courtès in
2501         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
2502         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
2503         "cross-compiling" and assume the bug is present.  Replace
2504         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
2505         an inverted sense, to be more conservative about our assumptions.
2506         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
2507
2508 2011-11-09  Bruno Haible  <bruno@clisp.org>
2509
2510         Improve MODULES.html output.
2511         * modules/mkfifoat (Description): Use the word "function".
2512         * modules/readlinkat (Description): Likewise.
2513         * modules/symlinkat (Description): Likewise.
2514
2515 2011-11-09  Eric Blake  <eblake@redhat.com>
2516
2517         ptsname_r-tests: new test module
2518         * modules/ptsname_r-tests: New module.
2519         * tests/test-ptsname_r.c: New file.
2520
2521         ptsname_r: new module
2522         * modules/ptsname_r: New module.
2523         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
2524         * lib/ptsname.c (__ptsname_r): Split...
2525         * lib/ptsname_r.c: ...into new file.
2526         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
2527         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
2528         * modules/stdlib (Makefile.am): Substitute witnesses.
2529         * lib/stdlib.in.h (ptsname_r): Declare it.
2530         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
2531         * MODULES.html.sh (Misc): Likewise.
2532         * modules/ptsname (Depends-on): Alter dependency.
2533         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
2534
2535 2011-11-09  Jim Meyering  <meyering@redhat.com>
2536
2537         announce-gen: be more concise when there's only one URL+tarball
2538         * build-aux/announce-gen (get_tool_versions): When you distribute
2539         only one type of tarball, combine the first two "Here are..."
2540         sections and make the key-checking grammar independent of
2541         how many tarballs there are.
2542
2543 2011-11-09  Eric Blake  <eblake@redhat.com>
2544
2545         openpty: provide a stub on mingw
2546         * lib/pty.in.h (includes): Provide forward declarations.
2547         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
2548
2549         raise: fix mingw handling of SIGPIPE
2550         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
2551
2552 2011-11-08  Bruno Haible  <bruno@clisp.org>
2553
2554         More conditional dependencies.
2555         * modules/faccessat (Depends-on): Add conditions.
2556         * modules/fchmodat (Depends-on): Likewise.
2557         * modules/fchownat (Depends-on): Likewise.
2558         * modules/fstatat (Depends-on): Likewise.
2559         * modules/mkfifoat (Depends-on): Likewise.
2560         * modules/readlinkat (Depends-on): Likewise.
2561         * modules/symlinkat (Depends-on): Likewise.
2562         * modules/unlinkat (Depends-on): Likewise.
2563         * modules/utimensat (Depends-on): Likewise.
2564         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
2565         * modules/linkat (Depends-on): Refine the conditions.
2566         * modules/renameat (Depends-on): Likewise.
2567
2568 2011-11-08  Bruno Haible  <bruno@clisp.org>
2569
2570         faccessat: Move AC_LIBOBJ invocation to module description.
2571         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
2572         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
2573         invocation from here...
2574         * modules/faccessat (configure.ac): ... to here. Invoke
2575         gl_PREREQ_FACCESSAT.
2576
2577 2011-11-08  Bruno Haible  <bruno@clisp.org>
2578
2579         faccessat: Simplify autoconf macro.
2580         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
2581         gl_FUNC_EUIDACCESS.
2582
2583 2011-11-08  Bruno Haible  <bruno@clisp.org>
2584
2585         renameat: Fix dependencies.
2586         * modules/renameat (Depends-on): Add stdbool.
2587
2588 2011-11-08  Bruno Haible  <bruno@clisp.org>
2589
2590         mkfifoat: Fix module description.
2591         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
2592         not gl_UNISTD_MODULE_INDICATOR.
2593
2594 2011-11-08  Bruno Haible  <bruno@clisp.org>
2595
2596         fstatat: Remove unused dependency.
2597         * modules/fstatat (Depends-on): Remove fstat.
2598
2599 2011-11-08  Simon Josefsson  <simon@josefsson.org>
2600
2601         GNUmakefile: behave when Makefile is missing.
2602         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
2603
2604 2011-11-08  Bruno Haible  <bruno@clisp.org>
2605
2606         openat: Conditionalize dependencies.
2607         * lib/openat.c: Reduce the scope of some #includes.
2608         * modules/openat (Depends-on): Add conditions.
2609
2610 2011-11-07  Jim Meyering  <meyering@redhat.com>
2611
2612         maint.mk: extract GPG key ID without using a temporary file
2613         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
2614         without using a temporary file.  Based on a suggestion from Werner Koch
2615         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
2616
2617 2011-11-07  Eric Blake  <eblake@redhat.com>
2618
2619         grantpt: fix typo
2620         * lib/stdlib.in.h (grantpt): Check correct function.
2621
2622         maint.mk: silence new syntax check
2623         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
2624
2625 2011-11-06  Bruno Haible  <bruno@clisp.org>
2626
2627         Doc about floating-point and math API.
2628         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
2629         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
2630
2631 2011-11-06  Bruno Haible  <bruno@clisp.org>
2632
2633         stdalign tests: Skip the test when compiled by Sun C.
2634         * tests/test-stdalign.c (main): Skip the test on Sun C.
2635
2636 2011-11-06  Bruno Haible  <bruno@clisp.org>
2637
2638         ansi-c++-opt: Complete the 2011-06-05 change.
2639         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
2640         does not support namespaces, set the variable to "no", not to ":".
2641
2642 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
2643
2644         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
2645
2646 2011-11-06  Bruno Haible  <bruno@clisp.org>
2647
2648         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
2649         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
2650         (minus_zerol) [HP-UX]: New macro.
2651         (unary_minus) [HP-UX]: New function.
2652         (copysignl) [HP-UX]: Use unary_minus function.
2653
2654 2011-11-06  Bruno Haible  <bruno@clisp.org>
2655
2656         ldexp, ldexpf, ldexpl: Enhance tests.
2657         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
2658         and tests/test-ldexpl.c.
2659         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
2660         LDEXP, MIN_EXP, MAX_EXP): New macros.
2661         Include test-ldexp.h.
2662         (main): Just call test_function.
2663         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
2664         infinity.h, nan.h.
2665         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
2666         MAX_EXP): New macros.
2667         Include test-ldexp.h.
2668         (x, y): Remove variables.
2669         (main): Just call test_function.
2670         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
2671         infinity.h, nan.h.
2672         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
2673         MAX_EXP): New macros.
2674         Include test-ldexp.h.
2675         (x, y): Remove variables.
2676         (main): Just call test_function.
2677         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
2678         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
2679         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
2680         (Depends-on): Add isnand-nolibm, signbit, float.
2681         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
2682         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
2683         (Depends-on): Add isnanf-nolibm, signbit, float.
2684
2685 2011-11-06  Bruno Haible  <bruno@clisp.org>
2686
2687         math tests: Cosmetics.
2688         * tests/test-math-c++.cc: Reorder declarations.
2689
2690 2011-11-05  Bruno Haible  <bruno@clisp.org>
2691
2692         fma*: Simplify test.
2693         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
2694         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
2695
2696         Tests for module 'fmal'.
2697         * modules/fmal-tests: New file.
2698         * tests/test-fmal1.c: New file.
2699         * tests/test-fmal2.c: New file.
2700
2701         New module 'fmal'.
2702         * lib/math.in.h (fmal): New declaration.
2703         * lib/fmal.c: New file.
2704         * m4/fmal.m4: New file.
2705         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
2706         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
2707         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
2708         REPLACE_FMAL.
2709         * modules/fmal: New file.
2710         * doc/posix-functions/fmal.texi: Mention the new module and the various
2711         bugs.
2712
2713         Tests for module 'fmaf'.
2714         * modules/fmaf-tests: New file.
2715         * tests/test-fmaf1.c: New file.
2716         * tests/test-fmaf2.c: New file.
2717
2718         New module 'fmaf'.
2719         * lib/math.in.h (fmaf): New declaration.
2720         * lib/fmaf.c: New file.
2721         * m4/fmaf.m4: New file.
2722         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
2723         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
2724         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
2725         REPLACE_FMAF.
2726         * modules/fmaf: New file.
2727         * doc/posix-functions/fmaf.texi: Mention the new module and the various
2728         bugs.
2729
2730         Tests for module 'fma'.
2731         * modules/fma-tests: New file.
2732         * tests/test-fma1.c: New file.
2733         * tests/test-fma1.h: New file.
2734         * tests/test-fma2.c: New file.
2735         * tests/test-fma2.h: New file.
2736
2737         New module 'fma'.
2738         * lib/math.in.h (fma): New declaration.
2739         * lib/fma.c: New file.
2740         * m4/fma.m4: New file.
2741         * m4/fegetround.m4: New file.
2742         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
2743         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
2744         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
2745         REPLACE_FMA.
2746         * modules/fma: New file.
2747         * doc/posix-functions/fma.texi: Mention the new module and the various
2748         bugs.
2749
2750         Extend gl_MATHFUNC.
2751         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
2752         Support 'void' as argument type.
2753         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
2754
2755 2011-11-05  Jim Meyering  <meyering@redhat.com>
2756
2757         maint.mk: also prohibit inclusion of dirent.h without use
2758         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
2759
2760 2011-11-05  Bruno Haible  <bruno@clisp.org>
2761
2762         ldexpl tests: Avoid test failure on MSVC 9.
2763         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
2764         value. Needed in order to enforce the conversion from a value greater
2765         than LDBL_MAX to Infinity.
2766
2767 2011-11-05  Bruno Haible  <bruno@clisp.org>
2768
2769         New modules 'at-internal', 'openat-h', split off from module 'openat'.
2770         * modules/at-internal: New file, extracted from modules/openat.
2771         * modules/openat-h: New file.
2772         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
2773         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
2774         * modules/openat (Description): Add reference to POSIX function.
2775         (Files): Remove lib/openat.h, lib/openat-proc.c.
2776         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
2777         intprops, unistd.
2778         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
2779         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
2780         gl_FCNTL_MODULE_INDICATOR.
2781         (Include): Remove unistd.h, openat.h.
2782         * modules/areadlinkat (Files): Add lib/at-func.c.
2783         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2784         openat-die, openat-h, save-cwd.
2785         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
2786         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2787         openat-die, openat-h, save-cwd, unistd.
2788         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
2789         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2790         openat-h, save-cwd. Remove fcntl-h, openat.
2791         * modules/fchmodat (Files): Remove lib/openat.h.
2792         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2793         openat, stdbool, unistd.
2794         * modules/fchownat (Files): Remove lib/openat.h.
2795         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2796         openat, stdbool, sys_stat.
2797         * modules/fdopendir (Files): Remove lib/openat-priv.h,
2798         lib/openat-proc.c.
2799         (Depends-on): Add at-internal.
2800         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
2801         * modules/fstatat (Files): Remove lib/openat.h.
2802         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
2803         stdbool, unistd.
2804         * modules/fts (Depends-on): Add openat-h.
2805         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
2806         openat.
2807         * modules/mkdirat (Files): Remove lib/openat.h.
2808         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
2809         openat, stdbool, sys_stat.
2810         * modules/mkfifoat (Files): Add lib/at-func.c.
2811         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2812         openat-h, save-cwd. Remove fcntl-h, openat.
2813         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
2814         * modules/readlinkat (Files): Add lib/at-func.c.
2815         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2816         openat-h, save-cwd. Remove fcntl-h, openat.
2817         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
2818         openat.
2819         * modules/selinux-at (Files): Add lib/at-func.c.
2820         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
2821         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
2822         * modules/symlinkat (Files): Add lib/at-func.c.
2823         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
2824         openat-h, save-cwd. Remove fcntl-h, openat.
2825         * modules/unlinkat (Files): Remove lib/openat.h.
2826         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
2827         stdbool.
2828         * modules/utimensat (Files): Add lib/at-func.c.
2829         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
2830         openat-die, openat-h, save-cwd.
2831         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
2832         * modules/fdutimensat-tests (Depends-on): Add openat.
2833         * modules/fstatat-tests (Depends-on): Add openat-h.
2834         * modules/readlinkat-tests (Depends-on): Add openat.
2835         * modules/symlinkat-tests (Depends-on): Add openat.
2836
2837 2011-11-05  Bruno Haible  <bruno@clisp.org>
2838
2839         openat: Include <stdbool.h>.
2840         * lib/openat.c: Include <stdbool.h>.
2841
2842 2011-11-04  Bruno Haible  <bruno@clisp.org>
2843
2844         fchownat, renameat, unlinkat: Fix dependencies.
2845         * modules/fchownat (Depends-on): Add fstatat.
2846         * modules/renameat (Depends-on): Likewise.
2847         * modules/unlinkat (Depends-on): Likewise.
2848
2849 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
2850
2851         openat: remove direct dependency on dirent
2852         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
2853         and hasn't been needed ever since fdopendir was split into its own
2854         module on 2009-08-31.
2855         * modules/openat (Depends-on): Remove dirent.
2856
2857 2011-11-04  Bruno Haible  <bruno@clisp.org>
2858
2859         renameat: Optimize code size.
2860         * modules/renameat (configure.ac): Don't compile at-func2.c if
2861         REPLACE_RENAMEAT is 1.
2862
2863 2011-11-04  Bruno Haible  <bruno@clisp.org>
2864
2865         openat tests: Fix file list.
2866         * modules/openat-tests (Files): Add tests/test-open.h.
2867
2868 2011-11-04  Bruno Haible  <bruno@clisp.org>
2869
2870         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
2871         * modules/fchmodat (Depends-on): Add openat-die.
2872         * modules/fchownat (Depends-on): Likewise.
2873         * modules/linkat (Depends-on): Likewise.
2874         * modules/renameat (Depends-on): Likewise.
2875         * modules/openat (Depends-on): Add dirent.
2876
2877 2011-11-04  Jim Meyering  <meyering@redhat.com>
2878
2879         at-func*.c: fix comments
2880         * lib/at-func2.c: Correct/improve first-line comment.
2881         * lib/at-func.c: Correct grammar in first-line comment.
2882
2883 2011-11-04  Bruno Haible  <bruno@clisp.org>
2884
2885         New module 'mkdirat', split off from module 'openat'.
2886         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
2887         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
2888         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
2889         * modules/mkdirat: New file, extracted from modules/openat.
2890         * modules/openat (Files): Remove lib/mkdirat.c.
2891         (Depends-on): Remove mkdir.
2892         (configure.ac): Remove AC_LIBOBJ of mkdirat.
2893         (Include): Remove <sys/stat.h>.
2894         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
2895         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
2896         tests/test-mkdir.h.
2897         (Depends-on): Remove ignore-value.
2898         (Makefile.am): Remove rules for test-mkdirat.
2899         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
2900         of module 'openat'.
2901         * NEWS: Mention the change.
2902
2903 2011-11-04  Bruno Haible  <bruno@clisp.org>
2904
2905         closedir: Avoid warning on mingw.
2906         * lib/closedir.c: Include <unistd.h>.
2907
2908 2011-11-04  Bruno Haible  <bruno@clisp.org>
2909
2910         New module 'fstatat', split off from module 'openat'.
2911         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
2912         defined.
2913         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
2914         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
2915         gl_FUNC_FSTATAT.
2916         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
2917         * modules/fstatat: New file, extracted from modules/openat.
2918         * modules/openat (Files): Remove lib/fstatat.c.
2919         (Depends-on): Remove lstat.
2920         (configure.ac): Remove AC_LIBOBJ of fstatat.
2921         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
2922         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
2923         tests/test-lstat.h, tests/test-stat.h.
2924         (Depends-on): Remove getcwd-lgpl.
2925         (Makefile.am): Remove rules for test-fstatat.
2926         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
2927         of module 'openat'.
2928         * NEWS: Mention the change.
2929         * modules/getcwd (Depends-on): Add fstatat.
2930         * modules/linkat (Depends-on): Likewise.
2931         * modules/mkfifoat-tests (Depends-on): Likewise.
2932         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
2933
2934 2011-11-03  Bruno Haible  <bruno@clisp.org>
2935
2936         New module 'unlinkat', split off from module 'openat'.
2937         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
2938         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
2939         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
2940         * modules/unlinkat: New file, extracted from modules/openat. Correct
2941         the dependency conditions.
2942         * modules/openat (Files): Remove lib/unlinkat.c.
2943         (Depends-on): Remove rmdir, unlink.
2944         (configure.ac): Remove AC_LIBOBJ of unlinkat.
2945         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
2946         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
2947         tests/test-rmdir.h, tests/test-unlink.h.
2948         (Depends-on): Remove unlinkdir.
2949         (Makefile.am): Remove rules for test-unlinkat.
2950         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
2951         of module 'openat'.
2952         * NEWS: Mention the change.
2953         * modules/linkat-tests (Depends-on): Add unlinkat.
2954         * modules/mkfifoat-tests (Depends-on): Likewise.
2955         * modules/readlinkat-tests (Depends-on): Likewise.
2956
2957 2011-11-02  Bruno Haible  <bruno@clisp.org>
2958
2959         New module 'fchmodat', split off from module 'openat'.
2960         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
2961         defined.
2962         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
2963         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
2964         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
2965         * modules/fchmodat: New file, extracted from modules/openat.
2966         * modules/openat (Files): Remove lib/fchmodat.c.
2967         (configure.ac): Remove AC_LIBOBJ of fchmodat.
2968         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
2969         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
2970         (Makefile.am): Remove rules for test-fchmodat.
2971         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
2972         of module 'openat'.
2973         * NEWS: Mention the change.
2974
2975 2011-11-02  Jim Meyering  <meyering@redhat.com>
2976
2977         putenv: indent #definition of "environ" to placate cppi
2978         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
2979
2980         gitlog-to-changelog: provide a ChangeLog-repair mechanism
2981         Git logs are often treated as immutable, because editing them
2982         changes the SHA1 checksums of all descendants.  Thus, errors in
2983         git logs tend to stay there forever.  However, when we generate
2984         a ChangeLog file -- typically for distribution -- from that git log,
2985         we can actually make corrections in the generated file.  The key
2986         lies in recording in machine-readable/applicable form the desired
2987         corrections.  See --help for description and an example.
2988         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
2989         (usage): Describe it; alphabetize option descriptions.
2990         (main): Honor the new option, carefully.
2991
2992 2011-11-01  Jim Meyering  <meyering@redhat.com>
2993
2994         gitlog-to-changelog: avoid an infloop
2995         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
2996         that ends up being empty.
2997
2998 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
2999
3000         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
3001         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
3002         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
3003         contains (possibly-quoted) backslashes.  This should avoid
3004         all-too-common shell bugs if COMPLICATED contains backslashes in
3005         the "wrong" places.  Reported by David Evans in
3006         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
3007         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
3008         because we want ASCII ranges.  Is there some reason we don't use
3009         the C locale everywhere in this script?
3010         (func_module, top level): Avoid unwanted pathname expansion when
3011         $repo_url_prefix or $repo_url_suffix_repl contain shell
3012         metacharacters like '?' and '*'.
3013
3014 2011-11-01  Bruno Haible  <bruno@clisp.org>
3015
3016         fchownat: Improve description.
3017         * modules/fchownat (Description): Add link to function.
3018
3019 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
3020
3021         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
3022         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
3023         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
3024         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
3025
3026 2011-11-01  Bruno Haible  <bruno@clisp.org>
3027
3028         alignof: Avoid collision with stdalign module.
3029         * lib/alignof.h (alignof): Remove macro.
3030         * NEWS: Mention the change.
3031         Reported by Paul Eggert.
3032
3033 2011-11-01  Bruno Haible  <bruno@clisp.org>
3034
3035         New module 'fchownat', split off from module 'openat'.
3036         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
3037         defined.
3038         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
3039         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
3040         invoke gl_FUNC_FCHOWNAT.
3041         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
3042         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
3043         * modules/fchownat: New file, extracted from modules/openat.
3044         * modules/openat (Files): Remove lib/fchownat.c.
3045         (Depends-on): Remove lchown.
3046         (configure.ac): Remove AC_LIBOBJ of fchownat.
3047         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
3048         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
3049         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
3050         (Depends-on): Remove mgetgroups, usleep, stat-time.
3051         (configure.ac): Remove test for getegid.
3052         (Makefile.am): Remove rules for test-fchownat.
3053         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
3054         of module 'openat'.
3055         * NEWS: Mention the change.
3056
3057 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
3058
3059         stdalign: port better to MSVC and to Sun C 5.11
3060         This fixes some of the problems reported by Bruno Haible in
3061         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
3062         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
3063         shortcomings of MSVC and of Sun C 5.11.
3064         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
3065         around __declspec arg.
3066         * modules/stdalign-tests (Files): Add tests/macros.h.
3067         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
3068         Include macros.h, for ASSERT.
3069         (DECLARE_ALIGNED): Remove.
3070         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
3071         to catch bug), and to 1 if not (simplifies the rest of the code).
3072         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
3073         (CHECK_AUTO): Remove.
3074         (CHECK_ALIGNED): Check only the alignment of the static vars,
3075         since auto var alignment isn't supported by Sun C 5.11.
3076         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
3077         ASSERT failures are easier to diagnose.
3078
3079 2011-10-31  Bruno Haible  <bruno@clisp.org>
3080
3081         doc about some IRIX 5.3 problems.
3082         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
3083         on IRIX 5.3.
3084         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
3085         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
3086         5.3.
3087         * doc/posix-functions/grantpt.texi: Likewise.
3088         * doc/posix-functions/unlockpt.texi: Likewise.
3089         * doc/posix-functions/lgamma.texi: Likewise.
3090         * doc/posix-functions/nextafter.texi: Likewise.
3091         * doc/posix-functions/remainder.texi: Likewise.
3092         * doc/posix-functions/select.texi: Mention misplaced declaration on
3093         IRIX 5.3.
3094         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3095
3096 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
3097
3098         gitlog-to-changelog: fix git-log invocation.
3099         git-log mishandles date strings before 1970-01-01 UTC, and there is
3100         no use to specify --since=1970-01-01 by default anyway.
3101         * build-aux/gitlog-to-changelog: By default, when no --since option
3102         was given, do not specify explicit --since option to git-log.
3103
3104 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
3105
3106         gitlog-to-changelog: new option --append-dot.
3107         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
3108         first non-blank line of each commit message terminated with a dot.
3109
3110 2011-10-30  Bruno Haible  <bruno@clisp.org>
3111
3112         ffsl, ffsll: Avoid compilation error due to 'restrict'.
3113         * lib/ffsl.h: Include <config.h>.
3114         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
3115
3116 2011-10-30  Jim Meyering  <meyering@redhat.com>
3117
3118         GNUmakefile: reenable "make syntax-check" for most projects
3119         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
3120         build-aux variable", "syntax-check" would do nothing but succeed with
3121         the "No version control files detected..." diagnostic (unless you
3122         happened to override _build-aux via cfg.mk).
3123         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
3124         to precede inclusion of maint.mk.  Otherwise, these variables would
3125         be used undefined in any project that does not override the default.
3126
3127 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
3128
3129         gitlog-to-changelog: treat a message with only blank lines as empty.
3130         * build-aux/gitlog-to-changelog: Move the code that removes leading and
3131         trailing blank lines before the code that issues a warning about an
3132         empty commit message.
3133
3134 2011-10-30  Jim Meyering  <meyering@redhat.com>
3135
3136         test-parse-datetime.c: avoid new DST-related false positive test failure
3137         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
3138         based on the time/date we'll convert, not the current time.
3139         Otherwise, the moment we cross a DST boundary like today's in
3140         Europe, (CEST to CET), that offset ends up being one hour off.
3141
3142 2011-10-27  Bruno Haible  <bruno@clisp.org>
3143
3144         fstat: Tweak documentation.
3145         * modules/fstat (Description): More precise description.
3146
3147 2011-10-27  Bruno Haible  <bruno@clisp.org>
3148
3149         Update documentation regarding 'largefile' module.
3150         * doc/posix-functions/fstat.texi: Tweak wording.
3151         * doc/posix-functions/opendir.texi: Mention that the module fixes the
3152         problems with huge directories and/or small ino_t types.
3153         * doc/posix-functions/readdir.texi: Likewise.
3154         * doc/posix-functions/rewinddir.texi: Likewise.
3155
3156 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
3157
3158         maint.mk: don't maintain a second build-aux variable.
3159         * maint.mk (build_aux): Removed.  The maintainer-makefile module
3160         depends on GNUmakefile, which already maintains a cfg.mk
3161         overridable $(_build-aux) for projects with a non-standard
3162         build-aux directory location, although without the $(srcdir)
3163         prefix.  Use that variable consistently instead of introducing a
3164         second one.  Adjust all call sites.
3165
3166 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
3167
3168         Add stdalign module and use it in other modules.
3169         This is based on a previous proposal by Bruno Haible
3170         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
3171
3172         stdalign: new module
3173         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
3174         * modules/stdalign: New files.
3175         * MODULES.html.sh (c1x_core_properties): Add stdalign.
3176         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
3177
3178         stdalign-tests: new module
3179         * modules/stdalign-tests, tests/test-stdalign.c: New files.
3180
3181         argp: use stdalign
3182         * lib/argp-parse.c: Include <stdalign.h>.
3183         (alignof): Remove.
3184         * modules/argp (Depends-on): Add stdalign.
3185
3186         crypto libraries: use stdalign
3187         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
3188         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
3189         Do not include <stdlib.h> twice, in md4.c.
3190         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
3191         because we are accessing a pointer's bit-pattern, not a size.
3192         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
3193         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
3194         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
3195         * modules/crypto/sha512: Likewise.
3196
3197         sys_socket: use stdalign, not alignof
3198         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
3199         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
3200
3201 2011-10-27  Bruno Haible  <bruno@clisp.org>
3202
3203         raise test: Avoid a test failure on Linux/MIPS.
3204         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
3205         because 99 is a valid signal on Linux/MIPS.
3206
3207 2011-10-27  Bruno Haible  <bruno@clisp.org>
3208
3209         nonblocking tests: Fix test failure on Linux/MIPS.
3210         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
3211         Set to 270000.
3212
3213 2011-10-27  Bruno Haible  <bruno@clisp.org>
3214
3215         utimensat: Work around problem on Linux/hppa.
3216         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
3217         values.
3218         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
3219
3220 2011-10-25  Jim Meyering  <meyering@redhat.com>
3221
3222         maint.mk: fix a bug in sc_prohibit_stddef_without_use
3223         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
3224         after symbols like NULL, size_t, etc.
3225         Reported by Alfred M. Szmidt.
3226
3227         maint.mk: exempt ENODATA from a syntax-check rule
3228         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
3229         from the sc_prohibit_always-defined_macros syntax-check rule.
3230         Add a comment.  See this for more details:
3231         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
3232
3233 2011-10-23  Jim Meyering  <meyering@redhat.com>
3234
3235         fts: close parent dir FD before returning from post-traversal fts_read
3236         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
3237         unlink A, even though an FD open on A remained.  This is suboptimal
3238         (holding a file descriptor open longer than needed), but otherwise not
3239         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
3240         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
3241         that represents a real problem: it causes the removal of A to fail
3242         with e.g., "rm: cannot remove `A': Device or resource busy"
3243
3244         fts visits each directory twice and keeps a cache (fts_fd_ring) of
3245         directory file descriptors.  After completing the final, FTS_DP,
3246         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
3247         cache, but then proceeded to add a new FD to it via the subsequent
3248         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
3249         final file descriptor would be closed only via fts_close's call to
3250         fd_ring_clear.  Now, it is usually closed earlier, via the final
3251         FTS_DP-returning fts_read call.
3252         * lib/fts.c (restore_initial_cwd): New function, converted from
3253         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
3254         Update callers.
3255         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
3256         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
3257
3258 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
3259             Bruno Haible  <bruno@clisp.org>
3260             Jim Meyering  <jim@meyering.net>
3261
3262         readme-release: improve safety of release prep instructions.
3263         * README-release: Don't git pull all branches when only master
3264         is needed for the release process.
3265         Run make maintainer-clean before changing trees and merging.
3266         Don't try to run ./configure right after git pull in case files
3267         that influence the bootstrap process have changed, move the
3268         ./configure step to after running ./bootstrap.
3269         Don't bootstrap "one last time"... it's the first time!
3270
3271 2011-10-22  Bruno Haible  <bruno@clisp.org>
3272
3273         errno, strerror-override: Support for MSVC 10.
3274         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
3275         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
3276         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
3277         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
3278         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
3279         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
3280         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
3281         Assign values compatible with MSVC 10.
3282         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
3283         New macros.
3284         (GNULIB_defined_EWINSOCK): New macro.
3285         * lib/strerror-override.c (strerror_override): Update accordingly.
3286         * lib/strerror-override.h: Likewise.
3287         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
3288         longer equal to the corresponding errno value.
3289         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3290
3291 2011-10-22  Bruno Haible  <bruno@clisp.org>
3292
3293         perror: Recognize when test program crashes.
3294         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
3295         strerror, set gl_cv_func_perror_works to no.
3296         Reported by Daniel Richard G. <skunk@iskunk.org>.
3297
3298         perror: Fix indentation.
3299         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
3300
3301 2011-10-22  Bruno Haible  <bruno@clisp.org>
3302
3303         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
3304         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
3305         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
3306         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
3307         functions, not as a macro.
3308         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
3309         macros.
3310         (isfinite, isinf, isnan, signbit): Check overloaded functions and
3311         absence of macro.
3312         Suggested by Eric Blake.
3313         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
3314
3315 2011-10-21  Bruno Haible  <bruno@clisp.org>
3316
3317         relocatable-prog-wrapper: Don't leave object files behind.
3318         * build-aux/install-reloc: Re-synchronize list of .o files to be
3319         removed with list of compilation units.
3320
3321 2011-10-20  Bruno Haible  <bruno@clisp.org>
3322
3323         openpty, posix_openpt: Remove code duplication.
3324         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
3325         * lib/openpty.c: Include <stdlib.h>.
3326         (openpty): Use posix_openpt on all platforms except IRIX.
3327         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
3328
3329 2011-10-20  Bruno Haible  <bruno@clisp.org>
3330
3331         unlockpt: Detect invalid argument.
3332         * lib/unlockpt.c: Include <fcntl.h>.
3333         (unlockpt): Check whether fd is valid, using fcntl().
3334         * modules/unlockpt (Depends-on): Add fcntl-h.
3335
3336 2011-10-20  Bruno Haible  <bruno@clisp.org>
3337
3338         openpty: Avoid compilation error on AIX 6.1.
3339         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
3340
3341 2011-10-20  Bruno Haible  <bruno@clisp.org>
3342
3343         posix_openpt: Support for OpenBSD.
3344         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
3345         (posix_openpt) [OpenBSD]: New code.
3346         * lib/grantpt.c: Include <fcntl.h>.
3347         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
3348         * modules/grantpt (Depends-on): Add fcntl-h.
3349
3350 2011-10-20  Bruno Haible  <bruno@clisp.org>
3351
3352         posix_openpt test: Coding style.
3353         * tests/test-posix_openpt.c: Use GNU coding style.
3354
3355 2011-10-20  Bruno Haible  <bruno@clisp.org>
3356
3357         grantpt: Support --avoid=pt_chown.
3358         * modules/grantpt (Files): Add lib/pty-private.h.
3359
3360 2011-10-20  Bruno Haible  <bruno@clisp.org>
3361
3362         posix_openpt: Fix autoconf macro.
3363         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
3364         unneeded check for _getpty.
3365
3366 2011-10-20  Bruno Haible  <bruno@clisp.org>
3367
3368         openpty: Update comments.
3369         * lib/openpty.c: Add comments about Minix.
3370
3371 2011-10-19  Eric Blake  <eblake@redhat.com>
3372
3373         openpty: relax license
3374         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
3375
3376         pt_chown: use configmake to simplify build
3377         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
3378
3379         ptsname and others: relax license
3380         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
3381         * modules/unlockpt (License): Likewise.
3382         * modules/pt_chown (License): Likewise.
3383         * modules/ptsname (License): Likewise.
3384         * modules/ttyname_r (License): Likewise.
3385
3386 2011-10-19  Jim Meyering  <meyering@redhat.com>
3387
3388         posix_openpt: remove spurious #endif
3389         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
3390
3391 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
3392
3393         maint.mk: Respect $(build_aux) in web-manual rule.
3394         * top/maint.mk (web-manual): Find gen-announce script in user's
3395         $(build_aux) directory instead of hard-coding 'build-aux'.
3396
3397 2011-10-19  Bruno Haible  <bruno@clisp.org>
3398
3399         posix_openpt: Fix compilation error.
3400         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
3401         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
3402         Mention the openpty module as an alternative.
3403
3404 2011-10-19  Bruno Haible  <bruno@clisp.org>
3405
3406         Support for old NeXTstep 3.3 frexp().
3407         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
3408         execution time of the test to 5 seconds.
3409         Reported by Daniel Richard G. <skunk@iskunk.org>.
3410
3411 2011-10-19  Bruno Haible  <bruno@clisp.org>
3412
3413         Support for old NeXTstep 3.3 sed.
3414         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
3415         part, use /.../, not \|...|. Escape periods in the header file name.
3416         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
3417         Reported by Daniel Richard G. <skunk@iskunk.org>.
3418
3419 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3420
3421         Support for old NeXTstep 3.3 gcc.
3422         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
3423         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
3424         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
3425         * lib/spawn.in.h (_Restrict_arr_): Likewise.
3426         * lib/regex.h (_Restrict_arr_): Likewise.
3427         * lib/regex_internal.h (re_token_t): Likewise.
3428         * lib/regexec.c (check_node_accept_bytes): Likewise.
3429         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
3430
3431 2011-10-18  Eric Blake  <eblake@redhat.com>
3432
3433         posix_openpt: new module
3434         * modules/posix_openpt: New module.
3435         * m4/posix_openpt.m4: New file.
3436         * lib/posix_openpt.c: Likewise.
3437         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
3438         (gl_STDLIB_H_DEFAULTS): Set defaults.
3439         * modules/stdlib (Makefile.am): Substitute macros.
3440         * lib/stdlib.in.h (posix_openpt): Declare.
3441         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
3442         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
3443         * modules/posix_openpt-tests: New test module.
3444         * tests/test-posix_openpt.c: New test.
3445
3446 2011-10-15  Bruno Haible  <bruno@clisp.org>
3447
3448         xstrtoll: Fix compilation failure.
3449         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
3450         from lib/strtol.c.
3451         * doc/posix-headers/limits.texi: Mention missing numerical limits on
3452         some platforms.
3453         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3454
3455 2011-10-15  Bruno Haible  <bruno@clisp.org>
3456
3457         vasnprintf: Optimize bit search operation.
3458         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
3459         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
3460         gl_DOUBLE_EXPONENT_LOCATION.
3461         * modules/vasnprintf (Files): Add m4/exponentd.m4.
3462         * modules/unistdio/u8-vasnprintf (Files): Likewise.
3463         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
3464         * modules/unistdio/u16-vasnprintf (Files): Likewise.
3465         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
3466         * modules/unistdio/u32-vasnprintf (Files): Likewise.
3467         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
3468         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
3469         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
3470
3471 2011-10-15  Bruno Haible  <bruno@clisp.org>
3472
3473         vasnprintf: Fix comments.
3474         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
3475
3476 2011-10-14  Bruno Haible  <bruno@clisp.org>
3477
3478         Tests for module 'integer_length_ll'.
3479         * modules/integer_length_ll-tests: New file.
3480         * tests/test-integer_length_ll.c: New file.
3481
3482         New module 'integer_length_ll'.
3483         * lib/integer_length_ll.c: New file.
3484         * modules/integer_length_ll: New file.
3485
3486 2011-10-14  Bruno Haible  <bruno@clisp.org>
3487
3488         Tests for module 'integer_length_l'.
3489         * modules/integer_length_l-tests: New file.
3490         * tests/test-integer_length_l.c: New file.
3491
3492         New module 'integer_length_l'.
3493         * lib/integer_length_l.c: New file.
3494         * modules/integer_length_l: New file.
3495
3496 2011-10-14  Bruno Haible  <bruno@clisp.org>
3497
3498         Tests for module 'integer_length'.
3499         * modules/integer_length-tests: New file.
3500         * tests/test-integer_length.c: New file.
3501
3502         New module 'integer_length'.
3503         * lib/integer_length.h: New file.
3504         * lib/integer_length.c: New file.
3505         * modules/integer_length: New file.
3506
3507 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3508
3509         popen: Fix dependency conditions.
3510         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
3511
3512 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
3513
3514         perror: Fix autoconf test.
3515         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
3516         <stdlib.h> and <string.h>.
3517
3518 2011-10-14  Bruno Haible  <bruno@clisp.org>
3519
3520         ffsl: Optimize on 64-bit platforms.
3521         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
3522         unrolling.
3523
3524 2011-10-13  Bruno Haible  <bruno@clisp.org>
3525
3526         ffsl: Optimize on 32-bit platforms.
3527         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
3528         use ffs() without a loop.
3529
3530         ffsl, ffsll: Optimize for GCC.
3531         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
3532         * lib/ffsl.c (GCC_BUILTIN): New macro.
3533         * lib/ffsll.c (GCC_BUILTIN): Likewise.
3534
3535 2011-10-13  Bruno Haible  <bruno@clisp.org>
3536
3537         ffs, bcopy, memset: Support symbol renaming via config.h.
3538         * lib/ffs.c: Include <config.h>.
3539         * lib/bcopy.c: Likewise.
3540         * lib/memset.c: Likewise.
3541
3542 2011-10-10  Bruno Haible  <bruno@clisp.org>
3543
3544         atanl: Simplify for platforms where 'long double' == 'double'.
3545         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3546         alternative implementation.
3547         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3548         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3549         * modules/atanl (Depends-on): Add atan. Update conditions.
3550
3551 2011-10-10  Bruno Haible  <bruno@clisp.org>
3552
3553         acosl: Simplify for platforms where 'long double' == 'double'.
3554         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3555         alternative implementation.
3556         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3557         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3558         * modules/acosl (Depends-on): Add acos. Update conditions.
3559
3560 2011-10-10  Bruno Haible  <bruno@clisp.org>
3561
3562         asinl: Simplify for platforms where 'long double' == 'double'.
3563         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3564         alternative implementation.
3565         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3566         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3567         * modules/asinl (Depends-on): Add asin. Update conditions.
3568
3569 2011-10-10  Bruno Haible  <bruno@clisp.org>
3570
3571         tanl: Simplify for platforms where 'long double' == 'double'.
3572         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3573         implementation.
3574         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3575         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3576         * modules/tanl (Depends-on): Add tan. Update conditions.
3577         (configure.ac): Don't compile trigl.c if
3578         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3579
3580 2011-10-10  Bruno Haible  <bruno@clisp.org>
3581
3582         cosl: Simplify for platforms where 'long double' == 'double'.
3583         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3584         implementation.
3585         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3586         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3587         * modules/cosl (Depends-on): Add cos. Update conditions.
3588         (configure.ac): Don't compile sincosl.c and trigl.c if
3589         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3590
3591 2011-10-10  Bruno Haible  <bruno@clisp.org>
3592
3593         sinl: Simplify for platforms where 'long double' == 'double'.
3594         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3595         implementation.
3596         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3597         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3598         * modules/sinl (Depends-on): Add sin. Update conditions.
3599         (configure.ac): Don't compile sincosl.c and trigl.c if
3600         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3601
3602 2011-10-10  Bruno Haible  <bruno@clisp.org>
3603
3604         logl: Simplify for platforms where 'long double' == 'double'.
3605         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3606         implementation.
3607         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3608         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3609         * modules/logl (Depends-on): Add log. Update conditions.
3610
3611 2011-10-10  Bruno Haible  <bruno@clisp.org>
3612
3613         expl: Simplify for platforms where 'long double' == 'double'.
3614         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
3615         implementation.
3616         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3617         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3618         * modules/expl (Depends-on): Add exp. Update conditions.
3619
3620 2011-10-10  Bruno Haible  <bruno@clisp.org>
3621
3622         sqrtl: Simplify for platforms where 'long double' == 'double'.
3623         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3624         alternative implementation.
3625         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3626         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3627         * modules/sqrtl (Depends-on): Update conditions.
3628
3629 2011-10-10  Bruno Haible  <bruno@clisp.org>
3630
3631         ldexpl: Simplify for platforms where 'long double' == 'double'.
3632         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3633         alternative implementation.
3634         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3635         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3636         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
3637
3638 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
3639
3640         ffsll: set correct witness
3641         * modules/ffsll (configure.ac): Fix typo.
3642
3643 2011-10-10  Bruno Haible  <bruno@clisp.org>
3644
3645         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
3646         * lib/printf-frexpl.c: Include <config.h>.
3647         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3648         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
3649         second time.
3650         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
3651         gl_LONG_DOUBLE_VS_DOUBLE.
3652         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
3653         conditions.
3654
3655 2011-10-10  Bruno Haible  <bruno@clisp.org>
3656
3657         frexpl: Simplify for platforms where 'long double' == 'double'.
3658         * lib/frexpl.c: Include <config.h>.
3659         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3660         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3661         time.
3662         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3663         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3664         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
3665         * modules/frexpl (Depends-on): Add frexp. Update conditions.
3666         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
3667         conditions.
3668
3669 2011-10-10  Jim Meyering  <meyering@redhat.com>
3670
3671         test-renameat: don't leave behind a temporary file
3672         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
3673           ERROR: files left in build directory after distclean:
3674           ./gltests/test-renameat.too
3675           make[1]: *** [distcleancheck] Error 1
3676         Reported by Tom G. Christensen.
3677
3678 2011-10-09  Bruno Haible  <bruno@clisp.org>
3679
3680         rint: Determine RINT_LIBM correctly on AIX 7.
3681         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
3682         directly, not only through a function pointer. Also accept an optional
3683         4th argument with extra code.
3684         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
3685         rintf() call by gcc when optimizing.
3686
3687         mathfunc.m4: Refactor.
3688         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
3689         m4 variable.
3690
3691 2011-10-09  Bruno Haible  <bruno@clisp.org>
3692
3693         rintl: Simplify for platforms where 'long double' == 'double'.
3694         * lib/rintl.c: Include <config.h>.
3695         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3696         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3697         time.
3698         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3699         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3700         * modules/rintl (Depends-on): Add rint. Update conditions.
3701
3702 2011-10-09  Bruno Haible  <bruno@clisp.org>
3703
3704         roundl: Simplify for platforms where 'long double' == 'double'.
3705         * lib/roundl.c: Include <config.h>.
3706         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3707         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3708         time.
3709         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3710         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3711         * modules/roundl (Depends-on): Add round. Update conditions.
3712
3713 2011-10-09  Bruno Haible  <bruno@clisp.org>
3714
3715         truncl: Simplify for platforms where 'long double' == 'double'.
3716         * lib/truncl.c: Include <config.h>.
3717         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3718         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3719         time.
3720         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3721         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3722         * modules/truncl (Depends-on): Add trunc. Update conditions.
3723
3724 2011-10-09  Bruno Haible  <bruno@clisp.org>
3725
3726         ceill: Simplify for platforms where 'long double' == 'double'.
3727         * lib/ceill.c: Include <config.h>.
3728         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3729         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3730         time.
3731         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3732         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3733         * modules/ceill (Depends-on): Add ceil. Update conditions.
3734
3735 2011-10-09  Bruno Haible  <bruno@clisp.org>
3736
3737         floorl: Simplify for platforms where 'long double' == 'double'.
3738         * lib/floorl.c: Include <config.h>.
3739         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
3740         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
3741         time.
3742         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3743         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3744         * modules/floorl (Depends-on): Add floor. Update conditions.
3745
3746 2011-10-09  Bruno Haible  <bruno@clisp.org>
3747
3748         rint: Fix ordering constraints.
3749         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
3750         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
3751         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
3752
3753 2011-10-09  Bruno Haible  <bruno@clisp.org>
3754
3755         copysignl: Simplify for platforms where 'long double' == 'double'.
3756         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
3757         alternative.
3758         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3759         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
3760         * modules/copysignl (Depends-on): Add copysign. Update conditions.
3761
3762 2011-10-09  Bruno Haible  <bruno@clisp.org>
3763
3764         Tests for module 'rintl'.
3765         * modules/rintl-tests: New file.
3766         * tests/test-rintl.c: New file.
3767
3768         New module 'rintl'.
3769         * lib/math.in.h (rintl): New declaration.
3770         * lib/rintl.c: New file.
3771         * m4/rintl.m4: New file.
3772         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
3773         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
3774         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
3775         * modules/rintl: New file.
3776         * tests/test-math-c++.cc: Check the declaration of rintl.
3777         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3778         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
3779         * doc/posix-functions/rintl.texi: Mention the new module.
3780
3781 2011-10-09  Bruno Haible  <bruno@clisp.org>
3782
3783         Tests for module 'rintf'.
3784         * modules/rintf-tests: New file.
3785         * tests/test-rintf.c: New file.
3786
3787         New module 'rintf'.
3788         * lib/math.in.h (rintf): New declaration.
3789         * lib/rintf.c: New file.
3790         * m4/rintf.m4: New file.
3791         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
3792         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
3793         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
3794         * modules/rintf: New file.
3795         * tests/test-math-c++.cc: Check the declaration of rintf.
3796         * doc/posix-functions/rintf.texi: Mention the new module.
3797
3798 2011-10-09  Bruno Haible  <bruno@clisp.org>
3799
3800         rint: Support for MSVC.
3801         * lib/math.in.h (rint): New declaration.
3802         * lib/rint.c: New file.
3803         * m4/rint.m4: New file.
3804         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
3805         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
3806         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
3807         * modules/rint (Description): Fix.
3808         (Files): Add lib/rint.c, m4/rint.m4.
3809         (Depends-on): Add math.
3810         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
3811         gl_MATH_MODULE_INDICATOR.
3812         * tests/test-math-c++.cc: Check the declaration of rint.
3813         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3814         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
3815         * doc/posix-functions/rint.texi: Mention the replacement provided by
3816         the module.
3817
3818         rint tests: More tests.
3819         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
3820         minus-zero.h, infinity.h, nan.h.
3821         (main): Skip the test if the current rounding mode is not standard. Add
3822         tests for negative numbers, minus zero, infinity, NaN.
3823         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
3824         tests/nan.h.
3825         (Depends-on): Add isnand-nolibm.
3826
3827 2011-10-09  Bruno Haible  <bruno@clisp.org>
3828
3829         Tests for module 'copysignl'.
3830         * modules/copysignl-tests: New file.
3831         * tests/test-copysignl.c: New file.
3832
3833         New module 'copysignl'.
3834         * lib/math.in.h (copysignl): New declaration.
3835         * lib/copysignl.c: New file.
3836         * m4/copysignl.m4: New file.
3837         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
3838         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
3839         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
3840         HAVE_COPYSIGNL.
3841         * modules/copysignl: New file.
3842         * tests/test-math-c++.cc: Check the declaration of copysignl.
3843         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
3844         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
3845         * doc/posix-functions/copysignl.texi: Mention the new module.
3846
3847 2011-10-09  Bruno Haible  <bruno@clisp.org>
3848
3849         Tests for module 'copysignf'.
3850         * modules/copysignf-tests: New file.
3851         * tests/test-copysignf.c: New file.
3852
3853         New module 'copysignf'.
3854         * lib/math.in.h (copysignf): New declaration.
3855         * lib/copysignf.c: New file.
3856         * m4/copysignf.m4: New file.
3857         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
3858         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
3859         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
3860         HAVE_COPYSIGNF.
3861         * modules/copysignf: New file.
3862         * tests/test-math-c++.cc: Check the declaration of copysignf.
3863         * doc/posix-functions/copysignf.texi: Mention the new module.
3864
3865 2011-10-09  Bruno Haible  <bruno@clisp.org>
3866
3867         Ensure that HAVE_* variables are set to 1 before they are set to 0.
3868         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
3869         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
3870         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
3871         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
3872         gl_SIGNAL_H_DEFAULTS.
3873
3874 2011-10-09  Bruno Haible  <bruno@clisp.org>
3875
3876         poll: Make macro safer.
3877         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
3878         ac_cv_header_poll_h is not set.
3879
3880 2011-10-09  Bruno Haible  <bruno@clisp.org>
3881
3882         copysign: Provide replacement.
3883         * lib/math.in.h (copysign): New declaration.
3884         * lib/copysign.c: New file.
3885         * m4/copysign.m4: New file.
3886         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
3887         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
3888         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
3889         HAVE_COPYSIGN.
3890         * modules/copysign (Description): Clarify.
3891         (Files): Add lib/copysign.c, m4/copysign.m4.
3892         (Depends-on): Add math, signbit.
3893         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
3894         gl_MATH_MODULE_INDICATOR.
3895         * tests/test-math-c++.cc: Check the declaration of copysign.
3896         * doc/posix-functions/copysign.texi: Mention the effects of the module
3897         on Minix and MSVC.
3898
3899 2011-10-09  Bruno Haible  <bruno@clisp.org>
3900
3901         isinf: Ensure macro on AIX 5.1.
3902         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
3903         macro.
3904         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
3905
3906 2011-10-09  Bruno Haible  <bruno@clisp.org>
3907
3908         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
3909         * modules/snprintf-posix-tests (configure.ac): Require
3910         gl_LONG_DOUBLE_VS_DOUBLE.
3911         * modules/sprintf-posix-tests (configure.ac): Likewise.
3912         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
3913         * modules/vasprintf-posix-tests (configure.ac): Likewise.
3914         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
3915         * modules/vsprintf-posix-tests (configure.ac): Likewise.
3916         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
3917         tests on platforms where 'long double' is the same as 'double'.
3918         * tests/test-sprintf-posix.h (test_function): Likewise.
3919         * tests/test-vasnprintf-posix.c (test_function): Likewise.
3920         * tests/test-vasprintf-posix.c (test_function): Likewise.
3921
3922         *printf: Fix for platforms where 'long double' == 'double'.
3923         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
3924         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
3925         * modules/dprintf-posix (Files): Add m4/math_h.m4.
3926         * modules/fprintf-posix (Files): Likewise.
3927         * modules/obstack-printf-posix (Files): Likewise.
3928         * modules/snprintf-posix (Files): Likewise.
3929         * modules/sprintf-posix (Files): Likewise.
3930         * modules/vasnprintf (Files): Likewise.
3931         * modules/vasnprintf-posix (Files): Likewise.
3932         * modules/vasprintf-posix (Files): Likewise.
3933         * modules/vdprintf-posix (Files): Likewise.
3934         * modules/vfprintf-posix (Files): Likewise.
3935         * modules/vsnprintf-posix (Files): Likewise.
3936         * modules/vsprintf-posix (Files): Likewise.
3937         * modules/unistdio/u8-vasnprintf (Files): Likewise.
3938         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
3939         * modules/unistdio/u16-vasnprintf (Files): Likewise.
3940         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
3941         * modules/unistdio/u32-vasnprintf (Files): Likewise.
3942         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
3943         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
3944
3945         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
3946         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
3947         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
3948         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
3949         'long double'.
3950         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
3951
3952         isinf: Fix for platforms where 'long double' == 'double'.
3953         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
3954         Don't blindly assume 80-bit 'long double'.
3955
3956         isfinite: Fix for platforms where 'long double' == 'double'.
3957         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
3958         Don't blindly assume 80-bit 'long double'.
3959
3960         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
3961         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
3962         * modules/isfinite-tests (configure.ac): Require
3963         gl_LONG_DOUBLE_VS_DOUBLE.
3964         * modules/isinf-tests (configure.ac): Likewise.
3965         * modules/isnan-tests (configure.ac): Likewise.
3966         * modules/isnanl-tests (configure.ac): Likewise.
3967         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
3968         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
3969         tests on platforms where 'long double' is the same as 'double'.
3970         * tests/test-isinf.c (test_isinfl): Likewise.
3971         * tests/test-isnan.c (test_long_double): Likewise.
3972         * tests/test-isnanl.h (main): Likewise.
3973
3974 2011-10-08  Bruno Haible  <bruno@clisp.org>
3975
3976         Tests for module 'tanhf'.
3977         * modules/tanhf-tests: New file.
3978         * tests/test-tanhf.c: New file.
3979
3980         New module 'tanhf'.
3981         * lib/math.in.h (tanhf): New declaration.
3982         * lib/tanhf.c: New file.
3983         * m4/tanhf.m4: New file.
3984         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
3985         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
3986         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
3987         * modules/tanhf: New file.
3988         * tests/test-math-c++.cc: Check the declaration of tanhf.
3989         * doc/posix-functions/tanhf.texi: Mention the new module.
3990
3991         tanh: Use a .m4 file.
3992         * m4/tanh.m4: New file.
3993         * modules/tanh (Files): Add it.
3994         (configure.ac): Just invoke gl_FUNC_TANH.
3995
3996 2011-10-08  Bruno Haible  <bruno@clisp.org>
3997
3998         Tests for module 'coshf'.
3999         * modules/coshf-tests: New file.
4000         * tests/test-coshf.c: New file.
4001
4002         New module 'coshf'.
4003         * lib/math.in.h (coshf): New declaration.
4004         * lib/coshf.c: New file.
4005         * m4/coshf.m4: New file.
4006         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
4007         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
4008         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
4009         * modules/coshf: New file.
4010         * tests/test-math-c++.cc: Check the declaration of coshf.
4011         * doc/posix-functions/coshf.texi: Mention the new module.
4012
4013         cosh: Use a .m4 file.
4014         * m4/cosh.m4: New file.
4015         * modules/cosh (Files): Add it.
4016         (configure.ac): Just invoke gl_FUNC_COSH.
4017
4018 2011-10-08  Bruno Haible  <bruno@clisp.org>
4019
4020         Tests for module 'sinhf'.
4021         * modules/sinhf-tests: New file.
4022         * tests/test-sinhf.c: New file.
4023
4024         New module 'sinhf'.
4025         * lib/math.in.h (sinhf): New declaration.
4026         * lib/sinhf.c: New file.
4027         * m4/sinhf.m4: New file.
4028         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
4029         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
4030         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
4031         * modules/sinhf: New file.
4032         * tests/test-math-c++.cc: Check the declaration of sinhf.
4033         * doc/posix-functions/sinhf.texi: Mention the new module.
4034
4035         sinh: Use a .m4 file.
4036         * m4/sinh.m4: New file.
4037         * modules/sinh (Files): Add it.
4038         (configure.ac): Just invoke gl_FUNC_SINH.
4039
4040 2011-10-08  Bruno Haible  <bruno@clisp.org>
4041
4042         Tests for module 'atan2f'.
4043         * modules/atan2f-tests: New file.
4044         * tests/test-atan2f.c: New file.
4045
4046         New module 'atan2f'.
4047         * lib/math.in.h (atan2f): New declaration.
4048         * lib/atan2f.c: New file.
4049         * m4/atan2f.m4: New file.
4050         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
4051         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
4052         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
4053         * modules/atan2f: New file.
4054         * tests/test-math-c++.cc: Check the declaration of atan2f.
4055         * doc/posix-functions/atan2f.texi: Mention the new module.
4056
4057         atan2: Use a .m4 file.
4058         * m4/atan2.m4: New file.
4059         * modules/atan2 (Files): Add it.
4060         (configure.ac): Just invoke gl_FUNC_ATAN2.
4061
4062 2011-10-08  Bruno Haible  <bruno@clisp.org>
4063
4064         Tests for module 'atanf'.
4065         * modules/atanf-tests: New file.
4066         * tests/test-atanf.c: New file.
4067
4068         New module 'atanf'.
4069         * lib/math.in.h (atanf): New declaration.
4070         * lib/atanf.c: New file.
4071         * m4/atanf.m4: New file.
4072         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
4073         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
4074         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
4075         * modules/atanf: New file.
4076         * tests/test-math-c++.cc: Check the declaration of atanf.
4077         * doc/posix-functions/atanf.texi: Mention the new module.
4078
4079         atan: Use a .m4 file.
4080         * m4/atan.m4: New file.
4081         * modules/atan (Files): Add it.
4082         (configure.ac): Just invoke gl_FUNC_ATAN.
4083
4084 2011-10-08  Bruno Haible  <bruno@clisp.org>
4085
4086         Tests for module 'acosf'.
4087         * modules/acosf-tests: New file.
4088         * tests/test-acosf.c: New file.
4089
4090         New module 'acosf'.
4091         * lib/math.in.h (acosf): New declaration.
4092         * lib/acosf.c: New file.
4093         * m4/acosf.m4: New file.
4094         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
4095         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
4096         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
4097         * modules/acosf: New file.
4098         * tests/test-math-c++.cc: Check the declaration of acosf.
4099         * doc/posix-functions/acosf.texi: Mention the new module.
4100
4101         acos: Use a .m4 file.
4102         * m4/acos.m4: New file.
4103         * modules/acos (Files): Add it.
4104         (configure.ac): Just invoke gl_FUNC_ACOS.
4105
4106 2011-10-08  Bruno Haible  <bruno@clisp.org>
4107
4108         Tests for module 'asinf'.
4109         * modules/asinf-tests: New file.
4110         * tests/test-asinf.c: New file.
4111
4112         New module 'asinf'.
4113         * lib/math.in.h (asinf): New declaration.
4114         * lib/asinf.c: New file.
4115         * m4/asinf.m4: New file.
4116         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
4117         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
4118         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
4119         * modules/asinf: New file.
4120         * tests/test-math-c++.cc: Check the declaration of asinf.
4121         * doc/posix-functions/asinf.texi: Mention the new module.
4122
4123         asin: Use a .m4 file.
4124         * m4/asin.m4: New file.
4125         * modules/asin (Files): Add it.
4126         (configure.ac): Just invoke gl_FUNC_ASIN.
4127
4128 2011-10-08  Bruno Haible  <bruno@clisp.org>
4129
4130         Tests for module 'tanf'.
4131         * modules/tanf-tests: New file.
4132         * tests/test-tanf.c: New file.
4133
4134         New module 'tanf'.
4135         * lib/math.in.h (tanf): New declaration.
4136         * lib/tanf.c: New file.
4137         * m4/tanf.m4: New file.
4138         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
4139         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
4140         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
4141         * modules/tanf: New file.
4142         * tests/test-math-c++.cc: Check the declaration of tanf.
4143         * doc/posix-functions/tanf.texi: Mention the new module.
4144
4145         tan: Use a .m4 file.
4146         * m4/tan.m4: New file.
4147         * modules/tan (Files): Add it.
4148         (configure.ac): Just invoke gl_FUNC_TAN.
4149
4150 2011-10-08  Bruno Haible  <bruno@clisp.org>
4151
4152         Tests for module 'cosf'.
4153         * modules/cosf-tests: New file.
4154         * tests/test-cosf.c: New file.
4155
4156         New module 'cosf'.
4157         * lib/math.in.h (cosf): New declaration.
4158         * lib/cosf.c: New file.
4159         * m4/cosf.m4: New file.
4160         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
4161         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
4162         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
4163         * modules/cosf: New file.
4164         * tests/test-math-c++.cc: Check the declaration of cosf.
4165         * doc/posix-functions/cosf.texi: Mention the new module.
4166
4167         cos: Use a .m4 file.
4168         * m4/cos.m4: New file.
4169         * modules/cos (Files): Add it.
4170         (configure.ac): Just invoke gl_FUNC_COS.
4171
4172 2011-10-08  Bruno Haible  <bruno@clisp.org>
4173
4174         Tests for module 'sinf'.
4175         * modules/sinf-tests: New file.
4176         * tests/test-sinf.c: New file.
4177
4178         New module 'sinf'.
4179         * lib/math.in.h (sinf): New declaration.
4180         * lib/sinf.c: New file.
4181         * m4/sinf.m4: New file.
4182         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
4183         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
4184         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
4185         * modules/sinf: New file.
4186         * tests/test-math-c++.cc: Check the declaration of sinf.
4187         * doc/posix-functions/sinf.texi: Mention the new module.
4188
4189         sin: Use a .m4 file.
4190         * m4/sin.m4: New file.
4191         * modules/sin (Files): Add it.
4192         (configure.ac): Just invoke gl_FUNC_SIN.
4193
4194 2011-10-08  Bruno Haible  <bruno@clisp.org>
4195
4196         Tests for module 'powf'.
4197         * modules/powf-tests: New file.
4198         * tests/test-powf.c: New file.
4199
4200         New module 'powf'.
4201         * lib/math.in.h (powf): New declaration.
4202         * lib/powf.c: New file.
4203         * m4/powf.m4: New file.
4204         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
4205         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
4206         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
4207         * modules/powf: New file.
4208         * tests/test-math-c++.cc: Check the declaration of powf.
4209         * doc/posix-functions/powf.texi: Mention the new module.
4210
4211         pow: Use a .m4 file.
4212         * m4/pow.m4: New file.
4213         * modules/pow (Files): Add it.
4214         (configure.ac): Just invoke gl_FUNC_POW.
4215
4216 2011-10-08  Bruno Haible  <bruno@clisp.org>
4217
4218         Tests for module 'log10f'.
4219         * modules/log10f-tests: New file.
4220         * tests/test-log10f.c: New file.
4221
4222         New module 'log10f'.
4223         * lib/math.in.h (log10f): New declaration.
4224         * lib/log10f.c: New file.
4225         * m4/log10f.m4: New file.
4226         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
4227         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
4228         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
4229         * modules/log10f: New file.
4230         * tests/test-math-c++.cc: Check the declaration of log10f.
4231         * doc/posix-functions/log10f.texi: Mention the new module.
4232
4233         log10: Use a .m4 file.
4234         * m4/log10.m4: New file.
4235         * modules/log10 (Files): Add it.
4236         (configure.ac): Just invoke gl_FUNC_LOG10.
4237
4238 2011-10-08  Bruno Haible  <bruno@clisp.org>
4239
4240         Tests for module 'logf'.
4241         * modules/logf-tests: New file.
4242         * tests/test-logf.c: New file.
4243
4244         New module 'logf'.
4245         * lib/math.in.h (logf): New declaration.
4246         * lib/logf.c: New file.
4247         * m4/logf.m4: New file.
4248         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
4249         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
4250         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
4251         * modules/logf: New file.
4252         * tests/test-math-c++.cc: Check the declaration of logf.
4253         * doc/posix-functions/logf.texi: Mention the new module.
4254
4255         log: Use a .m4 file.
4256         * m4/log.m4: New file.
4257         * modules/log (Files): Add it.
4258         (configure.ac): Just invoke gl_FUNC_LOG.
4259
4260 2011-10-08  Bruno Haible  <bruno@clisp.org>
4261
4262         Tests for module 'expf'.
4263         * modules/expf-tests: New file.
4264         * tests/test-expf.c: New file.
4265
4266         New module 'expf'.
4267         * lib/math.in.h (expf): New declaration.
4268         * lib/expf.c: New file.
4269         * m4/expf.m4: New file.
4270         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
4271         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
4272         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
4273         * modules/expf: New file.
4274         * tests/test-math-c++.cc: Check the declaration of expf.
4275         * doc/posix-functions/expf.texi: Mention the new module.
4276
4277         exp: Use a .m4 file.
4278         * m4/exp.m4: New file.
4279         * modules/exp (Files): Add it.
4280         (configure.ac): Just invoke gl_FUNC_EXP.
4281
4282 2011-10-08  Bruno Haible  <bruno@clisp.org>
4283
4284         Tests for module 'sqrtf'.
4285         * modules/sqrtf-tests: New file.
4286         * tests/test-sqrtf.c: New file.
4287
4288         New module 'sqrtf'.
4289         * lib/math.in.h (sqrtf): New declaration.
4290         * lib/sqrtf.c: New file.
4291         * m4/sqrtf.m4: New file.
4292         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
4293         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
4294         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
4295         * modules/sqrtf: New file.
4296         * tests/test-math-c++.cc: Check the declaration of sqrtf.
4297         * doc/posix-functions/sqrtf.texi: Mention the new module.
4298
4299 2011-10-08  Bruno Haible  <bruno@clisp.org>
4300
4301         Tests: Avoid link failures w.r.t. libintl.
4302         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
4303         $(LIBINTL).
4304         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
4305         $(LIBINTL).
4306         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
4307         against $(LIBINTL).
4308         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
4309         $(LIBINTL).
4310         * modules/openat-tests (Makefile.am): Link test-fchmodat against
4311         $(LIBINTL).
4312         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
4313
4314 2011-10-08  Bruno Haible  <bruno@clisp.org>
4315
4316         pow tests: Defeat compiler optimizations.
4317         * tests/test-pow.c (main): Assign arguments to x and y before use.
4318
4319 2011-10-08  Bruno Haible  <bruno@clisp.org>
4320
4321         gnulib-tool: Improve last commit.
4322         * gnulib-tool (func_modules_transitive_closure): Simplify code.
4323         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
4324         ignore dependencies that are not among the modules list.
4325
4326 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
4327
4328         gnulib-tool: don't follow dependencies to avoided modules
4329         This fixes a bug that is related to the previous one.
4330         * gnulib-tool (func_modules_transitive_closure)
4331         (func_emit_autoconf_snippets):
4332         Check whether a dependency is acceptable before using it.
4333         (--extract-dependencies): Report an error if --avoid is also used,
4334         since this combination of options is not yet supported.
4335
4336         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
4337         Problem reported by Peter Dyballa in
4338         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
4339         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
4340         when echoing "$condition".
4341
4342 2011-10-07  Bruno Haible  <bruno@clisp.org>
4343
4344         Fix documentation about math functions on MacOS X.
4345         * doc/posix-functions/exp2.texi: Don't say the function is missing on
4346         MacOS X 10.5.
4347         * doc/posix-functions/fdim.texi: Likewise.
4348         * doc/posix-functions/feclearexcept.texi: Likewise.
4349         * doc/posix-functions/fegetenv.texi: Likewise.
4350         * doc/posix-functions/fegetround.texi: Likewise.
4351         * doc/posix-functions/feholdexcept.texi: Likewise.
4352         * doc/posix-functions/feraiseexcept.texi: Likewise.
4353         * doc/posix-functions/fesetenv.texi: Likewise.
4354         * doc/posix-functions/fesetround.texi: Likewise.
4355         * doc/posix-functions/fetestexcept.texi: Likewise.
4356         * doc/posix-functions/feupdateenv.texi: Likewise.
4357         * doc/posix-functions/fmax.texi: Likewise.
4358         * doc/posix-functions/fmin.texi: Likewise.
4359         * doc/posix-functions/log2.texi: Likewise.
4360         * doc/posix-functions/modff.texi: Likewise.
4361         * doc/posix-functions/nan.texi: Likewise.
4362         * doc/posix-functions/nanf.texi: Likewise.
4363         * doc/posix-functions/nextafterf.texi: Likewise.
4364         * doc/posix-functions/remquo.texi: Likewise.
4365
4366 2011-10-07  Bruno Haible  <bruno@clisp.org>
4367
4368         modff: Drop assumption about library that defines modff.
4369         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
4370         AC_CHECK_FUNCS.
4371         * modules/modff (Files): Add m4/mathfunc.m4.
4372
4373 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
4374
4375         raise tests: Avoid a GCC warning.
4376         * tests/test-raise.c (handler): Use _Noreturn.
4377
4378 2011-10-07  Bruno Haible  <bruno@clisp.org>
4379
4380         Tests for module 'ldexpf'.
4381         * modules/ldexpf-tests: New file.
4382         * tests/test-ldexpf.c: New file.
4383
4384         New module 'ldexpf'.
4385         * lib/math.in.h (ldexpf): New declaration.
4386         * lib/ldexpf.c: New file.
4387         * m4/ldexpf.m4: New file.
4388         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
4389         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
4390         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
4391         * modules/ldexpf: New file.
4392         * tests/test-math-c++.cc: Check the declaration of ldexpf.
4393         * doc/posix-functions/ldexpf.texi: Mention the new module.
4394
4395 2011-10-06  Bruno Haible  <bruno@clisp.org>
4396
4397         frexpf: Work around problems on IRIX and mingw.
4398         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
4399         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
4400         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
4401         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
4402         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
4403         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
4404         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
4405
4406 2011-10-06  Bruno Haible  <bruno@clisp.org>
4407
4408         fabsf: Drop assumption about library that defines fabsf.
4409         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
4410         AC_CHECK_FUNCS.
4411         * modules/fabsf (Files): Add m4/mathfunc.m4.
4412
4413 2011-10-06  Bruno Haible  <bruno@clisp.org>
4414
4415         frexpf: Drop assumption about library that defines frexpf.
4416         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
4417         'int *', 'float *', 'long double *', 'float', 'long double'.
4418         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
4419         AC_CHECK_FUNCS.
4420         * modules/frexpf (Files): Add m4/mathfunc.m4.
4421
4422         Tests for module 'frexpf'.
4423         * modules/frexpf-tests: New file.
4424         * tests/test-frexpf.c: New file.
4425
4426         New module 'frexpf'.
4427         * lib/math.in.h (frexpf): New declaration.
4428         * lib/frexpf.c: New file.
4429         * m4/frexpf.m4: New file.
4430         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
4431         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
4432         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
4433         * modules/frexpf: New file.
4434         * tests/test-math-c++.cc: Check the declaration of frexpf.
4435         * doc/posix-functions/frexpf.texi: Mention the new module.
4436
4437 2011-10-06  Bruno Haible  <bruno@clisp.org>
4438
4439         math: Sort function declarations of math.in.h.
4440         * lib/math.in.h (frexp, logb): Move declarations.
4441
4442 2011-10-05  Bruno Haible  <bruno@clisp.org>
4443
4444         Tests for module 'modff'.
4445         * modules/modff-tests: New file.
4446         * tests/test-modff.c: New file.
4447
4448         New module 'modff'.
4449         * lib/math.in.h (modff): New declaration.
4450         * lib/modff.c: New file.
4451         * m4/modff.m4: New file.
4452         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
4453         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
4454         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
4455         * modules/modff: New file.
4456         * tests/test-math-c++.cc: Check the declaration of modff.
4457         * doc/posix-functions/modff.texi: Mention the new module.
4458
4459         modf tests: Make test sharper.
4460         * tests/test-modf.c (main): Strengthen upper bound.
4461
4462         modf: Use a .m4 file.
4463         * m4/modf.m4: New file.
4464         * modules/modf (Files): Add it.
4465         (configure.ac): Just invoke gl_FUNC_MODF.
4466
4467 2011-10-05  Bruno Haible  <bruno@clisp.org>
4468
4469         Tests for module 'fmodf'.
4470         * modules/fmodf-tests: New file.
4471         * tests/test-fmodf.c: New file.
4472
4473         New module 'fmodf'.
4474         * lib/math.in.h (fmodf): New declaration.
4475         * lib/fmodf.c: New file.
4476         * m4/fmodf.m4: New file.
4477         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
4478         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
4479         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
4480         * modules/fmodf: New file.
4481         * tests/test-math-c++.cc: Check the declaration of fmodf.
4482         * doc/posix-functions/fmodf.texi: Mention the new module.
4483
4484         fmod: Use a .m4 file.
4485         * m4/fmod.m4: New file.
4486         * modules/fmod (Files): Add it.
4487         (configure.ac): Just invoke gl_FUNC_FMOD.
4488
4489 2011-10-05  Bruno Haible  <bruno@clisp.org>
4490
4491         Tests for module 'fabsf'.
4492         * modules/fabsf-tests: New file.
4493         * tests/test-fabsf.c: New file.
4494
4495         New module 'fabsf'.
4496         * lib/math.in.h (fabsf): New declaration.
4497         * lib/fabsf.c: New file.
4498         * m4/fabsf.m4: New file.
4499         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
4500         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
4501         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
4502         * modules/fabsf: New file.
4503         * tests/test-math-c++.cc: Check the declaration of fabsf.
4504         * doc/posix-functions/fabsf.texi: Mention the new module.
4505
4506         fabs: Use a .m4 file.
4507         * m4/fabs.m4: New file.
4508         * modules/fabs (Files): Add it.
4509         (configure.ac): Just invoke gl_FUNC_FABS.
4510
4511 2011-10-05  Jim Meyering  <meyering@redhat.com>
4512
4513         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
4514         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
4515         ls -lL regression introduced in coreutils-8.12, it does so at the
4516         cost of an additional stat call in the common case.  Besides, now
4517         that the kernel change that prompted commit 95f7c57f has been reverted
4518         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
4519         we have no use for commit 95f7c57f, "file-has-acl: use
4520         acl_extended_file_nofollow if available".
4521
4522 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
4523
4524         file-has-acl: revert unintended change in behavior of ls -L
4525         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
4526         derived from...
4527         (file_has_acl): ...code here.  Call it.
4528         This problem was introduced with 2011-07-22 commit 95f7c57f,
4529         "file-has-acl: use acl_extended_file_nofollow if available".
4530         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
4531
4532 2011-10-03  Bruno Haible  <bruno@clisp.org>
4533
4534         poll: Avoid link errors on MSVC.
4535         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
4536         * modules/poll (Depends-on): Add sockets.
4537         (Link): New section.
4538         * NEWS: Mention the change.
4539         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
4540         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
4541         $(LIB_POLL) instead of $(LIBSOCKET).
4542
4543 2011-10-03  Bruno Haible  <bruno@clisp.org>
4544
4545         sys_select tests: Fix link error on MSVC 9.
4546         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
4547         with $(LIB_SELECT) instead of $(LIBSOCKET).
4548
4549 2011-10-03  Bruno Haible  <bruno@clisp.org>
4550
4551         sys_select: Fix compilation error on mingw.
4552         * lib/sys_select.in.h: On native Windows, include <io.h>.
4553
4554 2011-10-03  Bruno Haible  <bruno@clisp.org>
4555
4556         wmemset: Support for MSVC.
4557         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
4558         whether wmemset() exists.
4559
4560 2011-10-03  Bruno Haible  <bruno@clisp.org>
4561
4562         wmemmove: Support for MSVC.
4563         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
4564         whether wmemmove() exists.
4565
4566 2011-10-03  Bruno Haible  <bruno@clisp.org>
4567
4568         wmemcpy: Support for MSVC.
4569         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
4570         whether wmemcpy() exists.
4571
4572 2011-10-03  Bruno Haible  <bruno@clisp.org>
4573
4574         wmemcmp: Support for MSVC.
4575         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
4576         whether wmemcmp() exists.
4577
4578 2011-10-03  Bruno Haible  <bruno@clisp.org>
4579
4580         wmemchr: Support for MSVC.
4581         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
4582         whether wmemchr() exists.
4583
4584 2011-10-03  Bruno Haible  <bruno@clisp.org>
4585
4586         glthread/*, strsignal: Support for MSVC.
4587         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
4588         including <winsock.h> on MSVC 9.
4589         * lib/glthread/lock.h: Likewise.
4590         * lib/glthread/thread.h: Likewise.
4591         * lib/glthread/tls.h: Likewise.
4592         * lib/glthread/yield.h: Likewise.
4593         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
4594         if HAVE_UNISTD_H is false.
4595         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
4596
4597 2011-10-03  Bruno Haible  <bruno@clisp.org>
4598
4599         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
4600         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
4601         Set to 100000.
4602
4603 2011-10-03  Bruno Haible  <bruno@clisp.org>
4604
4605         acl: Fix specification.
4606         * lib/file-has-acl.c (file_has_acl): Fix specification.
4607
4608 2011-10-03  Bruno Haible  <bruno@clisp.org>
4609
4610         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
4611         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
4612         (compute_curr_prefix, shared_library_fullname,
4613         find_shared_library_fullname, get_shared_library_fullname, relocate):
4614         Use it together with PIC && INSTALLDIR.
4615         Reported by <jojelino@gmail.com>
4616         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
4617
4618 2011-10-01  Jim Meyering  <meyering@redhat.com>
4619
4620         maint.mk: adjust a release-related rule not to require use of gzip
4621         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
4622         Instead, check each file in $(DIST_ARCHIVES).  This is better for
4623         projects that build only .tar.xz files.  Also fix an erroneous test.
4624
4625         test-linkat: don't leave behind a temporary file
4626         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
4627         Otherwise, coreutils' "make distcheck" would fail with this:
4628           Only in /c/cu/tests/torture/coreutils/test/\
4629             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
4630           make[2]: *** [my-distcheck] Error 1
4631
4632         float, math: add omitted file
4633         * lib/itold.c: Add file, required for yesterday's float change.
4634
4635 2011-10-01  Bruno Haible  <bruno@clisp.org>
4636
4637         isinf: Fix for OpenBSD/x86.
4638         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
4639         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
4640         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
4641
4642 2011-10-01  Bruno Haible  <bruno@clisp.org>
4643
4644         isfinite: Fix syntax error in configure test.
4645         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
4646
4647         isfinite: Fix typo.
4648         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
4649         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
4650
4651 2011-10-01  Bruno Haible  <bruno@clisp.org>
4652
4653         nonblocking tests: Fix test failure on Linux/IA-64.
4654         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
4655         Set to 270000.
4656
4657 2011-10-01  Bruno Haible  <bruno@clisp.org>
4658
4659         mkfifoat tests: Fix a test failure on mingw.
4660         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
4661         with error ENOSYS.
4662
4663 2011-09-30  Bruno Haible  <bruno@clisp.org>
4664
4665         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
4666         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
4667         'long double'. Set REPLACE_ITOLD.
4668         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
4669         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
4670         * lib/itold.c: New file.
4671         * modules/float (Files): Add lib/itold.c.
4672         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
4673         (Makefile.am): Substitute REPLACE_ITOLD.
4674         * modules/math (Depends-on): Add float.
4675         (Makefile.am): Substitute REPLACE_ITOLD.
4676         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
4677         * doc/posix-headers/math.texi: Likewise.
4678         * doc/posix-functions/logl.texi: Likewise.
4679
4680 2011-09-30  Bruno Haible  <bruno@clisp.org>
4681
4682         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
4683         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
4684         Set to 140000.
4685
4686 2011-09-30  Bruno Haible  <bruno@clisp.org>
4687
4688         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
4689         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
4690         invocation, say "right after AC_PROG_CC_STDC", not "right after
4691         AC_PROG_CC".
4692         Reported by Gary V. Vaughan <gary@gnu.org>.
4693
4694 2011-09-30  Bruno Haible  <bruno@clisp.org>
4695
4696         Centralize C99 requirement.
4697         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
4698         * modules/stdarg (configure.ac-early): Invoke it instead of
4699         AC_PROG_CC_STDC.
4700         Reported by Gary V. Vaughan and Paul Eggert.
4701
4702 2011-09-29  Bruno Haible  <bruno@clisp.org>
4703
4704         float: Fix LDBL_MAX value on Linux/PowerPC.
4705         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
4706         on Linux/PowerPC.
4707         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
4708         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
4709         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
4710         platform.
4711         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
4712
4713 2011-09-29  Bruno Haible  <bruno@clisp.org>
4714
4715         doc: Improve doc about gl_EARLY.
4716         * doc/gnulib-tool.texi (Initial import): Mention where to place an
4717         AC_PROG_CC_STDC invocation.
4718         Reported by Gary V. Vaughan <gary@gnu.org>.
4719
4720 2011-09-28  Bruno Haible  <bruno@clisp.org>
4721
4722         fgetc, fputc, fread, fwrite tests: Fix link error.
4723         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
4724         on non-MSVC platforms.
4725         * tests/test-fputc.c (main): Likewise.
4726         * tests/test-fread.c (main): Likewise.
4727         * tests/test-fwrite.c (main): Likewise.
4728         Reported by Jim Meyering.
4729
4730 2011-09-27  Bruno Haible  <bruno@clisp.org>
4731
4732         fputc, fwrite tests: Avoid test failure on MSVC.
4733         * tests/test-fgetc.c: Include msvc-inval.h.
4734         (main): Invoke gl_msvc_inval_ensure_handler.
4735         * tests/test-fputc.c: Include msvc-inval.h.
4736         (main): Invoke gl_msvc_inval_ensure_handler.
4737         * tests/test-fread.c: Include msvc-inval.h.
4738         (main): Invoke gl_msvc_inval_ensure_handler.
4739         * tests/test-fwrite.c: Include msvc-inval.h.
4740         (main): Invoke gl_msvc_inval_ensure_handler.
4741         * modules/fgetc-tests (Depends-on): Add msvc-inval.
4742         * modules/fputc-tests (Depends-on): Likewise.
4743         * modules/fread-tests (Depends-on): Likewise.
4744         * modules/fwrite-tests (Depends-on): Likewise.
4745
4746 2011-09-27  Bruno Haible  <bruno@clisp.org>
4747
4748         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
4749         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
4750         (raise): Remove older, duplicated declaration.
4751         (_gl_raise_SIGPIPE): New declaration.
4752         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
4753         (rpl_raise): Remove function.
4754         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
4755         a gnulib-defined SIGPIPE here.
4756         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
4757         'sigprocmask' has detected missing signal-blocking and the module
4758         'sigpipe' is enabled.
4759         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
4760
4761 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
4762
4763         base64-tests: avoid memory leak
4764         * tests/test-base64.c (main): Plug memory leak.
4765
4766         base32: new module
4767         * modules/base32: New module.
4768         * lib/base32.c: New file.
4769         * lib/base32.h: Likewise.
4770         * m4/base32.m4: Likewise.
4771         * modules/base32-tests: New test.
4772         * tests/test-base32.c: Likewise.
4773         * MODULES.html.sh (Misc): Mention it.
4774
4775 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
4776
4777         gnulib: use more-standard license notice wording
4778         * gnulib-tool (func_emit_copyright_notice): When emitting a
4779         license notice into a file, use the standard wording as suggested
4780         by the current information for GNU maintainers, except say "file"
4781         rather than "program".  The new wording gives a license version
4782         number, which addresses an issue raised by Glenn Morris in
4783         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
4784         * m4/onceonly.m4: Use that same wording here, too.
4785
4786         dup2: minor simplification
4787         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
4788         as lib/dup2.c no longer uses 'inline'.
4789
4790 2011-09-25  Bruno Haible  <bruno@clisp.org>
4791
4792         strings: Fix compilation error on MSVC.
4793         * lib/strings.in.h: Include <stddef.h> for size_t.
4794
4795 2011-09-25  Bruno Haible  <bruno@clisp.org>
4796
4797         fflush et al.: Document limitation on MSVC.
4798         * doc/posix-functions/fflush.texi: Document possible crash in handling
4799         mode other than DEFAULT_HANDLING.
4800         * doc/posix-functions/fgetc.texi: Likewise.
4801         * doc/posix-functions/fputc.texi: Likewise.
4802         * doc/posix-functions/fread.texi: Likewise.
4803         * doc/posix-functions/fwrite.texi: Likewise.
4804
4805 2011-09-25  Bruno Haible  <bruno@clisp.org>
4806
4807         msvc-inval: Allow three invalid parameter handling modes.
4808         * lib/msvc-inval.h: Don't include <stdlib.h> here.
4809         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
4810         macros.
4811         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
4812         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
4813         SANE_LIBRARY_HANDLING as a no-op.
4814         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
4815         <stdlib.h>.
4816         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
4817
4818 2011-09-25  Bruno Haible  <bruno@clisp.org>
4819
4820         msvc-inval: Make handler multithread-safe.
4821         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
4822         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
4823         declarations.
4824         (gl_msvc_inval_current): New declaration.
4825         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
4826         Operate on the structure returned by gl_msvc_inval_current().
4827         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
4828         Remove varaiables.
4829         (tls_index, tls_initialized): New variables.
4830         (not_per_thread): New variable.
4831         (gl_msvc_inval_current): New function.
4832         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
4833         returned by gl_msvc_inval_current().
4834
4835 2011-09-25  Bruno Haible  <bruno@clisp.org>
4836
4837         msvc-inval: Install handler globally.
4838         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
4839         !_MSC_VER.
4840         (gl_msvc_invalid_parameter_handler): Remove declaration.
4841         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
4842         declarations.
4843         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
4844         Install the handler globally, don't uninstall it.
4845         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
4846         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
4847         currently valid, call RaiseException instead.
4848         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
4849         for !_MSC_VER.
4850
4851 2011-09-25  Bruno Haible  <bruno@clisp.org>
4852
4853         strerror_r-posix: Fix for MSVC 9.
4854         * lib/strerror_r.c (local_snprintf): New function.
4855         (snprintf): Define to local_snprintf, not to _snprintf.
4856
4857 2011-09-25  Bruno Haible  <bruno@clisp.org>
4858
4859         ftruncate: Support for MSVC 9.
4860         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
4861         (chsize_nothrow): New function.
4862         (chsize): Redefine as a macro.
4863         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
4864         * modules/ftruncate (Depends-on): Add msvc-inval.
4865
4866 2011-09-25  Bruno Haible  <bruno@clisp.org>
4867
4868         New module 'fstat'.
4869         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
4870         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
4871         * lib/fchdir.c (rpl_fstat): Remove function.
4872         * m4/fstat.m4: New file.
4873         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
4874         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
4875         declared.
4876         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
4877         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
4878         * modules/fstat: New file.
4879         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
4880         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
4881         is set.
4882         * doc/posix-functions/fstat.texi: Mention the new module and the
4883         problem on MSVC.
4884         * NEWS: Mention the change.
4885         * modules/acl (Depends-on): Add fstat.
4886         * modules/chdir-safer (Depends-on): Likewise.
4887         * modules/chown (Depends-on): Likewise.
4888         * modules/copy-file (Depends-on): Likewise.
4889         * modules/fchdir (Depends-on): Likewise.
4890         * modules/fdopendir (Depends-on): Likewise.
4891         * modules/fopen (Depends-on): Likewise.
4892         * modules/fts (Depends-on): Likewise.
4893         * modules/getcwd (Depends-on): Likewise.
4894         * modules/isapipe (Depends-on): Likewise.
4895         * modules/linkat (Depends-on): Likewise.
4896         * modules/lseek (Depends-on): Likewise.
4897         * modules/mkdir-p (Depends-on): Likewise.
4898         * modules/open (Depends-on): Likewise.
4899         * modules/openat (Depends-on): Likewise.
4900         * modules/read-file (Depends-on): Likewise.
4901         * modules/renameat (Depends-on): Likewise.
4902         * modules/utimens (Depends-on): Likewise.
4903
4904 2011-09-25  Bruno Haible  <bruno@clisp.org>
4905
4906         linkat: Fix compilation on MSVC 9.
4907         * lib/linkat.c: Don't include <stdint.h>.
4908
4909 2011-09-25  Bruno Haible  <bruno@clisp.org>
4910
4911         fclose: Support for MSVC 9.
4912         * lib/fclose.c: Include msvc-inval.h.
4913         (fclose_nothrow): New function.
4914         (rpl_fclose): Use it.
4915         * modules/fclose (Depends-on): Add msvc-inval.
4916         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
4917
4918 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
4919
4920         dup2: minor simplifications
4921         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
4922         that it's a performance win.
4923         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
4924         ! defined __CYGWIN__)" to "ifdef F_GETFL".
4925
4926 2011-09-24  Jim Meyering  <meyering@redhat.com>
4927
4928         test-futimens: avoid a warning from gcc -Wshadow
4929         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
4930         to avoid a shadowing warning.
4931
4932 2011-09-24  Bruno Haible  <bruno@clisp.org>
4933
4934         fdopen: Support for MSVC 9.
4935         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
4936         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
4937         * lib/fdopen.c: Include msvc-inval.h.
4938         (fdopen_nothrow): New function.
4939         (rpl_fdopen): Use it.
4940         * modules/fdopen (Depends-on): Add msvc-inval.
4941         * modules/fclose-tests (Depends-on): Add fdopen.
4942         * modules/fflush-tests (Depends-on): Likewise.
4943         * modules/fgetc-tests (Depends-on): Likewise.
4944         * modules/fputc-tests (Depends-on): Likewise.
4945         * modules/fread-tests (Depends-on): Likewise.
4946         * modules/freopen-tests (Depends-on): Likewise.
4947         * modules/fseeko-tests (Depends-on): Likewise.
4948         * modules/ftello-tests (Depends-on): Likewise.
4949         * modules/fwrite-tests  (Depends-on): Likewise.
4950         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
4951
4952 2011-09-24  Bruno Haible  <bruno@clisp.org>
4953
4954         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
4955         * modules/fgetc-tests (Depends-on): Add unistd.
4956         * modules/fputc-tests (Depends-on): Likewise.
4957         * modules/fread-tests (Depends-on): Likewise.
4958         * modules/fwrite-tests (Depends-on): Likewise.
4959
4960 2011-09-24  Bruno Haible  <bruno@clisp.org>
4961
4962         dup: Simplify autoconf test.
4963         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
4964         on gl_MSVC_INVAL's result.
4965
4966 2011-09-24  Bruno Haible  <bruno@clisp.org>
4967
4968         Tests for function fwrite().
4969         * modules/fwrite-tests: New file.
4970         * tests/test-fwrite.c: New file.
4971         * modules/stdio-tests (Depends-on): Add fwrite-tests.
4972
4973         Tests for function fread().
4974         * modules/fread-tests: New file.
4975         * tests/test-fread.c: New file.
4976         * modules/stdio-tests (Depends-on): Add fread-tests.
4977
4978         Activate fputc tests.
4979         * modules/stdio-tests (Depends-on): Add fputc-tests.
4980
4981         Enhance fgetc, fputc tests.
4982         * tests/test-fgetc.c (main): Also test the stream's error indicator.
4983         * tests/test-fputc.c (main): Likewise.
4984
4985 2011-09-24  Bruno Haible  <bruno@clisp.org>
4986
4987         write: Support for MSVC 9.
4988         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
4989         is not 1.
4990         * lib/write.c (write_nothrow): New function.
4991         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
4992         not 1. Use write_nothrow.
4993         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
4994         invalid parameter handler.
4995         (gl_PREREQ_WRITE): New macro.
4996         * modules/write (Depends-on): Add msvc-inval.
4997         (configure.ac): Invoke gl_PREREQ_WRITE.
4998         * doc/posix-functions/write.texi: Mention the problem on MSVC.
4999
5000 2011-09-24  Bruno Haible  <bruno@clisp.org>
5001
5002         read: Fix last commit.
5003         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
5004
5005 2011-09-24  Bruno Haible  <bruno@clisp.org>
5006
5007         dup2: Fix last commit.
5008         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
5009         (rpl_dup2): Disable fcntl workaround on native Windows.
5010
5011         sigprocmask: Make code safer.
5012         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
5013         section that changes macro definitions for this compilation unit.
5014
5015 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
5016
5017         dup2: clarify by coalescing Windows-specific material
5018         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
5019         "msvc-nothrow.h"' to the Windows-specific section, so that the
5020         Emacs source need not contain these include files.
5021         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
5022         Windows-specific fixes into this function rather than just the
5023         nothrow fix, as this shortens and clarifies the code.  Always
5024         define as a function, as that's a bit cleaner than having it be
5025         sometimes a function and sometimes a macro.
5026         (rpl_dup2): Move the Windows-specific stuff out of here and into
5027         ms_windows_dup2.  Don't protect the Haiku-related fix with
5028         "#if !defined __linux__", as the same code also works around
5029         a Linux kernel bug, and it doesn't add any system calls on any
5030         platform.  Add comment about FreeBSD 6.1.
5031
5032         sigprocmask: move #include directive
5033         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
5034         Windows-specific section, so that the Emacs source need not
5035         contain msvc-inval.h.
5036
5037 2011-09-23  Bruno Haible  <bruno@clisp.org>
5038
5039         read: Support for MSVC 9.
5040         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
5041         is not 1.
5042         * lib/read.c (read_nothrow): New function.
5043         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
5044         read_nothrow.
5045         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
5046         invalid parameter handler.
5047         (gl_PREREQ_READ): New macro.
5048         * modules/read (Depends-on): Add msvc-inval.
5049         (configure.ac): Invoke gl_PREREQ_READ.
5050         * doc/posix-functions/read.texi: Mention the problem on MSVC.
5051
5052 2011-09-23  Bruno Haible  <bruno@clisp.org>
5053
5054         close: Support for MSVC 9.
5055         * lib/close.c: Include <errno.h>, msvc-inval.h.
5056         (close_nothrow): New function.
5057         (rpl_close): Use it.
5058         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
5059         invalid parameter handler.
5060         * modules/close (Depends-on): Add msvc-inval.
5061         * modules/dup2-tests (Depends-on): Add close.
5062         * modules/dup3-tests (Depends-on): Likewise.
5063         * modules/fcntl-tests (Depends-on): Likewise.
5064         * modules/spawn-pipe-tests (Depends-on): Likewise.
5065         * modules/unistd-safer-tests (Depends-on): Likewise.
5066         * doc/posix-functions/close.texi: Mention the problem on MSVC.
5067
5068 2011-09-23  Bruno Haible  <bruno@clisp.org>
5069
5070         New module 'dup'.
5071         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
5072         Allow replacement.
5073         * lib/dup.c: New file.
5074         * lib/fchdir.c (rpl_dup): Remove function.
5075         * m4/dup.m4: New file.
5076         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
5077         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
5078         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
5079         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
5080         * modules/dup: New file.
5081         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
5082         'dup' module is in use.
5083         * modules/fdopendir (Depends-on): Add dup.
5084         * modules/fdutimensat-tests (Depends-on): Likewise.
5085         * modules/fts (Depends-on): Likewise.
5086         * modules/futimens-tests (Depends-on): Likewise.
5087         * modules/posix_spawnp-tests (Depends-on): Likewise.
5088         * modules/unistd-safer-tests (Depends-on): Likewise.
5089         * modules/utimens-tests (Depends-on): Likewise.
5090         * doc/posix-functions/dup.texi: Mention the new module and the problem
5091         on MSVC.
5092
5093 2011-09-23  Bruno Haible  <bruno@clisp.org>
5094
5095         getdtablesize: Support for MSVC 9.
5096         * lib/getdtablesize.c: Include msvc-inval.h.
5097         (_setmaxstdio_nothrow): New function.
5098         (_setmaxstdio): Redefine it.
5099         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
5100         * modules/getdtablesize (Depends-on): Add msvc-inval.
5101         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
5102
5103 2011-09-23  Bruno Haible  <bruno@clisp.org>
5104
5105         signal-h: Rename from signal.
5106         * modules/signal-h: Renamed from modules/signal.
5107         * modules/pthread_sigmask (Depends-on): Update.
5108         * modules/raise (Depends-on): Likewise.
5109         * modules/sigaction (Depends-on): Likewise.
5110         * modules/sigpipe (Depends-on): Likewise.
5111         * modules/sigprocmask (Depends-on): Likewise.
5112         * modules/sys_select (Depends-on): Likewise.
5113         * modules/signal-h-tests: Renamed from modules/signal-tests.
5114         (Files, Depends-on, Makefile.am): Update.
5115         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
5116         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
5117         (Files, Makefile.am): Update.
5118         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
5119         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
5120         * modules/signal: New placeholder file.
5121         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
5122         * doc/posix-headers/signal.texi: Update.
5123         * NEWS: Mention the change.
5124
5125 2011-09-23  Bruno Haible  <bruno@clisp.org>
5126
5127         sigprocmask: Avoid crashes through signal() on MSVC 9.
5128         * lib/sigprocmask.c: Include msvc-inval.h.
5129         (signal_nothrow): New function.
5130         (signal): Redefine it.
5131         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
5132         * modules/sigprocmask (Depends-on): Add msvc-inval.
5133         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
5134
5135 2011-09-23  Bruno Haible  <bruno@clisp.org>
5136
5137         Tests for module 'raise'.
5138         * modules/raise-tests: New file.
5139         * tests/test-raise.c: New file.
5140
5141         raise: Support for MSVC.
5142         * lib/signal.in.h (raise): New declaration.
5143         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
5144         for native Windows platforms.
5145         * m4/raise.m4: New file.
5146         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
5147         HAVE_RAISE, REPLACE_RAISE.
5148         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
5149         REPLACE_RAISE.
5150         * modules/raise (Status, Notice): Remove fields.
5151         (Files): Add m4/raise.m4.
5152         (Depends-on): Add signal, msvc-inval.
5153         (configure.ac): Use the common idioms.
5154         (Maintainer): Add me.
5155         * tests/test-signal-c++.cc: Check the signature of raise.
5156         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
5157
5158 2011-09-23  Bruno Haible  <bruno@clisp.org>
5159
5160         pipe2: Fix compilation on pre-C99 compilers.
5161         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
5162
5163 2011-09-23  Bruno Haible  <bruno@clisp.org>
5164
5165         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
5166         * lib/msvc-nothrow.h: New file.
5167         * lib/msvc-nothrow.c: New file.
5168         * m4/msvc-nothrow.m4: New file.
5169         * modules/msvc-nothrow: New file.
5170         * lib/dup2.c: Include msvc-nothrow.h.
5171         (rpl_dup2): No need to protect _get_osfhandle call here.
5172         * lib/accept4.c: Include msvc-nothrow.h.
5173         * lib/error.c: Likewise.
5174         * lib/fcntl.c: Likewise.
5175         * lib/lseek.c: Likewise.
5176         * lib/nonblocking.c: Likewise.
5177         * lib/poll.c: Likewise.
5178         * lib/read.c: Likewise.
5179         * lib/select.c: Likewise.
5180         * lib/sockets.h: Likewise.
5181         * lib/sockets.c: Likewise.
5182         * lib/stdio-read.c: Likewise.
5183         * lib/stdio-write.c: Likewise.
5184         * lib/write.c: Likewise.
5185         * lib/w32sock.h: Likewise.
5186         * lib/w32spawn.h: Likewise.
5187         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
5188         * lib/fsync.c: Likewise.
5189         * lib/isapipe.c: Likewise.
5190         * modules/dup2 (Depends-on): Add msvc-nothrow.
5191         * modules/accept4 (Depends-on): Likewise.
5192         * modules/error (Depends-on): Likewise.
5193         * modules/fcntl (Depends-on): Likewise.
5194         * modules/lseek (Depends-on): Likewise.
5195         * modules/nonblocking (Depends-on): Likewise.
5196         * modules/poll (Depends-on): Likewise.
5197         * modules/read (Depends-on): Likewise.
5198         * modules/select (Depends-on): Likewise.
5199         * modules/sockets (Depends-on): Likewise.
5200         * modules/sigpipe (Depends-on): Likewise.
5201         * modules/write (Depends-on): Likewise.
5202         * modules/accept (Depends-on): Likewise.
5203         * modules/bind (Depends-on): Likewise.
5204         * modules/connect (Depends-on): Likewise.
5205         * modules/gethostname (Depends-on): Likewise.
5206         * modules/getpeername (Depends-on): Likewise.
5207         * modules/getsockname (Depends-on): Likewise.
5208         * modules/getsockopt (Depends-on): Likewise.
5209         * modules/ioctl (Depends-on): Likewise.
5210         * modules/listen (Depends-on): Likewise.
5211         * modules/recv (Depends-on): Likewise.
5212         * modules/recvfrom (Depends-on): Likewise.
5213         * modules/send (Depends-on): Likewise.
5214         * modules/sendto (Depends-on): Likewise.
5215         * modules/setsockopt (Depends-on): Likewise.
5216         * modules/shutdown (Depends-on): Likewise.
5217         * modules/socket (Depends-on): Likewise.
5218         * modules/execute (Depends-on): Likewise.
5219         * modules/spawn-pipe (Depends-on): Likewise.
5220         * modules/flock (Depends-on): Likewise.
5221         * modules/fsync (Depends-on): Likewise.
5222         * modules/isapipe (Depends-on): Likewise.
5223         * tests/test-cloexec.c: Include msvc-nothrow.h.
5224         * tests/test-dup-safer.c: Likewise.
5225         * tests/test-dup2.c: Likewise.
5226         * tests/test-dup3.c: Likewise.
5227         * tests/test-fcntl.c: Likewise.
5228         * tests/test-pipe.c: Likewise.
5229         * tests/test-pipe2.c: Likewise.
5230         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
5231         * modules/unistd-safer-tests (Depends-on): Likewise.
5232         * modules/dup2-tests (Depends-on): Likewise.
5233         * modules/dup3-tests (Depends-on): Likewise.
5234         * modules/fcntl-tests (Depends-on): Likewise.
5235         * modules/pipe-posix-tests (Depends-on): Likewise.
5236         * modules/pipe2-tests (Depends-on): Likewise.
5237
5238 2011-09-23  Bruno Haible  <bruno@clisp.org>
5239
5240         dup2: Make code more maintainable.
5241         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
5242         (rpl_dup2): Use it.
5243         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
5244         * modules/dup2 (configure.ac): Invoke it.
5245         Reported by Paul Eggert.
5246
5247 2011-09-23  Bruno Haible  <bruno@clisp.org>
5248
5249         msvc-inval: Fix compilation error.
5250         * lib/msvc-inval.h: Include <excpt.h>.
5251
5252 2011-09-23  Bruno Haible  <bruno@clisp.org>
5253
5254         mkdir: Tweak for MSVC 9.
5255         * lib/sys_stat.in.h: Update comments.
5256         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
5257
5258         Tests for module 'chdir'.
5259         * modules/chdir-tests: New file.
5260         * tests/test-chdir.c: New file.
5261
5262         New module 'chdir'.
5263         * modules/chdir: New file.
5264         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
5265         (chdir): New declaration.
5266         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
5267         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
5268         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
5269         * tests/test-unistd-c++.cc: Check signature of chdir.
5270         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
5271         * modules/chdir-long (Depends-on): Add chdir.
5272         * modules/fchdir (Depends-on): Likewise.
5273         * modules/rename (Depends-on): Likewise.
5274         * modules/savewd (Depends-on): Likewise.
5275
5276         rmdir: Support for mingw, MSVC 9.
5277         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
5278         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
5279
5280         getcwd: Tweak for MSVC 9.
5281         * lib/unistd.in.h: Update comments.
5282         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
5283
5284 2011-09-22  Bruno Haible  <bruno@clisp.org>
5285
5286         strerror_r-posix: Avoid a link error on MSVC.
5287         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
5288         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
5289
5290 2011-09-22  Bruno Haible  <bruno@clisp.org>
5291
5292         select: Avoid link errors on MSVC.
5293         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
5294         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
5295         * modules/pselect (Link): Likewise.
5296         * NEWS: Mention the change.
5297         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
5298         test-select-stdin against $(LIB_SELECT).
5299         * modules/pselect-tests (Makefile.am): Link test-pselect against
5300         $(LIB_SELECT).
5301
5302 2011-09-22  Bruno Haible  <bruno@clisp.org>
5303
5304         select: Avoid compilation error on MSVC.
5305         * lib/select.c: Don't include <stdbool.h>.
5306
5307 2011-09-21  Bruno Haible  <bruno@clisp.org>
5308
5309         Consolidate all uses of PATH_MAX in *.m4 files.
5310         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
5311         macros.
5312         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
5313         and gl_PATHMAX_SNIPPET.
5314         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
5315         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
5316         * modules/chdir-long (Files): Add m4/pathmax.m4.
5317         * modules/getcwd (Files): Likewise.
5318
5319 2011-09-21  Bruno Haible  <bruno@clisp.org>
5320
5321         ftruncate: Un-deprecate, concentrate on Win32 support.
5322         * modules/ftruncate (Status, Notice): Remove sections.
5323         (Depends-on): Add largefile.
5324         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
5325         non-mingw platforms.
5326         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
5327         include <io.h>.
5328         * modules/perror-tests (Depends-on): Add ftruncate.
5329         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
5330         'ftruncate' module.
5331
5332 2011-09-21  Bruno Haible  <bruno@clisp.org>
5333
5334         Add dependencies to new dirent related modules.
5335         * modules/opendir (Depends-on): Add closedir.
5336         * modules/getcwd (Depends-on): Add opendir, closedir.
5337         * modules/dirent-safer-tests (Depends-on): Likewise.
5338         * modules/fdopendir-tests (Depends-on): Likewise.
5339         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
5340         * modules/renameat-tests (Depends-on): Likewise.
5341
5342 2011-09-21  Bruno Haible  <bruno@clisp.org>
5343
5344         opendir: Avoid compilation error on mingw.
5345         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
5346         * modules/opendir (Depends-on): Add unistd.
5347
5348 2011-09-21  Bruno Haible  <bruno@clisp.org>
5349
5350         ftruncate tests: Avoid a test failure on mingw.
5351         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
5352
5353 2011-09-21  Bruno Haible  <bruno@clisp.org>
5354
5355         select tests: Avoid test failures on OSF/1 5.1 and mingw.
5356         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
5357         native Windows.
5358
5359 2011-09-21  Bruno Haible  <bruno@clisp.org>
5360
5361         New module 'fdopen'.
5362         * lib/stdio.in.h (fdopen): New declaration.
5363         * lib/fdopen.c: New file.
5364         * m4/fdopen.m4: New file.
5365         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
5366         REPLACE_FDOPEN.
5367         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
5368         REPLACE_FDOPEN.
5369         * modules/fdopen: New file.
5370         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
5371         * tests/test-stdio-c++.cc: Check signature of fdopen.
5372         * doc/posix-functions/fdopen.texi: Mention the new module.
5373
5374 2011-09-21  Bruno Haible  <bruno@clisp.org>
5375
5376         unlockpt tests: Avoid test failure on NetBSD 5.1.
5377         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
5378         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
5379
5380 2011-09-21  Bruno Haible  <bruno@clisp.org>
5381
5382         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
5383         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
5384         * tests/test-getlogin_r.c (main): Likewise.
5385
5386 2011-09-20  Bruno Haible  <bruno@clisp.org>
5387
5388         time tests: Don't require pid_t.
5389         * doc/posix-headers/time.texi: Revert last change.
5390         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
5391         * tests/test-time.c: Comment out the check for pid_t.
5392
5393 2011-09-20  Bruno Haible  <bruno@clisp.org>
5394
5395         fsync tests: Avoid a test failure on mingw.
5396         * tests/test-fsync.c (main): Allow a failure with EIO.
5397
5398 2011-09-20  Bruno Haible  <bruno@clisp.org>
5399
5400         euidaccess: Update comments.
5401         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
5402
5403 2011-09-20  Bruno Haible  <bruno@clisp.org>
5404
5405         Ensure EBADF returns for socket functions on mingw.
5406         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
5407         descriptor is invalid.
5408         * lib/bind.c (rpl_bind): Likewise.
5409         * lib/connect.c (rpl_connect): Likewise.
5410         * lib/getpeername.c (rpl_getpeername): Likewise.
5411         * lib/getsockname.c (rpl_getsockname): Likewise.
5412         * lib/getsockopt.c (rpl_getsockopt): Likewise.
5413         * lib/listen.c (rpl_listen): Likewise.
5414         * lib/recv.c (rpl_recv): Likewise.
5415         * lib/recvfrom.c (rpl_recvfrom): Likewise.
5416         * lib/send.c (rpl_send): Likewise.
5417         * lib/sendto.c (rpl_sendto): Likewise.
5418         * lib/setsockopt.c (rpl_setsockopt): Likewise.
5419         * lib/shutdown.c (rpl_shutdown): Likewise.
5420
5421 2011-09-20  Bruno Haible  <bruno@clisp.org>
5422
5423         select tests: EBADF tests.
5424         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
5425         test_bad_fd): New functions.
5426         (test_function): Invoke also test_bad_fd.
5427
5428 2011-09-20  Bruno Haible  <bruno@clisp.org>
5429
5430         Tests for module 'posix_spawn_file_actions_addopen.
5431         * modules/posix_spawn_file_actions_addopen-tests: New file.
5432         * tests/test-posix_spawn_file_actions_addopen.c: New file.
5433
5434         Tests for module 'posix_spawn_file_actions_adddup2'.
5435         * modules/posix_spawn_file_actions_adddup2-tests: New file.
5436         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
5437
5438         Tests for module 'posix_spawn_file_actions_addclose'.
5439         * modules/posix_spawn_file_actions_addclose-tests: New file.
5440         * tests/test-posix_spawn_file_actions_addclose.c: New file.
5441
5442 2011-09-20  Bruno Haible  <bruno@clisp.org>
5443
5444         Tests for module 'unlockpt'.
5445         * modules/unlockpt-tests: New file.
5446         * tests/test-unlockpt.c: New file.
5447         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
5448
5449         Tests for module 'grantpt'.
5450         * modules/grantpt-tests: New file.
5451         * tests/test-grantpt.c: New file.
5452         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
5453
5454 2011-09-20  Bruno Haible  <bruno@clisp.org>
5455
5456         freopen tests: EBADF tests.
5457         * tests/test-freopen.c: Include errno.h, unistd.h.
5458         (main): Add tests for EBADF, commented out for the moment.
5459
5460         fclose tests: EBADF tests.
5461         * tests/test-fclose.c (main): Add tests for EBADF.
5462
5463         fflush tests: EBADF tests.
5464         * tests/test-fflush.c: Include errno.h, macros.h.
5465         (main): Add tests for EBADF.
5466
5467         ftello tests: EBADF tests.
5468         * tests/test-ftello4.sh: New file.
5469         * tests/test-ftello4.c: New file.
5470         * modules/ftello-tests (Files): Add them.
5471         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
5472
5473         fseeko tests: EBADF tests.
5474         * tests/test-fseeko4.sh: New file.
5475         * tests/test-fseeko4.c: New file.
5476         * modules/fseeko-tests (Files): Add them.
5477         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
5478
5479         Tests for function fputc().
5480         * modules/fputc-tests: New file.
5481         * tests/test-fputc.c: New file.
5482         * modules/stdio-tests (Depends-on): Add fputc-tests.
5483
5484         Tests for function fgetc().
5485         * modules/fgetc-tests: New file.
5486         * tests/test-fgetc.c: New file.
5487         * modules/stdio-tests (Depends-on): Add fgetc-tests.
5488
5489         Tests for function fdopen().
5490         * modules/fdopen-tests: New file.
5491         * tests/test-fdopen.c: New file.
5492         * modules/stdio-tests (Depends-on): Add fdopen-tests.
5493
5494         Tests for module 'vdprintf'.
5495         * modules/vdprintf-tests: New file.
5496         * tests/test-vdprintf.c: New file.
5497
5498         Tests for module 'dprintf'.
5499         * modules/dprintf-tests: New file.
5500         * tests/test-dprintf.c: New file.
5501
5502 2011-09-20  Bruno Haible  <bruno@clisp.org>
5503
5504         Tests for module 'ioctl'.
5505         * modules/ioctl-tests: New file.
5506         * tests/test-ioctl.c: New file.
5507
5508 2011-09-20  Bruno Haible  <bruno@clisp.org>
5509
5510         fcntl tests: EBADF tests.
5511         * tests/test-fcntl.c (main): Add more tests for EBADF.
5512
5513 2011-09-20  Bruno Haible  <bruno@clisp.org>
5514
5515         utimensat tests: EBADF tests.
5516         * tests/test-utimensat.c (main): Add tests for EBADF.
5517
5518         renameat tests: EBADF tests.
5519         * tests/test-renameat.c (main): Add tests for EBADF.
5520
5521         mkfifoat tests: EBADF tests.
5522         * tests/test-mkfifoat.c (main): Add tests for EBADF.
5523
5524         readlinkat tests: EBADF tests.
5525         * tests/test-readlinkat.c (main): Add tests for EBADF.
5526
5527         symlinkat tests: EBADF tests.
5528         * tests/test-symlinkat.c (main): Add tests for EBADF.
5529
5530         linkat tests: EBADF tests.
5531         * tests/test-linkat.c (main): Add tests for EBADF.
5532
5533         Tests for module 'faccessat'.
5534         * modules/faccessat-tests: New file.
5535         * tests/test-faccessat.c: New file.
5536
5537         fdopendir tests: EBADF tests.
5538         * tests/test-fdopendir.c (main): Add more tests for EBADF.
5539
5540         openat tests: EBADF tests.
5541         * tests/test-fchownat.c (main): Add tests for EBADF.
5542         * tests/test-fstatat.c (main): Likewise.
5543         * tests/test-mkdirat.c (main): Likewise.
5544         * tests/test-openat.c (main): Likewise.
5545         * tests/test-unlinkat.c (main): Likewise.
5546         * tests/test-fchmodat.c: New file.
5547         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
5548         (Makefile.am): Also run 'test-fchmodat'.
5549
5550 2011-09-20  Bruno Haible  <bruno@clisp.org>
5551
5552         utimens, futimens, fdutimensat tests: EBADF tests.
5553         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
5554
5555         Tests for function fstat().
5556         * modules/fstat-tests: New file.
5557         * tests/test-fstat.c: New file.
5558         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
5559
5560 2011-09-20  Bruno Haible  <bruno@clisp.org>
5561
5562         test-ttyname_r tests: EBADF tests.
5563         * tests/test-ttyname_r.c (main): Add tests for EBADF.
5564
5565         Tests for module 'isatty'.
5566         * modules/isatty-tests: New file.
5567         * tests/test-isatty.c: New file.
5568
5569         Tests for module 'write'.
5570         * modules/write-tests: New file.
5571         * tests/test-write.c: New file.
5572
5573         Tests for module 'read'.
5574         * modules/read-tests: New file.
5575         * tests/test-read.c: New file.
5576
5577         pwrite tests: EBADF tests.
5578         * tests/test-pwrite.c (main): Add tests for EBADF.
5579
5580         pread tests: EBADF tests.
5581         * tests/test-pread.c (main): Add tests for EBADF.
5582
5583         lseek tests: EBADF tests.
5584         * tests/test-lseek.c (main): Add more tests for EBADF.
5585
5586         Tests for module 'ftruncate'.
5587         * modules/ftruncate-tests: New file.
5588         * tests/test-ftruncate.sh: New file.
5589         * tests/test-ftruncate.c: New file.
5590
5591         fsync tests: EBADF tests.
5592         * tests/test-fsync.c (main): Add more tests for EBADF.
5593
5594         fdatasync tests: EBADF tests.
5595         * tests/test-fdatasync.c (main): Add more tests for EBADF.
5596
5597         Tests for module 'fchown'.
5598         * modules/fchown-tests: New file.
5599         * tests/test-fchown.c: New file.
5600
5601         Tests for module 'fchmod'.
5602         * modules/fchmod-tests: New file.
5603         * tests/test-fchmod.c: New file.
5604
5605         fchdir tests: EBADF tests.
5606         * tests/test-fchdir.c (main): Add more tests for EBADF.
5607
5608         dup2 tests: EBADF tests.
5609         * tests/test-dup2.c (main): Add more tests for EBADF.
5610
5611         Tests for module 'dup'.
5612         * modules/dup-tests: New file.
5613         * tests/test-dup.c: New file.
5614
5615         Tests for module 'close'.
5616         * modules/close-tests: New file.
5617         * tests/test-close.c: New file.
5618
5619 2011-09-20  Bruno Haible  <bruno@clisp.org>
5620
5621         Tests for module 'shutdown'.
5622         * modules/shutdown-tests: New file.
5623         * tests/test-shutdown.c: New file.
5624
5625         Tests for module 'setsockopt'.
5626         * modules/setsockopt-tests: New file.
5627         * tests/test-setsockopt.c: New file.
5628
5629         Tests for module 'sendto'.
5630         * modules/sendto-tests: New file.
5631         * tests/test-sendto.c: New file.
5632
5633         Tests for module 'send'.
5634         * modules/send-tests: New file.
5635         * tests/test-send.c: New file.
5636
5637         Tests for module 'recvfrom'.
5638         * modules/recvfrom-tests: New file.
5639         * tests/test-recvfrom.c: New file.
5640
5641         Tests for module 'recv'.
5642         * modules/recv-tests: New file.
5643         * tests/test-recv.c: New file.
5644
5645         Tests for module 'listen'.
5646         * modules/listen-tests: New file.
5647         * tests/test-listen.c: New file.
5648
5649         Tests for module 'getsockopt'.
5650         * modules/getsockopt-tests: New file.
5651         * tests/test-getsockopt.c: New file.
5652
5653         Tests for module 'getsockname'.
5654         * modules/getsockname-tests: New file.
5655         * tests/test-getsockname.c: New file.
5656
5657         Tests for module 'getpeername'.
5658         * modules/getpeername-tests: New file.
5659         * tests/test-getpeername.c: New file.
5660
5661         Tests for module 'connect'.
5662         * modules/connect-tests: New file.
5663         * tests/test-connect.c: New file.
5664
5665         Tests for module 'bind'.
5666         * modules/bind-tests: New file.
5667         * tests/test-bind.c: New file.
5668
5669         accept4 tests: Fix for native Windows.
5670         * tests/test-accept4.c: Include sockets.h.
5671         (main): Invoke gl_sockets_startup.
5672         * modules/accept4-tests (Depends-on): Add sockets.
5673
5674         accept tests: Fix for native Windows.
5675         * tests/test-accept.c: Include sockets.h.
5676         (main): Invoke gl_sockets_startup.
5677         * modules/accept-tests (Depends-on): Add sockets.
5678
5679 2011-09-19  Bruno Haible  <bruno@clisp.org>
5680
5681         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
5682         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
5683         do...while(0).
5684         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
5685         Suggested by Paul Eggert.
5686
5687 2011-09-19  Bruno Haible  <bruno@clisp.org>
5688
5689         sched: Ensure pid_t is defined.
5690         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
5691         not define pid_t.
5692         * lib/sched.in.h: Include <sys/types.h>.
5693         * doc/posix-headers/sched.texi: Mention the pid_t problem.
5694         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5695
5696 2011-09-19  Bruno Haible  <bruno@clisp.org>
5697
5698         msvc-inval: Ensure the entire expansion is a single statement.
5699         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
5700         of braces.
5701
5702 2011-09-19  Jim Meyering  <meyering@redhat.com>
5703
5704         tests: use printf, not echo in init.sh's warn_ function
5705         * tests/init.sh (warn_): Use printf, not echo.  The latter would
5706         misbehave when given strings containing a backslash or starting
5707         with e.g., -n.  James Youngman suggested setting IFS.
5708
5709 2011-09-19  Eric Blake  <eblake@redhat.com>
5710
5711         futimens: enhance test
5712         * tests/test-futimens.h (test_futimens): Also check for EBADF on
5713         closed non-negative fd.
5714
5715         date: accept 'hence' as opposite of 'ago'
5716         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
5717         * tests/test-parse-datetime.c (main): Enhance test.
5718         Suggested by Jesse Wilson.
5719
5720 2011-09-19  Jim Meyering  <meyering@redhat.com>
5721
5722         getcwd: don't fail in a deep directory on a system without openat
5723         Before this change, getcwd would fail when called from a directory
5724         of depth PATH_MAX / 3 or greater.  That was due to the fact that
5725         the non-openat implementation used "..", "../..", "../../..", etc.
5726         to access ancestor directories.  With too many, that string would
5727         be longer than PATH_MAX.
5728         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
5729         using gnulib's openat replacement.
5730         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
5731         we're using the replacement function.
5732
5733 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
5734
5735         maint.mk: avoid warnings from perl about missing files
5736         * top/maint.mk (def_sym_regex): Ignore files listed in
5737         $(gl_other_headers_) that do not exist, say because a project
5738         does not use a corresponding module.
5739
5740 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
5741
5742         stat: use pathmax.h only if needed
5743         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
5744         This is better for Emacs, which does not have a mingw port and
5745         therefore can avoid the pathmax module.
5746
5747         utimens: remove dependency on dup2
5748         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
5749         to work around the Linux kernel bug.
5750         * modules/utimens (Depends-on): Remove dup2.
5751
5752 2011-09-18  Bruno Haible  <bruno@clisp.org>
5753
5754         inet_ntop, inet_pton: Look for it also in libresolv.
5755         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
5756         libnsl, search for it in libresolv.
5757         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
5758         Needed on Solaris 7.
5759
5760 2011-09-18  Bruno Haible  <bruno@clisp.org>
5761
5762         accept, accept4 tests: Avoid link error on Solaris.
5763         * modules/accept-tests (Makefile.am): Link test-accept against
5764         $(LIBSOCKET).
5765         * modules/accept4-tests (Makefile.am): Link test-accept4 against
5766         $(LIBSOCKET).
5767
5768         accept4: Avoid link error on Solaris.
5769         * modules/accept4 (Link): New section.
5770
5771         socket functions: Avoid link errors on Solaris.
5772         * modules/accept (Depends-on): Add socketlib.
5773         (Link): New section.
5774         * modules/bind (Depends-on): Add socketlib.
5775         (Link): New section.
5776         * modules/connect (Depends-on): Add socketlib.
5777         (Link): New section.
5778         * modules/getpeername (Depends-on): Add socketlib.
5779         (Link): New section.
5780         * modules/getsockname (Depends-on): Add socketlib.
5781         (Link): New section.
5782         * modules/getsockopt (Depends-on): Add socketlib.
5783         (Link): New section.
5784         * modules/listen (Depends-on): Add socketlib.
5785         (Link): New section.
5786         * modules/recv (Depends-on): Add socketlib.
5787         (Link): New section.
5788         * modules/recvfrom (Depends-on): Add socketlib.
5789         (Link): New section.
5790         * modules/send (Depends-on): Add socketlib.
5791         (Link): New section.
5792         * modules/sendto (Depends-on): Add socketlib.
5793         (Link): New section.
5794         * modules/setsockopt (Depends-on): Add socketlib.
5795         (Link): New section.
5796         * modules/shutdown (Depends-on): Add socketlib.
5797         (Link): New section.
5798         * modules/socket (Depends-on): Add socketlib.
5799         (Link): New section.
5800
5801 2011-09-18  Bruno Haible  <bruno@clisp.org>
5802
5803         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
5804         * tests/test-ptsname.c (main): Terminate the test if it takes longer
5805         than 5 seconds.
5806         * modules/ptsname-tests (configure.ac): Test for alarm.
5807
5808 2011-09-18  Bruno Haible  <bruno@clisp.org>
5809
5810         posix_spawn_file_actions_add*: Fix module dependencies.
5811         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
5812         posix_spawn_file_actions_init.
5813         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
5814         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
5815
5816 2011-09-18  Bruno Haible  <bruno@clisp.org>
5817
5818         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
5819         * tests/test-rename.h (test_rename): Allow error code EEXIST.
5820         * tests/test-renameat.c (main): Likewise.
5821
5822 2011-09-18  Bruno Haible  <bruno@clisp.org>
5823
5824         Tests for module 'accept4'.
5825         * modules/accept4-tests: New file.
5826         * tests/test-accept4.c: New file.
5827
5828 2011-09-18  Bruno Haible  <bruno@clisp.org>
5829
5830         Tests for module 'accept'.
5831         * modules/accept-tests: New file.
5832         * tests/test-accept.c: New file.
5833
5834 2011-09-18  Bruno Haible  <bruno@clisp.org>
5835
5836         dup2: Support for MSVC.
5837         * lib/dup2.c: Include msvc-inval.h.
5838         (rpl_dup2): Handle invalid parameter notifications during dup2 and
5839         _get_osfhandle calls.
5840         * modules/dup2 (Depends-on): Add msvc-inval.
5841         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
5842
5843         New module 'msvc-inval'.
5844         * lib/msvc-inval.h: New file.
5845         * lib/msvc-inval.c: New file.
5846         * m4/msvc-inval.m4: New file.
5847         * modules/msvc-inval: New file.
5848
5849 2011-09-17  Bruno Haible  <bruno@clisp.org>
5850
5851         Tests for module 'pclose'.
5852         * modules/pclose-tests: New file.
5853
5854         New module 'pclose'.
5855         * lib/stdio.in.h (pclose): New declaration.
5856         * lib/pclose.c: New file.
5857         * m4/pclose.m4: New file.
5858         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
5859         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
5860         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
5861         * modules/pclose: New file.
5862         * modules/popen-tests (Depends-on): Add pclose.
5863         * modules/popen-safer-tests (Depends-on): Likewise.
5864         * doc/posix-functions/pclose.texi: Mention the new module.
5865
5866 2011-09-17  Bruno Haible  <bruno@clisp.org>
5867
5868         popen: Support for MSVC.
5869         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
5870         * lib/popen.c (popen): Provide alternate definition for native Windows.
5871         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
5872         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
5873         * modules/popen (Depends-on, configure.ac): Update condition.
5874         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
5875         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
5876         fixed.
5877
5878 2011-09-17  Bruno Haible  <bruno@clisp.org>
5879
5880         isnanl, isnand, isnanf: Work around MSVC bug.
5881         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
5882
5883 2011-09-17  Bruno Haible  <bruno@clisp.org>
5884
5885         sys_socket tests: Fix recent mistake.
5886         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
5887
5888 2011-09-17  Bruno Haible  <bruno@clisp.org>
5889
5890         putenv: Support for MSVC.
5891         * modules/putenv (Depends-on): Add environ.
5892         * lib/putenv.c (environ): Disable declaration.
5893         * lib/unistd.in.h: Update comment.
5894
5895 2011-09-17  Bruno Haible  <bruno@clisp.org>
5896
5897         math: Avoid macro redefinition warnings on MSVC.
5898         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
5899         Undefine before redefining.
5900
5901 2011-09-17  Bruno Haible  <bruno@clisp.org>
5902
5903         doc: Mention functions which are declared as macros.
5904         * doc/posix-functions/*[fl].texi: Mention that some functions are
5905         defined as macros with arguments only.
5906
5907 2011-09-17  Bruno Haible  <bruno@clisp.org>
5908
5909         Add dependencies to new dirent related modules.
5910         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
5911         * modules/fts (Depends-on): Likewise.
5912         * modules/glob (Depends-on): Likewise.
5913         * modules/savedir (Depends-on): Likewise.
5914         * modules/scandir (Depends-on): Likewise.
5915         * modules/dirent-safer (Depends-on): Add opendir, closedir.
5916         * modules/fdopendir (Depends-on): Add opendir.
5917
5918 2011-09-17  Bruno Haible  <bruno@clisp.org>
5919
5920         inet_pton: Support for MSVC on Windows Vista or newer.
5921         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
5922         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
5923         HAVE_DECL_INET_PTON is defined.
5924         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5925         On platforms with <winsock2.h>, test whether inet_pton is declared in
5926         <ws2tcpip.h>. If so, arrange to replace it.
5927         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
5928         REPLACE_INET_PTON.
5929         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
5930         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
5931         (Depends-on, configure.ac): Update condition.
5932         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
5933
5934 2011-09-17  Bruno Haible  <bruno@clisp.org>
5935
5936         inet_ntop: Support for MSVC on Windows Vista or newer.
5937         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
5938         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
5939         HAVE_DECL_INET_NTOP is defined.
5940         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
5941         On platforms with <winsock2.h>, test whether inet_ntop is declared in
5942         <ws2tcpip.h>. If so, arrange to replace it.
5943         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
5944         REPLACE_INET_NTOP.
5945         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
5946         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
5947         (Depends-on, configure.ac): Update condition.
5948         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
5949
5950 2011-09-16  Eric Blake  <eblake@redhat.com>
5951
5952         test-fsync: yet another enhancement
5953         * tests/test-fsync.c (main): Also test behavior on read-only text
5954         file.
5955
5956 2011-09-16  Bruno Haible  <bruno@clisp.org>
5957
5958         Enhance fsync, fdatasync tests.
5959         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
5960         * tests/test-fdatasync.c (main): Likewise.
5961
5962 2011-09-16  Bruno Haible  <bruno@clisp.org>
5963
5964         Support for MSVC compiler: Ensure mode_t gets defined.
5965         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
5966         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
5967         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
5968         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
5969         * tests/test-fcntl-h.c: Check that mode_t is defined.
5970         * tests/test-sys_stat.c: Likewise.
5971         * tests/test-sys_types.c: Likewise.
5972         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
5973         * doc/posix-headers/sys_stat.texi: Likewise.
5974         * doc/posix-headers/sys_types.texi: Likewise.
5975
5976 2011-09-16  Bruno Haible  <bruno@clisp.org>
5977
5978         sys_stat: Support for MSVC.
5979         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
5980         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
5981         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
5982         MSVC.
5983
5984 2011-09-16  Bruno Haible  <bruno@clisp.org>
5985
5986         Support for MSVC compiler: Ensure off_t gets defined.
5987         * lib/unistd.in.h: Include <sys/types.h>.
5988         * tests/test-fcntl-h.c: Check that off_t is defined.
5989         * tests/test-sys_stat.c: Likewise.
5990         * tests/test-sys_types.c: Likewise.
5991
5992 2011-09-16  Eric Blake  <eblake@redhat.com>
5993
5994         fdatasync: port to Solaris
5995         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
5996         * modules/fdatasync (Link): Document it.
5997         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
5998
5999         fdatasync: port to MacOS X 10.7
6000         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
6001         declared.
6002         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
6003         * modules/unistd (Makefile.am): Substitute it.
6004         * lib/unistd.in.h (fdatasync): Declare on MacOS.
6005         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
6006
6007         fdatasync: minor improvements
6008         * modules/fdatasync (Depends-on): Add condition for fsync.
6009         * lib/fdatasync.c (fdatasync): Add comment.
6010         * tests/test-unistd-c++.cc: Test fdatasync.
6011
6012         unistd: update refs to newer POSIX
6013         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
6014         Suggested by Bruno Haible.
6015
6016         fdatasync: new module
6017         * modules/fsync (Description): Document difference to fdatasync.
6018         * modules/fdatasync: New module.
6019         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
6020         * lib/fdatasync.c (fdatasync): Likewise.
6021         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
6022         defaults.
6023         * modules/unistd (Makefile.am): Set witnesses.
6024         * lib/unistd.in.h (fdatasync): Declare.
6025         * MODULES.html.sh: Document it.
6026         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
6027         * modules/fdatasync-tests: New test.
6028         * tests/test-fdatasync.c: Likewise.
6029
6030 2011-09-16  Eric Blake  <eblake@redhat.com>
6031
6032         test-fsync: enhance tests
6033         * modules/fsync-tests (Depends-on): Add errno, for mingw.
6034         * tests/test-fsync.c (main): Enhance test.
6035
6036 2011-09-15  Bruno Haible  <bruno@clisp.org>
6037
6038         Support for MSVC compiler: Ensure ssize_t gets defined.
6039         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
6040         * doc/posix-headers/stdio.texi: Likewise.
6041         * modules/stdio (Depends-on): Add ssize_t.
6042         * modules/sys_socket (Depends-on): Likewise.
6043         * modules/sys_types (Depends-on): Likewise.
6044         * modules/sys_uio (Depends-on): Likewise.
6045         * modules/unistd (Depends-on): Likewise.
6046         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
6047         * tests/test-sys_types.c: Check that ssize_t is defined.
6048
6049 2011-09-14  Bruno Haible  <bruno@clisp.org>
6050
6051         Avoid using #, the m4 comment starter character, near brackets.
6052         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
6053         delimiter character in sed expressions.
6054         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
6055         Suggested by Eric Blake.
6056
6057         Properly quote AC_CHECK_DECLS' 4th argument.
6058         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
6059         argument.
6060         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
6061         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
6062         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
6063         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
6064         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
6065         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
6066         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
6067         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
6068         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
6069         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
6070         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
6071         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
6072         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
6073         * m4/isinf.m4 (gl_ISINF): Likewise.
6074         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
6075         * m4/readutmp.m4 (gl_READUTMP): Likewise.
6076         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
6077         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
6078         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
6079         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
6080         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
6081         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
6082         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
6083         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
6084         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
6085         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
6086         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
6087         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
6088         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
6089         Reported by Eric Blake.
6090
6091         Properly quote AC_CHECK_DECL's 4th argument.
6092         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
6093         argument.
6094         * m4/argp.m4 (gl_ARGP): Likewise.
6095         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
6096         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
6097         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
6098         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
6099         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
6100         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
6101         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
6102         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
6103         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
6104         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
6105         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
6106         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
6107         Reported by Eric Blake.
6108
6109 2011-09-14  Eric Blake  <eblake@redhat.com>
6110
6111         opendir: avoid compile warning
6112         * lib/opendir.c (includes): Always include errno.h.
6113         Reported by Tatsuro MATSUOKA.
6114
6115 2011-09-14  Jim Meyering  <meyering@redhat.com>
6116
6117         maint.mk: sc_tight_scope: propagate failure from sub-make
6118         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
6119         Reported by Martin von Gagern.
6120
6121 2011-09-13  Bruno Haible  <bruno@clisp.org>
6122
6123         tempname: Support for MSVC.
6124         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
6125         MSVC.
6126         * modules/tempname (Depends-on): Add fcntl-h.
6127
6128 2011-09-13  Bruno Haible  <bruno@clisp.org>
6129
6130         sys_time: Support for MSVC.
6131         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
6132         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
6133         include <winsock2.h>.
6134         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
6135         function declarations that collide with POSIX.
6136         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
6137         (Makefile.am): Substitute HAVE_WINSOCK2_H.
6138
6139 2011-09-13  Bruno Haible  <bruno@clisp.org>
6140
6141         stat: Support for MSVC.
6142         * lib/stat.c: Include pathmax.h.
6143         * modules/stat (Depends-on): Add pathmax.
6144
6145         pathmax: Support for native Windows.
6146         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
6147
6148 2011-09-12  Bruno Haible  <bruno@clisp.org>
6149
6150         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
6151         * lib/dirent.in.h (struct dirent): New type.
6152         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
6153         DT_WHT): New macros.
6154         (DIR): New type.
6155         (opendir, closedir): Declare only if the module 'opendir' is enabled.
6156         (readdir, rewinddir): New declarations.
6157         * lib/dirent-private.h: New file.
6158         * lib/opendir.c: New file.
6159         * lib/readdir.c: New file.
6160         * lib/rewinddir.c: New file.
6161         * lib/closedir.c: New file.
6162         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
6163         * m4/opendir.m4: New file.
6164         * m4/readdir.m4: New file.
6165         * m4/rewinddir.m4: New file.
6166         * m4/closedir.m4: New file.
6167         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
6168         REPLACE_CLOSEDIR here.
6169         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
6170         readdir, rewinddir are declared.
6171         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
6172         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
6173         HAVE_REWINDDIR, HAVE_CLOSEDIR.
6174         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
6175         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
6176         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
6177         * modules/opendir: New file.
6178         * modules/readdir: New file.
6179         * modules/rewinddir: New file.
6180         * modules/closedir: New file.
6181         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
6182         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
6183         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
6184         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
6185         * NEWS: Mention the 'fchdir' change.
6186
6187 2011-09-11  Bruno Haible  <bruno@clisp.org>
6188
6189         asm-underscore.m4: Support for MSVC.
6190         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
6191         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
6192
6193 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
6194
6195         Doc about crypt functions.
6196         * doc/posix-functions/crypt.texi: Expand range of glibc versions
6197         needing for _GNU_SOURCE to get crypt.
6198         * doc/posix-functions/encrypt.texi: Likewise.
6199         * doc/posix-functions/setkey.texi: Likewise.
6200
6201 2011-09-11  Bruno Haible  <bruno@clisp.org>
6202
6203         doc: Update regarding MSVC 9.
6204         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
6205         tested".
6206         * doc/posix-functions/*.texi: Update with info about MSVC 9.
6207         * doc/posix-headers/*.texi: Likewise.
6208         * doc/pastposix-functions/*.texi: Likewise.
6209         * doc/glibc-functions/*.texi: Likewise.
6210         * doc/glibc-headers/*.texi: Likewise.
6211
6212 2011-09-11  Bruno Haible  <bruno@clisp.org>
6213
6214         unistd et al.: Don't assume <unistd.h> exists.
6215         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
6216         does not exist.
6217         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
6218         exist. But include <stdlib.h>.
6219         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
6220         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
6221         symlink() does not exist.
6222         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
6223         include <io.h> instead.
6224         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
6225         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
6226         include <direct.h> instead.
6227         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
6228         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
6229         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
6230         <io.h> instead.
6231         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
6232         correctly if the system does not have hard links.
6233         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
6234         <direct.h> instead.
6235         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
6236         it when looking for function declarations.
6237         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
6238         <direct.h> and <io.h> instead.
6239         * doc/posix-headers/unistd.texi: More details about MSVC problem.
6240
6241 2011-09-11  Bruno Haible  <bruno@clisp.org>
6242
6243         strcase: Support for MSVC.
6244         * modules/strcase (Status, Notice): Remove obsoletion mark.
6245         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
6246         * doc/posix-functions/strncasecmp.texi: Likewise.
6247
6248         strings: Don't assume <strings.h> exists.
6249         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
6250         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
6251         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
6252         * doc/posix-headers/strings.texi: Mention the MSVC problem.
6253
6254 2011-09-11  Bruno Haible  <bruno@clisp.org>
6255
6256         dirent: Don't assume <dirent.h> exists.
6257         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
6258         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
6259         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
6260         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
6261
6262 2011-09-11  Bruno Haible  <bruno@clisp.org>
6263
6264         Fix wint_t on MSVC.
6265         * lib/wchar.in.h (wint_t): On MSVC, override it.
6266         * lib/wctype.in.h (wint_t): Likewise.
6267         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
6268         MSVC.
6269         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
6270         * doc/posix-headers/wctype.texi: Likewise.
6271
6272 2011-09-11  Bruno Haible  <bruno@clisp.org>
6273
6274         sys_types: Fix typo.
6275         * lib/sys_types.in.h: Fix typo in comment.
6276         Reported by Paul Eggert.
6277
6278         Support for MSVC compiler: Ensure size_t gets defined.
6279         * modules/strings (Depends-on): Add 'sys_types'.
6280         * modules/sys_uio (Depends-on): Likewise.
6281         * lib/sys_uio.in.h: Update comment.
6282
6283         C++ tests for module 'sys_types'.
6284         * modules/sys_types-c++-tests: New file.
6285         * tests/test-sys_types-c++.cc: New file.
6286
6287         Tests for module 'sys_types'.
6288         * modules/sys_types-tests: New file.
6289         * tests/test-sys_types.c: New file.
6290
6291         New module 'sys_types'.
6292         * lib/sys_types.in.h: New file.
6293         * m4/sys_types_h.m4: New file.
6294         * modules/sys_types: New file.
6295         * doc/posix-headers/sys_types.texi: Mention the new module and the
6296         size_t problem on MSVC 9.
6297
6298 2011-09-11  Bruno Haible  <bruno@clisp.org>
6299
6300         Support for MSVC compiler: Avoid division by a literal 0.
6301         * lib/math.in.h (NAN): Define through a function call also on MSVC.
6302         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
6303         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
6304         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
6305         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
6306         * tests/infinity.h: New file.
6307         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
6308         on MSVC.
6309         * tests/test-ceilf1.c: Include infinity.h.
6310         (main): Use Infinityf.
6311         * tests/test-ceil1.c: Include infinity.h.
6312         (main): Use Infinityd.
6313         * tests/test-ceill.c: Include infinity.h.
6314         (main): Use Infinityl.
6315         * tests/test-dprintf-posix.c: Include infinity.h.
6316         (test_function): Use Infinityd.
6317         * tests/test-floorf1.c: Include infinity.h.
6318         (main): Use Infinityf.
6319         * tests/test-floor1.c: Include infinity.h.
6320         (main): Use Infinityd.
6321         * tests/test-floorl.c: Include infinity.h.
6322         (main): Use Infinityl.
6323         * tests/test-fprintf-posix.c: Include infinity.h.
6324         (test_function): Use Infinityd.
6325         * tests/test-frexp.c: Include infinity.h.
6326         (main): Use Infinityd.
6327         * tests/test-frexpl.c: Include infinity.h.
6328         (main): Use Infinityl.
6329         * tests/test-isfinite.c: Include infinity.h.
6330         (test_isfinitef): Use Infinityf.
6331         (test_isfinited): Use Infinityd.
6332         (test_isfinitel): Use Infinityl.
6333         * tests/test-isinf.c: Include infinity.h.
6334         (test_isinff): Use Infinityf.
6335         (test_isinfd): Use Infinityd.
6336         (test_isinfl): Use Infinityl.
6337         * tests/test-isnan.c: Include infinity.h.
6338         (test_float): Use Infinityf.
6339         (test_double): Use Infinityd.
6340         (test_long_double): Use Infinityl.
6341         * tests/test-isnanf.h: Include infinity.h.
6342         (main): Use Infinityf.
6343         * tests/test-isnand.h: Include infinity.h.
6344         (main): Use Infinityd.
6345         * tests/test-isnanl.h: Include infinity.h.
6346         (main): Use Infinityl.
6347         * tests/test-ldexpl.c: Include infinity.h.
6348         (main): Use Infinityl.
6349         * tests/test-printf-posix.h: Include infinity.h.
6350         (test_function): Use Infinityd.
6351         * tests/test-roundf1.c: Include infinity.h.
6352         (main): Use Infinityf.
6353         * tests/test-round1.c: Include infinity.h.
6354         (main): Use Infinityd.
6355         * tests/test-roundl.c: Include infinity.h.
6356         (main): Use Infinityl.
6357         * tests/test-signbit.c: Include infinity.h.
6358         (test_signbitf): Use Infinityf.
6359         (test_signbitd): Use Infinityd.
6360         (test_signbitl): Use Infinityl.
6361         * tests/test-snprintf-posix.h: Include infinity.h.
6362         (test_function): Use Infinityd, Infinityl.
6363         * tests/test-sprintf-posix.h: Include infinity.h.
6364         (test_function): Use Infinityd, Infinityl.
6365         * tests/test-truncf1.c: Include infinity.h.
6366         (main): Use Infinityf.
6367         * tests/test-trunc1.c: Include infinity.h.
6368         (main): Use Infinityd.
6369         * tests/test-truncl.c: Include infinity.h.
6370         (main): Use Infinityl.
6371         * tests/test-vasnprintf-posix.c: Include infinity.h.
6372         (test_function): Use Infinityd, Infinityl.
6373         * tests/test-vasprintf-posix.c: Include infinity.h.
6374         (test_function): Use Infinityd, Infinityl.
6375         * modules/ceilf-tests (Files): Add tests/infinity.h.
6376         * modules/ceil-tests (Files): Likewise.
6377         * modules/ceill-tests (Files): Likewise.
6378         * modules/dprintf-posix-tests (Files): Likewise.
6379         * modules/floorf-tests (Files): Likewise.
6380         * modules/floor-tests (Files): Likewise.
6381         * modules/floorl-tests (Files): Likewise.
6382         * modules/fprintf-posix-tests (Files): Likewise.
6383         * modules/frexp-tests (Files): Likewise.
6384         * modules/frexp-nolibm-tests (Files): Likewise.
6385         * modules/frexpl-tests (Files): Likewise.
6386         * modules/frexpl-nolibm-tests (Files): Likewise.
6387         * modules/isfinite-tests (Files): Likewise.
6388         * modules/isinf-tests (Files): Likewise.
6389         * modules/isnan-tests (Files): Likewise.
6390         * modules/isnanf-tests (Files): Likewise.
6391         * modules/isnanf-nolibm-tests (Files): Likewise.
6392         * modules/isnand-tests (Files): Likewise.
6393         * modules/isnand-nolibm-tests (Files): Likewise.
6394         * modules/isnanl-tests (Files): Likewise.
6395         * modules/isnanl-nolibm-tests (Files): Likewise.
6396         * modules/ldexpl-tests (Files): Likewise.
6397         * modules/printf-posix-tests (Files): Likewise.
6398         * modules/roundf-tests (Files): Likewise.
6399         * modules/round-tests (Files): Likewise.
6400         * modules/roundl-tests (Files): Likewise.
6401         * modules/signbit-tests (Files): Likewise.
6402         * modules/snprintf-posix-tests (Files): Likewise.
6403         * modules/sprintf-posix-tests (Files): Likewise.
6404         * modules/truncf-tests (Files): Likewise.
6405         * modules/trunc-tests (Files): Likewise.
6406         * modules/truncl-tests (Files): Likewise.
6407         * modules/vasnprintf-posix-tests (Files): Likewise.
6408         * modules/vasprintf-posix-tests (Files): Likewise.
6409         * modules/vdprintf-posix-tests (Files): Likewise.
6410         * modules/vfprintf-posix-tests (Files): Likewise.
6411         * modules/vprintf-posix-tests (Files): Likewise.
6412         * modules/vsnprintf-posix-tests (Files): Likewise.
6413         * modules/vsprintf-posix-tests (Files): Likewise.
6414         * modules/xprintf-posix-tests (Files): Likewise.
6415
6416 2011-09-11  Bruno Haible  <bruno@clisp.org>
6417
6418         Ensure pid_t gets defined.
6419         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
6420         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
6421         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
6422         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
6423         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
6424         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
6425         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
6426         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
6427         * tests/test-fcntl-h.c: Check that pid_t is defined.
6428         * tests/test-sched.c: Likewise.
6429         * tests/test-termios.c: Likewise.
6430         * tests/test-time.c: Likewise.
6431         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
6432         * doc/posix-headers/signal.texi: Likewise.
6433         * doc/posix-headers/sys_types.texi: Likewise.
6434         * doc/posix-headers/time.texi: Likewise.
6435
6436 2011-09-11  Bruno Haible  <bruno@clisp.org>
6437
6438         acl: Fix compilation on Solaris 10 (older version).
6439         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
6440         of ACE_EVERYONE.
6441         * lib/set-mode-acl.c (qset_acl): Likewise.
6442         Reported by Christian Jullien <eligis@orange.fr>.
6443
6444 2011-09-10  Bruno Haible  <bruno@clisp.org>
6445
6446         iconv, unsetenv: Add support for MSVC compiler.
6447         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
6448         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
6449
6450 2011-09-10  Bruno Haible  <bruno@clisp.org>
6451
6452         *printf: Add support for MSVC compiler.
6453         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
6454         handles the exception caused by the %n directive. When cross-compiling,
6455         guess no on native Windows.
6456         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
6457         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
6458         emulate it through vsnprintf.
6459         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
6460         * doc/posix-functions/dprintf.texi: Update documentation regarding
6461         MSVC 9.
6462         * doc/posix-functions/fprintf.texi: Likewise.
6463         * doc/posix-functions/printf.texi: Likewise.
6464         * doc/posix-functions/snprintf.texi: Likewise.
6465         * doc/posix-functions/sprintf.texi: Likewise.
6466         * doc/posix-functions/swprintf.texi: Likewise.
6467         * doc/posix-functions/vdprintf.texi: Likewise.
6468         * doc/posix-functions/vfprintf.texi: Likewise.
6469         * doc/posix-functions/vprintf.texi: Likewise.
6470         * doc/posix-functions/vsnprintf.texi: Likewise.
6471         * doc/posix-functions/vsprintf.texi: Likewise.
6472         * doc/glibc-functions/asprintf.texi: Likewise.
6473         * doc/glibc-functions/obstack_printf.texi: Likewise.
6474         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
6475         * doc/glibc-functions/vasprintf.texi: Likewise.
6476
6477 2011-09-10  Bruno Haible  <bruno@clisp.org>
6478
6479         nocrash: Add support for native Windows.
6480         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
6481
6482 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
6483             Bruno Haible  <bruno@clisp.org>
6484
6485         absolute-header, include-next: Add support for MSVC compiler.
6486         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
6487         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
6488         directory separator in #line directives.
6489         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
6490         recognize also backslash as directory separator in #line directives.
6491
6492 2011-09-08  Jim Meyering  <meyering@redhat.com>
6493
6494         maint.mk: mark the post-release commit log with "maint: " prefix
6495         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
6496         one-line commit-log summary.
6497
6498 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
6499             Bruno Haible  <bruno@clisp.org>
6500
6501         Doc about crypt functions.
6502         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
6503         systems.
6504         * doc/posix-functions/encrypt.texi: Likewise.
6505         * doc/posix-functions/setkey.texi: Likewise.
6506
6507 2011-09-08  Simon Josefsson  <simon@josefsson.org>
6508
6509         * lib/gc.h: Fix copyright header.
6510
6511 2011-09-07  Bruno Haible  <bruno@clisp.org>
6512
6513         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
6514         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
6515         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
6516
6517 2011-09-07  Bruno Haible  <bruno@clisp.org>
6518
6519         openat: Work around compilation error with OSF/1 5.1 DTK cc.
6520         * lib/fopen.c: Use different syntax for include of <stdio.h>.
6521         * lib/freopen.c: Likewise.
6522         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
6523         * lib/lstat.c: Likewise.
6524         * lib/stat.c: Likewise.
6525         * lib/open.c: Use different syntax for include of <fcntl.h>.
6526         * lib/openat.c: Include fcntl.h again, explicitly.
6527
6528 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
6529
6530         parse-datetime: document the newly accepted format
6531         * doc/parse-datetime.texi (Combined date and time of day items):
6532         New section.
6533
6534 2011-09-06  Bruno Haible  <bruno@clisp.org>
6535
6536         acl: Fix a test failure on newer Solaris 10 with ZFS.
6537         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
6538         ENOSYS as no ACL.
6539         Reported by Jim Meyering.
6540
6541 2011-09-06  Bruno Haible  <bruno@clisp.org>
6542
6543         acl: Update for AIX >= 5.3 with NFS.
6544         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
6545         ENOSYS as no ACL.
6546
6547         acl: Fix a test failure on AIX >= 5.3 with NFS.
6548         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
6549         as no ACL.
6550
6551 2011-09-06  Bruno Haible  <bruno@clisp.org>
6552
6553         acl: Fix a test failure on IRIX 6.5 with NFS.
6554         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
6555         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
6556         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
6557         * lib/copy-acl.c (qcopy_acl): Likewise.
6558
6559 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
6560
6561         openat: port to AIX 7.1 with large files
6562         AIX 7.1 does a "#define openat open64at" if large files are in use,
6563         so we can't simply #undef openat.  Use the orig_openat trick (similar
6564         to orig_open in lib/open.c) to work around the problem.  Problem
6565         reported by Kevin Brott for GNU tar, in the thread containing
6566         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
6567         * lib/openat.c (__need_system_fcntl_h): Define first.
6568         Include <fcntl.h> and <sys/types.h> before undefining.
6569         (orig_openat) [HAVE_OPENAT]: New inline function.
6570         (openat) [HAVE_OPENAT]: Do not undef.
6571         (rpl_openat): Use orig_openat, not openat.
6572
6573 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
6574             Bruno Haible  <bruno@clisp.org>
6575
6576         acl: Avoid errors on NonStop Kernel.
6577         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
6578         ENOTSUP errors.
6579
6580 2011-09-05  Bruno Haible  <bruno@clisp.org>
6581
6582         acl: Clean up Solaris code.
6583         * lib/acl-internal.h: Remove no-op #if.
6584         * lib/file-has-acl.c: Likewise.
6585         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
6586         * lib/copy-acl.c (qcopy_acl): Likewise.
6587
6588 2011-09-05  Bruno Haible  <bruno@clisp.org>
6589
6590         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
6591         binaries built on the original Solaris 10.
6592         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
6593         trivial.
6594
6595 2011-09-05  Bruno Haible  <bruno@clisp.org>
6596
6597         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
6598         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
6599         10.
6600         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
6601         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
6602         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
6603         instead of acl_get, facl_get, acl_set, facl_set.
6604
6605 2011-09-05  Bruno Haible  <bruno@clisp.org>
6606
6607         copy-file: Try unit tests on more file systems.
6608         * tests/test-copy-file-1.sh: New file.
6609         * tests/test-copy-file-2.sh: New file.
6610         * modules/copy-file-tests (Files): Add them.
6611         (Makefile.am): Add them to TESTS.
6612
6613         acl: Try unit tests on more file systems.
6614         * tests/test-file-has-acl-1.sh: New file.
6615         * tests/test-file-has-acl-2.sh: New file.
6616         * tests/test-set-mode-acl-1.sh: New file.
6617         * tests/test-set-mode-acl-2.sh: New file.
6618         * tests/test-copy-acl-1.sh: New file.
6619         * tests/test-copy-acl-2.sh: New file.
6620         * modules/acl-tests (Files): Add them.
6621         (Makefile.am): Add them to TESTS.
6622
6623 2011-09-04  Bruno Haible  <bruno@clisp.org>
6624
6625         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
6626         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
6627         10.
6628         (OLD_ALLOW, OLD_DENY): New macros.
6629         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
6630         ACE_ACCESS_ALLOWED_ACE_TYPE.
6631         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
6632         ACE_ACCESS_DENIED_ACE_TYPE.
6633         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
6634         (NEW_ACE_EXECUTE): Fix value.
6635         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
6636         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
6637         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
6638         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
6639         NEW_ACE_SYNCHRONIZE): New macros.
6640         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
6641         instead of acl_fromtext, acl_set, facl_set.
6642         Fixes a coreutils/tests/cp/perm failure.
6643
6644 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
6645
6646         openat: test for fstatat (..., 0) bug
6647         Further testing with tar suggests that fstatat (..., 0)
6648         does not work in general, on AIX 7.1; see
6649         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
6650         So, give up entirely on AIX 7.1's fstatat, and fall back on our
6651         replacement fstatat (which is what older AIX releases were using
6652         anyway).
6653         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
6654         use is now changed to orig_fstatat.  This was probably the right
6655         thing to do anyway.
6656         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
6657         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
6658         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
6659         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
6660         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
6661         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
6662         if the bug is found.
6663
6664         openat: test for fstatat (AT_FDCWD, ..., 0) bug
6665         This tests for another fstatat bug on AIX 7.1:
6666         fstatat (AT_FDCWD, ..., 0) does not work.  See
6667         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
6668         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
6669         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
6670         (rpl_fstatat): Adjust so that it works around either (or both)
6671         bugs if present.
6672         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
6673
6674 2011-09-03  Karl Berry  <karl@gnu.org>
6675
6676         * doc/regex.texi (Character Class Operators): Avoid literal ":"
6677         in index entries.
6678
6679 2011-09-02  Bruno Haible  <bruno@clisp.org>
6680
6681         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
6682         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
6683         values of AR, ARFLAGS, RANLIB.
6684         Reported by John W. Eaton <jwe@gnu.org> for Octave.
6685
6686 2011-09-02  Bruno Haible  <bruno@clisp.org>
6687
6688         Find 'ar' program that fits with --host argument.
6689         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
6690
6691 2011-09-02  Bruno Haible  <bruno@clisp.org>
6692
6693         tests: init.sh: Support any non-GNU diff.
6694         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
6695         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
6696         Solaris 8.
6697
6698 2011-09-02  Bruno Haible  <bruno@clisp.org>
6699
6700         tests: init.sh: work also with any non-GNU diff that supports -u
6701         * tests/init.sh: Relax check for diff -u support.
6702         Rather than checking for GNU diff via --version, simply check
6703         for support for -u itself.  Useful at least on OpenBSD 4.9,
6704         AIX 7.1, IRIX 6.5, and Solaris 10.
6705
6706 2011-09-01  Bruno Haible  <bruno@clisp.org>
6707
6708         strtoimax, strtoumax: Document problem on HP-UX 11.
6709         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
6710         * doc/posix-functions/strtoumax.texi: Likewise.
6711
6712 2011-09-01  Bruno Haible  <bruno@clisp.org>
6713
6714         strtoumax: Avoid link error on OSF/1 with DTK cc.
6715         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
6716         defined as a function.
6717         * modules/strtoumax (Depends-on, configure.ac): Test only whether
6718         strtoumax is defined, not whether it is declared.
6719
6720 2011-09-01  Bruno Haible  <bruno@clisp.org>
6721
6722         strtoimax: Avoid link error on OSF/1 with DTK cc.
6723         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
6724         defined as a function.
6725         * modules/strtoimax (Depends-on, configure.ac): Test only whether
6726         strtoimax is defined, not whether it is declared.
6727
6728 2011-09-01  Bruno Haible  <bruno@clisp.org>
6729
6730         imaxdiv: Avoid link error on OSF/1 with DTK cc.
6731         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
6732         as a function.
6733         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
6734         whether it is declared.
6735
6736 2011-09-01  Bruno Haible  <bruno@clisp.org>
6737
6738         imaxabs: Avoid link error on OSF/1 with DTK cc.
6739         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
6740         as a function.
6741         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
6742         whether it is declared.
6743
6744 2011-09-01  Bruno Haible  <bruno@clisp.org>
6745
6746         Tests for module 'strtoumax'.
6747         * modules/strtoumax-tests: New file.
6748         * tests/test-strtoumax.c: New file.
6749
6750         Tests for module 'strtoimax'.
6751         * modules/strtoimax-tests: New file.
6752         * tests/test-strtoimax.c: New file.
6753
6754         Tests for module 'imaxdiv'.
6755         * modules/imaxdiv-tests: New file.
6756         * tests/test-imaxdiv.c: New file.
6757
6758         Tests for module 'imaxabs'.
6759         * modules/imaxabs-tests: New file.
6760         * tests/test-imaxabs.c: New file.
6761
6762 2011-09-01  Bruno Haible  <bruno@clisp.org>
6763
6764         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
6765         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
6766         pthread_create.
6767
6768 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
6769
6770         openat: work around AIX 7.1 fstatat issue
6771         This should fix the problem that was not properly fixed
6772         in the previous change, dated 2011-08-30.
6773         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
6774         __need_system_stat_h defined.
6775         (orig_fstatat) [HAVE_FSTATAT]: New function.
6776         (rpl_fstatat): Go back to the old way of doing things,
6777         except call orig_fstatat instead of fstatat.
6778         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
6779         Remove unnecessary check whether fstatat fills in st_size etc.
6780
6781 2011-09-01  Bruno Haible  <bruno@clisp.org>
6782
6783         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
6784         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
6785         just include the system's header.
6786
6787 2011-08-31  Jim Meyering  <meyering@redhat.com>
6788
6789         tests: avoid spurious assertion failure in test-float.c on ppc64
6790         * tests/test-float.c (test_long_double): Comment out an assertion,
6791         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
6792         with gcc-4.4.4.
6793
6794         maint: indent with spaces, not TABs
6795         I need to get in the habit of running gnulib's "make check".
6796         Both of these would have been caught.
6797         * m4/largefile.m4: Indent with spaces, not TABs.
6798         * lib/parse-datetime.y (iso_8601_time): Likewise.
6799         Spotted by Pádraig Brady.
6800
6801         test-parse-datetime.c: accommodate a relatively strict gcc warning
6802         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
6803         to avoid a warning from gcc's -Werror=missing-declarations.
6804         Insert a few spaces-before-funcall-parenthesis.
6805
6806 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
6807
6808         parse-datetime: accept ISO 8601 date and time rep with "T" separator
6809         The parser now accepts ISO 8601 date-time strings with "T" as the
6810         separator.  It has long parsed dates like "2004-02-29 16:21:42"
6811         with a space between the date and time strings.  Now it also parses
6812         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
6813         variants like "2004-02-29T16:21:42.333-07:00"
6814         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
6815         of day representation using the 'T' separator character.
6816         * doc/parse-datetime.texi (General date syntax): replace use of
6817         deprecated --iso-8601 option with --rfc-3339 in example of date
6818         command output formats that can be parsed.
6819         * tests/test-parse-datetime.c (tm_diff): New function, taken from
6820         lib/parse-datetime.y.
6821         (gmt_offset): New function.
6822         (main): Add additional test cases to validate ISO8601 extended
6823         date and time of day parsing.
6824
6825 2011-08-31  Bruno Haible  <bruno@clisp.org>
6826
6827         freopen: Documentation.
6828         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
6829         name.
6830         Reported by Claudio Bley <claudio.bley@gmail.com>.
6831
6832 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
6833
6834         freopen: Don't crash if the filename argument is NULL.
6835         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
6836         NULL.
6837
6838 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
6839
6840         openat: work around AIX 7.1 fstatat bug
6841         Problem reported by Kevin Brott for GNU tar, in the thread containing
6842         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
6843         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
6844         FSTATAT_ST_SIZE_ETC_BROKEN.
6845         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
6846         rpl_fstatat.
6847         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
6848         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
6849         AC_CHECK_FUNCS_ONCE for fstatat.
6850         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
6851         fchmodat, mkdirat, openat and unlinkat.
6852
6853 2011-08-30  Bruno Haible  <bruno@clisp.org>
6854
6855         Avoid endless recursions if config.h includes some header files.
6856         * lib/fopen.c (__need_FILE): Define already before including config.h.
6857         * lib/freopen.c (__need_FILE): Likewise.
6858         * lib/open.c (__need_system_fcntl_h): Likewise.
6859         * lib/stat.c (__need_system_sys_stat_h): Likewise.
6860         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
6861         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
6862
6863 2011-08-25  Karl Berry  <karl@gnu.org>
6864
6865         * config/srclist.txt (ylwrap): new try.
6866         * build-aux/ylwrap: new file.
6867
6868 2011-08-23  Bruno Haible  <bruno@clisp.org>
6869
6870         tmpdir: Use a good default directory on native Windows.
6871         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
6872         (P_tmpdir): Default to _P_tmpdir on native Windows.
6873         (path_search): On native Windows, try the value returned by GetTempPath
6874         before trying P_tmpdir.
6875         * modules/tmpdir (Depends-on): Add pathmax.
6876         Suggested by John Darrington <john@darrington.wattle.id.au>.
6877
6878 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
6879
6880         doc: fix typo in README-release
6881         * top/README-release: Capitalize first word of a sentence.
6882
6883 2011-08-19  Jim Meyering  <meyering@redhat.com>
6884
6885         fts: do not exhaust memory when processing million-entry directories
6886         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
6887         directory would require about 256*N bytes of memory.  Thus, it was
6888         easy to construct a directory too large to be processed by any of
6889         those tools.  With this change, fts' maximum memory utilization is
6890         now limited to around 30MB.
6891         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
6892         (fts_read): When we've processed the final entry (i.e., when
6893         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
6894         using the parent entry to read any remaining entries.  Dispatch
6895         depending on what fts_build returns:
6896         - NULL+stop, aka failure: stop
6897         - NULL otherwise: move up in the dir hierarchy
6898         - non-NULL: handle this new entry
6899         (fts_build): Declare and use new local, continue_readdir.
6900         Prepare to be called from fts_read, when the entries
6901         from a partially-read directory have just been exhausted.
6902         In that case, we'll skip the opendir and instead use the parent's
6903         fts_dirp and derive dir_fd from that.
6904         Finally, in the readdir loop, if we read max_entries entries,
6905         exit the loop ensuring *not* to call closedir.  This is required
6906         so that fts_dirp can be reused on a subsequent call.
6907         Prompted by Ben England's report of memory exhaustion in find
6908         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
6909
6910         maint: fts: move decl of `dp' down into while loop; split a long line
6911         * lib/fts.c (fts_build): No semantic change.
6912
6913         fts: add/use new struct member, fts_dirp
6914         We are about to use this to manage any directory with
6915         too many entries to read all of them into memory at once.
6916         To do that, we'll need to save the DIR* pointer in each
6917         affected FTSENT struct.
6918         * lib/fts_.h: Include <dirent.h>.
6919         (struct FTSENT) [fts_dirp]: New member.
6920         * lib/fts.c (closedir_and_clear): Define.
6921         Use it in place of closedir so that we are sure to
6922         clear the new fts_dirp member when done with it.
6923         (fts_alloc): Initialize the new member.
6924         (fts_lfree): Free, if needed.
6925
6926         maint: fts: give __opendir2 a new parameter and rename
6927         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
6928         than surreptitiously using sole caller's "dir_fd".
6929         (fts_opendir): Rename from __opendir2.
6930
6931         maint: fts.c: remove __opendir2's now-unused parameter, oflag
6932         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
6933
6934         maint: fts.c: correct off-by-one indentation
6935         * lib/fts.c (fts_build): Correct indentation, change style
6936         of a couple of block comments, and bracing style.
6937
6938         maint: fts.c: move __opendir2 #define "up" out of function body
6939         * lib/fts.c (__opendir2): Move "up".  No semantic change.
6940
6941         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
6942         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
6943         out for a long time and besides was useful only on BSD systems.
6944
6945 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
6946
6947         regex: port to Stratus OpenVOS
6948         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
6949         define to empty, rather than attempting nonportable optimizations.
6950         Problem reported by Paul Green in:
6951         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
6952         and fix suggested by Eric Blake in:
6953         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
6954
6955 2011-08-17  Eric Blake  <eblake@redhat.com>
6956
6957         getcwd: fix test failures on mingw
6958         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
6959         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
6960         test if long directory cannot be created, and allow mingw errno.
6961
6962         getcwd-lgpl: fix m4 to match relaxed test for BSD
6963         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
6964         (gl_FUNC_GETCWD_SIGNATURE): New macro.
6965         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
6966         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
6967         signature problem.
6968
6969         getcwd: fix compilation on mingw64
6970         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
6971         getcwd.
6972         Reported by Marc-André Lureau.
6973
6974         pipe2: silence compiler warning
6975         * lib/pipe2.c (pipe2): Hide label if it is not used.
6976
6977 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
6978
6979         relocatable-prog: fix link error
6980         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
6981         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
6982         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
6983         into modules/relocatable-lib without noticing that
6984         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
6985         also needs to build relocatable.c.
6986
6987 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
6988
6989         getaddrinfo: fix sh typo in gai_strerrorA decl checking
6990         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
6991         shell code: it contained a 'break' that was not in a loop.
6992         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
6993         via a shell-language loop; this may have been true in old Autoconf
6994         versions, but it's not true in Autoconf 2.68.  I found this bug
6995         when testing coreutils git on Solaris 8, whose shell complains
6996         about the syntax error.
6997
6998 2011-08-12  Simon Josefsson  <simon@josefsson.org>
6999
7000         * lib/base64.c: Fix comment to reference RFC 4648.
7001         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
7002         <gvtulder@gmail.com>.
7003
7004 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
7005
7006         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
7007
7008         po/Makefile.in.in: fix make -q problem
7009         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
7010         rule, since there's no file named 'check-macro-version' and its
7011         use as a file breaks make -q.
7012         (all): Don't depend on check-macro-version.
7013         (CHECK_MACRO_VERSION): New macro.
7014         (stamp-po): Use it.
7015
7016         configmake: fix make -q problem
7017         * modules/configmake (configmake.h): Update configmake.h's time stamp
7018         even if the file does not change.  Otherwise, 'make -q' fails.
7019         Problem reported by Simon Josefsson in
7020         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
7021
7022 2011-08-11  Jim Meyering  <meyering@redhat.com>
7023
7024         git-version-gen: correct the advice in a comment
7025         * build-aux/git-version-gen: Correct comment.
7026         Don't recommend to list .tarball-version in .gitignore.
7027
7028 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
7029
7030         base64: fix off-by-one buffer size bug
7031         Problem and (trivial) fix reported by Gijs van Tulder in
7032         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
7033         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
7034         * tests/test-base64.c (main): Catch the bug.
7035
7036 2011-08-10  Eric Blake  <eblake@redhat.com>
7037
7038         closein: correct comments
7039         * lib/closein.c (close_stdin): Improve comments.
7040
7041 2011-08-09  Bruno Haible  <bruno@clisp.org>
7042
7043         More tests for 'fseeko'.
7044         * tests/test-fseeko3.c: New file, from Eric Blake.
7045         * tests/test-fseeko3.sh: New file.
7046         * modules/fseeko-tests (Files): Add them.
7047         (TESTS): Add test-fseeko3.sh.
7048         (check_PROGRAMS): Add test-fseeko3.
7049
7050 2011-08-09  Eric Blake  <eblake@redhat.com>
7051
7052         fseeko: remove unneeded hack
7053         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
7054
7055         fseeko: fix bug on glibc
7056         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
7057         Reported by John W. Eaton.
7058
7059 2011-08-08  Bruno Haible  <bruno@clisp.org>
7060
7061         unictype/base: Fix interoperability with preinstalled libunistring.
7062         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
7063         Reported by Simon Josefsson.
7064
7065 2011-08-08  Bruno Haible  <bruno@clisp.org>
7066
7067         iswblank: Detect declaration correctly.
7068         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
7069         AC_CHECK_DECLS invocation.
7070
7071 2011-08-08  Bruno Haible  <bruno@clisp.org>
7072
7073         tcgetsid: Detect declaration correctly.
7074         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
7075         AC_CHECK_DECLS invocation.
7076         Reported by Simon Josefsson.
7077
7078 2011-08-08  Eric Blake  <eblake@redhat.com>
7079
7080         largefile: fix typo that regressed large file support
7081         * modules/largefile (configure.ac-early): Fix section name.
7082
7083 2011-08-06  Karl Berry  <karl@gnu.org>
7084
7085         * MODULES.html.sh (func_all_files): _Noreturn is no longer
7086         a separate module.
7087
7088 2011-08-05  Simon Josefsson  <simon@josefsson.org>
7089
7090         openat: Fix warnings and commens when building unlinkat.c on Hurd.
7091         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
7092         get prototype for free.
7093
7094 2011-08-04  Bruno Haible  <bruno@clisp.org>
7095
7096         Tests for module 'pathmax'.
7097         * modules/pathmax-tests: New file.
7098         * tests/test-pathmax.c: New file.
7099
7100         canonicalize-lgpl: Support larger filenames on the Hurd.
7101         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
7102         Reported by Paul Eggert.
7103
7104         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
7105         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
7106         * lib/chdir-long.h: Include pathmax.h.
7107         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
7108         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
7109         (PATH_MAX): Remove code that is done by pathmax.h.
7110         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
7111         * lib/tmpfile.c: Add a comment.
7112         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
7113         * modules/chdir-long (Depends-on): Add pathmax.
7114         * modules/getcwd (Depends-on): Add pathmax.
7115         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
7116         is not defined.
7117         * doc/posix-headers/limits.texi: Mention the pathmax module.
7118         * NEWS: Mention the change.
7119
7120 2011-08-02  Bruno Haible  <bruno@clisp.org>
7121
7122         pthread_sigmask: Actually use results of gl_THREADLIB.
7123         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
7124         gl_THREADLIB, not gl_[]THREADLIB.
7125         Reported by Eric Blake.
7126
7127 2011-08-02  Jim Meyering  <meyering@redhat.com>
7128
7129         maint.mk: relax the default _gl_TS_function_match regexp
7130         * top/maint.mk (_gl_TS_function_match): Don't require at least one
7131         space between function name and "(" in an "extern" declaration.
7132         That would fail to match a decl with no space there: extern void foo();
7133
7134 2011-07-31  Iain Nicol  <iain@thenicols.net>
7135
7136         git-version-gen: document that EXTRA_DIST must include .version
7137         * build-aux/git-version-gen: In the how-to-use comment, document
7138         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
7139         will fail when run from an unpacked distribution tarball.
7140
7141 2011-08-01  Bruno Haible  <bruno@clisp.org>
7142
7143         wctype-h: Fix last change.
7144         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
7145         REPLACE_TOWLOWER to 0.
7146         Reported by Sam Steingold <sds@gnu.org>.
7147
7148 2011-07-31  Bruno Haible  <bruno@clisp.org>
7149
7150         frexpl: Update autoconf test.
7151         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
7152         according to changes of 2011-06-20.
7153
7154 2011-07-31  Bruno Haible  <bruno@clisp.org>
7155
7156         sys_utsname: Add support for Minix.
7157         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
7158         <sys/utsname.h>.
7159         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
7160         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
7161
7162 2011-07-31  Bruno Haible  <bruno@clisp.org>
7163
7164         strings: Add support for Minix.
7165         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
7166         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
7167         * doc/posix-headers/strings.texi: Document the Minix problem.
7168
7169 2011-07-31  Bruno Haible  <bruno@clisp.org>
7170
7171         wctype-h: Add support for Minix.
7172         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
7173         REPLACE_TOWLOWER.
7174         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
7175         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
7176         REPLACE_ISWCNTRL.
7177
7178 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
7179
7180         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
7181         This is a performance improvement for 64-bit hosts: it causes the
7182         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
7183
7184 2011-07-31  Bruno Haible  <bruno@clisp.org>
7185
7186         stdioext: Add support for Minix.
7187         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
7188         * lib/fpurge.c (fpurge): Likewise.
7189         * lib/freadahead.c (freadahead): Likewise.
7190         * lib/freadable.c (freadable): Likewise.
7191         * lib/freading.c (freading): Likewise.
7192         * lib/freadptr.c (freadptr): Likewise.
7193         * lib/freadseek.c (freadptrinc): Likewise.
7194         * lib/fseeko.c (rpl_fseeko): Likewise.
7195         * lib/fseterr.c (fseterr): Likewise.
7196         * lib/fwritable.c (fwritable): Likewise.
7197         * lib/fwriting.c (fwriting): Likewise.
7198         * lib/fflush.c (clear_ungetc_buffer): Update comment.
7199         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
7200
7201 2011-07-31  Bruno Haible  <bruno@clisp.org>
7202
7203         errno: Port to Minix.
7204         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
7205         ECONNABORTED are defined.
7206         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
7207         GNULIB_defined_ECONNABORTED): New macros.
7208         * lib/strerror-override.h (strerror_override): Test also
7209         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
7210         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
7211         ECONNABORTED.
7212         * doc/posix-headers/errno.texi: Mention the Minix problem.
7213
7214 2011-07-31  Bruno Haible  <bruno@clisp.org>
7215
7216         Work around declaration collisions on Minix.
7217         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
7218         defined, set REPLACE_MBSINIT.
7219         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
7220         defined, set REPLACE_MBRTOWC.
7221         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
7222         set REPLACE_MBRLEN.
7223         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
7224         defined, set REPLACE_MBSRTOWCS.
7225         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
7226         defined, set REPLACE_WCRTOMB.
7227         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
7228         defined, set REPLACE_WCSRTOMBS.
7229
7230 2011-07-31  Bruno Haible  <bruno@clisp.org>
7231
7232         Add support for Minix with ACK compiler.
7233         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
7234         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
7235         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
7236
7237 2011-07-31  Bruno Haible  <bruno@clisp.org>
7238
7239         Documentation about Minix.
7240         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
7241         * doc/glibc-headers/*.texi: Likewise.
7242         * doc/posix-functions/*.texi: Likewise.
7243         * doc/glibc-functions/*.texi: Likewise.
7244
7245 2011-07-31  Bruno Haible  <bruno@clisp.org>
7246
7247         snippet/warn-on-use: Fix indentation.
7248         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
7249
7250 2011-07-25  Jim Meyering  <meyering@redhat.com>
7251
7252         tests: test-update-copyright.sh: remove unnecessary "rm" commands
7253         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
7254         commands.
7255
7256 2011-07-27  Jim Meyering  <meyering@redhat.com>
7257
7258         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
7259         * top/maint.mk (gl_extract_significant_defines_): Now that
7260         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
7261         gnulib/lib/signal.in.h, and now that we recommend to
7262         define-if-undefined those two symbols in application code,
7263         we must filter them out of the "significant" list.
7264         This avoids a "make syntax-check" failure in coreutils.
7265
7266 2011-07-26  Eric Blake  <eblake@redhat.com>
7267
7268         warnings: add comments about previous patch
7269         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
7270         * m4/include_next.m4: Likewise.
7271         * m4/warn-on-use.m4: Likewise.
7272         * m4/warnings.m4: Likewise, and simplify use.
7273         Suggested by Stefano Lattarini.
7274
7275         include-next, warnings: support older autoconf
7276         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
7277         AS_VAR_PUSHDEF in a way that works with older autoconf.
7278         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
7279         Reported by Daniel P. Berrange.
7280
7281 2011-07-25  Bruno Haible  <bruno@clisp.org>
7282
7283         fseek, ftell: Fix doc.
7284         * doc/posix-functions/fseek.texi: Reword statement about
7285         AC_SYS_LARGEFILE.
7286         * doc/posix-functions/ftell.texi: Likewise.
7287
7288 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
7289             Bruno Haible  <bruno@clisp.org>
7290
7291         Add dependencies to the 'largefile' module.
7292         * modules/fopen (Depends-on): Add 'largefile'.
7293         * modules/freopen (Depends-on): Likewise.
7294         * modules/fseeko (Depends-on): Likewise.
7295         * modules/ftello (Depends-on): Likewise.
7296         * modules/glob (Depends-on): Likewise.
7297         * modules/lseek (Depends-on): Likewise.
7298         * modules/lstat (Depends-on): Likewise.
7299         * modules/mkostemp (Depends-on): Likewise.
7300         * modules/mkostemps (Depends-on): Likewise.
7301         * modules/mkstemp (Depends-on): Likewise.
7302         * modules/mkstemps (Depends-on): Likewise.
7303         * modules/open (Depends-on): Likewise.
7304         * modules/openat (Depends-on): Likewise.
7305         * modules/pread (Depends-on): Likewise.
7306         * modules/pwrite (Depends-on): Likewise.
7307         * modules/scandir (Depends-on): Likewise.
7308         * modules/stat (Depends-on): Likewise.
7309         * modules/tmpfile (Depends-on): Likewise.
7310         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
7311         since the containing module now depends on the largefile module.
7312         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
7313         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
7314         off_t is fixed by gnulib.
7315         * doc/posix-functions/freopen.texi: Likewise.
7316         * doc/posix-functions/fseeko.texi: Likewise.
7317         * doc/posix-functions/fstatat.texi: Likewise.
7318         * doc/posix-functions/ftello.texi: Likewise.
7319         * doc/posix-functions/glob.texi: Likewise.
7320         * doc/posix-functions/lseek.texi: Likewise.
7321         * doc/posix-functions/lstat.texi: Likewise.
7322         * doc/posix-functions/mkstemp.texi: Likewise.
7323         * doc/posix-functions/open.texi: Likewise.
7324         * doc/posix-functions/openat.texi: Likewise.
7325         * doc/posix-functions/pread.texi: Likewise.
7326         * doc/posix-functions/pwrite.texi: Likewise.
7327         * doc/posix-functions/scandir.texi: Likewise.
7328         * doc/posix-functions/stat.texi: Likewise.
7329         * doc/posix-functions/tmpfile.texi: Likewise.
7330         * doc/glibc-functions/mkostemp.texi: Likewise.
7331         * doc/glibc-functions/mkostemps.texi: Likewise.
7332         * doc/glibc-functions/mkstemps.texi: Likewise.
7333
7334 2011-07-25  Bruno Haible  <bruno@clisp.org>
7335
7336         fcntl: Move AC_LIBOBJ invocation to module description.
7337         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
7338         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
7339
7340         fcntl: Remove call-in from fchdir.m4.
7341         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
7342         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
7343
7344         dup3: Remove potential call-in from fchdir.m4.
7345         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
7346         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
7347
7348         dup2: Move AC_LIBOBJ invocation to module description.
7349         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
7350         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
7351         Don't invoke AC_LIBOBJ.
7352         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
7353
7354         dup2: Remove call-in from fchdir.m4.
7355         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
7356         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
7357
7358         fclose: Move AC_LIBOBJ invocation to module description.
7359         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
7360         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
7361         to 1.
7362         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
7363
7364         fclose: Remove call-in from close.m4.
7365         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
7366         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
7367
7368         close: Move AC_LIBOBJ invocation to module description.
7369         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
7370         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
7371         1.
7372         * modules/close (configure.ac): Invoke AC_LIBOBJ.
7373
7374         close: Remove call-in from fchdir.m4.
7375         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
7376         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
7377
7378         open: Move AC_LIBOBJ invocation to module description.
7379         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
7380         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
7381         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
7382
7383         open: Remove call-in from fchdir.m4.
7384         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
7385         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
7386
7387         fchdir: Start to remove gl_REPLACE_* idiom.
7388         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
7389         (gl_FUNC_FCHDIR): Invoke it.
7390
7391 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
7392
7393         * lib/ftell.c (ftell): Comment out cast.
7394
7395         close: use gl_REPLACE_FCLOSE only if defined
7396         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
7397         is defined.  The close module doesn't depend on the fclose module
7398         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
7399         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
7400         I reproduced the problem with "./gnulib-tool --test close sys_socket".
7401
7402 2011-07-24  Jim Meyering  <meyering@redhat.com>
7403
7404         test-select.h: avoid warning when using gcc's -Wmissing-declarations
7405         * tests/test-select.h (test_function): Declare as "static".
7406
7407 2011-07-24  Bruno Haible  <bruno@clisp.org>
7408
7409         doc: Mention the effects of AC_SYS_LARGEFILE.
7410         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
7411         on this function.
7412         * doc/posix-functions/aio_error.texi: Likewise.
7413         * doc/posix-functions/aio_fsync.texi: Likewise.
7414         * doc/posix-functions/aio_read.texi: Likewise.
7415         * doc/posix-functions/aio_return.texi: Likewise.
7416         * doc/posix-functions/aio_suspend.texi: Likewise.
7417         * doc/posix-functions/aio_write.texi: Likewise.
7418         * doc/posix-functions/fgetpos.texi: Likewise.
7419         * doc/posix-functions/fopen.texi: Likewise.
7420         * doc/posix-functions/freopen.texi: Likewise.
7421         * doc/posix-functions/fsetpos.texi: Likewise.
7422         * doc/posix-functions/fstatvfs.texi: Likewise.
7423         * doc/posix-functions/ftruncate.texi: Likewise.
7424         * doc/posix-functions/ftw.texi: Likewise.
7425         * doc/posix-functions/getrlimit.texi: Likewise.
7426         * doc/posix-functions/glob.texi: Likewise.
7427         * doc/posix-functions/lio_listio.texi: Likewise.
7428         * doc/posix-functions/lockf.texi: Likewise.
7429         * doc/posix-functions/mkstemp.texi: Likewise.
7430         * doc/posix-functions/mmap.texi: Likewise.
7431         * doc/posix-functions/nftw.texi: Likewise.
7432         * doc/posix-functions/openat.texi: Likewise.
7433         * doc/posix-functions/opendir.texi: Likewise.
7434         * doc/posix-functions/posix_fadvise.texi: Likewise.
7435         * doc/posix-functions/posix_fallocate.texi: Likewise.
7436         * doc/posix-functions/pread.texi: Likewise.
7437         * doc/posix-functions/pwrite.texi: Likewise.
7438         * doc/posix-functions/readdir.texi: Likewise.
7439         * doc/posix-functions/readdir_r.texi: Likewise.
7440         * doc/posix-functions/rewinddir.texi: Likewise.
7441         * doc/posix-functions/scandir.texi: Likewise.
7442         * doc/posix-functions/seekdir.texi: Likewise.
7443         * doc/posix-functions/setrlimit.texi: Likewise.
7444         * doc/posix-functions/statvfs.texi: Likewise.
7445         * doc/posix-functions/telldir.texi: Likewise.
7446         * doc/posix-functions/tmpfile.texi: Likewise.
7447         * doc/posix-functions/truncate.texi: Likewise.
7448         * doc/glibc-functions/fallocate.texi: Likewise.
7449         * doc/glibc-functions/fstatfs.texi: Likewise.
7450         * doc/glibc-functions/fts_children.texi: Likewise.
7451         * doc/glibc-functions/fts_read.texi: Likewise.
7452         * doc/glibc-functions/getdirentries.texi: Likewise.
7453         * doc/glibc-functions/mkostemp.texi: Likewise.
7454         * doc/glibc-functions/mkostemps.texi: Likewise.
7455         * doc/glibc-functions/mkstemps.texi: Likewise.
7456         * doc/glibc-functions/preadv.texi: Likewise.
7457         * doc/glibc-functions/pwritev.texi: Likewise.
7458         * doc/glibc-functions/sendfile.texi: Likewise.
7459         * doc/glibc-functions/statfs.texi: Likewise.
7460
7461 2011-07-24  Bruno Haible  <bruno@clisp.org>
7462
7463         doc: Fix typo.
7464         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
7465
7466 2011-07-24  Bruno Haible  <bruno@clisp.org>
7467
7468         doc: Mention fsusage.
7469         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
7470
7471 2011-07-24  Bruno Haible  <bruno@clisp.org>
7472
7473         doc: Mention new glibc headers and functions.
7474         * doc/glibc-headers/gshadow.texi: New file.
7475         * doc/glibc-functions/endsgent.texi: New file.
7476         * doc/glibc-functions/fgetsgent.texi: New file.
7477         * doc/glibc-functions/fgetsgent_r.texi: New file.
7478         * doc/glibc-functions/getsgent.texi: New file.
7479         * doc/glibc-functions/getsgent_r.texi: New file.
7480         * doc/glibc-functions/getsgnam.texi: New file.
7481         * doc/glibc-functions/getsgnam_r.texi: New file.
7482         * doc/glibc-functions/putsgent.texi: New file.
7483         * doc/glibc-functions/setsgent.texi: New file.
7484         * doc/glibc-functions/sgetsgent.texi: New file.
7485         * doc/glibc-functions/sgetsgent_r.texi: New file.
7486         * doc/glibc-functions/malloc_info.texi: New file.
7487         * doc/glibc-functions/preadv.texi: New file.
7488         * doc/glibc-functions/pwritev.texi: New file.
7489         * doc/glibc-functions/register_printf_modifier.texi: New file.
7490         * doc/glibc-functions/register_printf_specifier.texi: New file.
7491         * doc/glibc-functions/register_printf_type.texi: New file.
7492         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
7493         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
7494         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
7495         * doc/glibc-functions/pthread_getname_np.texi: New file.
7496         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
7497         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
7498         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
7499         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
7500         * doc/glibc-functions/pthread_setname_np.texi: New file.
7501         * doc/glibc-functions/pthread_sigqueue.texi: New file.
7502         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
7503         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
7504         * doc/glibc-functions/qsort_r.texi: New file.
7505         * doc/glibc-functions/quick_exit.texi: New file.
7506         * doc/glibc-functions/syncfs.texi: New file.
7507         * doc/gnulib.texi: Include them.
7508         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
7509         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
7510         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
7511         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
7512         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
7513         * doc/glibc-functions/execvpe.texi: Likewise.
7514
7515 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
7516
7517         ftell: don't include <unistd.h>
7518         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
7519         guaranteed to define off_t, and the ftell module depends on the
7520         stdio module.
7521
7522         ftell: do not assume wraparound signed arithmetic
7523         * lib/ftell.c: Include <limits.h>.
7524         (ftell): Don't assume wraparound signed arithmetic.
7525
7526 2011-07-24  Bruno Haible  <bruno@clisp.org>
7527
7528         close: No longer depend on module 'fclose'.
7529         * modules/close (Depends-on): Remove fclose.
7530         * NEWS: Mention the change.
7531         Suggested by Sam Steingold <sds@gnu.org>.
7532
7533 2011-07-24  Bruno Haible  <bruno@clisp.org>
7534
7535         fsusage: Enable large volume support on AIX >= 5.2.
7536         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
7537         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
7538         instead of STAT_STATVFS.
7539         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
7540
7541         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
7542         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
7543         f_blocks field only on MacOS X.
7544
7545         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
7546         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
7547         * modules/fsusage (Depends-on): Add largefile.
7548
7549 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
7550
7551         * README: Modernize discussion of signed integers.
7552         Assuming overflow wraparound is no longer safe.
7553         Mention ones' complement and signed magnitude.
7554
7555 2011-07-22  Bruno Haible  <bruno@clisp.org>
7556
7557         select tests, pselect tests: Refactor.
7558         * tests/test-select.h: New file, extracted from tests/test-select.c.
7559         (select_fn): New type.
7560         (test, do_select, do_select_nowait, do_select_wait, test_tty,
7561         test_connect_first, test_accept_first, test_pair, test_socket_pair,
7562         test_pipe): Add my_select argument.
7563         (test_function): Renamed from main. Add my_select argument.
7564         * tests/test-select.c: Move most code to tests/test-select.h. Include
7565         test-select.h.
7566         * modules/select-tests (Files): Add tests/test-select.h.
7567         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
7568         (my_select, main): New functions.
7569         * modules/pselect-tests (Files): Add tests/test-select.h,
7570         tests/macros.h, tests/signature.h.
7571         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
7572         (configure.ac): Check for <sys/wait.h>.
7573
7574 2011-07-22  Bruno Haible  <bruno@clisp.org>
7575
7576         sys_select tests: Check the signature of FD_*.
7577         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
7578         signature tests from here...
7579         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
7580         here.
7581         * modules/sys_select-tests (Files): Add tests/signature.h.
7582
7583 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
7584
7585         largefile: new module, replacing large-inode
7586         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
7587         * MODULES.html.sh: Add largefile, remove large-inode.
7588         * modules/largefile, m4/largefile.m4: New files.
7589         * modules/large-inode, m4/large-inode.m4: Remove.
7590
7591         fsusage: port to MacOS X 10.7 with 4 TiB file systems
7592         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
7593         implementations that use only 32 bits to count blocks.
7594         On typical hosts with 1024-byte blocks, this fails with file
7595         systems as small as 4 TiB.  Problem reported by Herb Wartens
7596         <http://debbugs.gnu.org/9140> and this should also fix a similar
7597         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
7598
7599         large-inode: New module
7600         * MODULES.html.sh: Add it.
7601         * modules/large-inode, m4/large-inode.m4: New files.
7602
7603         extensions: Enable extensions on MacOS X 10.5 and later.
7604         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
7605
7606 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
7607
7608         file-has-acl: use acl_extended_file_nofollow if available
7609         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
7610         (acl_extended_file): New macro.
7611         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
7612         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
7613
7614 2011-07-21  Bruno Haible  <bruno@clisp.org>
7615
7616         Declare system functions in a way that works with C++.
7617         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
7618         declare fdopendir as extern "C".
7619         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
7620         declare frexpl as extern "C".
7621         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
7622         declare gai_strerror as extern "C".
7623         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
7624         programs, declare gai_strerror as extern "C".
7625         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
7626         declare getlogin_r as extern "C".
7627         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
7628         as extern "C".
7629         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
7630         declare ldexpl as extern "C".
7631         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
7632         as extern "C".
7633         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
7634         program, declare getmntinfo as extern "C".
7635         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
7636         stpncpy as extern "C".
7637         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
7638         program, declare __xpg_strerror_r as extern "C".
7639         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
7640         strndup as extern "C".
7641         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
7642         declare memset and bzero as extern "C".
7643         Reported by Sam Steingold <sds@gnu.org>.
7644
7645 2011-07-12  Jim Meyering  <meyering@redhat.com>
7646
7647         maint.mk: prohibit inclusion of "verify.h" without use
7648         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
7649
7650 2011-07-19  Pádraig Brady  <P@draigBrady.com>
7651
7652         timer-time: A new module to check for timer_settime()
7653         * m4/timer_time.m4: Check for the posix function.
7654         * modules/timer-time: Add the new module.
7655         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
7656         Mention it.
7657
7658 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
7659             Bruno Haible  <bruno@clisp.org>
7660
7661         pthread_sigmask: assume POSIX threads if --avoid=threadlib
7662         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
7663         not defined, assume POSIX threads and look for pthread_sigmask in
7664         $LIBS, without changing $CPPFLAGS.
7665
7666 2011-07-19  Bruno Haible  <bruno@clisp.org>
7667
7668         strstr: Update cross-compilation guess.
7669         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
7670         CPUs, guess no, in view of glibc
7671         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
7672         Suggested by Eric Blake. Reported by Reuben Thomas.
7673
7674 2011-07-19  Pádraig Brady  <P@draigBrady.com>
7675
7676         getopt-gnu: suppress core dumps from detection code
7677         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
7678         to suppress core dumps that may well occur on glibc systems.
7679         * modules/getopt-gnu: Depend on nocrash.
7680
7681 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
7682
7683         pthread_sigmask: ensure usleep is declared
7684         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
7685         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
7686
7687 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
7688
7689         doc: Document NonStop portability issues.
7690         * doc/posix-functions/sigaction.texi (sigaction):
7691         * doc/posix-headers/signal.texi (signal.h):
7692         Document NonStop.  See Joachim Schmitz in
7693         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
7694
7695 2011-07-15  Bruno Haible  <bruno@clisp.org>
7696
7697         ffsl, ffsll: Avoid unportable behaviour.
7698         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
7699
7700 2011-07-15  Bruno Haible  <bruno@clisp.org>
7701
7702         ffs: More tests.
7703         * tests/test-ffs.c (NBITS): New macro.
7704         (main): Add more tests.
7705         * tests/test-ffsl.c (NBITS): New macro.
7706         (main): Add more tests.
7707         * tests/test-ffsll.c (NBITS): New macro.
7708         (main): Add more tests.
7709
7710 2011-07-15  Eric Blake  <eblake@redhat.com>
7711
7712         ffsl, ffsll: new modules
7713         * modules/ffsl: New file.
7714         * modules/ffsll: Likewise.
7715         * m4/ffsl.m4: Likewise.
7716         * m4/ffsll.m4: Likewise.
7717         * lib/ffsl.c: Likewise.
7718         * lib/ffsl.h: Likewise.
7719         * lib/ffsll.c: Likewise.
7720         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
7721         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
7722         * modules/string (Makefile.am): Substitute witnesses.
7723         * lib/strings.in.h (ffsl, ffsll): Declare.
7724         * modules/ffsl-tests: New test file.
7725         * modules/ffsll-tests: Likewise.
7726         * tests/test-ffsl.c: Likewise.
7727         * tests/test-ffsll.c: Likewise.
7728         * MODULES.html.sh (Integer arithmetic functions): Mention it.
7729         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
7730         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
7731
7732         ffs: fix m4 prerequisite
7733         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
7734
7735         ffs: avoid undefined behavior
7736         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
7737         * tests/test-ffs.c (naive, main): Avoid signed shifts.
7738         Reported by Bruno Haible.
7739
7740 2011-07-12  Bruno Haible  <bruno@clisp.org>
7741
7742         pthread_sigmask: Rely on module 'threadlib'.
7743         * modules/pthread_sigmask (Depends-on): Add threadlib.
7744         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
7745         is defined.
7746
7747 2011-07-12  Bruno Haible  <bruno@clisp.org>
7748
7749         regex: Depend on module 'strcase'.
7750         * modules/regex (Depends-on): Add strcase, for strcasecmp().
7751
7752 2011-07-12  Jim Meyering  <meyering@redhat.com>
7753
7754         warn-on-use: fix typo in file name
7755         * modules/snippet/warn-on-use (Files): Correct file name:
7756         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
7757
7758 2011-07-12  Bruno Haible  <bruno@clisp.org>
7759
7760         strings: Document module.
7761         * doc/posix-headers/strings.texi: Mention module 'strings'.
7762
7763 2011-07-12  Bruno Haible  <bruno@clisp.org>
7764
7765         Rename module '_Noreturn' to 'snippet/_Noreturn'.
7766         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
7767         (Files, Makefile.am): Update.
7768         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
7769         * modules/stdlib (Depends-on): Update.
7770
7771 2011-07-12  Bruno Haible  <bruno@clisp.org>
7772
7773         * NEWS: Mention the changes.
7774
7775         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
7776         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
7777         (Files, Makefile.am): Update.
7778         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
7779         * modules/arpa_inet (Depends-on): Update.
7780         * modules/ctype (Depends-on): Update.
7781         * modules/dirent (Depends-on): Update.
7782         * modules/fcntl-h (Depends-on): Update.
7783         * modules/glob (Depends-on): Update.
7784         * modules/iconv-h (Depends-on): Update.
7785         * modules/inttypes-incomplete (Depends-on): Update.
7786         * modules/langinfo (Depends-on): Update.
7787         * modules/locale (Depends-on): Update.
7788         * modules/math (Depends-on): Update.
7789         * modules/netdb (Depends-on): Update.
7790         * modules/poll-h (Depends-on): Update.
7791         * modules/pty (Depends-on): Update.
7792         * modules/search (Depends-on): Update.
7793         * modules/signal (Depends-on): Update.
7794         * modules/spawn (Depends-on): Update.
7795         * modules/stdio (Depends-on): Update.
7796         * modules/stdlib (Depends-on): Update.
7797         * modules/string (Depends-on): Update.
7798         * modules/strings (Depends-on): Update.
7799         * modules/sys_file (Depends-on): Update.
7800         * modules/sys_ioctl (Depends-on): Update.
7801         * modules/sys_select (Depends-on): Update.
7802         * modules/sys_socket (Depends-on): Update.
7803         * modules/sys_stat (Depends-on): Update.
7804         * modules/sys_time (Depends-on): Update.
7805         * modules/sys_times (Depends-on): Update.
7806         * modules/sys_utsname (Depends-on): Update.
7807         * modules/sys_wait (Depends-on): Update.
7808         * modules/termios (Depends-on): Update.
7809         * modules/time (Depends-on): Update.
7810         * modules/unistd (Depends-on): Update.
7811         * modules/wchar (Depends-on): Update.
7812         * modules/wctype-h (Depends-on): Update.
7813         * MODULES.html.sh (Support for building libraries and executables):
7814         Update.
7815
7816         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
7817         * modules/snippet/unused-parameter: Renamed from
7818         modules/unused-parameter.
7819         (Files, Makefile.am): Update.
7820         * build-aux/snippet/unused-parameter.h: Renamed from
7821         build-aux/unused-parameter.h.
7822         * modules/selinux-h (Depends-on): Update.
7823         * modules/unistr/base (Depends-on): Update.
7824         * MODULES.html.sh (Core language properties): Update.
7825
7826         Rename module 'link-warning' to 'snippet/link-warning'.
7827         * modules/snippet/link-warning: Renamed from modules/link-warning.
7828         (Files, Makefile.am): Update.
7829         * build-aux/snippet/link-warning.h: Renamed from
7830         build-aux/link-warning.h.
7831         * MODULES.html.sh (Support for building libraries and executables):
7832         Update.
7833
7834         Rename module 'c++defs' to 'snippet/c++defs'.
7835         * modules/snippet/c++defs: Renamed from modules/c++defs.
7836         (Files, Makefile.am): Update.
7837         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
7838         * modules/arpa_inet (Depends-on): Update.
7839         * modules/ctype (Depends-on): Update.
7840         * modules/dirent (Depends-on): Update.
7841         * modules/fcntl-h (Depends-on): Update.
7842         * modules/glob (Depends-on): Update.
7843         * modules/iconv-h (Depends-on): Update.
7844         * modules/langinfo (Depends-on): Update.
7845         * modules/locale (Depends-on): Update.
7846         * modules/math (Depends-on): Update.
7847         * modules/netdb (Depends-on): Update.
7848         * modules/poll-h (Depends-on): Update.
7849         * modules/pty (Depends-on): Update.
7850         * modules/search (Depends-on): Update.
7851         * modules/signal (Depends-on): Update.
7852         * modules/spawn (Depends-on): Update.
7853         * modules/stdio (Depends-on): Update.
7854         * modules/stdlib (Depends-on): Update.
7855         * modules/string (Depends-on): Update.
7856         * modules/strings (Depends-on): Update.
7857         * modules/sys_ioctl (Depends-on): Update.
7858         * modules/sys_select (Depends-on): Update.
7859         * modules/sys_socket (Depends-on): Update.
7860         * modules/sys_stat (Depends-on): Update.
7861         * modules/sys_time (Depends-on): Update.
7862         * modules/sys_wait (Depends-on): Update.
7863         * modules/termios (Depends-on): Update.
7864         * modules/time (Depends-on): Update.
7865         * modules/unistd (Depends-on): Update.
7866         * modules/wchar (Depends-on): Update.
7867         * modules/wctype-h (Depends-on): Update.
7868
7869         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
7870         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
7871         (Files, Makefile.am): Update.
7872         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
7873         * modules/argv-iter (Depends-on): Update.
7874         * modules/arpa_inet (Depends-on): Update.
7875         * modules/dirent (Depends-on): Update.
7876         * modules/fcntl-h (Depends-on): Update.
7877         * modules/fnmatch (Depends-on): Update.
7878         * modules/getopt-posix (Depends-on): Update.
7879         * modules/glob (Depends-on): Update.
7880         * modules/iconv-h (Depends-on): Update.
7881         * modules/inttypes-incomplete (Depends-on): Update.
7882         * modules/locale (Depends-on): Update.
7883         * modules/math (Depends-on): Update.
7884         * modules/netdb (Depends-on): Update.
7885         * modules/search (Depends-on): Update.
7886         * modules/signal (Depends-on): Update.
7887         * modules/spawn (Depends-on): Update.
7888         * modules/stdio (Depends-on): Update.
7889         * modules/stdlib (Depends-on): Update.
7890         * modules/string (Depends-on): Update.
7891         * modules/strings (Depends-on): Update.
7892         * modules/sys_socket (Depends-on): Update.
7893         * modules/sys_stat (Depends-on): Update.
7894         * modules/sys_time (Depends-on): Update.
7895         * modules/sys_times (Depends-on): Update.
7896         * modules/sys_utsname (Depends-on): Update.
7897         * modules/time (Depends-on): Update.
7898         * modules/unistd (Depends-on): Update.
7899         * modules/wchar (Depends-on): Update.
7900         * MODULES.html.sh (Support for building libraries and executables):
7901         Update.
7902
7903 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
7904
7905         Improvements on _Noreturn and related modules.
7906
7907         modules/_Exit-tests: test _Noreturn too
7908         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
7909         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
7910         (main): Use them.
7911
7912         stdnoreturn, stdnoreturn-tests: remove modules
7913         They're not needed here and a bit premature for use elsewhere.  See
7914         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
7915         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
7916         * tests/test-stdnoreturn.c: Remove files.
7917         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
7918         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
7919         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
7920         and using noreturn.
7921         * modules/openat, modules/sigpipe-die, modules/xalloc:
7922         * modules/xmemdup0, modules/xstrtol:
7923         Remove dependency on stdnoreturn.
7924
7925         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
7926         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
7927         Reparenthesize to avoid GCC warning.
7928         Support Microsoft's syntax.
7929         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
7930
7931         _Noreturn-tests: remove module
7932         * modules/_Noreturn-tests: Remove.
7933         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
7934         * tests/test-_Noreturn.c: Remove.
7935         * tests/test-stdnoreturn.c: Merge from the old
7936         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
7937
7938 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
7939
7940         _Noreturn, stdnoreturn, and related modules.
7941
7942         * top/maint.mk: Adjust to new noreturn support.
7943         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
7944         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
7945
7946         xalloc: use stdnoreturn.h
7947         * lib/xalloc.h: Include <stdnoreturn.h>.
7948         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7949         * modules/xalloc (Depends-on): Add stdnoreturn.
7950
7951         xstrtol: use stdnoreturn.h
7952         * lib/xstrtol.h: Include <stdnoreturn.h>.
7953         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7954         * modules/xstrtol (Depends-on): Add stdnoreturn.
7955
7956         xmemdup0: use stdnoreturn.h
7957         * lib/xmemdup0.h: Include <stdnoreturn.h>.
7958         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7959         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
7960
7961         sigpipe-die: use stdnoreturn.h
7962         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
7963         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7964         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
7965
7966         openat: use stdnoreturn.h
7967         * lib/openat.h: Include <stdnoreturn.h>.
7968         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
7969         * modules/openat (Depends-on): Add stdnoreturn.
7970
7971         * lib/openat-die.c (openat_save_fail): Modernize comment.
7972
7973         * lib/xalloc-die.c (xalloc_die): Modernize comment.
7974
7975         * lib/glthread/thread.h: Modernize comment.
7976
7977         obstack: use _Noreturn
7978         * lib/obstack.c (__attribute__): Remove macro.
7979         (print_and_abort): Use _Noreturn.
7980
7981         c-stack: use _Noreturn
7982         * lib/c-stack.c (die, overflow_handler, segv_handler):
7983         Use _Noreturn rather than __attribute__((noreturn)).
7984
7985         argmatch-tests, exclude_tests: use _Noreturn
7986         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
7987         Remove.
7988         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
7989
7990         stdlib: use _Noreturn
7991         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
7992         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
7993         * modules/stdlib (Depends-on): Add _Noreturn.
7994         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
7995
7996         stdnoreturn-tests: new module
7997         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
7998
7999         stdnoreturn: new module
8000         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
8001         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
8002
8003         _Noreturn-tests: new module
8004         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
8005
8006         _Noreturn: new module
8007         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
8008         New section, mentioning it.
8009         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
8010
8011         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
8012
8013 2011-07-11  Eric Blake  <eblake@redhat.com>
8014
8015         ffs: new module
8016         * modules/ffs: New file.
8017         * m4/ffs.m4: Likewise.
8018         * lib/ffs.c: Likewise.
8019         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
8020         * modules/strings (Makefile.am): Substitute witness.
8021         (Depends-on): Add c++defs.
8022         * lib/strings.in.h (ffs): Declare.
8023         * modules/ffs-tests: New test file.
8024         * tests/test-ffs.c: Test new module.
8025         * MODULES.html.sh (Integer arithmetic functions): Mention it.
8026         * doc/posix-functions/ffs.texi (ffs): Likewise.
8027
8028         regex: avoid compiler warning
8029         * lib/regex.c (includes): Include <strings.h>, for use of
8030         strcasecmp in regcomp.c.
8031         Reported by Joachim Schmitz.
8032
8033 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
8034
8035         stdint: respect system's intmax_t if INTMAX_MAX
8036         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
8037         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
8038         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
8039         long but int64_t is long long, and where we will clash with the
8040         system intmax_t if we override it.  See
8041         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
8042         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
8043         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
8044         similarly for UINTMAX_C.
8045
8046 2011-07-08  Bruno Haible  <bruno@clisp.org>
8047
8048         pthread_sigmask tests: Avoid a compiler warning.
8049         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
8050         non-zero.
8051
8052         sigprocmask tests: A better way to avoid a compiler warning.
8053         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
8054         (main): Complain if system() returns non-zero.
8055         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
8056
8057 2011-07-08  Bruno Haible  <bruno@clisp.org>
8058
8059         pthread_sigmask: Work around IRIX bug.
8060         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
8061         bug.
8062         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
8063         there may be unblocked pending signals.
8064         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
8065
8066 2011-07-08  Bruno Haible  <bruno@clisp.org>
8067
8068         pthread_sigmask: Work around Cygwin bug.
8069         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
8070         bug.
8071         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
8072         the system's pthread_sigmask function.
8073         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
8074
8075 2011-07-08  Bruno Haible  <bruno@clisp.org>
8076
8077         pthread_sigmask: Work around bug in single-threaded implementation.
8078         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
8079         FreeBSD, HP-UX, Solaris bug.
8080         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
8081         * lib/pthread_sigmask.c: Include <stddef.h>.
8082         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
8083         the system's pthread_sigmask function.
8084         * modules/pthread_sigmask (configure.ac): Invoke
8085         gl_PREREQ_PTHREAD_SIGMASK.
8086         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
8087         HP-UX, Solaris.
8088
8089 2011-07-08  Eric Blake  <eblake@redhat.com>
8090
8091         test-sigprocmask: avoid compiler warning
8092         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
8093         * tests/test-sigprocmask.c (main): Use it to silence warning.
8094         Reported by Jim Meyering.
8095
8096         test-snprintf: avoid compiler warning
8097         * tests/test-snprintf.c (main): Avoid shadowed declaration.
8098         * tests/test-vsnprintf.c (main): Likewise.
8099         Reported by Jim Meyering.
8100
8101 2011-07-08  Bruno Haible  <bruno@clisp.org>
8102
8103         Tests for module 'pthread_sigmask'.
8104         * modules/pthread_sigmask-tests: New file.
8105         * tests/test-pthread_sigmask1.c: New file, based on
8106         tests/test-sigprocmask.c.
8107         * tests/test-pthread_sigmask2.c: New file.
8108
8109 2011-07-08  Jim Meyering  <meyering@redhat.com>
8110
8111         test-getopt.h: avoid warning about an unused variable
8112         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
8113
8114 2011-07-07  Jim Meyering  <meyering@redhat.com>
8115
8116         maint: reduce list of files exempt from sc_prohibit_leading_TABs
8117         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
8118         now that it no longer contains leading TABs.
8119         Remove unused "url=FIXME" statement.
8120
8121 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
8122
8123         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
8124         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
8125         When gl_THREADLIB is not in use, assume that the POSIX sematics
8126         are desired.  This is better for Emacs, which uses POSIX semantics
8127         on GNUish and/or POSIXish platforms, and does not use threads at
8128         all otherwise.
8129
8130         pthread_sigmask: fix typo when testing for libraries
8131         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
8132         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
8133
8134 2011-07-08  Eric Blake  <eblake@redhat.com>
8135
8136         fts: introduce FTS_NOATIME
8137         * lib/fts_.h (FTS_NOATIME): New bit flag.
8138         (FTS_OPTIONMASK): Adjust.
8139         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
8140         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
8141
8142 2011-07-08  Bruno Haible  <bruno@clisp.org>
8143
8144         Tests for module 'thread'.
8145         * modules/thread-tests: New file.
8146         * tests/test-thread_self.c: New file.
8147         * tests/test-thread_create.cc: New file.
8148
8149 2011-07-08  Bruno Haible  <bruno@clisp.org>
8150
8151         thread: Avoid gcc warnings when using gl_thread_self().
8152         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
8153         'void *'.
8154         (gl_thread_self_pointer): Update.
8155
8156 2011-07-07  Bruno Haible  <bruno@clisp.org>
8157
8158         signal-c++-tests: Check declaration of pthread_sigmask.
8159         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
8160         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
8161         $(LIB_PTHREAD_SIGMASK).
8162
8163 2011-07-07  Bruno Haible  <bruno@clisp.org>
8164
8165         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
8166         * lib/signal.in.h (pthread_sigmask): Override if
8167         REPLACE_PTHREAD_SIGMASK is 1.
8168         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
8169         REPLACE_PTHREAD_SIGMASK.
8170         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
8171         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
8172         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
8173         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
8174         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
8175
8176 2011-07-07  Bruno Haible  <bruno@clisp.org>
8177
8178         pthread_sigmask: Ensure declaration in <signal.h>.
8179         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
8180         include <pthread.h>.
8181         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
8182         problem.
8183
8184 2011-07-07  Bruno Haible  <bruno@clisp.org>
8185
8186         pthread_sigmask: Document the module.
8187         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
8188
8189 2011-07-07  Bruno Haible  <bruno@clisp.org>
8190
8191         pthread_sigmask: Follow gnulib conventions.
8192         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
8193         gl_PTHREAD_SIGMASK.
8194         * modules/pthread_sigmask (configure.ac): Update.
8195
8196 2011-07-07  Bruno Haible  <bruno@clisp.org>
8197
8198         pthread_sigmask: Make declaration C++ safe.
8199         * lib/signal.in.h: In two special conditions, just do an #include_next.
8200         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
8201         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
8202         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
8203         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
8204         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
8205         not REPLACE_PTHREAD_MASK.
8206         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
8207         not REPLACE_PTHREAD_MASK.
8208         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
8209
8210 2011-07-07  Bruno Haible  <bruno@clisp.org>
8211
8212         pthread_sigmask: Fix return value.
8213         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
8214         * lib/pthread_sigmask.c: New file.
8215         * modules/pthread_sigmask (Files): Add it.
8216         (configure.ac): Invoke AC_LIBOBJ.
8217
8218 2011-07-07  Eric Blake  <eblake@redhat.com>
8219
8220         getopt: more portable argv creation
8221         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
8222         const, use char arrays rather than strings.
8223         Suggested by Paul Eggert.
8224
8225 2011-07-07  Bruno Haible  <bruno@clisp.org>
8226
8227         Tests for module 'sigprocmask'.
8228         * modules/sigprocmask-tests: New file.
8229         * tests/test-sigprocmask.c: New file.
8230
8231 2011-07-07  Bruno Haible  <bruno@clisp.org>
8232
8233         float tests: Tweak.
8234         * tests/test-float.c (main): Tweak skip message.
8235
8236 2011-07-07  Eric Blake  <eblake@redhat.com>
8237
8238         getopt: avoid compiler warning during configure
8239         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
8240         assigning string literals to non-const pointer.
8241
8242         getopt-gnu: avoid crash in glibc getopt
8243         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
8244         * tests/test-getopt.h (test_getopt): Enhance test.
8245         * tests/test-getopt_long.h (test_getopt_long): Likewise.
8246         * doc/posix-functions/getopt.texi (getopt): Document it.
8247         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
8248         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
8249         Likewise.
8250
8251 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
8252
8253         getopt: handle W; without long options in getopt [BZ #12922]
8254         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
8255         but no long options are defined, just return 'W'.
8256
8257 2011-07-07  Bruno Haible  <bruno@clisp.org>
8258
8259         Avoid literal tabs.
8260         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
8261         variable containing a tab instead of a literal tab.
8262         Reported by Jim Meyering.
8263
8264 2011-07-07  Bruno Haible  <bruno@clisp.org>
8265
8266         Comments.
8267         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
8268
8269 2011-07-06  Bruno Haible  <bruno@clisp.org>
8270
8271         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
8272         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
8273         <winsock2.h>.
8274         (rpl_fd_isset, FD_ISSET): New definitions, copied from
8275         lib/sys_socket.in.h.
8276         (close, gethostname): Hide declarations from <winsock2.h>.
8277         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
8278         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
8279         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
8280         (select): Don't override if gnulib's <sys/select.h> was already
8281         included.
8282         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
8283         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
8284         setsockopt, shutdown, select): Tweak indentation.
8285
8286 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8287
8288         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
8289         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
8290         in an application that does not use the sys_select module.
8291
8292 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
8293
8294         poll: do not return 0 on timeout=-1
8295         * lib/poll.c: Loop with yield if no events occured
8296
8297 2011-07-06  Eric Blake  <eblake@redhat.com>
8298
8299         pthread_sigmask: always replace when not using pthread
8300         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
8301         replacement when using some threading other than pthread.  Fix
8302         logic bug.
8303
8304 2011-07-06  Bruno Haible  <bruno@clisp.org>
8305
8306         Comments.
8307         * m4/printf.m4: Update comments about mingw.
8308
8309 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
8310
8311         sys_select: define sigset_t more portably
8312         * lib/sys_select.in.h: Always include <sys/types.h>, since
8313         we now need sigset_t and mingw defines it there.
8314         Include <signal.h> before split inclusion guard, to avoid
8315         mishaps on Solaris, whose <signal.h> eventually includes us.
8316         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
8317         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
8318         which come from ...
8319         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
8320         gl_CHECK_TYPE_SIGSET_T.
8321         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
8322         does the real work.
8323         * modules/sys_select (Depends-on): Add 'signal'.
8324
8325         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
8326         Suggested by Bruno Haible.
8327
8328         pselect: Use pthread_sigmask, not sigprocmask.
8329         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
8330         multithreaded apps better than sigprocmask does.
8331         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
8332         sigprocmask directly.
8333
8334 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
8335
8336         * lib/pselect.c (pselect): Use plain name, without "rpl_".
8337         Don't #undef,  since we don't need any underlying pselect.
8338         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
8339         (Depends-on): Add select.
8340         (Link): Add $(LIBSOCKET).
8341         These changes suggested by Bruno Haible.
8342
8343         pselect: document better
8344         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
8345         * doc/posix-functions/pselect.texi (pselect): Document new module.
8346
8347         pthread_sigmask: new module
8348         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
8349         * doc/posix-functions/pthread_sigmask.texi: Document new module.
8350         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
8351         This is done only as a macro; I don't know how well that'll
8352         work for C++.  Move <sys/types.h> include before the include_next,
8353         to avoid mishap on Solaris.
8354         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
8355         * modules/signal (Makefile.am): Substitute the check's results.
8356         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
8357
8358         test-pselect: new module
8359         * modules/pselect-tests, tests/test-pselect.c: New files.
8360         * tests/test-select.c, tests/test-sys_select-c++.cc:
8361         If TEST_PSELECT is defined, test pselect instead of testing select.
8362
8363         * tests/test-sys_select.c (sigset_t): Test for it, too.
8364         Suggested by Bruno Haible.
8365
8366 2011-07-05  Eric Blake  <eblake@redhat.com>
8367
8368         snprintf: guarantee %1$d, for libintl
8369         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
8370         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
8371         * doc/posix-functions/snprintf.texi (snprintf): Update.
8372         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8373         * tests/test-snprintf.c (main): Enhance test.
8374         * tests/test-vsnprintf.c (main): Likewise.
8375
8376 2011-07-05  Jim Meyering  <meyering@redhat.com>
8377
8378         maint: exempt stdio-read.c and stdio-write.c from the cppi check
8379         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
8380         per Bruno's request, to accommodate this idiom (no space after "#")
8381         even when the function is inside an #if block:
8382         char *
8383         gets (char *s)
8384         #undef gets
8385         {
8386           ...
8387         }
8388
8389 2011-07-04  Jim Meyering  <meyering@redhat.com>
8390
8391         maint: indent with spaces, not TABs, and add a rule to check this
8392         * tests/test-userspec.c: Indent with spaces, not TABs.
8393         * tests/test-argp.c: Likewise.
8394         * tests/test-c-stack2.sh: Likewise.
8395         * tests/test-parse-duration.sh: Likewise
8396         * m4/strtod.m4: Likewise.
8397         * m4/alloca.m4: Likewise.
8398         * m4/pselect.m4: Likewise.
8399         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
8400
8401 2011-07-03  Jim Meyering  <meyering@redhat.com>
8402
8403         maint.mk: correct omissions in prohibit_argmatch_without_use check
8404         This rule would mistakenly report that argmatch.h is included without
8405         use even when both the argmatch and invalid_arg macro were used.
8406         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
8407         of argmatch and invalid_arg.
8408
8409 2011-07-03  Bruno Haible  <bruno@clisp.org>
8410
8411         Comments about EINTR.
8412         * lib/safe-read.h: Explain the purpose of this module.
8413         * lib/safe-write.h: Likewise.
8414         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
8415         module.
8416         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
8417         module.
8418         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8419
8420 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
8421
8422         xnanosleep: Rewrite to use new dtotimespec module.
8423         It has the conversion code that used to be in xnanosleep.
8424         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
8425         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
8426         (TIME_T_MAX): Remove.
8427         (xnanosleep): Rewrite in terms of dtotimespec.
8428         * modules/xnanosleep (Depends-on): Add dtotimespec.
8429         Remove intprops, stdbool.
8430
8431         timespec-add, timespec-sub: new modules
8432         * lib/timespec.h (timespec_add, timespec_sub): New decls.
8433         * lib/timespec-add.c, lib/timespec-sub.c:
8434         * modules/timespec-add, modules/timespec-sub: New files.
8435
8436         dtotimespec: new module
8437         * lib/timespec.h (dtotimespec): New decl.
8438         * lib/dtotimespec.c, modules/dtotimespec: New files.
8439
8440         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
8441
8442         pselect: new module
8443         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
8444         (pselect): New decls.
8445         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
8446         since the standard pselect decl uses 'restrict'.
8447         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
8448         HAVE_PSELECT, REPLACE_PSELECT.
8449         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
8450         HAVE_PSELECT, REPLACE_PSELECT.
8451         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
8452
8453         sys_select: don't depend on sys_socket
8454         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
8455         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
8456         This fix works on GNU and GNU-like platforms, but has not been tested
8457         on native Windows.
8458         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
8459         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
8460         gl_HEADER_SYS_SOCKET.
8461         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
8462         gl_PREREQ_SYS_H_WINSOCK2.
8463
8464 2011-06-29  Eric Blake  <eblake@redhat.com>
8465
8466         pipe2: fix C89 compile problem
8467         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
8468         Reported by Bruno Haible.
8469
8470         pipe, pipe2: don't corrupt fd on error
8471         * lib/pipe.c (pipe): Leave fd unchanged on error.
8472         * lib/pipe2.c (pipe2): Likewise.
8473         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
8474         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
8475
8476 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
8477
8478         mmap-anon: do not use regular expressions inadvertently
8479         * m4/mmap-anon.m4: Remove trailing period from strings sought
8480         in the output.
8481
8482 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
8483
8484         nanosleep: fix integer overflow problem
8485         * lib/nanosleep.c (my_usleep): Don't assume signed integer
8486         arithmetic wraps around on overflow.
8487
8488         nanosleep: simplify carrying
8489         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
8490         first call to the underyling nanosleep, not for the last one.
8491         This doesn't fix any bugs, but it simplifies the computation of
8492         the remaining delay.  Found while auditing integer overflow issues.
8493
8494         dup2: remove test for existence of fcntl
8495         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
8496         "#if HAVE_FCNTL", in the configure-time test program.
8497         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
8498         and therefore speeds up "configure" a bit.  Found while
8499         adding the dup2 module to Emacs.
8500
8501 2011-06-24  Eric Blake  <eblake@redhat.com>
8502
8503         maint.mk: enhance useless header checks
8504         * top/maint.mk (_sc_header_without_use): Check both include
8505         styles.
8506         (sc_prohibit_assert_without_use)
8507         (sc_prohibit_close_stream_without_use)
8508         (sc_prohibit_getopt_without_use)
8509         (sc_prohibit_quotearg_without_use)
8510         (sc_prohibit_quote_without_use)
8511         (sc_prohibit_long_options_without_use)
8512         (sc_prohibit_inttostr_without_use)
8513         (sc_prohibit_ignore_value_without_use)
8514         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
8515         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
8516         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
8517         (sc_prohibit_hash_pjw_without_use)
8518         (sc_prohibit_safe_read_without_use)
8519         (sc_prohibit_argmatch_without_use)
8520         (sc_prohibit_canonicalize_without_use)
8521         (sc_prohibit_root_dev_ino_without_use)
8522         (sc_prohibit_openat_without_use)
8523         (sc_prohibit_c_ctype_without_use)
8524         (sc_prohibit_signal_without_use)
8525         (sc_prohibit_stdio--_without_use)
8526         (sc_prohibit_stdio-safer_without_use)
8527         (sc_prohibit_strings_without_use)
8528         (sc_prohibit_intprops_without_use)
8529         (sc_prohibit_stddef_without_use)
8530         (sc_prohibit_xfreopen_without_use): Update clients.
8531
8532 2011-06-24  Jim Meyering  <meyering@redhat.com>
8533
8534         syntax-check: keep one maint.mk rule in sync with its header
8535         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
8536         of the bug Eric has just fixed, with today's commit 25e4c2ec.
8537         I prefer to avoid temporary files here, so use <(...), but that
8538         is not supported by /bin/sh, so...
8539         (SHELL): Define to /bin/bash.
8540
8541 2011-06-24  Eric Blake  <eblake@redhat.com>
8542
8543         maint.mk: update sc_prohibit_intprops_without_use
8544         * top/maint.mk (_intprops_names): Match recent changes.
8545
8546 2011-06-24  Bruno Haible  <bruno@clisp.org>
8547
8548         strerror-override: No-op tweak.
8549         * lib/strerror-override.h (strerror_override): Reorder conditions,
8550         for consistency with lib/strerror-override.c.
8551
8552 2011-06-23  Eric Blake  <eblake@redhat.com>
8553
8554         maint.mk: test further PATH_MAX issues
8555         * top/maint.mk (sc_prohibit_path_max_array): Rename...
8556         (sc_prohibit_path_max_allocation): ...and also test alloca.
8557         Suggested by Jim Meyering.
8558
8559 2011-06-22  Eric Blake  <eblake@redhat.com>
8560
8561         maint.mk: add syntax-check to avoid char[PATH_MAX]
8562         * top/maint.mk (sc_prohibit_path_max_array): New rule.
8563
8564         stat: be robust to PATH_MAX definition
8565         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
8566         * modules/stat (Depends-on): Add verify.
8567
8568         link: work around IRIX bug
8569         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
8570         * lib/link.c (rpl_link): Work around it.
8571         * tests/test-link.h (test_link): Enhance test.
8572         * doc/posix-functions/link.texi (link): Document the bug.
8573
8574         getopt: silence clang warning
8575         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
8576         dereference.
8577         Reported by Gustavo Martin Domato.
8578
8579 2011-06-22  Jim Meyering  <meyering@redhat.com>
8580
8581         bootstrap: do not insert a blank line into each .gitignore file
8582         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
8583
8584 2011-06-21  Eric Blake  <eblake@redhat.com>
8585
8586         perror: test for output mismatch
8587         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
8588         perror on IRIX.
8589
8590         strerror_r: fix OpenBSD behavior on out-of-range
8591         * lib/strerror_r.c (strerror_r): Always use maximal string.
8592         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
8593
8594         strerror_r: fix OpenBSD behavior on 0
8595         * lib/strerror-override.c (strerror_override): Also override 0
8596         when needed.
8597         * lib/strerror-override.h (strerror_override): Likewise.
8598         * lib/strerror.c (strerror): Simplify, now that 0 override is done
8599         earlier.
8600         * lib/strerror_r.c (strerror_r): Likewise.
8601         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
8602         behavior...
8603         (gl_FUNC_STRERROR_0): ...into new macro.
8604         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
8605         is overridden.
8606         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
8607         * modules/strerror-override (Files): Add strerror.m4.
8608         (configure.ac): Also provide override for 0 when needed.
8609         * doc/posix-functions/strerror.texi (strerror): Document this.
8610         * doc/posix-functions/perror.texi (perror): Likewise.
8611
8612         perror: adjust array size
8613         * modules/perror (Depends-on): Add strerror-override.
8614         * lib/perror.c (perror): Use it to avoid magic number.
8615
8616         strerror-override: reduce size
8617         * lib/strerror-override.c (strerror_override): Use fewer lines.
8618
8619 2011-06-20  Bruno Haible  <bruno@clisp.org>
8620
8621         pathmax: Ensure correct value for PATH_MAX on HP-UX.
8622         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
8623
8624 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
8625
8626         alloca: port to compilers that can optimize like GCC 4.6.0
8627         * lib/alloca.c (find_stack_direction): New signature, taken from
8628         Autoconf git.  This works with GCC 4.6.0.  This code should never
8629         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
8630         be used with other compilers that optimize as well as GCC 4.6.0 does.
8631         (alloca): Adjust to new signature.
8632         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
8633         New macro, which patches Autoconf in a similar way.
8634
8635         c-stack: stop worrying about stack direction
8636         * lib/c-stack.c (find_stack_direction): Remove.
8637         (segv_handler): Don't worry about stack direction growth, as it's
8638         too much of a pain to configure this correctly, given how compilers
8639         are optimizing-away our stack-growth detection code.  Instead, assume
8640         that any access to just before or just after the stack is OK.
8641         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
8642         Don't require AC_FUNC_ALLOCA; no longer needed.
8643
8644 2011-06-20  Eric Blake  <eblake@redhat.com>
8645
8646         test-stat: don't allocate PATH_MAX bytes
8647         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
8648         PATH_MAX-sized buffer.
8649         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
8650         * modules/stat-tests (Depends-on): Likewise.
8651         * tests/test-fstatat.c (includes): Drop pathmax.h.
8652         * tests/test-stat.c (includes): Likewise.
8653         Reported by Bruno Haible.
8654
8655 2011-06-20  Bruno Haible  <bruno@clisp.org>
8656
8657         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
8658         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
8659         * lib/float.c: New file.
8660         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
8661         REPLACE_FLOAT_LDBL.
8662         * modules/float (Files): Add lib/float.c.
8663         (configure.ac): Invoke AC_LIBOBJ.
8664         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
8665
8666 2011-06-20  Bruno Haible  <bruno@clisp.org>
8667
8668         Tests for module 'float'.
8669         * modules/float-tests: New file.
8670         * tests/test-float.c: New file.
8671
8672 2011-06-19  Bruno Haible  <bruno@clisp.org>
8673
8674         isinf: Coding style.
8675         * lib/isinf.c: Use GNU coding style.
8676
8677 2011-06-19  Bruno Haible  <bruno@clisp.org>
8678
8679         linkat test: Avoid test failure on AIX 7.1.
8680         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
8681         * tests/test-link.h (test_link): Likewise.
8682
8683 2011-06-19  Bruno Haible  <bruno@clisp.org>
8684
8685         pread test: Avoid test failure on OpenBSD 4.9.
8686         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
8687
8688 2011-06-19  Bruno Haible  <bruno@clisp.org>
8689
8690         sprintf-posix: Fix test failure on AIX 7.1.
8691         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
8692         * doc/posix-functions/dprintf.texi: Mention limited precision problem
8693         on AIX.
8694         * doc/posix-functions/fprintf.texi: Likewise.
8695         * doc/posix-functions/printf.texi: Likewise.
8696         * doc/posix-functions/snprintf.texi: Likewise.
8697         * doc/posix-functions/sprintf.texi: Likewise.
8698         * doc/posix-functions/vdprintf.texi: Likewise.
8699         * doc/posix-functions/vfprintf.texi: Likewise.
8700         * doc/posix-functions/vprintf.texi: Likewise.
8701         * doc/posix-functions/vsnprintf.texi: Likewise.
8702         * doc/posix-functions/vsprintf.texi: Likewise.
8703
8704 2011-06-19  Bruno Haible  <bruno@clisp.org>
8705
8706         roundl-ieee: Fix test failure on AIX 7.1.
8707         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
8708         * doc/posix-functions/roundl.texi: Mention problem with negative
8709         arguments.
8710
8711 2011-06-19  Bruno Haible  <bruno@clisp.org>
8712
8713         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
8714         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
8715         * doc/posix-functions/round.texi: Mention problem with negative
8716         arguments.
8717         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
8718
8719 2011-06-19  Bruno Haible  <bruno@clisp.org>
8720
8721         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
8722         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
8723         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
8724         * doc/posix-functions/roundf.texi: Mention problem with negative
8725         arguments.
8726         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
8727
8728 2011-06-19  Bruno Haible  <bruno@clisp.org>
8729
8730         ceilf-ieee: Work around bug on MacOS X 10.5.
8731         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
8732
8733         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
8734         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
8735         IEEE compliant, avoid compiler optimizations.
8736         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
8737         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
8738         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
8739         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
8740         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
8741         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
8742         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
8743         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
8744         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
8745         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
8746
8747 2011-06-19  Bruno Haible  <bruno@clisp.org>
8748
8749         ceilf-ieee: Work around bug on AIX 7.1.
8750         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
8751         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
8752
8753 2011-06-19  Bruno Haible  <bruno@clisp.org>
8754
8755         ceil-ieee: Work around bug on AIX 7.1.
8756         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
8757         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
8758
8759 2011-06-18  Bruno Haible  <bruno@clisp.org>
8760
8761         fsync test: Avoid test failure on MacOS X and AIX.
8762         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
8763         EINVAL.
8764
8765 2011-06-18  Bruno Haible  <bruno@clisp.org>
8766
8767         openat, fdopendir tests: Fix link errors.
8768         * modules/openat-tests (Depends-on): Add progname.
8769         * modules/fdopendir-tests (Depends-on): Likewise.
8770         * tests/test-fchownat.c: Include progname.h.
8771         (main): Call set_program_name.
8772         * tests/test-fstatat.c: Include progname.h.
8773         (main): Call set_program_name.
8774         * tests/test-mkdirat.c: Include progname.h.
8775         (main): Call set_program_name.
8776         * tests/test-openat.c: Include progname.h.
8777         (main): Call set_program_name.
8778         * tests/test-unlinkat.c: Include progname.h.
8779         (main): Call set_program_name.
8780         * tests/test-fdopendir.c: Include progname.h.
8781         (main): Call set_program_name.
8782
8783 2011-06-18  Bruno Haible  <bruno@clisp.org>
8784
8785         Doc update.
8786         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
8787         HP-UX.
8788         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
8789
8790 2011-06-18  Bruno Haible  <bruno@clisp.org>
8791
8792         getcwd tests: Avoid compilation error on HP-UX 11.31.
8793         * modules/getcwd-tests (Depends-on): Add pathmax.
8794         * tests/test-getcwd.c: Include pathmax.h.
8795
8796 2011-06-18  Bruno Haible  <bruno@clisp.org>
8797
8798         isfinite, isinf: Fix link error on AIX 6 and 7.
8799         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
8800         needed, also test the macro with a 'float' argument.
8801         * m4/isinf.m4 (gl_ISINF): Likewise.
8802
8803 2011-06-18  Bruno Haible  <bruno@clisp.org>
8804
8805         getloadavg: Don't clobber LIBS. Regression from previous commit.
8806         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
8807         AC_CHECK_LIB from here...
8808         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
8809         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
8810         gl_func_getloadavg_done.
8811         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8812
8813 2011-06-18  Bruno Haible  <bruno@clisp.org>
8814
8815         clean-temp: Improve documentation.
8816         * lib/clean-temp.h: Explain better how to use this module.
8817         Reported by John Darrington <john@darrington.wattle.id.au>.
8818
8819 2011-06-17  Bruno Haible  <bruno@clisp.org>
8820
8821         pread, pwrite: Avoid cc warning on AIX.
8822         * lib/unistd.in.h (pread): Undefine before defining as a macro.
8823         (pwrite): Likewise.
8824
8825 2011-06-17  Bruno Haible  <bruno@clisp.org>
8826
8827         spawn-pipe tests: Fix link error.
8828         * tests/test-spawn-pipe-child.c: Undefine fprintf.
8829         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8830
8831 2011-06-17  Bruno Haible  <bruno@clisp.org>
8832
8833         Tests: Remove unnecessary dependency.
8834         * modules/canonicalize-tests (Depends-on): Remove progname.
8835         * modules/chown-tests (Depends-on): Likewise.
8836         * modules/dirname-tests (Depends-on): Likewise.
8837         * modules/fdopendir-tests (Depends-on): Likewise.
8838         * modules/fdutimensat-tests (Depends-on): Likewise.
8839         * modules/hash-tests (Depends-on): Likewise.
8840         * modules/lchown-tests (Depends-on): Likewise.
8841         * modules/linkat-tests (Depends-on): Likewise.
8842         * modules/renameat-tests (Depends-on): Likewise.
8843         * modules/spawn-pipe-tests (Depends-on): Likewise.
8844         * modules/utimensat-tests (Depends-on): Likewise.
8845
8846 2011-06-17  Bruno Haible  <bruno@clisp.org>
8847
8848         spawn-pipe tests: Fix link error.
8849         * tests/test-spawn-pipe-child.c: Undefine fflush.
8850
8851 2011-06-17  Bruno Haible  <bruno@clisp.org>
8852
8853         Fix tests link errors.
8854         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
8855         * modules/chown-tests (Makefile.am): Don't link test-chown with
8856         LIBINTL.
8857         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
8858         LIBINTL.
8859         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
8860         LIBINTL.
8861         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
8862         LIBINTL.
8863
8864 2011-06-16  Bruno Haible  <bruno@clisp.org>
8865
8866         crypto/gc-sha1: Fix recent regression.
8867         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
8868         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
8869
8870         crypto/gc-md5: Fix recent regression.
8871         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
8872
8873         crypto/gc-md4: Fix recent regression.
8874         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
8875         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
8876
8877         crypto/gc-arctwo: Fix recent regression.
8878         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
8879         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
8880
8881         crypto/gc-rijndael: Fix recent regression.
8882         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
8883         (configure.ac): Invoke AC_LIBOBJ here.
8884         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
8885         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8886
8887         crypto/gc-hmac-sha1: Fix recent regression.
8888         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
8889         (configure.ac): Invoke AC_LIBOBJ here.
8890         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
8891         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8892
8893         crypto/gc-hmac-md5: Fix recent regression.
8894         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
8895         (configure.ac): Invoke AC_LIBOBJ here.
8896         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
8897         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8898
8899         crypto/gc-des: Fix recent regression.
8900         * modules/crypto/gc-des (Files): Remove m4/des.m4.
8901         (configure.ac): Invoke AC_LIBOBJ here.
8902         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
8903         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8904
8905         crypto/gc-arcfour: Fix recent regression.
8906         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
8907         (configure.ac): Invoke AC_LIBOBJ here.
8908         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
8909         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8910
8911 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
8912
8913         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
8914         After the 2011-05-21 change, this macro requires
8915         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
8916         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
8917
8918 2011-06-16  Bruno Haible  <bruno@clisp.org>
8919
8920         fprintftime: Move AC_LIBOBJ invocations to module description.
8921         * m4/fprintftime.m4: Remove file.
8922         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
8923         (configure.ac): Remove gl_FPRINTFTIME call.
8924         (Makefile.am): Augment lib_SOURCES.
8925         Reported by Jim Meyering.
8926
8927 2011-06-16  Bruno Haible  <bruno@clisp.org>
8928
8929         tmpfile-safer: Finish 2011-05-23 commit.
8930         * m4/stdio-safer.m4: Really remove file.
8931         Reported by Jim Meyering.
8932
8933 2011-06-16  Bruno Haible  <bruno@clisp.org>
8934
8935         syntax-check: Fix typo.
8936         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
8937         printf-posix.m4.
8938         Reported by Jim Meyering.
8939
8940 2011-06-13  Jim Meyering  <meyering@redhat.com>
8941
8942         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
8943         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
8944
8945 2011-05-23  Bruno Haible  <bruno@clisp.org>
8946
8947         yesno: Move AC_LIBOBJ invocations to module description.
8948         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
8949         * modules/yesno (Makefile.am): Augment lib_SOURCES.
8950
8951 2011-05-23  Bruno Haible  <bruno@clisp.org>
8952
8953         xstrtol: Move AC_LIBOBJ invocations to module description.
8954         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
8955         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
8956
8957 2011-05-23  Bruno Haible  <bruno@clisp.org>
8958
8959         xstrtold: Move AC_LIBOBJ invocations to module description.
8960         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
8961         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
8962
8963 2011-05-23  Bruno Haible  <bruno@clisp.org>
8964
8965         xstrtod: Move AC_LIBOBJ invocations to module description.
8966         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
8967         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
8968
8969 2011-05-23  Bruno Haible  <bruno@clisp.org>
8970
8971         xnanosleep: Move AC_LIBOBJ invocations to module description.
8972         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
8973         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
8974
8975 2011-05-23  Bruno Haible  <bruno@clisp.org>
8976
8977         xgetcwd: Move AC_LIBOBJ invocations to module description.
8978         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
8979         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
8980
8981 2011-05-23  Bruno Haible  <bruno@clisp.org>
8982
8983         xalloc: Move AC_LIBOBJ invocations to module description.
8984         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
8985         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
8986
8987 2011-05-23  Bruno Haible  <bruno@clisp.org>
8988
8989         write-any-file: Move AC_LIBOBJ invocations to module description.
8990         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
8991         invocation.
8992         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
8993
8994 2011-05-23  Bruno Haible  <bruno@clisp.org>
8995
8996         utimens: Move AC_LIBOBJ invocations to module description.
8997         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
8998         * modules/utimens (Makefile.am): Augment lib_SOURCES.
8999
9000 2011-05-23  Bruno Haible  <bruno@clisp.org>
9001
9002         utimecmp: Move AC_LIBOBJ invocations to module description.
9003         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
9004         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
9005
9006 2011-05-23  Bruno Haible  <bruno@clisp.org>
9007
9008         userspec: Move AC_LIBOBJ invocations to module description.
9009         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
9010         * modules/userspec (Makefile.am): Augment lib_SOURCES.
9011
9012 2011-05-23  Bruno Haible  <bruno@clisp.org>
9013
9014         unlinkdir: Move AC_LIBOBJ invocations to module description.
9015         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
9016         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
9017
9018 2011-05-23  Bruno Haible  <bruno@clisp.org>
9019
9020         unistd-safer: Move AC_LIBOBJ invocations to module description.
9021         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
9022         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
9023
9024 2011-05-23  Bruno Haible  <bruno@clisp.org>
9025
9026         tempname: Move AC_LIBOBJ invocations to module description.
9027         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
9028         * modules/tempname (Makefile.am): Augment lib_SOURCES.
9029
9030 2011-05-23  Bruno Haible  <bruno@clisp.org>
9031
9032         strftime: Move AC_LIBOBJ invocations to module description.
9033         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
9034         * modules/strftime (Makefile.am): Augment lib_SOURCES.
9035
9036 2011-05-23  Bruno Haible  <bruno@clisp.org>
9037
9038         stdlib-safer: Move AC_LIBOBJ invocations to module description.
9039         * m4/stdlib-safer.m4: Remove file.
9040         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
9041         (configure.ac): Remove gl_STDLIB_SAFER call.
9042         (Makefile.am): Augment lib_SOURCES.
9043
9044 2011-05-23  Bruno Haible  <bruno@clisp.org>
9045
9046         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
9047         * m4/stdio-safer.m4: Remove file.
9048         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
9049         (configure.ac): Remove gl_TMPFILE_SAFER call.
9050         (Makefile.am): Augment lib_SOURCES.
9051
9052 2011-05-23  Bruno Haible  <bruno@clisp.org>
9053
9054         popen-safer: Move AC_LIBOBJ invocations to module description.
9055         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
9056         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
9057         (configure.ac): Remove gl_POPEN_SAFER call.
9058         (Makefile.am): Augment lib_SOURCES.
9059
9060 2011-05-23  Bruno Haible  <bruno@clisp.org>
9061
9062         freopen-safer: Move AC_LIBOBJ invocations to module description.
9063         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
9064         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
9065         (configure.ac): Remove gl_FREOPEN_SAFER call.
9066         (Makefile.am): Augment lib_SOURCES.
9067
9068 2011-05-23  Bruno Haible  <bruno@clisp.org>
9069
9070         fopen-safer: Move AC_LIBOBJ invocations to module description.
9071         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
9072         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
9073         (configure.ac): Remove gl_FOPEN_SAFER call.
9074         (Makefile.am): Augment lib_SOURCES.
9075
9076 2011-05-23  Bruno Haible  <bruno@clisp.org>
9077
9078         crypto/sha512: Move AC_LIBOBJ invocations to module description.
9079         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
9080         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
9081
9082 2011-05-23  Bruno Haible  <bruno@clisp.org>
9083
9084         crypto/sha256: Move AC_LIBOBJ invocations to module description.
9085         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
9086         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
9087
9088 2011-05-23  Bruno Haible  <bruno@clisp.org>
9089
9090         crypto/sha1: Move AC_LIBOBJ invocations to module description.
9091         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
9092         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
9093
9094 2011-05-23  Bruno Haible  <bruno@clisp.org>
9095
9096         settime: Move AC_LIBOBJ invocations to module description.
9097         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
9098         * modules/settime (Makefile.am): Augment lib_SOURCES.
9099
9100 2011-05-23  Bruno Haible  <bruno@clisp.org>
9101
9102         savedir: Move AC_LIBOBJ invocations to module description.
9103         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
9104         * modules/savedir (Makefile.am): Augment lib_SOURCES.
9105
9106 2011-05-23  Bruno Haible  <bruno@clisp.org>
9107
9108         save-cwd: Move AC_LIBOBJ invocations to module description.
9109         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
9110         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
9111
9112 2011-05-23  Bruno Haible  <bruno@clisp.org>
9113
9114         same: Move AC_LIBOBJ invocations to module description.
9115         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
9116         * modules/same (Makefile.am): Augment lib_SOURCES.
9117
9118 2011-05-23  Bruno Haible  <bruno@clisp.org>
9119
9120         safe-write: Move AC_LIBOBJ invocations to module description.
9121         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
9122         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
9123         instead of gl_SAFE_WRITE.
9124         (Makefile.am): Augment lib_SOURCES.
9125
9126 2011-05-23  Bruno Haible  <bruno@clisp.org>
9127
9128         safe-read: Move AC_LIBOBJ invocations to module description.
9129         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
9130         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
9131         of gl_SAFE_READ.
9132         (Makefile.am): Augment lib_SOURCES.
9133
9134 2011-05-23  Bruno Haible  <bruno@clisp.org>
9135
9136         safe-alloc: Move AC_LIBOBJ invocations to module description.
9137         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
9138         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
9139
9140 2011-05-23  Bruno Haible  <bruno@clisp.org>
9141
9142         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
9143         * m4/rijndael.m4: Remove file.
9144         * modules/crypto/rijndael (Files): Remove it.
9145         (configure.ac): Remove gl_RIJNDAEL call.
9146         (Makefile.am): Augment lib_SOURCES.
9147
9148 2011-05-23  Bruno Haible  <bruno@clisp.org>
9149
9150         readtokens: Move AC_LIBOBJ invocations to module description.
9151         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
9152         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
9153
9154 2011-05-23  Bruno Haible  <bruno@clisp.org>
9155
9156         read-file: Move AC_LIBOBJ invocations to module description.
9157         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
9158         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
9159         of gl_FUNC_READ_FILE.
9160         (Makefile.am): Augment lib_SOURCES.
9161
9162 2011-05-23  Bruno Haible  <bruno@clisp.org>
9163
9164         quotearg: Move AC_LIBOBJ invocations to module description.
9165         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
9166         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
9167
9168 2011-05-23  Bruno Haible  <bruno@clisp.org>
9169
9170         quote: Move AC_LIBOBJ invocations to module description.
9171         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
9172         * modules/quote (Makefile.am): Augment lib_SOURCES.
9173
9174 2011-05-23  Bruno Haible  <bruno@clisp.org>
9175
9176         posixver: Move AC_LIBOBJ invocations to module description.
9177         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
9178         * modules/posixver (Makefile.am): Augment lib_SOURCES.
9179
9180 2011-05-23  Bruno Haible  <bruno@clisp.org>
9181
9182         posixtm: Move AC_LIBOBJ invocations to module description.
9183         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
9184         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
9185
9186 2011-05-23  Bruno Haible  <bruno@clisp.org>
9187
9188         physmem: Move AC_LIBOBJ invocations to module description.
9189         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
9190         * modules/physmem (Makefile.am): Augment lib_SOURCES.
9191
9192 2011-05-23  Bruno Haible  <bruno@clisp.org>
9193
9194         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
9195         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
9196         invocation.
9197         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
9198
9199 2011-05-23  Bruno Haible  <bruno@clisp.org>
9200
9201         mpsort: Move AC_LIBOBJ invocations to module description.
9202         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
9203         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
9204
9205 2011-05-23  Bruno Haible  <bruno@clisp.org>
9206
9207         modechange: Move AC_LIBOBJ invocations to module description.
9208         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
9209         * modules/modechange (Makefile.am): Augment lib_SOURCES.
9210
9211 2011-05-23  Bruno Haible  <bruno@clisp.org>
9212
9213         mkdir-p: Move AC_LIBOBJ invocations to module description.
9214         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
9215         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
9216
9217 2011-05-23  Bruno Haible  <bruno@clisp.org>
9218
9219         mkancesdirs: Move AC_LIBOBJ invocations to module description.
9220         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
9221         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
9222
9223 2011-05-23  Bruno Haible  <bruno@clisp.org>
9224
9225         mgetgroups: Move AC_LIBOBJ invocations to module description.
9226         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
9227         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
9228
9229 2011-05-23  Bruno Haible  <bruno@clisp.org>
9230
9231         memxor: Move AC_LIBOBJ invocations to module description.
9232         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
9233         * modules/memxor (Makefile.am): Augment lib_SOURCES.
9234
9235 2011-05-23  Bruno Haible  <bruno@clisp.org>
9236
9237         memcoll: Move AC_LIBOBJ invocations to module description.
9238         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
9239         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
9240
9241 2011-05-23  Bruno Haible  <bruno@clisp.org>
9242
9243         memcasecmp: Move AC_LIBOBJ invocations to module description.
9244         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
9245         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
9246
9247 2011-05-23  Bruno Haible  <bruno@clisp.org>
9248
9249         crypto/md5: Move AC_LIBOBJ invocations to module description.
9250         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
9251         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
9252
9253 2011-05-23  Bruno Haible  <bruno@clisp.org>
9254
9255         crypto/md4: Move AC_LIBOBJ invocations to module description.
9256         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
9257         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
9258
9259 2011-05-23  Bruno Haible  <bruno@clisp.org>
9260
9261         crypto/md2: Move AC_LIBOBJ invocations to module description.
9262         * m4/md2.m4: Remove file.
9263         * modules/crypto/md2 (Files): Remove it.
9264         (configure.ac): Remove gl_MD2 call.
9265         (Makefile.am): Augment lib_SOURCES.
9266
9267 2011-05-23  Bruno Haible  <bruno@clisp.org>
9268
9269         long-options: Move AC_LIBOBJ invocations to module description.
9270         * m4/long-options.m4: Remove file.
9271         * modules/long-options (Files): Remove it.
9272         (configure.ac): Remove gl_LONG_OPTIONS call.
9273         (Makefile.am): Augment lib_SOURCES.
9274
9275 2011-05-23  Bruno Haible  <bruno@clisp.org>
9276
9277         i-ring: Move AC_LIBOBJ invocations to module description.
9278         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
9279         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
9280
9281 2011-05-23  Bruno Haible  <bruno@clisp.org>
9282
9283         idcache: Move AC_LIBOBJ invocations to module description.
9284         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
9285         * modules/idcache (Makefile.am): Augment lib_SOURCES.
9286
9287 2011-05-23  Bruno Haible  <bruno@clisp.org>
9288
9289         human: Move AC_LIBOBJ invocations to module description.
9290         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
9291         * modules/human (Makefile.am): Augment lib_SOURCES.
9292
9293 2011-05-23  Bruno Haible  <bruno@clisp.org>
9294
9295         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
9296         * m4/hmac-sha1.m4: Remove file.
9297         * modules/crypto/hmac-sha1 (Files): Remove it.
9298         (configure.ac): Remove gl_HMAC_SHA1 call.
9299         (Makefile.am): Augment lib_SOURCES.
9300
9301 2011-05-23  Bruno Haible  <bruno@clisp.org>
9302
9303         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
9304         * m4/hmac-md5.m4: Remove file.
9305         * modules/crypto/hmac-md5 (Files): Remove it.
9306         (configure.ac): Remove gl_HMAC_MD5 call.
9307         (Makefile.am): Augment lib_SOURCES.
9308
9309 2011-05-23  Bruno Haible  <bruno@clisp.org>
9310
9311         hash: Move AC_LIBOBJ invocations to module description.
9312         * m4/hash.m4: Remove file.
9313         * modules/hash (Files): Remove it.
9314         (configure.ac): Remove gl_HASH call.
9315         (Makefile.am): Augment lib_SOURCES.
9316
9317 2011-05-23  Bruno Haible  <bruno@clisp.org>
9318
9319         hard-locale: Move AC_LIBOBJ invocations to module description.
9320         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
9321         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
9322
9323 2011-05-23  Bruno Haible  <bruno@clisp.org>
9324
9325         getugroups: Move AC_LIBOBJ invocations to module description.
9326         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
9327         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
9328
9329 2011-05-23  Bruno Haible  <bruno@clisp.org>
9330
9331         gettime: Move AC_LIBOBJ invocations to module description.
9332         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
9333         * modules/gettime (Makefile.am): Augment lib_SOURCES.
9334
9335 2011-05-23  Bruno Haible  <bruno@clisp.org>
9336
9337         getndelim2: Move AC_LIBOBJ invocations to module description.
9338         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
9339         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
9340
9341 2011-05-23  Bruno Haible  <bruno@clisp.org>
9342
9343         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
9344         * m4/gc-pbkdf2-sha1.m4: Remove file.
9345         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
9346         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
9347         (Makefile.am): Augment lib_SOURCES.
9348
9349 2011-05-23  Bruno Haible  <bruno@clisp.org>
9350
9351         fts: Move AC_LIBOBJ invocations to module description.
9352         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
9353         * modules/fts (configure.ac): ... to here.
9354
9355 2011-05-23  Bruno Haible  <bruno@clisp.org>
9356
9357         file-type: Move AC_LIBOBJ invocations to module description.
9358         * m4/file-type.m4: Remove file.
9359         * modules/file-type (Files): Remove it.
9360         (configure.ac): Remove gl_FILE_TYPE call.
9361         (Makefile.am): Augment lib_SOURCES.
9362
9363 2011-05-23  Bruno Haible  <bruno@clisp.org>
9364
9365         filenamecat*: Respect rules for use of AC_LIBOBJ.
9366         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
9367         Remove AC_LIBOBJ invocation.
9368         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
9369         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
9370
9371 2011-05-23  Bruno Haible  <bruno@clisp.org>
9372
9373         filemode: Move AC_LIBOBJ invocations to module description.
9374         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
9375         * modules/filemode (Makefile.am): Augment lib_SOURCES.
9376
9377 2011-05-23  Bruno Haible  <bruno@clisp.org>
9378
9379         openat-safer: Move AC_LIBOBJ invocations to module description.
9380         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
9381         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
9382
9383 2011-05-23  Bruno Haible  <bruno@clisp.org>
9384
9385         fcntl-safer: Move AC_LIBOBJ invocations to module description.
9386         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
9387         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
9388
9389 2011-05-23  Bruno Haible  <bruno@clisp.org>
9390
9391         exclude: Move AC_LIBOBJ invocations to module description.
9392         * m4/exclude.m4: Remove file.
9393         * modules/exclude (Files): Remove it.
9394         (configure.ac): Remove gl_EXCLUDE call.
9395         (Makefile.am): Augment lib_SOURCES.
9396
9397 2011-05-23  Bruno Haible  <bruno@clisp.org>
9398
9399         dirname*: Respect rules for use of AC_LIBOBJ.
9400         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
9401         invocations.
9402         * modules/dirname (Makefile.am): Augment lib_SOURCES.
9403         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
9404
9405 2011-05-23  Bruno Haible  <bruno@clisp.org>
9406
9407         dirent-safer: Move AC_LIBOBJ invocations to module description.
9408         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
9409         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
9410
9411 2011-05-23  Bruno Haible  <bruno@clisp.org>
9412
9413         crypto/des: Move AC_LIBOBJ invocations to module description.
9414         * m4/des.m4: Remove file.
9415         * modules/crypto/des (Files): Remove it.
9416         (configure.ac): Remove gl_DES call.
9417         (Makefile.am): Augment lib_SOURCES.
9418
9419 2011-05-23  Bruno Haible  <bruno@clisp.org>
9420
9421         cycle-check: Move AC_LIBOBJ invocations to module description.
9422         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
9423         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
9424
9425 2011-05-23  Bruno Haible  <bruno@clisp.org>
9426
9427         c-strtold: Move AC_LIBOBJ invocations to module description.
9428         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
9429         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
9430
9431 2011-05-23  Bruno Haible  <bruno@clisp.org>
9432
9433         c-strtod: Move AC_LIBOBJ invocations to module description.
9434         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
9435         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
9436
9437 2011-05-23  Bruno Haible  <bruno@clisp.org>
9438
9439         crc: Move AC_LIBOBJ invocations to module description.
9440         * m4/crc.m4: Remove file.
9441         * modules/crc (Files): Remove it.
9442         (configure.ac): Remove gl_CRC call.
9443         (Makefile.am): Augment lib_SOURCES.
9444
9445 2011-05-23  Bruno Haible  <bruno@clisp.org>
9446
9447         close-stream: Move AC_LIBOBJ invocations to module description.
9448         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
9449         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
9450
9451 2011-05-23  Bruno Haible  <bruno@clisp.org>
9452
9453         closeout: Move AC_LIBOBJ invocations to module description.
9454         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
9455         * modules/closeout (Makefile.am): Augment lib_SOURCES.
9456
9457 2011-05-23  Bruno Haible  <bruno@clisp.org>
9458
9459         closein: Move AC_LIBOBJ invocations to module description.
9460         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
9461         * modules/closein (Makefile.am): Augment lib_SOURCES.
9462
9463 2011-05-23  Bruno Haible  <bruno@clisp.org>
9464
9465         cloexec: Move AC_LIBOBJ invocations to module description.
9466         * m4/cloexec.m4: Remove file.
9467         * modules/cloexec (Files): Remove it.
9468         (configure.ac): Remove gl_CLOEXEC call.
9469         (Makefile.am): Augment lib_SOURCES.
9470
9471 2011-05-23  Bruno Haible  <bruno@clisp.org>
9472
9473         check-version: Move AC_LIBOBJ invocations to module description.
9474         * m4/check-version.m4: Remove file.
9475         * modules/check-version (Files): Remove it.
9476         (configure.ac): Remove gl_CHECK_VERSION call.
9477         (Makefile.am): Augment lib_SOURCES.
9478
9479 2011-05-23  Bruno Haible  <bruno@clisp.org>
9480
9481         chdir-safer: Move AC_LIBOBJ invocations to module description.
9482         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
9483         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
9484
9485 2011-05-23  Bruno Haible  <bruno@clisp.org>
9486
9487         canonicalize: Move AC_LIBOBJ invocations to module description.
9488         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
9489         AC_LIBOBJ invocation.
9490         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
9491
9492 2011-05-23  Bruno Haible  <bruno@clisp.org>
9493
9494         canon-host: Move AC_LIBOBJ invocations to module description.
9495         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
9496         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
9497         instead of gl_CANON_HOST.
9498         (Makefile.am): Augment lib_SOURCES.
9499
9500 2011-05-23  Bruno Haible  <bruno@clisp.org>
9501
9502         backupfile: Move AC_LIBOBJ invocations to module description.
9503         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
9504         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
9505
9506 2011-05-23  Bruno Haible  <bruno@clisp.org>
9507
9508         argmatch: Move AC_LIBOBJ invocations to module description.
9509         * m4/argmatch.m4: Remove file.
9510         * modules/argmatch (Files): Remove it.
9511         (configure.ac): Remove gl_ARGMATCH call.
9512         (Makefile.am): Augment lib_SOURCES.
9513
9514 2011-05-23  Bruno Haible  <bruno@clisp.org>
9515
9516         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
9517         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
9518         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
9519
9520 2011-05-23  Bruno Haible  <bruno@clisp.org>
9521
9522         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
9523         * m4/arcfour.m4: Remove file.
9524         * modules/crypto/arcfour (Files): Remove it.
9525         (configure.ac): Remove gl_ARCFOUR call.
9526         (Makefile.am): Augment lib_SOURCES.
9527
9528 2011-05-22  Bruno Haible  <bruno@clisp.org>
9529
9530         write: Move AC_LIBOBJ invocations to module description.
9531         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
9532         * modules/write (configure.ac): ... to here.
9533
9534 2011-05-22  Bruno Haible  <bruno@clisp.org>
9535
9536         wmemset: Move AC_LIBOBJ invocations to module description.
9537         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
9538         here...
9539         * modules/wmemset (configure.ac): ... to here.
9540
9541 2011-05-22  Bruno Haible  <bruno@clisp.org>
9542
9543         wmemmove: Move AC_LIBOBJ invocations to module description.
9544         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
9545         here...
9546         * modules/wmemmove (configure.ac): ... to here.
9547
9548 2011-05-22  Bruno Haible  <bruno@clisp.org>
9549
9550         wmemcpy: Move AC_LIBOBJ invocations to module description.
9551         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
9552         here...
9553         * modules/wmemcpy (configure.ac): ... to here.
9554
9555 2011-05-22  Bruno Haible  <bruno@clisp.org>
9556
9557         wmemcmp: Move AC_LIBOBJ invocations to module description.
9558         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
9559         here...
9560         * modules/wmemcmp (configure.ac): ... to here.
9561
9562 2011-05-22  Bruno Haible  <bruno@clisp.org>
9563
9564         wmemchr: Move AC_LIBOBJ invocations to module description.
9565         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
9566         here...
9567         * modules/wmemchr (configure.ac): ... to here.
9568
9569 2011-05-22  Bruno Haible  <bruno@clisp.org>
9570
9571         wcswidth: Move AC_LIBOBJ invocations to module description.
9572         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
9573         here...
9574         * modules/wcswidth (configure.ac): ... to here.
9575
9576 2011-05-22  Bruno Haible  <bruno@clisp.org>
9577
9578         wcwidth: Respect rules for use of AC_LIBOBJ.
9579         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
9580         invocation from here...
9581         * modules/wcwidth (configure.ac): ... to here.
9582         (Depends-on): Update conditions.
9583
9584 2011-05-22  Bruno Haible  <bruno@clisp.org>
9585
9586         wctype: Move AC_LIBOBJ invocations to module description.
9587         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
9588         invocation from here...
9589         * modules/wctype (configure.ac): ... to here.
9590         (Depends-on): Update conditions.
9591
9592 2011-05-22  Bruno Haible  <bruno@clisp.org>
9593
9594         wctrans: Move AC_LIBOBJ invocations to module description.
9595         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
9596         invocation from here...
9597         * modules/wctrans (configure.ac): ... to here.
9598
9599 2011-05-22  Bruno Haible  <bruno@clisp.org>
9600
9601         wctomb: Move AC_LIBOBJ invocations to module description.
9602         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
9603         invocations from here...
9604         * modules/wctomb (configure.ac): ... to here.
9605
9606 2011-05-22  Bruno Haible  <bruno@clisp.org>
9607
9608         wctob: Move AC_LIBOBJ invocations to module description.
9609         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
9610         gl_PREREQ_WCTOB invocations from here...
9611         * modules/wctob (configure.ac): ... to here.
9612         (Depends-on): Update conditions.
9613
9614 2011-05-22  Bruno Haible  <bruno@clisp.org>
9615
9616         wcsxfrm: Move AC_LIBOBJ invocations to module description.
9617         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
9618         here...
9619         * modules/wcsxfrm (configure.ac): ... to here.
9620
9621 2011-05-22  Bruno Haible  <bruno@clisp.org>
9622
9623         wcstok: Move AC_LIBOBJ invocations to module description.
9624         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
9625         * modules/wcstok (configure.ac): ... to here.
9626
9627 2011-05-22  Bruno Haible  <bruno@clisp.org>
9628
9629         wcsstr: Move AC_LIBOBJ invocations to module description.
9630         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
9631         * modules/wcsstr (configure.ac): ... to here.
9632
9633 2011-05-22  Bruno Haible  <bruno@clisp.org>
9634
9635         wcsspn: Move AC_LIBOBJ invocations to module description.
9636         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
9637         * modules/wcsspn (configure.ac): ... to here.
9638
9639 2011-05-22  Bruno Haible  <bruno@clisp.org>
9640
9641         wcsrtombs: Move AC_LIBOBJ invocations to module description.
9642         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
9643         gl_PREREQ_WCSRTOMBS invocations from here...
9644         * modules/wcsrtombs (configure.ac): ... to here.
9645
9646 2011-05-22  Bruno Haible  <bruno@clisp.org>
9647
9648         wcsrchr: Move AC_LIBOBJ invocations to module description.
9649         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
9650         here...
9651         * modules/wcsrchr (configure.ac): ... to here.
9652
9653 2011-05-22  Bruno Haible  <bruno@clisp.org>
9654
9655         wcspbrk: Move AC_LIBOBJ invocations to module description.
9656         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
9657         here...
9658         * modules/wcspbrk (configure.ac): ... to here.
9659
9660 2011-05-22  Bruno Haible  <bruno@clisp.org>
9661
9662         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
9663         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
9664         gl_PREREQ_WCSNRTOMBS invocations from here...
9665         * modules/wcsnrtombs (configure.ac): ... to here.
9666
9667 2011-05-22  Bruno Haible  <bruno@clisp.org>
9668
9669         wcsnlen: Move AC_LIBOBJ invocations to module description.
9670         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
9671         here...
9672         * modules/wcsnlen (configure.ac): ... to here.
9673
9674 2011-05-22  Bruno Haible  <bruno@clisp.org>
9675
9676         wcsncpy: Move AC_LIBOBJ invocations to module description.
9677         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
9678         here...
9679         * modules/wcsncpy (configure.ac): ... to here.
9680
9681 2011-05-22  Bruno Haible  <bruno@clisp.org>
9682
9683         wcsncmp: Move AC_LIBOBJ invocations to module description.
9684         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
9685         here...
9686         * modules/wcsncmp (configure.ac): ... to here.
9687
9688 2011-05-22  Bruno Haible  <bruno@clisp.org>
9689
9690         wcsncat: Move AC_LIBOBJ invocations to module description.
9691         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
9692         here...
9693         * modules/wcsncat (configure.ac): ... to here.
9694
9695 2011-05-22  Bruno Haible  <bruno@clisp.org>
9696
9697         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
9698         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
9699         from here...
9700         * modules/wcsncasecmp (configure.ac): ... to here.
9701
9702 2011-05-22  Bruno Haible  <bruno@clisp.org>
9703
9704         wcslen: Move AC_LIBOBJ invocations to module description.
9705         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
9706         * modules/wcslen (configure.ac): ... to here.
9707
9708 2011-05-22  Bruno Haible  <bruno@clisp.org>
9709
9710         wcsdup: Move AC_LIBOBJ invocations to module description.
9711         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
9712         * modules/wcsdup (configure.ac): ... to here.
9713
9714 2011-05-22  Bruno Haible  <bruno@clisp.org>
9715
9716         wcscspn: Move AC_LIBOBJ invocations to module description.
9717         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
9718         here...
9719         * modules/wcscspn (configure.ac): ... to here.
9720
9721 2011-05-22  Bruno Haible  <bruno@clisp.org>
9722
9723         wcscpy: Move AC_LIBOBJ invocations to module description.
9724         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
9725         * modules/wcscpy (configure.ac): ... to here.
9726
9727 2011-05-22  Bruno Haible  <bruno@clisp.org>
9728
9729         wcscoll: Move AC_LIBOBJ invocations to module description.
9730         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
9731         here...
9732         * modules/wcscoll (configure.ac): ... to here.
9733
9734 2011-05-22  Bruno Haible  <bruno@clisp.org>
9735
9736         wcscmp: Move AC_LIBOBJ invocations to module description.
9737         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
9738         * modules/wcscmp (configure.ac): ... to here.
9739
9740 2011-05-22  Bruno Haible  <bruno@clisp.org>
9741
9742         wcschr: Move AC_LIBOBJ invocations to module description.
9743         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
9744         * modules/wcschr (configure.ac): ... to here.
9745
9746 2011-05-22  Bruno Haible  <bruno@clisp.org>
9747
9748         wcscat: Move AC_LIBOBJ invocations to module description.
9749         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
9750         * modules/wcscat (configure.ac): ... to here.
9751
9752 2011-05-22  Bruno Haible  <bruno@clisp.org>
9753
9754         wcscasecmp: Move AC_LIBOBJ invocations to module description.
9755         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
9756         here...
9757         * modules/wcscasecmp (configure.ac): ... to here.
9758
9759 2011-05-22  Bruno Haible  <bruno@clisp.org>
9760
9761         wcrtomb: Move AC_LIBOBJ invocations to module description.
9762         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
9763         invocations from here...
9764         * modules/wcrtomb (configure.ac): ... to here.
9765
9766 2011-05-22  Bruno Haible  <bruno@clisp.org>
9767
9768         wcpncpy: Move AC_LIBOBJ invocations to module description.
9769         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
9770         here...
9771         * modules/wcpncpy (configure.ac): ... to here.
9772
9773 2011-05-22  Bruno Haible  <bruno@clisp.org>
9774
9775         wcpcpy: Move AC_LIBOBJ invocations to module description.
9776         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
9777         * modules/wcpcpy (configure.ac): ... to here.
9778
9779 2011-05-22  Bruno Haible  <bruno@clisp.org>
9780
9781         waitpid: Move AC_LIBOBJ invocations to module description.
9782         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
9783         invocation from here...
9784         * modules/waitpid (configure.ac): ... to here.
9785
9786 2011-05-22  Bruno Haible  <bruno@clisp.org>
9787
9788         utimensat: Move AC_LIBOBJ invocations to module description.
9789         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
9790         here...
9791         * modules/utimensat (configure.ac): ... to here.
9792
9793 2011-05-22  Bruno Haible  <bruno@clisp.org>
9794
9795         usleep: Move AC_LIBOBJ invocations to module description.
9796         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
9797         here...
9798         * modules/usleep (configure.ac): ... to here.
9799
9800 2011-05-22  Bruno Haible  <bruno@clisp.org>
9801
9802         unlockpt: Move AC_LIBOBJ invocations to module description.
9803         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
9804         gl_PREREQ_UNLOCKPT invocations from here...
9805         * modules/unlockpt (configure.ac): ... to here.
9806
9807 2011-05-22  Bruno Haible  <bruno@clisp.org>
9808
9809         unlink: Respect rules for use of AC_LIBOBJ.
9810         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
9811         * modules/unlink (configure.ac): ... to here.
9812
9813 2011-05-22  Bruno Haible  <bruno@clisp.org>
9814
9815         uname: Move AC_LIBOBJ invocations to module description.
9816         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
9817         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
9818         here...
9819         * modules/uname (configure.ac): ... to here.
9820
9821 2011-05-22  Bruno Haible  <bruno@clisp.org>
9822
9823         ttyname_r: Move AC_LIBOBJ invocations to module description.
9824         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
9825         gl_PREREQ_TTYNAME_R invocations from here...
9826         * modules/ttyname_r (configure.ac): ... to here.
9827
9828 2011-05-22  Bruno Haible  <bruno@clisp.org>
9829
9830         tsearch: Move AC_LIBOBJ invocations to module description.
9831         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
9832         invocations from here...
9833         * modules/tsearch (configure.ac): ... to here.
9834
9835 2011-05-22  Bruno Haible  <bruno@clisp.org>
9836
9837         towctrans: Move AC_LIBOBJ invocations to module description.
9838         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
9839         AC_LIBOBJ invocation from here...
9840         * modules/towctrans (configure.ac): ... to here.
9841
9842 2011-05-22  Bruno Haible  <bruno@clisp.org>
9843
9844         tmpfile: Move AC_LIBOBJ invocations to module description.
9845         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
9846         invocations from here...
9847         * modules/tmpfile (configure.ac): ... to here.
9848
9849 2011-05-22  Bruno Haible  <bruno@clisp.org>
9850
9851         times: Move AC_LIBOBJ invocations to module description.
9852         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
9853         * modules/times (configure.ac): ... to here.
9854
9855 2011-05-22  Bruno Haible  <bruno@clisp.org>
9856
9857         time_r: Move AC_LIBOBJ invocations to module description.
9858         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
9859         invocations from here...
9860         * modules/time_r (configure.ac): ... to here.
9861
9862 2011-05-22  Bruno Haible  <bruno@clisp.org>
9863
9864         timegm: Move AC_LIBOBJ invocations to module description.
9865         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
9866         invocations from here...
9867         * modules/timegm (configure.ac): ... to here.
9868
9869 2011-05-22  Bruno Haible  <bruno@clisp.org>
9870
9871         tcgetsid: Move AC_LIBOBJ invocations to module description.
9872         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
9873         and gl_PREREQ_TCGETSID invocations from here...
9874         * modules/tcgetsid (configure.ac): ... to here.
9875         (Depends-on): Update conditions.
9876
9877 2011-05-22  Bruno Haible  <bruno@clisp.org>
9878
9879         symlinkat: Move AC_LIBOBJ invocations to module description.
9880         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
9881         here...
9882         * modules/symlinkat (configure.ac): ... to here.
9883
9884 2011-05-22  Bruno Haible  <bruno@clisp.org>
9885
9886         symlink: Move AC_LIBOBJ invocations to module description.
9887         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
9888         here...
9889         * modules/symlink (configure.ac): ... to here.
9890
9891 2011-05-22  Bruno Haible  <bruno@clisp.org>
9892
9893         strverscmp: Move AC_LIBOBJ invocations to module description.
9894         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
9895         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
9896         from here...
9897         * modules/strverscmp (configure.ac): ... to here.
9898
9899 2011-05-22  Bruno Haible  <bruno@clisp.org>
9900
9901         strtok_r: Move AC_LIBOBJ invocations to module description.
9902         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
9903         and gl_PREREQ_STRTOK_R invocations from here...
9904         * modules/strtok_r (configure.ac): ... to here.
9905         (Depends-on): Update conditions.
9906
9907 2011-05-22  Bruno Haible  <bruno@clisp.org>
9908
9909         strtoumax: Move AC_LIBOBJ invocations to module description.
9910         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
9911         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
9912         from here...
9913         * modules/strtoumax (configure.ac): ... to here.
9914
9915 2011-05-22  Bruno Haible  <bruno@clisp.org>
9916
9917         strtoimax: Move AC_LIBOBJ invocations to module description.
9918         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
9919         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
9920         from here...
9921         * modules/strtoimax (configure.ac): ... to here.
9922
9923 2011-05-22  Bruno Haible  <bruno@clisp.org>
9924
9925         strtoull: Move AC_LIBOBJ invocations to module description.
9926         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
9927         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
9928         from here...
9929         * modules/strtoull (configure.ac): ... to here.
9930
9931 2011-05-22  Bruno Haible  <bruno@clisp.org>
9932
9933         strtoll: Move AC_LIBOBJ invocations to module description.
9934         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
9935         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
9936         here...
9937         * modules/strtoll (configure.ac): ... to here.
9938
9939 2011-05-22  Bruno Haible  <bruno@clisp.org>
9940
9941         strtoul: Move AC_LIBOBJ invocations to module description.
9942         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
9943         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
9944         * modules/strtoul (configure.ac): ... to here.
9945
9946 2011-05-22  Bruno Haible  <bruno@clisp.org>
9947
9948         strtol: Move AC_LIBOBJ invocations to module description.
9949         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
9950         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
9951         * modules/strtol (configure.ac): ... to here.
9952
9953 2011-05-22  Bruno Haible  <bruno@clisp.org>
9954
9955         strtod: Move AC_LIBOBJ invocations to module description.
9956         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
9957         invocations from here...
9958         * modules/strtod (configure.ac): ... to here.
9959
9960 2011-05-22  Bruno Haible  <bruno@clisp.org>
9961
9962         strstr*: Move AC_LIBOBJ invocations to module description.
9963         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
9964         invocations from here...
9965         * modules/strstr-simple (configure.ac): ... to here.
9966         * modules/strstr (configure.ac): ... and here.
9967
9968 2011-05-22  Bruno Haible  <bruno@clisp.org>
9969
9970         strsignal: Move AC_LIBOBJ invocations to module description.
9971         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
9972         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
9973         * modules/strsignal (configure.ac): ... to here.
9974         (Depends-on): Update conditions.
9975
9976 2011-05-22  Bruno Haible  <bruno@clisp.org>
9977
9978         strsep: Move AC_LIBOBJ invocations to module description.
9979         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
9980         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
9981         here...
9982         * modules/strsep (configure.ac): ... to here.
9983
9984 2011-05-22  Bruno Haible  <bruno@clisp.org>
9985
9986         strptime: Move AC_LIBOBJ invocations to module description.
9987         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
9988         gl_PREREQ_STRPTIME invocations from here...
9989         * modules/strptime (configure.ac): ... to here.
9990
9991 2011-05-22  Bruno Haible  <bruno@clisp.org>
9992
9993         strpbrk: Move AC_LIBOBJ invocations to module description.
9994         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
9995         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
9996         here...
9997         * modules/strpbrk (configure.ac): ... to here.
9998
9999 2011-05-22  Bruno Haible  <bruno@clisp.org>
10000
10001         strnlen: Move AC_LIBOBJ invocations to module description.
10002         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
10003         invocations from here...
10004         * modules/strnlen (configure.ac): ... to here.
10005
10006 2011-05-22  Bruno Haible  <bruno@clisp.org>
10007
10008         strndup: Move AC_LIBOBJ invocations to module description.
10009         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
10010         invocations from here...
10011         * modules/strndup (configure.ac): ... to here.
10012         (Depends-on): Update conditions.
10013
10014 2011-05-22  Bruno Haible  <bruno@clisp.org>
10015
10016         strncat: Move AC_LIBOBJ invocations to module description.
10017         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
10018         invocations from here...
10019         * modules/strncat (configure.ac): ... to here.
10020
10021 2011-05-22  Bruno Haible  <bruno@clisp.org>
10022
10023         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
10024         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
10025         invocations from here...
10026         * modules/strdup (configure.ac): ... to here.
10027         * modules/strdup-posix (configure.ac): ... and here.
10028
10029 2011-05-22  Bruno Haible  <bruno@clisp.org>
10030
10031         strcspn: Move AC_LIBOBJ invocations to module description.
10032         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
10033         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
10034         here...
10035         * modules/strcspn (configure.ac): ... to here.
10036
10037 2011-05-22  Bruno Haible  <bruno@clisp.org>
10038
10039         strchrnul: Move AC_LIBOBJ invocations to module description.
10040         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
10041         gl_PREREQ_STRCHRNUL invocations from here...
10042         * modules/strchrnul (configure.ac): ... to here.
10043
10044 2011-05-22  Bruno Haible  <bruno@clisp.org>
10045
10046         strcasestr*: Move AC_LIBOBJ invocations to module description.
10047         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
10048         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
10049         * modules/strcasestr-simple (configure.ac): ... to here.
10050         * modules/strcasestr (configure.ac): ... and here.
10051
10052 2011-05-22  Bruno Haible  <bruno@clisp.org>
10053
10054         strcase: Move AC_LIBOBJ invocations to module description.
10055         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
10056         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
10057         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
10058         gl_PREREQ_STRNCASECMP invocations from here...
10059         * modules/strcase (configure.ac): ... to here.
10060
10061 2011-05-22  Bruno Haible  <bruno@clisp.org>
10062
10063         stpncpy: Move AC_LIBOBJ invocations to module description.
10064         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
10065         here...
10066         * modules/stpncpy (configure.ac): ... to here.
10067
10068 2011-05-22  Bruno Haible  <bruno@clisp.org>
10069
10070         stpcpy: Move AC_LIBOBJ invocations to module description.
10071         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
10072         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
10073         here...
10074         * modules/stpcpy (configure.ac): ... to here.
10075
10076 2011-05-21  Bruno Haible  <bruno@clisp.org>
10077
10078         stat: Move AC_LIBOBJ invocations to module description.
10079         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
10080         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
10081         here...
10082         * modules/stat (configure.ac): ... to here.
10083
10084 2011-05-21  Bruno Haible  <bruno@clisp.org>
10085
10086         sleep: Move AC_LIBOBJ invocations to module description.
10087         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
10088         * modules/sleep (configure.ac): ... to here.
10089
10090 2011-05-21  Bruno Haible  <bruno@clisp.org>
10091
10092         signbit: Move AC_LIBOBJ invocations to module description.
10093         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
10094         * modules/signbit (configure.ac): ... to here.
10095
10096 2011-05-21  Bruno Haible  <bruno@clisp.org>
10097
10098         sigprocmask: Move AC_LIBOBJ invocations to module description.
10099         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
10100         gl_PREREQ_SIGPROMASK invocations from here...
10101         * modules/sigprocmask (configure.ac): ... to here.
10102
10103 2011-05-21  Bruno Haible  <bruno@clisp.org>
10104
10105         sigaction: Move AC_LIBOBJ invocations to module description.
10106         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
10107         gl_PREREQ_SIGACTION invocations from here...
10108         * modules/sigaction (configure.ac): ... to here.
10109
10110 2011-05-21  Bruno Haible  <bruno@clisp.org>
10111
10112         sig2str: Move AC_LIBOBJ invocations to module description.
10113         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
10114         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
10115         here...
10116         * modules/sig2str (configure.ac): ... to here.
10117
10118 2011-05-21  Bruno Haible  <bruno@clisp.org>
10119
10120         setlocale: Move AC_LIBOBJ invocations to module description.
10121         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
10122         gl_PREREQ_SETLOCALE invocations from here...
10123         * modules/setlocale (configure.ac): ... to here.
10124
10125 2011-05-21  Bruno Haible  <bruno@clisp.org>
10126
10127         unsetenv: Move AC_LIBOBJ invocations to module description.
10128         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
10129         and gl_PREREQ_UNSETENV invocations from here...
10130         * modules/unsetenv (configure.ac): ... to here.
10131         (Depends-on): Update.
10132
10133 2011-05-21  Bruno Haible  <bruno@clisp.org>
10134
10135         setenv: Move AC_LIBOBJ invocations to module description.
10136         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
10137         here...
10138         * modules/setenv (configure.ac): ... to here.
10139
10140 2011-05-21  Bruno Haible  <bruno@clisp.org>
10141
10142         selinux-h: Move AC_LIBOBJ invocations to module description.
10143         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
10144         AC_LIBOBJ invocation from here...
10145         * modules/selinux-h (configure.ac): ... to here.
10146
10147 2011-05-21  Bruno Haible  <bruno@clisp.org>
10148
10149         select: Respect rules for use of AC_LIBOBJ.
10150         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
10151         here...
10152         * modules/select (configure.ac): ... to here.
10153
10154 2011-05-21  Bruno Haible  <bruno@clisp.org>
10155
10156         scandir: Move AC_LIBOBJ invocations to module description.
10157         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
10158         invocations from here...
10159         * modules/scandir (configure.ac): ... to here.
10160
10161 2011-05-21  Bruno Haible  <bruno@clisp.org>
10162
10163         rpmatch: Move AC_LIBOBJ invocations to module description.
10164         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
10165         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
10166         here...
10167         * modules/rpmatch (configure.ac): ... to here.
10168
10169 2011-05-21  Bruno Haible  <bruno@clisp.org>
10170
10171         rmdir: Respect rules for use of AC_LIBOBJ.
10172         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
10173         * modules/rmdir (configure.ac): ... to here.
10174
10175 2011-05-21  Bruno Haible  <bruno@clisp.org>
10176
10177         renameat: Move AC_LIBOBJ invocations to module description.
10178         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
10179         here...
10180         * modules/renameat (configure.ac): ... to here.
10181
10182 2011-05-21  Bruno Haible  <bruno@clisp.org>
10183
10184         rename: Respect rules for use of AC_LIBOBJ.
10185         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
10186         here...
10187         * modules/rename (configure.ac): ... to here.
10188
10189 2011-05-21  Bruno Haible  <bruno@clisp.org>
10190
10191         remove: Move AC_LIBOBJ invocations to module description.
10192         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
10193         here...
10194         * modules/remove (configure.ac): ... to here.
10195
10196 2011-05-21  Bruno Haible  <bruno@clisp.org>
10197
10198         relocatable-lib: Move AC_LIBOBJ invocations to module description.
10199         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
10200         macro.
10201         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
10202         * modules/relocatable-lib (configure.ac): ... to here.
10203         * modules/relocatable-prog-wrapper (configure.ac): Invoke
10204         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
10205
10206 2011-05-21  Bruno Haible  <bruno@clisp.org>
10207
10208         relocatable-prog: Move AC_LIBOBJ invocations to module description.
10209         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
10210         here...
10211         * modules/relocatable-prog (configure.ac): ... to here.
10212
10213 2011-05-21  Bruno Haible  <bruno@clisp.org>
10214
10215         regex: Move AC_LIBOBJ invocations to module description.
10216         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
10217         invocations from here...
10218         * modules/regex (configure.ac): ... to here.
10219
10220 2011-05-21  Bruno Haible  <bruno@clisp.org>
10221
10222         realloc-*: Move AC_LIBOBJ invocations to module description.
10223         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
10224         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
10225         AC_LIBOBJ invocations from here...
10226         * modules/realloc-gnu (configure.ac): ... to here.
10227         * modules/realloc-posix (configure.ac): ... and here.
10228
10229 2011-05-21  Bruno Haible  <bruno@clisp.org>
10230
10231         readutmp: Move AC_LIBOBJ invocations to module description.
10232         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
10233         * modules/readutmp (configure.ac): ... to here.
10234
10235 2011-05-21  Bruno Haible  <bruno@clisp.org>
10236
10237         readlinkat: Move AC_LIBOBJ invocations to module description.
10238         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
10239         here...
10240         * modules/readlinkat (configure.ac): ... to here.
10241
10242 2011-05-21  Bruno Haible  <bruno@clisp.org>
10243
10244         readlink: Move AC_LIBOBJ invocations to module description.
10245         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
10246         gl_PREREQ_READLINK invocations from here...
10247         * modules/readlink (configure.ac): ... to here.
10248
10249 2011-05-21  Bruno Haible  <bruno@clisp.org>
10250
10251         readline: Move AC_LIBOBJ invocations to module description.
10252         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
10253         gl_PREREQ_READLINE invocations from here...
10254         * modules/readline (configure.ac): ... to here.
10255
10256 2011-05-21  Bruno Haible  <bruno@clisp.org>
10257
10258         read: Move AC_LIBOBJ invocations to module description.
10259         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
10260         * modules/read (configure.ac): ... to here.
10261
10262 2011-05-21  Bruno Haible  <bruno@clisp.org>
10263
10264         rawmemchr: Move AC_LIBOBJ invocations to module description.
10265         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
10266         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
10267         from here...
10268         * modules/rawmemchr (configure.ac): ... to here.
10269
10270 2011-05-21  Bruno Haible  <bruno@clisp.org>
10271
10272         random_r: Move AC_LIBOBJ invocations to module description.
10273         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
10274         gl_PREREQ_RANDOM_R invocations from here...
10275         * modules/random_r (configure.ac): ... to here.
10276
10277 2011-05-21  Bruno Haible  <bruno@clisp.org>
10278
10279         pwrite: Move AC_LIBOBJ invocations to module description.
10280         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
10281         * modules/pwrite (configure.ac): ... to here.
10282
10283 2011-05-21  Bruno Haible  <bruno@clisp.org>
10284
10285         putenv: Move AC_LIBOBJ invocations to module description.
10286         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
10287         * modules/putenv (configure.ac): ... to here.
10288
10289 2011-05-21  Bruno Haible  <bruno@clisp.org>
10290
10291         login_tty: Move AC_LIBOBJ invocations to module description.
10292         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
10293         * modules/login_tty (configure.ac): ... to here.
10294
10295 2011-05-21  Bruno Haible  <bruno@clisp.org>
10296
10297         openpty: Move AC_LIBOBJ invocations to module description.
10298         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
10299         * modules/openpty (configure.ac): ... to here.
10300
10301 2011-05-21  Bruno Haible  <bruno@clisp.org>
10302
10303         forkpty: Move AC_LIBOBJ invocations to module description.
10304         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
10305         * modules/forkpty (configure.ac): ... to here.
10306
10307 2011-05-21  Bruno Haible  <bruno@clisp.org>
10308
10309         ptsname: Move AC_LIBOBJ invocations to module description.
10310         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
10311         invocations from here...
10312         * modules/ptsname (configure.ac): ... to here.
10313
10314 2011-05-21  Bruno Haible  <bruno@clisp.org>
10315
10316         pread: Move AC_LIBOBJ invocations to module description.
10317         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
10318         * modules/pread (configure.ac): ... to here.
10319
10320 2011-05-21  Bruno Haible  <bruno@clisp.org>
10321
10322         posix_spawn*: Move AC_LIBOBJ invocations to module description.
10323         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
10324         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
10325         * modules/posix_spawn (configure.ac): ... to here.
10326         * modules/posix_spawnp (configure.ac): ... and here.
10327
10328 2011-05-21  Bruno Haible  <bruno@clisp.org>
10329
10330         popen: Move AC_LIBOBJ invocations to module description.
10331         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
10332         invocations from here...
10333         * modules/popen (configure.ac): ... to here.
10334
10335 2011-05-21  Bruno Haible  <bruno@clisp.org>
10336
10337         poll: Move AC_LIBOBJ invocations to module description.
10338         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
10339         invocations from here...
10340         * modules/poll (configure.ac): ... to here.
10341
10342 2011-05-21  Bruno Haible  <bruno@clisp.org>
10343
10344         pipe-posix: Move AC_LIBOBJ invocations to module description.
10345         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
10346         * modules/pipe-posix (configure.ac): ... to here.
10347
10348 2011-05-21  Bruno Haible  <bruno@clisp.org>
10349
10350         openat: Respect rules for use of AC_LIBOBJ.
10351         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
10352         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
10353         * modules/openat (configure.ac): ... to here.
10354
10355 2011-05-21  Bruno Haible  <bruno@clisp.org>
10356
10357         obstack-printf*: Move AC_LIBOBJ invocations to module description.
10358         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
10359         invocation from here...
10360         * modules/obstack-printf (configure.ac): ... to here.
10361         * modules/obstack-printf-posix (configure.ac): ... and here.
10362
10363 2011-05-21  Bruno Haible  <bruno@clisp.org>
10364
10365         nl_langinfo: Move AC_LIBOBJ invocations to module description.
10366         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
10367         from here...
10368         * modules/nl_langinfo (configure.ac): ... to here.
10369
10370 2011-05-21  Bruno Haible  <bruno@clisp.org>
10371
10372         nanosleep: Move AC_LIBOBJ invocations to module description.
10373         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
10374         gl_PREREQ_NANOSLEEP invocations from here...
10375         * modules/nanosleep (configure.ac): ... to here.
10376
10377 2011-05-21  Bruno Haible  <bruno@clisp.org>
10378
10379         mountlist: Move AC_LIBOBJ invocations to module description.
10380         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
10381         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
10382         * modules/mountlist (configure.ac): ... to here.
10383
10384 2011-05-21  Bruno Haible  <bruno@clisp.org>
10385
10386         mktime: Respect rules for use of AC_LIBOBJ.
10387         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
10388         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
10389         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
10390         (gl_FUNC_MKTIME_INTERNAL): ... and here...
10391         * modules/mktime (configure.ac): ... to here.
10392         * modules/mktime-internal (configure.ac): ... and here.
10393         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
10394
10395 2011-05-21  Bruno Haible  <bruno@clisp.org>
10396
10397         mkstemps: Move AC_LIBOBJ invocations to module description.
10398         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
10399         here...
10400         * modules/mkstemps (configure.ac): ... to here.
10401
10402 2011-05-21  Bruno Haible  <bruno@clisp.org>
10403
10404         mkstemp: Move AC_LIBOBJ invocations to module description.
10405         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
10406         gl_PREREQ_MKSTEMP invocations from here...
10407         * modules/mkstemp (configure.ac): ... to here.
10408
10409 2011-05-21  Bruno Haible  <bruno@clisp.org>
10410
10411         mkostemps: Move AC_LIBOBJ invocations to module description.
10412         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
10413         here...
10414         * modules/mkostemps (configure.ac): ... to here.
10415
10416 2011-05-21  Bruno Haible  <bruno@clisp.org>
10417
10418         mkostemp: Move AC_LIBOBJ invocations to module description.
10419         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
10420         gl_PREREQ_MKOSTEMP invocations from here...
10421         * modules/mkostemp (configure.ac): ... to here.
10422
10423 2011-05-21  Bruno Haible  <bruno@clisp.org>
10424
10425         mknod: Move AC_LIBOBJ invocations to module description.
10426         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
10427         * modules/mknod (configure.ac): ... to here.
10428
10429 2011-05-21  Bruno Haible  <bruno@clisp.org>
10430
10431         mkfifoat: Move AC_LIBOBJ invocations to module description.
10432         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
10433         here...
10434         * modules/mkfifoat (configure.ac): ... to here.
10435
10436 2011-05-21  Bruno Haible  <bruno@clisp.org>
10437
10438         mkfifo: Respect rules for use of AC_LIBOBJ.
10439         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
10440         here...
10441         * modules/mkfifo (configure.ac): ... to here.
10442
10443 2011-05-21  Bruno Haible  <bruno@clisp.org>
10444
10445         mkdtemp: Move AC_LIBOBJ invocations to module description.
10446         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
10447         invocations from here...
10448         * modules/mkdtemp (configure.ac): ... to here.
10449
10450 2011-05-21  Bruno Haible  <bruno@clisp.org>
10451
10452         mkdir: Move AC_LIBOBJ invocations to module description.
10453         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
10454         * modules/mkdir (configure.ac): ... to here.
10455
10456 2011-05-21  Bruno Haible  <bruno@clisp.org>
10457
10458         memset: Move AC_LIBOBJ invocations to module description.
10459         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
10460         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
10461         here...
10462         * modules/memset (configure.ac): ... to here.
10463
10464 2011-05-21  Bruno Haible  <bruno@clisp.org>
10465
10466         memrchr: Move AC_LIBOBJ invocations to module description.
10467         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
10468         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
10469         here...
10470         * modules/memrchr (configure.ac): ... to here.
10471
10472 2011-05-21  Bruno Haible  <bruno@clisp.org>
10473
10474         mempcpy: Move AC_LIBOBJ invocations to module description.
10475         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
10476         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
10477         here...
10478         * modules/mempcpy (configure.ac): ... to here.
10479
10480 2011-05-21  Bruno Haible  <bruno@clisp.org>
10481
10482         memmove: Move AC_LIBOBJ invocations to module description.
10483         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
10484         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
10485         here...
10486         * modules/memmove (configure.ac): ... to here.
10487
10488 2011-05-21  Bruno Haible  <bruno@clisp.org>
10489
10490         memmem*: Move AC_LIBOBJ invocations to module description.
10491         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
10492         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
10493         here...
10494         (gl_FUNC_MEMMEM): ... and here...
10495         * modules/memmem-simple (configure.ac): ... to here.
10496         * modules/memmem (configure.ac): ... and here.
10497
10498 2011-05-21  Bruno Haible  <bruno@clisp.org>
10499
10500         memcpy: Move AC_LIBOBJ invocations to module description.
10501         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
10502         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
10503         here...
10504         * modules/memcpy (configure.ac): ... to here.
10505
10506 2011-05-21  Bruno Haible  <bruno@clisp.org>
10507
10508         memcmp: Simplify autoconf macro.
10509         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
10510         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
10511         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
10512
10513 2011-05-21  Bruno Haible  <bruno@clisp.org>
10514
10515         memcmp: Move AC_LIBOBJ invocations to module description.
10516         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
10517         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
10518         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
10519         * modules/memcmp (configure.ac): ... to here.
10520         (Depends-on): Update conditions.
10521
10522 2011-05-21  Bruno Haible  <bruno@clisp.org>
10523
10524         memchr: Respect rules for use of AC_LIBOBJ.
10525         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
10526         invocations from here...
10527         * modules/memchr (configure.ac): ... to here.
10528
10529 2011-05-21  Bruno Haible  <bruno@clisp.org>
10530
10531         mbtowc: Move AC_LIBOBJ invocations to module description.
10532         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
10533         invocations from here...
10534         * modules/mbtowc (configure.ac): ... to here.
10535
10536 2011-05-21  Bruno Haible  <bruno@clisp.org>
10537
10538         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
10539         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
10540         gl_PREREQ_MBSRTOWCS invocations from here...
10541         * modules/mbsrtowcs (configure.ac): ... to here.
10542
10543 2011-05-21  Bruno Haible  <bruno@clisp.org>
10544
10545         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
10546         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
10547         gl_PREREQ_MBSNRTOWCS invocations from here...
10548         * modules/mbsnrtowcs (configure.ac): ... to here.
10549
10550 2011-05-21  Bruno Haible  <bruno@clisp.org>
10551
10552         mbsinit: Move AC_LIBOBJ invocations to module description.
10553         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
10554         invocations from here...
10555         * modules/mbsinit (configure.ac): ... to here.
10556
10557 2011-05-21  Bruno Haible  <bruno@clisp.org>
10558
10559         mbrlen: Move AC_LIBOBJ invocations to module description.
10560         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
10561         invocations from here...
10562         * modules/mbrlen (configure.ac): ... to here.
10563
10564 2011-05-21  Bruno Haible  <bruno@clisp.org>
10565
10566         mbrtowc: Respect rules for use of AC_LIBOBJ.
10567         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
10568         invocations from here...
10569         * modules/mbrtowc (configure.ac): ... to here.
10570
10571 2011-05-21  Bruno Haible  <bruno@clisp.org>
10572
10573         malloc-*: Move AC_LIBOBJ invocations to module description.
10574         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
10575         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
10576         AC_LIBOBJ invocations from here...
10577         * modules/malloc-gnu (configure.ac): ... to here.
10578         * modules/malloc-posix (configure.ac): ... and here.
10579
10580 2011-05-21  Bruno Haible  <bruno@clisp.org>
10581
10582         lstat, openat: Respect rules for use of AC_LIBOBJ.
10583         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
10584         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
10585         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
10586         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
10587         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
10588         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
10589         here.
10590         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
10591
10592 2011-05-21  Bruno Haible  <bruno@clisp.org>
10593
10594         lseek: Move AC_LIBOBJ invocations to module description.
10595         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
10596         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
10597         * modules/lseek (configure.ac): ... to here.
10598
10599 2011-05-21  Bruno Haible  <bruno@clisp.org>
10600
10601         linkat: Move AC_LIBOBJ invocations to module description.
10602         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
10603         here...
10604         * modules/linkat (configure.ac): ... to here.
10605
10606 2011-05-21  Bruno Haible  <bruno@clisp.org>
10607
10608         link: Respect rules for use of AC_LIBOBJ.
10609         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
10610         * modules/link (configure.ac): ... to here.
10611
10612 2011-05-21  Bruno Haible  <bruno@clisp.org>
10613
10614         lchown: Move AC_LIBOBJ invocations to module description.
10615         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
10616         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
10617         * modules/lchown (configure.ac): ... to here.
10618
10619 2011-05-21  Bruno Haible  <bruno@clisp.org>
10620
10621         iswctype: Move AC_LIBOBJ invocations to module description.
10622         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
10623         here...
10624         * modules/iswctype (configure.ac): ... to here.
10625
10626 2011-05-21  Bruno Haible  <bruno@clisp.org>
10627
10628         iswblank: Move AC_LIBOBJ invocations to module description.
10629         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
10630         here...
10631         * modules/iswblank (configure.ac): ... to here.
10632
10633 2011-05-21  Bruno Haible  <bruno@clisp.org>
10634
10635         atanl: Move AC_LIBOBJ invocations to module description.
10636         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
10637         * modules/atanl (configure.ac): ... to here.
10638
10639 2011-05-21  Bruno Haible  <bruno@clisp.org>
10640
10641         acosl: Move AC_LIBOBJ invocations to module description.
10642         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
10643         * modules/acosl (configure.ac): ... to here.
10644
10645 2011-05-21  Bruno Haible  <bruno@clisp.org>
10646
10647         asinl: Respect rules for use of AC_LIBOBJ.
10648         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
10649         * modules/asinl (configure.ac): ... to here.
10650
10651 2011-05-21  Bruno Haible  <bruno@clisp.org>
10652
10653         tanl: Move AC_LIBOBJ invocations to module description.
10654         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
10655         * modules/tanl (configure.ac): ... to here.
10656
10657 2011-05-21  Bruno Haible  <bruno@clisp.org>
10658
10659         cosl: Move AC_LIBOBJ invocations to module description.
10660         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
10661         * modules/cosl (configure.ac): ... to here.
10662
10663 2011-05-21  Bruno Haible  <bruno@clisp.org>
10664
10665         sinl: Move AC_LIBOBJ invocations to module description.
10666         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
10667         * modules/sinl (configure.ac): ... to here.
10668
10669 2011-05-21  Bruno Haible  <bruno@clisp.org>
10670
10671         logl: Move AC_LIBOBJ invocations to module description.
10672         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
10673         * modules/logl (configure.ac): ... to here.
10674
10675 2011-05-21  Bruno Haible  <bruno@clisp.org>
10676
10677         expl: Move AC_LIBOBJ invocations to module description.
10678         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
10679         * modules/expl (configure.ac): ... to here.
10680
10681 2011-05-21  Bruno Haible  <bruno@clisp.org>
10682
10683         roundl: Move AC_LIBOBJ invocations to module description.
10684         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
10685         * modules/roundl (configure.ac): ... to here.
10686
10687 2011-05-21  Bruno Haible  <bruno@clisp.org>
10688
10689         round: Move AC_LIBOBJ invocations to module description.
10690         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
10691         * modules/round (configure.ac): ... to here.
10692
10693 2011-05-21  Bruno Haible  <bruno@clisp.org>
10694
10695         roundf: Move AC_LIBOBJ invocations to module description.
10696         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
10697         * modules/roundf (configure.ac): ... to here.
10698
10699 2011-05-21  Bruno Haible  <bruno@clisp.org>
10700
10701         truncl: Move AC_LIBOBJ invocations to module description.
10702         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
10703         * modules/truncl (configure.ac): ... to here.
10704
10705 2011-05-21  Bruno Haible  <bruno@clisp.org>
10706
10707         trunc: Move AC_LIBOBJ invocations to module description.
10708         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
10709         * modules/trunc (configure.ac): ... to here.
10710
10711 2011-05-21  Bruno Haible  <bruno@clisp.org>
10712
10713         truncf: Move AC_LIBOBJ invocations to module description.
10714         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
10715         * modules/truncf (configure.ac): ... to here.
10716
10717 2011-05-21  Bruno Haible  <bruno@clisp.org>
10718
10719         ceill: Move AC_LIBOBJ invocations to module description.
10720         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
10721         * modules/ceill (configure.ac): ... to here.
10722
10723 2011-05-21  Bruno Haible  <bruno@clisp.org>
10724
10725         ceil: Move AC_LIBOBJ invocations to module description.
10726         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
10727         * modules/ceil (configure.ac): ... to here.
10728
10729 2011-05-21  Bruno Haible  <bruno@clisp.org>
10730
10731         ceilf: Move AC_LIBOBJ invocations to module description.
10732         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
10733         * modules/ceilf (configure.ac): ... to here.
10734
10735 2011-05-21  Bruno Haible  <bruno@clisp.org>
10736
10737         floorl: Respect rules for use of AC_LIBOBJ.
10738         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
10739         * modules/floorl (configure.ac): ... to here.
10740
10741 2011-05-21  Bruno Haible  <bruno@clisp.org>
10742
10743         floor: Respect rules for use of AC_LIBOBJ.
10744         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
10745         * modules/floor (configure.ac): ... to here.
10746
10747 2011-05-21  Bruno Haible  <bruno@clisp.org>
10748
10749         floorf: Move AC_LIBOBJ invocations to module description.
10750         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
10751         * modules/floorf (configure.ac): ... to here.
10752
10753 2011-05-20  Bruno Haible  <bruno@clisp.org>
10754
10755         sqrtl: Respect rules for use of AC_LIBOBJ.
10756         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
10757         * modules/sqrtl (configure.ac): ... to here.
10758
10759 2011-05-20  Bruno Haible  <bruno@clisp.org>
10760
10761         ldexpl: Respect rules for use of AC_LIBOBJ.
10762         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
10763         * modules/ldexpl (configure.ac): ... to here.
10764
10765 2011-05-20  Bruno Haible  <bruno@clisp.org>
10766
10767         frexpl*: Respect rules for use of AC_LIBOBJ.
10768         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
10769         invocation from here...
10770         * modules/frexpl (configure.ac): ... to here.
10771         * modules/frexpl-nolibm (configure.ac): ... and here.
10772
10773 2011-05-20  Bruno Haible  <bruno@clisp.org>
10774
10775         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
10776         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
10777         invocation from here...
10778         * modules/frexp (configure.ac): ... to here.
10779         * modules/frexp-nolibm (configure.ac): ... and here.
10780
10781 2011-05-20  Bruno Haible  <bruno@clisp.org>
10782
10783         isnan: Respect rules for use of AC_LIBOBJ.
10784         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
10785         invocations here.
10786         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
10787         REPLACE_ISNAN.
10788         * modules/isnand (configure.ac): Likewise.
10789         * modules/isnanl (configure.ac): Likewise.
10790
10791 2011-05-20  Bruno Haible  <bruno@clisp.org>
10792
10793         isnanl*: Respect rules for use of AC_LIBOBJ.
10794         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
10795         invocation from here...
10796         * modules/isnanl (configure.ac): ... to here.
10797         * modules/isnanl-nolibm (configure.ac): ... and here.
10798
10799 2011-05-20  Bruno Haible  <bruno@clisp.org>
10800
10801         isnand*: Move AC_LIBOBJ invocations to module description.
10802         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
10803         invocation from here...
10804         * modules/isnand (configure.ac): ... to here.
10805         * modules/isnand-nolibm (configure.ac): ... and here.
10806
10807 2011-05-20  Bruno Haible  <bruno@clisp.org>
10808
10809         isnanf*: Move AC_LIBOBJ invocations to module description.
10810         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
10811         invocation from here...
10812         * modules/isnanf (configure.ac): ... to here.
10813         * modules/isnanf-nolibm (configure.ac): ... and here.
10814
10815 2011-05-20  Bruno Haible  <bruno@clisp.org>
10816
10817         isnan*: Separate the AC_LIBOBJ invocations.
10818         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
10819         AC_LIBOBJ invocation.
10820         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
10821         here.
10822         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
10823         AC_LIBOBJ invocation.
10824         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
10825         here.
10826         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
10827         AC_LIBOBJ invocation.
10828         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
10829         here.
10830         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
10831
10832 2011-05-08  Bruno Haible  <bruno@clisp.org>
10833
10834         isinf: Move AC_LIBOBJ invocations to module description.
10835         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
10836         * modules/isinf (configure.ac): ... to here.
10837
10838 2011-05-08  Bruno Haible  <bruno@clisp.org>
10839
10840         isfinite: Move AC_LIBOBJ invocations to module description.
10841         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
10842         * modules/isfinite (configure.ac): ... to here.
10843
10844 2011-05-08  Bruno Haible  <bruno@clisp.org>
10845
10846         isblank: Move AC_LIBOBJ invocations to module description.
10847         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
10848         here...
10849         * modules/isblank (configure.ac): ... to here.
10850
10851 2011-05-08  Bruno Haible  <bruno@clisp.org>
10852
10853         isapipe: Move AC_LIBOBJ invocations to module description.
10854         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
10855         gl_PREREQ_ISAPIPE invocations from here...
10856         * modules/isapipe (configure.ac): ... to here.
10857         (Depends-on): Update condition.
10858
10859 2011-05-08  Bruno Haible  <bruno@clisp.org>
10860
10861         ioctl: Move AC_LIBOBJ invocations to module description.
10862         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
10863         invocations from here...
10864         * modules/ioctl (configure.ac): ... to here.
10865         (Depends-on): Update condition.
10866
10867 2011-05-08  Bruno Haible  <bruno@clisp.org>
10868
10869         imaxdiv: Move AC_LIBOBJ invocations to module description.
10870         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
10871         invocations from here...
10872         * modules/imaxdiv (configure.ac): ... to here.
10873
10874 2011-05-08  Bruno Haible  <bruno@clisp.org>
10875
10876         imaxabs: Move AC_LIBOBJ invocations to module description.
10877         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
10878         invocations from here...
10879         * modules/imaxabs (configure.ac): ... to here.
10880
10881 2011-05-08  Bruno Haible  <bruno@clisp.org>
10882
10883         getaddrinfo: Move AC_LIBOBJ invocations to module description.
10884         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
10885         AC_LIBOBJ invocations from here...
10886         * modules/getaddrinfo (configure.ac): ... to here.
10887         (Depends-on): Add conditions.
10888
10889 2011-05-08  Bruno Haible  <bruno@clisp.org>
10890
10891         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
10892         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
10893         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
10894         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
10895         (gl_PREREQ_INET_PTON): ... from here.
10896         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
10897         gl_PREREQ_INET_PTON here.
10898         (Depends-on): Update condition.
10899
10900 2011-05-08  Bruno Haible  <bruno@clisp.org>
10901
10902         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
10903         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
10904         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
10905         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
10906         (gl_PREREQ_INET_NTOP): ... from here.
10907         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
10908         gl_PREREQ_INET_NTOP here.
10909         (Depends-on): Update condition.
10910
10911 2011-05-08  Bruno Haible  <bruno@clisp.org>
10912
10913         iconv_open: Move AC_LIBOBJ invocations to module description.
10914         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
10915         AC_LIBOBJ invocations from here...
10916         * modules/iconv_open (configure.ac): ... to here.
10917
10918 2011-05-08  Bruno Haible  <bruno@clisp.org>
10919
10920         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
10921         If module 'iconv_open' is among the main modules and module
10922         'iconv_open-utf' is among the tests dependencies, then
10923         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
10924         return the special iconv_t values. Therefore iconv() and iconv_close()
10925         must support these special iconv_t values, already in lib, not only in
10926         tests.
10927         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
10928         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
10929         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
10930         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
10931         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
10932         (Depends-on): Add the dependencies of iconv_open-utf.
10933         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
10934         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
10935         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
10936
10937 2011-05-08  Bruno Haible  <bruno@clisp.org>
10938
10939         group-member: Move AC_LIBOBJ invocations to module description.
10940         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
10941         gl_PREREQ_GROUP_MEMBER invocations from here...
10942         * modules/group-member (configure.ac): ... to here.
10943
10944 2011-05-08  Bruno Haible  <bruno@clisp.org>
10945
10946         grantpt: Move AC_LIBOBJ invocations to module description.
10947         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
10948         invocations from here...
10949         * modules/grantpt (configure.ac): ... to here.
10950
10951 2011-05-08  Bruno Haible  <bruno@clisp.org>
10952
10953         glob: Move AC_LIBOBJ invocations to module description.
10954         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
10955         from here...
10956         * modules/glob (configure.ac): ... to here.
10957
10958 2011-05-08  Bruno Haible  <bruno@clisp.org>
10959
10960         getusershell: Move AC_LIBOBJ invocations to module description.
10961         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
10962         Move AC_LIBOBJ invocation from here...
10963         * modules/getusershell (configure.ac): ... to here.
10964         (Depends-on): Update condition.
10965
10966 2011-05-08  Bruno Haible  <bruno@clisp.org>
10967
10968         gettimeofday: Move AC_LIBOBJ invocations to module description.
10969         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
10970         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
10971         gl_PREREQ_GETTIMEOFDAY invocations from here...
10972         * modules/gettimeofday (configure.ac): ... to here.
10973
10974 2011-05-08  Bruno Haible  <bruno@clisp.org>
10975
10976         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
10977         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
10978         just gl_FUNC_TZSET.
10979         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
10980         (gl_FUNC_TZSET_CLOBBER): Remove actions.
10981         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
10982         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
10983
10984 2011-05-08  Bruno Haible  <bruno@clisp.org>
10985
10986         getsubopt: Move AC_LIBOBJ invocations to module description.
10987         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
10988         gl_PREREQ_GETSUBOPT invocations from here...
10989         * modules/getsubopt (configure.ac): ... to here.
10990
10991 2011-05-08  Bruno Haible  <bruno@clisp.org>
10992
10993         getpass-gnu: Move AC_LIBOBJ invocations to module description.
10994         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
10995         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
10996         * modules/getpass-gnu (configure.ac): ... to here.
10997
10998 2011-05-08  Bruno Haible  <bruno@clisp.org>
10999
11000         getpass: Move AC_LIBOBJ invocations to module description.
11001         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
11002         gl_PREREQ_GETPASS invocations from here...
11003         * modules/getpass (configure.ac): ... to here.
11004
11005 2011-05-08  Bruno Haible  <bruno@clisp.org>
11006
11007         getpagesize: Move AC_LIBOBJ invocations to module description.
11008         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
11009         from here...
11010         * modules/getpagesize (configure.ac): ... to here.
11011
11012 2011-05-08  Bruno Haible  <bruno@clisp.org>
11013
11014         getopt: Move AC_LIBOBJ invocations to module description.
11015         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
11016         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
11017         invocations from here...
11018         * modules/getopt-gnu (configure.ac): ... to here.
11019         * modules/getopt-posix (configure.ac): ... and here.
11020         (Depends-on): Update condition.
11021
11022 2011-05-08  Bruno Haible  <bruno@clisp.org>
11023
11024         getopt, argp: Respect rules for use of AC_LIBOBJ.
11025         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
11026         (gl_REPLACE_GETOPT_ALWAYS): New macro.
11027         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
11028         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
11029
11030 2011-05-08  Bruno Haible  <bruno@clisp.org>
11031
11032         getlogin_r: Move AC_LIBOBJ invocations to module description.
11033         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
11034         gl_PREREQ_GETLOGIN_R invocations from here...
11035         * modules/getlogin_r (configure.ac): ... to here.
11036
11037 2011-05-08  Bruno Haible  <bruno@clisp.org>
11038
11039         getlogin: Move AC_LIBOBJ invocations to module description.
11040         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
11041         here...
11042         * modules/getlogin (configure.ac): ... to here.
11043
11044 2011-05-08  Bruno Haible  <bruno@clisp.org>
11045
11046         getloadavg: Move AC_LIBOBJ invocations to module description.
11047         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
11048         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
11049         * modules/getloadavg (configure.ac): ... to here.
11050
11051 2011-05-08  Bruno Haible  <bruno@clisp.org>
11052
11053         gethrxtime: Move AC_LIBOBJ invocations to module description.
11054         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
11055         LIB_GETHRXTIME from here...
11056         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
11057         invocations from here...
11058         * modules/gethrxtime (configure.ac): ... to here.
11059
11060 2011-05-08  Bruno Haible  <bruno@clisp.org>
11061
11062         gethostname: Move AC_LIBOBJ invocations to module description.
11063         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
11064         gl_PREREQ_GETHOSTNAME invocations from here...
11065         * modules/gethostname (configure.ac): ... to here.
11066
11067 2011-05-08  Bruno Haible  <bruno@clisp.org>
11068
11069         getgroups: Move AC_LIBOBJ invocations to module description.
11070         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
11071         here...
11072         * modules/getgroups (configure.ac): ... to here.
11073
11074 2011-05-08  Bruno Haible  <bruno@clisp.org>
11075
11076         getdtablesize: Move AC_LIBOBJ invocations to module description.
11077         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
11078         invocation from here...
11079         * modules/getdtablesize (configure.ac): ... to here.
11080
11081 2011-05-08  Bruno Haible  <bruno@clisp.org>
11082
11083         getdomainname: Move AC_LIBOBJ invocations to module description.
11084         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
11085         gl_PREREQ_GETDOMAINNAME invocations from here...
11086         * modules/getdomainname (configure.ac): ... to here.
11087
11088 2011-05-08  Bruno Haible  <bruno@clisp.org>
11089
11090         getline: Move AC_LIBOBJ invocations to module description.
11091         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
11092         invocations from here...
11093         * modules/getline (configure.ac): ... to here.
11094
11095 2011-05-08  Bruno Haible  <bruno@clisp.org>
11096
11097         getline: Simplify.
11098         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
11099         It's already handled through the module dependency.
11100
11101 2011-05-08  Bruno Haible  <bruno@clisp.org>
11102
11103         getdelim: Move AC_LIBOBJ invocations to module description.
11104         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
11105         and gl_PREREQ_GETDELIM invocations from here...
11106         * modules/getdelim (configure.ac): ... to here.
11107         (Depends-on): Fix condition.
11108
11109 2011-05-08  Bruno Haible  <bruno@clisp.org>
11110
11111         getcwd: Move AC_LIBOBJ invocations to module description.
11112         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
11113         invocations from here...
11114         * modules/getcwd (configure.ac): ... to here.
11115
11116 2011-05-08  Bruno Haible  <bruno@clisp.org>
11117
11118         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
11119         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
11120         here...
11121         * modules/getcwd-lgpl (configure.ac): ... to here.
11122
11123 2011-05-07  Bruno Haible  <bruno@clisp.org>
11124
11125         crypto/gc: Move AC_LIBOBJ invocations to module description.
11126         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
11127         * modules/crypto/gc (configure.ac): ... to here.
11128
11129 2011-05-07  Bruno Haible  <bruno@clisp.org>
11130
11131         fwriting: Move AC_LIBOBJ invocations to module description.
11132         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
11133         here...
11134         * modules/fwriting (configure.ac): ... to here.
11135
11136 2011-05-07  Bruno Haible  <bruno@clisp.org>
11137
11138         fwritable: Move AC_LIBOBJ invocations to module description.
11139         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
11140         here...
11141         * modules/fwritable (configure.ac): ... to here.
11142
11143 2011-05-07  Bruno Haible  <bruno@clisp.org>
11144
11145         futimens: Move AC_LIBOBJ invocations to module description.
11146         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
11147         here...
11148         * modules/futimens (configure.ac): ... to here.
11149
11150 2011-05-07  Bruno Haible  <bruno@clisp.org>
11151
11152         ftruncate: Move AC_LIBOBJ invocations to module description.
11153         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
11154         gl_PREREQ_FTRUNCATE invocations from here...
11155         * modules/ftruncate (configure.ac): ... to here.
11156
11157 2011-05-07  Bruno Haible  <bruno@clisp.org>
11158
11159         fsync: Move AC_LIBOBJ invocations to module description.
11160         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
11161         invocations from here...
11162         * modules/fsync (configure.ac): ... to here.
11163
11164 2011-05-07  Bruno Haible  <bruno@clisp.org>
11165
11166         fsusage: Move AC_LIBOBJ invocations to module description.
11167         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
11168         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
11169         * modules/fsusage (configure.ac): ... to here.
11170
11171 2011-05-07  Bruno Haible  <bruno@clisp.org>
11172
11173         freopen: Move AC_LIBOBJ invocations to module description.
11174         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
11175         invocations from here...
11176         * modules/freopen (configure.ac): ... to here.
11177
11178 2011-05-07  Bruno Haible  <bruno@clisp.org>
11179
11180         free: Move AC_LIBOBJ invocations to module description.
11181         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
11182         invocations from here...
11183         * modules/free (configure.ac): ... to here.
11184
11185 2011-05-07  Bruno Haible  <bruno@clisp.org>
11186
11187         freadable: Move AC_LIBOBJ invocations to module description.
11188         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
11189         here...
11190         * modules/freadable (configure.ac): ... to here.
11191
11192 2011-05-07  Bruno Haible  <bruno@clisp.org>
11193
11194         fpurge: Move AC_LIBOBJ invocations to module description.
11195         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
11196         invocations from here...
11197         * modules/fpurge (configure.ac): ... to here.
11198
11199 2011-05-07  Bruno Haible  <bruno@clisp.org>
11200
11201         fpending: Move AC_LIBOBJ invocations to module description.
11202         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
11203         gl_FUNC_FPENDING.
11204         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
11205         invocations from here...
11206         * modules/fpending (configure.ac): ... to here.
11207
11208 2011-05-07  Bruno Haible  <bruno@clisp.org>
11209
11210         fopen: Move AC_LIBOBJ invocations to module description.
11211         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
11212         invocations from here...
11213         * modules/fopen (configure.ac): ... to here.
11214
11215 2011-05-07  Bruno Haible  <bruno@clisp.org>
11216
11217         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
11218         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
11219         gl_FUNC_FNMATCH_POSIX.
11220         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
11221         invocations from here...
11222         * modules/fnmatch (configure.ac): ... to here.
11223         * modules/fnmatch-gnu (configure.ac): ... and here.
11224
11225 2011-05-07  Bruno Haible  <bruno@clisp.org>
11226
11227         flock: Move AC_LIBOBJ invocations to module description.
11228         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
11229         invocations from here...
11230         * modules/flock (configure.ac): ... to here.
11231
11232 2011-05-07  Bruno Haible  <bruno@clisp.org>
11233
11234         fileblocks: Move AC_LIBOBJ invocations to module description.
11235         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
11236         gl_PREREQ_FILEBLOCKS invocations from here...
11237         * modules/fileblocks (configure.ac): ... to here.
11238
11239 2011-05-06  Bruno Haible  <bruno@clisp.org>
11240
11241         fflush: Move AC_LIBOBJ invocations to module description.
11242         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
11243         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
11244         invocations from here...
11245         * modules/fflush (configure.ac): ... to here.
11246
11247 2011-05-06  Bruno Haible  <bruno@clisp.org>
11248
11249         fdopendir: Move AC_LIBOBJ invocations to module description.
11250         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
11251         here...
11252         * modules/fdopendir (configure.ac): ... to here.
11253         (Depends-on): Improve conditions.
11254
11255 2011-05-06  Bruno Haible  <bruno@clisp.org>
11256
11257         _Exit: Move AC_LIBOBJ invocations to module description.
11258         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
11259         invocations from here...
11260         * modules/_Exit (configure.ac): ... to here.
11261
11262 2011-05-21  Bruno Haible  <bruno@clisp.org>
11263
11264         euidaccess: Respect rules for use of AC_LIBOBJ.
11265         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
11266         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
11267         from here...
11268         * modules/euidaccess (configure.ac): ... to here.
11269
11270 2011-05-06  Bruno Haible  <bruno@clisp.org>
11271
11272         error: Move AC_LIBOBJ invocations to module description.
11273         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
11274         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
11275         invocations from here...
11276         * modules/error (configure.ac): ... to here.
11277
11278 2011-05-06  Bruno Haible  <bruno@clisp.org>
11279
11280         duplocale: Move AC_LIBOBJ invocations to module description.
11281         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
11282         gl_PREREQ_DUPLOCALE invocations from here...
11283         * modules/duplocale (configure.ac): ... to here.
11284
11285 2011-05-05  Bruno Haible  <bruno@clisp.org>
11286
11287         dirfd: Move AC_LIBOBJ invocations to module description.
11288         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
11289         gl_FUNC_DIRFD.
11290         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
11291         here...
11292         * modules/dirfd (configure.ac): ... to here.
11293         (Depends-on): Fix condition.
11294
11295 2011-05-05  Bruno Haible  <bruno@clisp.org>
11296
11297         chown: Respect rules for use of AC_LIBOBJ.
11298         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
11299         * modules/chown (configure.ac): ... to here.
11300
11301 2011-05-05  Bruno Haible  <bruno@clisp.org>
11302
11303         chdir-long: Move AC_LIBOBJ invocations to module description.
11304         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
11305         gl_PREREQ_CHDIR_LONG invocations from here...
11306         * modules/chdir-long (configure.ac): ... to here.
11307
11308 2011-05-05  Bruno Haible  <bruno@clisp.org>
11309
11310         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
11311         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
11312         from here...
11313         * modules/canonicalize-lgpl (configure.ac): ... to here.
11314
11315 2011-05-05  Bruno Haible  <bruno@clisp.org>
11316
11317         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
11318         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
11319         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
11320         REPLACE_CALLOC.
11321         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
11322         * modules/calloc-gnu (configure.ac): Likewise.
11323
11324 2011-05-05  Bruno Haible  <bruno@clisp.org>
11325
11326         btowc: Move AC_LIBOBJ invocations to module description.
11327         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
11328         invocations from here...
11329         * modules/btowc (configure.ac): ... to here.
11330
11331 2011-05-21  Bruno Haible  <bruno@clisp.org>
11332
11333         atexit: Move AC_LIBOBJ invocations to module description.
11334         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
11335         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
11336         here...
11337         * modules/atexit (configure.ac): ... to here.
11338
11339 2011-05-05  Bruno Haible  <bruno@clisp.org>
11340
11341         atoll: Move AC_LIBOBJ invocations to module description.
11342         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
11343         invocations from here...
11344         * modules/atoll (configure.ac): ... to here.
11345
11346 2011-05-05  Bruno Haible  <bruno@clisp.org>
11347
11348         argz: Move AC_LIBOBJ invocations to module description.
11349         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
11350         * modules/argz (configure.ac): ... to here.
11351
11352 2011-05-05  Bruno Haible  <bruno@clisp.org>
11353
11354         alphasort: Move AC_LIBOBJ invocations to module description.
11355         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
11356         gl_PREREQ_ALPHASORT invocations from here...
11357         * modules/alphasort (configure.ac): ... to here.
11358
11359 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
11360
11361         verify: new macro verify_expr; verify_true deprecated
11362         * NEWS: Mention this.
11363         * doc/verify.texi (Compile-time Assertions): Document this.
11364         * lib/verify.h (verify_true): Deprecate.
11365         (verify_expr): New macro.
11366         * tests/test-verify.c (function): Test verify_expr.
11367
11368 2011-06-14  Jim Meyering  <meyering@redhat.com>
11369
11370         init.sh: give more portable redirection-related advice in a comment
11371         * tests/init.sh (stderr_fileno_): Update the advice in comments.
11372         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
11373         for lots of discussion.  Stefano Lattarini suggested the solution
11374         of putting "9>&2" after the command.  Reported by Bruno Haible.
11375
11376 2011-06-13  Bruno Haible  <bruno@clisp.org>
11377
11378         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
11379         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
11380         'none'.
11381
11382 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
11383
11384         ftoastr: use strtof only if HAVE_STRTOF
11385         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
11386         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
11387         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
11388         * modules/ftoastr (configure.ac): Check for strtof.
11389
11390 2011-06-13  Bruno Haible  <bruno@clisp.org>
11391
11392         gnulib-tool: Addendum to 2011-06-08 commit.
11393         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
11394         and --witness-c-macro have been given, augment AM_CPPFLAGS.
11395
11396 2011-06-13  Bruno Haible  <bruno@clisp.org>
11397
11398         fseeko: Provide a non-inline replacement of fseek().
11399         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
11400         * modules/fseeko (Depends-on): Add fseek.
11401         * modules/fseek (License): Change to LGPLv2+.
11402
11403 2011-06-13  Bruno Haible  <bruno@clisp.org>
11404
11405         ftello: Provide a non-inline replacement of ftell().
11406         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
11407         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
11408         not have ftello() (such as on mingw).
11409         * modules/ftello (Depends-on): Add ftell.
11410         * modules/ftell (License): Change to LGPLv2+.
11411
11412 2011-05-07  Bruno Haible  <bruno@clisp.org>
11413
11414         ftell: Move AC_LIBOBJ invocations to module description.
11415         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
11416         * modules/ftell (configure.ac): ... to here.
11417
11418 2011-05-07  Bruno Haible  <bruno@clisp.org>
11419
11420         ftello: Respect rules for use of AC_LIBOBJ.
11421         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
11422         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
11423         here...
11424         * modules/ftello (configure.ac): ... to here.
11425
11426 2011-05-07  Bruno Haible  <bruno@clisp.org>
11427
11428         fseeko: Simplify.
11429         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
11430         (gl_FUNC_FSEEKO): Inline it here.
11431
11432 2011-05-07  Bruno Haible  <bruno@clisp.org>
11433
11434         fseek: Move AC_LIBOBJ invocations to module description.
11435         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
11436         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
11437         * modules/fseek (configure.ac): ... to here.
11438
11439 2011-05-07  Bruno Haible  <bruno@clisp.org>
11440
11441         fseek: Respect rules for use of AC_LIBOBJ.
11442         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
11443         here...
11444         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
11445
11446 2011-05-07  Bruno Haible  <bruno@clisp.org>
11447
11448         fseeko: Respect rules for use of AC_LIBOBJ.
11449         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
11450         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
11451         here...
11452         * modules/fseeko (configure.ac): ... to here.
11453
11454 2011-06-13  Bruno Haible  <bruno@clisp.org>
11455
11456         gnulib-tool: Allow comments in the 'Depends-on' section.
11457         * doc/gnulib.texi (Module description): Mention comment syntax in the
11458         Depends-on section.
11459         * gnulib-tool (func_get_dependencies): Filter out comment lines.
11460
11461 2011-06-13  Bruno Haible  <bruno@clisp.org>
11462
11463         file-set.h: guard __attibute__ use, now that it's not always defined
11464         * lib/file-set.h (record_file): Use __attribute__ only with compiler
11465         versions that support it.  This fixes a coreutils build failure with
11466         the vendor cc on HP-UX 11.31.
11467
11468 2011-06-12  Bruno Haible  <bruno@clisp.org>
11469
11470         acl: Add support for HP-UX >= 11.11 JFS ACLs.
11471         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
11472         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
11473         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
11474         (acl, aclsort): New declarations.
11475         (aclv_nontrivial): New declaration.
11476         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
11477         (file_has_acl): Read also the second kind of HP-UX ACLs.
11478         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
11479         kind of HP-UX ACLs if the first kind fails.
11480         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
11481         second kind of HP-UX ACLs.
11482         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
11483         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
11484         agree.
11485         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
11486         hpuxjfs.
11487         Handle hpuxjfs.
11488         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
11489         hpuxjfs.
11490         Handle hpuxjfs.
11491         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
11492         (func_test_same_acls): Use both lsacl and getacl.
11493         Handle hpuxjfs.
11494         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
11495         (func_test_same_acls): Use both lsacl and getacl.
11496         Handle hpuxjfs.
11497
11498 2011-06-12  Bruno Haible  <bruno@clisp.org>
11499
11500         acl: Complete the 2010-08-10 fix.
11501         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
11502         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
11503         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
11504         explicitly.
11505         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
11506         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
11507
11508 2011-06-12  Bruno Haible  <bruno@clisp.org>
11509
11510         spawn-pipe tests: Comments.
11511         * tests/test-spawn-pipe-child.c (main): Update comment.
11512         Reported by James Youngman <jay@gnu.org>.
11513
11514 2011-06-11  James Youngman  <jay@gnu.org>
11515
11516         New module 'stat-size'.
11517         * modules/stat-size: New module.  Provides macros for accessing
11518         file size information in instances of struct stat.  Depends on the
11519         fileblocks module because it calls st_blocks.
11520         * lib/stat-size.h: New file, adapted from coreutils' system.h.
11521         * doc/gnulib.texi: Include stat-size.texi.
11522         * doc/stat-size.texi: Documentation for this module.
11523         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
11524         * m4/fileblocks.m4: Mention that stat-size depends on the call to
11525         AC_STRUCT_ST_BLOCKS.
11526
11527 2011-06-09  Bruno Haible  <bruno@clisp.org>
11528
11529         thread: Support pthreads-win32.
11530         * lib/glthread/thread.h (gl_thread_self): Define differently on
11531         pthreads-win32.
11532         (gl_null_thread): New declaration.
11533         (gl_thread_self_pointer): New macro.
11534         * lib/glthread/thread.c (gl_null_thread): New constant.
11535         * tests/test-lock.c: Use gl_thread_self_pointer instead of
11536         gl_thread_self.
11537         * tests/test-tls.c: Likewise.
11538         Suggested by Paul Eggert. Reported by Eric Blake.
11539
11540 2011-06-09  Bruno Haible  <bruno@clisp.org>
11541
11542         thread: Fix confusion between NULL and 0.
11543         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
11544         Reported by Paul Eggert.
11545
11546 2011-06-09  Bruno Haible  <bruno@clisp.org>
11547
11548         spawn-pipe tests: Avoid test failure on HP-UX 11.
11549         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
11550         is closed.
11551
11552 2011-06-09  Bruno Haible  <bruno@clisp.org>
11553
11554         acl tests: Fix compilation error on HP-UX 11.
11555         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
11556
11557 2011-06-09  Bruno Haible  <bruno@clisp.org>
11558
11559         rmdir: Avoid test failure on HP-UX 10.20.
11560         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
11561         EEXIST.
11562
11563 2011-06-08  Eric Blake  <eblake@redhat.com>
11564
11565         perror: fix test on mingw
11566         * modules/perror-tests (Depends-on): Add dup2.
11567
11568         strerror_r-posix: fix on MacOS
11569         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
11570         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
11571         logic bug.
11572         * lib/strerror_r.c (strerror_r): Fix the bug.
11573         * lib/strerror.c (strerror): Likewise.
11574         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
11575         problem.
11576         * doc/posix-functions/strerror.texi (strerror): Likewise.
11577         * doc/posix-functions/perror.texi (perror): Likewise.
11578         * tests/test-strerror.c (main): Enhance test.
11579         * tests/test-strerror_r.c (main): Likewise.
11580
11581 2011-06-08  Bruno Haible  <bruno@clisp.org>
11582
11583         gnulib-tool: Better isolation between different gnulib-tool invocations.
11584         * gnulib-tool: New option --witness-c-macro.
11585         (witness_c_macro): New variable.
11586         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
11587         AM_CPPFLAGS define it as a C macro.
11588         (func_emit_tests_Makefile_am): Likewise.
11589         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
11590         read it from there.
11591         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
11592         m4_define, not AC_DEFUN.
11593         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
11594         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
11595         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
11596         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
11597         s|...|...|, to substitute the values of the GNULIB_* module indicator
11598         variables.
11599         * modules/dirent (Makefile.am): Likewise.
11600         * modules/fcntl-h (Makefile.am): Likewise.
11601         * modules/iconv-h (Makefile.am): Likewise.
11602         * modules/langinfo (Makefile.am): Likewise.
11603         * modules/locale (Makefile.am): Likewise.
11604         * modules/math (Makefile.am): Likewise.
11605         * modules/netdb (Makefile.am): Likewise.
11606         * modules/poll-h (Makefile.am): Likewise.
11607         * modules/pty (Makefile.am): Likewise.
11608         * modules/search (Makefile.am): Likewise.
11609         * modules/signal (Makefile.am): Likewise.
11610         * modules/spawn (Makefile.am): Likewise.
11611         * modules/stdio (Makefile.am): Likewise.
11612         * modules/stdlib (Makefile.am): Likewise.
11613         * modules/string (Makefile.am): Likewise.
11614         * modules/sys_ioctl (Makefile.am): Likewise.
11615         * modules/sys_select (Makefile.am): Likewise.
11616         * modules/sys_socket (Makefile.am): Likewise.
11617         * modules/sys_stat (Makefile.am): Likewise.
11618         * modules/sys_times (Makefile.am): Likewise.
11619         * modules/sys_utsname (Makefile.am): Likewise.
11620         * modules/sys_wait (Makefile.am): Likewise.
11621         * modules/termios (Makefile.am): Likewise.
11622         * modules/time (Makefile.am): Likewise.
11623         * modules/unistd (Makefile.am): Likewise.
11624         * modules/wchar (Makefile.am): Likewise.
11625
11626 2011-06-08  Eric Blake  <eblake@redhat.com>
11627
11628         strerror: simplify replacement
11629         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
11630         * modules/strerror (configure.ac): No prereqs needed here...
11631         * modules/strerror-override (configure.ac): ...but this needs it.
11632         (Files): Add file for needed prereq macro.
11633
11634 2011-06-08  Bruno Haible  <bruno@clisp.org>
11635
11636         strerror_r-posix: Tweaks.
11637         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
11638         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
11639         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
11640         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
11641         (gl_FUNC_STRERROR_R): ... to here.
11642         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
11643
11644 2011-06-07  Eric Blake  <eblake@redhat.com>
11645
11646         perror: document fixed bugs
11647         * doc/posix-functions/perror.texi (perror): Document recent
11648         patches.
11649
11650 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
11651
11652         stat-time: get_stat_birthtime failure is better-defined
11653         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
11654         return a timestamp whose tv_sec and tv_nsec values are both -1.
11655         Previously, the spec said only that the tv_nsec value was negative.
11656         This upward-compatible change simplifies GNU tar a bit.
11657
11658 2011-06-07  Eric Blake  <eblake@redhat.com>
11659
11660         strerror_r-posix: work around cygwin 1.7.9
11661         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
11662         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
11663         bug without replacing strerror_r.
11664         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
11665         strerror_r is buggy, but without requiring strerror_r compilation.
11666         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
11667
11668         test-perror: relax test to ignore cygwin bug
11669         * tests/test-perror2.c (main): Relax test on requiring detection
11670         of stream errors, and use unbuffered stream.
11671         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
11672         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
11673         * doc/posix-functions/fputc.texi (fputc): Likewise.
11674         * doc/posix-functions/fputs.texi (fputs): Likewise.
11675         * doc/posix-functions/fputws.texi (fputws): Likewise.
11676         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
11677         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
11678         * doc/posix-functions/getopt.texi (getopt): Likewise.
11679         * doc/posix-functions/perror.texi (perror): Likewise.
11680         * doc/posix-functions/printf.texi (printf): Likewise.
11681         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
11682         * doc/posix-functions/psignal.texi (psignal): Likewise.
11683         * doc/posix-functions/putc.texi (putc): Likewise.
11684         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
11685         Likewise.
11686         * doc/posix-functions/putchar.texi (putchar): Likewise.
11687         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
11688         Likewise.
11689         * doc/posix-functions/puts.texi (puts): Likewise.
11690         * doc/posix-functions/putwc.texi (putwc): Likewise.
11691         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
11692         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
11693         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
11694         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
11695         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
11696         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
11697         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
11698         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
11699
11700 2011-05-22  Bruno Haible  <bruno@clisp.org>
11701
11702         strerror: Move AC_LIBOBJ invocations to module description.
11703         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
11704         gl_PREREQ_STRERROR invocations from here...
11705         * modules/strerror (configure.ac): ... to here.
11706
11707 2011-05-21  Bruno Haible  <bruno@clisp.org>
11708
11709         perror: Use common idiom.
11710         * modules/perror (configure.ac): Reorder statements.
11711
11712 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
11713
11714         tests: fix usage message in 'mktempd_'
11715         * tests/init.sh (mktempd_): In the usage message, use literal
11716         'mktempd_', not '$ME' (which is even undefined), as the name of
11717         the subroutine.
11718
11719 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
11720
11721         tests init: new function 'fatal_', for hard errors
11722         Before this patch, the only way offered by tests/init.sh to
11723         properly signal a hard error was the `framework_failure_'
11724         function.  But the error message issued by that function,
11725         as its name would suggest, refers to a set-up failure in the
11726         testsuite, while hard errors can obviously also be due to
11727         other reasons.  The best way to fix this inconsistency is to
11728         introduce a new function with a more general error message.
11729         * tests/init.sh (fatal_): New function.
11730
11731 2011-06-06  Eric Blake  <eblake@redhat.com>
11732
11733         canonicalize-lgpl: use common idiom
11734         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
11735         over newer POSIX -Rf.
11736         Reported by Bruno Haible.
11737
11738         canonicalize-lgpl: work around AIX realpath bug
11739         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
11740         * doc/posix-functions/realpath.texi (realpath): Document it.
11741         Reported by Bruno Haible.
11742
11743         strerror: work around FreeBSD bug
11744         * lib/strerror.c (strerror): Special case 0.
11745         Reported by Bruno Haible.
11746
11747         strerror-override: avoid bloating errno module
11748         * modules/errno (Files, configure.ac): Move replacement strings...
11749         * modules/strerror-override: ...to new module.
11750         * modules/strerror (Depends-on): Add strerror-override.
11751         * modules/strerror_r-posix (Depends-on): Likewise.
11752         * MODULES.html.sh: Document new module.
11753         Reported by Bruno Haible.
11754
11755 2011-06-06  Bruno Haible  <bruno@clisp.org>
11756
11757         spawn-pipe tests: Rename program.
11758         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
11759         * tests/test-spawn-pipe-child.c: Update comment.
11760         * tests/test-spawn-pipe.sh: Update.
11761         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
11762
11763         spawn-pipe tests: Link the child program only against libc.
11764         * tests/test-spawn-pipe-child.c: New file, extracted from
11765         tests/test-spawn-pipe.c.
11766         (main): Expect only one argument.
11767         (is_open): New function, copied from tests/test-pipe.c.
11768         * tests/test-spawn-pipe.c: Don't include <errno.h>.
11769         (child_main): Remove function.
11770         (test_pipe): Pass only one argument to the child program.
11771         (main): Remove child process code. Expect the child program's name as
11772         first argument.
11773         * tests/test-spawn-pipe.sh: Pass the child program's name as first
11774         argument.
11775         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
11776         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
11777         test-spawn-pipe-child against no libraries.
11778
11779 2011-06-06  Bruno Haible  <bruno@clisp.org>
11780
11781         careadlinkat: Avoid mismatch between ssize_t and int.
11782         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
11783         * lib/careadlinkat.c (careadlinkatcwd): Define always.
11784
11785 2011-06-06  Jim Meyering  <meyering@redhat.com>
11786
11787         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
11788         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
11789         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
11790
11791 2011-06-05  Bruno Haible  <bruno@clisp.org>
11792
11793         ansi-c++-opt: Interoperability with libtool.
11794         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
11795         set the variable to "no", not to ":".
11796         * NEWS: Mention the change.
11797
11798 2011-06-05  Bruno Haible  <bruno@clisp.org>
11799
11800         acl: Fix test failure on AIX 7.
11801         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
11802         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
11803
11804 2011-06-05  Bruno Haible  <bruno@clisp.org>
11805
11806         pipe-filter-ii: Fix test failure on AIX and IRIX.
11807         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
11808         with EAGAIN, retry with a smaller buffer size.
11809
11810 2011-06-05  Bruno Haible  <bruno@clisp.org>
11811
11812         localename: Fix link dependencies.
11813         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
11814         * modules/localename-tests (Makefile.am): Link test-localename with
11815         $(LIBTHREAD).
11816
11817 2011-06-05  Bruno Haible  <bruno@clisp.org>
11818
11819         error: Avoid gcc warning.
11820         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
11821
11822 2011-06-05  Bruno Haible  <bruno@clisp.org>
11823
11824         unsetenv: Avoid gcc warning.
11825         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
11826
11827 2011-06-05  Bruno Haible  <bruno@clisp.org>
11828
11829         setenv: Avoid gcc warning.
11830         * lib/setenv.c (setenv): Provide declaration if system lacks it.
11831
11832 2011-06-05  Bruno Haible  <bruno@clisp.org>
11833
11834         sys_select: Ensure memset is declared also on AIX 7.
11835         * lib/sys_select.in.h: Include <string.h> also on AIX.
11836         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
11837         self-contained also on AIX 7.1.
11838
11839 2011-06-04  Jim Meyering  <meyering@redhat.com>
11840
11841         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
11842         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
11843         function name, "error".
11844         (_gl_translatable_diag_func_re): New configurable variable.
11845
11846 2011-06-04  Bruno Haible  <bruno@clisp.org>
11847
11848         getopt: Avoid gcc warning.
11849         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
11850
11851 2011-06-04  Bruno Haible  <bruno@clisp.org>
11852
11853         strerror_r: Fix comments.
11854         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
11855         commit.
11856
11857 2011-06-04  Bruno Haible  <bruno@clisp.org>
11858
11859         perror: Fix compilation error.
11860         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
11861         Undefine fprintf, not sprintf.
11862         * modules/perror (Depends-on): Remove intprops, verify.
11863
11864 2011-06-04  Bruno Haible  <bruno@clisp.org>
11865
11866         setlocale: Enable replacement on Cygwin 1.5.
11867         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
11868         Cygwin 1.5.x.
11869         * doc/posix-functions/setlocale.texi: Mention that the problem with the
11870         LC_CTYPE category also exists on Cygwin 1.5.x.
11871
11872 2011-06-04  Bruno Haible  <bruno@clisp.org>
11873
11874         strerror-override: Don't disable symbol renamings.
11875         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
11876         * lib/strerror-override.c: Include config.h.
11877         (strerror_override): Don't undefine.
11878
11879 2011-06-03  Bruno Haible  <bruno@clisp.org>
11880
11881         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
11882         * lib/localename.h: Update copyright header.
11883         * lib/localename.c: Likewise.
11884         * lib/relocatable.h: Likewise.
11885         * lib/relocatable.c: Likewise.
11886
11887 2011-06-02  Bruno Haible  <bruno@clisp.org>
11888
11889         doc: Fix a module name.
11890         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
11891
11892 2011-06-02  Bruno Haible  <bruno@clisp.org>
11893
11894         pipe2: Remove dependency on 'nonblocking' module.
11895         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
11896         O_NONBLOCK is defined by gnulib.
11897         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
11898         is zero.
11899         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
11900         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
11901         defined by gnulib.
11902         (get_nonblocking_flag): New function.
11903         (main): Test O_NONBLOCK flag only if it is nonzero.
11904         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
11905
11906 2011-06-03  Jim Meyering  <meyering@redhat.com>
11907
11908         maint: three new prohibit-header-without-use rules
11909         Prohibit use of cloexec.h, posixver.h, same.h without use.
11910         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
11911         (sc_prohibit_posixver_without_use): Likewise.
11912         (sc_prohibit_same_without_use): Likewise.
11913
11914 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
11915
11916         allocator: 'die' routine is now given requested size
11917         * lib/allocator.h (struct allocator.die): New size arg.
11918         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
11919         If the actual problem is an ssize_t limitation, not a size_t or
11920         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
11921
11922 2011-06-01  Eric Blake  <eblake@redhat.com>
11923
11924         strerror: drop strerror_r dependency
11925         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
11926         * lib/strerror-override.c (strerror_override): ...to new file.
11927         * lib/strerror-override.h: Add prototype.
11928         * lib/strerror-impl.h: Delete.
11929         * lib/strerror.c (strerror): New implementation.
11930         * modules/errno (Files): Add new files.
11931         (configure.ac): Compile new file as appropriate.
11932         * modules/strerror (Files): Drop unused file.
11933         (Depends-on): Drop strerror_r-posix.
11934         * MODULES.html.sh: Document strerror_r-posix.
11935         Requested by Sam Steingold.
11936
11937         perror: call strerror_r directly
11938         * modules/perror (Files): Drop strerror-impl.h.
11939         * lib/perror.c (perror): Use our own stack buffer, rather than
11940         calling a wrapper that uses static storage.
11941         * doc/posix-functions/perror.texi (perror): Document a limitation
11942         of our replacement.
11943
11944         strerror_r: fix includes for FreeBSD
11945         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
11946         since we use abort on some platforms.
11947         Reported by Matthias Bolte.
11948
11949 2011-05-31  Bruno Haible  <bruno@clisp.org>
11950
11951         Fix link errors in tests: openat-die uses gettext-h.
11952         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
11953         against $(LIBINTL).
11954         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
11955         against $(LIBINTL).
11956         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
11957         $(LIBINTL).
11958         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
11959         against $(LIBINTL).
11960         * modules/linkat-tests (Makefile.am): Link test-linkat against
11961         $(LIBINTL).
11962         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
11963         $(LIBINTL).
11964         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
11965         against $(LIBINTL).
11966         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
11967         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
11968         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
11969         $(LIBINTL).
11970         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
11971         $(LIBINTL).
11972         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
11973         $(LIBINTL).
11974         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11975
11976 2011-05-31  Bruno Haible  <bruno@clisp.org>
11977
11978         Fix link errors in tests: wait-process uses gettext-h.
11979         * modules/nonblocking-pipe-tests (Makefile.am): Set
11980         test_nonblocking_pipe_main_LDADD.
11981         * modules/nonblocking-socket-tests (Makefile.am): Link
11982         test-nonblocking-socket-main against $(LIBINTL).
11983         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
11984
11985 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
11986
11987         assert-h: work around 'verify' incompatibility
11988         * lib/verify.h: Use @...@ directives, not ifdef.
11989         * modules/assert-h (assert.h): Implement the directives.
11990         (assert.h): Substitute the symbol-prefix more consistently.
11991
11992 2011-05-29  Jim Meyering  <meyering@redhat.com>
11993
11994         trim: remove three superfluous assignments
11995         * lib/trim.c (trim2): Remove three superfluous assignments
11996         and correct brace positioning.
11997
11998 2011-05-29  Bruno Haible  <bruno@clisp.org>
11999
12000         wctype-h: Avoid namespace pollution on Solaris 2.6.
12001         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
12002         identifiers.
12003         * doc/posix-headers/wctype.texi: Mention the problem.
12004         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
12005
12006 2011-05-28  Jim Meyering  <meyering@redhat.com>
12007
12008         parse-datetime.y: accommodate -Wstrict-overflow
12009         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
12010         placate -Wstrict-overflow.
12011
12012         trim: avoid a warning from -O2 -Wstrict-overflow
12013         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
12014
12015 2011-05-29  Bruno Haible  <bruno@clisp.org>
12016
12017         gnulib-tool: Fix bug in yesterday's commit.
12018         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
12019         twice.
12020
12021 2011-05-29  Bruno Haible  <bruno@clisp.org>
12022
12023         Allow multiple gnulib generated include files to be combined.
12024         * gnulib-tool (func_compute_include_guard_prefix): New function.
12025         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
12026         ${gl_include_guard_prefix} references.
12027         (func_import, func_create_testdir): Invoke
12028         func_compute_include_guard_prefix.
12029         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
12030         * lib/ctype.in.h: Likewise.
12031         * lib/dirent.in.h: Likewise.
12032         * lib/errno.in.h: Likewise.
12033         * lib/fcntl.in.h: Likewise.
12034         * lib/float.in.h: Likewise.
12035         * lib/getopt.in.h: Likewise.
12036         * lib/iconv.in.h: Likewise.
12037         * lib/langinfo.in.h: Likewise.
12038         * lib/locale.in.h: Likewise.
12039         * lib/math.in.h: Likewise.
12040         * lib/netdb.in.h: Likewise.
12041         * lib/netinet_in.in.h: Likewise.
12042         * lib/poll.in.h: Likewise.
12043         * lib/pthread.in.h: Likewise.
12044         * lib/pty.in.h: Likewise.
12045         * lib/sched.in.h: Likewise.
12046         * lib/se-selinux.in.h: Likewise.
12047         * lib/search.in.h: Likewise.
12048         * lib/signal.in.h: Likewise.
12049         * lib/spawn.in.h: Likewise.
12050         * lib/stdarg.in.h: Likewise.
12051         * lib/stddef.in.h: Likewise.
12052         * lib/stdint.in.h: Likewise.
12053         * lib/stdio.in.h: Likewise.
12054         * lib/stdlib.in.h: Likewise.
12055         * lib/string.in.h: Likewise.
12056         * lib/strings.in.h: Likewise.
12057         * lib/sys_file.in.h: Likewise.
12058         * lib/sys_ioctl.in.h: Likewise.
12059         * lib/sys_select.in.h: Likewise.
12060         * lib/sys_socket.in.h: Likewise.
12061         * lib/sys_stat.in.h: Likewise.
12062         * lib/sys_time.in.h: Likewise.
12063         * lib/sys_times.in.h: Likewise.
12064         * lib/sys_uio.in.h: Likewise.
12065         * lib/sys_utsname.in.h: Likewise.
12066         * lib/sys_wait.in.h: Likewise.
12067         * lib/sysexits.in.h: Likewise.
12068         * lib/termios.in.h: Likewise.
12069         * lib/time.in.h: Likewise.
12070         * lib/unistd.in.h: Likewise.
12071         * lib/wchar.in.h: Likewise.
12072         * lib/wctype.in.h: Likewise.
12073         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
12074         * modules/ctype (Makefile.am): Likewise.
12075         * modules/dirent (Makefile.am): Likewise.
12076         * modules/errno (Makefile.am): Likewise.
12077         * modules/fcntl-h (Makefile.am): Likewise.
12078         * modules/float (Makefile.am): Likewise.
12079         * modules/getopt-posix (Makefile.am): Likewise.
12080         * modules/iconv-h (Makefile.am): Likewise.
12081         * modules/langinfo (Makefile.am): Likewise.
12082         * modules/locale (Makefile.am): Likewise.
12083         * modules/math (Makefile.am): Likewise.
12084         * modules/netdb (Makefile.am): Likewise.
12085         * modules/netinet_in (Makefile.am): Likewise.
12086         * modules/poll-h (Makefile.am): Likewise.
12087         * modules/pthread (Makefile.am): Likewise.
12088         * modules/pty (Makefile.am): Likewise.
12089         * modules/sched (Makefile.am): Likewise.
12090         * modules/search (Makefile.am): Likewise.
12091         * modules/selinux-h (Makefile.am): Likewise.
12092         * modules/signal (Makefile.am): Likewise.
12093         * modules/spawn (Makefile.am): Likewise.
12094         * modules/stdarg (Makefile.am): Likewise.
12095         * modules/stddef (Makefile.am): Likewise.
12096         * modules/stdint (Makefile.am): Likewise.
12097         * modules/stdio (Makefile.am): Likewise.
12098         * modules/stdlib (Makefile.am): Likewise.
12099         * modules/string (Makefile.am): Likewise.
12100         * modules/strings (Makefile.am): Likewise.
12101         * modules/sys_file (Makefile.am): Likewise.
12102         * modules/sys_ioctl (Makefile.am): Likewise.
12103         * modules/sys_select (Makefile.am): Likewise.
12104         * modules/sys_socket (Makefile.am): Likewise.
12105         * modules/sys_stat (Makefile.am): Likewise.
12106         * modules/sys_time (Makefile.am): Likewise.
12107         * modules/sys_times (Makefile.am): Likewise.
12108         * modules/sys_uio (Makefile.am): Likewise.
12109         * modules/sys_utsname (Makefile.am): Likewise.
12110         * modules/sys_wait (Makefile.am): Likewise.
12111         * modules/sysexits (Makefile.am): Likewise.
12112         * modules/termios (Makefile.am): Likewise.
12113         * modules/time (Makefile.am): Likewise.
12114         * modules/unistd (Makefile.am): Likewise.
12115         * modules/wchar (Makefile.am): Likewise.
12116         * modules/wctype-h (Makefile.am): Likewise.
12117         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
12118
12119 2011-05-29  Bruno Haible  <bruno@clisp.org>
12120
12121         assert-h: Allow multiple gnulib generated replacements to coexist.
12122         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
12123
12124 2011-05-29  Bruno Haible  <bruno@clisp.org>
12125
12126         argp: Allow coexistence with strerror_r-posix module.
12127         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
12128         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
12129         by gnulib's <string.h> replacement), assume it has the POSIX signature,
12130         not the glibc signature.
12131
12132 2011-05-28  Bruno Haible  <bruno@clisp.org>
12133
12134         gnulib-tool: Alternative structure of testdirs, similar to --import.
12135         * gnulib-tool: New option --single-configure.
12136         (func_usage): Document it.
12137         (single_configure): New variable.
12138         (func_modules_transitive_closure_separately,
12139         func_modules_transitive_closure_separately,
12140         func_determine_use_libtests, func_modules_add_dummy_separately,
12141         func_modules_to_filelist_separately): New functions, extracted from
12142         func_import.
12143         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
12144         (func_import): Use the new functions.
12145         (func_create_testdir): Set final_modules. Handle $single_configure =
12146         true case.
12147
12148 2011-05-28  Bruno Haible  <bruno@clisp.org>
12149
12150         getloadavg: Remove an unreliable safety check.
12151         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
12152         getloadavg.c is in place.
12153         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
12154         Reported by Sam Steingold <sds@gnu.org>.
12155
12156 2011-05-28  Bruno Haible  <bruno@clisp.org>
12157
12158         doc: Cleanup yet another file produced by texinfo.tex.
12159         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
12160
12161 2011-05-28  Bruno Haible  <bruno@clisp.org>
12162
12163         Finish the conditional dependencies mechanism.
12164         * gnulib-tool: New option --no-conditional-dependencies.
12165         (func_usage): Document it. Don't mark --conditional-dependencies as
12166         experimental.
12167         (cond_dependencies): The possible values can now be true, false, empty.
12168         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
12169         (func_import): Store setting in gnulib-cache.m4 and read it from there.
12170         * doc/gnulib-tool.texi (Conditional dependencies): New section.
12171
12172 2011-05-28  Bruno Haible  <bruno@clisp.org>
12173
12174         doc: Use a recent texinfo.tex.
12175         * doc/Makefile (tex_opts): New variable.
12176         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
12177
12178 2011-05-28  Jim Meyering  <meyering@redhat.com>
12179
12180         intprops.h: adjust comment to match code change
12181         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
12182         only once, it *may* have side effects.  Also fix an unrelated typo.
12183         (_GL_INT_SIGNED): Likewise.
12184
12185 2011-05-26  Simon Josefsson  <simon@josefsson.org>
12186
12187         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
12188
12189 2011-05-26  Bruno Haible  <bruno@clisp.org>
12190
12191         mbsrchr: Avoid collision with system function on Interix.
12192         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
12193         Reported by Markus Duft <mduft@gentoo.org>.
12194
12195 2011-05-15  James Youngman  <jay@gnu.org>
12196
12197         getopt: for ambiguous options, enumerate the possibilities.
12198         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
12199         the ambiguous options when an ambiguous prefix is given. This was
12200         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
12201         glibc change was
12202         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
12203
12204 2011-05-25  Eric Blake  <eblake@redhat.com>
12205
12206         getcwd: work around mingw bug
12207         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
12208         * doc/posix-functions/getcwd.texi (getcwd): Document it.
12209         Reported by Matthias Bolte.
12210
12211 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
12212
12213         test-intprops: disable -Wtype-limits diagnostics
12214         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
12215         diagnostics.  Otherwise, the integer overflow macros generate many
12216         diagnostics.  Reported by Jim Meyering in
12217         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
12218
12219         intprops: shorten, to pacify gcc -Woverlength-strings
12220         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
12221         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
12222         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
12223         likely to run afoul of C compiler limits for string constant lengths.
12224         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
12225
12226 2011-05-24  Eric Blake  <eblake@redhat.com>
12227
12228         docs: document recently fixed glibc printf bug
12229         * doc/posix-functions/fprintf.texi (fprintf): Document it.
12230         * doc/posix-functions/printf.texi (printf): Likewise.
12231         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
12232         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
12233
12234         closein-tests: convert to init.sh
12235         * modules/closein-tests (Files): Add init.sh
12236         * tests/test-closein.sh Use it.
12237
12238         yesno-tests: convert to init.sh
12239         * modules/yesno-tests (Files): Add init.sh.
12240         * tests/test-yesno.sh: Use it.
12241
12242         atexit-tests: ensure reliable exit status
12243         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
12244         Reported by Bruno Haible.
12245
12246 2011-05-24  Bruno Haible  <bruno@clisp.org>
12247
12248         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
12249         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
12250         gl_PREREQ_STRERROR_R invocations from here...
12251         * modules/strerror_r-posix (configure.ac): ... to here.
12252
12253 2011-05-24  Eric Blake  <eblake@redhat.com>
12254
12255         strerror_r: fix missing header
12256         * lib/strerror_r.c: Avoid compiler warning about snprintf.
12257
12258         strerror_r: fix AIX test failures
12259         * lib/strerror_r.c (strerror_r): Convert silent truncation to
12260         ERANGE failure.
12261
12262         strerror_r: fix Solaris test failures
12263         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
12264         failures.
12265         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
12266
12267         strerror_r: enforce POSIX recommendations
12268         * lib/strerror_r.c (safe_copy): New helper method.
12269         (strerror_r): Guarantee a non-empty string.
12270         * tests/test-strerror_r.c (main): Enhance tests to incorporate
12271         recent POSIX rulings and to match our strerror guarantees.
12272         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
12273
12274 2011-05-24  Jim Meyering  <meyering@redhat.com>
12275
12276         test-perror2.c: avoid warning about unused variable
12277         * tests/test-perror2.c (main): Remove declaration of unused "fp".
12278
12279 2011-05-24  Eric Blake  <eblake@redhat.com>
12280
12281         perror: avoid spurious test failure on HP-UX
12282         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
12283
12284         tests: fix logic bug in init.sh
12285         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
12286         shell.
12287
12288 2011-05-24  Jim Meyering  <meyering@redhat.com>
12289
12290         utimensat: do not reference an out-of-scope buffer
12291         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
12292         declared in an inner scope, yet "times" would be dereferenced outside
12293         the scope in which "ts" was valid.
12294         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
12295         of ts[2] "out/up", so that the use of aliased "times" (via
12296         "times = ts;") does not end up referencing an out-of-scope "ts"
12297
12298         opendir-safer.c: don't clobber errno; don't close negative FD
12299         * lib/opendir-safer.c (opendir_safer):
12300         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
12301         file descriptor, and more importantly, don't clobber the
12302         offending errno value with EINVAL.  Before, upon failure
12303         of dup_safer, we would pass the negative file descriptor to
12304         fdopendir, which would clobber errno.
12305
12306 2011-05-23  Bruno Haible  <bruno@clisp.org>
12307
12308         idcache: Fix module description.
12309         * modules/idcache (Include): Set to "idcache.h".
12310
12311 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
12312
12313         gnulib-tool: fix portability problem with MacOS sed
12314         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
12315         before the "}".  Problem reported by Leo in
12316         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
12317         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
12318         sed_extract_condition1, sed_extract_condition2.
12319
12320 2011-05-23  Bruno Haible  <bruno@clisp.org>
12321
12322         hash: Simplify autoconf macro.
12323         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
12324
12325 2011-05-23  Bruno Haible  <bruno@clisp.org>
12326
12327         getugroups: Fix module description.
12328         * modules/getugroups (Include): Set to "getugroups.h".
12329
12330 2011-05-23  Bruno Haible  <bruno@clisp.org>
12331
12332         linkat: Simplify autoconf macro.
12333         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
12334
12335 2011-05-23  Bruno Haible  <bruno@clisp.org>
12336             Eric Blake  <eblake@redhat.com>
12337
12338         linkat, renameat: Update dependencies.
12339         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
12340         * modules/linkat (Depends-on): Likewise. Remove also readlink,
12341         symlinkat.
12342
12343 2011-05-23  Jim Meyering  <meyering@redhat.com>
12344
12345         maint.mk: more tight_scope improvements
12346         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
12347         (_gl_TS_headers): Define only in if-0'd block.
12348         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
12349         sometimes we must *not* use it.  Adjust uses accordingly.
12350         (sc_tight_scope): Use much simpler grep-based test to determine
12351         whether we skip this rule.
12352
12353         maint.mk: generalize/improve the tight-scope rule
12354         * top/maint.mk: Emit a warning when the test is skipped.
12355         (_gl_TS_dir): Add $(srcdir)/ prefix.
12356         (_gl_TS_function_match): Simplify, rather than trying
12357         to enumerate common types.  Otherwise, it would fail to match an
12358         "extern unsigned char const *" declaration in idutils.
12359         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
12360         a way to support use of that type of macro.
12361         (_gl_TS_var_match): Simplify regexp.
12362         (_gl_TS_obj_files): New configurable variable.
12363         (_gl_TS_headers): Likewise.
12364
12365 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
12366
12367         verify: fix bug when gnulib <assert.h> is also included
12368         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
12369         is defined, not if _GL_STATIC_ASSERT_H is not defined.
12370         Perhaps there's a better way, but this fixes the immediate problem.
12371         Problem reported by Bruno Haible in
12372         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
12373
12374 2011-05-22  Bruno Haible  <bruno@clisp.org>
12375
12376         xgetcwd: Simplify autoconf macro.
12377         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
12378
12379 2011-05-22  Bruno Haible  <bruno@clisp.org>
12380
12381         New module 'mktime-internal'.
12382         * modules/mktime-internal: New file.
12383         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
12384         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
12385         mktime_internal as a C macro if libc has __mktime_internal.
12386         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
12387         conditions.
12388         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
12389
12390 2011-05-22  Bruno Haible  <bruno@clisp.org>
12391
12392         timegm: Correct mktime replacement statements.
12393         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
12394         defining mktime as a C macro. This completes a 2009-07-28 commit.
12395
12396 2011-05-22  Bruno Haible  <bruno@clisp.org>
12397
12398         timegm: Simplify autoconf macro.
12399         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
12400
12401 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
12402
12403         clock-time: change to LGPLv2+.
12404         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
12405         BSD-like but we have no mark for that; this is good enough for now.
12406
12407 2011-05-21  Bruno Haible  <bruno@clisp.org>
12408
12409         strerror_r: Fix comments.
12410         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
12411
12412 2011-05-21  Bruno Haible  <bruno@clisp.org>
12413
12414         relocatable-prog-wrapper: Fix possible link error.
12415         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
12416         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
12417         (gl_FUNC_SETENV): ... to here.
12418         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
12419         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
12420
12421 2011-05-21  Bruno Haible  <bruno@clisp.org>
12422
12423         relocatable-prog-wrapper: Assume strerror() exists.
12424         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
12425         m4/strerror.m4.
12426         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
12427         * lib/relocwrapper.c: Remove mention of strerror module.
12428         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
12429         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
12430         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
12431         C macro.
12432
12433 2011-05-21  Bruno Haible  <bruno@clisp.org>
12434
12435         select: Simplify replacement idiom.
12436         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
12437         Win32 platforms.
12438         * lib/sys_select.in.h (select): Simplify accordingly.
12439         * modules/select (Depends-on): Likewise.
12440
12441 2011-05-21  Bruno Haible  <bruno@clisp.org>
12442
12443         mkdir-p: Simplify autoconf macro.
12444         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
12445         gl_FUNC_LCHOWN.
12446
12447 2011-05-21  Eric Blake  <eblake@redhat.com>
12448
12449         strerror_r: avoid clobbering strerror on cygwin
12450         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
12451         fall back instead to sys_errlist.
12452         * modules/strerror (configure.ac): Add witness.
12453         * tests/test-strerror_r.c (main): Enhance test.
12454         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12455         * tests/test-perror2.c (main): Free memory before exit.
12456
12457 2011-05-21  Bruno Haible  <bruno@clisp.org>
12458
12459         mkdtemp: Use gnulib naming conventions.
12460         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
12461         * modules/mkdtemp (configure.ac): Update.
12462
12463 2011-05-20  Eric Blake  <eblake@redhat.com>
12464
12465         strerror_r: avoid corrupting errno on Solaris
12466         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
12467         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
12468
12469         strerror_r: avoid compiler warning
12470         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
12471
12472         strerror_r: simplify AIX code
12473         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
12474
12475         test-perror: avoid spurious failure on FreeBSD
12476         * modules/perror-tests (Depends-on): Add strerror, now that
12477         strerror_r no longer pulls it in.
12478
12479 2011-05-20  Bruno Haible  <bruno@clisp.org>
12480
12481         strerror_r-posix: Remove unused dependencies.
12482         * modules/strerror_r-posix (Depends-on): Remove strerror.
12483         Reported by Eric Blake.
12484
12485 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
12486
12487         intprops: remove assumption about A|B representation
12488         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
12489         is a valid integer if both A and B are.  Although this is true for
12490         all known practical hosts, the C standard doesn't guarantee it,
12491         and the code need not assume it.  Also, this change may work around
12492         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
12493         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
12494
12495 2011-05-20  Eric Blake  <eblake@redhat.com>
12496
12497         perror: work around FreeBSD bug
12498         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
12499         is broken.  Move AC_LIBOBJ...
12500         * modules/perror (configure.ac): Here.
12501         * doc/posix-functions/perror.texi (perror): Document this.
12502         * tests/test-perror2.c (main): Enhance test.
12503
12504         test-perror: check for strerror interactions
12505         * tests/macros.h (STREQ): Add macro.
12506         * modules/perror-tests (Files): Add second test.
12507         * tests/test-perror2.c (main): New file.
12508         * doc/posix-functions/perror.texi (perror): Document glibc bug.
12509
12510         test-perror: rewrite to use init script
12511         * modules/perror-tests (Files): Add init.sh.
12512         * tests/test-perror.sh: Use temporary directory.
12513
12514 2011-05-20  Jim Meyering  <meyering@redhat.com>
12515
12516         maint: replace misused "a" with "an"
12517         * doc/intprops.texi: "a integer"
12518         * doc/regex.texi: "a explanation"
12519         * lib/alignof.h: "a object"
12520         * lib/argmatch.h: "a explanation"
12521         * lib/argp-help.c: "a option" and "a OPTION_DOC"
12522         * lib/stdint.in.h: "a integer"
12523         * lib/userspec.c: "a owner"
12524         * doc/gnulib.texi: Fix "a idea", and reword.
12525
12526 2011-05-19  Jim Meyering  <meyering@redhat.com>
12527
12528         maint: correct misuse of "a" and "an"
12529         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
12530         * lib/argp-help.c: "an docum...": s/an/a/
12531         * lib/argp-parse.c: "An vector": s/An/A/
12532         * lib/execute.c: "an native": s/an/a/
12533         * lib/spawn-pipe.c: Likewise.
12534         * lib/gc.h: "an Gc_rc": s/an/a/
12535         * lib/unigbrk.in.h: "an grapheme": s/an/a/
12536         * lib/fts.c: "an stat.st_dev": s/an/a/
12537
12538 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12539
12540         intprops-tests: work around HP-UX 11.23 cc bug with constants
12541         * tests/test-intprops.c (VERIFY): New macro.
12542         (main): Use it, instead of verify, to work around the compiler bug; see
12543         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12544
12545         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
12546         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
12547         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
12548         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
12549         (_GL_REMAINDER_OVERFLOW): Use it.
12550
12551         intprops-tests: revert unsigned part of previous change
12552         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
12553         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
12554         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
12555         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
12556
12557 2011-05-19  Bruno Haible  <bruno@clisp.org>
12558
12559         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
12560         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
12561         strerror_r() returned without filling the buffer.
12562         Reported by Eric Blake.
12563
12564 2011-05-19  Eric Blake  <eblake@redhat.com>
12565
12566         strerror_r: guarantee unchanged errno
12567         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
12568         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
12569         failure.
12570         * tests/test-strerror_r.c (main): Enhance test.
12571
12572 2011-05-19  Bruno Haible  <bruno@clisp.org>
12573
12574         strerror_r: Reorder #if blocks.
12575         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
12576         for consistency with the previous commit.
12577
12578 2011-05-19  Bruno Haible  <bruno@clisp.org>
12579
12580         perror: Avoid clobbering the strerror buffer when possible.
12581         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
12582         * lib/strerror.c: Include it.
12583         * modules/strerror (Files): Add lib/strerror-impl.h.
12584         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
12585         (my_strerror): New function, defined through lib/strerror-impl.h.
12586         (perror): Use it instead of strerror.
12587         * modules/perror (Files): Add lib/strerror-impl.h.
12588         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
12589
12590 2011-05-19  Eric Blake  <eblake@redhat.com>
12591
12592         strerror_r: fix on newer cygwin
12593         * lib/strerror_r.c (strerror_r): Cygwin now has
12594         __xpg_strerror_r, use it.
12595
12596 2011-05-19  Bruno Haible  <bruno@clisp.org>
12597
12598         strerror_r: Avoid clobbering the strerror buffer when possible.
12599         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
12600         (sys_nerr, sys_errlist): New declarations.
12601         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
12602         HP-UX, native Win32, IRIX, and 32-bit Solaris.
12603         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
12604
12605 2011-05-19  Bruno Haible  <bruno@clisp.org>
12606
12607         strerror_r: Fix test failure on mingw.
12608         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
12609         EXTEND_STRERROR_R.
12610         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
12611         macros from errno.in.h instead.
12612
12613 2011-05-19  Eric Blake  <eblake@redhat.com>
12614
12615         strerror: relax test for Solaris
12616         * tests/test-strerror.c (main): Permit Solaris behavior.
12617         * tests/test-strerror_r.c (main): Likewise.
12618
12619         strerror: enforce POSIX ruling on strerror(0)
12620         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
12621         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
12622         * lib/strerror_r.c (rpl_strerror_r): Work around it.
12623         * doc/posix-functions/strerror.texi (strerror): Document it.
12624         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
12625         * tests/test-strerror.c (main): Strengthen test.
12626         * tests/test-strerror_r.c (main): Likewise.
12627
12628 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12629
12630         intprop-tests: port to older and more-pedantic compilers
12631         * modules/intprops-tests (Files): Add tests/macros.h.
12632         * tests/test-intprops.c: Include macros.h.
12633         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
12634         it's no longer documented to expand to an integer constant expression.
12635         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
12636         argument is floating point, as it's no longer documented to expand
12637         to an integer constant expression in that case.
12638         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
12639         compiler bugs reported by Bruno Haible.  See
12640         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12641         (U0, U1): New constants, to work around the same bugs.  Also,
12642         in tests, use e.g., "(unsigned int) 39" rather than "39u".
12643
12644         intprops: work around C compiler bugs
12645         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
12646         bug in Sun C 5.11 2010/08/13 and other compilers; see
12647         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
12648
12649         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
12650         * doc/intprops.texi (Integer Type Determination): Fix
12651         documentation for TYPE_IS_INTEGER: it returns an constant
12652         expression, not an integer constant expression.  Fix doc for
12653         TYPE_SIGNED: it returns an integer constant expression only if its
12654         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
12655         hardly worth documented that way....)
12656
12657 2011-05-18  Bruno Haible  <bruno@clisp.org>
12658
12659         strerror_r: Avoid clobbering the strerror buffer when possible.
12660         * lib/strerror_r.c (strerror_r): Merge the three implementations.
12661         Handle gnulib defined errno values here. When strerror() returns NULL
12662         or an empty string, return EINVAL.
12663         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
12664         gnulib defined errno values here.
12665         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
12666
12667 2011-05-18  Eric Blake  <eblake@redhat.com>
12668
12669         fnmatch: avoid compiler warning
12670         * lib/fnmatch_loop.c (FCT): Use correct type.
12671         Reported by Matthias Bolte.
12672
12673 2011-05-13  Jim Meyering  <meyering@redhat.com>
12674
12675         maint.mk: three new prohibit_<HDR>_without_use rules
12676         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
12677         (sc_prohibit_stdio-safer_without_use): Likewise.
12678         (sc_prohibit_xfreopen_without_use): Likewise.
12679
12680 2011-05-17  Jim Meyering  <meyering@redhat.com>
12681
12682         announce-gen: fail if the NEWS delta is empty
12683         If there's nothing noteworthy in NEWS, then either you forgot
12684         or you shouldn't be releasing.
12685         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
12686
12687 2011-05-17  Pádraig Brady <P@draigBrady.com>
12688
12689         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
12690         reserved symbols starting with double underscore from the check.
12691
12692 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
12693
12694         intprops: add doc
12695         * doc/intprops.texi: New file, documenting intprops.
12696         * doc/gnulib.texi (Particular Modules): Include it.
12697
12698         verify: add doc to gnulib manual and fix example
12699         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
12700         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
12701         (Compile-time Assertions): Fix example so it can't overflow.
12702
12703 2011-05-17  Jim Meyering  <meyering@redhat.com>
12704
12705         warnings.m4: don't usurp save_CPPFLAGS variable name
12706         * m4/warnings.m4: Prefix local temporary variable name with gl_.
12707
12708         doc: fix typo
12709         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
12710
12711 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12712             Bruno Haible  <bruno@clisp.org>
12713
12714         doc: Tweak recent change.
12715         * README (Portability guidelines): Tweak new text.
12716         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
12717         Interix 6.1.
12718
12719 2011-05-16  Eric Blake  <eblake@redhat.com>
12720
12721         inttypes: avoid autoconf warning
12722         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
12723         * m4/stdint.m4 (gl_STDINT_H): Likewise.
12724
12725 2011-05-16  Sam Steingold <sds@gnu.org>
12726         and Eric Blake  <eblake@redhat.com>
12727
12728         vc-list-files: accept multiple directory operands
12729         * build-aux/vc-list-files: Iterate over all remaining operands.
12730
12731 2011-05-16  Bruno Haible  <bruno@clisp.org>
12732
12733         Fix confusion regarding deprecated modules.
12734         * modules/calloc (Status, Notice): Mark module as deprecated, not
12735         obsolete.
12736         * modules/fnmatch-posix (Status, Notice): Likewise.
12737         * modules/getdate (Status, Notice): Likewise.
12738         * modules/getopt (Status, Notice): Likewise.
12739         * modules/malloc (Status, Notice): Likewise.
12740         * modules/pipe (Status, Notice): Likewise.
12741         * modules/realloc (Status, Notice): Likewise.
12742         * modules/rename-dest-slash (Status, Notice): Likewise.
12743         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
12744         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
12745         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
12746         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
12747         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
12748
12749 2011-05-16  Bruno Haible  <bruno@clisp.org>
12750
12751         doc: List the target platforms.
12752         * doc/gnulib-intro.texi (Target Platforms): New section.
12753         * doc/gnulib.texi (Introduction): Update menu.
12754         * README (Portability guidelines): Refer to the new section. Update
12755         statement about oldest supported environment. Remove rationale why
12756         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
12757         unportable C89 function.
12758         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
12759         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
12760
12761 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
12762
12763         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
12764
12765 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
12766
12767         intprops-tests: new module
12768         * modules/intprops-tests, tests/test-intprops.c: New files.
12769
12770         intprops: add safe, portable integer overflow checking
12771         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
12772         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
12773         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
12774         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
12775         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
12776         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
12777         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
12778         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
12779         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
12780         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
12781         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
12782
12783 2011-05-12  James Youngman  <jay@gnu.org>
12784
12785         Add a test for glibc's Bugzilla bug #12378.
12786         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
12787         doesn't allow the literal matching of a lone "[" (which is
12788         required by POSIX).
12789         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
12790
12791 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
12792
12793         Sync glibc change fixing Bugzilla bug #12378.
12794         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
12795         beginning and fall back to matching as normal character if the
12796         string ends before the matching ']' is found.  This is what POSIX
12797         requires.
12798
12799 2011-05-13  Eric Blake  <eblake@redhat.com>
12800
12801         getcwd-lgpl: relax test for FreeBSD
12802         * doc/posix-functions/getcwd.texi (getcwd): Document portability
12803         issue.
12804         * tests/test-getcwd-lgpl.c (main): Relax test.
12805         Reported by Matthias Bolte.
12806
12807 2011-05-11  Eric Blake  <eblake@redhat.com>
12808
12809         test-fflush: silence compiler warning
12810         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
12811
12812 2011-05-11  Bruno Haible  <bruno@clisp.org>
12813
12814         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
12815         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
12816         * modules/canonicalize (Depends-on): Add 'nocrash'.
12817         * modules/canonicalize-lgpl (Depends-on): Likewise.
12818         * doc/posix-functions/realpath.texi: Update platforms list.
12819         Reported by Ryan Schmidt <ryandesign@macports.org>.
12820
12821 2011-05-11  Bruno Haible  <bruno@clisp.org>
12822
12823         group-member: Declare function in <unistd.h>.
12824         * lib/unistd.in.h (group_member): New declaration.
12825         * lib/group-member.h: Remove file.
12826         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
12827         * tests/test-unistd-c++.cc: Check signature of group_member.
12828         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
12829         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
12830         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
12831         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
12832         HAVE_GROUP_MEMBER.
12833         * modules/group-member (Files): Remove lib/group-member.h.
12834         (Depends-on): Add unistd. Specify conditions.
12835         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
12836         (Include): Change to <unistd.h>.
12837         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
12838         HAVE_GROUP_MEMBER.
12839         * NEWS: Mention the change.
12840         * lib/euidaccess.c: Don't include group-member.h.
12841
12842 2011-05-11  Bruno Haible  <bruno@clisp.org>
12843
12844         group-member: Document module.
12845         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
12846         module.
12847
12848 2011-05-11  Bruno Haible  <bruno@clisp.org>
12849
12850         fclose: Fix mistake earlier today.
12851         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
12852
12853 2011-05-11  Eric Blake  <eblake@redhat.com>
12854
12855         fclose: preserve fflush errors
12856         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
12857         Reported by Jim Meyering.
12858
12859         bootstrap: support a prereq of 'rpcgen -' on RHEL5
12860         * build-aux/bootstrap (check_versions): When no specific version
12861         is required, merely check that the app produces an exit status
12862         that indicates its existence.
12863
12864         maint.mk: drop redundant check
12865         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
12866         the same but better.
12867
12868 2011-05-11  Bruno Haible  <bruno@clisp.org>
12869
12870         fclose: Fix possible link error.
12871         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
12872         unregister_shadow_fd. Improve comments.
12873         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
12874         Eric Blake.
12875
12876 2011-05-11  Jim Meyering  <meyering@redhat.com>
12877
12878         maint.mk: improve "can not" detection and generalize rule name
12879         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
12880         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
12881         Use the same technique as in sc_prohibit_doubled_word, so that
12882         we recognize "can not" also when the words are separated by a newline.
12883         Suggested by Eric Blake.
12884         (perl_filename_lineno_text_): Define.  Factored out of...
12885         (prohibit_doubled_word_): ...here.  Use the new definition.
12886         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
12887         (prohibit_undesirable_word_seq_RE_): New overridable variable.
12888         (ignore_undesirable_word_sequence_RE_): New overridable variable.
12889
12890 2011-05-10  Eric Blake  <eblake@redhat.com>
12891
12892         fclose: avoid double close race when possible
12893         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
12894         all but WINDOWS_SOCKETS.
12895
12896 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
12897
12898         openat: correct new comment
12899         * lib/openat-proc.c (openat_proc_name): Correct the comment.
12900
12901 2011-05-10  Jim Meyering  <meyering@redhat.com>
12902
12903         openat: add comments
12904         * lib/openat-proc.c (openat_proc_name): Add comments,
12905         mostly from Eric Blake.
12906
12907 2011-05-09  Eric Blake  <eblake@redhat.com>
12908
12909         openat: reduce syscalls in first probe of /proc
12910         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
12911         be a directory.  Simplify the probe for .. bugs.
12912         * modules/openat (Depends-on): Drop same-inode.
12913         Reported by Bastien ROUCARIES.
12914
12915 2011-05-09  Jim Meyering  <meyering@redhat.com>
12916
12917         maint.mk: change semantics/name of tight_scope variables
12918         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
12919         Rename variables to align with semantics that make them more useful.
12920
12921         maint.mk: tweak new rule's name not to impinge
12922         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
12923         (sc_tight_scope): Use new rule name rather than $@-0.
12924
12925         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
12926         * top/maint.mk (sc_tight_scope): New rule.
12927         (sc_tight_scope-0): New rule, ifdef'd out.
12928         (_gl_TS_dir): Default.
12929         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
12930         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
12931
12932 2011-05-09  Simon Josefsson  <simon@josefsson.org>
12933
12934         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
12935         Haible <bruno@clisp.org>.
12936
12937 2011-05-08  Bruno Haible  <bruno@clisp.org>
12938
12939         Comments.
12940         * m4/isnanf.m4: Add comment.
12941         * m4/isnanl.m4: Likewise.
12942
12943 2011-05-08  Bruno Haible  <bruno@clisp.org>
12944
12945         glob: Remove obsolete macro.
12946         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
12947
12948 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
12949
12950         intprops: Sun C 5.11 supports __typeof__
12951         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
12952         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
12953         which is new.
12954         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
12955
12956         intprops: switch to usual gnulib indenting and naming
12957         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
12958         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
12959
12960         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
12961
12962 2011-05-08  Jim Meyering  <meyering@redhat.com>
12963
12964         maint.mk: suppress "Entering/Leaving directory" diag in announcement
12965         * top/maint.mk (release-prep): Use make's --no-print-directory
12966         option when generating the announcement.  This eliminates the
12967         pesky "make[2]: Entering/Leaving directory" diagnostics in the
12968         generated announcement template.
12969
12970 2011-05-08  Bruno Haible  <bruno@clisp.org>
12971
12972         tzset: Fix gettimeofday wrapper on Solaris 2.6.
12973         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
12974         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
12975
12976 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
12977
12978         ignore-value, verify: Omit include files from lib_SOURCES.
12979         * modules/ignore-value, modules/verify (Makefile.am):
12980         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
12981         that leads Automake to duplicate use of am__objects_... variables
12982         in Makefile.in.  See
12983         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
12984
12985 2011-05-07  Bruno Haible  <bruno@clisp.org>
12986
12987         fclose: Simplify autoconf macro.
12988         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
12989         defined.
12990
12991 2011-05-07  Bruno Haible  <bruno@clisp.org>
12992
12993         canonicalize-lgpl: Fix autoconf macro ordering bug.
12994         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
12995         gl_STDLIB_H_DEFAULTS.
12996
12997 2011-05-06  Eric Blake  <eblake@redhat.com>
12998
12999         maintainer-makefile: make sc_po_check easier to tune
13000         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
13001         to probe for strings, such as an alternate location for gnulib.
13002
13003         fclose: guarantee behavior on seekable stdin
13004         * modules/fclose (Depends-on): Add fflush.
13005         * doc/posix-functions/fclose.texi (fclose): Document this.
13006         * tests/test-fclose.c (main): Make test for this unconditional.
13007
13008 2011-05-06  Bruno Haible  <bruno@clisp.org>
13009
13010         fflush, fpurge: Relicense under LGPLv2+.
13011         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
13012         * modules/fpurge (License): Likewise.
13013         With permission from Eric Blake and Jim Meyering.
13014         Suggested by Eric Blake.
13015
13016 2011-05-06  Karl Berry  <karl@gnu.org>
13017
13018         * MODULES.html.sh (func_all_modules): remove exit.
13019
13020 2011-05-06  Jim Meyering  <meyering@redhat.com>
13021
13022         maint.mk: use info-gnu@ as the default only for a stable release
13023         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
13024         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
13025         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
13026         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
13027
13028 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
13029
13030         assert-h: new module, which supports C1X-style static_assert
13031         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
13032         * lib/verify.h: Revamp so that this can be copied into assert.h,
13033         while retaining the ability to use it standalone as before.
13034         Rename private identifiers so as not to encroach on the
13035         standard C namespace, since this is now used by assert.h.
13036         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
13037         the old verify_true.
13038         (_GL_VERIFY_TRUE): New macro, with much of the contents of
13039         the old verify_true.  Use _GL_VERIFY_TYPE.
13040         (_GL_VERIFY): New macro, with much of the contents of the old verify.
13041         (static_assert): New macro, if _GL_STATIC_ASSERT_H
13042         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
13043         defined when this file is copied into the replacement assert.h.
13044         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
13045         and _Static_assert is not built in.
13046         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
13047         defined, and use the new macros mentioned above.
13048         * doc/posix-headers/assert.texi: Document this.
13049
13050 2011-05-05  Bruno Haible  <bruno@clisp.org>
13051
13052         fclose, fflush: Respect rules for use of AC_LIBOBJ.
13053         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
13054         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
13055         gl_REPLACE_FCLOSE here.
13056         * modules/fflush (Depends-on): Remove fclose.
13057         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
13058         combination with module 'fclose'.
13059
13060 2011-05-05  Bruno Haible  <bruno@clisp.org>
13061
13062         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
13063         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
13064         gl_FUNC_FFLUSH.
13065         (gl_FUNC_FFLUSH): Use it.
13066         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
13067         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
13068         gl_REPLACE_FSEEKO here.
13069
13070 2011-05-05  Bruno Haible  <bruno@clisp.org>
13071
13072         tzset: Relicense under LGPL.
13073         * modules/tzset (License): Change to LGPL.
13074         No agreement needed; it's a no-op.
13075
13076         strtoimax, strtoumax: Relicense under LGPL.
13077         * modules/strtoimax (License): Change to LGPL.
13078         * modules/strtoumax (License): Likewise.
13079         With permission from Jim Meyering, Paul Eggert:
13080         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
13081         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
13082
13083         getgroups: Relicense under LGPL.
13084         * modules/getgroups (License): Change to LGPL.
13085         With permission from Jim Meyering, Paul Eggert, Eric Blake:
13086         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
13087         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
13088         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13089
13090         nanosleep: Relicense under LGPL.
13091         * modules/nanosleep (License): Change to LGPL.
13092         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
13093         Haible:
13094         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
13095         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
13096         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13097         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
13098
13099         futimens: Relicense under LGPL.
13100         * modules/futimens (License): Change to LGPL.
13101         With permission from Eric Blake:
13102         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13103
13104         fflush: Relicense under LGPL.
13105         * modules/fflush (License): Change to LGPL.
13106         With permission from Eric Blake, Bruno Haible, Jim Meyering:
13107         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
13108         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
13109         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
13110
13111         tmpfile: Relicense under LGPL.
13112         * modules/tmpfile (License): Change to LGPL.
13113         With permission from Ben Pfaff:
13114         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
13115
13116         isfinite: Relicense under LGPL.
13117         * modules/isfinite (License): Change to LGPL.
13118         With permission from Ben Pfaff, Bruno Haible:
13119         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
13120         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
13121
13122         acosl..tanl: Relicense under LGPL.
13123         * modules/acosl (License): Change to LGPL.
13124         * modules/asinl (License): Likewise.
13125         * modules/atanl (License): Likewise.
13126         * modules/cosl (License): Likewise.
13127         * modules/expl (License): Likewise.
13128         * modules/logl (License): Likewise.
13129         * modules/sinl (License): Likewise.
13130         * modules/sqrtl (License): Likewise.
13131         * modules/tanl (License): Likewise.
13132         Source code originally from glibc and Paolo Bonzini. Agreements:
13133         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
13134         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
13135
13136 2011-05-05  Bruno Haible  <bruno@clisp.org>
13137
13138         signal: Define sighandler_t.
13139         * lib/signal.in.h (sighandler_t): New type.
13140         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
13141         whether sighandler_t is defined.
13142         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
13143         * modules/signal (Depends-on): Add extensions.
13144         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
13145         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
13146         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
13147
13148 2011-05-05  Eric Blake  <eblake@redhat.com>
13149
13150         maint: remove useless REPLACE_*_H macros
13151         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
13152         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
13153         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
13154         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
13155         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
13156         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
13157         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
13158         * m4/btowc.m4: Update callers.
13159         * m4/dirfd.m4: Likewise.
13160         * m4/duplocale.m4: Likewise.
13161         * m4/fchdir.m4: Likewise.
13162         * m4/fdopendir.m4: Likewise.
13163         * m4/inet_ntop.m4: Likewise.
13164         * m4/inet_pton.m4: Likewise.
13165         * m4/ioctl.m4: Likewise.
13166         * m4/mbrlen.m4: Likewise.
13167         * m4/mbrtowc.m4: Likewise.
13168         * m4/mbsinit.m4: Likewise.
13169         * m4/mbsnrtowcs.m4: Likewise.
13170         * m4/mbsrtowcs.m4: Likewise.
13171         * m4/poll.m4: Likewise.
13172         * m4/setlocale.m4: Likewise.
13173         * m4/wcrtomb.m4: Likewise.
13174         * m4/wcsnrtombs.m4: Likewise.
13175         * m4/wcsrtombs.m4: Likewise.
13176         * m4/wctob.m4: Likewise.
13177         * m4/wcwidth.m4: Likewise.
13178         * modules/posix_spawn: Likewise.
13179         * modules/posix_spawn_file_actions_addclose: Likewise.
13180         * modules/posix_spawn_file_actions_adddup2: Likewise.
13181         * modules/posix_spawn_file_actions_addopen: Likewise.
13182         * modules/posix_spawn_file_actions_destroy: Likewise.
13183         * modules/posix_spawn_file_actions_init: Likewise.
13184         * modules/posix_spawnattr_destroy: Likewise.
13185         * modules/posix_spawnattr_getflags: Likewise.
13186         * modules/posix_spawnattr_getpgroup: Likewise.
13187         * modules/posix_spawnattr_getschedparam: Likewise.
13188         * modules/posix_spawnattr_getschedpolicy: Likewise.
13189         * modules/posix_spawnattr_getsigdefault: Likewise.
13190         * modules/posix_spawnattr_getsigmask: Likewise.
13191         * modules/posix_spawnattr_init: Likewise.
13192         * modules/posix_spawnattr_setflags: Likewise.
13193         * modules/posix_spawnattr_setpgroup: Likewise.
13194         * modules/posix_spawnattr_setschedparam: Likewise.
13195         * modules/posix_spawnattr_setschedpolicy: Likewise.
13196         * modules/posix_spawnattr_setsigdefault: Likewise.
13197         * modules/posix_spawnattr_setsigmask: Likewise.
13198         * modules/posix_spawnp: Likewise.
13199
13200 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
13201
13202         Add option to do-release-commit-and-tag to specify branch.
13203         * build-aux/do-release-commit-and-tag: Add --branch.
13204
13205 2011-05-03  Bruno Haible  <bruno@clisp.org>
13206
13207         Avoid unnecessary compilation units, through conditional dependencies.
13208         * modules/accept (Depends-on): Add conditions to the dependencies.
13209         * modules/acosl (Depends-on): Likewise.
13210         * modules/argz (Depends-on): Likewise.
13211         * modules/asinl (Depends-on): Likewise.
13212         * modules/atanl (Depends-on): Likewise.
13213         * modules/atoll (Depends-on): Likewise.
13214         * modules/bind (Depends-on): Likewise.
13215         * modules/btowc (Depends-on): Likewise.
13216         * modules/canonicalize-lgpl (Depends-on): Likewise.
13217         * modules/ceil (Depends-on): Likewise.
13218         * modules/ceilf (Depends-on): Likewise.
13219         * modules/ceill (Depends-on): Likewise.
13220         * modules/chdir-long (Depends-on): Likewise.
13221         * modules/chown (Depends-on): Likewise.
13222         * modules/close (Depends-on): Likewise.
13223         * modules/connect (Depends-on): Likewise.
13224         * modules/cosl (Depends-on): Likewise.
13225         * modules/dirfd (Depends-on): Likewise.
13226         * modules/dprintf (Depends-on): Likewise.
13227         * modules/dprintf-posix (Depends-on): Likewise.
13228         * modules/error (Depends-on): Likewise.
13229         * modules/euidaccess (Depends-on): Likewise.
13230         * modules/expl (Depends-on): Likewise.
13231         * modules/faccessat (Depends-on): Likewise.
13232         * modules/fchdir (Depends-on): Likewise.
13233         * modules/fclose (Depends-on): Likewise.
13234         * modules/fcntl (Depends-on): Likewise.
13235         * modules/fdopendir (Depends-on): Likewise.
13236         * modules/fflush (Depends-on): Likewise.
13237         * modules/floor (Depends-on): Likewise.
13238         * modules/floorf (Depends-on): Likewise.
13239         * modules/floorl (Depends-on): Likewise.
13240         * modules/fnmatch (Depends-on): Likewise.
13241         * modules/fopen (Depends-on): Likewise.
13242         * modules/fprintf-posix (Depends-on): Likewise.
13243         * modules/frexp (Depends-on): Likewise.
13244         * modules/frexp-nolibm (Depends-on): Likewise.
13245         * modules/frexpl (Depends-on): Likewise.
13246         * modules/frexpl-nolibm (Depends-on): Likewise.
13247         * modules/fseek (Depends-on): Likewise.
13248         * modules/fsusage (Depends-on): Likewise.
13249         * modules/ftell (Depends-on): Likewise.
13250         * modules/ftello (Depends-on): Likewise.
13251         * modules/futimens (Depends-on): Likewise.
13252         * modules/getcwd (Depends-on): Likewise.
13253         * modules/getcwd-lgpl (Depends-on): Likewise.
13254         * modules/getdelim (Depends-on): Likewise.
13255         * modules/getdomainname (Depends-on): Likewise.
13256         * modules/getgroups (Depends-on): Likewise.
13257         * modules/gethostname (Depends-on): Likewise.
13258         * modules/getline (Depends-on): Likewise.
13259         * modules/getlogin_r (Depends-on): Likewise.
13260         * modules/getopt-posix (Depends-on): Likewise.
13261         * modules/getpeername (Depends-on): Likewise.
13262         * modules/getsockname (Depends-on): Likewise.
13263         * modules/getsockopt (Depends-on): Likewise.
13264         * modules/getsubopt (Depends-on): Likewise.
13265         * modules/getusershell (Depends-on): Likewise.
13266         * modules/glob (Depends-on): Likewise.
13267         * modules/grantpt (Depends-on): Likewise.
13268         * modules/iconv_open (Depends-on): Likewise.
13269         * modules/iconv_open-utf (Depends-on): Likewise.
13270         * modules/inet_ntop (Depends-on): Likewise.
13271         * modules/inet_pton (Depends-on): Likewise.
13272         * modules/ioctl (Depends-on): Likewise.
13273         * modules/isapipe (Depends-on): Likewise.
13274         * modules/isfinite (Depends-on): Likewise.
13275         * modules/isinf (Depends-on): Likewise.
13276         * modules/lchown (Depends-on): Likewise.
13277         * modules/ldexpl (Depends-on): Likewise.
13278         * modules/link (Depends-on): Likewise.
13279         * modules/linkat (Depends-on): Likewise.
13280         * modules/listen (Depends-on): Likewise.
13281         * modules/logl (Depends-on): Likewise.
13282         * modules/lstat (Depends-on): Likewise.
13283         * modules/mbrlen (Depends-on): Likewise.
13284         * modules/mbrtowc (Depends-on): Likewise.
13285         * modules/mbsinit (Depends-on): Likewise.
13286         * modules/mbsnrtowcs (Depends-on): Likewise.
13287         * modules/mbsrtowcs (Depends-on): Likewise.
13288         * modules/mbtowc (Depends-on): Likewise.
13289         * modules/memcmp (Depends-on): Likewise.
13290         * modules/mkdir (Depends-on): Likewise.
13291         * modules/mkdtemp (Depends-on): Likewise.
13292         * modules/mkfifo (Depends-on): Likewise.
13293         * modules/mkfifoat (Depends-on): Likewise.
13294         * modules/mknod (Depends-on): Likewise.
13295         * modules/mkostemp (Depends-on): Likewise.
13296         * modules/mkostemps (Depends-on): Likewise.
13297         * modules/mkstemp (Depends-on): Likewise.
13298         * modules/mkstemps (Depends-on): Likewise.
13299         * modules/mktime (Depends-on): Likewise.
13300         * modules/nanosleep (Depends-on): Likewise.
13301         * modules/open (Depends-on): Likewise.
13302         * modules/openat (Depends-on): Likewise.
13303         * modules/perror (Depends-on): Likewise.
13304         * modules/poll (Depends-on): Likewise.
13305         * modules/popen (Depends-on): Likewise.
13306         * modules/posix_spawn (Depends-on): Likewise.
13307         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
13308         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
13309         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
13310         * modules/posix_spawnp (Depends-on): Likewise.
13311         * modules/pread (Depends-on): Likewise.
13312         * modules/printf-posix (Depends-on): Likewise.
13313         * modules/ptsname (Depends-on): Likewise.
13314         * modules/putenv (Depends-on): Likewise.
13315         * modules/pwrite (Depends-on): Likewise.
13316         * modules/readline (Depends-on): Likewise.
13317         * modules/readlink (Depends-on): Likewise.
13318         * modules/readlinkat (Depends-on): Likewise.
13319         * modules/recv (Depends-on): Likewise.
13320         * modules/recvfrom (Depends-on): Likewise.
13321         * modules/regex (Depends-on): Likewise.
13322         * modules/remove (Depends-on): Likewise.
13323         * modules/rename (Depends-on): Likewise.
13324         * modules/renameat (Depends-on): Likewise.
13325         * modules/rmdir (Depends-on): Likewise.
13326         * modules/round (Depends-on): Likewise.
13327         * modules/roundf (Depends-on): Likewise.
13328         * modules/roundl (Depends-on): Likewise.
13329         * modules/rpmatch (Depends-on): Likewise.
13330         * modules/select (Depends-on): Likewise.
13331         * modules/send (Depends-on): Likewise.
13332         * modules/sendto (Depends-on): Likewise.
13333         * modules/setenv (Depends-on): Likewise.
13334         * modules/setlocale (Depends-on): Likewise.
13335         * modules/setsockopt (Depends-on): Likewise.
13336         * modules/shutdown (Depends-on): Likewise.
13337         * modules/sigaction (Depends-on): Likewise.
13338         * modules/signbit (Depends-on): Likewise.
13339         * modules/sigprocmask (Depends-on): Likewise.
13340         * modules/sinl (Depends-on): Likewise.
13341         * modules/sleep (Depends-on): Likewise.
13342         * modules/snprintf (Depends-on): Likewise.
13343         * modules/snprintf-posix (Depends-on): Likewise.
13344         * modules/socket (Depends-on): Likewise.
13345         * modules/sprintf-posix (Depends-on): Likewise.
13346         * modules/sqrtl (Depends-on): Likewise.
13347         * modules/stat (Depends-on): Likewise.
13348         * modules/strchrnul (Depends-on): Likewise.
13349         * modules/strdup-posix (Depends-on): Likewise.
13350         * modules/strerror (Depends-on): Likewise.
13351         * modules/strerror_r-posix (Depends-on): Likewise.
13352         * modules/strndup (Depends-on): Likewise.
13353         * modules/strnlen (Depends-on): Likewise.
13354         * modules/strptime (Depends-on): Likewise.
13355         * modules/strsep (Depends-on): Likewise.
13356         * modules/strsignal (Depends-on): Likewise.
13357         * modules/strstr-simple (Depends-on): Likewise.
13358         * modules/strtod (Depends-on): Likewise.
13359         * modules/strtoimax (Depends-on): Likewise.
13360         * modules/strtok_r (Depends-on): Likewise.
13361         * modules/strtoumax (Depends-on): Likewise.
13362         * modules/symlink (Depends-on): Likewise.
13363         * modules/symlinkat (Depends-on): Likewise.
13364         * modules/tanl (Depends-on): Likewise.
13365         * modules/tcgetsid (Depends-on): Likewise.
13366         * modules/tmpfile (Depends-on): Likewise.
13367         * modules/trunc (Depends-on): Likewise.
13368         * modules/truncf (Depends-on): Likewise.
13369         * modules/truncl (Depends-on): Likewise.
13370         * modules/uname (Depends-on): Likewise.
13371         * modules/unlink (Depends-on): Likewise.
13372         * modules/unlockpt (Depends-on): Likewise.
13373         * modules/unsetenv (Depends-on): Likewise.
13374         * modules/usleep (Depends-on): Likewise.
13375         * modules/utimensat (Depends-on): Likewise.
13376         * modules/vasprintf (Depends-on): Likewise.
13377         * modules/vdprintf (Depends-on): Likewise.
13378         * modules/vdprintf-posix (Depends-on): Likewise.
13379         * modules/vfprintf-posix (Depends-on): Likewise.
13380         * modules/vprintf-posix (Depends-on): Likewise.
13381         * modules/vsnprintf (Depends-on): Likewise.
13382         * modules/vsnprintf-posix (Depends-on): Likewise.
13383         * modules/vsprintf-posix (Depends-on): Likewise.
13384         * modules/wcrtomb (Depends-on): Likewise.
13385         * modules/wcscasecmp (Depends-on): Likewise.
13386         * modules/wcscspn (Depends-on): Likewise.
13387         * modules/wcsdup (Depends-on): Likewise.
13388         * modules/wcsncasecmp (Depends-on): Likewise.
13389         * modules/wcsnrtombs (Depends-on): Likewise.
13390         * modules/wcspbrk (Depends-on): Likewise.
13391         * modules/wcsrtombs (Depends-on): Likewise.
13392         * modules/wcsspn (Depends-on): Likewise.
13393         * modules/wcsstr (Depends-on): Likewise.
13394         * modules/wcstok (Depends-on): Likewise.
13395         * modules/wcswidth (Depends-on): Likewise.
13396         * modules/wctob (Depends-on): Likewise.
13397         * modules/wctomb (Depends-on): Likewise.
13398         * modules/wctype (Depends-on): Likewise.
13399         * modules/wcwidth (Depends-on): Likewise.
13400         * modules/write (Depends-on): Likewise.
13401
13402 2011-05-03  Bruno Haible  <bruno@clisp.org>
13403
13404         Support for conditional dependencies.
13405         * doc/gnulib.texi (Module description): Document the syntax of
13406         conditional dependencies.
13407         * gnulib-tool: New option --conditional-dependencies.
13408         (func_usage): Document it.
13409         (cond_dependencies): New variable.
13410         (func_get_automake_snippet_conditional,
13411         func_get_automake_snippet_unconditional): New functions, extracted from
13412         func_get_automake_snippet.
13413         (func_get_automake_snippet): Use them.
13414         (sed_first_32_chars): New variable.
13415         (func_module_shellfunc_name): New function.
13416         (func_module_shellvar_name): New function.
13417         (func_module_conditional_name): New function.
13418         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
13419         func_cond_module_condition): New functions.
13420         (func_modules_transitive_closure): Add support for conditional
13421         dependencies.
13422         (func_emit_lib_Makefile_am): For a conditional module, enclose the
13423         conditional automake snippet in an automake conditional.
13424         (func_emit_autoconf_snippets): Emit shell functions that contain the
13425         code for conditional modules.
13426         (func_import, func_create_testdir): Update specification.
13427
13428 2011-05-03  Eric Blake  <eblake@redhat.com>
13429
13430         test-getaddrinfo: report error information
13431         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
13432
13433 2011-05-03  Jim Meyering  <meyering@redhat.com>
13434
13435         bootstrap: avoid build failure when $GZIP is set
13436         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
13437         program name.  If defined at all, it is supposed to list gzip options.
13438         Reported by Alan Curry in http://debbugs.gnu.org/8609
13439
13440 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
13441
13442         readme-release: new module with release instructions
13443         * modules/readme-release: New module.
13444         * top/README-release: New file, from coreutils, grep, diffutils.
13445         * MODULES.html.sh (Support for maintaining and releasing): Add it.
13446
13447 2011-05-02  Eric Blake  <eblake@redhat.com>
13448
13449         fflush: also replace fclose when fixing fflush
13450         * modules/fflush (Depends-on): Add fclose.
13451         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
13452         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
13453         memstreams with no backing fd.
13454         * doc/posix-functions/fclose.texi (fclose): Document the use of
13455         fflush module to fix the bug.
13456         * tests/test-fclose.c (main): Relax test when fclose is used in
13457         isolation.
13458
13459         fclose: add some tests
13460         * modules/fclose-tests: New test module.
13461         * tests/test-fclose.c: New file.
13462         * doc/posix-functions/fclose.texi (fclose): Document the bug.
13463
13464         fclose: reduced dependencies
13465         * modules/fclose (Depends-on): Switch from fflush/fseeko to
13466         simpler lseek.
13467         * lib/fclose.c (rpl_fclose): Likewise.
13468         Reported by Simon Josefsson.
13469
13470         exit: drop remaining clients
13471         * modules/argmatch (Depends-on): Replace exit with stdlib.
13472         * modules/copy-file (Depends-on): Likewise.
13473         * modules/execute (Depends-on): Likewise.
13474         * modules/exitfail (Depends-on): Likewise.
13475         * modules/obstack (Depends-on): Likewise.
13476         * modules/pagealign_alloc (Depends-on): Likewise.
13477         * modules/pipe-filter-gi (Depends-on): Likewise.
13478         * modules/pipe-filter-ii (Depends-on): Likewise.
13479         * modules/savewd (Depends-on): Likewise.
13480         * modules/spawn-pipe (Depends-on): Likewise.
13481         * modules/wait-process (Depends-on): Likewise.
13482         * modules/xsetenv (Depends-on): Likewise.
13483         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
13484         * modules/git-merge-changelog (Depends-on): Likewise.
13485         * modules/long-options (Depends-on): Likewise.
13486         * modules/pt_chown (Depends-on): Likewise.
13487         * modules/sysexits (Depends-on): Likewise.
13488
13489         freading: relax license from LGPLv3+ to LGPLv2+
13490         * modules/freading (License): Relax LGPL version.
13491
13492 2011-05-02  Bruno Haible  <bruno@clisp.org>
13493
13494         fchdir: Remove unused dependencies.
13495         * modules/fchdir (Depends-on): Remove include_next.
13496
13497 2011-05-02  Bruno Haible  <bruno@clisp.org>
13498
13499         gnulib-tool: Refactor.
13500         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
13501         from func_emit_autoconf_snippets.
13502         (func_emit_autoconf_snippets): Use it.
13503
13504 2011-05-02  Simon Josefsson  <simon@josefsson.org>
13505
13506         * NEWS: Document removal of 'exit'.
13507         * modules/exit: Remove file.
13508
13509 2011-05-01  Bruno Haible  <bruno@clisp.org>
13510
13511         Update DEPENDENCIES.
13512         * DEPENDENCIES (gettext): Recommend the newest release.
13513         Reported by Simon Josefsson.
13514
13515 2011-05-01  Bruno Haible  <bruno@clisp.org>
13516
13517         gnulib-tool: Reduce code duplication.
13518         * gnulib-tool (func_emit_autoconf_snippets): New function.
13519         (func_import, func_create_testdir): Use it.
13520
13521 2011-04-30  Eric Blake  <eblake@redhat.com>
13522
13523         fclose: don't fail on non-seekable input stream
13524         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
13525         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
13526         since fflush is allowed to fail in that case.
13527
13528 2011-04-30  Bruno Haible  <bruno@clisp.org>
13529
13530         dup3: cleanup
13531         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
13532
13533 2011-04-30  Bruno Haible  <bruno@clisp.org>
13534
13535         netdb: Make it work in C++ mode.
13536         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
13537         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
13538         module.
13539         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
13540         gl_MODULE_INDICATOR_FOR_TESTS.
13541         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
13542         * modules/netdb-c++-tests: New file.
13543         * tests/test-netdb-c++.cc: New file.
13544
13545 2011-04-30  Bruno Haible  <bruno@clisp.org>
13546
13547         New modules 'vfscanf', 'vscanf'.
13548         * modules/vfscanf: New file.
13549         * modules/vscanf: New file.
13550         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
13551         here.
13552         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
13553         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
13554
13555 2011-04-30  Bruno Haible  <bruno@clisp.org>
13556
13557         passfd: Add comments.
13558         * lib/passfd.c: Add comments about platforms.
13559
13560 2011-04-30  Bruno Haible  <bruno@clisp.org>
13561
13562         sys_uio: Make <sys/uio.h> self-contained.
13563         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
13564         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
13565
13566 2011-04-30  Bruno Haible  <bruno@clisp.org>
13567
13568         sys_socket: Ensure 'struct iovec' definition.
13569         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
13570         <sys/socket.h>.
13571         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
13572
13573 2011-04-30  Bruno Haible  <bruno@clisp.org>
13574
13575         sys_uio: Protect definition of 'struct iovec'.
13576         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
13577         it as a C struct.
13578
13579 2011-04-30  Bruno Haible  <bruno@clisp.org>
13580
13581         manywarnings: fix indentation
13582         * m4/manywarnings.m4: Indent by 2 spaces consistently.
13583
13584 2011-04-30  Pádraig Brady <P@draigBrady.com>
13585
13586         manywarnings: add -Wno-missing-field-initializers if needed.
13587         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
13588         option if it's needed to allow initialization with { 0, }
13589
13590 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
13591
13592         announce-gen: cosmetic improvement
13593         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
13594
13595 2011-04-29  Jim Meyering  <meyering@redhat.com>
13596
13597         vc-list-files: indent with spaces, not TABs
13598         * build-aux/vc-list-files: Convert leading TABs to spaces,
13599         to match the style of most other files in gnulib.
13600
13601         announce-gen: indent with spaces, not TABs
13602         * build-aux/announce-gen: Convert all TABs to spaces, to match
13603         the style of most other files in gnulib.
13604
13605 2011-04-29  Eric Blake  <eblake@redhat.com>
13606
13607         quotearg: avoid uninitialized variable use
13608         * lib/quotearg.c (quoting_options_from_style): Initialize
13609         remaining fields, and ensure that custom styles are only used via
13610         quoting_options rather than quoting_style.
13611
13612 2011-04-29  Jim Meyering  <meyering@redhat.com>
13613
13614         maint.mk: remove unused VC-tag variable
13615         * top/maint.mk (VC-tag): Remove unused variable.
13616
13617 2011-04-29  Bruno Haible  <bruno@clisp.org>
13618
13619         netdb: fix gai_strerror replacements
13620         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
13621         * modules/netdb: Substitute it.
13622
13623 2011-04-29  Jim Meyering  <meyering@redhat.com>
13624
13625         test-getcwd.c: avoid new set-but-not-used warning
13626         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
13627         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
13628         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
13629         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
13630
13631         test-hash.c: avoid a new shadowing warning
13632         * tests/test-hash.c (main): Don't shadow "dup".
13633
13634 2011-04-28  Eric Blake  <eblake@redhat.com>
13635
13636         getaddrinfo: fix gai_strerror signature
13637         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
13638         and work around mingw with UNICODE defined.
13639         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
13640         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
13641         * modules/netdb (Makefile.am): Substitute it.
13642         * lib/netdb.in.h (gai_strerror): Declare replacement.
13643         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
13644         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
13645         the fix.
13646
13647         getsockopt: avoid compiler warning
13648         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
13649         Reported by Matthias Bolte.
13650
13651         tests: drop unused link dependency
13652         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
13653         * modules/dirent-safer-tests (Makefile.am): Likewise.
13654         * modules/fdopendir-tests (Makefile.am): Likewise.
13655         * modules/mkfifoat-tests (Makefile.am): Likewise.
13656         * modules/openat-safer-tests (Makefile.am): Likewise.
13657         * modules/openat-tests (Makefile.am): Likewise.
13658         * modules/readlinkat-tests (Makefile.am): Likewise.
13659         * modules/symlinkat-tests (Makefile.am): Likewise.
13660         * modules/linkat-tests (Makefile.am): Likewise.
13661         (Depends-on): Switch to filenamecat-lgpl.
13662         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
13663         LIBINTL.
13664         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
13665         * tests/test-linkat.c (main): Don't require xalloc.
13666
13667         hash, mgetgroups: drop xalloc dependency
13668         * lib/hash.c (includes): Adjust includes.
13669         * lib/mgetgroups.c (includes): Likewise.
13670         (xgetgroups): Move...
13671         * lib/xgetgroups.c: ...to new file.
13672         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
13673         * modules/xgetgroups: New file, split from...
13674         * modules/mgetgroups: ...here.
13675         (Depends-on): Add xalloc-oversized.
13676         * modules/hash (Depends-on): Likewise.
13677         * modules/hash-tests (Depends-on): Drop xalloc.
13678         (test_hash_LDADD): Drop unused library.
13679         * tests/test-hash.c (main): Break xalloc dependency.
13680         (includes): Drop unused include.
13681
13682         xalloc-oversized: new module
13683         * modules/xalloc-oversized: New module.
13684         * modules/xalloc (Depends-on): Add it.
13685         * lib/xalloc.h (xalloc_oversized): Move...
13686         * lib/xalloc-oversized.h: ...into new file.
13687
13688         utimecmp: drop dependency on xmalloc
13689         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
13690         due to memory pressure.
13691         * modules/utimecmp (Depends-on): Drop xalloc.
13692
13693 2011-04-27  Eric Blake  <eblake@redhat.com>
13694
13695         getcwd: fix mingw bugs
13696         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
13697         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
13698         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
13699
13700 2011-04-27  Bruno Haible  <bruno@clisp.org>
13701
13702         mkstemps: Ensure declaration on MacOS X 10.5.
13703         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
13704         * doc/glibc-functions/mkstemps.texi: Document header file problem on
13705         MacOS X.
13706
13707 2011-04-27  Bruno Haible  <bruno@clisp.org>
13708
13709         mkstemp: More documentation.
13710         * doc/posix-functions/mkstemp.texi: Document header file problem on
13711         MacOS X.
13712
13713 2011-04-27  Bruno Haible  <bruno@clisp.org>
13714
13715         mkstemp: Tweak configure message when cross-compiling.
13716         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
13717         result as a guess.
13718
13719 2011-04-27  Bruno Haible  <bruno@clisp.org>
13720
13721         clean-temp: Clarify what it does.
13722         * lib/clean-temp.h: Add more comments.
13723         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
13724         module.
13725         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
13726         * doc/glibc-functions/mkstemps.texi: Likewise.
13727         * doc/glibc-functions/mkostemps.texi: Likewise.
13728
13729 2011-04-27  Eric Blake  <eblake@redhat.com>
13730
13731         fchdir: avoid extra chdir and fix test
13732         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
13733         getcwd-lgpl.
13734         * lib/fchdir.c (get_name): Any absolute name will do; it does not
13735         have to be canonical.
13736         (canonicalize_file_name): Drop unused macro.
13737         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
13738
13739         filenamecat-lgpl: fix licence
13740         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
13741         when it was first created.
13742
13743         linkat, renameat: add missing dependency
13744         * modules/linkat (Depends-on): Require getcwd-lgpl.
13745         * modules/renameat (Depends-on): Likewise.
13746
13747         tests: reduce dependencies
13748         * tests/test-linkat.c (main): Use lighter-weight getcwd.
13749         * tests/test-renameat.c (main): Likewise.
13750         * modules/linkat-tests (Depends-on): Relax dependency.
13751         * modules/renameat-tests (Depends-on): Likewise.
13752         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
13753         dependency explicit.
13754
13755         save-cwd: reduce default dependency
13756         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
13757         * lib/save-cwd.c: Update comments.
13758         * NEWS: Document the semantic change.
13759
13760         getcwd: enhance tests
13761         * tests/test-getcwd-lgpl.c: New file, taken from...
13762         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
13763         repeat long path stress tests from m4 probe.
13764         * modules/getcwd-lgpl-tests: New module.
13765         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
13766         * m4/getcwd-abort-bug.m4: Update comment.
13767         * m4/getcwd-path-max.m4: Likewise.
13768
13769         getcwd-lgpl: new module
13770         * modules/getcwd-lgpl: New module.
13771         * lib/getcwd-lgpl.c: New file.
13772         * doc/posix-functions/getcwd.texi (getcwd): Document it.
13773         * MODULES.html.sh (lacking POSIX:2008): Likewise.
13774         * modules/getcwd (configure.ac): Set C witness.
13775         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
13776
13777         getcwd: tweak comments
13778         * m4/getcwd-abort-bug.m4: Fix comments.
13779         * m4/getcwd-path-max.m4: Likewise.
13780         * m4/getcwd.m4: Likewise.
13781
13782 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
13783         and Eric Blake  <eblake@redhat.com>
13784
13785         mkstemp: replace if system version uses wrong permissions
13786         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
13787         read/write mode bits set in file created by mkstemp.
13788         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
13789
13790 2011-04-27  Eric Blake  <eblake@redhat.com>
13791
13792         passfd: avoid compiler warning
13793         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
13794         Reported by Laine Stump.
13795
13796 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
13797
13798         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
13799         required by the NetBSD (and perhaps other 4.4BSD derived) join.
13800
13801 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
13802         and Eric Blake  <eblake@redhat.com>
13803
13804         mkstemp: mention clean-temp module
13805         * lib/mkstemp.c: Add comment.
13806         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
13807
13808 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
13809
13810         inttypes: also provide default values for 32-bit tests
13811         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
13812         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
13813
13814 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
13815
13816         strtoumax: remove dependency on strtoimax
13817         This is like the strtoull change of yesterday.
13818         * modules/strtoumax (Files): Add lib/strtoimax.c.
13819         (Depends-on): Remove strtoimax and add verify.
13820
13821         inttypes-incomplete: new module
13822         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
13823         all but the PRI* and SCN* parts of gl_INTTYPES_H.
13824         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
13825         of gl_INTTYPES_H.
13826         (gl_INTTYPES_H): Rewrite in terms of these new macros.
13827         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
13828         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
13829         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
13830         * modules/strtoumax, modules/xstrtol (Depends-on):
13831         Depend on inttypes-incomplete, not inttypes.
13832         * modules/inttypes-incomplete: New module, containing the contents
13833         of the old modules/inttypes module, except that the Files: section
13834         omits m4/inttypes-pri.m4, and the configure.ac section invokes
13835         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
13836         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
13837         (Depends-on): Depend only on inttypes-incomplete.
13838         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
13839
13840         inttypes: omit now-redundant strtoimax and strtoumax work
13841         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
13842         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
13843
13844         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
13845         This supports apps that need pointers to strtoimax and strtoumax,
13846         and ports to HP-UX 11.00 64.bit, which has macros that expand to
13847         nonexistent functions.  See
13848         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
13849         et seq.
13850         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
13851         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
13852         a macro.
13853         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
13854
13855 2011-04-25  Simon Josefsson  <simon@josefsson.org>
13856
13857         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
13858
13859 2011-04-25  Bruno Haible  <bruno@clisp.org>
13860
13861         strtol, strtoul: Mark modules as obsolete.
13862         * modules/strtol (Status, Notice): New sections.
13863         * modules/strtoul (Status, Notice): New sections.
13864
13865 2011-04-25  Bruno Haible  <bruno@clisp.org>
13866
13867         strtod: Remove check for strtod, unless supporting old platforms.
13868         * modules/strtod-obsolete: New file.
13869         * m4/strtod-obsolete.m4: New file.
13870         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
13871         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
13872         * modules/strtod (Depends-on): Add strtod-obsolete.
13873         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
13874
13875 2011-04-25  Bruno Haible  <bruno@clisp.org>
13876
13877         strcase: Make module obsolete.
13878         * modules/strcase (Status, Notice): New sections.
13879
13880 2011-04-25  Bruno Haible  <bruno@clisp.org>
13881
13882         dup2: Remove check for dup2, unless supporting old obsolete platforms.
13883         * modules/dup2-obsolete: New file.
13884         * m4/dup2-obsolete.m4: New file.
13885         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
13886         gl_FUNC_DUP2_OBSOLETE is not also defined.
13887         * modules/dup2 (Depends-on): Add dup2-obsolete.
13888         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
13889
13890 2011-04-25  Bruno Haible  <bruno@clisp.org>
13891
13892         strnlen: Avoid memchr related link error on old obsolete platforms.
13893         * modules/memchr-obsolete: New file.
13894         * m4/memchr-obsolete.m4: New file.
13895         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
13896         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
13897         * modules/memchr (Depends-on): Add memchr-obsolete.
13898         * modules/strnlen (Depends-on): Likewise.
13899         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
13900
13901 2011-04-25  Jim Meyering  <meyering@redhat.com>
13902
13903         maint.mk: makefile_at_at_check extend and clean up
13904         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
13905         in addition to */Makefile.am.
13906         Exempt legitimate uses of @VAR@ notation, e.g.,
13907         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
13908         Remove obsolete coreutils-specific comment.
13909         Prompted by discussion here:
13910         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
13911
13912 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
13913
13914         strtoul: remove dependency on strtol
13915         This is so that 'configure' need not check for strtol merely because
13916         the application needs strtoul.
13917         * modules/strtoul (Files): Add lib/strtol.c.
13918         (Depends-on): Remove strtol.
13919
13920         strtoull: remove dependency on strtoul
13921         This is like the strtoll change.
13922         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
13923         (Depends-on): Remove strtoul.
13924
13925         strtoll: remove dependency on strtol
13926         This is so that 'configure' need not check for strtol merely because
13927         the application needs strtoll.
13928         * modules/strtoll (Files): Add lib/strtol.c.
13929         (Depends-on): Remove strtol.
13930
13931 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13932
13933         inttypes: Move some configure check to module 'imaxdiv'.
13934         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
13935         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
13936         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
13937
13938 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13939
13940         inttypes: Move some configure check to module 'imaxabs'.
13941         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
13942         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
13943         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
13944
13945 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13946
13947         inttypes: Remove configure tests that are not needed since 2009-12-31.
13948         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
13949         gl_cv_header_working_inttypes_h.
13950
13951 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
13952
13953         * modules/strnlen (Depends-on): Remove memchr.
13954         The strnlen implementation doesn't need the memchr module's fixes; see
13955         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
13956
13957         strtol: remove dependency on wchar
13958         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
13959         * modules/strtol (Depends-on): Remove wchar.
13960
13961 2011-04-21  Eric Blake  <eblake@redhat.com>
13962
13963         passfd: fix test regression on Linux
13964         * modules/passfd-tests (configure.ac): Correct socketpair check.
13965
13966         passfd: speed up configure and drop unused code
13967         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
13968         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
13969         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
13970         Instead of probing at configure for unix_scm_rights_bsd44_way,
13971         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
13972         check to a struct member probe.
13973         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
13974         (sendfd, recvfd): Update preprocessor checks.
13975         * modules/passfd (Files): Reflect rename, and drop unused file.
13976         (Depends-on): Drop unused dependency.
13977
13978         passfd: allow compilation on mingw
13979         * modules/sys_socket (Depends-on): Add sys_uio.
13980         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
13981         iovec and a minimal struct msghdr.
13982         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
13983         * tests/test-sys_socket.c (main): Enhance test.
13984         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
13985         guaranteed to provide what we need.
13986         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
13987         * modules/passfd-tests (Depends-on): Add sys_wait.
13988         * tests/test-passfd.c (main): Skip test on mingw, for now.
13989         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
13990         partial 'struct msghdr' implementation.
13991
13992         sys_uio: new module
13993         * modules/sys_uio: New module.
13994         * modules/sys_uio-tests: Likewise.
13995         * lib/sys_uio.in.h: New file.
13996         * m4/sys_uio_h.m4: Likewise.
13997         * tests/test-sys_uio.c: Likewise.
13998         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
13999         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
14000
14001 2011-04-20  Jim Meyering  <meyering@redhat.com>
14002
14003         useless-if-before-free: avoid false-positive
14004         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
14005         disjunct so that it too requires a terminating ";".  Without that,
14006         this script would identify as useless one statement from gcc that
14007         was not:
14008           if (aligned_ptr)
14009             free (((void **) aligned_ptr) [-1]);
14010
14011 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
14012
14013         doc: update users.txt.
14014         * users.txt: Add barcode.
14015
14016 2011-04-19  Bruno Haible  <bruno@clisp.org>
14017
14018         ioctl: Remove link dependency on native Windows.
14019         * lib/fd-hook.h: Renamed from lib/close-hook.h.
14020         (gl_close_fn, gl_ioctl_fn): New types.
14021         (struct fd_hook): Renamed from struct close_hook. Change type of
14022         private_close_fn field. Add private_ioctl_fn field.
14023         (close_hook_fn): Add parameter for primary close method.
14024         (execute_close_hooks, execute_all_close_hooks): Likewise.
14025         (ioctl_hook_fn): New type.
14026         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
14027         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
14028         argument.
14029         (unregister_fd_hook): Renamed from unregister_close_hook.
14030         * lib/fd-hook.c: Renamed from lib/close-hook.c.
14031         Don't include <unistd.h>.
14032         (close): Remove undef.
14033         (anchor): Update.
14034         (execute_close_hooks): Add argument for primary close method.
14035         (execute_all_close_hooks): Likewise.
14036         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
14037         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
14038         argument. Allow each argument to be NULL.
14039         (unregister_fd_hook): Renamed from unregister_close_hook.
14040         * lib/close.c (rpl_close): Pass 'close' function pointer to
14041         execute_all_close_hooks.
14042         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
14043         (primary_ioctl): New function.
14044         (ioctl): Don't call ioctlsocket here. Instead, call
14045         execute_all_ioctl_hooks.
14046         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
14047         close method.
14048         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
14049         (fd_sockets_hook): Renamed from close_sockets_hook.
14050         (gl_sockets_startup, gl_sockets_cleanup): Update.
14051         * modules/fd-hook: Renamed from modules/close-hook. Update.
14052         * modules/close (Depends-on): Add fd-hook, remove close-hook.
14053         * modules/sockets (Depends-on): Likewise.
14054         * modules/ioctl (Depends-on): Add fd-hook.
14055         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
14056         GNULIB_SOCKET.
14057
14058 2011-04-19  Bruno Haible  <bruno@clisp.org>
14059
14060         Move the support of O_NONBLOCK in open() to the 'open' module.
14061         * modules/nonblocking (Depends-on): Remove 'open'.
14062         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
14063         gl_cv_have_open_O_NONBLOCK.
14064         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
14065         O_NONBLOCK support.
14066         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
14067
14068 2011-04-17  Bruno Haible  <bruno@clisp.org>
14069
14070         pipe2: Simplify code.
14071         * lib/pipe2.c (pipe2): Reduce code duplication.
14072
14073 2011-04-17  Bruno Haible  <bruno@clisp.org>
14074
14075         nonblocking: Add comment.
14076         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
14077
14078 2011-04-17  Bruno Haible  <bruno@clisp.org>
14079
14080         nonblocking: Add tests for sockets.
14081         * tests/test-nonblocking-socket.sh: New file.
14082         * tests/test-nonblocking-socket-main.c: New file.
14083         * tests/test-nonblocking-socket-child.c: New file.
14084         * tests/test-nonblocking-socket.h: New file.
14085         * tests/socket-server.h: New file.
14086         * tests/socket-client.h: New file.
14087         * modules/nonblocking-socket-tests: New file.
14088         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
14089
14090 2011-04-17  Bruno Haible  <bruno@clisp.org>
14091
14092         nonblocking: Add tests for pipes.
14093         * tests/test-nonblocking-pipe.sh: New file.
14094         * tests/test-nonblocking-pipe-main.c: New file.
14095         * tests/test-nonblocking-pipe-child.c: New file.
14096         * tests/test-nonblocking-pipe.h: New file.
14097         * tests/test-nonblocking-writer.h: New file.
14098         * tests/test-nonblocking-reader.h: New file.
14099         * tests/test-nonblocking-misc.h: New file.
14100         * modules/nonblocking-pipe-tests: New file.
14101         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
14102
14103 2011-04-16  Bruno Haible  <bruno@clisp.org>
14104
14105         gettext: Clarify the needed programmer actions.
14106         * modules/gettext (Notice): New field.
14107         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
14108
14109 2011-04-16  Bruno Haible  <bruno@clisp.org>
14110
14111         strchrnul: Tweak last commit.
14112         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
14113         bug.
14114         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
14115         as in _GL_FUNCDECL_SYS.
14116         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
14117         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
14118
14119 2011-04-15  Eric Blake  <eblake@redhat.com>
14120
14121         strchrnul: work around cygwin bug
14122         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
14123         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
14124         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
14125         * modules/string (Makefile.am): Substitute it.
14126         * lib/string.in.h (strchrnul): Use it.
14127
14128 2011-04-15  Bruno Haible  <bruno@clisp.org>
14129
14130         Don't require lib/stdio-write.c when only module 'stdio' is used.
14131         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
14132         invocation.
14133         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
14134
14135 2011-04-14  Bruno Haible  <bruno@clisp.org>
14136
14137         Support non-blocking pipe I/O in read() on native Windows.
14138         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
14139         (read): New declaration.
14140         * lib/read.c: New file.
14141         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
14142         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
14143         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
14144         vscanf): New declarations.
14145         * lib/stdio-read.c: New file.
14146         * m4/read.m4: New file.
14147         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
14148         REPLACE_READ.
14149         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
14150         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14151         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
14152         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
14153         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
14154         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14155         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
14156         * modules/read: New file.
14157         * modules/nonblocking (Files): Add lib/stdio-read.c.
14158         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
14159         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
14160         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
14161         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
14162         * modules/pread (Depends-on): Add read.
14163         * modules/safe-read (Depends-on): Likewise.
14164         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
14165         gets, scanf, vfscanf, vscanf): Verify signatures.
14166         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
14167         problem with non-blocking pipes.
14168         * doc/posix-functions/fgetc.texi: Likewise.
14169         * doc/posix-functions/fgets.texi: Likewise.
14170         * doc/posix-functions/fread.texi: Likewise.
14171         * doc/posix-functions/fscanf.texi: Likewise.
14172         * doc/posix-functions/getc.texi: Likewise.
14173         * doc/posix-functions/getchar.texi: Likewise.
14174         * doc/posix-functions/gets.texi: Likewise.
14175         * doc/posix-functions/scanf.texi: Likewise.
14176         * doc/posix-functions/vfscanf.texi: Likewise.
14177         * doc/posix-functions/vscanf.texi: Likewise.
14178
14179 2011-04-14  Bruno Haible  <bruno@clisp.org>
14180
14181         Support non-blocking pipe I/O in write() on native Windows.
14182         * lib/write.c (rpl_write): Split a write request that failed merely
14183         because the byte count was larger than the pipe buffer's size.
14184         * doc/posix-functions/write.texi: Mention the problem with large byte
14185         counts.
14186
14187 2011-04-14  Bruno Haible  <bruno@clisp.org>
14188
14189         wchar: Ensure that wchar_t gets defined on uClibc.
14190         * lib/wchar.in.h: On uClibc, include <stddef.h>.
14191         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
14192
14193 2011-04-13  Bruno Haible  <bruno@clisp.org>
14194
14195         safe-write, full-read: Avoid unnecessary compilation units.
14196         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
14197         (Depends-on): Remove safe-read. Add ssize_t.
14198         * modules/full-read (Files): Add lib/full-write.c.
14199         (Depends-on): Add full-write.
14200
14201 2011-04-13  Bruno Haible  <bruno@clisp.org>
14202
14203         Support non-blocking pipe I/O and SIGPIPE in pwrite().
14204         * modules/pwrite (Depends-on): Add 'write'.
14205
14206 2011-04-13  Bruno Haible  <bruno@clisp.org>
14207
14208         Support non-blocking pipe I/O in write() on native Windows.
14209         * lib/unistd.in.h (write): Enable replacement also if
14210         GNULIB_UNISTD_H_NONBLOCKING is 1.
14211         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
14212         (rpl_write): When failing to write on a non-blocking pipe, change
14213         errno from ENOSPC to EAGAIN.
14214         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
14215         putchar, puts, vfprintf, vprintf): Enable replacement also if
14216         GNULIB_STDIO_H_NONBLOCKING is 1.
14217         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
14218         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
14219         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
14220         CALL_WITH_SIGPIPE_EMULATION.
14221         (CALL_WITH_SIGPIPE_EMULATION): Use them.
14222         * m4/nonblocking.m4: New file.
14223         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
14224         for non-blocking I/O support.
14225         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
14226         GNULIB_UNISTD_H_NONBLOCKING.
14227         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
14228         required for non-blocking I/O support.
14229         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
14230         * modules/nonblocking (Files): Add m4/nonblocking.m4,
14231         lib/stdio-write.c, m4/asm-underscore.m4.
14232         (Depends-on): Add stdio, unistd.
14233         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
14234         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
14235         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
14236         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
14237         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
14238         problem with non-blocking pipes.
14239         * doc/posix-functions/fputc.texi: Likewise.
14240         * doc/posix-functions/fputs.texi: Likewise.
14241         * doc/posix-functions/fwrite.texi: Likewise.
14242         * doc/posix-functions/printf.texi: Likewise.
14243         * doc/posix-functions/putc.texi: Likewise.
14244         * doc/posix-functions/putchar.texi: Likewise.
14245         * doc/posix-functions/puts.texi: Likewise.
14246         * doc/posix-functions/vfprintf.texi: Likewise.
14247         * doc/posix-functions/vprintf.texi: Likewise.
14248         * doc/posix-functions/write.texi: Likewise.
14249
14250 2011-04-10  Jim Meyering  <meyering@redhat.com>
14251
14252         maint.mk: prohibit doubled words
14253         Detect them also when they're separated by a newline.
14254         There are 3 ways to customize it:
14255           - disable the test on a per file basis, as usual with rules using
14256             $(VC_LIST_EXCEPT)
14257           - replace the default doubled-word-selecting regexp (affects all files)
14258           - ignore a particular file-vs-doubled-word match
14259         I nearly used that last one to ignore the "is is" match in
14260         coreutils' NEWS file, since the text was "ls -is is ..."
14261         To do that, I would have added this line to cfg.mk:
14262           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
14263         but it would have ignored any "is is" match in NEWS.
14264         Low probability, but still...
14265         Instead, I changed the text, slightly:
14266           -  ls -is is now consistent with ls -lis in ignoring values returned
14267           +  "ls -is" is now consistent with ls -lis in ignoring values returned
14268         * top/maint.mk (prohibit_double_word_RE_): Provide default.
14269         (prohibit_doubled_word_): Define.
14270         (sc_prohibit_doubled_word): New rule.
14271         (sc_prohibit_the_the): Remove.  Subsumed by the above.
14272
14273 2011-04-10  Jim Meyering  <meyering@redhat.com>
14274
14275         maint: fix doubled-word typo in comment
14276         * m4/gethostname.m4: s/is is/it is/
14277         * m4/getdomainname.m4: Likewise.
14278
14279 2011-04-10  Jim Meyering  <meyering@redhat.com>
14280
14281         maint: remove doubled word: s/it it/it/
14282         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
14283
14284 2011-04-10  Jim Meyering  <meyering@redhat.com>
14285
14286         maint.mk: remove useless semicolon and backslash
14287         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
14288         semicolon and backslash.
14289
14290 2011-04-10  Bruno Haible  <bruno@clisp.org>
14291
14292         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
14293         * modules/stdint-tests (Depends-on): Add wchar.
14294
14295 2011-04-10  Jim Meyering  <meyering@redhat.com>
14296
14297         maint: remove doubled words in comments, e.g., s/a a/a/
14298         * lib/strptime.c (day_of_the_week): s/the the/the/
14299         * tests/test-chown.h (test_chown): s/a a/a/
14300
14301         test-chown.h: correct a cast
14302         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
14303         when the destination is a stat.st_gid.
14304
14305 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
14306
14307         getaddrinfo: Fix test for sa_len member.
14308         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
14309         include <sys/types.h> before <sys/socket.h>.
14310
14311 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
14312
14313         maint: change "can not" to "cannot"
14314         * doc/posix-functions/iconv.texi (iconv): This one crossed line
14315         boundaries.
14316
14317 2011-04-09  Jim Meyering  <meyering@redhat.com>
14318
14319         maint: change "a a" to "a"
14320         * tests/test-lchown.h (test_lchown): s/a a/a/
14321
14322         maint.mk: prohibit \<the the\>
14323         * top/maint.mk (sc_prohibit_the_the): New rule.
14324
14325         maint: fix "the the" in comment
14326         * lib/count-one-bits.h: s/the the/the/
14327
14328         maint: change "can not" to "cannot"
14329         But do not change the occurrences in maintain.texi or in
14330         build-aux/po/Makefile.in.in, which I presume comes from gettext.
14331         * doc/gnulib-tool.texi: s/can not/cannot/
14332         * doc/posix-functions/accept.texi (accept): Likewise.
14333         * doc/posix-functions/socket.texi (socket): Likewise.
14334         * lib/mbrtowc.c: Likewise.
14335
14336         maint.mk: prohibit use of "can not"
14337         * top/maint.mk (sc_prohibit_can_not): New rule.
14338         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
14339
14340 2011-04-09  Bruno Haible  <bruno@clisp.org>
14341
14342         careadlinkat: Guard against misuse of careadlinkatcwd.
14343         * lib/careadlinkat.c: Include <stdlib.h>.
14344         (careadlinkatcwd): Check that the fd argument is as expected.
14345
14346 2011-04-09  Bruno Haible  <bruno@clisp.org>
14347
14348         careadlinkat: Use common coding style.
14349         * lib/careadlinkat.c: Move gnulib includes after system includes.
14350
14351 2011-04-09  Bruno Haible  <bruno@clisp.org>
14352
14353         careadlinkat: Clarify specification.
14354         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
14355         (careadlinkatcwd): Add comment.
14356         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
14357
14358 2011-04-09  Bruno Haible  <bruno@clisp.org>
14359
14360         areadlinkat: Avoid link error on many platforms.
14361         * modules/areadlinkat (Depends-on): Add areadlink.
14362
14363 2011-04-09  Bruno Haible  <bruno@clisp.org>
14364
14365         allocator, careadlinkat: Fix double-inclusion guard.
14366         * lib/allocator.h: Fix double-inclusion guard.
14367         * lib/careadlinkat.h: Likewise.
14368
14369 2011-04-09  Bruno Haible  <bruno@clisp.org>
14370
14371         relocatable-prog-wrapper: Update after module 'areadlink' changed.
14372         * lib/relocwrapper.c: Update dependencies hierarchy.
14373         * build-aux/install-reloc: Update list of files to be compiled.
14374         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
14375         lib/allocator.[hc].
14376
14377 2011-04-08  Eric Blake  <eblake@redhat.com>
14378
14379         strftime: silence gnulib-tool warning
14380         * modules/strftime-tests (Depends-on): Drop automatic dependency.
14381
14382 2011-04-08  Bruno Haible  <bruno@clisp.org>
14383
14384         verify: Fix syntax error with GCC 4.6 in C++ mode.
14385         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
14386         (HAVE_STATIC_ASSERT): New macro.
14387         (verify_true, verify): Use 'static_assert' if it is supported and
14388         '_Static_assert' is not supported.
14389
14390 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
14391
14392         allocator: New module.
14393         * modules/allocator, lib/allocator.c: New files.
14394         * lib/allocator.h (stdlib_allocator): New decl.
14395         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
14396         Remove.  Do not include <stdlib.h>.
14397         (careadlinkat): Use stdlib_allocator instead of rolling our own.
14398         * modules/careadlinkat (Files): Remove lib/allocator.h.
14399         (Depends-on): Add allocator.
14400
14401         stdlib: let modules use system malloc, realloc
14402         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
14403         if !_GL_USE_STDLIB_ALLOC.
14404         (malloc, realloc): Limit this change to a smaller scope.
14405
14406         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
14407         (malloc, realloc): Don't #undef; no longer needed.
14408         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14409         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14410         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
14411         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14412         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14413         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14414         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
14415         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
14416
14417         careadlinkat: rename members to avoid problem
14418         * lib/allocator.h (struct allocator): Rename members from
14419         malloc/realloc to allocate/reallocate, to avoid problems if malloc
14420         and realloc are #define'd.  Reported by Eric Blake in
14421         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
14422         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
14423
14424 2011-04-08  Eric Blake  <eblake@redhat.com>
14425
14426         nonblocking: reduce dependency
14427         * tests/test-nonblocking.c: Only test sockets when in use.
14428         * modules/nonblocking-tests (Depends-on): Drop socket.
14429         (Makefile.am): Link even if sockets are not present.
14430         * modules/pipe2-tests (Makefile.am): Likewise.
14431         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
14432
14433         pipe2: fix O_NONBLOCK support on mingw
14434         * modules/pipe2 (Depends-on): Add nonblocking.
14435         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
14436         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
14437         * tests/test-nonblocking.c (main): Likewise.
14438         * modules/pipe2-tests (Makefile.am): Avoid link failure.
14439
14440         fcntl-h: fix O_ACCMODE on cygwin
14441         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
14442         * lib/fcntl.in.h (O_ACCMODE): Fix it.
14443
14444         pipe-filter: drop O_NONBLOCK workarounds
14445         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
14446         * modules/pipe-filter-ii (Depends-on): Likewise.
14447         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
14448
14449         nonblocking: provide O_NONBLOCK for mingw
14450         * modules/nonblocking (Depends-on): Add open.
14451         (configure.ac): Set new witness macro.
14452         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
14453         * modules/fcntl-h (Makefile.am): Substitute it.
14454         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
14455         nonblocking module is in use.
14456         * lib/nonblocking.c: Adjust portability test.
14457         * lib/open.c (open): Don't let native open see gnulib flag.
14458         * tests/test-fcntl-h.c (main): Enhance test.
14459         * tests/test-open.h (test_open): Likewise.
14460         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
14461
14462         careadlinkat: fix compilation error on mingw
14463         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
14464         within struct allocator.
14465
14466 2011-04-06  Eric Blake  <eblake@redhat.com>
14467
14468         binary-io: relicense under LGPLv2+
14469         * modules/binary-io (License): Relax to LGPLv2+.
14470         Requested for libvirt, and required by pipe2.
14471
14472 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
14473
14474         verify: use _Static_assert if available
14475         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
14476         (verify_true, verify): Use it if available.  This generates better
14477         diagnostics with GCC 4.6.0 and later.
14478
14479 2011-04-05  Bruno Haible  <bruno@clisp.org>
14480
14481         Remove leftover generated .h files after config.status changed.
14482
14483         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
14484         GL_GENERATE_ALLOCA_H.
14485         * modules/alloca-opt (Makefile.am): Remove alloca.h if
14486         GL_GENERATE_ALLOCA_H evaluates to false.
14487
14488         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
14489         GL_GENERATE_ARGZ_H.
14490         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
14491         evaluates to false.
14492
14493         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
14494         GL_GENERATE_BYTESWAP_H.
14495         * modules/byteswap (Makefile.am): Remove byteswap.h if
14496         GL_GENERATE_BYTESWAP_H evaluates to false.
14497
14498         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
14499         GL_GENERATE_ERRNO_H.
14500         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
14501         evaluates to false.
14502
14503         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
14504         GL_GENERATE_FLOAT_H.
14505         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
14506         evaluates to false.
14507
14508         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
14509         GL_GENERATE_FNMATCH_H.
14510         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
14511         GL_GENERATE_FNMATCH_H evaluates to false.
14512
14513         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
14514         GL_GENERATE_GLOB_H.
14515         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
14516         evaluates to false.
14517
14518         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
14519         automake conditional GL_GENERATE_ICONV_H.
14520         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
14521         evaluates to false.
14522
14523         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
14524         GL_GENERATE_NETINET_IN_H.
14525         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
14526         GL_GENERATE_NETINET_IN_H evaluates to false.
14527
14528         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
14529         conditional GL_GENERATE_PTHREAD_H.
14530         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
14531         * modules/pthread (Makefile.am): Remove pthread.h if
14532         GL_GENERATE_PTHREAD_H evaluates to false.
14533
14534         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
14535         GL_GENERATE_SCHED_H.
14536         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
14537         evaluates to false.
14538
14539         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
14540         conditional GL_GENERATE_SELINUX_CONTEXT_H.
14541         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
14542         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
14543
14544         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
14545         GL_GENERATE_STDARG_H.
14546         * modules/stdarg (Makefile.am): Remove stdarg.h if
14547         GL_GENERATE_STDARG_H evaluates to false.
14548
14549         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
14550         GL_GENERATE_STDBOOL_H.
14551         * modules/stdbool (Makefile.am): Remove stdbool.h if
14552         GL_GENERATE_STDBOOL_H evaluates to false.
14553
14554         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
14555         conditional GL_GENERATE_STDDEF_H.
14556         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
14557         * modules/stddef (Makefile.am): Remove stddef.h if
14558         GL_GENERATE_STDDEF_H evaluates to false.
14559
14560         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
14561         GL_GENERATE_STDINT_H.
14562         * modules/stdint (Makefile.am): Remove stdint.h if
14563         GL_GENERATE_STDINT_H evaluates to false.
14564
14565         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
14566         GL_GENERATE_SYSEXITS_H.
14567         * modules/sysexits (Makefile.am): Remove sysexits.h if
14568         GL_GENERATE_SYSEXITS_H evaluates to false.
14569
14570         Reported by Karl Berry and Ralf Wildenhues.
14571
14572 2011-04-05  Bruno Haible  <bruno@clisp.org>
14573
14574         Ensure to rebuild generated .h files when config.status has changed.
14575         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
14576         config.status.
14577         * modules/ctype (Makefile.am): Likewise.
14578         * modules/dirent (Makefile.am): Likewise.
14579         * modules/errno (Makefile.am): Likewise.
14580         * modules/fcntl-h (Makefile.am): Likewise.
14581         * modules/float (Makefile.am): Likewise.
14582         * modules/getopt-posix (Makefile.am): Likewise.
14583         * modules/glob (Makefile.am): Likewise.
14584         * modules/iconv-h (Makefile.am): Likewise.
14585         * modules/inttypes (Makefile.am): Likewise.
14586         * modules/langinfo (Makefile.am): Likewise.
14587         * modules/locale (Makefile.am): Likewise.
14588         * modules/math (Makefile.am): Likewise.
14589         * modules/netdb (Makefile.am): Likewise.
14590         * modules/netinet_in (Makefile.am): Likewise.
14591         * modules/poll-h (Makefile.am): Likewise.
14592         * modules/pthread (Makefile.am): Likewise.
14593         * modules/pty (Makefile.am): Likewise.
14594         * modules/sched (Makefile.am): Likewise.
14595         * modules/search (Makefile.am): Likewise.
14596         * modules/selinux-h (Makefile.am): Likewise.
14597         * modules/signal (Makefile.am): Likewise.
14598         * modules/spawn (Makefile.am): Likewise.
14599         * modules/stdarg (Makefile.am): Likewise.
14600         * modules/stdbool (Makefile.am): Likewise.
14601         * modules/stddef (Makefile.am): Likewise.
14602         * modules/stdint (Makefile.am): Likewise.
14603         * modules/stdio (Makefile.am): Likewise.
14604         * modules/stdlib (Makefile.am): Likewise.
14605         * modules/string (Makefile.am): Likewise.
14606         * modules/strings (Makefile.am): Likewise.
14607         * modules/sys_file (Makefile.am): Likewise.
14608         * modules/sys_ioctl (Makefile.am): Likewise.
14609         * modules/sys_select (Makefile.am): Likewise.
14610         * modules/sys_socket (Makefile.am): Likewise.
14611         * modules/sys_stat (Makefile.am): Likewise.
14612         * modules/sys_time (Makefile.am): Likewise.
14613         * modules/sys_times (Makefile.am): Likewise.
14614         * modules/sys_utsname (Makefile.am): Likewise.
14615         * modules/sys_wait (Makefile.am): Likewise.
14616         * modules/sysexits (Makefile.am): Likewise.
14617         * modules/termios (Makefile.am): Likewise.
14618         * modules/time (Makefile.am): Likewise.
14619         * modules/unistd (Makefile.am): Likewise.
14620         * modules/wchar (Makefile.am): Likewise.
14621         * modules/wctype-h (Makefile.am): Likewise.
14622         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
14623
14624 2011-04-05  Bruno Haible  <bruno@clisp.org>
14625
14626         pipe2: Relicense under LGPLv2+.
14627         * modules/pipe2 (License): Change to LGPLv2+.
14628         Requested by Eric Blake, for libvirt.
14629
14630 2011-04-05  Bruce Korb  <bkorb@gnu.org>
14631
14632         bootstrap: compute gnulib_extra_files after updating build_aux
14633         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
14634         change build_aux or also supply gnulib_extra_files.  Handle correctly.
14635
14636 2011-04-05  Eric Blake  <eblake@redhat.com>
14637
14638         bootstrap: preserve git whitelist item sorting
14639         * build-aux/bootstrap (sort_patterns): New function.
14640         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
14641
14642 2011-04-05  Simon Josefsson  <simon@josefsson.org>
14643
14644         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
14645         sc_space_tab check.
14646
14647 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
14648
14649         areadlink, areadlinkat: rewrite in terms of careadlinkat
14650         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
14651         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
14652         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
14653         (malloc, realloc): Remove #undefs.
14654         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
14655         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
14656         readlink, ssize_t, stdint, unistd.
14657         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
14658         areadlink, stdint.
14659
14660         careadlinkat: new module
14661         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
14662         * modules/careadlinkat: New files, written by me with
14663         a review and feedback from Ben Pfaff in
14664         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
14665
14666 2011-04-01  Bruno Haible  <bruno@clisp.org>
14667
14668         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
14669         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
14670         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
14671         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
14672         Reported by Bruce Korb <bruce.korb@gmail.com>.
14673
14674 2011-04-01  Bruno Haible  <bruno@clisp.org>
14675
14676         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
14677         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
14678         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
14679         * modules/wcpcpy (Depends-on): Add extensions.
14680         * modules/wcpncpy (Depends-on): Likewise.
14681         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
14682         systems.
14683         * doc/posix-functions/wcpncpy.texi: Likewise.
14684         * doc/posix-functions/wcwidth.texi: Likewise.
14685
14686 2011-03-31  Eric Blake  <eblake@redhat.com>
14687
14688         nonblocking: fix mingw test failures
14689         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
14690         non-blocking flag on regular file.
14691         (get_nonblocking_flag): Set errno on invalid fd.
14692         * tests/test-nonblocking.c (main): Avoid test failure on
14693         directories if fchdir is not active.
14694         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
14695
14696 2011-03-31  Bruno Haible  <bruno@clisp.org>
14697
14698         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
14699         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
14700         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
14701         Reported by Simon Josefsson <simon@josefsson.org>.
14702
14703 2011-03-31  Bruno Haible  <bruno@clisp.org>
14704         and Eric Blake  <eblake@redhat.com>
14705
14706         nonblocking: new module
14707         * modules/nonblocking: New module.
14708         * modules/nonblocking-tests: Likewise.
14709         * lib/nonblocking.h: New file.
14710         * lib/nonblocking.c: Likewise.
14711         * tests/test-nonblocking.c: New test.
14712         * lib/ioctl.c (ioctl) [mingw]: Update comment.
14713
14714 2011-03-30  Bruno Haible  <bruno@clisp.org>
14715
14716         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
14717         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
14718         instead of 'printf' format for GCC >= 4.4.
14719         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
14720         (fprintf, printf, vfprintf, vprintf): Declare with
14721         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
14722         the system's vfprintf() function.
14723         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
14724
14725 2011-03-30  Eric Blake  <eblake@redhat.com>
14726
14727         passfd: fix scoping bug
14728         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
14729         before sendmsg/recvmsg.
14730
14731         passfd: standardize coding conventions
14732         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
14733         can be learned at compile time.
14734         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
14735         ifdefs.
14736         (sendfd, recvfd): Follow gnulib code conventions.
14737
14738         passfd: fix incorrect sendmsg arguments
14739         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
14740         incorrect msg_controllen value.
14741         * modules/passfd-tests (Depends-on): Check for alarm.
14742         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
14743         Reported by Bastien ROUCARIES.
14744
14745 2011-03-30  Bruno Haible  <bruno@clisp.org>
14746
14747         c-strcasestr: Relicense under LGPLv2+.
14748         * modules/c-strcasestr (License): Change to LGPLv2+.
14749         Requested by Eric Blake, for libvirt.
14750
14751 2011-03-30  Simon Josefsson  <simon@josefsson.org>
14752
14753         * users.txt: Add libidn2.  Fix libtasn1 link.
14754
14755 2011-03-30  Jim Meyering  <meyering@redhat.com>
14756
14757         tests: readlink* ("",... fails with EINVAL on newer kernels
14758         readlink and readlinkat have typically failed with ENOENT for
14759         the invalid, empty file name,  "".  However, with the advent
14760         of linux-2.6.39, they fail with EINVAL.
14761         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
14762         when operating on the empty file name.
14763         * tests/test-readlink.h (test_readlink): Likewise.
14764
14765 2011-03-29  Bruno Haible  <bruno@clisp.org>
14766
14767         Relicense some modules under LGPLv2+, for libidn2.
14768         * modules/array-mergesort (License): Change to LGPLv2+.
14769         * modules/c-strcaseeq (License): Likewise.
14770         * modules/striconveh (License): Likewise.
14771         * modules/striconveha (License): Likewise.
14772         * modules/uniconv/base (License): Likewise.
14773         * modules/uniconv/u8-conv-from-enc (License): Likewise.
14774         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
14775         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
14776         * modules/unictype/base (License): Likewise.
14777         * modules/unictype/bidiclass-of (License): Likewise.
14778         * modules/unictype/category-M (License): Likewise.
14779         * modules/unictype/category-none (License): Likewise.
14780         * modules/unictype/category-of (License): Likewise.
14781         * modules/unictype/category-test (License): Likewise.
14782         * modules/unictype/category-test-withtable (License): Likewise.
14783         * modules/unictype/combining-class (License): Likewise.
14784         * modules/unictype/joiningtype-of (License): Likewise.
14785         * modules/unictype/scripts (License): Likewise.
14786         * modules/uninorm/base (License): Likewise.
14787         * modules/uninorm/canonical-decomposition (License): Likewise.
14788         * modules/uninorm/composition (License): Likewise.
14789         * modules/uninorm/decompose-internal (License): Likewise.
14790         * modules/uninorm/decomposition-table (License): Likewise.
14791         * modules/uninorm/nfc (License): Likewise.
14792         * modules/uninorm/nfd (License): Likewise.
14793         * modules/uninorm/u32-normalize (License): Likewise.
14794         * modules/unistr/base (License): Likewise.
14795         * modules/unistr/u32-cpy (License): Likewise.
14796         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
14797         * modules/unistr/u32-to-u8 (License): Likewise.
14798         * modules/unistr/u32-uctomb (License): Likewise.
14799         * modules/unistr/u8-check (License): Likewise.
14800         * modules/unistr/u8-mblen (License): Likewise.
14801         * modules/unistr/u8-mbtouc (License): Likewise.
14802         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
14803         * modules/unistr/u8-mbtoucr (License): Likewise.
14804         * modules/unistr/u8-prev (License): Likewise.
14805         * modules/unistr/u8-strlen (License): Likewise.
14806         * modules/unistr/u8-to-u32 (License): Likewise.
14807         * modules/unistr/u8-uctomb (License): Likewise.
14808         * modules/unitypes (License): Likewise.
14809         Requested by Simon Josefsson.
14810
14811 2011-03-29  Simon Josefsson  <simon@josefsson.org>
14812
14813         lib-symbol-visibility: Add a notice.
14814         * modules/lib-symbol-visibility (Notice): New field.
14815
14816 2011-03-29  Bruno Haible  <bruno@clisp.org>
14817
14818         getaddrinfo: Doc fix.
14819         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
14820         section "fixed in Gnulib".
14821
14822 2011-03-28  Simon Josefsson  <simon@josefsson.org>
14823
14824         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
14825         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
14826
14827 2011-03-26  Bruno Haible  <bruno@clisp.org>
14828
14829         unictype/property-byname: Reduce the number of load-time relocations.
14830         * lib/unictype/pr_byname.c: Include <stdlib.h>.
14831         (UC_PROPERTY_INDEX_*): New enumeration values.
14832         (uc_property_byname): Convert an index from the lookup table to an
14833         uc_property_t.
14834         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
14835         values.
14836
14837 2011-03-26  Bruno Haible  <bruno@clisp.org>
14838
14839         unictype/property-byname: Allow omitted word separators and aliases.
14840         * lib/unictype/pr_byname.gperf: Add property names without word
14841         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
14842         for 'space'.
14843
14844 2011-03-26  Bruno Haible  <bruno@clisp.org>
14845
14846         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
14847         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
14848         also hyphens to space.
14849         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
14850         without spaces.
14851         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
14852
14853 2011-03-26  Bruno Haible  <bruno@clisp.org>
14854
14855         unictype/joiningtype-byname: Recognize long names as well.
14856         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
14857         a long name.
14858         * lib/unictype/joiningtype_byname.c: Include <string.h>,
14859         unictype/joiningtype_byname.h.
14860         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
14861         * lib/unictype/joiningtype_byname.gperf: New file.
14862         * modules/unictype/joiningtype-byname (Files): Add
14863         lib/unictype/joiningtype_byname.gperf.
14864         (Depends-on): Add gperf.
14865         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
14866         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
14867         long names.
14868
14869         Tests for module 'unictype/joiningtype-longname'.
14870         * modules/unictype/joiningtype-longname-tests: New file.
14871         * tests/unictype/test-joiningtype_longname.c: New file.
14872
14873         New module 'unictype/joiningtype-longname'.
14874         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
14875         * lib/unictype/joiningtype_longname.c: New file.
14876         * modules/unictype/joiningtype-longname: New file.
14877         * modules/unictype/joiningtype-all (Depends-on): Add
14878         unictype/joiningtype-longname.
14879
14880 2011-03-26  Bruno Haible  <bruno@clisp.org>
14881
14882         unictype/bidiclass-byname: Recognize long names as well.
14883         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
14884         name.
14885         * lib/unictype/bidi_byname.c: Include <string.h>,
14886         unictype/bidi_byname.h.
14887         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
14888         * lib/unictype/bidi_byname.gperf: New file.
14889         * modules/unictype/bidiclass-byname (Files): Add
14890         lib/unictype/bidi_byname.gperf.
14891         (Depends-on): Add gperf.
14892         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
14893         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
14894         long names.
14895
14896         Tests for module 'unictype/bidiclass-longname'.
14897         * modules/unictype/bidiclass-longname-tests: New file.
14898         * tests/unictype/test-bidi_longname.c: New file.
14899
14900         New module 'unictype/bidiclass-longname'.
14901         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
14902         * lib/unictype/bidi_longname.c: New file.
14903         * modules/unictype/bidiclass-longname: New file.
14904         * modules/unictype/bidiclass-all (Depends-on): Add
14905         unictype/bidiclass-longname.
14906
14907 2011-03-26  Bruno Haible  <bruno@clisp.org>
14908
14909         unictype/bidi*: Rename modules.
14910         * modules/unictype/bidiclass-all: Renamed from
14911         modules/unictype/bidicategory-all.
14912         * modules/unictype/bidiclass-name: Renamed from
14913         modules/unictype/bidiclass-name.
14914         (Description): Update.
14915         * modules/unictype/bidiclass-name-tests: Renamed from
14916         modules/unictype/bidicategory-name-tests.
14917         * modules/unictype/bidiclass-byname: Renamed from
14918         modules/unictype/bidicategory-byname.
14919         (Description): Update.
14920         * modules/unictype/bidiclass-byname-tests: Renamed from
14921         modules/unictype/bidicategory-byname-tests.
14922         * modules/unictype/bidiclass-of: Renamed from
14923         modules/unictype/bidicategory-of.
14924         (Description): Update.
14925         * modules/unictype/bidiclass-of-tests: Renamed from
14926         modules/unictype/bidicategory-of-tests.
14927         * modules/unictype/bidiclass-test: Renamed from
14928         modules/unictype/bidicategory-test.
14929         (Description): Update.
14930         * modules/unictype/bidiclass-test-tests: Renamed from
14931         modules/unictype/bidicategory-test-tests.
14932         * modules/unictype/bidicategory-all: New file, a simple redirection.
14933         * modules/unictype/bidicategory-name: Likewise.
14934         * modules/unictype/bidicategory-byname: Likewise.
14935         * modules/unictype/bidicategory-of: Likewise.
14936         * modules/unictype/bidicategory-test: Likewise.
14937         * modules/unictype/property-bidi-* (Dependencies): Update.
14938         * lib/unictype/bidi_*.c: Update comment.
14939
14940 2011-03-26  Bruno Haible  <bruno@clisp.org>
14941
14942         unictype/bidi*: Rename functions, part 2.
14943         * modules/unictype/bidicategory-name (configure.ac): Update required
14944         libunistring version.
14945         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
14946
14947 2011-03-25  Bruno Haible  <bruno@clisp.org>
14948
14949         New module 'unictype/combining-class-all'.
14950         * modules/unictype/combining-class-all: New file.
14951
14952         Tests for module 'unictype/combining-class-byname'.
14953         * modules/unictype/combining-class-byname-tests: New file.
14954         * tests/unictype/test-combiningclass_byname.c: New file.
14955
14956         New module 'unictype/combining-class-byname'.
14957         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
14958         * lib/unictype/combiningclass_byname.c: New file.
14959         * lib/unictype/combiningclass_byname.gperf: New file.
14960         * modules/unictype/combining-class-byname: New file.
14961
14962         Tests for module 'unictype/combining-class-longname'.
14963         * modules/unictype/combining-class-longname-tests: New file.
14964         * tests/unictype/test-combiningclass_longname.c: New file.
14965
14966         New module 'unictype/combining-class-longname'.
14967         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
14968         * lib/unictype/combiningclass_longname.c: New file.
14969         * modules/unictype/combining-class-longname: New file.
14970
14971         Tests for module 'unictype/combining-class-name'.
14972         * modules/unictype/combining-class-name-tests: New file.
14973         * tests/unictype/test-combiningclass_name.c: New file.
14974
14975         New module 'unictype/combining-class-name'.
14976         * lib/unictype.in.h (uc_combining_class_name): New declaration.
14977         * lib/unictype/combiningclass_name.c: New file.
14978         * modules/unictype/combining-class-name: New file.
14979
14980 2011-03-25  Bruno Haible  <bruno@clisp.org>
14981
14982         unictype/combining-class: Rename source files.
14983         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
14984         of unictype/combining.h.
14985         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
14986         Update.
14987         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
14988         * modules/unictype/combining-class (Description): Fix.
14989         (Files, Makefile.am): Update.
14990         * tests/unictype/test-combiningclass.c: Renamed from
14991         tests/unictype/test-combining.c.
14992         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
14993
14994 2011-03-25  Bruno Haible  <bruno@clisp.org>
14995
14996         unictype: Update list of canonical combining classes.
14997         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
14998
14999 2011-03-25  Bruno Haible  <bruno@clisp.org>
15000
15001         unictype/category-byname: Recognize long names as well.
15002         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
15003         a long name.
15004         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
15005         unictype/categ_byname.h.
15006         (UC_CATEGORY_INDEX_*): New enumeration values.
15007         (uc_general_category_byname): Use uc_general_category_lookup and
15008         convert from index to value.
15009         * lib/unictype/categ_byname.gperf: New file.
15010         * modules/unictype/category-byname (Files): Add
15011         lib/unictype/categ_byname.gperf.
15012         (Depends-on): Add gperf.
15013         (Makefile.am): Add rule for generating unictype/categ_byname.h.
15014         * tests/unictype/test-categ_byname.c (main): Test the recognition of
15015         long names.
15016
15017         Tests for module 'unictype/category-longname'.
15018         * modules/unictype/category-longname-tests: New file.
15019         * tests/unictype/test-categ_longname.c: New file.
15020
15021         New module 'unictype/category-longname'.
15022         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
15023         * lib/unictype/categ_longname.c: New file.
15024         * modules/unictype/category-longname: New file.
15025         * modules/unictype/category-all (Depends-on): Add it.
15026
15027 2011-03-25  Bruno Haible  <bruno@clisp.org>
15028
15029         Tests for module 'unictype/category-LC'.
15030         * modules/unictype/category-LC-tests: New file.
15031         * tests/unictype/test-categ_LC.c: New file, automatically generated.
15032
15033         New module 'unictype/category-LC'.
15034         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
15035         (UC_CATEGORY_LC): New declaration.
15036         (UC_CASED_LETTER): New macro.
15037         * lib/gen-uni-tables.c (is_category_LC): New function.
15038         (output_categories): Also handle category LC.
15039         (UC_CATEGORY_MASK_LC): New enumeration value.
15040         (general_category_byname): Also handle category LC.
15041         * lib/unictype/categ_LC.c: New file.
15042         * lib/unictype/categ_LC.h: New file, automatically generated.
15043         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
15044         category LC.
15045         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
15046         * modules/unictype/category-LC: New file.
15047         * modules/unictype/category-byname (Depends-on): Add
15048         unictype/category-LC.
15049         * modules/unictype/category-all (Depends-on): Likewise.
15050
15051 2011-03-25  Eric Blake  <eblake@redhat.com>
15052
15053         xmalloc: revert yesterday's regression
15054         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
15055         realloc's underlying behavior (allowing allocation of zero-size
15056         objects, especially if malloc-gnu is also in use).
15057
15058 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
15059
15060         maint.mk: add missing version to VC-tag
15061         * top/maint.mk: git tag was missing actual tag name; add it.
15062
15063         valgrind: do leak checking, and exit with code 1 on error (not 0)
15064         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
15065         to VALGRIND.
15066
15067 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
15068
15069         posix-modules: say what it does.
15070         * posix-modules: Add a line to the --help output saying what it does.
15071
15072 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
15073
15074         xmalloc: Do not leak if underlying realloc is C99 compatible.
15075         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
15076         This avoids a leak on C99-based systems.  See
15077         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
15078
15079 2011-03-24  Eric Blake  <eblake@redhat.com>
15080
15081         realloc: document portability problem
15082         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
15083         passing 0 size to realloc.
15084
15085 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
15086
15087         doc: update users.txt
15088         * users.txt: Add cvsps, tmpwatch
15089
15090 2011-03-23  Matt Rice  <ratmice@gmail.com>
15091
15092         doc: update users.txt
15093         * users.txt: Add gdb.
15094
15095 2011-03-23  Jim Meyering  <meyering@redhat.com>
15096
15097         doc: update users.txt
15098         Looking through matches up to the following URL (there are still
15099         several more pages), I found several projects that use gnulib:
15100         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
15101         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
15102         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
15103
15104 2011-03-22  Bruno Haible  <bruno@clisp.org>
15105
15106         unictype/bidi*: Rename functions.
15107         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
15108         uc_bidi_class, uc_is_bidi_class): New declarations.
15109         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
15110         uc_bidi_category_byname.
15111         (uc_bidi_category_byname): New function.
15112         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
15113         u_bidi_category_name.
15114         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
15115         (uc_bidi_category_name): New function.
15116         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
15117         uc_bidi_category.
15118         (uc_bidi_category): New function.
15119         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
15120         uc_is_bidi_category. Invoke uc_bidi_class.
15121         (uc_is_bidi_category): New function.
15122         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
15123         instead of uc_bidi_category_byname.
15124         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
15125         instead of uc_bidi_category_name.
15126         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
15127         uc_bidi_category.
15128         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
15129         instead of uc_is_bidi_category.
15130
15131 2011-03-21  Bruno Haible  <bruno@clisp.org>
15132
15133         New module 'unictype/joininggroup-all'.
15134         * modules/unictype/joininggroup-all: New file.
15135
15136         Tests for module 'unictype/joininggroup-of'.
15137         * modules/unictype/joininggroup-of-tests: New file.
15138         * tests/unictype/test-joininggroup_of.c: New file.
15139         * tests/unictype/test-joininggroup_of.h: New file, automatically
15140         generated by gen-uni-tables.
15141
15142         New module 'unictype/joininggroup-of'.
15143         * modules/unictype/joininggroup-of: New file.
15144         * lib/unictype/joininggroup_of.c: New file.
15145         * lib/unictype/joininggroup_of.h: New file, automatically generated by
15146         gen-uni-tables.
15147
15148         Tests for module 'unictype/joininggroup-byname'.
15149         * modules/unictype/joininggroup-byname-tests: New file.
15150         * tests/unictype/test-joininggroup_byname.c: New file.
15151
15152         New module 'unictype/joininggroup-byname'.
15153         * modules/unictype/joininggroup-byname: New file.
15154         * lib/unictype/joininggroup_byname.c: New file.
15155         * lib/unictype/joininggroup_byname.gperf: New file.
15156
15157         Tests for module 'unictype/joininggroup-name'.
15158         * modules/unictype/joininggroup-name-tests: New file.
15159         * tests/unictype/test-joininggroup_name.c: New file.
15160
15161         New module 'unictype/joininggroup-name'.
15162         * modules/unictype/joininggroup-name: New file.
15163         * lib/unictype/joininggroup_name.c: New file.
15164         * lib/unictype/joininggroup_name.h: New file.
15165
15166         New module 'unictype/joiningtype-all'.
15167         * modules/unictype/joiningtype-all: New file.
15168
15169         Tests for module 'unictype/joiningtype-of'.
15170         * modules/unictype/joiningtype-of-tests: New file.
15171         * tests/unictype/test-joiningtype_of.c: New file.
15172         * tests/unictype/test-joiningtype_of.h: New file, automatically
15173         generated by gen-uni-tables.
15174
15175         New module 'unictype/joiningtype-of'.
15176         * modules/unictype/joiningtype-of: New file.
15177         * lib/unictype/joiningtype_of.c: New file.
15178         * lib/unictype/joiningtype_of.h: New file, automatically generated by
15179         gen-uni-tables.
15180
15181         Tests for module 'unictype/joiningtype-byname'.
15182         * modules/unictype/joiningtype-byname-tests: New file.
15183         * tests/unictype/test-joiningtype_byname.c: New file.
15184
15185         New module 'unictype/joiningtype-byname'.
15186         * modules/unictype/joiningtype-byname: New file.
15187         * lib/unictype/joiningtype_byname.c: New file.
15188
15189         Tests for module 'unictype/joiningtype-name'.
15190         * modules/unictype/joiningtype-name-tests: New file.
15191         * tests/unictype/test-joiningtype_name.c: New file.
15192
15193         New module 'unictype/joiningtype-name'.
15194         * modules/unictype/joiningtype-name: New file.
15195         * lib/unictype/joiningtype_name.c: New file.
15196
15197         unictype: Add support for Arabic shaping properties.
15198         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
15199         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
15200         declarations.
15201         (UC_JOINING_GROUP_*): New enumeration values.
15202         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
15203         declarations.
15204         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
15205         (unicode_joining_type): New variable.
15206         (UC_JOINING_GROUP_*): New enumeration values.
15207         (unicode_joining_group): New variable.
15208         (fill_arabicshaping, joining_type_as_c_identifier,
15209         output_joining_type_test, output_joining_type,
15210         joining_group_as_c_identifier, output_joining_group_test,
15211         output_joining_group): New functions.
15212         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
15213         fill_arabicshaping and output_joining_type_test, output_joining_type,
15214         output_joining_group_test, output_joining_group.
15215         Reported by Simon Josefsson.
15216
15217 2011-03-21  Jim Meyering  <meyering@redhat.com>
15218
15219         strftime: fix a bug in yesterday's change
15220         * lib/strftime.c (add): Accommodate width's initial value of -1.
15221         Otherwise, nstrftime would copy uninitialized data into
15222         the result buffer.
15223
15224 2011-03-21  Jim Meyering  <meyering@redhat.com>
15225
15226         tests: add strftime-tests module
15227         * tests/test-strftime.c: New file.
15228         * modules/strftime-tests: New module.
15229
15230 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15231
15232         strftime: don't assume a byte count fits in 'int'
15233         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
15234         found this problem by static analysis, using gcc -Wstrict-overflow
15235         (GCC 4.5.2, x86-64).  This reported an optimization that depended
15236         on an integer overflow having undefined behavior, but it turns out
15237         that the argument is a size, which might not fit in 'int' anyway,
15238
15239 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15240
15241         stdio: don't require ignore_value around fwrite
15242
15243         This patch works around libc bug 11959
15244         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
15245         Without this patch, applications must often write
15246         ignore_value (fwrite (...)) even though the ignore_value is
15247         not helpful here.  It's common to write many objects, using
15248         fwrite/printf/etc., and then use ferror to detect output error.
15249
15250         I considered making this patch optional, but decided against it,
15251         because libc is obviously being inconsistent here: there is no
15252         reason libc should insist that user code must inspect fwrite
15253         return's value without also insisting that it inspect printf's,
15254         putchar's, etc.  If user code wants to have a strict style where
15255         all these functions' values are checked (so that ferror need not
15256         be checked), we could add support for that style in a new gnulib
15257         module, but in the meantime it's better to be consistent and to
15258         support common usage.
15259
15260         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
15261         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
15262         that we are compiling in checking mode, and if not C++, and
15263         if not already wrapping fwrite for some other reason.
15264         (fwrite): #define to rpl_fwrite if the latter is defined.
15265
15266 2011-03-20  Bruno Haible  <bruno@clisp.org>
15267
15268         verror: Fix compilation error introduced on 2011-02-13.
15269         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
15270         instead of __attribute__.
15271         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
15272
15273 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
15274             Bruno Haible  <bruno@clisp.org>
15275
15276         socklen: do not depend on sys_socket
15277         While trying to modify Emacs to use gnulib's socklen module,
15278         I discovered a circular dependency: socklen depends on sys_socket
15279         and vice versa.  Emacs can use socklen, but it does not need
15280         sys_socket because it has its own substitute for sys/socket.h.
15281         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
15282         gl_TYPE_SOCKLEN_T.
15283         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
15284         gl_PREREQ_SYS_H_SOCKET.
15285         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
15286         gl_PREREQ_SYS_H_SOCKET.
15287         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
15288         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
15289         * modules/socklen (Depends-on): Do not depend on sys_socket.
15290         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
15291
15292 2011-03-20  Jim Meyering  <meyering@redhat.com>
15293
15294         maint.mk: sort file names *after* new transformation
15295         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
15296         prefix would have led to an unwarranted failure in GNU parted.
15297         Sort after that transformation.
15298
15299 2011-03-19  Jim Meyering  <meyering@redhat.com>
15300
15301         maint.mk: fix po-file syntax-check rule
15302         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
15303         Patch by Bruno Haible.
15304
15305 2011-03-19  Bruno Haible  <bruno@clisp.org>
15306
15307         socklen: Update comment.
15308         * m4/socklen.m4: Update comment about platforms.
15309
15310 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15311             Bruno Haible  <bruno@clisp.org>
15312
15313         inet_ntop, inet_pton: Simplify.
15314         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
15315         documented to provide socklen_t and we already depend on sys_socket.
15316         * modules/inet_pton (Depends-on): Likewise.
15317         * lib/arpa_inet.in.h: Adjust comment.
15318
15319 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
15320             Bruno Haible  <bruno@clisp.org>
15321
15322         netdb: Simplify.
15323         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
15324         documented to provide socklen_t and we already depend on sys_socket.
15325         * lib/netdb.in.h: Adjust comment.
15326
15327 2011-03-19  Bruno Haible  <bruno@clisp.org>
15328
15329         sys_socket, netdb: Document problem with socklen_t.
15330         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
15331         platforms.
15332         * doc/posix-headers/netdb.texi: Likewise.
15333
15334 2011-03-18  Eric Blake  <eblake@redhat.com>
15335
15336         maint.mk: let po check work in VPATH build
15337         * top/maint.mk (po_file): Allow cfg.mk override.
15338         (sc_po_check): Allow VPATH use.
15339         Reported by Jiri Denemark.
15340
15341 2011-03-16  Jim Meyering  <meyering@redhat.com>
15342
15343         maint.mk: allow fine-grained syntax-check exclusion via Make variables
15344         Before, you would have had to create one .x-sc_ file per rule in order
15345         to exempt offending files.  Now, you may instead use a Make variable --
15346         usually defined in cfg.mk -- whose name identifies the affected rule.
15347         * top/maint.mk (_sc_excl): Define.
15348         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
15349         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
15350
15351 2011-03-13  Bruno Haible  <bruno@clisp.org>
15352
15353         ignore-value tests: Avoid warnings.
15354         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
15355         empty for gcc < 3.4.
15356
15357 2011-03-13  Bruno Haible  <bruno@clisp.org>
15358
15359         passfd: Fix link error on Solaris.
15360         * modules/passfd (Description): Correct.
15361         (Depends-on): Add socketlib.
15362         (Link): New section.
15363         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
15364
15365 2011-03-13  Bruno Haible  <bruno@clisp.org>
15366
15367         passfd: Fix link error on AIX 5.2.
15368         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
15369
15370 2011-03-13  Bruno Haible  <bruno@clisp.org>
15371
15372         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
15373         * lib/sys_socket.in.h: Include <stddef.h>.
15374         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
15375         CMSG_FIRSTHDR. Remove unused variable.
15376
15377 2011-03-13  Bruno Haible  <bruno@clisp.org>
15378
15379         passfd: Fix compilation error on OpenBSD.
15380         * lib/passfd.c: Include <sys/uio.h>.
15381
15382 2011-03-13  Bruno Haible  <bruno@clisp.org>
15383
15384         passfd test: Fix warnings.
15385         * tests/test-passfd.c: Include <sys/wait.h>.
15386         (main): Fix typo.
15387
15388 2011-03-13  Bruno Haible  <bruno@clisp.org>
15389
15390         passfd module, part 4, tweaks.
15391         * tests/test-passfd.c: Reorder includes.
15392         (main): Fix perror and printf calls.
15393
15394 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15395
15396         passfd module, part 4.
15397         * modules/passfd-tests: New file.
15398         * tests/test-passfd.c: New file.
15399
15400 2011-03-13  Jim Meyering  <meyering@redhat.com>
15401
15402         Makefile: rely on GNU make; derive syntax-check rule names
15403         Rather than requiring that each sc_ rule be listed as a dependent
15404         of "check", use features of GNU make to derive the list.
15405         * Makefile (syntax-check-rules): Define.
15406         (check): Depend on the new variable, not the hard-coded list.
15407
15408 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
15409             Bruno Haible  <bruno@clisp.org>
15410
15411         passfd module, part 3.
15412         * lib/passfd.h (recvfd): Add a flags argument.
15413         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
15414         (recvfd): Add a flags argument.
15415         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
15416         exists.
15417         * modules/passfd (Depends-on): Add cloexec.
15418         Suggested by Eric Blake.
15419
15420 2011-03-13  Bruno Haible  <bruno@clisp.org>
15421
15422         passfd module, part 2, tweaks.
15423         * modules/passfd (Files): Reorder.
15424         (Depends-on): Remove errno.
15425         (Include): Remove <sys/socket.h>, <sys/un.h>.
15426         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
15427         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
15428         specification header. Include <sys/socket.h> always. Don't include
15429         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
15430         (sendfd): Clarify that it sets errno when it fails.
15431         (recvfd): Fix specification.
15432
15433 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15434
15435         passfd module, part 2.
15436         * modules/passfd: New file.
15437         * lib/passfd.h: New file.
15438         * lib/passfd.c: New file.
15439
15440 2011-03-12  Bruno Haible  <bruno@clisp.org>
15441
15442         wcswidth, mbswidth: Avoid integer overflow.
15443         * lib/wcswidth.c: Include <limits.h>.
15444         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
15445         * lib/mbswidth.c: Include <limits.h>.
15446         (mbsnwidth): Avoid 'int' overflow.
15447         Reported by Jim Meyering.
15448
15449 2011-03-12  Bruno Haible  <bruno@clisp.org>
15450
15451         futimens, utimensat: Avoid endless recursion on Solaris 10.
15452         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
15453         Solaris.
15454         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
15455         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
15456
15457 2011-03-11  Jim Meyering  <meyering@redhat.com>
15458
15459         maint.mk: relax a regexp to accommodate other formatting styles
15460         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
15461         between "ngettext" and the following "(".
15462
15463 2011-03-11  Pádraig Brady <P@draigBrady.com>
15464
15465         maint.mk: suppress a false positive warning
15466         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
15467         diagnostics are marked with ngettext.
15468
15469 2011-03-10  Eric Blake  <eblake@redhat.com>
15470
15471         wchar: add explicit dependencies, for Tru64
15472         * modules/mbmemcasecoll (Depends-on): Add wchar.
15473         * modules/mbtowc (Depends-on): Likewise.
15474         * modules/vasnprintf (Depends-on): Likewise.
15475         * modules/unistdio/u-printf-args (Depends-on): Likewise.
15476         * modules/wctomb (Depends-on): Likewise.
15477         Reported by Peter O'Gorman.
15478
15479 2011-03-08  Bruno Haible  <bruno@clisp.org>
15480
15481         passfd module, part 1, tweaks.
15482         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
15483         Improve indentation. Improve AC_MSG_CHECKING messages.
15484         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
15485         gl_SOCKET_FAMILIES.
15486
15487 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
15488
15489         passfd module, part 1.
15490         * m4/afunix.m4: New file.
15491         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
15492         sockets.
15493
15494 2011-03-08  Bruno Haible  <bruno@clisp.org>
15495
15496         regex-quote: New API.
15497         * lib/regex-quote.h: Include <stdbool.h>.
15498         (struct regex_quote_spec): New type.
15499         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
15500         New declarations.
15501         (regex_quote_length, regex_quote_copy, regex_quote): Take a
15502         'const struct regex_quote_spec *' argument.
15503         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
15504         (pcre_special): New constant.
15505         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
15506         New functions.
15507         (regex_quote_length, regex_quote_copy, regex_quote): Take a
15508         'const struct regex_quote_spec *' argument.
15509         * modules/regex-quote (Depends-on): Add stdbool.
15510         * tests/test-regex-quote.c (check): Update for new API. Add test for
15511         anchored results.
15512         * NEWS: Mention the API change.
15513         Reported by Reuben Thomas and Eric Blake.
15514
15515 2011-03-06  Bruno Haible  <bruno@clisp.org>
15516
15517         regex-quote: Fix creation of POSIX extended regular expressions.
15518         * lib/regex-quote.c (ere_special): Add grouping and alternation
15519         operators.
15520
15521 2011-03-05  Bruno Haible  <bruno@clisp.org>
15522
15523         doc: Improve doc regarding autopoint vs. gnulib.
15524         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
15525         disable autopoint while running autoreconf.
15526         Suggested by Ralf Wildenhues.
15527
15528 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15529
15530         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
15531         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
15532
15533 2011-03-03  Bruce Korb  <bkorb@gnu.org>
15534
15535         parse-duration: remove xalloc.h dependency
15536         * lib/parse-duration.c (parse_period): handle NULL return from
15537         strdup instead of calling xstrdup().
15538         * modules/parse-duration: remove "xalloc" dependency
15539
15540 2011-03-03  Matthew Booth  <mbooth@redhat.com>
15541
15542         bootstrap: honor m4_base when running aclocal
15543         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
15544
15545 2011-03-02  Jim Meyering  <meyering@redhat.com>
15546
15547         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
15548         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
15549         on request from Matt Booth.
15550
15551 2011-03-01  Eric Blake  <eblake@redhat.com>
15552
15553         test-link: work on Hurd
15554         * tests/test-link.h (test_link): Hurd rejects linking directories
15555         with EISDIR instead of the POSIX-mandated EPERM.
15556
15557 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
15558
15559         stdio: simplify by moving files to printf-posix, sigpipe
15560         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
15561         since this symbol is needed only if printf is replaced.
15562         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
15563         Require gl_ASM_SYMBOL_PREFIX.
15564         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
15565         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
15566         (Depends-on): Add 'raise'.
15567         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
15568         * modules/stdio (Files): Remove lib/stdio-write.c,
15569         m4/asm-underscore.m4.
15570         (Depends-on): Remove 'raise'.
15571
15572         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
15573         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
15574         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
15575         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
15576
15577 2011-02-28  Bruno Haible  <bruno@clisp.org>
15578
15579         localcharset: Assume ANSI C behaviour of free().
15580         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
15581         calling free().
15582         Suggested by Simon Josefsson <simon@josefsson.org>.
15583
15584 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
15585             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
15586             Bruno Haible  <bruno@clisp.org>  (tiny change)
15587
15588         On Cygwin, use /proc file system instead of win32 API.
15589         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
15590         Win32 file names.
15591         (DllMain): Simplify by removing Cygwin specific code.
15592         (find_shared_library_fullname): Use Linux specific implementation also
15593         for Cygwin.
15594         (get_shared_library_fullname): Update accordingly.
15595         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
15596         Win32 file names.
15597         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
15598         Cygwin specific code.
15599
15600 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
15601             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
15602
15603         Fix OpenMP flag detection for various Fortran compilers.
15604         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
15605         OpenMP-conditional compilation construct, to force compile
15606         failure with missing OpenMP flag.
15607         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
15608
15609 2011-02-25  Eric Blake  <eblake@redhat.com>
15610
15611         strstr: expand test coverage
15612         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
15613         compilation.
15614         * tests/test-memmem.c (main): Duplicate tests.
15615         * tests/test-strcasestr.c (main): Likewise.
15616         * tests/test-c-strcasestr.c (main): Likewise.
15617
15618 2011-02-25  Jim Meyering  <meyering@redhat.com>
15619
15620         maint.mk: detect missing-NL-at-EOF, too
15621         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
15622         it also detects when a file lacks a newline at EOF.
15623         (require_exactly_one_NL_at_EOF_): Renamed from
15624         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
15625         since people may well have .x-sc_... file names tied to the
15626         existing name.  Suggested by Eric Blake.
15627
15628 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
15629
15630         dirname: move m4/dos.m4 functionality into lib/dosname.h
15631
15632         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
15633         extracts symbols from it, puts them into config.h; but it's much
15634         easier to use the symbols directly.  filename.h already does this,
15635         but it disagrees with dos.m4 in some respects.  This patch
15636         introduces a different include file dosname.h that packages up
15637         dos.m4, and then later we can work on merging filename.h and
15638         dosname.h.  Applications that need only the easy-to-configure
15639         symbols should consider including dosname.h rather than dirname.h.
15640         * NEWS: Mention incompatible changes.
15641         * m4/dos.m4: Remove.
15642         * lib/dosname.h, modules/dosname: New files.
15643         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
15644         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
15645         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
15646         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
15647         Include dosname.h, not dirname.h.
15648         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
15649         Include dosname.h, for definitions of symbols like ISSLASH
15650         that used to be in config.h.
15651         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
15652         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
15653         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
15654         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
15655         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
15656         * modules/rmdir (Files): Likewise.
15657         * modules/stat (Files): Likewise.
15658         * modules/unlink (Files): Likewise.
15659         * modules/dirname-lgpl (Depends-on): Add dosname.
15660         * modules/lstat (Depends-on): Likewise.
15661         * modules/openat (Depends-on): Likewise.
15662         * modules/rmdir (Depends-on): Likewise.
15663         * modules/savewd (Depends-on): Likewise.
15664         * modules/stat (Depends-on): Likewise.
15665         * modules/unlink (Depends-on): Likewise.
15666         * modules/openat (Depends-on): Remove dirname-lgpl.
15667         * modules/savewd (Depends-on): Likewise.
15668         * tests/test-dirname.c: Do not use removed symbols like
15669         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
15670         the remaining symbols, e.g., ISSLASH ('\\').
15671
15672 2011-02-25  Eric Blake  <eblake@redhat.com>
15673
15674         strstr: revert patches that introduced bug and pessimization
15675         * lib/str-two-way.h: Add another reference.
15676         (two_way_short_needle, two_way_long_needle): Revert changes from
15677         2011-02-24; they pessimize search speed.
15678         (critical_factorization): Partially revert changes from
15679         2010-06-22; they violate the requirement that the left half of the
15680         needle be smaller than the period of the needle.
15681
15682 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
15683
15684         filenamecat: remove unnecessary dependency on dirname-lgpl
15685         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
15686         is no direct dependency, just an indirect one via filenamecat-lgpl.
15687
15688         remove: remove unnecessary use of m4/dos.m4
15689         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
15690         * modules/remove (FILES): Remove m4/dos.m4.
15691
15692         * lib/openat-proc.c: Don't include dirname.h; not needed.
15693
15694         backupfile: remove unnecessary use of m4/dos.m4
15695         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
15696         of its symbols are used by the backupfile code.  backupfile.c does
15697         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
15698         for the rare case of programs that want all their backup file
15699         names to live within 8+3 limits, and dos.m4 doesn't address that.
15700         * modules/backupfile (Files): Remove m4/dos.m4.
15701
15702 2011-02-24  Jim Meyering  <meyering@redhat.com>
15703
15704         strstr: fix a bug whereby strstr would mistakenly return NULL
15705         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
15706         in period calculation.
15707         (two_way_long_needle): Likewise.
15708         The original problem was reported by Mike Stump in
15709         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
15710         Ralf Wildenhues provided the short needle and haystack.
15711         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
15712         Add a more involved test to trigger the bug in two_way_long_needle.
15713
15714 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
15715
15716         gnulib-tool: remove use of bold display in help screen
15717         * gnulib-tool (func_usage): Do not use bold display anymore in the
15718         help screen.  That was just meant to be a temporary emphasis for a
15719         backward-incompatible change.
15720
15721 2011-02-23  Bruno Haible  <bruno@clisp.org>
15722
15723         Fix misindentation of preprocessor directives.
15724         * lib/argp-namefrob.h: Reindent preprocessor directives.
15725         * lib/getopt_int.h (struct _getopt_data): Likewise.
15726         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
15727         * lib/vasnprintf.c (decode_long_double): Likewise.
15728         * tests/test-argmatch.c: Insert blank lines, for clarity.
15729         * tests/test-exclude.c: Likewise.
15730
15731 2011-02-22  Bruno Haible  <bruno@clisp.org>
15732
15733         ioctl: Fix for MacOS X in 64-bit mode.
15734         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
15735         value.
15736         Suggested by Eric Blake.
15737         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
15738
15739 2011-02-22  Jim Meyering  <meyering@redhat.com>
15740
15741         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
15742         * Makefile (sc_cpp_indent_check): Don't limit the check to files
15743         in lib/.
15744
15745 2011-02-22  Eric Blake  <eblake@redhat.com>
15746
15747         maint: avoid any CDPATH issue
15748         * Makefile (sc_cpp_indent_check): Anchor cd argument.
15749
15750         maint: adjust cpp indentation for my modules, as well
15751         * Makefile (sc_cpp_indent_check): Add my name.
15752         * lib/fbufmode.c: Filter through cppi.
15753         * lib/fpurge.c: Likewise.
15754         * lib/freadable.c: Likewise.
15755         * lib/freading.c: Likewise.
15756         * lib/fwritable.c: Likewise.
15757         * lib/fwriting.c: Likewise.
15758         * lib/sigaction.c: Likewise.
15759
15760 2011-02-22  Jim Meyering  <meyering@redhat.com>
15761
15762         maint: adjust cpp indentation to reflect nesting depth
15763         I.e., in a block of code that begins with an unnested "#if",
15764         put one space between the "#" in column 1 and following token.
15765         For example,
15766         -#include <sys/vfs.h>
15767         +# include <sys/vfs.h>
15768         Do this only in .c files that are part of a module I maintain.
15769         * lib/linkat.c: Filter through cppi.
15770         * lib/nanosleep.c: Likewise.
15771         * lib/openat.c: Likewise.
15772         * lib/openat-die.c: Likewise.
15773         * lib/dup3.c: Likewise.
15774         * lib/fchownat.c: Likewise.
15775         * lib/flock.c: Likewise.
15776         * lib/fsync.c: Likewise.
15777         * lib/fts.c: Likewise.
15778         * lib/getpass.c: Likewise.
15779         * lib/gettimeofday.c: Likewise.
15780         * lib/userspec.c: Likewise.
15781         * Makefile (sc_cpp_indent_check): New rule, to check this.
15782
15783 2011-02-22  Bruno Haible  <bruno@clisp.org>
15784
15785         New module 'wctomb'.
15786         * lib/stdlib.in.h (wctomb): New declaration.
15787         * lib/wctomb.c: New file.
15788         * lib/wctomb-impl.h: New file.
15789         * m4/wctomb.m4: New file.
15790         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
15791         REPLACE_WCTOMB.
15792         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
15793         REPLACE_WCTOMB.
15794         * modules/wctomb: New file.
15795         * tests/test-stdlib-c++.cc: Test signature of wctomb.
15796         * doc/posix-functions/wctomb.texi: Mention the new module.
15797         * modules/wctob (Depends-on): Add wctomb.
15798
15799 2011-02-22  Bruno Haible  <bruno@clisp.org>
15800
15801         New module 'mbtowc'.
15802         * lib/stdlib.in.h (mbtowc): New declaration.
15803         * lib/mbtowc.c: New file.
15804         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
15805         * m4/mbtowc.m4: New file.
15806         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
15807         REPLACE_MBTOWC.
15808         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
15809         REPLACE_MBTOWC.
15810         * modules/mbtowc: New file.
15811         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
15812         * doc/posix-functions/mbtowc.texi: Mention the new module.
15813         * modules/btowc (Depends-on): Add mbtowc.
15814
15815 2011-02-22  Bruno Haible  <bruno@clisp.org>
15816
15817         wcrtomb: Add more tests for native Windows platforms.
15818         * tests/test-wcrtomb-w32-1.sh: New file.
15819         * tests/test-wcrtomb-w32-2.sh: New file.
15820         * tests/test-wcrtomb-w32-3.sh: New file.
15821         * tests/test-wcrtomb-w32-4.sh: New file.
15822         * tests/test-wcrtomb-w32-5.sh: New file.
15823         * tests/test-wcrtomb-w32.c: New file.
15824         * modules/wcrtomb-tests (Files): Add them.
15825         (Makefile.am): Arrange to run these tests.
15826         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
15827         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
15828
15829 2011-02-20  Bruno Haible  <bruno@clisp.org>
15830
15831         wcrtomb: Enhance test.
15832         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
15833
15834 2011-02-20  Bruno Haible  <bruno@clisp.org>
15835
15836         mbrtowc: Tiny optimization.
15837         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
15838
15839 2011-02-20  Jim Meyering  <meyering@redhat.com>
15840
15841         test-exclude.c: remove unmatched #endif
15842         * tests/test-exclude.c: Remove stray #endif, left over from
15843         the change of a week ago.
15844
15845 2011-02-19  Jim Meyering  <meyering@redhat.com>
15846
15847         git-version-gen: skip "-dirty" check when appropriate
15848         * build-aux/git-version-gen: Don't run any git commands when the
15849         version string comes from .tarball-version.  Prior to this, we
15850         would run git update-index --refresh even from a just-unpacked
15851         tarball directory, and that could affect a .git/ directory in a
15852         parent of the build directory.  Reported by Mike Frysinger.
15853
15854 2011-02-19  Bruno Haible  <bruno@clisp.org>
15855
15856         unictype/property-byname: Reduce the size of the 'data' segment.
15857         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
15858
15859 2011-02-19  Bruno Haible  <bruno@clisp.org>
15860
15861         unictype/scripts: Reduce the size of the 'data' segment.
15862         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
15863         '%pic'.
15864         * lib/unictype/scripts_byname.gperf: Regenerated.
15865
15866 2011-02-19  Bruno Haible  <bruno@clisp.org>
15867
15868         stdint: Update documentation.
15869         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
15870
15871 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
15872
15873         stdint: omit redundant check for wchar.h
15874         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
15875         always tests whether wchar.h exists, so remove the now-redundant test.
15876
15877 2011-02-18  Bruno Haible  <bruno@clisp.org>
15878
15879         stdint: Cut dependency to module 'wchar'.
15880         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
15881         include the necessary prerequisites.
15882         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
15883         * modules/stdint (Depends-on): Remove wchar.
15884         (Makefile.am): Substitute HAVE_WCHAR_H.
15885         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
15886
15887 2011-02-18  Eric Blake  <eblake@redhat.com>
15888
15889         longlong: skip, rather than fail, on cross-compilation
15890         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
15891         when cross-compiling; regression from 2011-02-16.
15892
15893 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15894
15895         * NEWS: Mention 2011-02-08 change to stdlib.
15896
15897 2011-02-17  Bruno Haible  <bruno@clisp.org>
15898
15899         getloadavg: Add comments about platforms.
15900         * m4/getloadavg.m4: Add comment.
15901         * lib/getloadavg.c: Likewise.
15902
15903 2011-02-17  Bruno Haible  <bruno@clisp.org>
15904
15905         getloadavg: Fix link error on Solaris 2.6.
15906         * modules/getloadavg (Link): New section.
15907         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
15908         linking test-getloadavg.
15909         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
15910         getloadavg.
15911
15912 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
15913
15914         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
15915         It was 'int', but this doesn't match the IRIX 6.5 manual.
15916         Suggested by Bruno Haible in
15917         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
15918
15919 2011-02-17  Bruno Haible  <bruno@clisp.org>
15920
15921         havelib: Fix comments.
15922         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
15923         change.
15924
15925 2011-02-17  Bruno Haible  <bruno@clisp.org>
15926
15927         havelib: Update config.rpath.
15928         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
15929
15930 2011-02-17  Bruno Haible  <bruno@clisp.org>
15931
15932         getloadavg test: Add some plausibility checks.
15933         * tests/test-getloadavg.c (check_avg): Print a warning when the value
15934         is improbable.
15935
15936 2011-02-16  Eric Blake  <eblake@redhat.com>
15937
15938         maintainer-makefile: make syntax-check a no-op from tarballs
15939         * top/maint.mk (no-vc-detected): New rule.
15940         (local-checks-available): Use it to avoid hanging if someone tries
15941         'make syntax-check' from a tarball.  Also append to any non-syntax
15942         checks already defined in cfg.mk.
15943
15944 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
15945
15946         longlong: tune, particularly for common case of c99
15947
15948         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
15949         or running anything if c99, or if unsigned long long int does not
15950         work.  In either case, we know the answer without further tests.
15951         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
15952         it at most once, and use its results for both long long int and
15953         unsigned long long int.  This is more likely to be efficient in
15954         the common case where the program wants to check for both long
15955         long int and unsigned long long int.
15956         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
15957         since the answer is already known.
15958
15959 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
15960
15961         getloadavg: set errno
15962         * lib/getloadavg.c: Set errno when returning -1.  If no other
15963         error number looks appropriate, set it to ENOSYS if the getloadavg
15964         looks like it can't possibly ever work, ENOTSUP otherwise.
15965         Suggested by Bruno Haible in
15966         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
15967
15968         getloadavg: trim unused parts and speed up 'configure'
15969         * NEWS: Document this.
15970         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
15971         always compiled if getloadavg is absent.
15972         Move test code to ...
15973         * tests/test-getloadavg.c: New file, containing previous
15974         contents of test from lib/getloadavg.c.  It also contains
15975         suggestions by Bruno Haible in
15976         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
15977         * modules/getloadavg-tests: New file.
15978         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
15979         Do tests in the same order as they're needed for getloadavg.c.
15980         Omit setgid-related tests that generate symbols KMEM_GROUP,
15981         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
15982         Do only the tests that are needed to see whether the system has
15983         getloadavg, moving the other tests into ...
15984         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
15985         NLIST_NAME_UNION; nobody should be using it.  Do not define
15986         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
15987         relevant, as the user of this module shouldn't care how getloadavg
15988         is implemented.
15989
15990         getloadavg: omit unused var
15991         * lib/getloadavg.c (getloadavg): Omit unused local variable.
15992
15993 2011-02-15  Jim Meyering  <meyering@redhat.com>
15994
15995         doc: update users.txt
15996         * users.txt: Update iwhd's URL.
15997
15998 2011-02-13  Bruno Haible  <bruno@clisp.org>
15999
16000         Consistent macro naming for macros that use GCC __attribute__.
16001         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
16002         _ATTRIBUTE_NONNULL_.
16003         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
16004         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
16005         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
16006         ATTRIBUTE_DEPRECATED.
16007         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
16008         ATTRIBUTE_NORETURN.
16009         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16010         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16011         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16012         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
16013         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
16014         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
16015         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
16016         ATTRIBUTE_SENTINEL.
16017         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
16018         ATTRIBUTE_RETURN_CHECK.
16019         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
16020         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
16021         ATTRIBUTE_NORETURN.
16022         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
16023         Reported by Paul Eggert.
16024
16025 2011-02-13  Bruno Haible  <bruno@clisp.org>
16026
16027         Don't interfere with a program's definition of __attribute__.
16028         * lib/argp.h (__attribute__): Remove definition.
16029         (_GL_ATTRIBUTE_FORMAT): New macro.
16030         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
16031         * lib/argp-fmtstream.h (__attribute__): Remove definition.
16032         (_GL_ATTRIBUTE_FORMAT): New macro.
16033         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
16034         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
16035         GCC 3 or newer.
16036         * lib/error.h (__attribute__): Remove definition.
16037         (_GL_ATTRIBUTE_FORMAT): New macro.
16038         (error, error_at_line): Use it.
16039         * lib/hash.h (__attribute__): Remove definition.
16040         (ATTRIBUTE_WUR): Update definition. Define always.
16041         * lib/openat.h (__attribute__): Remove definition.
16042         (ATTRIBUTE_NORETURN): Update definition. Define always.
16043         * lib/sigpipe-die.h (__attribute__): Remove definition.
16044         (ATTRIBUTE_NORETURN): Update definition. Define always.
16045         * lib/vasnprintf.h (__attribute__): Remove definition.
16046         (_GL_ATTRIBUTE_FORMAT): New macro.
16047         (asnprintf, vasnprintf): Use it.
16048         * lib/xalloc.h (__attribute__): Remove definition.
16049         (ATTRIBUTE_NORETURN): Update definition. Define always.
16050         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
16051         * lib/xmemdup0.h (__attribute__): Remove definition.
16052         (ATTRIBUTE_NORETURN): Update definition. Define always.
16053         * lib/xprintf.h (__attribute__): Remove definition.
16054         (_GL_ATTRIBUTE_FORMAT): New macro.
16055         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
16056         * lib/xstrtol.h (__attribute__): Remove definition.
16057         (ATTRIBUTE_NORETURN): Update definition. Define always.
16058         * lib/xvasprintf.h (__attribute__): Remove definition.
16059         (_GL_ATTRIBUTE_FORMAT): New macro.
16060         (xasprintf, xvasprintf): Use it.
16061         * tests/test-argmatch.c (__attribute__): Remove definition.
16062         (ATTRIBUTE_NORETURN): Update definition. Define always.
16063         * tests/test-exclude.c (__attribute__): Remove definition.
16064         (ATTRIBUTE_NORETURN): Update definition. Define always.
16065         Reported by Paul Eggert.
16066
16067 2011-02-13  Bruno Haible  <bruno@clisp.org>
16068
16069         mbrtowc: Add more tests for native Windows platforms.
16070         * tests/test-mbrtowc-w32-1.sh: New file.
16071         * tests/test-mbrtowc-w32-2.sh: New file.
16072         * tests/test-mbrtowc-w32-3.sh: New file.
16073         * tests/test-mbrtowc-w32-4.sh: New file.
16074         * tests/test-mbrtowc-w32-5.sh: New file.
16075         * tests/test-mbrtowc-w32.c: New file.
16076         * modules/mbrtowc-tests (Files): Add them.
16077         (Makefile.am): Arrange to run these tests.
16078         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
16079         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
16080
16081 2011-02-13  Bruno Haible  <bruno@clisp.org>
16082
16083         mbrtowc: Work around native Windows bug.
16084         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
16085         guess when no suitable locale for testing was found.
16086         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
16087
16088 2011-02-13  Bruno Haible  <bruno@clisp.org>
16089
16090         mbsinit: Work around mingw bug.
16091         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
16092         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
16093         Windows.
16094         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
16095
16096 2011-02-13  Bruno Haible  <bruno@clisp.org>
16097
16098         mbsinit: Don't crash for a NULL argument.
16099         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
16100         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
16101
16102 2011-02-13  Bruno Haible  <bruno@clisp.org>
16103
16104         Don't interfere with a program's definition of __attribute__.
16105         * lib/stdio.in.h (__attribute__): Remove definition.
16106         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
16107         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
16108         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
16109         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
16110         * lib/string.in.h (__attribute__): Remove definition.
16111         Reported by Paul Eggert.
16112
16113 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16114
16115         stdlib: don't get in the way of non-GCC __attribute__
16116         See thread starting at
16117         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
16118         Revert previous stdlib change, installing the following instead:
16119         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
16120         to get in the way of a non-GCC compiler that supports __attribute__.
16121         (_GL_ATTRIBUTE_RETURN): New macro.
16122         (_Exit): Use it instead of __attribute__.
16123
16124 2011-02-12  Bruno Haible  <bruno@clisp.org>
16125
16126         quotearg test: Avoid test failure on mingw.
16127         * tests/test-quotearg.sh: Convert the locale identifier from native
16128         Windows syntax to Unix syntax.
16129
16130 2011-02-12  Bruno Haible  <bruno@clisp.org>
16131
16132         setlocale: Prefer gnulib's override over libintl's override.
16133         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
16134         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
16135         GNULIB_defined_setlocale is set.
16136
16137 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
16138
16139         stdlib: support non-GCC __attribute__
16140
16141         Fix a serious and tricky problem encountered when attempting to
16142         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
16143         5.5, but it crashed due to memory corruption on Solaris 10 with
16144         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
16145         bits that are otherwise zero.  This tagging is optional inside
16146         Emacs but is preferred and is used when __attribute__ ((__aligned
16147         (8))) works, as it does with both recent-enough GCC and with Sun C
16148         5.11.  However, Sun C 5.11 is not GCC and does not #define
16149         __GNUC__ and __GNUC_MINOR__.
16150
16151         When I added the getloadavg module to Emacs, it brought in
16152         stdlib.in.h, which contained this fragment:
16153
16154            #ifndef __attribute__
16155            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
16156            #  define __attribute__(Spec)   /* empty */
16157            # endif
16158            #endif
16159
16160         When files that include <stdlib.h> were compiled with Sun C 5.11,
16161         the above code disabled __attribute__ ((__aligned (8))), which
16162         caused variables to not be properly aligned, which eventually led
16163         to the pointer corruption mentioned above.  (This was a bit hard
16164         to diagnose, unfortunately.)
16165
16166         Several "#define __attribute__(X) /* empty */" code snippets need
16167         to be eradicated from Gnulib to work with non-GCC compilers that
16168         support __attribute__.  The Autoconf way to do this is to test for
16169         each kind of attribute that we want support for, and selectively
16170         enable that in source code.
16171
16172         Fix this problem just for stdlib.h, by adding a test for the
16173         __noreturn__ attribute, and change stdlib.in.h to use that test
16174         when needed.  This technique can be easily generalized to the
16175         other *.in.h files and attributes, and a similar technique can be
16176         used for *.h and *.c files.  This patch is enough to solve the
16177         problem for Emacs + getloadavg, and I thought I'd publish it for
16178         feedback before undertaking further, similar fixes in other
16179         modules.
16180
16181         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
16182         because it's not needed for stdlib.h.  It merely substitutes the
16183         value directly into stdlib.h.  We may well need to #define it, or
16184         similar symbols, for other modules, but it's nice to also have an
16185         option to not #define it for applications like Emacs that do not
16186         need it.
16187
16188         * lib/stdlib.in.h (__attribute__): Do not #define.
16189         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
16190         be defined only if the _Exit module is also used.
16191         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
16192         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
16193         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
16194         platforms.
16195         * modules/_Exit (Files): Add m4/attribute.m4.
16196         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
16197         * m4/attribute.m4: New file.
16198
16199 2011-02-12  Bruno Haible  <bruno@clisp.org>
16200
16201         wcsrtombs: Work around bug on native Windows.
16202         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
16203         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
16204         instead of len.
16205         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
16206
16207 2011-02-12  Bruno Haible  <bruno@clisp.org>
16208
16209         mbsrtowcs: Work around bug on native Windows.
16210         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
16211         against mingw bug.
16212         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
16213
16214 2011-02-12  Bruno Haible  <bruno@clisp.org>
16215
16216         Avoid setlocale bugs in tests.
16217         * modules/btowc (Dependencies): Add setlocale.
16218         * modules/c-strcase (Dependencies): Likewise.
16219         * modules/mbmemcasecmp (Dependencies): Likewise.
16220         * modules/mbmemcasecoll (Dependencies): Likewise.
16221         * modules/mbrtowc (Dependencies): Likewise.
16222         * modules/mbscasecmp (Dependencies): Likewise.
16223         * modules/mbscasestr (Dependencies): Likewise.
16224         * modules/mbschr (Dependencies): Likewise.
16225         * modules/mbscspn (Dependencies): Likewise.
16226         * modules/mbsinit (Dependencies): Likewise.
16227         * modules/mbsncasecmp (Dependencies): Likewise.
16228         * modules/mbsnrtowcs (Dependencies): Likewise.
16229         * modules/mbspbrk (Dependencies): Likewise.
16230         * modules/mbspcasecmp (Dependencies): Likewise.
16231         * modules/mbsrchr (Dependencies): Likewise.
16232         * modules/mbsrtowcs (Dependencies): Likewise.
16233         * modules/mbsspn (Dependencies): Likewise.
16234         * modules/mbsstr (Dependencies): Likewise.
16235         * modules/nl_langinfo (Dependencies): Likewise.
16236         * modules/quotearg (Dependencies): Likewise.
16237         * modules/unicase/locale-language (Dependencies): Likewise.
16238         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
16239         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
16240         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
16241         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
16242         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
16243         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
16244         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
16245         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
16246         * modules/vasnprintf-posix (Dependencies): Likewise.
16247         * modules/wcrtomb (Dependencies): Likewise.
16248         * modules/wcsnrtombs (Dependencies): Likewise.
16249         * modules/wcsrtombs (Dependencies): Likewise.
16250
16251 2011-02-12  Bruno Haible  <bruno@clisp.org>
16252
16253         setlocale: Workaround native Windows bug.
16254         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
16255         succeeds but sets LC_CTYPE to "C", report a failure.
16256         * tests/test-setlocale2.sh: New file.
16257         * tests/test-setlocale2.c: New file.
16258         * modules/setlocale-tests (Files): Add the new files.
16259         (Makefile.am): Enable test-setlocale2.sh test.
16260         * doc/posix-functions/setlocale.texi: Mention workaround.
16261
16262 2011-02-11  Bruno Haible  <bruno@clisp.org>
16263
16264         Tests for module 'setlocale'.
16265         * modules/setlocale-tests: New file.
16266         * tests/test-setlocale1.sh: New file.
16267         * tests/test-setlocale1.c: New file.
16268
16269         New module 'setlocale'.
16270         * lib/locale.in.h (setlocale): New declaration.
16271         * lib/setlocale.c: New file, based on
16272         gettext/gettext-runtime/intl/setlocale.c.
16273         * m4/setlocale.m4: New file.
16274         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
16275         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
16276         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
16277         REPLACE_SETLOCALE.
16278         * modules/setlocale: New file.
16279         * tests/test-locale-c++.cc: Test the declaration of setlocale.
16280         * doc/posix-functions/setlocale.texi: Mention the new module.
16281
16282 2011-02-11  Bruno Haible  <bruno@clisp.org>
16283
16284         Prepare for locale dependent tests on mingw.
16285         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
16286         because it has the wrong locale encoding.
16287         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
16288         French_France.1252 instead of "fr".
16289         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
16290         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
16291         because it has the wrong locale encoding.
16292         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
16293         native Windows, try Turkish_Turkey.65001.
16294         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
16295         Chinese_China.54936.
16296
16297         Prepare for locale dependent tests on mingw.
16298         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
16299         differently.
16300         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
16301         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
16302         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
16303         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16304
16305 2011-02-11  Eric Blake  <eblake@redhat.com>
16306
16307         strptime: avoid compiler warnings
16308         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
16309         compiler warnings about dead code.
16310         Reported by Daniel P. Berrange.
16311
16312 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
16313
16314         doc: update users.txt
16315         * users.txt: Add rcs.
16316
16317 2011-02-10  John W. Eaton  <jwe@gnu.org>
16318
16319         doc: update users.txt
16320         * users.txt: Add octave.
16321
16322 2011-02-10  Jim Meyering  <meyering@redhat.com>
16323
16324         doc: update users.txt
16325         * users.txt: Add iwhd.
16326
16327 2011-02-09  Bruno Haible  <bruno@clisp.org>
16328
16329         gnulib-tool: Make copyright notice adjustment more robust.
16330         * gnulib-tool (func_import): In sed_transform_main_lib_file,
16331         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
16332         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
16333         License".
16334         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
16335
16336 2011-02-06  Bruno Haible  <bruno@clisp.org>
16337
16338         New module 'towctrans'.
16339         * modules/towctrans: New file.
16340         * lib/wctype.in.h (towctrans): New declaration.
16341         * lib/towctrans.c: New file.
16342         * lib/towctrans-impl.h: New file.
16343         * m4/towctrans.m4: New file.
16344         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
16345         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
16346         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
16347         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
16348         * doc/posix-functions/towctrans.texi: Mention the new module.
16349
16350 2011-02-06  Bruno Haible  <bruno@clisp.org>
16351
16352         New module 'wctrans'.
16353         * modules/wctrans: New file.
16354         * lib/wctype.in.h (wctrans): New declaration.
16355         * lib/wctrans.c: New file.
16356         * lib/wctrans-impl.h: New file.
16357         * m4/wctrans.m4: New file.
16358         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
16359         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
16360         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
16361         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
16362         * doc/posix-functions/wctrans.texi: Mention the new module.
16363
16364 2011-02-06  Bruno Haible  <bruno@clisp.org>
16365
16366         New module 'iswctype'.
16367         * modules/iswctype: New file.
16368         * lib/wctype.in.h (iswctype): New declaration.
16369         * lib/iswctype.c: New file.
16370         * lib/iswctype-impl.h: New file.
16371         * m4/iswctype.m4: New file.
16372         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
16373         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
16374         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
16375         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
16376         * doc/posix-functions/iswctype.texi: Mention the new module and the
16377         HP-UX 11.00 problem.
16378
16379 2011-02-06  Bruno Haible  <bruno@clisp.org>
16380
16381         New module 'wctype'.
16382         * modules/wctype: Change to represent the wctype() substitute.
16383         * lib/wctype.in.h (wctype): New declaration.
16384         * lib/wctype.c: New file.
16385         * lib/wctype-impl.h: New file.
16386         * m4/wctype.m4: New file.
16387         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
16388         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
16389         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
16390         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
16391         * doc/posix-functions/wctype.texi: Mention the new module and the
16392         HP-UX 11.00 problem.
16393
16394 2011-02-06  Bruno Haible  <bruno@clisp.org>
16395
16396         wctype-h: Ensure wctype_t and wctrans_t are defined.
16397         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
16398         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
16399         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
16400         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
16401         HAVE_WCTRANS_T.
16402         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
16403
16404 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
16405
16406         flock: fix license typo
16407
16408         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
16409         omitted.
16410
16411 2011-02-08  Bruno Haible  <bruno@clisp.org>
16412
16413         Split large sed scripts, for HP-UX sed.
16414         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
16415         to avoid HP-UX limit of 99 commands, in the near future.
16416         * modules/stdlib (Makefile.am): Likewise.
16417         * modules/unistd (Makefile.am): Likewise.
16418         * modules/wchar (Makefile.am): Likewise.
16419         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
16420         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
16421         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
16422
16423 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16424             Bruno Haible  <bruno@clisp.org>
16425
16426         stdlib: improve random_r modularization
16427         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
16428         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
16429         you also need the random_r module to get this material right.
16430         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
16431         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
16432         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
16433
16434 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
16435
16436         stdlib: don't depend on stdint
16437         * lib/stdlib.in.h: Don't include <stdint.h> merely because
16438         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
16439         be independent of whether stdint.h is needed.
16440         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
16441         here, instead of ...
16442         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
16443         struct random_data should be using the random_r module, not just
16444         the stdlib module (which wouldn't make sense: what package needs
16445         just struct random_data without also needing random_r?).
16446         * modules/stdlib (Depends-on): Remove stdint.
16447
16448         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
16449         See the thread rooted at
16450         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
16451         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
16452         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
16453         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
16454         __VMS)); previously it was always included (via fcntl--.h).
16455         (getloadavg): Do not use c_strtod.  Instead, approximate it by
16456         hand; this is good enough for load averages.  Also, do not use
16457         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
16458         flags directly if available and don't bother otherwise.  (Packages
16459         that need the extra reliability should use the modules that define
16460         these flags on older platforms that lack them.)
16461         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
16462         fcntl-safer.
16463
16464 2011-02-08  Jim Meyering  <meyering@redhat.com>
16465
16466         di-set.h, ino-map.h: add multiple-inclusion guard
16467         Technically, the guard is required only for ino-map.h, due to its
16468         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
16469         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
16470         * lib/ino-map.h: Likewise.
16471
16472 2011-02-06  Bruno Haible  <bruno@clisp.org>
16473
16474         iswblank: Ensure declaration on glibc systems.
16475         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
16476         * modules/iswblank (Dependencies): Add 'extensions'.
16477         * doc/posix-functions/iswblank.texi: Document the glibc problem.
16478
16479 2011-02-06  Bruno Haible  <bruno@clisp.org>
16480
16481         New module 'iswblank'.
16482         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
16483         * modules/iswblank: New file.
16484         * modules/wctype-h (Files): Remove lib/iswblank.c.
16485         (Makefile.am): Substitute GNULIB_ISWBLANK.
16486         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
16487         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
16488         (gl_WCTYPE_H_DEFAULTS): New macro.
16489         (gl_WCTYPE_H): Require it. Remove iswblank related code.
16490         * modules/iswblank-tests: New file.
16491         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
16492         * tests/test-wctype-h.c (main): Remove iswblank tests.
16493         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
16494         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
16495         of 'wctype-h'.
16496         * NEWS: Mention the change.
16497         * modules/mbchar (Depends-on): Add iswblank.
16498
16499 2011-02-08  Bruno Haible  <bruno@clisp.org>
16500
16501         di-set tests: Refactor.
16502         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
16503         unnecessary includes.
16504         (ASSERT): Remove macro.
16505         (main): Make C90 compliant by avoiding variable declaration after
16506         statement.
16507         * modules/di-set-tests (Files): Add tests/macros.h.
16508
16509 2011-02-08  Bruno Haible  <bruno@clisp.org>
16510
16511         ino-map tests: Refactor.
16512         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
16513         unnecessary includes.
16514         (ASSERT): Remove macro.
16515         (main): Make C90 compliant by avoiding variable declaration after
16516         statement.
16517         * modules/ino-map-tests (Files): Add tests/macros.h.
16518
16519 2011-02-08  Jim Meyering  <meyering@redhat.com>
16520
16521         di-set: add "const" to a cast
16522         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
16523         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
16524
16525 2011-02-06  Bruno Haible  <bruno@clisp.org>
16526
16527         Rename module 'wctype' to 'wctype-h'.
16528         * modules/wctype-h: Renamed from modules/wctype.
16529         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
16530         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
16531         (Files, Depends-on, Makefile.am): Update.
16532         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
16533         (Files, Makefile.am): Update.
16534         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
16535         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
16536         * doc/posix-headers/wctype.texi: Update.
16537         * doc/posix-functions/iswalnum.texi: Update.
16538         * doc/posix-functions/iswalpha.texi: Update.
16539         * doc/posix-functions/iswblank.texi: Update.
16540         * doc/posix-functions/iswcntrl.texi: Update.
16541         * doc/posix-functions/iswdigit.texi: Update.
16542         * doc/posix-functions/iswgraph.texi: Update.
16543         * doc/posix-functions/iswlower.texi: Update.
16544         * doc/posix-functions/iswprint.texi: Update.
16545         * doc/posix-functions/iswpunct.texi: Update.
16546         * doc/posix-functions/iswspace.texi: Update.
16547         * doc/posix-functions/iswupper.texi: Update.
16548         * doc/posix-functions/iswxdigit.texi: Update.
16549         * doc/posix-functions/towlower.texi: Update.
16550         * doc/posix-functions/towupper.texi: Update.
16551         * NEWS: Mention the change.
16552         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
16553         * modules/mbchar (Dependencies): Likewise.
16554         * modules/mbswidth (Dependencies): Likewise.
16555         * modules/quotearg (Dependencies): Likewise.
16556         * modules/regex (Dependencies): Likewise.
16557         * modules/wcscasecmp (Dependencies): Likewise.
16558         * modules/wcsncasecmp (Dependencies): Likewise.
16559         * modules/wcwidth (Dependencies): Likewise.
16560
16561 2011-02-06  Bruno Haible  <bruno@clisp.org>
16562
16563         New module 'wcswidth'.
16564         * modules/wcswidth: New file.
16565         * lib/wchar.in.h (wcswidth): New declaration.
16566         * lib/wcswidth.c: New file.
16567         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
16568         * m4/wcswidth.m4: New file.
16569         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
16570         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
16571         REPLACE_WCSWIDTH.
16572         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
16573         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
16574         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
16575         * doc/posix-functions/wcswidth.texi: Mention the new module.
16576
16577 2011-02-06  Bruno Haible  <bruno@clisp.org>
16578
16579         New module 'wcstok'.
16580         * modules/wcstok: New file.
16581         * lib/wchar.in.h (wcstok): New declaration.
16582         * lib/wcstok.c: New file.
16583         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
16584         * m4/wcstok.m4: New file.
16585         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
16586         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
16587         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
16588         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
16589         * doc/posix-functions/wcstok.texi: Mention the new module.
16590
16591 2011-02-06  Bruno Haible  <bruno@clisp.org>
16592
16593         New module 'wcsstr'.
16594         * modules/wcsstr: New file.
16595         * lib/wchar.in.h (wcsstr): New declaration.
16596         * lib/wcsstr.c: New file.
16597         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
16598         * m4/wcsstr.m4: New file.
16599         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
16600         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
16601         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
16602         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
16603         * doc/posix-functions/wcsstr.texi: Mention the new module.
16604
16605 2011-02-06  Bruno Haible  <bruno@clisp.org>
16606
16607         New module 'wcspbrk'.
16608         * modules/wcspbrk: New file.
16609         * lib/wchar.in.h (wcspbrk): New declaration.
16610         * lib/wcspbrk.c: New file.
16611         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
16612         * m4/wcspbrk.m4: New file.
16613         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
16614         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
16615         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
16616         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
16617         * doc/posix-functions/wcspbrk.texi: Mention the new module.
16618
16619 2011-02-06  Bruno Haible  <bruno@clisp.org>
16620
16621         New module 'wcsspn'.
16622         * modules/wcsspn: New file.
16623         * lib/wchar.in.h (wcsspn): New declaration.
16624         * lib/wcsspn.c: New file.
16625         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
16626         * m4/wcsspn.m4: New file.
16627         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
16628         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
16629         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
16630         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
16631         * doc/posix-functions/wcsspn.texi: Mention the new module.
16632
16633 2011-02-06  Bruno Haible  <bruno@clisp.org>
16634
16635         New module 'wcscspn'.
16636         * modules/wcscspn: New file.
16637         * lib/wchar.in.h (wcscspn): New declaration.
16638         * lib/wcscspn.c: New file.
16639         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
16640         * m4/wcscspn.m4: New file.
16641         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
16642         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
16643         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
16644         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
16645         * doc/posix-functions/wcscspn.texi: Mention the new module.
16646
16647 2011-02-06  Bruno Haible  <bruno@clisp.org>
16648
16649         New module 'wcsrchr'.
16650         * modules/wcsrchr: New file.
16651         * lib/wchar.in.h (wcsrchr): New declaration.
16652         * lib/wcsrchr.c: New file.
16653         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
16654         * m4/wcsrchr.m4: New file.
16655         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
16656         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
16657         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
16658         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
16659         * doc/posix-functions/wcsrchr.texi: Mention the new module.
16660
16661 2011-02-06  Bruno Haible  <bruno@clisp.org>
16662
16663         New module 'wcschr'.
16664         * modules/wcschr: New file.
16665         * lib/wchar.in.h (wcschr): New declaration.
16666         * lib/wcschr.c: New file.
16667         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
16668         * m4/wcschr.m4: New file.
16669         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
16670         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
16671         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
16672         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
16673         * doc/posix-functions/wcschr.texi: Mention the new module.
16674
16675 2011-02-06  Bruno Haible  <bruno@clisp.org>
16676
16677         New module 'wcsdup'.
16678         * modules/wcsdup: New file.
16679         * lib/wchar.in.h (wcsdup): New declaration.
16680         * lib/wcsdup.c: New file.
16681         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
16682         * m4/wcsdup.m4: New file.
16683         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
16684         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
16685         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
16686         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
16687         * doc/posix-functions/wcsdup.texi: Mention the new module.
16688
16689 2011-02-06  Bruno Haible  <bruno@clisp.org>
16690
16691         New module 'wcsxfrm'.
16692         * modules/wcsxfrm: New file.
16693         * lib/wchar.in.h (wcsxfrm): New declaration.
16694         * lib/wcsxfrm.c: New file.
16695         * lib/wcsxfrm-impl.h: New file.
16696         * m4/wcsxfrm.m4: New file.
16697         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
16698         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
16699         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
16700         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
16701         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
16702
16703 2011-02-06  Bruno Haible  <bruno@clisp.org>
16704
16705         New module 'wcscoll'.
16706         * modules/wcscoll: New file.
16707         * lib/wchar.in.h (wcscoll): New declaration.
16708         * lib/wcscoll.c: New file.
16709         * lib/wcscoll-impl.h: New file.
16710         * m4/wcscoll.m4: New file.
16711         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
16712         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
16713         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
16714         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
16715         * doc/posix-functions/wcscoll.texi: Mention the new module.
16716
16717 2011-02-06  Bruno Haible  <bruno@clisp.org>
16718
16719         New module 'wcsncasecmp'.
16720         * modules/wcsncasecmp: New file.
16721         * lib/wchar.in.h (wcsncasecmp): New declaration.
16722         * lib/wcsncasecmp.c: New file.
16723         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
16724         * m4/wcsncasecmp.m4: New file.
16725         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
16726         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
16727         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
16728         HAVE_WCSNCASECMP.
16729         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
16730         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
16731
16732 2011-02-06  Bruno Haible  <bruno@clisp.org>
16733
16734         New module 'wcscasecmp'.
16735         * modules/wcscasecmp: New file.
16736         * lib/wchar.in.h (wcscasecmp): New declaration.
16737         * lib/wcscasecmp.c: New file.
16738         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
16739         * m4/wcscasecmp.m4: New file.
16740         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
16741         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
16742         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
16743         HAVE_WCSCASECMP.
16744         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
16745         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
16746
16747 2011-02-05  Bruno Haible  <bruno@clisp.org>
16748
16749         New module 'wcsncmp'.
16750         * modules/wcsncmp: New file.
16751         * lib/wchar.in.h (wcsncmp): New declaration.
16752         * lib/wcsncmp.c: New file.
16753         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
16754         * m4/wcsncmp.m4: New file.
16755         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
16756         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
16757         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
16758         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
16759         * doc/posix-functions/wcsncmp.texi: Mention the new module.
16760
16761 2011-02-05  Bruno Haible  <bruno@clisp.org>
16762
16763         New module 'wcscmp'.
16764         * modules/wcscmp: New file.
16765         * lib/wchar.in.h (wcscmp): New declaration.
16766         * lib/wcscmp.c: New file.
16767         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
16768         * m4/wcscmp.m4: New file.
16769         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
16770         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
16771         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
16772         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
16773         * doc/posix-functions/wcscmp.texi: Mention the new module.
16774
16775 2011-02-05  Bruno Haible  <bruno@clisp.org>
16776
16777         New module 'wcsncat'.
16778         * modules/wcsncat: New file.
16779         * lib/wchar.in.h (wcsncat): New declaration.
16780         * lib/wcsncat.c: New file.
16781         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
16782         * m4/wcsncat.m4: New file.
16783         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
16784         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
16785         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
16786         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
16787         * doc/posix-functions/wcsncat.texi: Mention the new module.
16788
16789 2011-02-05  Bruno Haible  <bruno@clisp.org>
16790
16791         New module 'wcscat'.
16792         * modules/wcscat: New file.
16793         * lib/wchar.in.h (wcscat): New declaration.
16794         * lib/wcscat.c: New file.
16795         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
16796         * m4/wcscat.m4: New file.
16797         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
16798         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
16799         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
16800         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
16801         * doc/posix-functions/wcscat.texi: Mention the new module.
16802
16803 2011-02-05  Bruno Haible  <bruno@clisp.org>
16804
16805         New module 'wcpncpy'.
16806         * modules/wcpncpy: New file.
16807         * lib/wchar.in.h (wcpncpy): New declaration.
16808         * lib/wcpncpy.c: New file.
16809         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
16810         * m4/wcpncpy.m4: New file.
16811         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
16812         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
16813         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
16814         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
16815         * doc/posix-functions/wcpncpy.texi: Mention the new module.
16816
16817 2011-02-05  Bruno Haible  <bruno@clisp.org>
16818
16819         New module 'wcsncpy'.
16820         * modules/wcsncpy: New file.
16821         * lib/wchar.in.h (wcsncpy): New declaration.
16822         * lib/wcsncpy.c: New file.
16823         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
16824         * m4/wcsncpy.m4: New file.
16825         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
16826         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
16827         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
16828         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
16829         * doc/posix-functions/wcsncpy.texi: Mention the new module.
16830
16831 2011-02-05  Bruno Haible  <bruno@clisp.org>
16832
16833         New module 'wcpcpy'.
16834         * modules/wcpcpy: New file.
16835         * lib/wchar.in.h (wcpcpy): New declaration.
16836         * lib/wcpcpy.c: New file.
16837         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
16838         * m4/wcpcpy.m4: New file.
16839         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
16840         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
16841         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
16842         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
16843         * doc/posix-functions/wcpcpy.texi: Mention the new module.
16844
16845 2011-02-05  Bruno Haible  <bruno@clisp.org>
16846
16847         New module 'wcscpy'.
16848         * modules/wcscpy: New file.
16849         * lib/wchar.in.h (wcscpy): New declaration.
16850         * lib/wcscpy.c: New file.
16851         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
16852         * m4/wcscpy.m4: New file.
16853         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
16854         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
16855         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
16856         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
16857         * doc/posix-functions/wcscpy.texi: Mention the new module.
16858
16859 2011-02-05  Bruno Haible  <bruno@clisp.org>
16860
16861         New module 'wcsnlen'.
16862         * modules/wcsnlen: New file.
16863         * lib/wchar.in.h (wcsnlen): New declaration.
16864         * lib/wcsnlen.c: New file.
16865         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
16866         * m4/wcsnlen.m4: New file.
16867         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
16868         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
16869         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
16870         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
16871         * doc/posix-functions/wcsnlen.texi: Mention the new module.
16872
16873 2011-02-05  Bruno Haible  <bruno@clisp.org>
16874
16875         New module 'wcslen'.
16876         * modules/wcslen: New file.
16877         * lib/wchar.in.h (wcslen): New declaration.
16878         * lib/wcslen.c: New file.
16879         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
16880         * m4/wcslen.m4: New file.
16881         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
16882         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
16883         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
16884         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
16885         * doc/posix-functions/wcslen.texi: Mention the new module.
16886
16887 2011-02-05  Bruno Haible  <bruno@clisp.org>
16888
16889         New module 'wmemset'.
16890         * modules/wmemset: New file.
16891         * lib/wchar.in.h (wmemset): New declaration.
16892         * lib/wmemset.c: New file.
16893         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
16894         * m4/wmemset.m4: New file.
16895         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
16896         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
16897         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
16898         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
16899         * doc/posix-functions/wmemset.texi: Mention the new module.
16900
16901 2011-02-05  Bruno Haible  <bruno@clisp.org>
16902
16903         New module 'wmemmove'.
16904         * modules/wmemmove: New file.
16905         * lib/wchar.in.h (wmemmove): New declaration.
16906         * lib/wmemmove.c: New file.
16907         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
16908         * m4/wmemmove.m4: New file.
16909         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
16910         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
16911         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
16912         HAVE_WMEMMOVE.
16913         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
16914         * doc/posix-functions/wmemmove.texi: Mention the new module.
16915
16916 2011-02-05  Bruno Haible  <bruno@clisp.org>
16917
16918         New module 'wmemcpy'.
16919         * modules/wmemcpy: New file.
16920         * lib/wchar.in.h (wmemcpy): New declaration.
16921         * lib/wmemcpy.c: New file.
16922         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
16923         * m4/wmemcpy.m4: New file.
16924         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
16925         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
16926         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
16927         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
16928         * doc/posix-functions/wmemcpy.texi: Mention the new module.
16929
16930 2011-02-05  Bruno Haible  <bruno@clisp.org>
16931
16932         New module 'wmemcmp'.
16933         * modules/wmemcmp: New file.
16934         * lib/wchar.in.h (wmemcmp): New declaration.
16935         * lib/wmemcmp.c: New file.
16936         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
16937         * m4/wmemcmp.m4: New file.
16938         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
16939         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
16940         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
16941         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
16942         * doc/posix-functions/wmemcmp.texi: Mention the new module.
16943
16944 2011-02-07  Jim Meyering  <meyering@redhat.com>
16945
16946         di-set, ino-map: new modules, from coreutils
16947         * lib/di-set.c: New file.
16948         * lib/di-set.h: Likewise.
16949         * lib/ino-map.c: Likewise.
16950         * lib/ino-map.h: Likewise.
16951         * modules/di-set: Likewise.
16952         * modules/di-set-tests: Likewise.
16953         * modules/ino-map: Likewise.
16954         * modules/ino-map-tests: Likewise.
16955         * tests/test-di-set.c: Likewise.
16956         * tests/test-ino-map.c: Likewise.
16957
16958 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
16959
16960         getloadavg: merge minor changes from Emacs
16961
16962         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
16963         (getloadavg): Use memset, not bzero.
16964
16965         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
16966         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
16967         clash (bug#86).
16968
16969 2010-11-14  Bruno Haible  <bruno@clisp.org>
16970
16971         Allow multiple gnulib generated replacements to coexist.
16972         * lib/getopt.in.h (struct option): Avoid identical redefinition.
16973         * lib/inttypes.in.h (imaxdiv_t): Likewise.
16974         * lib/langinfo.in.h (nl_item): Likewise.
16975         * lib/math.in.h (_NaN, NAN): Likewise.
16976         * lib/netdb.in.h (struct addrinfo): Likewise.
16977         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
16978         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
16979         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
16980         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
16981         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
16982         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
16983         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
16984         pthread_mutexattr_init, pthread_mutexattr_settype,
16985         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
16986         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
16987         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
16988         pthread_spin_trylock, pthread_spin_unlock): Likewise.
16989         * lib/sched.in.h (struct sched_param): Likewise.
16990         * lib/se-selinux.in.h (security_class_t, security_context_t,
16991         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
16992         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
16993         lsetfilecon, fsetfilecon, security_check_context,
16994         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
16995         Likewise.
16996         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
16997         Likewise.
16998         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
16999         _gl_function_taking_int_returning_void_t, union sigval,
17000         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
17001         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
17002         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
17003         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
17004         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
17005         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
17006         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
17007         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
17008         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
17009         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
17010         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
17011         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
17012         socklen_t, rpl_fd_isset): Likewise.
17013         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
17014         * lib/sys_time.in.h (struct timeval): Likewise.
17015         * lib/sys_times.in.h (struct tms): Likewise.
17016         * lib/sys_utsname.in.h (struct utsname):
17017         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
17018         * lib/unistd.in.h (getpagesize): Likewise.
17019         * lib/wchar.in.h (mbstate_t): Likewise.
17020         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
17021         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
17022         towlower, towupper): Likewise.
17023         Reported by Sam Steingold <sds@gnu.org>.
17024
17025 2011-02-05  Eric Blake  <eblake@redhat.com>
17026
17027         unsetenv: work around Haiku issues
17028         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
17029         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
17030
17031 2010-12-30  Bruce Korb  <bkorb@gnu.org>
17032
17033         libposix: avoid calling error() within libposix
17034         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
17035         is defined.
17036
17037 2011-02-05  Eric Blake  <eblake@redhat.com>
17038
17039         strerror_r-posix: port to cygwin
17040         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
17041         implementation.
17042         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
17043         * tests/test-strerror_r.c (main): Fix test.
17044         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
17045         issue.
17046
17047 2011-02-05  Bruno Haible  <bruno@clisp.org>
17048
17049         New module 'wmemchr'.
17050         * modules/wmemchr: New file.
17051         * lib/wchar.in.h (wmemchr): New declaration.
17052         * lib/wmemchr.c: New file.
17053         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
17054         * m4/wmemchr.m4: New file.
17055         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
17056         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
17057         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
17058         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
17059         * doc/posix-functions/wmemchr.texi: Mention the new module.
17060
17061 2011-02-04  Eric Blake  <eblake@redhat.com>
17062
17063         fdopendir: detect FreeBSD bug
17064         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
17065         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
17066
17067 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
17068
17069         stdbool: do not define HAVE_STDBOOL_H
17070         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
17071         AC_HEADER_STDBOOL.  All uses changed.  Do not define
17072         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
17073         imported from the latest Autoconf git.  It was motivated by Emacs,
17074         which uses gnulib but does not need HAVE_STDBOOL_H.
17075
17076 2011-02-04  Bruno Haible  <bruno@clisp.org>
17077
17078         wcsnrtombs: Prepare for new module wwcsnrtombs.
17079         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
17080         * lib/wcsnrtombs.c: Include it.
17081         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
17082
17083         wcsrtombs: Prepare for new module wwcsrtombs.
17084         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
17085         * lib/wcsrtombs.c: Include it.
17086         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
17087
17088         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
17089         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
17090         * lib/mbsnrtowcs.c: Include it.
17091         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
17092
17093         mbsrtowcs: Prepare for new module mbsrtowwcs.
17094         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
17095         * lib/mbsrtowcs.c: Include it.
17096         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
17097
17098 2011-02-04  Bruno Haible  <bruno@clisp.org>
17099
17100         vasnprintf: Reduce use of malloc for small format strings.
17101         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
17102         (arguments): Add room for the first 7 arguments.
17103         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
17104         (char_directives, u8_directives, u16_directives, u32_directives): Add
17105         room for the first 7 directives.
17106         * lib/printf-parse.c: Include <string.h>.
17107         (PRINTF_PARSE): Change memory handling code so that it uses the first
17108         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
17109         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
17110         Reported by Pádraig Brady <P@draigbrady.com>.
17111
17112 2011-01-31  Eric Blake  <eblake@redhat.com>
17113
17114         dup2: work around Haiku bug
17115         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
17116         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
17117         * doc/posix-functions/dup2.texi (dup2): Document the bug.
17118         * tests/test-dup2.c (main): Enhance test.
17119
17120 2011-01-31  Simon Josefsson  <simon@josefsson.org>
17121
17122         doc: off_t is not available in eglibc 2.11.2 stdio.h.
17123         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
17124         declared by eglibc 2.11.2.
17125         * lib/stdio.in.h: Likewise.
17126
17127 2011-01-31  Eric Blake  <eblake@redhat.com>
17128
17129         ignore-value: add missing test dependency
17130         * tests/test-ignore-value.c: Revert previous change; stdio.h
17131         provides off_t.
17132         * modules/ignore-value-tests (Depends-on): Add missing dependency.
17133
17134 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
17135
17136         mktime: clarify long_int width checking
17137         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
17138         the top level, to make it clearer that the assumption about
17139         long_int width is being checked.  See
17140         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
17141
17142 2011-01-30  Simon Josefsson  <simon@josefsson.org>
17143
17144         ignore-value: Fix self-test.
17145         * tests/test-ignore-value.c: Include sys/types.h for off_t.
17146
17147 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
17148
17149         TYPE_MAXIMUM: avoid theoretically undefined behavior
17150         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
17151         negative number, which the C Standard says has undefined behavior.
17152         In practice this is not a problem, but might as well do it by the book.
17153         Reported by Rich Felker and Eric Blake; see
17154         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
17155         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
17156         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
17157         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
17158         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
17159         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17160         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
17161
17162         mktime: #undef mktime before #defining it
17163         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
17164
17165         mktime: systematically normalize tm_isdst comparisons
17166         * lib/mktime.c (isdst_differ): New function.
17167         (__mktime_internal): Use it systematically for all isdst comparisons.
17168         This completes the fix for libc BZ #6723, and removes the need for
17169         normalizing tm_isdst.  See
17170         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
17171         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
17172
17173         mktime: fix some integer overflow issues and sidestep the rest
17174
17175         This was prompted by a bug report by Benjamin Lindner for MinGW
17176         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
17177         His bug is due to signed integer overflow (0 - INT_MIN), and I
17178         I scanned through mktime.c looking for other integer overflow
17179         problems, fixing all the bugs I found.
17180
17181         Although the C Standard says the resulting code is still not safe
17182         in the presence of integer overflow, in practice it should be good
17183         enough for all real-world two's-complement implementations, except
17184         for debugging environments that deliberately trap on integer
17185         overflow (e.g., gcc -ftrapv).
17186
17187         * lib/mktime.c (WRAPV): New macro.
17188         (SHR): Also check that long_int and time_t shift right in the
17189         usual way, before using the fast-but-unportable method.
17190         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
17191         used.  The code already assumed two's complement, so there's
17192         no need to test for alternatives.  All uses removed.
17193         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
17194         the C standard.  Problem reported by Rich Felker in
17195         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
17196         (twos_complement_arithmetic): Also check long_int and time_t.
17197         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
17198         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
17199         (__mktime_internal): Avoid integer overflow with unary subtraction
17200         in two instances where -1 - X is an adequate replacement for -X,
17201         since the calculations are approximate.
17202
17203 2011-01-29  Eric Blake  <eblake@redhat.com>
17204
17205         mktime: avoid infinite loop
17206         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
17207         type; behavior is still undefined but portable to all known targets.
17208         Reported by Rich Felker.
17209
17210 2011-01-29  Simon Josefsson  <simon@josefsson.org>
17211
17212         rename, unlink, same-inode: Relicense.
17213         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
17214         * modules/unlink (License): Likewise.
17215         * modules/same-inode (License): Likewise.
17216
17217 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
17218
17219         mktime: avoid problems on NetBSD 5 / i386
17220         * lib/mktime.c (long_int): New type.  This works around a problem
17221         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
17222         but time_t is 64 bits, and where I expect the existing code is
17223         wrong in some cases.
17224         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
17225         (ydhms_diff): Bring back the compile-time check for wide-enough
17226         year and yday.
17227
17228         mktime: fix misspelling in comment
17229         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
17230         This merges all recent glibc changes of importance.
17231
17232 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17233
17234         move-if-change: cope with concurrent mv of identical file.
17235         * build-aux/move-if-change (CMPPROG): Accept environment
17236         variable as an override for `cmp'.
17237         (usage): Document CMPPROG.
17238         Adjust comparison to drop stdout.  Cope with failure of mv if
17239         the target file exists and is identical to the source, for
17240         parallel builds.
17241         Report from H.J. Lu against binutils in PR binutils/12283.
17242
17243 2011-01-28  Bruce Korb  <bkorb@gnu.org>
17244
17245         * users.txt: Mention sharutils.
17246
17247 2011-01-28  Simon Josefsson  <simon@josefsson.org>
17248
17249         * users.txt: Mention OATH Toolkit.
17250
17251 2011-01-27  Bruno Haible  <bruno@clisp.org>
17252
17253         Prepare for supporting FreeBSD 10.
17254         * build-aux/config.libpath: Remove handling of freebsd1*.
17255
17256 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
17257
17258         Prepare for supporting FreeBSD 10.
17259         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
17260         match FreeBSD 10.0.
17261
17262 2011-01-27  Bruno Haible  <bruno@clisp.org>
17263
17264         vma-iter, get-rusage-as: Add OpenBSD support.
17265         * modules/vma-iter (configure.ac): Test for mquery.
17266         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
17267         * lib/vma-iter.c: Include <sys/mman.h>.
17268         (vma_iterate): Add an implementation based on mquery().
17269         * lib/resource-ext.h (get_rusage_as): Update comments.
17270         * lib/get-rusage-as.c: Likewise.
17271         * lib/get-rusage-data.c: Likewise.
17272
17273 2011-01-26  Karl Berry  <karl@gnu.org>
17274
17275         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
17276         variables to make it easier to override the makeinfo program used.
17277
17278 2011-01-26  Eric Blake  <eblake@redhat.com>
17279
17280         fcntl: work around Haiku F_DUPFD bugs
17281         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
17282         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
17283         cloexec bit on duplication.
17284         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
17285
17286 2011-01-26  Bruno Haible  <bruno@clisp.org>
17287
17288         Enable memory leak tests on AIX.
17289         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
17290         * tests/test-fprintf-posix3.c (main): Likewise.
17291
17292 2011-01-26  Bruno Haible  <bruno@clisp.org>
17293
17294         Tests for module 'get-rusage-data'.
17295         * modules/get-rusage-data-tests: New file.
17296         * tests/test-get-rusage-data.c: New file.
17297
17298         New module 'get-rusage-data'.
17299         * lib/resource-ext.h (get_rusage_data): New declaration.
17300         * lib/get-rusage-data.c: New file.
17301         * modules/get-rusage-data: New file.
17302
17303 2011-01-25  Bruno Haible  <bruno@clisp.org>
17304
17305         get-rusage-as: Allow for easier testing.
17306         * lib/resource-ext.h (get_rusage_as): Add comment.
17307         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
17308         (main): New function for interactive testing.
17309
17310 2011-01-25  Bruno Haible  <bruno@clisp.org>
17311
17312         vma-iter: Treat Haiku like BeOS.
17313         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
17314         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
17315
17316 2011-01-25  Eric Blake  <eblake@redhat.com>
17317
17318         c-stack: fix regression on cygwin when libsigsegv is present
17319         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
17320
17321 2011-01-24  Bruno Haible  <bruno@clisp.org>
17322
17323         vma-iter: Avoid empty intervals.
17324         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
17325         on an empty interval.
17326
17327 2011-01-24  Jim Meyering  <meyering@redhat.com>
17328
17329         u64: remove unnecessary #include
17330         * lib/u64.h: Don't include <stddef.h>.  It was not used.
17331
17332 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
17333
17334         Allow the user to avoid the HAVE_RAW_DECL_* macros.
17335         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
17336
17337 2011-01-23  Bruno Haible  <bruno@clisp.org>
17338
17339         New module 'vma-iter'.
17340         * lib/vma-iter.h: New file.
17341         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
17342         * modules/vma-iter: New file.
17343         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
17344         for get_rusage_as_via_iterator.
17345         (vma_iterate_callback): New function.
17346         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
17347         * modules/get-rusage-as (Depends-on): Add vma-iter.
17348
17349 2011-01-23  Bruno Haible  <bruno@clisp.org>
17350
17351         uninorm: Tweak includes.
17352         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
17353         Reported by Jim Meyering.
17354
17355 2011-01-23  Bruno Haible  <bruno@clisp.org>
17356
17357         get-rusage-as: Improve on NetBSD.
17358         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
17359         /proc, like on FreeBSD.
17360
17361 2011-01-23  Jim Meyering  <meyering@redhat.com>
17362
17363         xreadlink.h: remove unnecessary #include
17364         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
17365
17366         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
17367         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
17368
17369 2011-01-23  Bruno Haible  <bruno@clisp.org>
17370
17371         get-rusage-as: Fix bug.
17372         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
17373         original limit when aborting the first loop.
17374
17375 2011-01-23  Bruno Haible  <bruno@clisp.org>
17376
17377         wctype: Ensure valid C syntax.
17378         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
17379         unconditionally, instead of gl_NEXT_HEADERS conditionally.
17380
17381 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
17382
17383         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
17384         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
17385         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
17386         as they are needed only for configure's test case.
17387         This removes two unnecessary symbols from config.h.
17388
17389         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
17390         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
17391         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
17392         AC_CHECK_HEADERS_ONCE on a header that we also invoke
17393         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
17394         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
17395         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
17396         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
17397         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
17398         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
17399         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
17400         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
17401         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
17402         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
17403         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
17404         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
17405         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
17406         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
17407
17408 2011-01-21  Eric Blake  <eblake@redhat.com>
17409
17410         maintainer-makefile: work with older git for submodule check
17411         * top/maint.mk (public-submodule-commit): Rewrite to avoid
17412         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
17413         Reported by Matthias Bolte.
17414
17415         bootstrap: minor portability fixes
17416         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
17417         (usage): Omit leading capital and trailing . on help phrases, per
17418         GNU Coding Standards.
17419         (check_versions, top level): Prefix messages with script name.
17420
17421 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
17422
17423         bootstrap: support --no-git option
17424         * build-aux/bootstrap: Add --no-git option, to be used when
17425         --gnulib-srcdir points to the exact desired checkout.
17426
17427 2011-01-21  Eric Blake  <eblake@redhat.com>
17428
17429         strerror_r-posix: work with glibc 2.13
17430         * lib/strerror_r.c (strerror_r): Fix return type.
17431
17432 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17433             Bruno Haible  <bruno@clisp.org>
17434
17435         uN_strstr: New unit tests.
17436         * modules/unistr/u8-strstr-tests: New file.
17437         * modules/unistr/u16-strstr-tests: New file.
17438         * modules/unistr/u32-strstr-tests: New file.
17439         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
17440         * tests/unistr/test-u8-strstr.c: New file.
17441         * tests/unistr/test-u16-strstr.c: New file.
17442         * tests/unistr/test-u32-strstr.c: New file.
17443
17444 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17445             Bruno Haible  <bruno@clisp.org>
17446
17447         Make uN_strstr functions O(n) worst-case.
17448         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
17449         16-bit and 32-bit unit cases, use the unibyte algorithm from
17450         lib/mbsstr.c.
17451         * lib/unistr/u8-strstr.c: Include <string.h>.
17452         (UNIT_IS_UINT8_T): New macro.
17453         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
17454         (U_STRLEN, U_STRNLEN): New macros.
17455         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
17456         (U_STRLEN, U_STRNLEN): New macros.
17457         * modules/unistr/u8-strstr (Depends-on): Add strstr.
17458         (configure.ac): Update required libunistring version.
17459         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
17460         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
17461         malloca.
17462         (configure.ac): Update required libunistring version.
17463         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
17464         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
17465         malloca.
17466         (configure.ac): Update required libunistring version.
17467
17468 2011-01-21  Pádraig Brady  <P@draigBrady.com>
17469             Bruno Haible  <bruno@clisp.org>
17470
17471         Prepare for faster uN_strstr functions.
17472         * lib/str-kmp.h: Support definable UNITs.
17473         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
17474         needle_len argument.
17475         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
17476         * lib/mbscasestr.c (mbscasestr): Likewise.
17477
17478 2011-01-21  Pádraig Brady <P@draigBrady.com>
17479
17480         malloca-tests: make faster by unsetting MALLOC_PERTURB_
17481         * tests/test-malloca.c (main): Unset the environment variable
17482         to greatly speed up the test.
17483         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
17484         * modules/malloca-tests: Depend on unsetenv.
17485
17486 2011-01-21  Pádraig Brady <P@draigBrady.com>
17487
17488         ignore-value: remove stdint dependency
17489         * lib/ignore-value.h: Remove <stdint.h>
17490         * modules/ignore-value: Remove stdint dependency.
17491
17492 2011-01-21  Jim Meyering  <meyering@redhat.com>
17493
17494         maint.mk: adjust variable name to be consistent with other gl_ vars
17495         * top/maint.mk (gl_public_submodule_commit): Rename the variable
17496         to be lower case.
17497
17498 2011-01-20  Jim Meyering  <meyering@redhat.com>
17499
17500         maint.mk: make "check" depend on public-submodule-commit by default
17501         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
17502
17503 2011-01-20  Bruno Haible  <bruno@clisp.org>
17504
17505         mbfile, mbiter: Complete change from 2008-12-21.
17506         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
17507         * m4/mbiter.m4 (gl_MBITER): Likewise.
17508
17509 2011-01-20  Jim Meyering  <meyering@redhat.com>
17510
17511         init.sh: insert space between each function name and "()"
17512         * tests/init.sh: Make it a little easier to see that a function's
17513         name is "warn_", and not "warn" when looking at the first part of
17514         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
17515
17516 2011-01-20  Jim Meyering  <meyering@redhat.com>
17517
17518         mountlist: clean up code formatting
17519         * lib/mountlist.c (read_file_system_list): Split a long line,
17520         correct bracing style, use NULL in place of "(struct statfs *)0",
17521         don't parenthesize return value, add spaces around "=" and after
17522         ";-in-for-stmt".
17523
17524 2011-01-14  Markus Duft <mduft@gentoo.org>
17525
17526         mountlist: add support for Interix
17527         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
17528         Apply statvfs to all entries of /dev/fs.
17529         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
17530         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
17531
17532 2011-01-20  Jim Meyering  <meyering@redhat.com>
17533
17534         maint.mk: improve the public-submodule-commit rule
17535         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
17536         to suppress printing of its commands... unless V=1.
17537         Add git submodule's --quiet option to suppress printing of e.g.,
17538         "Entering gnulib" output.
17539         "cd" into $(srcdir) before running git submodule.
17540
17541 2011-01-20  Bruno Haible  <bruno@clisp.org>
17542
17543         include_next: Fix bug introduced on 2011-01-18.
17544         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
17545         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
17546         ac_cv_header_... variable if the second argument is not 'check'.
17547         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
17548         gl_NEXT_HEADERS_INTERNAL.
17549
17550 2011-01-20  Bruno Haible  <bruno@clisp.org>
17551
17552         Allow the user to avoid the GNULIB_TEST_* macros.
17553         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
17554         Suggested by Paul Eggert.
17555
17556 2011-01-14  Jim Meyering  <meyering@redhat.com>
17557
17558         bootstrap: avoid failure when there is no .gitmodules file
17559         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
17560         has been assigned to, even when its value is the empty string.
17561         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
17562         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
17563         Reported by John W. Eaton <jwe@gnu.org>.
17564
17565 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
17566
17567         assume <ctype.h>, ..., <time.h> exist
17568         For years gnulib has been assuming the existence of the headers
17569         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
17570         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
17571         them, since they don't appear to be needed.
17572         * README (Portability guidelines): Document this.
17573         * lib/flock.c: Assume <fcntl.h> exists.
17574         * lib/regex_internal.h: Assume <locale.h> exists.
17575         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
17576         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
17577         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
17578         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
17579         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
17580         * m4/regex.m4 (gl_REGEX): Likewise.
17581         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
17582         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
17583         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
17584         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
17585         * tests/test-argp.c: Likewise.
17586         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
17587
17588         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
17589         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
17590         AA_APPLE_UNIVERSAL_BUILD.  See
17591         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
17592         * NEWS: Document this.
17593
17594 2011-01-19  Eric Blake  <eblake@redhat.com>
17595
17596         c-stack: assume stack overflow if SA_SIGINFO unsupported
17597         * lib/c-stack.c (SIGACTION_WORKS): Rename...
17598         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
17599         sigaction will work.
17600         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
17601         behavior match Linux.
17602         * tests/test-c-stack.c (main): Prefer NULL for pointers.
17603
17604         stdbool-tests: accomodate Haiku
17605         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
17606
17607         binary-io: fix O_TEXT on Haiku
17608         * modules/binary-io (Depends-on): Add fcntl-h.
17609         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
17610         than blindly undefining O_TEXT.
17611         Reported by Scott McCreary.
17612
17613 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
17614
17615         include_next: do not check for standard headers like stddef.h
17616
17617         I found this problem when modifying Emacs to use gnulib.
17618         I noticed that it added HAVE_STDDEF_H to config.h, even though
17619         gnulib always assumes <stddef.h> exists as per README and this
17620         symbol is unnecessary.
17621         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
17622         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
17623         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
17624         faster for headers like stddef.h that are known to exist.
17625         (gl_CHECK_NEXT_HEADERS): Use it.
17626         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
17627         rather than gl_CHECK_NEXT_HEADERS.
17628         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
17629         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
17630
17631 2011-01-18  Eric Blake  <eblake@redhat.com>
17632
17633         ansi-c++-opt: skip C++ dependency style if C++ is unused
17634         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
17635         tests when we know C++ compilation is not desired.
17636         Reported by Scott McCreary.
17637
17638 2011-01-18  Bruno Haible  <bruno@clisp.org>
17639
17640         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
17641         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
17642         (main): Perform test also when getrlimit and setrlimit don't exist or
17643         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
17644         limiting the address space size using setrlimit, compare the address
17645         space size before and after the the test.
17646         * tests/test-dprintf-posix2.c: Likewise.
17647         * tests/test-fprintf-posix3.sh: Update skip messages.
17648         * tests/test-dprintf-posix2.sh: Likewise.
17649         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
17650         * modules/dprintf-posix-tests (Depends-on): Likewise.
17651         Reported by Bruce Korb <bkorb@gnu.org> and
17652         Gary V. Vaughan <gary@gnu.org>.
17653
17654 2011-01-18  Bruno Haible  <bruno@clisp.org>
17655
17656         get-rusage-as: Improvement for Cygwin.
17657         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
17658         areas that are merely reserved.
17659
17660 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
17661
17662         strftime: remove dependencies on multibyte modules
17663
17664         strftime depended on mbrlen, mbsinit, and wchar, but these modules
17665         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
17666         only if __osf__ is defined, and I suspect OSF doesn't need these
17667         other modules.  If my guess is wrong, we'll need to come up with a
17668         variant of strftime that doesn't need the multibyte modules.
17669
17670         I discovered this problem when attempting modify Emacs to use the
17671         strftime module.  With the previous gnulib, this caused Emacs to
17672         need 31 new files, ranging from lib/config.charset to
17673         m4/wint_t.m4.  This was overkill and I expect would be offputting
17674         to the Emacs maintainers.  After this change, only 6 new files are
17675         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
17676         stdbool.m4, and tm_gmtoff.m4.
17677
17678         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
17679         Suggested by Bruno Haible in
17680         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
17681         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
17682         and do not check for wchar.h.
17683         * modules/strftime (Files): Remove m4/mbstate_t.m4.
17684         (Depends-on): Remove mbrlen, mbsinit, wchar.
17685
17686 2011-01-18  Bruno Haible  <bruno@clisp.org>
17687
17688         Tests for module 'get-rusage-as'.
17689         * modules/get-rusage-as-tests: New file.
17690         * tests/test-get-rusage-as.c: New file.
17691
17692         New module 'get-rusage-as'.
17693         * modules/get-rusage-as: New file.
17694         * lib/resource-ext.h: New file.
17695         * lib/get-rusage-as.c: New file.
17696
17697 2011-01-17  Eric Blake  <eblake@redhat.com>
17698
17699         sigaction: relax license from LGPLv3+ to LGPLv2+
17700         * modules/sigaction (License): Relax to LGPLv2+.
17701
17702 2011-01-14  Bruno Haible  <bruno@clisp.org>
17703
17704         filemode: Make function declarations usable in C++ mode.
17705         * lib/filemode.h: Enclose function declarations in extern "C" block.
17706         Reported by John W. Eaton <jwe@gnu.org>.
17707
17708 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
17709
17710         save-cwd: no longer include "xgetcwd.h"
17711         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
17712         This avoids a compilation failure in projects that use save-cwd
17713         without also using the xgetcwd module.
17714
17715 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
17716
17717         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
17718         This is so that a program like Emacs, which needs only dtoastr,
17719         does not have to bother with distributing and compiling ftoastr
17720         and ldtoastr.
17721         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
17722         * modules/dtoastr, modules/ldtoastr: New files.
17723         * modules/ftoastr: Now works just for 'float'.
17724         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
17725         (Makefile.am): Remove ftoastr.h (not needed and no effect),
17726         dtoastr.c, ldtoastr.c.
17727
17728 2011-01-11  Jim Meyering  <meyering@redhat.com>
17729
17730         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
17731         There is no need to work around the lack of the fchdir function,
17732         since gnulib can now provide a replacement when required.
17733         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
17734         * modules/save-cwd (Depends-on): Add fchdir.
17735
17736 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
17737
17738         openat, save-cwd: avoid xmalloc
17739
17740         This removes a direct (but undocumented) dependency of openat on
17741         xalloc, along with an indirect dependency via save-cwd.  It also
17742         removes a dependency of save-cwd on xgetcwd, and thereby
17743         indirectly on xalloc.  This change causes the openat substitute
17744         to fall back on save_cwd when memory is tight, and for save_cwd to
17745         fail instead of dying when memory is tight, but that's good enough.
17746         Problem and initial idea for fix reported by Bastien Roucaries in
17747         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
17748
17749         * lib/openat-proc.c: Include stdlib.h (for malloc), not
17750         xalloc.h (for xmalloc).
17751         (openat_proc_name): Use malloc, not xmalloc.
17752         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
17753         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
17754
17755         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
17756         This avoids heap allocation for file names whose lengths are in
17757         the range 512..1023, with the upper bound increasing to at most
17758         4031 depending on the platform's PATH_MAX.  (We do not want
17759         pathmax.h here as it might supply a non-constant PATH_MAX.)
17760         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
17761         Perhaps they should be moved to malloca.h?
17762         (OPENAT_BUFFER_SIZE): Use them.
17763
17764 2011-01-10  Bruno Haible  <bruno@clisp.org>
17765
17766         doc: Update users.txt.
17767         * users.txt: Add recutils.
17768
17769 2011-01-09  Karl Berry  <karl@gnu.org>
17770
17771         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
17772
17773         * doc/configmake.texi: New file.
17774         * doc/gnulib.texi: Include it.
17775         * modules/configmake: Move documentation from here.
17776
17777 2011-01-09  Bruno Haible  <bruno@clisp.org>
17778
17779         Update to Unicode 6.0.0.
17780         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
17781         (get_lbp): Update for Unicode 6.0.0.
17782         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
17783         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
17784         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
17785         U+11001, U+11038..U+11046. Remove U+06DE.
17786         (uc_width): Fix bounds of planes.
17787         * tests/uniwidth/test-uc_width2.sh: Same updates as in
17788         lib/uniwidth/width.c.
17789         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
17790         trailing whitespace removed.
17791         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
17792         without comments, but with the original copyright notice.
17793         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
17794         * lib/unicase/ignorable.h: Likewise.
17795         * lib/unicase/tocasefold.h: Likewise.
17796         * lib/unicase/tolower.h: Likewise.
17797         * lib/unicase/totitle.h: Likewise.
17798         * lib/unicase/toupper.h: Likewise.
17799         * lib/unictype/bidi_of.h: Likewise.
17800         * lib/unictype/blocks.h: Likewise.
17801         * lib/unictype/categ_C.h: Likewise.
17802         * lib/unictype/categ_Cn.h: Likewise.
17803         * lib/unictype/categ_L.h: Likewise.
17804         * lib/unictype/categ_Ll.h: Likewise.
17805         * lib/unictype/categ_Lm.h: Likewise.
17806         * lib/unictype/categ_Lo.h: Likewise.
17807         * lib/unictype/categ_Lu.h: Likewise.
17808         * lib/unictype/categ_M.h: Likewise.
17809         * lib/unictype/categ_Mc.h: Likewise.
17810         * lib/unictype/categ_Me.h: Likewise.
17811         * lib/unictype/categ_Mn.h: Likewise.
17812         * lib/unictype/categ_N.h: Likewise.
17813         * lib/unictype/categ_Nd.h: Likewise.
17814         * lib/unictype/categ_No.h: Likewise.
17815         * lib/unictype/categ_P.h: Likewise.
17816         * lib/unictype/categ_Po.h: Likewise.
17817         * lib/unictype/categ_S.h: Likewise.
17818         * lib/unictype/categ_Sc.h: Likewise.
17819         * lib/unictype/categ_Sk.h: Likewise.
17820         * lib/unictype/categ_Sm.h: Likewise.
17821         * lib/unictype/categ_So.h: Likewise.
17822         * lib/unictype/categ_of.h: Likewise.
17823         * lib/unictype/combining.h: Likewise.
17824         * lib/unictype/ctype_alnum.h: Likewise.
17825         * lib/unictype/ctype_alpha.h: Likewise.
17826         * lib/unictype/ctype_graph.h: Likewise.
17827         * lib/unictype/ctype_lower.h: Likewise.
17828         * lib/unictype/ctype_print.h: Likewise.
17829         * lib/unictype/ctype_punct.h: Likewise.
17830         * lib/unictype/ctype_upper.h: Likewise.
17831         * lib/unictype/decdigit.h: Likewise.
17832         * lib/unictype/digit.h: Likewise.
17833         * lib/unictype/numeric.h: Likewise.
17834         * lib/unictype/pr_alphabetic.h: Likewise.
17835         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
17836         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
17837         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
17838         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
17839         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
17840         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
17841         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
17842         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
17843         * lib/unictype/pr_case_ignorable.h: Likewise.
17844         * lib/unictype/pr_cased.h: Likewise.
17845         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
17846         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
17847         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
17848         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
17849         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
17850         * lib/unictype/pr_combining.h: Likewise.
17851         * lib/unictype/pr_composite.h: Likewise.
17852         * lib/unictype/pr_currency_symbol.h: Likewise.
17853         * lib/unictype/pr_decimal_digit.h: Likewise.
17854         * lib/unictype/pr_deprecated.h: Likewise.
17855         * lib/unictype/pr_format_control.h: Likewise.
17856         * lib/unictype/pr_grapheme_base.h: Likewise.
17857         * lib/unictype/pr_grapheme_extend.h: Likewise.
17858         * lib/unictype/pr_grapheme_link.h: Likewise.
17859         * lib/unictype/pr_id_continue.h: Likewise.
17860         * lib/unictype/pr_id_start.h: Likewise.
17861         * lib/unictype/pr_ideographic.h: Likewise.
17862         * lib/unictype/pr_lowercase.h: Likewise.
17863         * lib/unictype/pr_math.h: Likewise.
17864         * lib/unictype/pr_numeric.h: Likewise.
17865         * lib/unictype/pr_other_alphabetic.h: Likewise.
17866         * lib/unictype/pr_other_id_continue.h: Likewise.
17867         * lib/unictype/pr_other_math.h: Likewise.
17868         * lib/unictype/pr_punctuation.h: Likewise.
17869         * lib/unictype/pr_sentence_terminal.h: Likewise.
17870         * lib/unictype/pr_terminal_punctuation.h: Likewise.
17871         * lib/unictype/pr_unassigned_code_value.h: Likewise.
17872         * lib/unictype/pr_unified_ideograph.h: Likewise.
17873         * lib/unictype/pr_uppercase.h: Likewise.
17874         * lib/unictype/pr_xid_continue.h: Likewise.
17875         * lib/unictype/pr_xid_start.h: Likewise.
17876         * lib/unictype/scripts.h: Likewise.
17877         * lib/unictype/scripts_byname.gperf: Likewise.
17878         * lib/unictype/sy_java_ident.h: Likewise.
17879         * lib/unigbrk/gbrkprop.h: Likewise.
17880         * lib/unilbrk/lbrkprop1.h: Likewise.
17881         * lib/unilbrk/lbrkprop2.h: Likewise.
17882         * lib/uninorm/decomposition-table2.h: Likewise.
17883         * lib/uniwbrk/wbrkprop.h: Likewise.
17884         * tests/unicase/test-cased.c: Likewise.
17885         * tests/unicase/test-ignorable.c: Likewise.
17886         * tests/unicase/test-uc_tolower.c: Likewise.
17887         * tests/unicase/test-uc_totitle.c: Likewise.
17888         * tests/unicase/test-uc_toupper.c: Likewise.
17889         * tests/unictype/test-categ_C.c: Likewise.
17890         * tests/unictype/test-categ_Cn.c: Likewise.
17891         * tests/unictype/test-categ_L.c: Likewise.
17892         * tests/unictype/test-categ_Ll.c: Likewise.
17893         * tests/unictype/test-categ_Lm.c: Likewise.
17894         * tests/unictype/test-categ_Lo.c: Likewise.
17895         * tests/unictype/test-categ_Lu.c: Likewise.
17896         * tests/unictype/test-categ_M.c: Likewise.
17897         * tests/unictype/test-categ_Mc.c: Likewise.
17898         * tests/unictype/test-categ_Me.c: Likewise.
17899         * tests/unictype/test-categ_Mn.c: Likewise.
17900         * tests/unictype/test-categ_N.c: Likewise.
17901         * tests/unictype/test-categ_Nd.c: Likewise.
17902         * tests/unictype/test-categ_No.c: Likewise.
17903         * tests/unictype/test-categ_P.c: Likewise.
17904         * tests/unictype/test-categ_Po.c: Likewise.
17905         * tests/unictype/test-categ_S.c: Likewise.
17906         * tests/unictype/test-categ_Sc.c: Likewise.
17907         * tests/unictype/test-categ_Sk.c: Likewise.
17908         * tests/unictype/test-categ_Sm.c: Likewise.
17909         * tests/unictype/test-categ_So.c: Likewise.
17910         * tests/unictype/test-ctype_alnum.c: Likewise.
17911         * tests/unictype/test-ctype_alpha.c: Likewise.
17912         * tests/unictype/test-ctype_graph.c: Likewise.
17913         * tests/unictype/test-ctype_lower.c: Likewise.
17914         * tests/unictype/test-ctype_print.c: Likewise.
17915         * tests/unictype/test-ctype_punct.c: Likewise.
17916         * tests/unictype/test-ctype_upper.c: Likewise.
17917         * tests/unictype/test-decdigit.h: Likewise.
17918         * tests/unictype/test-digit.h: Likewise.
17919         * tests/unictype/test-numeric.h: Likewise.
17920         * tests/unictype/test-pr_alphabetic.c: Likewise.
17921         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17922         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
17923         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
17924         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17925         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17926         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17927         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17928         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17929         * tests/unictype/test-pr_case_ignorable.c: Likewise.
17930         * tests/unictype/test-pr_cased.c: Likewise.
17931         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
17932         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
17933         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
17934         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
17935         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
17936         * tests/unictype/test-pr_combining.c: Likewise.
17937         * tests/unictype/test-pr_composite.c: Likewise.
17938         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17939         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17940         * tests/unictype/test-pr_deprecated.c: Likewise.
17941         * tests/unictype/test-pr_format_control.c: Likewise.
17942         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17943         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17944         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17945         * tests/unictype/test-pr_id_continue.c: Likewise.
17946         * tests/unictype/test-pr_id_start.c: Likewise.
17947         * tests/unictype/test-pr_ideographic.c: Likewise.
17948         * tests/unictype/test-pr_lowercase.c: Likewise.
17949         * tests/unictype/test-pr_math.c: Likewise.
17950         * tests/unictype/test-pr_numeric.c: Likewise.
17951         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17952         * tests/unictype/test-pr_other_id_continue.c: Likewise.
17953         * tests/unictype/test-pr_other_math.c: Likewise.
17954         * tests/unictype/test-pr_punctuation.c: Likewise.
17955         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17956         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17957         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17958         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17959         * tests/unictype/test-pr_uppercase.c: Likewise.
17960         * tests/unictype/test-pr_xid_continue.c: Likewise.
17961         * tests/unictype/test-pr_xid_start.c: Likewise.
17962         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
17963         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
17964         changes.
17965         * lib/unictype/categ_Cc.h: Likewise.
17966         * lib/unictype/categ_Cf.h: Likewise.
17967         * lib/unictype/categ_Co.h: Likewise.
17968         * lib/unictype/categ_Cs.h: Likewise.
17969         * lib/unictype/categ_Lt.h: Likewise.
17970         * lib/unictype/categ_Nl.h: Likewise.
17971         * lib/unictype/categ_Pc.h: Likewise.
17972         * lib/unictype/categ_Pd.h: Likewise.
17973         * lib/unictype/categ_Pe.h: Likewise.
17974         * lib/unictype/categ_Pf.h: Likewise.
17975         * lib/unictype/categ_Pi.h: Likewise.
17976         * lib/unictype/categ_Ps.h: Likewise.
17977         * lib/unictype/categ_Z.h: Likewise.
17978         * lib/unictype/categ_Zl.h: Likewise.
17979         * lib/unictype/categ_Zp.h: Likewise.
17980         * lib/unictype/categ_Zs.h: Likewise.
17981         * lib/unictype/ctype_blank.h: Likewise.
17982         * lib/unictype/ctype_cntrl.h: Likewise.
17983         * lib/unictype/ctype_digit.h: Likewise.
17984         * lib/unictype/ctype_space.h: Likewise.
17985         * lib/unictype/ctype_xdigit.h: Likewise.
17986         * lib/unictype/mirror.h: Likewise.
17987         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
17988         * lib/unictype/pr_bidi_block_separator.h: Likewise.
17989         * lib/unictype/pr_bidi_common_separator.h: Likewise.
17990         * lib/unictype/pr_bidi_control.h: Likewise.
17991         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
17992         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
17993         * lib/unictype/pr_bidi_european_digit.h: Likewise.
17994         * lib/unictype/pr_bidi_pdf.h: Likewise.
17995         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
17996         * lib/unictype/pr_bidi_whitespace.h: Likewise.
17997         * lib/unictype/pr_dash.h: Likewise.
17998         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
17999         * lib/unictype/pr_diacritic.h: Likewise.
18000         * lib/unictype/pr_extender.h: Likewise.
18001         * lib/unictype/pr_hex_digit.h: Likewise.
18002         * lib/unictype/pr_hyphen.h: Likewise.
18003         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18004         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18005         * lib/unictype/pr_ignorable_control.h: Likewise.
18006         * lib/unictype/pr_iso_control.h: Likewise.
18007         * lib/unictype/pr_join_control.h: Likewise.
18008         * lib/unictype/pr_left_of_pair.h: Likewise.
18009         * lib/unictype/pr_line_separator.h: Likewise.
18010         * lib/unictype/pr_logical_order_exception.h: Likewise.
18011         * lib/unictype/pr_non_break.h: Likewise.
18012         * lib/unictype/pr_not_a_character.h: Likewise.
18013         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18014         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18015         * lib/unictype/pr_other_id_start.h: Likewise.
18016         * lib/unictype/pr_other_lowercase.h: Likewise.
18017         * lib/unictype/pr_other_uppercase.h: Likewise.
18018         * lib/unictype/pr_paired_punctuation.h: Likewise.
18019         * lib/unictype/pr_paragraph_separator.h: Likewise.
18020         * lib/unictype/pr_pattern_syntax.h: Likewise.
18021         * lib/unictype/pr_pattern_white_space.h: Likewise.
18022         * lib/unictype/pr_private_use.h: Likewise.
18023         * lib/unictype/pr_quotation_mark.h: Likewise.
18024         * lib/unictype/pr_radical.h: Likewise.
18025         * lib/unictype/pr_soft_dotted.h: Likewise.
18026         * lib/unictype/pr_space.h: Likewise.
18027         * lib/unictype/pr_titlecase.h: Likewise.
18028         * lib/unictype/pr_variation_selector.h: Likewise.
18029         * lib/unictype/pr_white_space.h: Likewise.
18030         * lib/unictype/pr_zero_width.h: Likewise.
18031         * lib/unictype/sy_c_ident.h: Likewise.
18032         * lib/unictype/sy_c_whitespace.h: Likewise.
18033         * lib/unictype/sy_java_whitespace.h: Likewise.
18034         * lib/uninorm/composition-table.gperf: Likewise.
18035         * lib/uninorm/decomposition-table1.h: Likewise.
18036         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
18037         LB8.
18038         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18039         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18040         * modules/unictype/*: Bump version number of expected libunistring
18041         version.
18042
18043 2011-01-09  Bruno Haible  <bruno@clisp.org>
18044
18045         Update to Unicode 5.2.0.
18046         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
18047         trailing whitespace removed.
18048
18049 2011-01-09  Bruno Haible  <bruno@clisp.org>
18050
18051         New Unicode character properties, from Unicode 5.2.0.
18052         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
18053         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
18054         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
18055         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
18056         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
18057         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
18058         uc_is_property_cased, uc_is_property_case_ignorable,
18059         uc_is_property_changes_when_lowercased,
18060         uc_is_property_changes_when_uppercased,
18061         uc_is_property_changes_when_titlecased,
18062         uc_is_property_changes_when_casefolded,
18063         uc_is_property_changes_when_casemapped): New declarations.
18064         * lib/unictype/pr_byname.gperf: Add the new properties.
18065         * modules/unictype/property-byname (Depends-on): Depend on the new
18066         properties modules.
18067         * modules/unictype/property-all (Depends-on): Likewise.
18068         * MODULES.html.sh (Unicode string functions): Add
18069         unictype/property-case-ignorable, unictype/property-cased,
18070         unictype/property-changes-when-casefolded,
18071         unictype/property-changes-when-casemapped,
18072         unictype/property-changes-when-lowercased,
18073         unictype/property-changes-when-titlecased,
18074         unictype/property-changes-when-uppercased.
18075
18076         New module 'unictype/property-changes-when-casemapped'.
18077         * modules/unictype/property-changes-when-casemapped: New file.
18078         * lib/unictype/pr_changes_when_casemapped.c: New file.
18079         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
18080         generated by gen-uni-tables.
18081         * modules/unictype/property-changes-when-casemapped-tests: New file.
18082         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
18083         automatically generated by gen-uni-tables.
18084
18085         New module 'unictype/property-changes-when-casefolded'.
18086         * modules/unictype/property-changes-when-casefolded: New file.
18087         * lib/unictype/pr_changes_when_casefolded.c: New file.
18088         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
18089         generated by gen-uni-tables.
18090         * modules/unictype/property-changes-when-casefolded-tests: New file.
18091         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
18092         automatically generated by gen-uni-tables.
18093
18094         New module 'unictype/property-changes-when-titlecased'.
18095         * modules/unictype/property-changes-when-titlecased: New file.
18096         * lib/unictype/pr_changes_when_titlecased.c: New file.
18097         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
18098         generated by gen-uni-tables.
18099         * modules/unictype/property-changes-when-titlecased-tests: New file.
18100         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
18101         automatically generated by gen-uni-tables.
18102
18103         New module 'unictype/property-changes-when-uppercased'.
18104         * modules/unictype/property-changes-when-uppercased: New file.
18105         * lib/unictype/pr_changes_when_uppercased.c: New file.
18106         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
18107         generated by gen-uni-tables.
18108         * modules/unictype/property-changes-when-uppercased-tests: New file.
18109         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
18110         automatically generated by gen-uni-tables.
18111
18112         New module 'unictype/property-changes-when-lowercased'.
18113         * modules/unictype/property-changes-when-lowercased: New file.
18114         * lib/unictype/pr_changes_when_lowercased.c: New file.
18115         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
18116         generated by gen-uni-tables.
18117         * modules/unictype/property-changes-when-lowercased-tests: New file.
18118         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
18119         automatically generated by gen-uni-tables.
18120
18121         New module 'unictype/property-case-ignorable'.
18122         * modules/unictype/property-case-ignorable: New file.
18123         * lib/unictype/pr_case_ignorable.c: New file.
18124         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
18125         by gen-uni-tables.
18126         * modules/unictype/property-case-ignorable-tests: New file.
18127         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
18128         generated by gen-uni-tables.
18129
18130         New module 'unictype/property-cased'.
18131         * modules/unictype/property-cased: New file.
18132         * lib/unictype/pr_cased.c: New file.
18133         * lib/unictype/pr_cased.h: New file, automatically generated by
18134         gen-uni-tables.
18135         * modules/unictype/property-cased-tests: New file.
18136         * tests/unictype/test-pr_cased.c: New file, automatically generated by
18137         gen-uni-tables.
18138
18139 2011-01-09  Bruno Haible  <bruno@clisp.org>
18140
18141         Update to Unicode 5.2.0.
18142         * lib/gen-uni-tables.c (output_predicate, output_category,
18143         output_combclass, output_bidi_category, output_decimal_digit_test,
18144         output_decimal_digit, output_digit_test, output_digit,
18145         output_numeric_test, output_numeric, output_mirror, output_scripts,
18146         output_scripts_byname, output_blocks, output_ident_category): Fix
18147         comment header.
18148         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
18149         get_wbp.
18150         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
18151         items.
18152         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
18153         Changes_When_Lowercased, Changes_When_Uppercased,
18154         Changes_When_Titlecased, Changes_When_Casefolded,
18155         Changes_When_Casemapped.
18156         (is_property_alphabetic, is_property_default_ignorable_code_point):
18157         Update for Unicode 5.2.0.
18158         (is_property_cased, is_property_case_ignorable,
18159         is_property_changes_when_lowercased,
18160         is_property_changes_when_uppercased,
18161         is_property_changes_when_titlecased,
18162         is_property_changes_when_casefolded,
18163         is_property_changes_when_casemapped): New functions.
18164         (output_properties): Output also the properties cased, case_ignorable,
18165         changes_when_lowercased, changes_when_uppercased,
18166         changes_when_titlecased, changes_when_casefolded,
18167         changes_when_casemapped.
18168         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
18169         Unicode TR#11 revision 17 -> 19.
18170         (LBP_CP): New enumeration value.
18171         (LBP_*): Adjust values accordingly.
18172         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
18173         TR#14 revision 22 -> 24.
18174         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
18175         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
18176         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
18177         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
18178         is_WBP_MIDLETTER.
18179         (output_composition_tables): Allow for 24 bits instead of 16 bits in
18180         the code1 and code2 of each composition rule.
18181         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
18182         * lib/unicase/ignorable.h: Likewise.
18183         * lib/unicase/tocasefold.h: Likewise.
18184         * lib/unicase/tolower.h: Likewise.
18185         * lib/unicase/totitle.h: Likewise.
18186         * lib/unicase/toupper.h: Likewise.
18187         * lib/unictype/bidi_of.h: Likewise.
18188         * lib/unictype/blocks.h: Likewise.
18189         * lib/unictype/categ_C.h: Likewise.
18190         * lib/unictype/categ_Cf.h: Likewise.
18191         * lib/unictype/categ_Cn.h: Likewise.
18192         * lib/unictype/categ_L.h: Likewise.
18193         * lib/unictype/categ_Ll.h: Likewise.
18194         * lib/unictype/categ_Lm.h: Likewise.
18195         * lib/unictype/categ_Lo.h: Likewise.
18196         * lib/unictype/categ_Lu.h: Likewise.
18197         * lib/unictype/categ_M.h: Likewise.
18198         * lib/unictype/categ_Mc.h: Likewise.
18199         * lib/unictype/categ_Mn.h: Likewise.
18200         * lib/unictype/categ_N.h: Likewise.
18201         * lib/unictype/categ_Nd.h: Likewise.
18202         * lib/unictype/categ_Nl.h: Likewise.
18203         * lib/unictype/categ_No.h: Likewise.
18204         * lib/unictype/categ_P.h: Likewise.
18205         * lib/unictype/categ_Pd.h: Likewise.
18206         * lib/unictype/categ_Po.h: Likewise.
18207         * lib/unictype/categ_S.h: Likewise.
18208         * lib/unictype/categ_Sc.h: Likewise.
18209         * lib/unictype/categ_So.h: Likewise.
18210         * lib/unictype/categ_of.h: Likewise.
18211         * lib/unictype/combining.h: Likewise.
18212         * lib/unictype/ctype_alnum.h: Likewise.
18213         * lib/unictype/ctype_alpha.h: Likewise.
18214         * lib/unictype/ctype_graph.h: Likewise.
18215         * lib/unictype/ctype_lower.h: Likewise.
18216         * lib/unictype/ctype_print.h: Likewise.
18217         * lib/unictype/ctype_punct.h: Likewise.
18218         * lib/unictype/ctype_upper.h: Likewise.
18219         * lib/unictype/decdigit.h: Likewise.
18220         * lib/unictype/digit.h: Likewise.
18221         * lib/unictype/numeric.h: Likewise.
18222         * lib/unictype/pr_alphabetic.h: Likewise.
18223         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
18224         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
18225         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18226         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
18227         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
18228         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
18229         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
18230         * lib/unictype/pr_combining.h: Likewise.
18231         * lib/unictype/pr_composite.h: Likewise.
18232         * lib/unictype/pr_currency_symbol.h: Likewise.
18233         * lib/unictype/pr_dash.h: Likewise.
18234         * lib/unictype/pr_decimal_digit.h: Likewise.
18235         * lib/unictype/pr_deprecated.h: Likewise.
18236         * lib/unictype/pr_diacritic.h: Likewise.
18237         * lib/unictype/pr_extender.h: Likewise.
18238         * lib/unictype/pr_grapheme_base.h: Likewise.
18239         * lib/unictype/pr_grapheme_extend.h: Likewise.
18240         * lib/unictype/pr_grapheme_link.h: Likewise.
18241         * lib/unictype/pr_id_continue.h: Likewise.
18242         * lib/unictype/pr_id_start.h: Likewise.
18243         * lib/unictype/pr_ideographic.h: Likewise.
18244         * lib/unictype/pr_ignorable_control.h: Likewise.
18245         * lib/unictype/pr_logical_order_exception.h: Likewise.
18246         * lib/unictype/pr_lowercase.h: Likewise.
18247         * lib/unictype/pr_numeric.h: Likewise.
18248         * lib/unictype/pr_other_alphabetic.h: Likewise.
18249         * lib/unictype/pr_punctuation.h: Likewise.
18250         * lib/unictype/pr_sentence_terminal.h: Likewise.
18251         * lib/unictype/pr_terminal_punctuation.h: Likewise.
18252         * lib/unictype/pr_unassigned_code_value.h: Likewise.
18253         * lib/unictype/pr_unified_ideograph.h: Likewise.
18254         * lib/unictype/pr_uppercase.h: Likewise.
18255         * lib/unictype/pr_xid_continue.h: Likewise.
18256         * lib/unictype/pr_xid_start.h: Likewise.
18257         * lib/unictype/pr_zero_width.h: Likewise.
18258         * lib/unictype/scripts.h: Likewise.
18259         * lib/unictype/scripts_byname.gperf: Likewise.
18260         * lib/unictype/sy_java_ident.h: Likewise.
18261         * lib/unigbrk/gbrkprop.h: Likewise.
18262         * lib/unilbrk/lbrkprop1.h: Likewise.
18263         * lib/unilbrk/lbrkprop2.h: Likewise.
18264         * lib/unilbrk/lbrktables.h: Likewise.
18265         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
18266         LBP_CP. Implement rule LB30.
18267         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
18268         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
18269         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
18270         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
18271         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
18272         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
18273         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
18274         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
18275         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
18276         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
18277         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
18278         bits instead of 16 bits in the code1 and code2 of each composition
18279         rule.
18280         (uc_composition): Update for Unicode 5.2.0.
18281         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
18282         * lib/uninorm/decomposition-table2.h: Likewise.
18283         * lib/uniwbrk/wbrkprop.h: Likewise.
18284         * tests/unicase/test-cased.c: Likewise.
18285         * tests/unicase/test-ignorable.c: Likewise.
18286         * tests/unicase/test-uc_tolower.c: Likewise.
18287         * tests/unicase/test-uc_totitle.c: Likewise.
18288         * tests/unicase/test-uc_toupper.c: Likewise.
18289         * tests/unictype/test-categ_C.c: Likewise.
18290         * tests/unictype/test-categ_Cf.c: Likewise.
18291         * tests/unictype/test-categ_Cn.c: Likewise.
18292         * tests/unictype/test-categ_L.c: Likewise.
18293         * tests/unictype/test-categ_Ll.c: Likewise.
18294         * tests/unictype/test-categ_Lm.c: Likewise.
18295         * tests/unictype/test-categ_Lo.c: Likewise.
18296         * tests/unictype/test-categ_Lu.c: Likewise.
18297         * tests/unictype/test-categ_M.c: Likewise.
18298         * tests/unictype/test-categ_Mc.c: Likewise.
18299         * tests/unictype/test-categ_Mn.c: Likewise.
18300         * tests/unictype/test-categ_N.c: Likewise.
18301         * tests/unictype/test-categ_Nd.c: Likewise.
18302         * tests/unictype/test-categ_Nl.c: Likewise.
18303         * tests/unictype/test-categ_No.c: Likewise.
18304         * tests/unictype/test-categ_P.c: Likewise.
18305         * tests/unictype/test-categ_Pd.c: Likewise.
18306         * tests/unictype/test-categ_Po.c: Likewise.
18307         * tests/unictype/test-categ_S.c: Likewise.
18308         * tests/unictype/test-categ_Sc.c: Likewise.
18309         * tests/unictype/test-categ_So.c: Likewise.
18310         * tests/unictype/test-ctype_alnum.c: Likewise.
18311         * tests/unictype/test-ctype_alpha.c: Likewise.
18312         * tests/unictype/test-ctype_graph.c: Likewise.
18313         * tests/unictype/test-ctype_lower.c: Likewise.
18314         * tests/unictype/test-ctype_print.c: Likewise.
18315         * tests/unictype/test-ctype_punct.c: Likewise.
18316         * tests/unictype/test-ctype_upper.c: Likewise.
18317         * tests/unictype/test-decdigit.h: Likewise.
18318         * tests/unictype/test-digit.h: Likewise.
18319         * tests/unictype/test-numeric.h: Likewise.
18320         * tests/unictype/test-pr_alphabetic.c: Likewise.
18321         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
18322         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
18323         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
18324         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
18325         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
18326         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
18327         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
18328         * tests/unictype/test-pr_combining.c: Likewise.
18329         * tests/unictype/test-pr_composite.c: Likewise.
18330         * tests/unictype/test-pr_currency_symbol.c: Likewise.
18331         * tests/unictype/test-pr_dash.c: Likewise.
18332         * tests/unictype/test-pr_decimal_digit.c: Likewise.
18333         * tests/unictype/test-pr_deprecated.c: Likewise.
18334         * tests/unictype/test-pr_diacritic.c: Likewise.
18335         * tests/unictype/test-pr_extender.c: Likewise.
18336         * tests/unictype/test-pr_grapheme_base.c: Likewise.
18337         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
18338         * tests/unictype/test-pr_grapheme_link.c: Likewise.
18339         * tests/unictype/test-pr_id_continue.c: Likewise.
18340         * tests/unictype/test-pr_id_start.c: Likewise.
18341         * tests/unictype/test-pr_ideographic.c: Likewise.
18342         * tests/unictype/test-pr_ignorable_control.c: Likewise.
18343         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
18344         * tests/unictype/test-pr_lowercase.c: Likewise.
18345         * tests/unictype/test-pr_numeric.c: Likewise.
18346         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
18347         * tests/unictype/test-pr_punctuation.c: Likewise.
18348         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
18349         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
18350         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
18351         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
18352         * tests/unictype/test-pr_uppercase.c: Likewise.
18353         * tests/unictype/test-pr_xid_continue.c: Likewise.
18354         * tests/unictype/test-pr_xid_start.c: Likewise.
18355         * tests/unictype/test-pr_zero_width.c: Likewise.
18356         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
18357         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
18358         changed behaviour: line breaking is now disallowed between a letter
18359         or '=' and '('.
18360         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
18361         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
18362         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
18363         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
18364         * tests/uniwidth/test-uc_width2.sh: Same updates as in
18365         lib/uniwidth/width.c.
18366         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
18367         without comments, but with the original copyright notice.
18368         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
18369         changes.
18370         * lib/unictype/categ_Cc.h: Likewise.
18371         * lib/unictype/categ_Co.h: Likewise.
18372         * lib/unictype/categ_Cs.h: Likewise.
18373         * lib/unictype/categ_Lt.h: Likewise.
18374         * lib/unictype/categ_Me.h: Likewise.
18375         * lib/unictype/categ_Pc.h: Likewise.
18376         * lib/unictype/categ_Pe.h: Likewise.
18377         * lib/unictype/categ_Pf.h: Likewise.
18378         * lib/unictype/categ_Pi.h: Likewise.
18379         * lib/unictype/categ_Ps.h: Likewise.
18380         * lib/unictype/categ_Sk.h: Likewise.
18381         * lib/unictype/categ_Sm.h: Likewise.
18382         * lib/unictype/categ_Z.h: Likewise.
18383         * lib/unictype/categ_Zl.h: Likewise.
18384         * lib/unictype/categ_Zp.h: Likewise.
18385         * lib/unictype/categ_Zs.h: Likewise.
18386         * lib/unictype/ctype_blank.h: Likewise.
18387         * lib/unictype/ctype_cntrl.h: Likewise.
18388         * lib/unictype/ctype_digit.h: Likewise.
18389         * lib/unictype/ctype_space.h: Likewise.
18390         * lib/unictype/ctype_xdigit.h: Likewise.
18391         * lib/unictype/mirror.h: Likewise.
18392         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
18393         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
18394         * lib/unictype/pr_bidi_block_separator.h: Likewise.
18395         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
18396         * lib/unictype/pr_bidi_common_separator.h: Likewise.
18397         * lib/unictype/pr_bidi_control.h: Likewise.
18398         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
18399         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
18400         * lib/unictype/pr_bidi_pdf.h: Likewise.
18401         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
18402         * lib/unictype/pr_bidi_whitespace.h: Likewise.
18403         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
18404         * lib/unictype/pr_format_control.h: Likewise.
18405         * lib/unictype/pr_hex_digit.h: Likewise.
18406         * lib/unictype/pr_hyphen.h: Likewise.
18407         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18408         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18409         * lib/unictype/pr_iso_control.h: Likewise.
18410         * lib/unictype/pr_join_control.h: Likewise.
18411         * lib/unictype/pr_left_of_pair.h: Likewise.
18412         * lib/unictype/pr_line_separator.h: Likewise.
18413         * lib/unictype/pr_math.h: Likewise.
18414         * lib/unictype/pr_non_break.h: Likewise.
18415         * lib/unictype/pr_not_a_character.h: Likewise.
18416         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18417         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18418         * lib/unictype/pr_other_id_continue.h: Likewise.
18419         * lib/unictype/pr_other_id_start.h: Likewise.
18420         * lib/unictype/pr_other_lowercase.h: Likewise.
18421         * lib/unictype/pr_other_math.h: Likewise.
18422         * lib/unictype/pr_other_uppercase.h: Likewise.
18423         * lib/unictype/pr_paired_punctuation.h: Likewise.
18424         * lib/unictype/pr_paragraph_separator.h: Likewise.
18425         * lib/unictype/pr_pattern_syntax.h: Likewise.
18426         * lib/unictype/pr_pattern_white_space.h: Likewise.
18427         * lib/unictype/pr_private_use.h: Likewise.
18428         * lib/unictype/pr_quotation_mark.h: Likewise.
18429         * lib/unictype/pr_radical.h: Likewise.
18430         * lib/unictype/pr_soft_dotted.h: Likewise.
18431         * lib/unictype/pr_space.h: Likewise.
18432         * lib/unictype/pr_titlecase.h: Likewise.
18433         * lib/unictype/pr_variation_selector.h: Likewise.
18434         * lib/unictype/pr_white_space.h: Likewise.
18435         * lib/unictype/sy_c_ident.h: Likewise.
18436         * lib/unictype/sy_c_whitespace.h: Likewise.
18437         * lib/unictype/sy_java_whitespace.h: Likewise.
18438         * modules/uni*/*: Bump version number of expected libunistring version.
18439         Reported by Simon Josefsson.
18440
18441 2011-01-09  Karl Heuer  <kwzh@gnu.org>
18442
18443         useless-if-before-free: fix typo in --help and make the internal,
18444         automatic version date update process work once again.
18445         --help output contained a NUL character instead of the
18446         backslash-zero that was intended.  Also, the "must lie within
18447         the first 8 lines" line is on line 9, and hence not getting
18448         automatically updated.
18449         * build-aux/useless-if-before-free: Fix the former by adding a
18450         backslash, and the latter by condensing the three lines of what-it-does
18451         to a single line, leaving one line of slack for the future.
18452
18453 2011-01-09  Bruno Haible  <bruno@clisp.org>
18454
18455         uniwidth/width: Fix width of U+1D173..U+1D17A.
18456         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
18457         symbolic_width, output_width_property_test): New functions.
18458         (main): Invoke output_nonspacing_property, output_width_property_test.
18459         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
18460         U+1D173..U+1D17A.
18461         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
18462         1.
18463         * modules/uniwidth/*: Bump version number of expected libunistring
18464         version.
18465         * modules/unilbrk/*: Likewise.
18466
18467 2011-01-08  Bruno Haible  <bruno@clisp.org>
18468
18469         uninorm tests: Preserve copyright of Unicode data file.
18470         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
18471         Mention modifications.
18472
18473 2011-01-08  Bruno Haible  <bruno@clisp.org>
18474
18475         gen-uni-tables: Prepare for Unicode 5.2.0.
18476         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
18477         (debug_output_lbp, output_lbp): Update.
18478
18479 2011-01-08  Bruno Haible  <bruno@clisp.org>
18480
18481         unilbrk: Clarify gen-uni-tables.c code.
18482         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
18483         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
18484         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
18485
18486 2011-01-07  Bruno Haible  <bruno@clisp.org>
18487
18488         strtod: Restore errno when successfully parsing Infinity or NaN.
18489         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
18490         restore the original errno.
18491
18492 2011-01-07  Bruno Haible  <bruno@clisp.org>
18493
18494         remove test: Avoid failure on HP-UX 11.
18495         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
18496
18497 2011-01-07  Bruno Haible  <bruno@clisp.org>
18498
18499         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
18500         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
18501         error code.
18502
18503 2011-01-07  Pádraig Brady <P@draigBrady.com>
18504
18505         ignore-value: fixup comments, and add Eric Blake
18506         as an author since he rewrote the macros.
18507         * lib/ignore-value.h (ignore_value):  State that
18508         we now support aggregates.  Also specify exactly
18509         when the GCC warn_unused_result feature was added.
18510
18511 2011-01-06  Eric Blake  <eblake@redhat.com>
18512
18513         ignore-value: support aggregate types
18514         * lib/ignore-value.h (ignore_value): Provide separate gcc
18515         definition.
18516         * modules/ignore-value-tests: New test module.
18517         * tests/test-ignore-value.c: New test.
18518
18519         maint.mk: improve sc_prohibit_strcmp regex
18520         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
18521         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
18522         definition of STRNEQ.
18523
18524         signal: work around Haiku issue with SIGBUS
18525         * lib/siglist.h: Add comment.
18526         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
18527         strsignal's favoring of SIGSEGV.
18528         * tests/test-signal.c (main): Avoid test failure.
18529         * doc/posix-headers/signal.texi (signal.h): Document the issue.
18530         Reported by Scott McCreary.
18531
18532         maint.mk: add pre-release check to ensure submodule commits are public
18533         * top/maint.mk (public-submodule-commit): New rule.
18534         (submodule-checks): New variable.
18535         (alpha beta stable): Depend on the variable.
18536
18537 2011-01-05  Pádraig Brady <P@draigBrady.com>
18538         and Jim Meyering  <meyering@redhat.com>
18539
18540         ignore-value: make ignore_value more generic; deprecate ignore_ptr
18541         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
18542         (ATTRIBUTE_DEPRECATED): Define.
18543         (_ignore_case): New function.
18544         (ignore_value): New macro, to replace the old function.
18545         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
18546         * modules/ignore-value (Depends-on): Add stdint.
18547
18548 2011-01-04  Eric Blake  <eblake@redhat.com>
18549
18550         doc: regenerate INSTALL
18551         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
18552         @firstparagraphindent support, now that autoconf dropped it.
18553         (INSTALL_PRELUDE): Reinstate old macro.
18554         * doc/install.texi: Resync from autoconf.
18555         * doc/INSTALL: Reflect recent autoconf update.
18556         * doc/INSTALL.ISO: Likewise.
18557         * doc/INSTALL.UTF-8: Likewise.
18558         Reported by Karl Berry.
18559
18560 2011-01-04  Bruce Korb  <address@hidden>
18561
18562         git-version-gen: avoid a sub-shell
18563         * build-aux/git-version-gen: Redirect stderr in `...` via
18564         "exec 2>...", rather than via an added sub-shell.
18565
18566 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
18567
18568         git-version-gen: use (...) rather than sh -c '...'
18569         * build-aux/git-version-gen: Rather than hard-coding a shell's name
18570         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
18571
18572 2011-01-03  Jim Meyering  <meyering@redhat.com>
18573
18574         git-version-gen: convert leading TABs to spaces
18575         * build-aux/git-version-gen: Expand leading TABs.
18576
18577         git-version-gen: handle failed "git rev-list"
18578         * build-aux/git-version-gen: Rather than leaking a "fatal" error
18579         from git and proceeding as if it had succeeded but printed no SHA1
18580         checksums, suppress the diagnostic and handle the failure.
18581         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
18582
18583         git-version-gen: include command name in one more diagnostic
18584         * build-aux/git-version-gen: When the required .tarball-version file
18585         was missing or unreadable, you might see the diagnostic from "cat",
18586         but no trace of the name of the invoking script.  Now, you still see
18587         the diagnostic from cat, but also get one from "git-version-gen: ".
18588         Inspired by a patch from Bruce Korb.
18589
18590         update-copyright: adjust test to match changed code
18591         * tests/test-update-copyright.sh: Change test's expected output
18592         to match new actual output.
18593
18594 2011-01-02  Bruno Haible  <bruno@clisp.org>
18595
18596         getlogin_r: Avoid test failure on HP-UX 11.
18597         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
18598         ERANGE when the second argument is zero.
18599         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
18600         portability problem.
18601
18602 2011-01-02  Bruce Korb  <bkorb@gnu.org>
18603
18604         * build-aux/update-copyright: doc Simon's changes
18605
18606 2011-01-02  Simon Josefsson  <simon@josefsson.org>
18607
18608         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
18609         environment variable.
18610
18611 2011-01-02  Bruno Haible  <bruno@clisp.org>
18612
18613         unigbrk: Avoid gcc warnings.
18614         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
18615         unused variable.
18616         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
18617         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
18618         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
18619         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
18620         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
18621         Change type of first argument to 'const char *'.
18622         (main): Remove unused variable.
18623         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
18624         type of first argument to 'const char *'.
18625         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
18626         Likewise.
18627         (main): Change type of variable 's'.
18628         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
18629         to 'int'.
18630
18631 2011-01-02  Bruno Haible  <bruno@clisp.org>
18632
18633         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
18634         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
18635         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
18636         bug.
18637         * lib/pwrite.c: Undo 2010-12-31 patch.
18638         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
18639
18640 2011-01-02  Bruno Haible  <bruno@clisp.org>
18641
18642         pread: Fix test whether it works.
18643         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
18644
18645 2011-01-02  Bruno Haible  <bruno@clisp.org>
18646
18647         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
18648         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
18649         ends in "6". Don't require a specific month name. Try also the locale
18650         names found on HP-UX 11 and Solaris 7.
18651
18652 2011-01-02  Bruno Haible  <bruno@clisp.org>
18653
18654         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
18655         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
18656         C linkage.
18657         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
18658
18659 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18660
18661         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
18662         for consistency, since the "cluster" term is not used elsewhere.
18663         * lib/unigbrk.in.h: Update name.
18664         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
18665         * lib/unigbrk/u16-grapheme-next.c: Update name.
18666         * lib/unigbrk/u16-grapheme-prev.c: Update name.
18667         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
18668         * lib/unigbrk/u32-grapheme-next.c: Update name.
18669         * lib/unigbrk/u32-grapheme-prev.c: Update name.
18670         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
18671         * lib/unigbrk/u8-grapheme-next.c: Update name.
18672         * lib/unigbrk/u8-grapheme-prev.c: Update name.
18673         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
18674         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
18675         Suggested by Bruno Haible.
18676
18677 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18678
18679         Remove module 'u8-grapheme-len' as too redundant with
18680         'u8-grapheme-next'.
18681         * modules/unigbrk/u8-grapheme-len: Delete file.
18682         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
18683         * lib/unigbrk.in.h: Remove prototype for deleted function.
18684         * lib/unigbrk/u8-grapheme-len.c: Delete file.
18685         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
18686
18687         Remove module 'u16-grapheme-len' as too redundant with
18688         'u16-grapheme-next'.
18689         * modules/unigbrk/u16-grapheme-len: Delete file.
18690         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
18691         * lib/unigbrk.in.h: Remove prototype for deleted function.
18692         * lib/unigbrk/u16-grapheme-len.c: Delete file.
18693         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
18694
18695         Remove module 'u32-grapheme-len' as too redundant with
18696         'u32-grapheme-next'.
18697         * modules/unigbrk/u32-grapheme-len: Delete file.
18698         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
18699         * lib/unigbrk.in.h: Remove prototype for deleted function.
18700         * lib/unigbrk/u32-grapheme-len.c: Delete file.
18701         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
18702
18703         Suggested by Bruno Haible.
18704
18705 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
18706
18707         * unigbrk.in.h: Fix typo: "ben" => "been".
18708         Reported by Bruno Haible.
18709
18710 2011-01-01  Jim Meyering  <meyering@redhat.com>
18711
18712         maint: update almost all copyright ranges to include 2011
18713         Run the new "make update-copyright" rule.
18714
18715 2011-01-01  Jim Meyering  <meyering@redhat.com>
18716
18717         maint: update-copyright: exempt doc/INSTALL*
18718         * Makefile (update-copyright): Also exclude doc/INSTALL*,
18719         since they are generated.  Suggested by Bruno Haible.
18720
18721 2011-01-01  Jim Meyering  <meyering@redhat.com>
18722
18723         maint: refine the update-copyright rule
18724         * Makefile (update-copyright): Also exclude any file that includes
18725         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
18726         code that merely generates the comment.
18727
18728 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
18729
18730         New module 'u8-grapheme-len'.
18731         * modules/unigbrk/u8-grapheme-len: New file.
18732         * modules/unigbrk/u8-grapheme-len-tests: New file.
18733         * lib/unigbrk.in.h: Add prototype for new function.
18734         * lib/unigbrk/u8-grapheme-len.c: New file.
18735         * tests/unigbrk/test-u8-grapheme-len.c: New file.
18736
18737         New module 'u16-grapheme-len'.
18738         * modules/unigbrk/u16-grapheme-len: New file.
18739         * modules/unigbrk/u16-grapheme-len-tests: New file.
18740         * lib/unigbrk.in.h: Add prototype for new function.
18741         * lib/unigbrk/u16-grapheme-len.c: New file.
18742         * tests/unigbrk/test-u16-grapheme-len.c: New file.
18743
18744         New module 'u32-grapheme-len'.
18745         * modules/unigbrk/u32-grapheme-len: New file.
18746         * modules/unigbrk/u32-grapheme-len-tests: New file.
18747         * lib/unigbrk.in.h: Add prototype for new function.
18748         * lib/unigbrk/u32-grapheme-len.c: New file.
18749         * tests/unigbrk/test-u32-grapheme-len.c: New file.
18750
18751         New module 'u8-grapheme-next'.
18752         * modules/unigbrk/u8-grapheme-next: New file.
18753         * modules/unigbrk/u8-grapheme-next-tests: New file.
18754         * lib/unigbrk.in.h: Add prototype for new function.
18755         * lib/unigbrk/u8-grapheme-next.c: New file.
18756         * tests/unigbrk/test-u8-grapheme-next.c: New file.
18757
18758         New module 'u16-grapheme-next'.
18759         * modules/unigbrk/u16-grapheme-next: New file.
18760         * modules/unigbrk/u16-grapheme-next-tests: New file.
18761         * lib/unigbrk.in.h: Add prototype for new function.
18762         * lib/unigbrk/u16-grapheme-next.c: New file.
18763         * tests/unigbrk/test-u16-grapheme-next.c: New file.
18764
18765         New module 'u32-grapheme-next'.
18766         * modules/unigbrk/u32-grapheme-next: New file.
18767         * modules/unigbrk/u32-grapheme-next-tests: New file.
18768         * lib/unigbrk.in.h: Add prototype for new function.
18769         * lib/unigbrk/u32-grapheme-next.c: New file.
18770         * tests/unigbrk/test-u32-grapheme-next.c: New file.
18771
18772         New module 'u8-grapheme-prev'.
18773         * modules/unigbrk/u8-grapheme-prev: New file.
18774         * modules/unigbrk/u8-grapheme-prev-tests: New file.
18775         * lib/unigbrk.in.h: Add prototype for new function.
18776         * lib/unigbrk/u8-grapheme-prev.c: New file.
18777         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
18778
18779         New module 'u16-grapheme-prev'.
18780         * modules/unigbrk/u16-grapheme-prev: New file.
18781         * modules/unigbrk/u16-grapheme-prev-tests: New file.
18782         * lib/unigbrk.in.h: Add prototype for new function.
18783         * lib/unigbrk/u16-grapheme-prev.c: New file.
18784         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
18785
18786         New module 'u32-grapheme-prev'.
18787         * modules/unigbrk/u32-grapheme-prev: New file.
18788         * modules/unigbrk/u32-grapheme-prev-tests: New file.
18789         * lib/unigbrk.in.h: Add prototype for new function.
18790         * lib/unigbrk/u32-grapheme-prev.c: New file.
18791         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
18792
18793         New module 'u8-grapheme-breaks'.
18794         * modules/unigbrk/u8-grapheme-breaks: New file.
18795         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
18796         * lib/unigbrk.in.h: Add prototype for new function.
18797         * lib/unigbrk/u8-grapheme-breaks.c: New file.
18798         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
18799
18800         New module 'u16-grapheme-breaks'.
18801         * modules/unigbrk/u16-grapheme-breaks: New file.
18802         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
18803         * lib/unigbrk.in.h: Add prototype for new function.
18804         * lib/unigbrk/u16-grapheme-breaks.c: New file.
18805         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
18806
18807         New module 'u32-grapheme-breaks'.
18808         * modules/unigbrk/u32-grapheme-breaks: New file.
18809         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
18810         * lib/unigbrk.in.h: Add prototype for new function.
18811         * lib/unigbrk/u32-grapheme-breaks.c: New file.
18812         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
18813
18814         New module 'ulc-grapheme-breaks'.
18815         * modules/unigbrk/ulc-grapheme-breaks: New file.
18816         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
18817         * m4/locale-ar.m4: New file.
18818         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
18819         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
18820         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
18821
18822 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
18823
18824         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
18825         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
18826         modified how this file was generated before I initially submitted
18827         the module, but failed to regenerate it.  This meant that several
18828         of the level2 entries were wrong.
18829         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
18830         Remove the division-by-2 that is folded into the table now that
18831         gbrkprop.h has been regenerated properly.  Now -1 entries are
18832         handled correctly.
18833
18834         New module 'unigbrk/uc-gbrk-prop-tests'.
18835         * modules/unigbrk/uc-gbrk-prop-tests: New file.
18836         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
18837         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
18838         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
18839
18840 2011-01-01  Bruno Haible  <bruno@clisp.org>
18841
18842         Avoid use of hexadecimal escapes.
18843         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
18844         instead of hexadecimal escapes.
18845
18846 2011-01-01  Jim Meyering  <meyering@redhat.com>
18847
18848         maint: new rule to update copyright year ranges
18849         * Makefile (update-copyright): New rule.
18850
18851         maint: indent with TABs in Makefile
18852         * Makefile: Expand leading sequences of spaces to TABs
18853
18854         version-etc: update the copyright year it reports
18855         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
18856
18857 2010-12-31  Bruno Haible  <bruno@clisp.org>
18858
18859         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
18860         * lib/isfinite.c (zerof, zerod, zerol): New variables.
18861         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
18862         zero.
18863
18864 2010-12-31  Bruno Haible  <bruno@clisp.org>
18865
18866         pwrite: Work around HP-UX 11.11 bug.
18867         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
18868         works and set REPLACE_PWRITE if not.
18869         * lib/pwrite.c (pwrite): Add an implementation that uses the system
18870         function.
18871         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
18872
18873 2010-12-31  Bruno Haible  <bruno@clisp.org>
18874
18875         pread: Work around HP-UX 11 bugs.
18876         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
18877         and set REPLACE_PREAD if not.
18878         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
18879
18880 2010-12-31  Eric Blake  <eblake@redhat.com>
18881
18882         nl_langinfo: fix YESEXPR on Irix 6.5
18883         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
18884         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
18885         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
18886         it.
18887
18888 2010-12-31  Bruno Haible  <bruno@clisp.org>
18889
18890         iconv: Document HP-UX 11 bug.
18891         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
18892
18893 2010-12-31  Bruno Haible  <bruno@clisp.org>
18894
18895         ldexpl: Fix link error on HP-UX 11.
18896         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
18897         LDEXPL_LIBM, using $ISNANL_LIBM.
18898
18899 2010-12-31  Eric Blake  <eblake@redhat.com>
18900
18901         ftello: avoid compilation failure with SunStudio c89
18902         * lib/ftello.c (ftello): Use lseek, not llseek.
18903
18904         tests: avoid failing coreutils tests on cygwin
18905         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
18906         (create_exe_shims_): Return 0 when skipping.
18907
18908 2010-12-31  Bruno Haible  <bruno@clisp.org>
18909
18910         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
18911         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
18912
18913 2010-12-31  Bruno Haible  <bruno@clisp.org>
18914
18915         waitpid: Fix link error in C++ mode.
18916         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
18917
18918 2010-12-31  Bruno Haible  <bruno@clisp.org>
18919
18920         isnan: Use GCC built-ins when possible.
18921         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
18922         __builtin_isnan.
18923         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
18924         (isnan): Define using GCC built-ins for GCC >= 4.0.
18925
18926 2010-12-31  Bruno Haible  <bruno@clisp.org>
18927
18928         isnand: Fix mistake.
18929         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
18930         __builtin_isnand.
18931
18932 2010-12-31  Bruno Haible  <bruno@clisp.org>
18933
18934         open: Avoid C++ error on HP-UX 11.
18935         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
18936
18937 2010-12-31  Bruno Haible  <bruno@clisp.org>
18938
18939         time_r: Add missing declarations on HP-UX 11.
18940         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
18941         instead of HAVE_LOCALTIME_R.
18942         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
18943         HAVE_LOCALTIME_R always.
18944         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
18945         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
18946         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
18947         HAVE_LOCALTIME_R.
18948         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
18949         * doc/posix-functions/localtime_r.texi: Likewise.
18950
18951 2010-12-29  Eric Blake  <eblake@redhat.com>
18952
18953         mountlist: tweak previous commit
18954         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
18955         Reported by Paul Eggert.
18956
18957         mountlist: fix local drive detection on cygwin
18958         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
18959         that works for cygwin.
18960
18961 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
18962
18963         ftoastr, snprintf: ftoastr + snprintf module
18964         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
18965         since the snprintf module now should be good enough here.
18966         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
18967         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
18968         and gl_MODULE_INDICATOR([snprintf]), but the former enables
18969         GNULIB_SNPRINTF only for the test directory, and the latter
18970         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
18971         seems to suffice by itself.
18972
18973 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
18974
18975         alloca: one step towards thread-safety
18976         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
18977         need for a static variable.  All callers changed.  This does not
18978         make the alloca replacement thread-safe, but it's one step.
18979
18980         tests: minor indenting change
18981         * tests/init.sh: Sync from coreutils housekeeping patch
18982         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
18983         to keep lines within 80 columns.
18984
18985 2010-12-28  Jim Meyering  <meyering@redhat.com>
18986
18987         regex: don't infloop on persistent failing calloc
18988         * lib/regexec.c (build_trtable): Return failure indication upon
18989         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
18990         In glibc, this was fixed for version 2.13:
18991         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
18992
18993 2010-12-28  Bruno Haible  <bruno@clisp.org>
18994             Paul Eggert <eggert@cs.ucla.edu>
18995
18996         linkat: Make implementation robust against system behaviour variations.
18997         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
18998         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
18999         way, and to -2 if it needs a generic runtime test.
19000         * lib/linkat.c (solaris_optimized_link_immediate,
19001         solaris_optimized_link_follow): New functions.
19002         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
19003         (check_same_link): Use it.
19004
19005 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
19006
19007         New module 'unigbrk/base'.
19008         * modules/unigbrk/base: New file.
19009         * lib/unigbrk.in.h: New file.
19010
19011         New module 'unigbrk/uc-gbrk-prop'.
19012         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
19013         * modules/unigbrk/uc-gbrk-prop: New file.
19014         * lib/unigbrk/gbrkprop.h: New file.
19015         * lib/unigbrk/uc-gbrk-prop.c: New file.
19016
19017         New module 'unigbrk/uc-is-grapheme-break'.
19018         * modules/unigbrk/uc-is-grapheme-break: New file.
19019         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
19020         * lib/unigbrk/uc-is-grapheme-break.c: New file.
19021         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
19022         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
19023         * tests/unigbrk/GraphemeBreakTest.txt: New file.
19024
19025         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
19026
19027 2010-12-27  Bruno Haible  <bruno@clisp.org>
19028
19029         linkat test: Avoid failure on Solaris 11 2010-11.
19030         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
19031
19032 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19033
19034         utimens: work around glibc rounding bug on more platforms
19035         * lib/utimens.c (fdutimens): Work around rounding bug even if
19036         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
19037         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
19038
19039 2010-12-27  Bruno Haible  <bruno@clisp.org>
19040
19041         select tests: Improve comments.
19042         * tests/test-select.c (do_select): Add comments.
19043
19044 2010-12-27  Bruno Haible  <bruno@clisp.org>
19045
19046         select tests: Safer way of handling timeout.
19047         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
19048         at every invocation.
19049
19050 2010-12-27  Bruno Haible  <bruno@clisp.org>
19051
19052         select tests: Use 'bool' where appropriate.
19053         * tests/test-select.c (connect_to_socket): Change argument type to
19054         'bool'.
19055
19056 2010-12-27  Bruno Haible  <bruno@clisp.org>
19057
19058         select tests: Use existing modules.
19059         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
19060         (configure.ac): Don't test for unistd.h.
19061         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
19062         declared in <unistd.h>.
19063
19064 2010-12-27  Bruno Haible  <bruno@clisp.org>
19065
19066         mbrtowc: Work around a Solaris 7 bug.
19067         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
19068         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
19069         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
19070         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
19071         MBRTOWC_NULL_ARG1_BUG.
19072         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
19073         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
19074         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
19075         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
19076
19077 2010-12-27  Jim Meyering  <meyering@redhat.com>
19078
19079         read-file.c: tweak syntax
19080         * lib/read-file.c (fread_file): Remove space after "*" in function
19081         definitions.
19082
19083 2010-12-27  Bruno Haible  <bruno@clisp.org>
19084
19085         times test: Avoid gcc warnings on OSF/1.
19086         * tests/test-times.c (main): Cast printf arguments from clock_t to
19087         'long int'.
19088
19089 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
19090
19091         utimens: work around glibc rounding bug on older Linux kernels
19092         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
19093         on Linux with a glibc whose utimes might not work, then work
19094         around a longstanding glibc bug involving rounding rather than
19095         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
19096         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
19097
19098 2010-12-26  Bruno Haible  <bruno@clisp.org>
19099
19100         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
19101         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
19102         _GL_CXXALIAS_SYS.
19103         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19104
19105 2010-12-26  Bruno Haible  <bruno@clisp.org>
19106
19107         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
19108         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
19109         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
19110         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
19111         looking for the declaration.
19112         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
19113         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
19114         problem.
19115         * doc/posix-functions/inet_pton.texi: Likewise.
19116
19117 2010-12-26  Bruno Haible  <bruno@clisp.org>
19118
19119         arpa_inet: Use the common idioms with C++ support.
19120         * lib/arpa_inet.in.h: Include c++defs.h.
19121         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
19122         support.
19123         * modules/arpa_inet (Depends-on): Add c++defs.
19124         (Makefile.am): Substitute the contents of c++defs.h.
19125         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
19126         * modules/arpa_inet-c++-tests: New file.
19127         * tests/test-arpa_inet-c++.cc: New file.
19128
19129 2010-12-25  Bruno Haible  <bruno@clisp.org>
19130
19131         Fix more C++ link errors on Solaris 8.
19132         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
19133         $(LIB_EACCESS).
19134         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
19135         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
19136         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
19137         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
19138         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
19139
19140 2010-12-25  Bruno Haible  <bruno@clisp.org>
19141
19142         printf-posix: Fix link error when a non-GCC compiler is used.
19143         * lib/stdio.in.h (printf): When not using GCC, override printf
19144         correctly.
19145         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19146
19147 2010-12-25  Bruno Haible  <bruno@clisp.org>
19148
19149         strerror_r-posix: Update doc.
19150         * doc/posix-functions/strerror_r.texi: Update doc about the return
19151         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
19152
19153 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
19154
19155         utimens: simplify the logic of the previous change
19156         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
19157         This should not affect whether the test succeeds or fails.
19158
19159         utimens: configure better on hosts with NFS clock skew
19160         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
19161         uses the clock of the local host.  It might use the clock of the
19162         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
19163         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
19164
19165 2010-12-25  Bruno Haible  <bruno@clisp.org>
19166
19167         ptsname test: Avoid failure on Solaris.
19168         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
19169         open a pseudo-terminal; don't use BSD-style ptys.
19170         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
19171
19172 2010-12-25  Bruno Haible  <bruno@clisp.org>
19173
19174         ptsname: Avoid ERANGE failure on some systems.
19175         * lib/ptsname.c (buffer): Increase size.
19176
19177 2010-12-25  Bruno Haible  <bruno@clisp.org>
19178
19179         rename, renameat: Avoid test failures at NFS mounted locations.
19180         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
19181         so that subsequent mkdir calls succeed.
19182
19183 2010-12-25  Bruno Haible  <bruno@clisp.org>
19184
19185         iswblank: Fix C++ link error on Solaris 8.
19186         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
19187         _GL_FUNCDECL_SYS.
19188
19189 2010-12-25  Bruno Haible  <bruno@clisp.org>
19190
19191         unistd: Fix C++ link error on Solaris 8.
19192         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
19193
19194 2010-12-25  Bruno Haible  <bruno@clisp.org>
19195
19196         readlink doc: Mention an old glibc bug.
19197         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
19198
19199 2010-12-25  Bruno Haible  <bruno@clisp.org>
19200
19201         fcntl-h: Fix for use of C++ on glibc systems.
19202         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
19203         also on glibc systems in C++ mode.
19204         Reported by Gary V. Vaughan <gary@gnu.org>.
19205
19206 2010-12-25  Bruno Haible  <bruno@clisp.org>
19207
19208         roundl-ieee: Make it work on OSF/1 5.1 with cc.
19209         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
19210
19211 2010-12-25  Bruno Haible  <bruno@clisp.org>
19212
19213         truncl-ieee: Make it work on OSF/1 5.1 with cc.
19214         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
19215         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
19216         test whether truncl works according to ISO C 99 with IEC 60559.
19217         * m4/truncl-ieee.m4: New file.
19218         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
19219         m4/signbit.m4.
19220         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
19221
19222 2010-12-25  Bruno Haible  <bruno@clisp.org>
19223
19224         ceill-ieee: Make it work on OSF/1 5.1 with cc.
19225         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
19226         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
19227         test whether ceill works according to ISO C 99 with IEC 60559.
19228         * m4/ceill-ieee.m4: New file.
19229         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
19230         m4/signbit.m4.
19231         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
19232
19233 2010-12-25  Bruno Haible  <bruno@clisp.org>
19234
19235         Ensure all prerequisites of <wchar.h> are included.
19236         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
19237         before <wchar.h>.
19238         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
19239         gl_MBRLEN_NUL_RETVAL): Likewise.
19240         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
19241         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
19242         AC_FUNC_MBRTOWC): Likewise.
19243         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
19244         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
19245         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
19246         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
19247         Likewise.
19248         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
19249         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
19250         (gl_WCHAR_H): Improve comments.
19251         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
19252
19253 2010-12-25  Bruno Haible  <bruno@clisp.org>
19254
19255         strtok_r: Fix C syntax error in autoconf macro.
19256         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
19257         characters in test program.
19258
19259 2010-12-24  Bruno Haible  <bruno@clisp.org>
19260
19261         ceil, trunc, round: Fix gcc warnings.
19262         * lib/ceil.c (MIN): Undefine before redefining.
19263         * lib/trunc.c (MIN): Likewise.
19264         * lib/round.c (MIN): Likewise.
19265         Include <math.h> first.
19266
19267 2010-12-24  Bruno Haible  <bruno@clisp.org>
19268
19269         select tests: Avoid failures on OSF/1 5.1.
19270         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
19271         failure of closing the last socket; it may fail with ECONNRESET.
19272
19273 2010-12-24  Eric Blake  <eblake@redhat.com>
19274
19275         stdint: avoid HP-UX 10.20 preprocessor bug
19276         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
19277         than #if.
19278         * tests/test-floor2.c (main): Likewise.
19279         Reported by Peter O'Gorman.
19280
19281         pipe: make obsoletion transition easier
19282         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
19283         * modules/pipe (Files): Include revived file.
19284         (Include): Drop reference, to mirror getdate's behavior.
19285
19286 2010-12-24  Bruno Haible  <bruno@clisp.org>
19287
19288         sys_socket: Hide mismatch of declarations on NonStop Kernel.
19289         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
19290         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
19291         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19292
19293 2010-12-24  Bruno Haible  <bruno@clisp.org>
19294
19295         gethostname: Ensure declaration on NonStop Kernel.
19296         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
19297         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19298
19299 2010-12-24  Bruno Haible  <bruno@clisp.org>
19300
19301         sys_select: Ensure all necessary types on NonStop Kernel.
19302         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
19303         include <sys/time.h>.
19304         * doc/posix-headers/sys_select.texi: Mention that it's missing on
19305         NonStop Kernel.
19306         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19307
19308 2010-12-24  Bruno Haible  <bruno@clisp.org>
19309
19310         sys_select: Remove unneeded include.
19311         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
19312         have <sys/select.h>.
19313
19314 2010-12-24  Bruno Haible  <bruno@clisp.org>
19315
19316         gethostname: Provide a fallback for HOST_NAME_MAX.
19317         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
19318         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
19319         instead.
19320         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19321
19322 2010-12-24  Bruno Haible  <bruno@clisp.org>
19323
19324         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
19325         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
19326         (SA_RESTART): Likewise.
19327         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19328
19329 2010-12-24  Bruno Haible  <bruno@clisp.org>
19330
19331         signal: Define NSIG.
19332         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
19333         * tests/test-signal.c (nsig): New variable.
19334         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19335
19336 2010-12-24  Bruno Haible  <bruno@clisp.org>
19337
19338         rename, renameat: Avoid test failures on OSF/1 5.1.
19339         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
19340         alternative error codes.
19341         * tests/test-renameat.c (main): Likewise.
19342
19343 2010-12-24  Bruno Haible  <bruno@clisp.org>
19344
19345         *printf: Detect large precisions bug on Solaris 10/SPARC.
19346         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
19347         by Paul Eggert.
19348         * tests/test-snprintf-posix.h (test_function): Add this test code here
19349         too.
19350         * tests/test-sprintf-posix.h (test_function): Likewise.
19351         * tests/test-vasnprintf-posix.c (test_function): Likewise.
19352         * tests/test-vasprintf-posix.c (test_function): Likewise.
19353         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
19354         around by gnulib.
19355         * doc/posix-functions/printf.texi: Likewise.
19356         * doc/posix-functions/snprintf.texi: Likewise.
19357         * doc/posix-functions/sprintf.texi: Likewise.
19358         * doc/posix-functions/vfprintf.texi: Likewise.
19359         * doc/posix-functions/vprintf.texi: Likewise.
19360         * doc/posix-functions/vsnprintf.texi: Likewise.
19361         * doc/posix-functions/vsprintf.texi: Likewise.
19362         * doc/posix-functions/dprintf.texi: Undo last commit.
19363         * doc/posix-functions/vdprintf.texi: Likewise.
19364
19365 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
19366
19367         tests: port test-fdutimensat.c to Solaris 8
19368         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
19369         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
19370         On Solaris 8, it fails with errno == ENOSYS, because there is no
19371         futimens (so it can't use the fd), and there is no lutimens (so it
19372         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
19373
19374         vsnprintf: make more consistent with snprintf; doc fixes
19375
19376         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
19377         the byte count return problem was promoted from the snprintf-posix
19378         to the snprintf module.
19379         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
19380         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
19381         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
19382         * tests/test-snprintf.c (main): Check the byte count returned.
19383         * tests/test-vsnprintf.c (main): Likewise.
19384
19385 2010-12-23  Eric Blake  <eblake@redhat.com>
19386
19387         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
19388         * modules/sigpipe (License): Relax license.
19389
19390 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19391
19392         doc: document Solaris printf bug with large float precisions
19393         * doc/posix-functions/dprintf.texi (dprintf):
19394         * doc/posix-functions/fprintf.texi (fprintf):
19395         * doc/posix-functions/printf.texi (printf):
19396         * doc/posix-functions/snprintf.texi (snprintf):
19397         * doc/posix-functions/sprintf.texi (sprintf):
19398         * doc/posix-functions/vdprintf.texi (vdprintf):
19399         * doc/posix-functions/vfprintf.texi (vfprintf):
19400         * doc/posix-functions/vprintf.texi (vprintf):
19401         * doc/posix-functions/vsnprintf.texi (vsnprintf):
19402         * doc/posix-functions/vsprintf.texi (vsprintf):
19403         Mention that these functions mishandle large floating point
19404         precisions on Solaris 10.  The same bug is also present in Solaris
19405         8, and I assume earlier.  This causes "cd gnulib-tests; make
19406         check" to fail on Solaris 8 (and I assume, later) when building
19407         the latest coreutils, in test-vasprintf-posix's call to
19408         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
19409         the wide flavors (e.g., wprintf) so this patch just updates the
19410         documentation for the narrow ones.
19411
19412         test-posixtm.c: add two tests
19413         * tests/test-posixtm.c: Add two tests, to highlight the
19414         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
19415         around this bug; this is merely to document it.
19416
19417 2010-12-22  Bruno Haible  <bruno@clisp.org>
19418
19419         getlogin_r: Work around portability problem on OSF/1.
19420         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
19421         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
19422         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
19423         test for a truncated result.
19424         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
19425         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
19426         * modules/getlogin_r (Depends-on): Add memchr.
19427         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
19428
19429 2010-12-22  Bruno Haible  <bruno@clisp.org>
19430
19431         ptsname: Avoid test failure on OSF/1 5.1.
19432         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
19433         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
19434         (same_slave): New function.
19435         (main): Use it to compare ptsname's result with the expected file name.
19436
19437 2010-12-22  Bruno Haible  <bruno@clisp.org>
19438
19439         Port extended stdio modules to HP NonStop Kernel.
19440         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
19441         macros.
19442         * lib/fbufmode.c: Update comments.
19443         * lib/fflush.c: Likewise.
19444         * lib/fpurge.c: Likewise.
19445         * lib/freadable.c: Likewise.
19446         * lib/freadahead.c: Likewise.
19447         * lib/freading.c: Likewise.
19448         * lib/freadptr.c: Likewise.
19449         * lib/freadseek.c: Likewise.
19450         * lib/fseeko.c: Likewise.
19451         * lib/fseterr.c: Likewise.
19452         * lib/fwritable.c: Likewise.
19453         * lib/fwriting.c: Likewise.
19454         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
19455
19456 2010-12-22  Bruno Haible  <bruno@clisp.org>
19457
19458         ttyname_r: Work around bug on OSF/1 5.1.
19459         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
19460         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
19461         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
19462         present.
19463         * lib/ttyname_r.c (ttyname_r): Update comments.
19464
19465 2010-12-22  Bruno Haible  <bruno@clisp.org>
19466
19467         round: Implement result sign according to IEEE 754.
19468         * lib/round.c (MIN, MINUS_ZERO): New macros.
19469         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
19470         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
19471         * tests/test-round-ieee.c (main): Likewise.
19472         * tests/test-roundl-ieee.c (main): Likewise.
19473
19474         trunc: Implement result sign according to IEEE 754.
19475         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
19476         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
19477         * tests/test-trunc2.c: Include minus-zero.h.
19478         (MINUS_ZERO): New macro.
19479         (trunc_reference): Keep in sync with lib/trunc.c.
19480         * tests/test-truncf2.c: Include minus-zero.h.
19481         (MINUS_ZERO): New macro.
19482         (truncf_reference): Keep in sync with lib/trunc.c.
19483         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
19484         * tests/test-trunc-ieee.c (main): Likewise.
19485         * tests/test-truncl-ieee.c (main): Likewise.
19486
19487         ceil: Implement result sign according to IEEE 754.
19488         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
19489         (FUNC): Return -0.0 for -1 < x < 0.
19490         * tests/test-ceil2.c: Include minus-zero.h.
19491         (MINUS_ZERO): New macro.
19492         (ceil_reference): Keep in sync with lib/ceil.c.
19493         * tests/test-ceilf2.c: Include minus-zero.h.
19494         (MINUS_ZERO): New macro.
19495         (ceilf_reference): Keep in sync with lib/ceil.c.
19496         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
19497         * tests/test-ceil-ieee.c (main): Likewise.
19498         * tests/test-ceill-ieee.c (main): Likewise.
19499
19500         floor: Implement result sign according to IEEE 754.
19501         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
19502         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
19503         * tests/test-floorf2.c (floorf_reference): Likewise.
19504         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
19505         * tests/test-floor-ieee.c (main): Likewise.
19506         * tests/test-floorl-ieee.c (main): Likewise.
19507
19508 2010-12-22  Bruno Haible  <bruno@clisp.org>
19509
19510         getaddrinfo: Update doc.
19511         * doc/posix-functions/gai_strerror.texi: Return type is also different
19512         on AIX and HP-UX.
19513
19514 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
19515
19516         getaddrinfo, inet_ntop: Update doc for Solaris.
19517         * doc/posix-functions/gai_strerror.texi: Return type is also an
19518         issue on Solaris 9 and earlier.
19519         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
19520         on Solaris 10 and earlier.
19521
19522 2010-12-21  Bruno Haible  <bruno@clisp.org>
19523
19524         New module 'roundl-ieee'.
19525         * modules/roundl-ieee: New file.
19526         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
19527         test whether roundl works according to ISO C 99 with IEC 60559.
19528         * m4/roundl-ieee.m4: New file.
19529         * modules/roundl-ieee-tests: New file.
19530         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
19531         * tests/test-roundl.c (main): Remove signbit tests.
19532         * modules/roundl-tests (Depends-on): Remove signbit.
19533         * doc/posix-functions/roundl.texi: Mention the new module.
19534
19535 2010-12-21  Bruno Haible  <bruno@clisp.org>
19536
19537         New module 'truncl-ieee'.
19538         * modules/truncl-ieee: New file.
19539         * modules/truncl-ieee-tests: New file.
19540         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
19541         * tests/test-truncl.c (main): Remove signbit tests.
19542         * modules/truncl-tests (Depends-on): Remove signbit.
19543         * doc/posix-functions/truncl.texi: Mention the new module.
19544
19545 2010-12-21  Bruno Haible  <bruno@clisp.org>
19546
19547         New module 'ceill-ieee'.
19548         * modules/ceill-ieee: New file.
19549         * modules/ceill-ieee-tests: New file.
19550         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
19551         * tests/test-ceill.c (main): Remove signbit tests.
19552         * modules/ceill-tests (Depends-on): Remove signbit.
19553         * doc/posix-functions/ceill.texi: Mention the new module.
19554
19555 2010-12-21  Bruno Haible  <bruno@clisp.org>
19556
19557         New module 'floorl-ieee'.
19558         * modules/floorl-ieee: New file.
19559         * modules/floorl-ieee-tests: New file.
19560         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
19561         * tests/test-floorl.c (main): Remove signbit tests.
19562         * modules/floorl-tests (Depends-on): Remove signbit.
19563         * doc/posix-functions/floorl.texi: Mention the new module.
19564
19565 2010-12-21  Bruno Haible  <bruno@clisp.org>
19566
19567         New module 'round-ieee'.
19568         * modules/round-ieee: New file.
19569         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
19570         whether round works according to ISO C 99 with IEC 60559.
19571         * m4/round-ieee.m4: New file.
19572         * modules/round-ieee-tests: New file.
19573         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
19574         * tests/test-round1.c (main): Remove signbit tests.
19575         * modules/round-tests (Depends-on): Remove 'signbit'.
19576         * doc/posix-functions/round.texi: Mention the new module.
19577
19578 2010-12-21  Bruno Haible  <bruno@clisp.org>
19579
19580         New module 'trunc-ieee'.
19581         * modules/trunc-ieee: New file.
19582         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
19583         whether trunc works according to ISO C 99 with IEC 60559.
19584         * m4/trunc-ieee.m4: New file.
19585         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
19586         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
19587         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
19588         * modules/trunc-ieee-tests: New file.
19589         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
19590         * tests/test-trunc1.c (main): Remove signbit tests.
19591         * modules/trunc-tests (Depends-on): Remove 'signbit'.
19592         * doc/posix-functions/trunc.texi: Mention the new module.
19593
19594 2010-12-21  Bruno Haible  <bruno@clisp.org>
19595
19596         New module 'ceil-ieee'.
19597         * modules/ceil-ieee: New file.
19598         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
19599         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
19600         ISO C 99 with IEC 60559.
19601         * m4/ceil-ieee.m4: New file.
19602         * modules/ceil (Files): Add lib/ceil.c.
19603         (Depends-on): Add 'float'.
19604         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19605         * lib/math.in.h (ceil): New declaration.
19606         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
19607         REPLACE_CEIL.
19608         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
19609         * modules/ceil-ieee-tests: New file.
19610         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
19611         * tests/test-math-c++.cc: Check the signature of 'ceil'.
19612         * doc/posix-functions/ceil.texi: Mention the new module.
19613
19614 2010-12-21  Bruno Haible  <bruno@clisp.org>
19615
19616         New module 'floor-ieee'.
19617         * modules/floor-ieee: New file.
19618         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
19619         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
19620         ISO C 99 with IEC 60559.
19621         * m4/floor-ieee.m4: New file.
19622         * modules/floor (Files): Add lib/floor.c.
19623         (Depends-on): Add 'float'.
19624         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
19625         * lib/math.in.h (floor): New declaration.
19626         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
19627         REPLACE_FLOOR.
19628         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
19629         * modules/floor-ieee-tests: New file.
19630         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
19631         * tests/test-math-c++.cc: Check the signature of 'floor'.
19632         * doc/posix-functions/floor.texi: Mention the new module.
19633
19634 2010-12-21  Bruno Haible  <bruno@clisp.org>
19635
19636         New module 'roundf-ieee'.
19637         * modules/roundf-ieee: New file.
19638         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
19639         test whether roundf works according to ISO C 99 with IEC 60559.
19640         * m4/roundf-ieee.m4: New file.
19641         * modules/roundf-ieee-tests: New file.
19642         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
19643         * tests/test-roundf1.c (main): Remove signbit tests.
19644         * modules/roundf-tests (Depends-on): Remove 'signbit'.
19645         * doc/posix-functions/roundf.texi: Mention the new module.
19646
19647 2010-12-21  Bruno Haible  <bruno@clisp.org>
19648
19649         New module 'truncf-ieee'.
19650         * modules/truncf-ieee: New file.
19651         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
19652         test whether truncf works according to ISO C 99 with IEC 60559.
19653         * m4/truncf-ieee.m4: New file.
19654         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
19655         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
19656         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
19657         * modules/truncf-ieee-tests: New file.
19658         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
19659         * tests/test-truncf1.c (main): Remove signbit tests.
19660         * modules/truncf-tests (Depends-on): Remove 'signbit'.
19661         * doc/posix-functions/truncf.texi: Mention the new module.
19662
19663 2010-12-21  Bruno Haible  <bruno@clisp.org>
19664
19665         New module 'ceilf-ieee'.
19666         * modules/ceilf-ieee: New file.
19667         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
19668         test whether ceilf works according to ISO C 99 with IEC 60559.
19669         * m4/ceilf-ieee.m4: New file.
19670         * modules/ceilf-ieee-tests: New file.
19671         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
19672         * tests/test-ceilf1.c (main): Remove signbit tests.
19673         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
19674         * doc/posix-functions/ceilf.texi: Mention the new module.
19675
19676 2010-12-21  Bruno Haible  <bruno@clisp.org>
19677
19678         New module 'floorf-ieee'.
19679         * modules/floorf-ieee: New file.
19680         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
19681         test whether floorf works according to ISO C 99 with IEC 60559.
19682         * m4/floorf-ieee.m4: New file.
19683         * modules/floorf-ieee-tests: New file.
19684         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
19685         * tests/test-floorf1.c (main): Remove signbit tests.
19686         * modules/floorf-tests (Depends-on): Remove 'signbit'.
19687         * doc/posix-functions/floorf.texi: Mention the new module.
19688
19689 2010-12-21  Bruno Haible  <bruno@clisp.org>
19690
19691         Support for minus zero in autoconf macros.
19692         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
19693         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
19694         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
19695         * tests/minus-zero.h: Update comments.
19696
19697 2010-12-21  Bruno Haible  <bruno@clisp.org>
19698
19699         Tests for module 'ceil'.
19700         * modules/ceil-tests: New file.
19701         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
19702         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
19703
19704 2010-12-21  Bruno Haible  <bruno@clisp.org>
19705
19706         Tests for module 'floor'.
19707         * modules/floor-tests: New file.
19708         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
19709         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
19710
19711 2010-12-21  Bruno Haible  <bruno@clisp.org>
19712
19713         math: Fix indentation.
19714         * lib/math.in.h (floorf): Fix indentation.
19715
19716 2010-12-21  Bruno Haible  <bruno@clisp.org>
19717
19718         Fix cross-compilation guesses on Solaris.
19719         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
19720         not match "solaris2.10".
19721         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
19722         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
19723         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
19724
19725 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
19726
19727         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
19728         This fixes a problem observed with the latest coreutils snapshot
19729         that caused a test to fail on Solaris 8.  src/csplit.c's call
19730         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
19731         earlier, instead of returning the number of bytes that would have
19732         been generated; this causes csplit to incorrectly report memory
19733         exhaustion.
19734         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
19735         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
19736         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
19737         comments to match.
19738         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
19739         Fix typo in matching older versions of Solaris: "solaris2.10"
19740         is matched by the shell pattern "solaris2.[0-9]*".  This matters
19741         only for guessing while cross-compiling.
19742         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
19743
19744 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
19745
19746         ftoastr: fix comment again
19747         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
19748         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
19749         Also, simplify example a bit by using flags = 0.
19750
19751 2010-12-20  Bruno Haible  <bruno@clisp.org>
19752
19753         round*, trunc*: Update documentation regarding glibc.
19754         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
19755         * doc/posix-functions/round.texi: Likewise.
19756         * doc/posix-functions/roundl.texi: Likewise.
19757         * doc/posix-functions/truncf.texi: Likewise.
19758         * doc/posix-functions/trunc.texi: Likewise.
19759         * doc/posix-functions/truncl.texi: Likewise.
19760
19761 2010-12-20  Bruno Haible  <bruno@clisp.org>
19762
19763         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
19764         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
19765         * doc/posix-functions/round.texi: Likewise.
19766         * doc/posix-functions/roundl.texi: Likewise.
19767
19768 2010-12-20  Bruno Haible  <bruno@clisp.org>
19769
19770         ttyname_r: Add missing declaration on HP-UX 11.
19771         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
19772         HAVE_TTYNAME_R.
19773         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
19774         declared. Set HAVE_TTYNAME_R always.
19775         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19776         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
19777         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
19778         HAVE_TTYNAME_R.
19779         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
19780
19781 2010-12-20  Bruno Haible  <bruno@clisp.org>
19782
19783         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
19784         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
19785         * doc/posix-functions/getlogin_r.texi: Likewise.
19786         * tests/test-getlogin.c: Include <errno.h>.
19787         (main): Avoid test failure on HP-UX 11.11.
19788         * tests/test-getlogin_r.c (main): Likewise.
19789
19790 2010-12-20  Bruno Haible  <bruno@clisp.org>
19791
19792         getlogin_r: Add missing declaration on HP-UX 11.
19793         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
19794         declared also when it exists as a function.
19795         * doc/posix-functions/getlogin_r.texi: Document this workaround.
19796
19797 2010-12-20  Bruno Haible  <bruno@clisp.org>
19798
19799         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
19800         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
19801         through wcrtomb.
19802
19803 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
19804
19805         ftoastr: fix comment
19806         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
19807         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
19808
19809 2010-12-19  Bruno Haible  <bruno@clisp.org>
19810
19811         isnan: Ensure it is a macro.
19812         * lib/math.in.h (isnan): Define as a macro if not already a macro.
19813         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
19814         Solaris.
19815
19816 2010-12-19  Bruno Haible  <bruno@clisp.org>
19817
19818         ldexpl test: Fix link error on OSF/1 5.1.
19819         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
19820
19821 2010-12-19  Bruno Haible  <bruno@clisp.org>
19822
19823         wctype: Make it work in C++ mode on OSF/1 5.1.
19824         * lib/wctype.in.h (iswblank): Declare but not define here.
19825         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
19826         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
19827         * modules/wctype (Files): Add lib/iswblank.c.
19828
19829 2010-12-19  Bruno Haible  <bruno@clisp.org>
19830
19831         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
19832         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
19833         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
19834
19835 2010-12-19  Bruno Haible  <bruno@clisp.org>
19836
19837         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
19838         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
19839         _POSIX_PII_SOCKET.
19840         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
19841         * doc/posix-functions/recvfrom.texi: Likewise.
19842         * doc/posix-functions/send.texi: Likewise.
19843         * doc/posix-functions/sendto.texi: Likewise.
19844
19845 2010-12-19  Bruno Haible  <bruno@clisp.org>
19846
19847         tcgetsid: Add missing declaration on OSF/1 5.1.
19848         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
19849         HAVE_TCGETSID.
19850         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
19851         Don't set HAVE_TCGETSID.
19852         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
19853         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
19854         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
19855         HAVE_TCGETSID.
19856         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
19857
19858 2010-12-19  Bruno Haible  <bruno@clisp.org>
19859
19860         stdio: Fix problem with popen() declaration on OSF/1 5.1.
19861         * lib/stdio.in.h: During the include_next statement, let recursive
19862         includes of this file include only the system header file.
19863
19864 2010-12-19  Bruno Haible  <bruno@clisp.org>
19865
19866         iconv_open: Fix regression from 2010-12-04.
19867         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
19868         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
19869
19870 2010-12-19  Bruno Haible  <bruno@clisp.org>
19871
19872         stdbool test: Avoid a gcc warning.
19873         * tests/test-stdbool.c (main): Fail if e1 is false.
19874         Reported by Jim Meyering.
19875
19876 2010-12-19  Jim Meyering  <meyering@redhat.com>
19877
19878         setenv: restore to working order
19879         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
19880         mistakenly removed.
19881         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
19882         HAVE_SETENV.
19883         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
19884         HAVE_SETENV.
19885
19886 2010-12-19  Bruno Haible  <bruno@clisp.org>
19887
19888         Document some different function declarations on OSF/1 5.1.
19889         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
19890         * doc/posix-functions/inet_ntop.texi: Likewise.
19891         * doc/posix-functions/gethostname.texi: Likewise.
19892         * lib/unistd.in.h (gethostname): Update comment.
19893
19894 2010-12-19  Bruno Haible  <bruno@clisp.org>
19895
19896         doc: Mention vasprintf-posix module.
19897         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
19898         the 'vasprintf-posix' module.
19899         * doc/glibc-functions/vasprintf.texi: Likewise.
19900
19901 2010-12-19  Bruno Haible  <bruno@clisp.org>
19902
19903         unsetenv: Add missing declaration on OSF/1 5.1.
19904         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
19905         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
19906         Don't set HAVE_UNSETENV. In the test program, set _BSD.
19907         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
19908         not HAVE_UNSETENV.
19909         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
19910         HAVE_UNSETENV.
19911         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
19912
19913 2010-12-19  Bruno Haible  <bruno@clisp.org>
19914
19915         setenv: Add missing declaration on OSF/1 5.1.
19916         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
19917         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
19918         declared. Don't set HAVE_SETENV.
19919         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
19920         not HAVE_SETENV.
19921         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
19922         HAVE_SETENV.
19923         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
19924
19925 2010-12-19  Bruno Haible  <bruno@clisp.org>
19926
19927         nl_langinfo tests: Avoid gcc warning.
19928         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
19929
19930 2010-12-19  Bruno Haible  <bruno@clisp.org>
19931
19932         mknod: Avoid error in C++ mode on OSF/1 with GCC.
19933         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
19934         _GL_CXXALIAS_SYS.
19935
19936 2010-12-19  Bruno Haible  <bruno@clisp.org>
19937
19938         stdbool: Relax test.
19939         * tests/test-stdbool.c (e): Don't require that casts from a variable's
19940         address to 'bool' work in static initializer, for compilers other than
19941         GCC.
19942
19943 2010-12-19  Bruno Haible  <bruno@clisp.org>
19944
19945         ftello: Add missing declaration on OSF/1 5.1.
19946         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
19947         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
19948         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
19949         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
19950         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
19951
19952 2010-12-19  Bruno Haible  <bruno@clisp.org>
19953
19954         fseeko: Add missing declaration on OSF/1 5.1.
19955         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
19956         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
19957         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
19958         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
19959         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
19960
19961 2010-12-19  Bruno Haible  <bruno@clisp.org>
19962
19963         fchdir: Add missing declaration on OSF/1 5.1.
19964         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
19965         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
19966         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
19967         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
19968         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
19969
19970 2010-12-19  Bruno Haible  <bruno@clisp.org>
19971
19972         relocatable-prog-wrapper: Separate from relocatable-prog.
19973         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
19974         uninstall-relocwrapper rule here.
19975         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
19976         Reported by Ian Beckwith <ianb@erislabs.net>.
19977
19978 2010-12-19  Bruno Haible  <bruno@clisp.org>
19979
19980         unistr/u8-mbsnlen: Add missing dependency.
19981         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
19982         Reported by Ian Beckwith <ianb@erislabs.net>.
19983
19984 2010-12-19  Bruno Haible  <bruno@clisp.org>
19985
19986         iconv: Make it possible again to use this module without 'iconv-h'.
19987         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
19988         if it is not defined.
19989         Reported by Ian Beckwith <ianb@erislabs.net>.
19990
19991 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19992
19993         acl: port to Solaris 8 when copying from tmpfs to ufs
19994         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
19995         error number.  Problem observed on Solaris 8 with latest
19996         coreutils, with "mv A B", where A is on a tmpfs file system and B
19997         is on a ufs file system.  This caused coreutils' mv/part-symlink
19998         test to fail.
19999
20000         tests: set fail=0 at start
20001         * tests/init.sh (setup_): Move fail=0 initialization here ...
20002         (mktempd_): ... from here, so that tests can rely on fail being
20003         set to 0 initially.  This fixes a problem in coreutils; see:
20004         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
20005
20006 2010-12-18  Bruno Haible  <bruno@clisp.org>
20007
20008         memmem-simple: Stylistic changes.
20009         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
20010         Fix preprocessor directive indentation.
20011
20012 2010-12-15  Pádraig Brady <P@draigBrady.com>
20013
20014         memmem, memmem-simple: reorganize and expand empty needle check
20015         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
20016         functional checks to memmem-simple so that one has a fully functional
20017         memmem by using just this module.
20018         Restrict the performance only check to the memmem module.
20019         Also expand the empty needle check to ensure the correct
20020         pointer is returned, not just a non NULL pointer.
20021         * doc/glibc-functions/memmem.texi: Rearrange the portability
20022         documentation to correlate with the rearranged checks.
20023         Clarify exactly how the memmem and memmem-simple modules
20024         relate to each other.
20025
20026 2010-12-15  Pádraig Brady <P@draigBrady.com>
20027             Bruno Haible  <bruno@clisp.org>
20028
20029         Improve cross-compilation guesses for uClibc.
20030         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
20031         that uClibc does not have the glibc bug.
20032         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
20033         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
20034
20035 2010-12-14  Eric Blake  <eblake@redhat.com>
20036
20037         configmake: provide fallbacks for oldest supported autotools
20038         * m4/configmake.m4: New file.
20039         * modules/configmake (Files): Ship it.
20040         (configure.ac): Use it to guarantee fallbacks.
20041
20042 2010-12-13  Pádraig Brady <P@draigBrady.com>
20043
20044         read-file: Improve handling of large files
20045         * lib/read-file.c (fread_file): Minimize realloc()s
20046         for regular files, and better manage sizes around SIZE_MAX.
20047
20048 2010-12-13  Eric Blake  <eblake@redhat.com>
20049
20050         cloexec, fcntl: relax license
20051         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
20052         consent from all contributors.
20053         * modules/fcntl (License): Likewise.
20054
20055 2010-12-10  Bruno Haible  <bruno@clisp.org>
20056
20057         Tests for module 'pipe-posix'.
20058         * modules/pipe-posix-tests: New file.
20059         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
20060
20061 2010-12-10  Bruno Haible  <bruno@clisp.org>
20062
20063         pipe-posix: Make it work in C++ mode.
20064         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
20065         (pipe): Use common idiom, not a macro definition.
20066         * lib/pipe.c: New file.
20067         * m4/pipe.m4: New file.
20068         * modules/pipe-posix (Description): Enhance.
20069         (Files): Add lib/pipe.c, m4/pipe.m4.
20070         (configure.ac): Invoke gl_FUNC_PIPE.
20071         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
20072         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
20073         * tests/test-unistd-c++.cc: Check the signature of pipe.
20074
20075 2010-12-10  Bruno Haible  <bruno@clisp.org>
20076
20077         Rename module 'pipe' to 'spawn-pipe'.
20078         * modules/spawn-pipe: New file, renamed from modules/pipe.
20079         (Files, configure.ac, Makefile.am): Update.
20080         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
20081         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
20082         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
20083         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
20084         "spawn-pipe.h" instead of "pipe.h".
20085         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
20086         to gl_SPAWN_PIPE.
20087         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
20088         (Files, Makefile.am): Update.
20089         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
20090         Update.
20091         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
20092         Include "spawn-pipe.h" instead of "pipe.h".
20093         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
20094         * lib/javacomp.c: Likewise.
20095         * lib/javaversion.c: Likewise.
20096         * lib/pipe-filter-gi.c: Likewise.
20097         * lib/pipe-filter-ii.c: Likewise.
20098         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
20099         * modules/javacomp (Depends-on): Likewise.
20100         * modules/javaversion (Depends-on): Likewise.
20101         * modules/pipe-filter-gi (Depends-on): Likewise.
20102         * modules/pipe-filter-ii (Depends-on): Likewise.
20103         * MODULES.html.sh (Executing programs): Update.
20104         * NEWS: Mention the change.
20105
20106 2010-12-10  Eric Blake  <eblake@redhat.com>
20107
20108         pipe-posix: new module
20109         * modules/pipe-posix: New file.
20110         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
20111         (gl_UNISTD_H): Check for declaration.
20112         * modules/unistd (Makefile.am): Substitute it.
20113         * lib/unistd.in.h (pipe): Provide it for mingw.
20114         * doc/posix-functions/pipe.texi (pipe): Update documentation.
20115         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
20116
20117 2010-12-07  Bruno Haible  <bruno@clisp.org>
20118
20119         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
20120         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
20121         u8_strcmp_gnu.
20122         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
20123
20124 2010-12-06  Bruno Haible  <bruno@clisp.org>
20125
20126         Update internal documentation.
20127         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
20128
20129 2010-12-04  Bruno Haible  <bruno@clisp.org>
20130
20131         Put more information about failed tests into the test return codes.
20132         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
20133         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
20134         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
20135         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
20136         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
20137         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
20138         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20139         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
20140         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
20141         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20142         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
20143         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
20144         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
20145         * m4/stdint.m4 (gl_STDINT_H): Likewise.
20146         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
20147         returns a bit mask.
20148         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
20149         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
20150         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
20151         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
20152         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
20153         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
20154         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
20155         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
20156         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
20157         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
20158         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
20159         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
20160         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
20161         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
20162         * m4/link.m4 (gl_FUNC_LINK): Likewise.
20163         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
20164         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
20165         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
20166         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
20167         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
20168         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20169         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
20170         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
20171         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20172         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
20173         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
20174         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
20175         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
20176         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
20177         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
20178         gl_PRINTF_PRECISION): Likewise.
20179         * m4/regex.m4 (gl_REGEX): Likewise.
20180         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
20181         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20182         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
20183         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20184         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20185         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
20186         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
20187         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
20188         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
20189         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20190         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
20191         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
20192         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
20193         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
20194         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20195         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
20196         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
20197         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
20198         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20199         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
20200         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
20201         enumerated value.
20202         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
20203
20204 2010-12-04  Bruno Haible  <bruno@clisp.org>
20205
20206         Update for Solaris 11 2010-11.
20207         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
20208         Express, released in November 2010.
20209
20210 2010-12-04  Bruno Haible  <bruno@clisp.org>
20211
20212         nproc: Relax license.
20213         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
20214         and Paul Eggert.
20215         Requested by Ludovic Courtès <ludo@gnu.org>.
20216
20217 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
20218
20219         utimecmp: fine-grained src to nearby coarse-grained dest
20220
20221         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
20222         and the source is on a file system with higher-resolution time
20223         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
20224         not work, and the time stamps are close together, the algorithm to
20225         determine the exact resolution from the read-back mtime was buggy:
20226         it had a "!=" where it should have had an "==".  This bug has been
20227         in the code ever since it was introduced to gnulib.
20228         Problem reported by Dan Jacobson in
20229         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
20230
20231 2010-11-30  Bruno Haible  <bruno@clisp.org>
20232
20233         strerror_r-posix: Fix autoconf test.
20234         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
20235
20236 2010-11-28  Bruno Haible  <bruno@clisp.org>
20237             Paul Eggert  <eggert@cs.ucla.edu>
20238
20239         Tests for module 'getdomainname'.
20240         * modules/getdomainname-tests: New file.
20241         * tests/test-getdomainname.c: New file, based on
20242         tests/test-gethostname.c.
20243
20244 2010-11-28  Bruno Haible  <bruno@clisp.org>
20245             Paul Eggert  <eggert@cs.ucla.edu>
20246
20247         getdomainname: Use the system function when possible.
20248         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
20249         (getdomainname): Replace if needed. Provide the declaration if it is
20250         missing. Don't use _GL_CXXALIAS_SYS_CAST.
20251         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
20252         (getdomainname): When the system has getdomainname, call the system
20253         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
20254         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
20255         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
20256         found in libnsl. Look for the declaration also in <netdb.h>. Replace
20257         the function if its second argument is of type 'int' or if it is found
20258         in libnsl.
20259         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
20260         <sys/systeminfo.h> and sysinfo().
20261         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
20262         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
20263         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
20264         HAVE_GETDOMAINNAME.
20265         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
20266         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
20267         * doc/glibc-functions/getdomainname.texi: Document the problems with
20268         the getdomainname declaration.
20269
20270 2010-11-28  Bruno Haible  <bruno@clisp.org>
20271
20272         sys_socket: Ensure ss_family field on AIX.
20273         * lib/sys_socket.in.h (ss_family): New macro definition.
20274         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
20275         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
20276         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
20277         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
20278         * modules/sys_socket (Makefile.am): Substitute
20279         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
20280         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
20281
20282 2010-11-27  Bruno Haible  <bruno@clisp.org>
20283
20284         readline: Improve configure output.
20285         * m4/readline.m4 (gl_FUNC_READLINE): Make the
20286         "checking for readline..." result understandable.
20287
20288 2010-11-27  Bruno Haible  <bruno@clisp.org>
20289
20290         *printf-posix: Detect a bug on Solaris 10/x86.
20291         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
20292         for floating-point output.
20293         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
20294         directive.
20295         * tests/test-snprintf-posix.h (test_function): Likewise.
20296         * tests/test-sprintf-posix.h (test_function): Likewise.
20297         * tests/test-vasprintf-posix.c (test_function): Likewise.
20298         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
20299         * doc/posix-functions/printf.texi: Likewise.
20300         * doc/posix-functions/snprintf.texi: Likewise.
20301         * doc/posix-functions/sprintf.texi: Likewise.
20302         * doc/posix-functions/vfprintf.texi: Likewise.
20303         * doc/posix-functions/vprintf.texi: Likewise.
20304         * doc/posix-functions/vsnprintf.texi: Likewise.
20305         * doc/posix-functions/vsprintf.texi: Likewise.
20306         * doc/glibc-functions/obstack_printf.texi: Likewise.
20307         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
20308
20309 2010-11-27  Bruno Haible  <bruno@clisp.org>
20310
20311         Fix link error when module libunistring-optional is in use.
20312         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
20313         * modules/striconveha-tests (Makefile.am): Likewise.
20314
20315 2010-11-27  Bruno Haible  <bruno@clisp.org>
20316
20317         regex: Mention link dependencies.
20318         * modules/regex (Link): New section.
20319         * modules/rpmatch (Link): Likewise.
20320         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
20321
20322 2010-11-27  Bruno Haible  <bruno@clisp.org>
20323
20324         ftoastr: Fix compilation error on Solaris.
20325         * lib/ftoastr.c: Include <config.h>.
20326
20327 2010-11-27  Bruno Haible  <bruno@clisp.org>
20328
20329         getloadavg: Update documentation.
20330         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
20331
20332 2010-11-27  Bruno Haible  <bruno@clisp.org>
20333
20334         sys_socket: Fix test whether the functions are declared.
20335         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
20336         not <sys/select.h>.
20337
20338 2010-11-27  Bruno Haible  <bruno@clisp.org>
20339
20340         getpass: Make sure to get system declaration on some platforms.
20341         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
20342         gl_USE_SYSTEM_EXTENSIONS.
20343         * modules/getpass (Depends-on): Add extensions.
20344
20345 2010-11-26  Bruno Haible  <bruno@clisp.org>
20346
20347         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
20348         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
20349         'iconv' module is present.
20350         (ICONV_CONST): New macro.
20351         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
20352         ICONV_CONST.
20353         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
20354         set ICONV_CONST.
20355         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
20356         here.
20357         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
20358         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
20359         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
20360         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
20361         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
20362         present.
20363
20364 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
20365
20366         ftoastr: comment fix
20367         * lib/ftoastr.c: "little" -> "little or no" in comment
20368
20369 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
20370
20371         stdint: port to GCC 4.3 + OSX + Octave
20372         On this platform, stdint.h is buggy and defines int64_t to long
20373         long int.  The replacement defined it to long int, causing
20374         problems with C++ style name mangling.  Instead, trust the system
20375         definition if INT64_MAX is defined, and likewise for the unsigned
20376         variant.   Problem reported by Jarno Rajahalme in
20377         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
20378         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
20379         and don't mess with int64_t and INT64_MAX in this case.
20380         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
20381
20382 2010-11-24  Bruno Haible  <bruno@clisp.org>
20383
20384         doc: Corrections regarding MacOS X 10.4 and 10.5.
20385         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
20386         MacOS X.
20387         Reported by Simon Josefsson.
20388
20389 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
20390
20391         Uninstall ".bin" files installed by relocwrapper.
20392         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
20393         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
20394         unless it is already there.
20395
20396 2010-11-21  Bruno Haible  <bruno@clisp.org>
20397
20398         Update for NetBSD 5.0.
20399         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
20400         NetBSD; the test fails on NetBSD 5.0.
20401         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
20402         about NetBSD.
20403
20404 2010-11-21  Bruno Haible  <bruno@clisp.org>
20405
20406         Update for HP-UX 11.23 and HP-UX 11.31.
20407         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
20408         HP-UX.
20409
20410 2010-11-21  Bruno Haible  <bruno@clisp.org>
20411
20412         Update for MacOS X 10.5.
20413         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
20414         MacOS X; the test fails on MacOS X 10.5.8.
20415         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
20416         about MacOS X.
20417
20418 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
20419
20420         bootstrap: add bootstrap_sync option.
20421         See discussion at
20422         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
20423         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
20424         * build-aux/bootstrap: Accept --bootstrap-sync to update
20425         bootstrap if it is not identical to the local gnulib's
20426         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
20427         enable this by default.  Accept --no-bootstrap-sync to disable
20428         it.
20429
20430 2010-11-20  Bruno Haible  <bruno@clisp.org>
20431
20432         Ensure that <features.h> is included before __GLIBC__ is tested.
20433         * lib/printf-parse.h: Include <features.h>.
20434         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
20435         Reported by Mike Frysinger <vapier@gentoo.org>.
20436
20437         Ensure that <features.h> is included before __GLIBC__ is tested.
20438         * lib/wchar.in.h: Include <features.h>.
20439         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
20440         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
20441         Reported by Mike Frysinger <vapier@gentoo.org>.
20442
20443         Ensure that <features.h> is included before __GLIBC__ is tested.
20444         * lib/arpa_inet.in.h: Include <features.h>.
20445         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
20446         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
20447         Reported by Mike Frysinger <vapier@gentoo.org>.
20448
20449         Ensure that <features.h> is included before __GLIBC__ is tested.
20450         * build-aux/link-warning.h: Include <features.h>.
20451         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
20452         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
20453         Reported by Mike Frysinger <vapier@gentoo.org>.
20454
20455         Ensure that <features.h> is included before __GLIBC__ is tested.
20456         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
20457         Reported by Mike Frysinger <vapier@gentoo.org>.
20458
20459 2010-11-20  Bruno Haible  <bruno@clisp.org>
20460
20461         memmem: Fix autoconf test.
20462         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
20463
20464 2010-11-20  Bruno Haible  <bruno@clisp.org>
20465
20466         Port to uClibc.
20467         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
20468         * lib/fcntl.in.h: Likewise.
20469         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
20470         * lib/mbrtowc.c (mbrtowc): Likewise.
20471         * lib/relocatable.c (find_shared_library_fullname): Likewise.
20472         * lib/strerror_r.c: Likewise.
20473         * lib/unistr/u8-strnlen.c: Likewise.
20474         * lib/vasnprintf.c (decimal_point_char): Likewise.
20475         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
20476         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
20477         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
20478         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
20479         * tests/test-sigaction.c (handler, main): Likewise.
20480         * lib/freading.h: Treat uClibc like a non-glibc platform.
20481         * lib/freading.c: Likewise.
20482         * lib/gettext.h: Likewise.
20483         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
20484         Likewise.
20485         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
20486         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
20487         * lib/propername.c (proper_name_utf8): Likewise.
20488         * lib/spawn.in.h: Likewise.
20489         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
20490         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
20491         mem_cd_iconveh_internal): Likewise.
20492         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
20493         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
20494         strstr, strcasestr): Likewise.
20495         * lib/unicodeio.c (unicode_to_mb): Likewise.
20496         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
20497         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
20498         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
20499         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
20500         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
20501         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
20502         * lib/unistr/u8-stpncpy.c: Likewise.
20503         * lib/vasnprintf.c (VASNPRINTF): Likewise.
20504         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
20505         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
20506         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20507         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
20508         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
20509         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
20510         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
20511         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
20512         Likewise.
20513         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
20514         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
20515         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
20516         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
20517         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
20518         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
20519         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20520         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
20521         * tests/test-getopt.h (OPTIND_MIN): Likewise.
20522         * tests/test-striconveha.c (main): Likewise.
20523         * tests/test-vasnprintf-posix.c (test_function): Likewise.
20524         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
20525         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
20526         * doc/posix-functions/getline.texi: Likewise.
20527         Reported by Mike Frysinger <vapier@gentoo.org>.
20528
20529 2010-11-20  Bruno Haible  <bruno@clisp.org>
20530
20531         nproc: Fix condition.
20532         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
20533         HAVE_PTHREAD_AFFINITY_NP.
20534
20535 2010-11-20  Bruno Haible  <bruno@clisp.org>
20536
20537         Fix a comment.
20538         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
20539
20540 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
20541
20542         ftoastr: don't assume snprintf
20543         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
20544         Implement a subset of snprintf here, by using sprintf safely.
20545         * modules/ftoastr (Depends-on): Remove snprintf.
20546
20547 2010-11-19  Jim Meyering  <meyering@redhat.com>
20548
20549         test-rename.h: fix compilation failure
20550         * tests/test-rename.h (test_rename): Add omitted "}".
20551
20552 2010-11-17  Jim Meyering  <meyering@redhat.com>
20553
20554         maint.mk: add a URL discussing the no-@acronym policy
20555         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
20556
20557 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
20558
20559         ftoastr: depend on snprintf, improve comments
20560         * lib/ftoastr.c: Also mention Loitsch's draft.
20561         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
20562         needed in the current implementation, but it might simplify
20563         speeding up the code later.
20564         * modules/ftoastr: Depend on snprintf; this improves portability.
20565         Suggested by Bruno Haible in the same email.
20566
20567         ftoastr: port to hosts lacking strtof and strtold
20568         Problem reported by Bruno Haible in
20569         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
20570         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
20571         environment and strtold (and presumably strtof) are not available.
20572         * modules/ftoastr (Files): Add m4/c-strtod.m4.
20573         (configure.ac): Require gl_C99_STRTOLD.
20574
20575 2010-11-18  Bruno Haible  <bruno@clisp.org>
20576
20577         c-strtold: Avoid link error on AIX 7.
20578         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
20579         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
20580         (gl_C_STRTOLD): Test whether strtold_l exists.
20581         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
20582
20583 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
20584
20585         intprops: new macro INT_BITS_STRLEN_BOUND
20586         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
20587         ftoastr.h.  This exposes an internal of intprops.h that was formerly
20588         not exposed.  Also, it uses a slightly tighter bound than before;
20589         though this makes no practical difference, we might as well be as
20590         tight as we easily can.
20591
20592         ftoastr: new module, for lossless conversion of floats to short strings
20593         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
20594         * modules/ftoastr: New files.
20595
20596 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
20597
20598         bootstrap: port to Solaris sed
20599         * build-aux/bootstrap (get_version): Port to Solaris sed.
20600         See Ralf Wildenhues's note in
20601         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
20602
20603 2010-11-14  Jim Meyering  <meyering@redhat.com>
20604
20605         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
20606         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
20607         and move definition closer to sole use.
20608
20609 2010-11-13  Jim Meyering  <meyering@redhat.com>
20610
20611         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
20612         Now we require at least autoconf-2.59, which means the work-around
20613         is no longer needed.
20614         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
20615         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
20616         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
20617         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
20618         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
20619
20620 2010-11-13  Bruno Haible  <bruno@clisp.org>
20621
20622         rename, renameat: Avoid test failures at NFS mounted locations.
20623         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
20624         functions.
20625         (test_rename): Use assert_nonexistent.
20626         * tests/test-rename.c: Include <dirent.h>.
20627         * tests/test-renameat.c: Likewise.
20628         Reported by Gary V. Vaughan <gary@gnu.org>.
20629
20630         rename, renameat: Document Linux bug with NFS
20631         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
20632         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
20633         * doc/posix-functions/renameat.texi: Likewise.
20634         Suggested by Eric Blake.
20635
20636 2010-11-13  Bruno Haible  <bruno@clisp.org>
20637
20638         rename test: Add comments.
20639         * tests/test-rename.h (test_rename): Add structure and comments.
20640
20641 2010-11-13  Eric Blake  <eblake@redhat.com>
20642
20643         maintainer-makefile: cover a few more files
20644         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
20645         scripts generated within C files, for libvirt.
20646
20647 2010-11-13  Bruno Haible  <bruno@clisp.org>
20648
20649         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
20650         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
20651         character, return the number of bytes that belong together, not always
20652         1.
20653         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
20654         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
20655         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
20656         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
20657         number of bytes of an invalid character.
20658         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
20659         (main): Invoke it.
20660         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
20661         results.
20662         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
20663         malformed byte sequences.
20664         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
20665         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
20666         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
20667         Reported by Ben Pfaff and Paolo Bonzini.
20668
20669 2010-11-13  Bruno Haible  <bruno@clisp.org>
20670
20671         openat: Work around glibc bug with fchownat() and empty file names.
20672         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
20673         (gl_FUNC_FCHOWNAT): Invoke it.
20674         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
20675         * doc/posix-functions/fchownat.texi: Document the glibc bug.
20676         Reported by Gary V. Vaughan <gary@gnu.org>.
20677
20678 2010-11-13  Bruno Haible  <bruno@clisp.org>
20679
20680         openat: Ensure autoconf macro ordering.
20681         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
20682         gl_USE_SYSTEM_EXTENSIONS.
20683         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
20684
20685 2010-11-13  Bruno Haible  <bruno@clisp.org>
20686
20687         Update comments.
20688         * lib/unistr/u8-check.c: Update file name in comments.
20689         * lib/unistr/u8-mblen.c: Likewise.
20690         * lib/unistr/u8-prev.c: Likewise.
20691         * lib/unistr/u8-strmblen.c: Likewise.
20692         * lib/unistr/u8-strmbtouc.c: Likewise.
20693
20694 2010-11-13  Jim Meyering  <meyering@redhat.com>
20695
20696         tests: avoid test failure on Solaris 10 due to lack of PATH export
20697         * tests/test-update-copyright.sh: Don't forget to export PATH.
20698
20699         init.sh: ensure that IFS is defined, just in case...
20700         * tests/init.sh (setup_): Ensure that IFS is defined,
20701         so that saving and restoring it works as expected.  This
20702         appears to be useful at least for an old version of dash
20703         from a long time ago (RH 6).  See here for details:
20704         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
20705
20706         maint.mk: tighten "test a == b" check
20707         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
20708         test to files that contain something like #!/bin/sh.
20709         Without this, coreutils would get two false positives in
20710         the comments of C source files.
20711
20712 2010-11-12  Eric Blake  <eblake@redhat.com>
20713
20714         bootstrap: fix typo in previous attempt
20715         * build-aux/bootstrap (buildreq): Correct the grouping.
20716         Reported by Paul Eggert.
20717
20718         maintainer-makefile: prohibit test x == x
20719         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
20720         Based on a report by Matthias Bolte.
20721
20722         bootstrap: allow FreeBSD gzip
20723         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
20724         which has no '.' and goes to stderr.
20725         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
20726         Reported by Matthias Bolte.
20727
20728         maintainer-makefile: check for i18n setup
20729         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
20730         will likely work.
20731
20732 2010-11-12  Bruno Haible  <bruno@clisp.org>
20733
20734         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
20735         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
20736         * lib/nanosleep.c (nanosleep): Likewise.
20737
20738 2010-11-11  Bruno Haible  <bruno@clisp.org>
20739
20740         fcntl-h: Fix for use of C++ on glibc systems.
20741         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
20742         also on glibc systems in C++ mode.
20743         Reported by Gary V. Vaughan <gary@gnu.org>.
20744
20745 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20746
20747         mknod: avoid false failure with dash
20748         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
20749
20750 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
20751
20752         unlink: Fix "is it should" typo in diagnostic.
20753         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
20754         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
20755
20756 2010-11-11  Bruno Haible  <bruno@clisp.org>
20757
20758         Tests for module 'strerror_r-posix'.
20759         * modules/strerror_r-posix-tests: New file.
20760         * tests/test-strerror_r.c: New file.
20761         * tests/test-string-c++.cc: Check the signature of strerror_r.
20762
20763         New module 'strerror_r-posix'.
20764         * lib/string.in.h (strerror_r): New declaration.
20765         * lib/strerror_r.c: New file.
20766         * m4/strerror_r.m4: New file.
20767         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
20768         of strerror_r.
20769         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
20770         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
20771         * modules/strerror_r-posix: New file.
20772         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
20773         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
20774         * doc/posix-functions/strerror_r.texi: Mention the new module and the
20775         portability problems.
20776
20777 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
20778
20779         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
20780         line is also considered for output. Quoted function name in shell
20781         command, so temporary files for functions like MyClass::operator()
20782         are removed correctly without errors.
20783
20784 2010-11-09  Bruno Haible  <bruno@clisp.org>
20785
20786         * doc/posix-functions/strerror.texi: List more failing platforms.
20787
20788         * doc/posix-functions/strerror.texi: Add a comment.
20789
20790 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
20791
20792         fdopendir: fix bug on MacOS X when low on file descriptors
20793
20794         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
20795         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
20796         All callers changed.
20797         (fdopendir): Invoke save_cwd at the top level, not after using
20798         multiple dup() calls to use up file descriptors.  Then retry
20799         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
20800         less than the maximum number of open file descriptors, because
20801         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
20802         on Mac OS X 10.6.4 for tar 1.24
20803         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
20804         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
20805         and for tar 1.25
20806         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
20807
20808 2010-11-07  Bruno Haible  <bruno@clisp.org>
20809
20810         vasnprintf: Support I flag on glibc systems.
20811         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
20812         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
20813         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
20814         snprintf function.
20815         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
20816         glibc systems.
20817         * tests/test-vasnprintf-posix3.c: New file.
20818         * modules/vasnprintf-posix-tests (Files): Add it.
20819         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
20820
20821 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
20822
20823         [html] Fix copy/paste bug: Use unique name for compiler warnings.
20824         * MODULES.html.sh: For compiler warnings, use name
20825         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
20826
20827 2010-11-05  Eric Blake  <eblake@redhat.com>
20828
20829         ceil, floor: avoid spurious failure with icc
20830         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
20831         [denormals-as-zero] when optimizing without -mieee-fp option.
20832         * tests/test-floorf2.c (floorf_reference): Likewise.
20833         * tests/test-ceilf1.c (dummy): New function.
20834         (main): Use it to outsmart icc's optimization.
20835         * tests/test-floorf1.c (dummy, main): Likewise.
20836
20837         tests: require working signbit
20838         * modules/ceilf-tests (Depends-on): Add signbit.
20839         * modules/ceill-tests (Depends-on): Likewise.
20840         * modules/floorf-tests (Depends-on): Likewise.
20841         * modules/floorl-tests (Depends-on): Likewise.
20842         * modules/round-tests (Depends-on): Likewise.
20843         * modules/roundf-tests (Depends-on): Likewise.
20844         * modules/roundl-tests (Depends-on): Likewise.
20845         * modules/trunc-tests (Depends-on): Likewise.
20846         * modules/truncf-tests (Depends-on): Likewise.
20847         * modules/truncl-tests (Depends-on): Likewise.
20848
20849         strtod: work around icc bug
20850         * lib/strtod.c (minus_zero): Define to working value.
20851         (strtod): Use it to avoid icc bug.
20852
20853         copysign: enhance tests
20854         * modules/copysign-tests (Files): Add minus-zero.h.
20855         * tests/test-copysign.c (main): Also test zeros.
20856
20857 2010-11-04  Eric Blake  <eblake@redhat.com>
20858
20859         ceil, floor, round, trunc: enhance tests of -0
20860         * tests/test-ceilf1.c (main): Ensure correct sign of result.
20861         * tests/test-ceill.c (main): Likewise.
20862         * tests/test-floorf1.c (main): Likewise.
20863         * tests/test-floorl.c (main): Likewise.
20864         * tests/test-round1.c (main): Likewise.
20865         * tests/test-roundf1.c (main): Likewise.
20866         * tests/test-roundl.c (main): Likewise.
20867         * tests/test-trunc1.c (main): Likewise.
20868         * tests/test-truncf1.c (main): Likewise.
20869         * tests/test-truncl.c (main): Likewise.
20870
20871 2010-11-04  Eric Blake  <eblake@redhat.com>
20872
20873         frexp, tests: work around ICC bug with -zero
20874         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
20875         works with more compilers.
20876         * tests/minus-zero.h: New file.
20877         * modules/ceilf-tests (Files): Include it.
20878         * modules/ceill-tests (Files): Likewise.
20879         * modules/floorf-tests (Files): Likewise.
20880         * modules/floorl-tests (Files): Likewise.
20881         * modules/frexp-nolibm-tests (Files): Likewise.
20882         * modules/frexp-tests (Files): Likewise.
20883         * modules/frexpl-nolibm-tests (Files): Likewise.
20884         * modules/frexpl-tests (Files): Likewise.
20885         * modules/isnan-tests (Files): Likewise.
20886         * modules/isnand-nolibm-tests (Files): Likewise.
20887         * modules/isnand-tests (Files): Likewise.
20888         * modules/isnanf-nolibm-tests (Files): Likewise.
20889         * modules/isnanf-tests (Files): Likewise.
20890         * modules/isnanl-nolibm-tests (Files): Likewise.
20891         * modules/isnanl-tests (Files): Likewise.
20892         * modules/round-tests (Files): Likewise.
20893         * modules/roundf-tests (Files): Likewise.
20894         * modules/roundl-tests (Files): Likewise.
20895         * modules/ldexpl-tests (Files): Likewise.
20896         * modules/signbit-tests (Files): Likewise.
20897         * modules/snprintf-posix-tests (Files): Likewise.
20898         * modules/sprintf-posix-tests (Files): Likewise.
20899         * modules/strtod-tests (Files): Likewise.
20900         * modules/trunc-tests (Files): Likewise.
20901         * modules/truncf-tests (Files): Likewise.
20902         * modules/truncl-tests (Files): Likewise.
20903         * modules/vsnprintf-posix-tests (Files): Likewise.
20904         * modules/vsprintf-posix-tests (Files): Likewise.
20905         * modules/vasnprintf-posix-tests (Files): Likewise.
20906         * modules/vasprintf-posix-tests (Files): Likewise.
20907         * tests/test-ceilf1.c (main): Use it.
20908         * tests/test-ceill.c (main): Likewise.
20909         * tests/test-floorf1.c (main): Likewise.
20910         * tests/test-floorl.c (main): Likewise.
20911         * tests/test-frexp.c (main): Likewise.
20912         * tests/test-frexpl.c (main): Likewise.
20913         * tests/test-isnan.c (main): Likewise.
20914         * tests/test-isnand.h (main): Likewise.
20915         * tests/test-isnanf.h (main): Likewise.
20916         * tests/test-isnanl.h (main): Likewise.
20917         * tests/test-ldexpl.c (main): Likewise.
20918         * tests/test-round.c (main): Likewise.
20919         * tests/test-roundf.c (main): Likewise.
20920         * tests/test-roundl.c (main): Likewise.
20921         * tests/test-signbit.c (test_signbitf, test_signbitd)
20922         (test_signbitl): Likewise.
20923         * tests/test-snprintf-posix.h (test_function): Likewise.
20924         * tests/test-sprintf-posix.h (test_function): Likewise.
20925         * tests/test-strtod.c (main): Likewise.
20926         * tests/test-trunc1.c (main): Likewise.
20927         * tests/test-truncf1.c (main): Likewise.
20928         * tests/test-truncl.c (main): Likewise.
20929
20930         isnanl: work around icc bug
20931         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
20932
20933 2010-11-03  Eric Blake  <eblake@redhat.com>
20934
20935         tests: fix compiler warnings
20936         * tests/test-getopt.h (test_getopt): Fix condition.
20937         * tests/test-getopt_long.h (test_getopt_long): Likewise.
20938         * tests/test-pipe2.c (main): Likewise.
20939         * tests/test-quotearg-simple.c (main): Avoid icc warning.
20940
20941         utimens: fix broken m4 test
20942         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
20943
20944 2010-10-28  Bruno Haible  <bruno@clisp.org>
20945
20946         posix_spawn*, getdtablesize: Relax license.
20947         * modules/posix_spawn (License): Change to LGPLv2+.
20948         * modules/posix_spawnp (License): Likewise.
20949         * modules/posix_spawn-internal (License): Likewise.
20950         * modules/posix_spawnattr_init (License): Likewise.
20951         * modules/posix_spawnattr_getflags (License): Likewise.
20952         * modules/posix_spawnattr_setflags (License): Likewise.
20953         * modules/posix_spawnattr_getpgroup (License): Likewise.
20954         * modules/posix_spawnattr_setpgroup (License): Likewise.
20955         * modules/posix_spawnattr_getschedparam (License): Likewise.
20956         * modules/posix_spawnattr_setschedparam (License): Likewise.
20957         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
20958         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
20959         * modules/posix_spawnattr_getsigdefault (License): Likewise.
20960         * modules/posix_spawnattr_setsigdefault (License): Likewise.
20961         * modules/posix_spawnattr_getsigmask (License): Likewise.
20962         * modules/posix_spawnattr_setsigmask (License): Likewise.
20963         * modules/posix_spawnattr_destroy (License): Likewise.
20964         * modules/posix_spawn_file_actions_init (License): Likewise.
20965         * modules/posix_spawn_file_actions_addclose (License): Likewise.
20966         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
20967         * modules/posix_spawn_file_actions_addopen (License): Likewise.
20968         * modules/posix_spawn_file_actions_destroy (License): Likewise.
20969         * modules/getdtablesize (License): Likewise.
20970         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
20971
20972 2010-10-26  Bruno Haible  <bruno@clisp.org>
20973
20974         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
20975         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
20976         Cygwin and mingw.
20977         Suggested by Eric Blake.
20978
20979 2010-10-26  Bruno Haible  <bruno@clisp.org>
20980
20981         stdio: Work around compilation error due to renameat() on Solaris 10.
20982         * lib/stdio.in.h: Include <unistd.h> on Solaris.
20983         * lib/renameat.c: Don't include <unistd.h> here.
20984         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
20985         Reported by Paul Eggert and Eric Blake.
20986
20987 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
20988
20989         renameat: port to Solaris 10, which declares renameat in unistd.h
20990
20991         * lib/renameat.c: Include unistd.h before stdio.h, because
20992         Solaris 10 declares renameat in unistd.h.  Problem encountered
20993         when building GNU tar 1.24 on Solaris 10.
20994
20995 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
20996
20997         fdopendir: fix C89 compilation
20998         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
20999         compilers.
21000
21001 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
21002
21003         inttostr: simplify by removing unnecessary redundancy
21004         * lib/anytostr.c: Don't include verify.h.
21005         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
21006         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
21007         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
21008         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
21009         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
21010         Likewise.
21011         * modules/inttostr (Depends-on): Remove 'verify'.
21012
21013 2010-10-23  Bruno Haible  <bruno@clisp.org>
21014
21015         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
21016         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
21017         Reported by Eric Blake.
21018
21019 2010-10-23  Bruno Haible  <bruno@clisp.org>
21020
21021         Tests: Fix LOCALE_JA on MirBSD 10.
21022         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
21023         to an UTF-8 locale.
21024         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
21025         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21026         Reported by Eric Blake.
21027
21028 2010-10-21  Bruno Haible  <bruno@clisp.org>
21029
21030         nl_langinfo test: Avoid test failure on NetBSD 5.
21031         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
21032         Reported by Eric Blake.
21033
21034 2010-10-21  Eric Blake  <eblake@redhat.com>
21035
21036         c-stack: work around libsigsegv 2.8 bug
21037         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
21038         overflow on at least PowerPC64.
21039
21040 2010-10-17  Bruno Haible  <bruno@clisp.org>
21041
21042         userspec: Drop redundant file.
21043         * modules/userspec (Files): Remove lib/inttostr.h.
21044
21045 2010-10-17  Bruno Haible  <bruno@clisp.org>
21046
21047         nl_langinfo tests: Silence some warnings.
21048         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
21049         Reported by Jim Meyering.
21050
21051 2010-10-17  Bruno Haible  <bruno@clisp.org>
21052
21053         Make use of GCC's attribute __alloc_size__.
21054         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
21055         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
21056         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
21057         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
21058         __alloc_size__.
21059         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
21060         Suggested by Jim Meyering.
21061
21062 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
21063
21064         bootstrap: anchor .gitignore entries.
21065         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
21066         with...
21067         (insert_vc_ignore): ... this new function, which prepends `/' to
21068         all .gitignore entries before passing them to
21069         insert_sorted_if_absent.
21070
21071 2010-10-16  Bruno Haible  <bruno@clisp.org>
21072
21073         nextafter: Fix configure check.
21074         * modules/nextafter (configure.ac): Correct expected prototype.
21075
21076 2010-10-16  Bruno Haible  <bruno@clisp.org>
21077
21078         termios: Update documentation.
21079         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
21080
21081 2010-10-16  Bruno Haible  <bruno@clisp.org>
21082
21083         tests: Make them compile with TinyCC.
21084         * tests/test-strstr.c (main): Remove parentheses around array
21085         initializer.
21086
21087 2010-10-15  Eric Blake  <eblake@redhat.com>
21088
21089         ignore-value: make header idempotent
21090         * lib/ignore-value.h: Add double-inclusion guards.
21091         Reported by Stefan Berger.
21092
21093 2010-10-15  Jim Meyering  <meyering@redhat.com>
21094
21095         GNUmakefile: handle "stable" target, not "major"
21096         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
21097         lists in maint.mk and announce-gen.  Without this, "make stable"
21098         would fail to ensure that $(VERSION) is up to date.
21099
21100 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
21101
21102         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
21103         & co.
21104
21105 2010-10-14  Bruno Haible  <bruno@clisp.org>
21106
21107         vasnprintf: Don't set errno to 0.
21108         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
21109         block that sets it to 0.
21110         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
21111
21112 2010-10-14  Bruno Haible  <bruno@clisp.org>
21113
21114         socketlib: Fix.
21115         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
21116         gl_PREREQ_SYS_H_WINSOCK2.
21117         Reported by Ian Beckwith <ianb@erislabs.net>.
21118
21119 2010-10-13  Jim Meyering  <meyering@redhat.com>
21120
21121         test-select-stdin.c: avoid warn_unused_result warnings
21122         * tests/test-select-stdin.c: Include "macros.h".
21123         ASSERT that read and fflush succeed.
21124
21125 2010-10-13  Jim Meyering  <meyering@redhat.com>
21126
21127         git-version-gen: do require git-VC'd files in cwd
21128         * build-aux/git-version-gen: Reject a git version string
21129         if there are no commits associated with the current directory.
21130         This avoids an unlikely false-positive (unrelated dir whose parent
21131         repository also contains a tag matching v*), as pointed out
21132         by Giuseppe Scrivano in
21133         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
21134
21135 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
21136
21137         argv-iter: omit nonconforming declaration
21138         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
21139         enum arg_iter_err declaration, which doesn't conform to C99.
21140         Solaris 10 cc warns about this.
21141
21142 2010-10-13  Eric Blake  <eblake@redhat.com>
21143
21144         termios: fix compilation on mingw
21145         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
21146         (gl_TERMIOS_H): Adjust it on mingw.
21147         * modules/termios (Makefile.am): Substitute new key.
21148         * lib/termios.in.h (includes): Make include_next conditional.
21149         * doc/posix-headers/termios.texi (termios.h): Update
21150         documentation.
21151         Reported by Daniel P. Berrange.
21152
21153 2010-10-13  Jim Meyering  <meyering@redhat.com>
21154
21155         git-version-gen: don't require that .git/ be in the current dir
21156         * build-aux/git-version-gen: Adjust this script so that it works
21157         when run from any working directory beneath the top-level .git/-
21158         containing directory.  Inspired by a patch from Giuseppe Scrivano,
21159         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
21160
21161         test-select: avoid warn_unused_result warnings
21162         * tests/test-select.c: Include "macros.h".
21163         ASSERT that each call to read, write, and pipe succeeds.
21164         While not technically required, also check each "close".
21165         * modules/select-tests (Files): Add tests/macros.h.
21166
21167         test-symlinkat: remove declaration of unused local
21168         * tests/test-symlinkat.c (main): Remove unused local, "buf".
21169
21170         test-inttostr: avoid shadowing warnings
21171         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
21172         and use malloc rather than the stack for the same reason as
21173         mentioned in the comment justifying the other allocation.
21174
21175 2010-10-11  Bruno Haible  <bruno@clisp.org>
21176
21177         stdlib: Allow multiple gnulib generated replacements to coexist.
21178         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
21179         Reported by Sam Steingold <sds@gnu.org>.
21180
21181 2010-10-11  Jim Meyering  <meyering@redhat.com>
21182
21183         fix a documentation typo
21184         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
21185
21186 2010-10-11  Eric Blake  <eblake@redhat.com>
21187
21188         futimens: work around Solaris 11 bug
21189         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
21190         * tests/test-futimens.h (test_futimens): Enhance, rather than
21191         weaken test.
21192         * doc/posix-functions/futimens.texi (futimens): Document the bug.
21193
21194 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
21195
21196         Indentation.
21197         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
21198         higher-level operators more to the left.
21199
21200 2010-10-11  Jim Meyering  <meyering@redhat.com>
21201
21202         test-futimens: avoid unwarranted test failure on Solaris 5.11
21203         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
21204         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
21205         because it tries to dereference the NULL name argument.
21206
21207 2010-10-11  Bruno Haible  <bruno@clisp.org>
21208
21209         Indentation.
21210         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
21211         indentation.
21212
21213 2010-10-11  Jim Meyering  <meyering@redhat.com>
21214
21215         spawn.in.h: make indentation consistent with parentheses
21216         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
21217         Make indentation consistent with parentheses.
21218
21219 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
21220
21221         Fix mismatched parens in previous commit
21222         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
21223         parens.
21224
21225 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
21226
21227         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
21228
21229         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
21230         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
21231         * lib/malloca.c: Include "verify.h".
21232         (verify1): Remove, replacing with a verify call.
21233         * lib/relocwrapper.c (verify1): Likewise.
21234         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
21235         Likewise.
21236         * modules/malloca (Depends-on): Add 'verify'.
21237         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
21238         * modules/vasnprintf (Depends-on): Add 'verify'.
21239         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
21240         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
21241         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
21242         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
21243         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
21244         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
21245         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
21246
21247         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
21248
21249         Formerly the style was sometimes 2*X - 1, because the C standard
21250         was wrongly thought to disallow ?: in integral constant expressions.
21251         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
21252         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
21253         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
21254         * lib/stdint.in.h (_verify_intmax_size): Likewise.
21255         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
21256         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
21257         verify that time_t cannot be floating.
21258
21259 2010-10-08  Eric Blake  <eblake@redhat.com>
21260
21261         time: enforce recent POSIX ruling that time_t is integral
21262         * lib/time.in.h (__time_t_must_be_integral): Detect any
21263         problematic systems, allowing the rest of gnulib to assume POSIX.
21264
21265 2010-10-08  Jim Meyering  <meyering@redhat.com>
21266
21267         fdopendir: fix a bug on systems lacking openat and /proc support
21268         OpenBSD 4.7 is one such system.  The most noticeable effect was
21269         failure of any application making nontrivial use of fts: rm, du,
21270         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
21271           ./rm: traversal failed: `a': Bad file descriptor
21272         Debugging that, you see that even though FD 6 was closed just
21273         prior to the opendir call in fd_clone_opendir, its resulting
21274         dir->dd_fd was 8, rather than the expected value of 6:
21275
21276         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
21277         93                close (fd);
21278         (gdb) n
21279         94                dir = fd_clone_opendir (dupfd);
21280         (gdb) n
21281         95                saved_errno = errno;
21282         (gdb) p dir->dd_fd
21283         $11 = 8
21284
21285         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
21286         The problem is that on OpenBSD, fd_clone_opendir has to resort
21287         to using the old-style save/restore CWD mechanism, due to its
21288         lack of openat/proc support, and *that* would steal the FD (6)
21289         that opendir was supposed to use.
21290
21291         The fix is to squirrel away the desired FD so that save_cwd uses a
21292         different one, and then free the dest FD right before calling opendir.
21293         That guarantees opendir will use the required file descriptor.
21294
21295         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
21296
21297 2010-10-08  Bruno Haible  <bruno@clisp.org>
21298
21299         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
21300         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
21301
21302 2010-10-08  Bruno Haible  <bruno@clisp.org>
21303
21304         nanosleep: Make replacement POSIX compliant.
21305         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
21306         is out of range.
21307         Reported by Jim Meyering.
21308
21309 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
21310
21311         bootstrap: add hook for altering gnulib.mk, for Bison
21312         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
21313         the Bison bootstrapping process can rewrite file names and variables
21314         in this file before later parts of 'bootstrap' use the file.
21315         Bison wants to include lib/gnulib.mk from the top-level makefile,
21316         so it needs the file names in this file to be relative to the top
21317         level, not relative to lib; plus it needs variable names to be
21318         rewritten.
21319         (slurp): Use the new function.
21320
21321         bootstrap: reformat for readability
21322         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
21323
21324 2010-10-08  Eric Blake  <eblake@redhat.com>
21325
21326         docs: update cygwin progress
21327         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
21328         1.7.7.
21329         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
21330         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
21331         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
21332         * doc/posix-functions/carg.texi (carg): Likewise.
21333         * doc/posix-functions/cargf.texi (cargf): Likewise.
21334         * doc/posix-functions/casin.texi (casin): Likewise.
21335         * doc/posix-functions/casinf.texi (casinf): Likewise.
21336         * doc/posix-functions/casinh.texi (casinh): Likewise.
21337         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
21338         * doc/posix-functions/catan.texi (catan): Likewise.
21339         * doc/posix-functions/catanf.texi (catanf): Likewise.
21340         * doc/posix-functions/catanh.texi (catanh): Likewise.
21341         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
21342         * doc/posix-functions/ccos.texi (ccos): Likewise.
21343         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
21344         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
21345         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
21346         * doc/posix-functions/cexp.texi (cexp): Likewise.
21347         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
21348         * doc/posix-functions/cimag.texi (cimag): Likewise.
21349         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
21350         * doc/posix-functions/clog.texi (clog): Likewise.
21351         * doc/posix-functions/clogf.texi (clogf): Likewise.
21352         * doc/posix-functions/conj.texi (conj): Likewise.
21353         * doc/posix-functions/conjf.texi (conjf): Likewise.
21354         * doc/posix-functions/cpow.texi (cpow): Likewise.
21355         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
21356         * doc/posix-functions/cproj.texi (cproj): Likewise.
21357         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
21358         * doc/posix-functions/creal.texi (creal): Likewise.
21359         * doc/posix-functions/crealf.texi (crealf): Likewise.
21360         * doc/posix-functions/csin.texi (csin): Likewise.
21361         * doc/posix-functions/csinf.texi (csinf): Likewise.
21362         * doc/posix-functions/csinh.texi (csinh): Likewise.
21363         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
21364         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
21365         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
21366         * doc/posix-functions/ctan.texi (ctan): Likewise.
21367         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
21368         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
21369         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
21370         * doc/posix-headers/complex.texi (complex.h): Likewise.
21371
21372 2010-10-07  Jim Meyering  <meyering@redhat.com>
21373
21374         parse-datetime: avoid compilation failure on OpenBSD 4.7
21375         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
21376         This works around a compilation failure on OpenBSD 4.7:
21377         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
21378
21379 2010-10-07  Eric Blake  <eblake@redhat.com>
21380
21381         docs: update cygwin progress
21382         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
21383         1.7.6.
21384         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
21385         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
21386         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
21387         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
21388         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
21389         Likewise.
21390         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
21391         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
21392         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
21393         Likewise.
21394         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
21395         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
21396         Likewise.
21397         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
21398         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
21399         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
21400         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
21401         Likewise.
21402         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
21403         Likewise.
21404         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
21405
21406         docs: update parse-datetime history
21407         * doc/parse-datetime.texi (Authors of parse_datetime): Better
21408         documentation of this function's history and alternatives.
21409
21410         cygwin: use more robust version check
21411         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
21412         exclude an eventual cygwin 1.9.1.
21413         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21414         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
21415         (gl_FUNC_STRCASESTR): Likewise.
21416         Reported by Bruno Haible.
21417
21418 2010-10-06  Bruno Haible  <bruno@clisp.org>
21419
21420         string, sys_select: Avoid #including large headers unless necessary.
21421         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
21422         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
21423         OSF/1, BeOS, Haiku.
21424         Reported by Jim Meyering.
21425
21426 2010-10-05  Eric Blake  <eblake@redhat.com>
21427
21428         memmem, strstr, strcasestr: fix bug with long periodic needle
21429         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
21430         periodic needle having false positive.
21431         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
21432         and cygwin 1.7.7.
21433         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
21434         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
21435         (gl_FUNC_STRCASESTR): Likewise.
21436         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
21437         * tests/test-memmem.c (main): Expose the bug.
21438         * tests/test-strcasestr.c (main): Likewise.
21439         * tests/test-strstr.c (main): Likewise.
21440         * tests/test-c-strcasestr.c (main): Likewise.
21441         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
21442         * doc/posix-functions/strstr.texi (strstr): Likewise.
21443         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
21444         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
21445
21446 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21447
21448         parse-datetime: do some more renaming
21449         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
21450         parse_datetime, not get_date.  Mention the renaming.
21451         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
21452         in comments.
21453         * m4/bison.m4: Likewise.
21454
21455 2010-10-05  Eric Blake  <eblake@redhat.com>
21456
21457         parse-datetime: better name than get_date
21458         * NEWS: Reword the deprecation notice.
21459         * modules/get_date: Rename to modules/parse-datetime.
21460         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
21461         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
21462         * lib/get_date.y: Rename to lib/parse-datetime.y.
21463         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
21464         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
21465         * doc/getdate.texi: Provide fallback wrapper.
21466         * lib/getdate.h: Move guts, and wrap...
21467         * lib/parse-datetime.h: ...new file.
21468         * lib/parse-datetime.y (get_date): Rename...
21469         (parse_datetime): ...to this.
21470         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
21471         (gl_PARSE_DATETIME): ...to this.
21472         * doc/posix-functions/getdate.texi (get_date): Provide fallback
21473         documentation.
21474         * modules/getdate (Files): Provide fallback docs and header.
21475         (Notice, Depends-on): Update references.
21476         * tests/test-parse-datetime.c: Likewise.
21477         * DEPENDENCIES: Likewise.
21478         * MODULES.html.sh (Date and time <time.h>): Likewise.
21479         * doc/parse-datetime.texi (Date input formats)
21480         (Authors of parse_datetime): Likewise.
21481         * modules/parse-datetime (Files, configure.ac, Makefile.am)
21482         (Include): Likewise.
21483         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
21484         * gnulib-tool: Likewise.
21485         * m4/bison.m4 (gl_BISON): Likewise.
21486         Suggested by Bruno Haible.
21487
21488 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
21489
21490         more ports to Solaris tr, which needs [] around ranges
21491         * gnulib-tool: Solaris tr needs [] around ranges.
21492         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
21493         * tests/test-pipe-filter-gi1.c (main): Likewise.
21494         * tests/test-pipe-filter-ii1.c (main): Likewise.
21495
21496 2010-10-05  Eric Blake  <eblake@redhat.com>
21497
21498         bootstrap: fix Solaris regression
21499         * build-aux/bootstrap (check_versions): Solaris tr still needs []
21500         around ranges.
21501         Reported by Pádraig Brady.
21502
21503         bootstrap: work with pkg-config
21504         * build-aux/bootstrap (check_versions): Also transliterate - in
21505         prerequisite name.
21506         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
21507         prerequisites that were already found, to avoid confusion.
21508         Reported by Justin Clift.
21509
21510         faccessat: remove unused wrappers
21511         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
21512         presence of these wrappers dragged in -lgen on Solaris.
21513         Reported by Clemens Brogi; fix suggested by Paul Eggert.
21514
21515 2010-10-05  Jim Meyering  <meyering@redhat.com>
21516
21517         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
21518         * Makefile (sc_pragma_columns): New syntax-check rule.
21519
21520 2010-10-04  Bruno Haible  <bruno@clisp.org>
21521
21522         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
21523         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
21524         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
21525         Reported by Bruce Korb and Eric Blake.
21526
21527 2010-10-04  Bruno Haible  <bruno@clisp.org>
21528
21529         threadlib: Make option --with-libpth-prefix work.
21530         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
21531         use $LIBPTH, not just -lpth.
21532
21533 2010-10-04  Bruno Haible  <bruno@clisp.org>
21534
21535         Avoid line length limitation from HP NonStop system header files.
21536         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
21537         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
21538         * lib/ctype.in.h: Likewise.
21539         * lib/dirent.in.h: Likewise.
21540         * lib/errno.in.h: Likewise.
21541         * lib/fcntl.in.h: Likewise.
21542         * lib/float.in.h: Likewise.
21543         * lib/getopt.in.h: Likewise.
21544         * lib/iconv.in.h: Likewise.
21545         * lib/inttypes.in.h: Likewise.
21546         * lib/langinfo.in.h: Likewise.
21547         * lib/locale.in.h: Likewise.
21548         * lib/math.in.h: Likewise.
21549         * lib/netdb.in.h: Likewise.
21550         * lib/netinet_in.in.h: Likewise.
21551         * lib/poll.in.h: Likewise.
21552         * lib/pthread.in.h: Likewise.
21553         * lib/pty.in.h: Likewise.
21554         * lib/sched.in.h: Likewise.
21555         * lib/se-selinux.in.h: Likewise.
21556         * lib/search.in.h: Likewise.
21557         * lib/signal.in.h: Likewise.
21558         * lib/spawn.in.h: Likewise.
21559         * lib/stdarg.in.h: Likewise.
21560         * lib/stddef.in.h: Likewise.
21561         * lib/stdint.in.h: Likewise.
21562         * lib/stdio.in.h: Likewise.
21563         * lib/stdlib.in.h: Likewise.
21564         * lib/string.in.h: Likewise.
21565         * lib/strings.in.h: Likewise.
21566         * lib/sys_file.in.h: Likewise.
21567         * lib/sys_ioctl.in.h: Likewise.
21568         * lib/sys_select.in.h: Likewise.
21569         * lib/sys_socket.in.h: Likewise.
21570         * lib/sys_stat.in.h: Likewise.
21571         * lib/sys_time.in.h: Likewise.
21572         * lib/sys_times.in.h: Likewise.
21573         * lib/sys_utsname.in.h: Likewise.
21574         * lib/sys_wait.in.h: Likewise.
21575         * lib/sysexits.in.h: Likewise.
21576         * lib/termios.in.h: Likewise.
21577         * lib/time.in.h: Likewise.
21578         * lib/unistd.in.h: Likewise.
21579         * lib/wchar.in.h: Likewise.
21580         * lib/wctype.in.h: Likewise.
21581         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
21582         * modules/ctype (Makefile.am): Likewise.
21583         * modules/dirent (Makefile.am): Likewise.
21584         * modules/errno (Makefile.am): Likewise.
21585         * modules/fcntl-h (Makefile.am): Likewise.
21586         * modules/float (Makefile.am): Likewise.
21587         * modules/getopt-posix (Makefile.am): Likewise.
21588         * modules/iconv-h (Makefile.am): Likewise.
21589         * modules/inttypes (Makefile.am): Likewise.
21590         * modules/langinfo (Makefile.am): Likewise.
21591         * modules/locale (Makefile.am): Likewise.
21592         * modules/math (Makefile.am): Likewise.
21593         * modules/netdb (Makefile.am): Likewise.
21594         * modules/netinet_in (Makefile.am): Likewise.
21595         * modules/poll-h (Makefile.am): Likewise.
21596         * modules/pthread (Makefile.am): Likewise.
21597         * modules/pty (Makefile.am): Likewise.
21598         * modules/sched (Makefile.am): Likewise.
21599         * modules/search (Makefile.am): Likewise.
21600         * modules/selinux-h (Makefile.am): Likewise.
21601         * modules/signal (Makefile.am): Likewise.
21602         * modules/spawn (Makefile.am): Likewise.
21603         * modules/stdarg (Makefile.am): Likewise.
21604         * modules/stddef (Makefile.am): Likewise.
21605         * modules/stdint (Makefile.am): Likewise.
21606         * modules/stdio (Makefile.am): Likewise.
21607         * modules/stdlib (Makefile.am): Likewise.
21608         * modules/string (Makefile.am): Likewise.
21609         * modules/strings (Makefile.am): Likewise.
21610         * modules/sys_file (Makefile.am): Likewise.
21611         * modules/sys_ioctl (Makefile.am): Likewise.
21612         * modules/sys_select (Makefile.am): Likewise.
21613         * modules/sys_socket (Makefile.am): Likewise.
21614         * modules/sys_stat (Makefile.am): Likewise.
21615         * modules/sys_time (Makefile.am): Likewise.
21616         * modules/sys_times (Makefile.am): Likewise.
21617         * modules/sys_utsname (Makefile.am): Likewise.
21618         * modules/sys_wait (Makefile.am): Likewise.
21619         * modules/sysexits (Makefile.am): Likewise.
21620         * modules/termios (Makefile.am): Likewise.
21621         * modules/time (Makefile.am): Likewise.
21622         * modules/unistd (Makefile.am): Likewise.
21623         * modules/wchar (Makefile.am): Likewise.
21624         * modules/wctype (Makefile.am): Likewise.
21625
21626 2010-10-04  Bruno Haible  <bruno@clisp.org>
21627
21628         read-file tests: Avoid a test failure on NonStop Kernel.
21629         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
21630         a regular file.
21631         Reported by Joachim Schmitz <schmitz@hp.com>.
21632
21633 2010-10-03  Bruno Haible  <bruno@clisp.org>
21634
21635         gnulib-tool: Fixes for --create-testdir with --libtool.
21636         * gnulib-tool (func_get_automake_snippet): Don't augment
21637         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
21638         an executable.
21639         (func_create_testdir): Handle module 'alloca' like func_import.
21640         Reported by Bruce Korb <bruce.korb@gmail.com>.
21641
21642 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
21643
21644         Avoid some lines longer than 80 characters.
21645         * lib/stdint.in.h: Break long comment lines.
21646         * lib/math.in.h: Likewise.
21647         (_GL_NUM_UINT_WORDS): New macro, for readability.
21648         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
21649         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
21650         * lib/stdlib.in.h: Likewise.
21651         * lib/spawn.in.h: Likewise.
21652         * lib/sys_socket.in.h: Update an URL.
21653         * lib/sys_stat.in.h: Break long line.
21654
21655 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
21656
21657         Improve pmccabe2html.
21658         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
21659         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
21660         when the sources change. Remove the line in the HTML about "Used
21661         ranges" (which implied that there might be other unused ranges),
21662         rename "Resume" to "Summary" (easier to understand for more users).
21663         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
21664         styles, and some unnecessary blank lines.
21665
21666 2010-10-03  Bruno Haible  <bruno@clisp.org>
21667             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
21668
21669         acl: Add support for ACLs on NonStop Kernel.
21670         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
21671         Check whether the function aclsort() exists.
21672         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
21673         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
21674         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21675         (acl_nontrivial [HAVE_ACLSORT]: New function.
21676         (file_has_acl): Implement for NonStop Kernel.
21677         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21678         (qset_acl): Implement for NonStop Kernel.
21679         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
21680         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
21681         (main): Implement for NonStop Kernel.
21682         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
21683         Kernel. Handle this flavor.
21684         * tests/test-set-mode-acl.sh: Likewise.
21685         * tests/test-copy-acl.sh: Likewise.
21686         * tests/test-copy-file.sh: Likewise.
21687
21688 2010-10-03  Bruno Haible  <bruno@clisp.org>
21689
21690         Info about ACLs on NonStop Kernel.
21691         * doc/acl-resources.txt: Add info about NonStop Kernel.
21692         References by Joachim Schmitz <schmitz@hp.com>.
21693
21694 2010-10-02  Bruno Haible  <bruno@clisp.org>
21695
21696         Define missing EDQUOT on NonStop Kernel.
21697         * lib/errno.in.h (EDQUOT): Assign a value if missing.
21698         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
21699         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
21700         missing.
21701         * doc/posix-headers/errno.texi: Mention the NSK bug.
21702         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
21703         Reported by Joachim Schmitz <schmitz@hp.com>.
21704
21705 2010-10-02  Bruno Haible  <bruno@clisp.org>
21706
21707         Update doc for POSIX:2008.
21708         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
21709         Update URL of POSIX specification.
21710
21711 2010-10-02  Bruno Haible  <bruno@clisp.org>
21712
21713         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
21714         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
21715         from gnulib, not from Automake.
21716
21717 2010-10-02  Bruno Haible  <bruno@clisp.org>
21718
21719         New module 'system-posix'.
21720         * modules/system-posix: New file.
21721         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
21722         module is present.
21723         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
21724         GNULIB_SYSTEM_POSIX.
21725         * modules/stdlib (Depends-on): Remove sys_wait.
21726         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
21727         * doc/posix-functions/system.texi: Mention the new module.
21728         * doc/posix-headers/stdlib.texi: Likewise.
21729         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
21730         define test_sys_wait_macros to a no-op.
21731         Reported by Sam Steingold <sds@gnu.org>.
21732
21733 2010-09-30  Bruno Haible  <bruno@clisp.org>
21734
21735         More renaming from 'getdate' to 'get_date'.
21736         * doc/get_date.texi: Renamed from doc/getdate.texi.
21737         * modules/get_date (Files): Update.
21738         * MODULES.html.sh (Date and time <time.h>): Update.
21739         * DEPENDENCIES: Update.
21740         * gnulib-tool: Update comment.
21741         * m4/bison.m4 (gl_BISON): Likewise.
21742         * m4/get_date.m4 (gl_GET_DATE): Likewise.
21743
21744 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
21745
21746         bootstrap: support ACLOCAL_FLAGS during aclocal
21747         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
21748         can add additional -I dir for third-party .m4 files.
21749
21750 2010-09-30  Eric Blake  <eblake@redhat.com>
21751
21752         bootstrap: use glibtoolize on MacOS
21753         * build-aux/bootstrap (check_versions): Convert libtool into
21754         libtoolize.
21755         (tool search): Move libtool check earlier, and look for
21756         glibtoolize for MacOS.
21757         (gnulib_tool_options): Auto-add --libtool when appropriate.
21758         Reported by Justin Clift.
21759
21760         poll: fix typo that broke test on MacOS
21761         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
21762         Reported by Justin Clift.
21763
21764         getdate: rename to get_date
21765         Note: getdate.h is not renamed, to minimize client impact.
21766         * modules/getdate: Mark obsolete.  Move old contents...
21767         * modules/get_date: ...to new module name.
21768         * modules/getdate-tests: Move...
21769         * modules/get_date-tests: ...here.
21770         * m4/getdate.m4: Move...
21771         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
21772         * lib/getdate.y: Move...
21773         * lib/get_date.y: ...here.
21774         * tests/test-getdate.c: Move...
21775         * tests/test-get_date.c: ...here.
21776         * doc/posix-functions/getdate.texi (getdate): Update name.
21777         * NEWS: Mention the change.
21778
21779 2010-09-29  Bruno Haible  <bruno@clisp.org>
21780
21781         Separate the module 'waitpid' from the module 'sys_wait'.
21782         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
21783         present.
21784         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
21785         gl_MODULE_INDICATOR_FOR_TESTS.
21786         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
21787         * modules/sys_wait (Depends-on): Remove waitpid.
21788         (Makefile.am): Substitute GNULIB_WAITPID.
21789         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
21790         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
21791         signature only if the 'waitpid' module is present.
21792         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
21793         * NEWS: Mention the change.
21794         * modules/grantpt (Depends-on): Add waitpid.
21795         * modules/wait-process (Depends-on): Likewise.
21796
21797 2010-09-29  Bruno Haible  <bruno@clisp.org>
21798
21799         More tests for module 'sys_wait'.
21800         * modules/sys_wait-c++-tests: New file.
21801         * tests/test-sys_wait-c++.cc: New file.
21802         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
21803         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
21804
21805 2010-09-29  Bruno Haible  <bruno@clisp.org>
21806
21807         New module 'waitpid'.
21808         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
21809         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
21810         Don't include <process.h>.
21811         (waitpid): Declare only, using modern idiom.
21812         * m4/waitpid.m4: New file.
21813         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
21814         * modules/waitpid: New file.
21815         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
21816         (Makefile.am): Update.
21817         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
21818
21819 2010-09-28  Bruno Haible  <bruno@clisp.org>
21820
21821         poll: Assume ANSI C.
21822         * lib/poll.c (poll): Use an ANSI C declaration.
21823
21824 2010-09-28  Bruno Haible  <bruno@clisp.org>
21825
21826         poll-h: Create poll.h on all platforms.
21827         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
21828         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
21829         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
21830         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
21831         (gl_REPLACE_POLL_H): Don't set POLL_H.
21832         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
21833         * modules/poll-h (Depends-on): Add include_next.
21834         (Makefile.am): Create poll.h unconditionally. Substitute also
21835         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
21836
21837 2010-09-28  Bruno Haible  <bruno@clisp.org>
21838
21839         Tests for module 'poll-h'.
21840         * modules/poll-h-c++-tests: New file.
21841         * tests/test-poll-h-c++.cc: New file.
21842
21843         Tests for module 'poll-h'.
21844         * modules/poll-h-tests: New file.
21845         * tests/test-poll-h.c: New file.
21846
21847 2010-09-28  Bruno Haible  <bruno@clisp.org>
21848
21849         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
21850         * modules/poll-h (Depends-on): Add 'extensions'.
21851
21852 2010-09-28  Bruno Haible  <bruno@clisp.org>
21853
21854         New module 'poll-h'.
21855         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
21856         (poll): Use modern idiom.
21857         * modules/poll-h: New file.
21858         * modules/poll (Files): Remove lib/poll.in.h.
21859         (Depends-on): Add poll-h.
21860         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
21861         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
21862         * m4/poll_h.m4: New file.
21863         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
21864         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
21865         and invoke gl_REPLACE_POLL_H.
21866         * lib/poll.c: Use common idiom.
21867         * tests/test-poll.c: Likewise.
21868         * doc/posix-headers/poll.texi: Mention the poll-h module.
21869         Suggested by Eric Blake.
21870
21871 2010-09-26  Bruno Haible  <bruno@clisp.org>
21872
21873         sys_wait: Implement WSTOPSIG.
21874         * lib/sys_wait.in.h (WSTOPSIG): New macro.
21875         Reported by Simon Josefsson.
21876
21877 2010-09-26  Simon Josefsson  <simon@josefsson.org>
21878
21879         stdlib, sys_wait: Avoid compilation error on mingw.
21880         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
21881
21882 2010-09-26  Bruno Haible  <bruno@clisp.org>
21883
21884         stdlib tests: Avoid code duplication.
21885         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
21886         * modules/sys_wait-tests (Files): Likewise.
21887         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
21888         * tests/test-stdlib.c: Include test-sys_wait.h.
21889         (main): Invoke test_sys_wait_macros.
21890         * tests/test-sys_wait.c: Include test-sys_wait.h.
21891         (main): Invoke test_sys_wait_macros.
21892
21893 2010-09-25  Simon Josefsson  <simon@josefsson.org>
21894
21895         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
21896         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
21897         sure Windows sockets are working before calling getaddrinfo.
21898         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
21899         * doc/gnulib.texi (Windows sockets): Fix typo.
21900
21901 2010-09-25  Bruno Haible  <bruno@clisp.org>
21902
21903         Tests for module 'regex-quote'.
21904         * modules/regex-quote-tests: New file.
21905         * tests/test-regex-quote.c: New file.
21906
21907         New module 'regex-quote'.
21908         * lib/regex-quote.h: New file.
21909         * lib/regex-quote.c: New file.
21910         * modules/regex-quote: New file.
21911         Suggested by Reuben Thomas <rrt@sc3d.org>.
21912
21913 2010-09-24  Bruno Haible  <bruno@clisp.org>
21914
21915         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
21916         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
21917
21918 2010-09-23  Bruno Haible  <bruno@clisp.org>
21919
21920         setenv: Relax license.
21921         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
21922         Blake.
21923         Requested by Eric Blake.
21924
21925 2010-09-22  Bruno Haible  <bruno@clisp.org>
21926
21927         termios: Relax license.
21928         * modules/termios (License): Change to LGPLv2+.
21929         Requested by Eric Blake.
21930
21931 2010-09-22  Bruno Haible  <bruno@clisp.org>
21932
21933         threadlib: Allow the package to change the default to 'no'.
21934         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
21935         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
21936         Reported by Paul Eggert.
21937
21938 2010-09-22  Pádraig Brady  <P@draigbrady.com>
21939             Bruno Haible  <bruno@clisp.org>
21940
21941         Fix endless loop in mbmemcasecoll.
21942         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
21943         byte.
21944         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
21945
21946 2010-09-22  Bruno Haible  <bruno@clisp.org>
21947
21948         Tests for module 'memcoll'.
21949         * modules/memcoll-tests: New file.
21950         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
21951
21952         memcoll, xmemcoll: Clarify size vs. length.
21953         * modules/memcoll.c (memcoll0): Clarify specification.
21954         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
21955         passed to collate_error.
21956
21957 2010-09-22  Bruno Haible  <bruno@clisp.org>
21958
21959         Tests for module 'memcasecmp'.
21960         * modules/memcasecmp-tests: New file.
21961         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
21962
21963 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
21964
21965         * lib/pthread.in.h: Add split double-inclusion guard, and include
21966         system <pthread.h> if there is one.  Use @@-style as in other
21967         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
21968         pthread.h doesn't.
21969         (pthread_mutexattr_destroy, pthread_mutexattr_init):
21970         (pthread_mutexattr_settype, pthread_mutex_trylock):
21971         New static inline functions, if there's no system <pthread.h>.
21972         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
21973         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
21974         Approximate with mutexes if the system lacks spinlocks, as in
21975         MacOS.
21976         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
21977         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
21978         @@-style.  Check for spinlocks separately.
21979         (gl_PTHREAD_DEFAULTS): New macro.
21980         * modules/pthread: Redo to use a more typical style for in.h files.
21981
21982 2010-09-21  Eric Blake  <eblake@redhat.com>
21983
21984         net_if: enhance tests
21985         * tests/test-net_if.c (main): Move signature checks earlier.
21986         Print failures to stderr.
21987         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
21988         Document the bug that we do not yet fix.
21989
21990 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
21991
21992         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
21993         about gnulib, not GSS.
21994
21995 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
21996
21997         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
21998         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
21999         for Emacs.
22000         * build-aux/pmccabe2html: Make Makefile.am example code more
22001         cut-and-paste friendly.
22002
22003 2010-09-21  Simon Josefsson  <simon@josefsson.org>
22004
22005         * tests/test-net_if.c: New file.
22006         * modules/net_if-tests: New file.
22007
22008 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
22009
22010         pthread: add pthread_spin_destroy
22011         * lib/pthread.in.h (pthread_spin_destroy): New function.
22012
22013 2010-09-19  Bruno Haible  <bruno@clisp.org>
22014
22015         gnulib-tool: Fix --help output.
22016         * gnulib-tool (func_usage): Fix help message.
22017         Reported by Reuben Thomas <rrt@sc3d.org>.
22018
22019 2010-09-18  Jim Meyering  <meyering@redhat.com>
22020
22021         maint.mk: avoid unexpanded \n in two diagnostics
22022         * top/maint.mk (sc_prohibit_always_true_header_tests):
22023         Don't use a literal \n in a halt=... assignment.  It would not be
22024         expanded, and the two \n bytes would appear in the diagnostic output
22025         rather than the desired newline.  Use halt=$$(printf ... instead.
22026         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
22027
22028 2010-09-18  Bruno Haible  <bruno@clisp.org>
22029
22030         netinet_in: Doc tweak.
22031         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
22032         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22033
22034 2010-09-18  Jim Meyering  <meyering@redhat.com>
22035
22036         init.sh: correct an outdated comment
22037         * tests/init.sh (create_exe_shims_):  s/function/alias/
22038
22039         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
22040         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
22041         a file named "*.exe" is removed between the glob expansion and the
22042         processing of that oddly named file.
22043
22044 2010-09-17  Eric Blake  <eblake@redhat.com>
22045
22046         mirbsd: add some more support
22047         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
22048         in BSD family.
22049         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
22050         devices as OpenBSD.
22051         * m4/host-os.m4 (mirbsd): Add MirBSD.
22052
22053         tests: fix unportable assumption on sys/wait.h
22054         * tests/test-sys_wait.c (main): Relax test.
22055         * tests/test-stdlib.c (main): Likewise.
22056
22057         init.sh: accomodate directory with no .exes
22058         * tests/init.sh: Accomodate directory containing only scripts.
22059
22060         tests: avoid compiler warning
22061         * tests/test-stdlib.c (main): Use the variable.
22062
22063         fdutimens, fdutimensat: update signature, again
22064         * lib/utimens.h (gl_futimens): Delete, and move signature...
22065         (fdutimens): ...here.
22066         (fdutimensat): Rearrange signature.
22067         (lutimensat): Rename variable for clarity.
22068         * lib/fdutimensat.c (fdutimensat): Update signature.
22069         * lib/utimens.c (fdutimens): Likewise.
22070         (gl_futimens): Delete.
22071         (utimens, lutimens): Update callers.
22072         * lib/futimens.c (futimens): Likewise.
22073         * tests/test-fdutimensat.c: Likewise.
22074         * tests/test-utimens.c: Likewise.
22075         * tests/test-futimens.h: Update comment.
22076         * NEWS: Mention this.
22077         Suggested by Paul Eggert.
22078
22079 2010-09-17  Bruno Haible  <bruno@clisp.org>
22080
22081         Take over the maintenance of some older macros from Autoconf.
22082         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
22083         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
22084         GNU Autoconf.
22085         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
22086         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
22087
22088 2010-09-17  Eric Blake  <eblake@redhat.com>
22089
22090         fdutimensat: drop atflag validation
22091         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
22092         with valid fd, to close a race scenario where futimens is
22093         unsupported and FILE was replaced by a symlink.
22094         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
22095         accordingly.
22096         Suggested by Paul Eggert.
22097
22098 2010-09-16  Bruno Haible  <bruno@clisp.org>
22099
22100         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
22101         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
22102
22103 2010-09-16  Bruno Haible  <bruno@clisp.org>
22104
22105         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
22106         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
22107         login_tty exists.
22108         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22109
22110 2010-09-16  Bruno Haible  <bruno@clisp.org>
22111
22112         login_tty: Make the replacement code work on BSD systems.
22113         * lib/login_tty.c: Include <sys/ioctl.h>.
22114         (login_tty): Use ioctl TIOCSCTTY when available.
22115         * modules/login_tty (Depends-on): Add sys_ioctl.
22116         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22117
22118 2010-09-16  Bruno Haible  <bruno@clisp.org>
22119
22120         login_tty: Stricter unit test.
22121         * modules/login_tty-tests (Depends-on): Add tcgetsid.
22122         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
22123         and tcgetsid() after login_tty.
22124         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22125
22126 2010-09-16  Bruno Haible  <bruno@clisp.org>
22127
22128         New module 'tcgetsid'.
22129         * lib/tcgetsid.c: New file.
22130         * m4/tcgetsid.m4: New file.
22131         * modules/tcgetsid: New file.
22132         * modules/termios (Depends-on): Add c++defs, warn-on-use.
22133         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
22134         GNULIB_TCGETSID, HAVE_TCGETSID.
22135         * lib/termios.in.h: Include <sys/types.h>.
22136         (tcgetsid): New declaration.
22137         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
22138         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
22139         * doc/posix-functions/tcgetsid.texi: Mention the new module.
22140         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
22141
22142 2010-09-16  Bruno Haible  <bruno@clisp.org>
22143
22144         Tests for module 'termios'.
22145         * modules/termios-c++-tests: New file.
22146         * modules/termios-tests: New file.
22147         * tests/test-termios-c++.cc: New file.
22148         * tests/test-termios.c: New file.
22149
22150         New module 'termios'.
22151         * modules/termios: New file.
22152         * lib/termios.in.h: New file.
22153         * m4/termios_h.m4: New file.
22154         * doc/posix-headers/termios.texi: Mention the new module.
22155
22156 2010-09-16  Eric Blake  <eblake@redhat.com>
22157
22158         fdutimensat: add an atflag parameter
22159         * lib/fdutimensat.c (fdutimensat): Add new parameter.
22160         * lib/utimens.h (fdutimensat): Update prototype.
22161         * tests/test-fdutimensat.c: Adjust test to match.
22162         * NEWS: Document the change.
22163         Suggested by Paul Eggert.
22164
22165 2010-09-16  Bruno Haible  <bruno@clisp.org>
22166
22167         Fix typos in comments.
22168         * lib/striconveh.h: Fix typo in comment.
22169         * lib/login_tty.c (login_tty): Likewise.
22170
22171 2010-09-15  Bruno Haible  <bruno@clisp.org>
22172
22173         stdlib: clarify MirBSD WEXITSTATUS bug
22174         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
22175         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
22176
22177 2010-09-15  Eric Blake  <eblake@redhat.com>
22178
22179         stdlib: work around MirBSD WEXITSTATUS bug
22180         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
22181         * modules/stdlib (Depends-on): Add sys_wait.
22182         * tests/test-sys_wait.c (main): Enhance test.
22183         * tests/test-stdlib.c (main): Likewise.
22184         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
22185
22186         docs: mention MacOS issue with WEXITSTATUS(constant)
22187         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
22188         issue.
22189         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
22190
22191         strnlen: add tests
22192         * modules/strnlen-tests: New file.
22193         * tests/test-strnlen.c: Likewise.
22194
22195 2010-09-14  Bruno Haible  <bruno@clisp.org>
22196
22197         unistr/base: Avoid link errors when module 'libunistring' is also used.
22198         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
22199         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
22200         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
22201         Declare also when HAVE_LIBUNISTRING is set.
22202         Reported by Pádraig Brady <P@draigbrady.com>.
22203
22204 2010-09-14  Eric Blake  <eblake@redhat.com>
22205
22206         test-rawmemchr: make more robust
22207         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
22208         (Depends-on, configure.ac): Add needed prerequisites to use it.
22209         * modules/memchr-tests (Files, Depends-on, configure.ac):
22210         Likewise, to avoid implicit reliance on memchr module prereqs.
22211         * tests/test-memchr.c (main): Ensure proper masking.
22212         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
22213         reads.
22214
22215         memchr: detect glibc Alpha bug
22216         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
22217         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
22218         Alpha.
22219         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
22220         * tests/test-memchr.c (main): Enhance test.
22221         Reported by Nelson H. F. Beebe.
22222
22223 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22224
22225         fts, getcwd, glob: audit for dirfd returning -1
22226         * lib/fts.c (opendir): Remove #define; no longer used.
22227         (opendirat): New arg PDIR_FD.  All callers changed.
22228         (fts_build, _opendir2): Use new opendirat to avoid the need for
22229         dirfd, or for checking whether dirfd returns a negative value.
22230         Don't use opendir; always use openat followed by fdopendir.
22231         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
22232         it.
22233         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
22234         returns -1 here.
22235         * modules/fts (Depends-on): Remove dirfd.
22236         * modules/getcwd (Depends-on): Likewise.
22237
22238 2010-09-13  Eric Blake  <eblake@redhat.com>
22239
22240         float: fix broken MirBSD header
22241         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
22242         * doc/posix-headers/float.texi (float.h): Document it.
22243
22244 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
22245
22246         fts: use O_NOFOLLOW to avoid race condition when opening a directory
22247         * lib/fts.c (opendirat): New arg extra_flags.
22248         (__opendir2): Use it to avoid following symlinks when opening
22249         a directory, if symlinks are not supposed to be followed.  See
22250         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
22251
22252         fdopendir: preserve argument fd before returning
22253         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
22254         (fdopendir_with_dup, fd_clone_opendir): New static functions.
22255         (fdopendir): Use them, arranging for FD to be open to the same
22256         directory that it was when it started.  (It might be temporarily
22257         closed while fdopendir is running, so this not thread- or
22258         signal-safe.)  Be careful to do the right thing even when file
22259         descriptors are scarce and dup fails with errno == EMFILE.  See
22260         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
22261
22262 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
22263
22264         regex: Pass the system regex if its only problem is 32-bit regoff_t.
22265         * NEWS: Document change.
22266         * m4/regex.m4: Disable test for regoff_t size.
22267
22268 2010-09-13  Jim Meyering  <meyering@redhat.com>
22269
22270         fts: don't operate on an invalid file descriptor after failed dup
22271         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
22272         negative file descriptor.
22273
22274 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
22275
22276         savedir: add streamsavedir, deprecate fdsavedir
22277         * NEWS: Mention deprecation of fdsavedir.
22278         * lib/savedir.c (streamsavedir): New extern function, whose name
22279         ends in "savedir" to be consistent with the others.  This differs
22280         from savedirstream in that it doesn't close its argument.  The
22281         next version of GNU tar will use this instead of fdsavedir, to
22282         avoid some race conditions and conserve file descriptors.
22283         (savedirstream): Reimplement as a wrapper around streamsavedir.
22284         (fdsavedir): Add a comment deprecating this function.  As far as
22285         I know, only GNU tar used it, and GNU tar doesn't need it any more.
22286         * lib/savedir.h (streamsavedir): New decl.
22287         (fdsavedir): Add a comment deprecating this.
22288
22289 2010-09-10  Bruno Haible  <bruno@clisp.org>
22290
22291         langinfo: Fix last commit.
22292         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
22293         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
22294         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22295
22296 2010-09-10  Bruno Haible  <bruno@clisp.org>
22297
22298         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
22299         * lib/progreloc.c (O_EXEC): Define fallback.
22300
22301 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
22302
22303         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
22304         * NEWS: Document recent changes to fcntl-h.
22305         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
22306         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
22307         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
22308         Similarly for O_SEARCH; this last was already true, but not documented.
22309         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
22310         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
22311         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
22312         Likewise.
22313         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
22314         is zero, not whether it is defined.
22315         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
22316         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
22317         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
22318
22319 2010-09-10  Bruno Haible  <bruno@clisp.org>
22320
22321         langinfo, nl_langinfo: Fix for IRIX 5.3.
22322         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
22323         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
22324         HAVE_LANGINFO_YESEXPR.
22325         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
22326         HAVE_LANGINFO_YESEXPR.
22327         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
22328         HAVE_LANGINFO_T_FMT_AMPM is 0.
22329         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
22330         HAVE_LANGINFO_YESEXPR is 0.
22331         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
22332         NOEXPR.
22333         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
22334         * doc/posix-functions/nl_langinfo.texi: Likewise.
22335         Reported by Eric Blake.
22336
22337 2010-09-10  Bruno Haible  <bruno@clisp.org>
22338
22339         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
22340         * doc/glibc-functions/login_tty.texi: Mention the include file problem
22341         on FreeBSD 8.0 and OpenBSD 4.6.
22342         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
22343         * m4/pty_h.m4 (gl_PTY_H): Likewise.
22344         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
22345         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
22346         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
22347         ac_includes_default.
22348         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
22349
22350 2010-09-09  Eric Blake  <eblake@redhat.com>
22351
22352         strsignal: work around NetBSD bug
22353         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
22354         * lib/string.in.h (includes): Likewise.
22355         * doc/posix-functions/strsignal.texi (strsignal): Document the
22356         bug.
22357         Reported by Nelson H. F. Beebe.
22358
22359         gnulib-tool: work with NetBSD /bin/sh
22360         * gnulib-tool (func_cache_var, func_cache_lookup_module)
22361         (func_get_description, func_get_comment, func_get_status)
22362         (func_get_notice, func_get_applicability, func_get_filelist)
22363         (func_get_dependencies, func_get_autoconf_early_snippet)
22364         (func_get_autoconf_snippet, func_get_automake_snippet)
22365         (func_get_include_directive, func_get_link_directive)
22366         (func_get_license, func_get_maintainer, func_import): Avoid
22367         shell syntax errors from parsing syntax extensions.
22368
22369 2010-09-09  Bruno Haible  <bruno@clisp.org>
22370
22371         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
22372         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
22373         a reliable way to determine whether the 'alias' command works.
22374
22375 2010-09-08  Jim Meyering  <meyering@redhat.com>
22376
22377         init.sh: penalize a set-x-impaired shell; don't disqualify it
22378         * tests/init.sh: Too many shells corrupt application stderr when
22379         you set -x, so we can't afford to disqualify them, since at least
22380         on Irix-6.5, that would disqualify all bourne shells.
22381         Instead, use a two-pass approach.
22382         On the first pass, try to find a shell that meets the stricter
22383         condition that set -x does not corrupt stderr.
22384         If no shell meets the stricter condition, retest each candidate
22385         shell, but without that extra condition.  Finally, when
22386         VERBOSE=yes is requested and set -x might cause trouble, simply
22387         issue a warning and refrain from enabling debug output.
22388
22389 2010-09-08  Eric Blake  <eblake@redhat.com>
22390
22391         unsetenv: fix OpenBSD bug
22392         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
22393         * doc/posix-functions/unsetenv.texi (unsetenv): Update
22394         documentation.
22395         Reported by Jim Meyering.
22396
22397         strtod: work around IRIX 6.5 bug
22398         * lib/strtod.c (strtod): Reparse number on shorter string if
22399         exponent parse was invalid.
22400         * tests/test-strtod.c (main): Add check for "0x1p 2".
22401         Reported by Tom G. Christensen.
22402
22403         getopt: optimize previous patch
22404         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
22405         empty variable.  Speed up awk script.
22406         Reported by Paolo Bonzini.
22407
22408 2010-09-08  Jim Meyering  <meyering@redhat.com>
22409
22410         test.sh: disqualify shells for which set -x corrupts stderr
22411         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
22412         and OpenBSD 4.7.  They make it so with "set -x", environment settings
22413         appear in stderr output.  For example, this command:
22414             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
22415         prints "P=1" on those two systems:
22416
22417 2010-09-08  Bruno Haible  <bruno@clisp.org>
22418
22419         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
22420         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
22421         commands, because some shells ignore redirections when there is an
22422         error in the command lookup.
22423         Reported by Eric Blake.
22424
22425 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
22426
22427         * lib/regex.h: Fix a mention of `regex_compile' (should be
22428         `re_compile_pattern').
22429         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
22430         (re_set_registers): Correct name of parameter in comment.
22431
22432         * doc/regex.texi: Add documentation for missing syntax flags.
22433         Remove commented-out documentation of defunct syntax option
22434         RE_NO_EMPTY_ALTS.
22435         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
22436         Add documentation of re_set_registers.
22437         Document trick to re-use a pattern buffer by setting fastmap manually.
22438         Update documentation of struct re_pattern_buffer per public members.
22439         Uncomment documentation of equivalence class operators and
22440         collating symbol operators, since they are now implemented,
22441         Explain leftmost-longest matching in relation to alternatives.
22442         Tidy documentation of substring matching.
22443         Remove POSIX documentation, which is done better in
22444         glibc, and refer the reader there. Keep BSD API documentation, as
22445         that is not readily available elsewhere.
22446
22447 2010-09-07  Eric Blake  <eblake@redhat.com>
22448
22449         getopt: handle POSIXLY_CORRECT set but not exported
22450         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
22451         export state of POSIXLY_CORRECT, due to bash set -o posix.
22452         Reported by Dustin J. Mitchell.
22453
22454 2010-09-05  Bruno Haible  <bruno@clisp.org>
22455
22456         gnulib-tool: Highlight the changed options.
22457         * gnulib-tool (func_usage): Display the --import, --add-import,
22458         --remove-import explanations in bold font.
22459
22460 2010-09-06  Karl Berry  <karl@gnu.org>
22461
22462         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
22463
22464 2010-09-05  Bruno Haible  <bruno@clisp.org>
22465
22466         uniwidth/width: Update comment.
22467         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
22468         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
22469
22470 2010-09-05  Bruno Haible  <bruno@clisp.org>
22471
22472         isinf, isnan: Relax license.
22473         * modules/isinf (License): Change from GPL to LGPL, with consent from
22474         Ben Pfaff.
22475         * modules/isnan (License): Likewise.
22476         Requested by Ludovic Courtès.
22477
22478 2010-09-04  Bruno Haible  <bruno@clisp.org>
22479
22480         gnulib-tool: Help migration from --import to --add-import or --update.
22481         * gnulib-tool: Emit a verbose error message when --import is used
22482         without any module name.
22483
22484 2010-09-04  Bruno Haible  <bruno@clisp.org>
22485
22486         Update doc about gnulib-tool.
22487         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
22488         'gnulib-tool --update' in more detail.
22489         Reported by Eric Blake.
22490
22491 2010-09-04  Bruno Haible  <bruno@clisp.org>
22492
22493         gnulib-tool: Change --import. New options --add/remove-import.
22494         * gnulib-tool: New options --add-import, --remove-import.
22495         (func_usage): Document them.
22496         (have_associative): Define always.
22497         (func_import): In import mode, don't merge the specified settings with
22498         the cached settings. Implement remove-import mode.
22499         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
22500         Explain when to use them versus --import.
22501         (Simple update): Use --add-import instead of --import.
22502         * NEWS: Mention the change.
22503
22504 2010-09-04  Bruno Haible  <bruno@clisp.org>
22505
22506         * doc/gnulib-tool.texi (Initial import): Update paragraph about
22507         separate gnulib.mk.
22508
22509 2010-09-04  Bruno Haible  <bruno@clisp.org>
22510
22511         gnulib-tool: Don't talk about CVS any more.
22512         * gnulib-tool (func_usage, func_import): Write "version control"
22513         instead of CVS.
22514
22515 2010-09-04  Jim Meyering  <meyering@redhat.com>
22516
22517         maint.mk: avoid obscure sc_copyright_check failure in coreutils
22518         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
22519         false positives (whose names may be ill-chosen) when searching
22520         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
22521         would cause a false-positive.
22522
22523         avoid coreutils "make distcheck" failure
22524         Coreutils tests with an absolute build directory name that contains
22525         a space.  Not quoting this directory name caused a failure.
22526         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
22527         * tests/test-vc-list-files-cvs.sh: Likewise.
22528
22529 2010-09-04  Bruno Haible  <bruno@clisp.org>
22530
22531         gnulib-tool: Avoid error when run in a package without Makefile.am.
22532         * gnulib-tool: When collecting the m4dirs in a package that does not
22533         have a Makefile.am, eliminate those directories that contain no
22534         gnulib-cache.m4. Fix expression that counts these directories.
22535
22536 2010-09-04  Bruno Haible  <bruno@clisp.org>
22537
22538         update-copyright test: Improve output when perl is missing or too old.
22539         * tests/test-update-copyright.sh: Move test of Perl version down after
22540         the test whether Perl exists. Provide an explanation relating Perl's
22541         error message to Automake's SKIP: message.
22542
22543 2010-09-04  Bruno Haible  <bruno@clisp.org>
22544
22545         Don't augment PATH in TESTS_ENVIRONMENT.
22546         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
22547         set abs_aux_dir instead of augmenting PATH.
22548         * modules/vc-list-files-tests (Makefile.am): Likewise.
22549         * tests/test-update-copyright.sh: Augment PATH here.
22550         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
22551         path_prepend_.
22552         * tests/test-vc-list-files-git.sh: Likewise.
22553
22554 2010-09-04  Jim Meyering  <meyering@redhat.com>
22555
22556         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
22557         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
22558
22559 2010-09-04  Bruno Haible  <bruno@clisp.org>
22560
22561         strdup: Fix compilation error in C++ mode.
22562         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
22563         the macro.
22564
22565 2010-09-04  Bruno Haible  <bruno@clisp.org>
22566
22567         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
22568         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
22569         macro into a function.
22570         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
22571
22572 2010-09-04  Bruno Haible  <bruno@clisp.org>
22573
22574         Set PATH_SEPARATOR the same way autoconf does.
22575         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
22576         the value of PATH_SEPARATOR the same way autoconf-generated configure
22577         scripts do.
22578         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
22579         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
22580
22581 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
22582
22583         Set PATH_SEPARATOR the same way autoconf does.
22584         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
22585         the same way autoconf-generated configure scripts do.
22586         * posix-modules: Likewise.
22587
22588 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
22589
22590         hash: fix safe_hasher const typo
22591         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
22592         const; otherwise, there is a type error later.
22593
22594 2010-09-02  Jim Meyering  <meyering@redhat.com>
22595
22596         test-update-copyright.sh: require perl 5.8.0
22597         * tests/test-update-copyright.sh: Require 5.8.0,
22598         which Tom G. Christensen has confirmed is adequate,
22599         while 5.6.1 is not.
22600
22601 2010-09-02  Eric Blake  <eblake@redhat.com>
22602
22603         tests: init.sh improvements for re-exec'ing with zsh
22604         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
22605         -vx through shell re-exec.
22606         Reported by Tom G. Christensen.
22607
22608         wctype: fix typo in previous commit
22609         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
22610         Reported by Ludovic Courtès.
22611
22612 2010-09-02  Jim Meyering  <meyering@redhat.com>
22613
22614         test-update-copyright.sh: skip test if Perl is too old
22615         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
22616         Reported by Tom G. Christensen.
22617
22618 2010-09-02  Bruno Haible  <bruno@clisp.org>
22619
22620         wctype: Avoid compilation error on IRIX 6.5.30.
22621         * lib/wctype.in.h (iswblank): Declare with a replacement if
22622         REPLACE_ISWBLANK is set.
22623         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
22624         declared. Set REPLACE_ISWBLANK.
22625         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
22626         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
22627         * doc/posix-headers/wctype.texi: Likewise.
22628         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
22629
22630 2010-09-01  Bruno Haible  <bruno@clisp.org>
22631
22632         New module 'socketlib'.
22633         * modules/socketlib: New file.
22634         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
22635         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
22636         * modules/sockets (Depends-on): Add socketlib.
22637         Suggested by Sam Steingold <sds@gnu.org>.
22638
22639 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
22640
22641         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
22642
22643         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
22644         when one needs search access to a directory but not read access.
22645         On systems where it is available, it works in some cases where
22646         O_RDONLY does not, namely on directories that are searchable but
22647         not readable, and which need only to be searchable.  If O_SEARCH
22648         is not available, fall back to the traditional method of using
22649         O_RDONLY.
22650
22651         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
22652         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
22653         when opening a directory that needs only to be searchable.
22654         * lib/chdir-safer.c (chdir_no_follow): Likewise.
22655         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
22656         * lib/openat-proc.c (openat_proc_name): Likewise.
22657         * lib/openat.c (openat_needs_fchdir): Likewise.
22658         * lib/save-cwd.c (save_cwd): Likewise.
22659         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
22660
22661 2010-08-28  Bruno Haible  <bruno@clisp.org>
22662
22663         New module 'host-cpu-c-abi'.
22664         * modules/host-cpu-c-abi: New file.
22665         * m4/host-cpu-c-abi.m4: New file, based on part of
22666         clisp/src/m4/general.m4.
22667         Requested by Sam Steingold <sds@gnu.org>.
22668
22669 2010-08-31  Eric Blake  <eblake@redhat.com>
22670         and Jim Meyering  <meyering@redhat.com>
22671
22672         hash: factor, and guard against misbehaving hasher function
22673         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
22674         of table->hasher's return value.  Also protect against a hash value
22675         so large that adding it to table->bucket results in a NULL pointer.
22676         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
22677         Use it in place of open-coded check-and-abort.
22678
22679 2010-08-30  Bruno Haible  <bruno@clisp.org>
22680
22681         hash: silence spurious clang warning
22682         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
22683         Reported by Eric Blake.
22684
22685 2010-08-30  Eric Blake  <eblake@redhat.com>
22686
22687         strstr, memmem, strcasestr: avoid leaked shell message
22688         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
22689         FreeBSD.
22690         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
22691         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
22692
22693         tests: silence clang warning
22694         * tests/test-malloca.c (do_allocation): Avoid dead store.
22695
22696 2010-08-29  Bruno Haible  <bruno@clisp.org>
22697
22698         gettext: Fix recent mistake.
22699         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
22700
22701 2010-08-29  Bruno Haible  <bruno@clisp.org>
22702
22703         selinux-h: Offer a --without-selinux option.
22704         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
22705         --without-selinux was specified, skip all tests and define
22706         HAVE_SELINUX_SELINUX_H to 0.
22707         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
22708         set LIB_SELINUX to empty.
22709         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
22710         gl_LIBSELINUX. If --without-selinux was specified, replace
22711         selinux/context.h.
22712         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
22713
22714 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22715             Bruno Haible  <bruno@clisp.org>
22716
22717         Make the module 'realloc-gnu' work again on AIX and OSF/1.
22718         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
22719         of HAVE_REALLOC.
22720         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
22721         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
22722         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
22723         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
22724
22725 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22726             Bruno Haible  <bruno@clisp.org>
22727
22728         Make the module 'calloc-gnu' work again on AIX and OSF/1.
22729         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
22730         HAVE_CALLOC.
22731         * lib/xmalloc.c: Update accordingly.
22732         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
22733         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
22734         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
22735
22736 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22737             Bruno Haible  <bruno@clisp.org>
22738
22739         Make the module 'malloc-gnu' work again on AIX and OSF/1.
22740         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
22741         HAVE_MALLOC.
22742         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
22743         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
22744         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
22745
22746 2010-08-29  Bruno Haible  <bruno@clisp.org>
22747
22748         Update modules list.
22749         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
22750         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
22751         (String handling <string.h>): Add astrxfrm.
22752         (File system functions): Add readlinkat.
22753
22754 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22755
22756         Tests for module 'realloc-gnu'.
22757         * modules/realloc-gnu-tests: New file.
22758         * tests/test-realloc-gnu.c: New file.
22759
22760         Tests for module 'calloc-gnu'.
22761         * modules/calloc-gnu-tests: New file.
22762         * tests/test-calloc-gnu.c: New file.
22763
22764         Tests for module 'malloc-gnu'.
22765         * modules/malloc-gnu-tests: New file.
22766         * tests/test-malloc-gnu.c: New file.
22767
22768 2010-08-28  Bruno Haible  <bruno@clisp.org>
22769
22770         Rename module 'realloc' -> 'realloc-gnu'.
22771         * modules/realloc-gnu: New file, copied from modules/realloc.
22772         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
22773         obsolete.
22774         * modules/mgetgroups (Depends-on): Update.
22775         * doc/posix-functions/realloc.texi: Update.
22776         * NEWS: Mention the change.
22777
22778         Rename module 'calloc' -> 'calloc-gnu'.
22779         * modules/calloc-gnu: New file, copied from modules/calloc.
22780         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
22781         obsolete.
22782         * doc/posix-functions/calloc.texi: Update.
22783         * NEWS: Mention the change.
22784
22785         Rename module 'malloc' -> 'malloc-gnu'.
22786         * modules/malloc-gnu: New file, copied from modules/malloc.
22787         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
22788         obsolete.
22789         * modules/argp (Depends-on): Update.
22790         * modules/regex (Depends-on): Update.
22791         * doc/posix-functions/malloc.texi: Update.
22792         * NEWS: Mention the change.
22793
22794 2010-08-28  Eric Blake  <eblake@redhat.com>
22795
22796         pread, pwrite: add missing dependency
22797         * modules/pread (Depends-on): Add extensions.
22798         * modules/pwrite (Depends-on): Likewise.
22799
22800 2010-08-28  Bruno Haible  <bruno@clisp.org>
22801
22802         unistr/u*-strchr: Fix tests dependencies.
22803         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
22804         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
22805         Reported by Ian Beckwith <ianb@erislabs.net>.
22806
22807 2010-08-28  Bruno Haible  <bruno@clisp.org>
22808
22809         read-file: Don't occupy too much unused memory.
22810         * lib/read-file.c (fread_file): Shrink the buffer at the end.
22811
22812 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
22813             Eric Blake  <eblake@redhat.com>
22814             Bruno Haible  <bruno@clisp.org>
22815
22816         read-file: Avoid memory reallocations with regular files.
22817         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
22818         (fread_file): With regular files, use the remaining length as the
22819         initial buffer size.  Check against overflow.
22820         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
22821         sys_stat.
22822
22823 2010-08-28  Bruno Haible  <bruno@clisp.org>
22824
22825         ftello: Relax license.
22826         * modules/ftello (License): Relax to LGPLv2+.
22827         Reported by Eric Blake.
22828
22829 2010-08-28  Bruno Haible  <bruno@clisp.org>
22830
22831         Avoid relocwrapper link errors due to gnulib replacement functions.
22832         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
22833         function.
22834         Reported by Ben Pfaff <blp@cs.stanford.edu>.
22835
22836 2010-08-28  Bruno Haible  <bruno@clisp.org>
22837
22838         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
22839         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
22840         defined.
22841         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
22842         Suggested by Eric Blake.
22843
22844 2010-08-28  Bruno Haible  <bruno@clisp.org>
22845
22846         sys_socket, netdb: Ensure socklen_t gets defined.
22847         * modules/sys_socket (Depends-on): Add socklen.
22848         * modules/netdb (Depends-on): Likewise.
22849         * modules/getaddrinfo (Depends-on): Remove socklen.
22850         * modules/getsockopt (Depends-on): Likewise.
22851         * modules/setsockopt (Depends-on): Likewise.
22852         * tests/test-sys_socket.c: Check that socklen_t is defined.
22853         * tests/test-netdb.c: Likewise.
22854         * m4/socklen.m4: Update comments.
22855         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
22856
22857 2010-08-27  Eric Blake  <eblake@redhat.com>
22858
22859         login_tty: add missing dependency
22860         * modules/login_tty (Depends-on): Add pty.
22861
22862 2010-08-26  Eric Blake  <eblake@redhat.com>
22863
22864         lib-symbol-versions: fix m4 quoting
22865         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
22866         format for AC_LINK_IFELSE.
22867
22868         glob: fix compile test
22869         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
22870
22871         btowc: fix missing file
22872         * modules/btowc (Files): Also ship locale-fr.m4.
22873
22874         lseek: fix link test
22875         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
22876         AC_LINK_IFELSE.
22877
22878         include_next: silence autoconf 2.68 warning
22879         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
22880         AC_COMPILE_IFELSE as special.
22881         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
22882         autoconf < 2.68.
22883
22884         acl: fix compilation test
22885         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
22886         AC_COMPILE_IFELSE.
22887
22888 2010-08-26  Bruno Haible  <bruno@clisp.org>
22889
22890         Modernize AC_TRY_RUN invocations.
22891         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
22892         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
22893         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
22894         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
22895         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
22896         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
22897         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22898         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
22899         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22900         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22901         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
22902         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
22903         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22904         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22905         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22906         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
22907         gl_MBRLEN_NUL_RETVAL): Likewise.
22908         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
22909         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
22910         Likewise.
22911         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
22912         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
22913         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22914         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22915         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
22916         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
22917         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
22918         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
22919         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
22920         Likewise.
22921         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
22922         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
22923         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
22924         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22925         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22926         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
22927         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22928         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
22929         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22930         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
22931
22932 2010-08-26  Bruno Haible  <bruno@clisp.org>
22933
22934         Modernize AC_TRY_LINK invocations.
22935         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
22936         AC_TRY_LINK.
22937         * m4/argp.m4 (gl_ARGP): Likewise.
22938         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
22939         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
22940         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
22941         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
22942         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
22943         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
22944         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
22945         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
22946         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
22947         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
22948         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
22949         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
22950         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
22951         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22952         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
22953         * m4/hostent.m4 (gl_HOSTENT): Likewise.
22954         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
22955         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
22956         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
22957         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
22958         Likewise.
22959         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
22960         Likewise.
22961         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
22962         Likewise.
22963         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
22964         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
22965         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
22966         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
22967         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
22968         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
22969         * m4/servent.m4 (gl_SERVENT): Likewise.
22970         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
22971         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
22972         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
22973         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
22974         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
22975         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
22976         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
22977         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22978         * modules/tsearch-tests (configure.ac): Likewise.
22979
22980 2010-08-26  Bruno Haible  <bruno@clisp.org>
22981
22982         Modernize AC_TRY_COMPILE invocations.
22983         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
22984         AC_TRY_COMPILE.
22985         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
22986         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
22987         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
22988         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
22989         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
22990         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
22991         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22992         * m4/lock.m4 (gl_LOCK): Likewise.
22993         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
22994         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
22995         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
22996         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
22997         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
22998         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
22999         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
23000         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
23001         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
23002         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
23003         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
23004         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
23005         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
23006         extraneous semicolon.
23007
23008 2010-08-26  Jim Meyering  <meyering@redhat.com>
23009
23010         stat-time: relax license LGPL
23011         * modules/stat-time (License): Change from GPL to LGPL,
23012         with consent from all contributors, for use in libguile.
23013         Requested by Ludovic Courtès.
23014
23015 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
23016
23017         poll: return immediately on POLLHUP.
23018         * lib/poll.c (poll): Always set timeout before wait_timeout is
23019         computed.
23020
23021 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23022
23023         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
23024         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
23025         rmdir ("dir/.//"), unlinkat.
23026
23027 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
23028
23029         stdbool: avoid spurious failure with modern xlc
23030         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
23031
23032 2010-08-24  Bruno Haible  <bruno@clisp.org>
23033
23034         getloadavg: simplify code
23035         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
23036         gl_have_func. Update comments.
23037
23038 2010-08-24  Eric Blake  <eblake@redhat.com>
23039
23040         getloadavg: don't define SVR4 on cygwin
23041         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
23042         only define SVR4 when -lkvm is required.
23043         Reported by Yaakov Selkowitz.
23044
23045 2010-08-24  Bruno Haible  <bruno@clisp.org>
23046
23047         priv-set: fix comment
23048         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
23049
23050 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
23051
23052         priv-set: fix comments
23053         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
23054         to match code, as suggested by David Bartley in:
23055         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
23056
23057 2010-08-23  Eric Blake  <eblake@redhat.com>
23058
23059         stdbool: avoid rejecting clang
23060         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
23061         * tests/test-stdbool.c: Enable more tests if using the system
23062         <stdbool.h> instead of the gnulib replacement.
23063         (main): Move xlc bug test to a runtime test for all compilers.
23064         Reported by Anders Kaseorg.
23065
23066         argz: fix shell quoting issue
23067         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
23068         Reported by Charles Wilson.
23069
23070 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
23071             Erik Faye-Lund <kusmabite@gmail.com>
23072
23073         poll, select: handle ERROR_BROKEN_PIPE.
23074         * lib/poll.c (win32_compute_revents): Return POLLHUP when
23075         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
23076         * lib/select.c (win32_compute_revents): Do not mark a pipe
23077         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
23078
23079 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
23080
23081         fts: allow compilation with C++
23082         * lib/fts_.h: Specify extern "C" linkage with C++.
23083
23084 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23085
23086         Fix gnulib-tool sed script de-commentation for AIX sed.
23087         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
23088         sed.
23089
23090 2010-08-17  Eric Blake  <eblake@redhat.com>
23091
23092         test-stddef: test for (some) offsetof bugs
23093         * tests/test-stddef.c: Enhance test to ensure correct type of
23094         offsetof.
23095         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
23096         that we are not fixing at this time.
23097
23098 2010-08-15  Bruno Haible  <bruno@clisp.org>
23099
23100         stpncpy: Allow stpncpy to be defined as a macro.
23101         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
23102         if it's already correctly declared.
23103         * lib/string.in.h (stpncpy): Undefine before redefining.
23104         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
23105
23106 2010-08-14  Bruno Haible  <bruno@clisp.org>
23107
23108         Rename module 'memxfrm' to 'amemxfrm'.
23109         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
23110         (amemxfrm): Renamed from memxfrm.
23111         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
23112         (amemxfrm): Renamed from memxfrm.
23113         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
23114         * NEWS: Mention the change.
23115         * MODULES.html.sh (String handling <string.h>): Update.
23116         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
23117         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
23118         * lib/unicase/u16-casexfrm.c: Likewise.
23119         * lib/unicase/u32-casexfrm.c: Likewise.
23120         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
23121         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
23122         * lib/uninorm/u16-normxfrm.c: Likewise.
23123         * lib/uninorm/u32-normxfrm.c: Likewise.
23124         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
23125         memxfrm.
23126         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
23127         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
23128         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
23129         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
23130         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
23131         Suggested by Paul Eggert.
23132
23133 2010-08-14  Bruno Haible  <bruno@clisp.org>
23134
23135         Tests for module 'astrxfrm'.
23136         * modules/astrxfrm-tests: New file.
23137         * tests/test-astrxfrm.c: New file.
23138
23139         New module 'astrxfrm'.
23140         * lib/astrxfrm.h: New file.
23141         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
23142         * modules/astrxfrm: New file.
23143
23144 2010-08-14  Reuben Thomas <rrt@sc3d.org>
23145
23146         regex: Tweak doc.
23147         * doc/regex.texi (Overview): Don't mention regex.c.
23148         (GNU Regular Expression Compiling): Likewise.
23149         (Match-end-of-line Operator): Mention 'not_eol'.
23150
23151 2010-08-14  Brian Gough  <bjg@gnu.org>
23152             Bruno Haible  <bruno@clisp.org>
23153
23154         git-merge-changelog: add doc relating to use with bzr and hg.
23155         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
23156
23157 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
23158
23159         pthread: fix pthread.h creation for srcdir != builddir
23160         * modules/pthread (Makefile.am): Fix the rule to work also in a
23161         non-srcdir build.
23162
23163 2010-08-13  Karl Berry  <karl@gnu.org>
23164
23165         * doc/regex.texi (Predefined Syntaxes): @smallexample.
23166         * doc/posix-*/*: force line break before @url of POSIX
23167         specifications.
23168         Suggested by Werner Lemberg.
23169
23170 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23171
23172         strtod: fix const diagnostic
23173         * lib/strtod.c (strtod): Don't assign const char * to char *,
23174         as this elicits a warning from GCC when warnings are enabled.
23175
23176 2010-08-10  Pádraig Brady <P@draigbrady.com>
23177         and Eric Blake  <eblake@redhat.com>
23178
23179         copy-acl: ignore ENOTSUP on HP-UX
23180         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
23181         so that it is available for HP-UX.
23182         * lib/copy-acl.c (qcopy_acl): Use it.
23183         Reported by Patrick M. Callahan.
23184
23185 2010-08-10  Eric Blake  <eblake@redhat.com>
23186
23187         open, chown: relax license
23188         * modules/open (License): Change to LGPLv2+, with consent by all
23189         authors, for use in augeas.
23190         * modules/chown (License): Likewise.
23191         * modules/lchown (Likewise): Likewise.
23192         Requested by Adam Stokes.
23193
23194 2010-08-09  Karl Berry  <karl@gnu.org>
23195
23196         * build-aux/ar-lib: new file, import from Automake.
23197         * config/srclist.txt: autocheck for updates.
23198
23199 2010-08-09  Eric Blake  <eblake@redhat.com>
23200
23201         readlinkat: adjust client modules
23202         * modules/areadlinkat (Depends-on): Use readlinkat, not
23203         symlinkat.
23204         * modules/areadlinkat-with-size (Depends-on): Likewise.
23205
23206         mknod: be more vocal about danger of running tests as root
23207         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
23208         root, since that is just asking for problems.
23209         Suggested by Bruno Haible, based on a report by Rainer Tammer.
23210
23211         readlinkat: split into its own module
23212         * modules/symlinkat: Split readlinkat...
23213         * modules/readlinkat: ...into separate module.
23214         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
23215         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
23216         * lib/symlinkat.c (readlinkat): Move...
23217         * lib/readlinkat.c: ...into new file.
23218         * modules/symlinkat-tests: Split readlinkat test...
23219         * modules/readlinkat-tests: ...into separate module.
23220         * tests/test-symlinkat.c: Split...
23221         * tests/test-readlinkat.c: ...into new file.
23222         * NEWS: Document the split.
23223         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
23224         * lib/unistd.in.h (readlinkat): Likewise.
23225         Suggested by Bruno Haible.
23226
23227 2010-08-08  Bruno Haible  <bruno@clisp.org>
23228
23229         memxfrm: Speed up.
23230         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
23231         that usually only one call to strxfrm is necessary for each string
23232         part.
23233         Reported by Paul Eggert <eggert@cs.ucla.edu>.
23234
23235 2010-08-07  Karl Berry  <karl@gnu.org>
23236
23237         * doc/posix-headers/limits.texi,
23238         * doc/posix-functions/malloc.texi,
23239         * doc/posix-functions/strsignal.texi: missing @item.
23240         * doc/ld-version-script.texi: spurious leading i.
23241         * doc/regex.texi (Interval Operators): no commas inside @var.
23242
23243 2010-08-01  Bruno Haible  <bruno@clisp.org>
23244
23245         Integrate the regex documentation.
23246         * doc/gnulib.texi: Define 'cn' index.
23247         (Regular expressions): New a chapter that includes regex.texi and
23248         regexprops-generic.texi.
23249         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
23250         syntax.
23251
23252         Whitespace cleanup.
23253         * doc/regex.texi: Remove trailing spaces.
23254
23255         Add regex documentation.
23256         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
23257         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
23258         Written by Kathy A. Hargreaves and Karl Berry.
23259
23260 2010-08-01  Bruno Haible  <bruno@clisp.org>
23261
23262         link: Update documentation.
23263         * doc/posix-functions/link.texi: Update regarding Solaris.
23264
23265 2010-07-31  Bruno Haible  <bruno@clisp.org>
23266
23267         Update modules list.
23268         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
23269         (String handling <string.h>): Add memcmp2, memxfrm.
23270         (Container data structures): Add xlist, xsublist, xoset.
23271         (Core language properties): Add alignof, unused-parameter.
23272         (Process control, Numeric conversion functions <stdlib.h>): Renamed
23273         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
23274         (Unibyte characters <ctype.h>): New section.
23275         (String handling <string.h>): New section.
23276         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
23277         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
23278         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
23279         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
23280         tan, tanh, tanl, y0, y1, yn.
23281         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
23282         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
23283         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
23284         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
23285         unlockpt, vdprintf, vdprintf-posix.
23286         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
23287         (File system functions): Add concat-filename, sys_file, sys_ioctl,
23288         xconcat-filename.
23289         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
23290         getdtablesize, pipe2, pipe2-safer.
23291         (Security): New section.
23292         (Networking functions): Add accept4.
23293         (Signal handling): Add sigpipe.
23294         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
23295         mbmemcasecoll.
23296         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
23297         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
23298         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
23299         pipe-filter-ii.
23300         (Misc): Add argp-version-etc, login_tty, parse-duration.
23301
23302 2010-07-31  Bruno Haible  <bruno@clisp.org>
23303
23304         Improve doc in MODULES.html.
23305         * modules/linkat (Description): Add the word "function".
23306         * modules/mkfifo (Description): Likewise.
23307         * modules/mknod (Description): Likewise.
23308         * modules/remove (Description): Likewise.
23309         * modules/renameat (Description): Likewise.
23310         * modules/stat (Description): Likewise.
23311         * modules/symlink (Description): Likewise.
23312         * modules/unlink (Description): Likewise.
23313
23314 2010-07-31  Bruno Haible  <bruno@clisp.org>
23315
23316         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
23317         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
23318         option --enable/disable-c++ instead of --enable/disable-cxx.
23319         * NEWS: Mention the change.
23320
23321 2010-07-31  Bruno Haible  <bruno@clisp.org>
23322
23323         readlink, areadlink: Relax test a bit.
23324         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
23325         alternative to ENOTDIR.
23326         * tests/test-areadlink.h (test_areadlink): Likewise.
23327         Reported by Rainer Tammer.
23328
23329 2010-07-31  Bruno Haible  <bruno@clisp.org>
23330
23331         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
23332         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
23333         character, perform the search using U_STRCHR.
23334         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
23335         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
23336         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
23337         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
23338         Suggested by Paolo Bonzini.
23339
23340 2010-07-31  Bruno Haible  <bruno@clisp.org>
23341
23342         unistr/u*-strstr: Fix dependencies.
23343         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
23344         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
23345         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
23346
23347 2010-07-31  Bruno Haible  <bruno@clisp.org>
23348
23349         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
23350         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
23351         the beginning of the loop.
23352         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
23353         cases in 'switch' statement.
23354
23355         unistr/u8-strchr: Fix several bugs.
23356         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
23357         the string. When not found, return NULL, not a pointer near the end.
23358
23359         More tests for unistr/u8-strchr.
23360         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
23361         that the function does not read past the first occurrence of the byte
23362         being searched.
23363         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
23364         * tests/unistr/test-u16-strchr.c (main): New function.
23365         * tests/unistr/test-u32-strchr.c (main): New function.
23366
23367 2010-07-31  Bruno Haible  <bruno@clisp.org>
23368
23369         posix-modules: Ignore backup files of documentation files.
23370         * posix-modules: grep only through files named *.texi.
23371
23372 2010-07-31  Bruno Haible  <bruno@clisp.org>
23373
23374         symlinkat: Fix documentation.
23375         * doc/posix-functions/readlinkat.texi: Fix module name.
23376
23377 2010-07-31  Bruno Haible  <bruno@clisp.org>
23378
23379         fchownat: Replace also when chown has the trailing slash bug.
23380         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
23381         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
23382         introduced on 2010-04-10.
23383         Reported by Rainer Tammer.
23384
23385 2010-07-31  Bruno Haible  <bruno@clisp.org>
23386
23387         linkat: Work around AIX 7.1 bug.
23388         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
23389         whether linkat handles trailing slash correctly. If not, replace linkat
23390         and define LINKAT_TRAILING_SLASH_BUG.
23391         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
23392         check whether (fd1,file1) points to a directory if file1 or file2 ends
23393         in a slash. Code taken from lib/link.c.
23394         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
23395         Reported by Rainer Tammer.
23396
23397 2010-07-31  Bruno Haible  <bruno@clisp.org>
23398
23399         Correctly determine whether pow is available in libc on AIX 7 with xlc.
23400         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
23401         This disables an xlc optimization that was causing wrong test results.
23402         Reported by Rainer Tammer.
23403
23404 2010-07-31  Bruno Haible  <bruno@clisp.org>
23405
23406         iconv: Work around AIX 6.1..7.1 bug.
23407         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
23408         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
23409         cross-compiling, guess no on all versions of AIX.
23410         Reported by Rainer Tammer.
23411
23412 2010-07-31  Bruno Haible  <bruno@clisp.org>
23413
23414         readlink: Relax test a bit.
23415         * tests/test-readlink.h (test_readlink): Allow different errno value
23416         when readlink is called with a file name that ends in / and refers to
23417         a file.
23418         Suggested by Eric Blake.
23419         Reported by Rainer Tammer.
23420
23421 2010-07-31  Bruno Haible  <bruno@clisp.org>
23422
23423         copysign: Does not require -lm on glibc systems.
23424         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
23425         gl_COMMON_DOUBLE_MATHFUNC.
23426         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
23427
23428 2010-07-31  Bruno Haible  <bruno@clisp.org>
23429
23430         duplocale: Work around AIX 7.1 bug.
23431         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
23432         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
23433         * lib/duplocale.c (rpl_duplocale): Update comment.
23434         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
23435         Reported by Rainer Tammer.
23436
23437 2010-07-30  Bruno Haible  <bruno@clisp.org>
23438
23439         dirfd: Avoid link error on AIX 7.1.
23440         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
23441         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
23442         exist, set REPLACE_DIRFD.
23443         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
23444         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
23445         * doc/posix-functions/dirfd.texi: Update.
23446         Reported by Rainer Tammer.
23447
23448 2010-07-30  Eric Blake  <eblake@redhat.com>
23449
23450         strtod: next round of AIX fixes
23451         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
23452         exponent.
23453         * tests/test-strtod.c (main): Enhance tests.
23454         * doc/posix-functions/strtod.texi (strtod): Document next bug.
23455         Reported by Rainer Tammer.
23456
23457         futimens: fix configure check
23458         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
23459         Reported by Bruno Haible.
23460
23461 2010-07-30  Bruno Haible  <bruno@clisp.org>
23462
23463         getline: Update regarding AIX.
23464         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
23465         Reported by Rainer Tammer.
23466
23467 2010-07-30  Bruno Haible  <bruno@clisp.org>
23468
23469         wcwidth: Drop replacement on AIX 7.
23470         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
23471         AIX 7.
23472         Reported by Rainer Tammer.
23473
23474 2010-07-30  Bruno Haible  <bruno@clisp.org>
23475
23476         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
23477         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
23478         a 'char *'.
23479         Reported by Rainer Tammer.
23480
23481 2010-07-30  Bruno Haible  <bruno@clisp.org>
23482
23483         unlink: Update regarding AIX.
23484         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
23485         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
23486         Reported by Rainer Tammer.
23487
23488 2010-07-30  Bruno Haible  <bruno@clisp.org>
23489
23490         symlink: Update regarding AIX.
23491         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
23492         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
23493         Reported by Rainer Tammer.
23494
23495 2010-07-30  Bruno Haible  <bruno@clisp.org>
23496
23497         strndup: Update regarding AIX.
23498         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
23499         AIX 7.
23500         Reported by Rainer Tammer.
23501
23502 2010-07-30  Bruno Haible  <bruno@clisp.org>
23503
23504         stat: Update regarding AIX.
23505         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
23506         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
23507         Reported by Rainer Tammer.
23508
23509 2010-07-30  Bruno Haible  <bruno@clisp.org>
23510
23511         truncl: Fix autoconf test.
23512         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
23513         whether truncl works.
23514         Reported by Rainer Tammer.
23515
23516 2010-07-30  Bruno Haible  <bruno@clisp.org>
23517
23518         round: Update regarding AIX.
23519         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
23520         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
23521         Reported by Rainer Tammer.
23522
23523 2010-07-30  Bruno Haible  <bruno@clisp.org>
23524
23525         rename: Update regarding AIX.
23526         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
23527         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
23528         Reported by Rainer Tammer.
23529
23530 2010-07-30  Bruno Haible  <bruno@clisp.org>
23531
23532         printf.m4: Update regarding AIX.
23533         * m4/printf.m4: Update comments regarding AIX.
23534         Reported by Rainer Tammer.
23535
23536 2010-07-30  Bruno Haible  <bruno@clisp.org>
23537
23538         iconv: Update regarding AIX.
23539         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
23540         AIX 7.
23541         Reported by Rainer Tammer.
23542
23543 2010-07-30  Bruno Haible  <bruno@clisp.org>
23544
23545         getopt: Update regarding AIX.
23546         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
23547         no on AIX.
23548         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
23549         Reported by Rainer Tammer.
23550
23551 2010-07-30  Bruno Haible  <bruno@clisp.org>
23552
23553         ldexpl; Update regarding AIX.
23554         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
23555         on AIX 7.
23556         Reported by Rainer Tammer.
23557
23558 2010-07-30  Bruno Haible  <bruno@clisp.org>
23559
23560         frexpl: Update regarding AIX.
23561         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
23562         on AIX 7.
23563         Reported by Rainer Tammer.
23564
23565 2010-07-30  Bruno Haible  <bruno@clisp.org>
23566
23567         open, fopen: Update regarding AIX.
23568         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
23569         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
23570         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
23571         * doc/posix-functions/fopen.texi: Likewise.
23572         Reported by Rainer Tammer.
23573
23574 2010-07-30  Bruno Haible  <bruno@clisp.org>
23575
23576         chown: Update doc regarding AIX.
23577         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
23578         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
23579         Reported by Rainer Tammer.
23580
23581 2010-07-30  Eric Blake  <eblake@redhat.com>
23582
23583         strtod: fix bug in replacement function on AIX
23584         * lib/strtod.c (strtod): Special case broken "0x" parse in
23585         underlying strtod.
23586         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
23587         * doc/posix-functions/strtod.texi (strtod): Likewise.
23588         Reported by Rainer Tammer.
23589
23590 2010-07-30  Bruno Haible  <bruno@clisp.org>
23591
23592         mbrlen: Fix cross-compilation guess for AIX.
23593         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
23594         guess. Leftover from 2008-12-22.
23595
23596 2010-07-30  Bruno Haible  <bruno@clisp.org>
23597
23598         mbrtowc: Fix cross-compilation guess for AIX.
23599         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
23600         guess. Leftover from 2008-12-21.
23601
23602 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
23603
23604         init.sh: work around trap limitation of some shells
23605         * tests/init.sh (setup_): Move exit trap outside of shell function.
23606
23607 2010-07-29  Eric Blake  <eblake@redhat.com>
23608
23609         strtod: aid debugging
23610         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
23611         understanding why strtod is rejected.
23612
23613 2010-07-28  Bruno Haible  <bruno@clisp.org>
23614
23615         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
23616         * lib/unistr/u8-chr.c: Include <string.h>.
23617         * tests/unistr/test-u8-chr.c: Likewise.
23618         * tests/unistr/test-u16-chr.c: Likewise.
23619         * tests/unistr/test-u32-chr.c: Likewise.
23620         * tests/unistr/test-u8-strchr.c: Likewise.
23621         * tests/unistr/test-u16-strchr.c: Likewise.
23622         * tests/unistr/test-u32-strchr.c: Likewise.
23623         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
23624         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
23625         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
23626         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
23627
23628 2010-07-28  Bruno Haible  <bruno@clisp.org>
23629
23630         Use spaces for indentation, not tabs.
23631         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
23632
23633 2010-07-27  Bruno Haible  <bruno@clisp.org>
23634
23635         mbspcasecmp: Fix function specification.
23636         * lib/string.in.h (mbspcasecmp): Fix specification comment.
23637         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
23638         Reported by Eric Blake <eblake@redhat.com>.
23639
23640 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
23641
23642         timespec: use cast and not conditional, as truncation isn't possible
23643         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
23644         instead of a conditional.  Comment about the situation in more detail.
23645         This undoes most of the 2009-10-29 patch.
23646
23647 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
23648
23649         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
23650         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
23651         * lib/unistr/u8-strchr.c: Likewise.
23652         * modules/unistr/u8-chr: Depend on memchr.
23653
23654         unistr/u*-strchr: add tests
23655         * modules/unistr/u8-strchr-tests: New file.
23656         * modules/unistr/u16-strchr-tests: New file.
23657         * modules/unistr/u32-strchr-tests: New file.
23658         * tests/unistr/test-strchr.h: New file.
23659         * tests/unistr/test-u8-strchr.c: New file.
23660         * tests/unistr/test-u16-strchr.c: New file.
23661         * tests/unistr/test-u32-strchr.c: New file.
23662
23663         unistr/u*-chr: test multibyte sequences more
23664         * tests/unistr/test-chr.h: Do complete testing of the characters in the
23665         test vector.
23666         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
23667         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
23668         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
23669
23670         unistr/u*-chr: test multibyte sequences
23671         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
23672
23673         unistr/u*-chr: prepare for multibyte tests
23674         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
23675         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
23676         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
23677         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
23678         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
23679         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
23680
23681 2010-07-18  Bruno Haible  <bruno@clisp.org>
23682
23683         unistr/u8-strchr: Optimize non-ASCII argument case.
23684         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
23685         because the first byte often matches anyway.
23686         Reported by Pádraig Brady <P@draigbrady.com>.
23687
23688 2010-07-15  Karl Berry  <karl@gnu.org>
23689
23690         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
23691
23692 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
23693
23694         getcwd: on Solaris, work better if ancestors are inaccessible
23695         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
23696         buffer and size, try again with a large buffer.  This works better
23697         on Solaris, since its getcwd succeeds even if the path to the root
23698         is inaccessible, and this is helpful in common cases such as .zfs
23699         hidden directories.  Problem reported by J Chapman Flack in
23700         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
23701         Use system getcwd if it's declared, not merely if it's partly
23702         working; use the partly-working test only to avoid needless effort
23703         if the system getcwd fails.
23704         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
23705         comment that was already obsolete and is now even more obsolete.
23706         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
23707         now might call strdup.
23708
23709 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
23710
23711         pthread: Add enough so that coreutils/src/sort.c compiles.
23712         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
23713         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
23714         gnulib. Include <sched.h> and <time.h>, as per POSIX.
23715         Include <sys/types.h>, in case it defines pthread_t.
23716         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
23717         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
23718         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
23719         (pthread_rwlockattr_t, pthread_spinlock_t):
23720         New typedefs, if HAVE_PTHREAD_T is not defined.
23721         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
23722         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
23723         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
23724         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
23725         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
23726         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
23727         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
23728         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
23729         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
23730         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
23731         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
23732         New macros.
23733         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
23734         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
23735         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
23736         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
23737         (pthread_spin_unlock): New dummy functions.
23738         (pthread_create): Return EAGAIN; don't set errno.
23739         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
23740         require AC_C_INLINE.
23741         * modules/pthread (Depends-on): Add sched, time.
23742         (pthread.h): Use AM_V_GEN.
23743
23744 2010-07-13  Bruno Haible  <bruno@clisp.org>
23745
23746         striconveh: Don't malloc memory if the result buffer is sufficient.
23747         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
23748         buffer if its size is sufficient.
23749         Reported by Ludovic Courtès <ludo@gnu.org>.
23750
23751 2010-07-13  Bruno Haible  <bruno@clisp.org>
23752
23753         strtod: Add safety check.
23754         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
23755
23756 2010-07-12  Bruno Haible  <bruno@clisp.org>
23757
23758         Unify tests that set gl_cv_func_ldexpl_no_libm.
23759         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
23760         gl_FUNC_LDEXPL.
23761         (gl_FUNC_LDEXPL): Invoke it.
23762         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23763
23764 2010-07-12  Bruno Haible  <bruno@clisp.org>
23765
23766         Unify tests that set gl_cv_func_ldexp_no_libm.
23767         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
23768         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
23769         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
23770         (configure.ac): Simply invoke gl_FUNC_LDEXP.
23771         * modules/strtod (Files): Add m4/ldexp.m4.
23772
23773 2010-07-12  Bruno Haible  <bruno@clisp.org>
23774
23775         Unify tests that set gl_cv_func_frexpl_no_libm.
23776         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
23777         gl_FUNC_FREXPL_NO_LIBM.
23778         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
23779         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23780
23781 2010-07-12  Bruno Haible  <bruno@clisp.org>
23782
23783         Unify tests that set gl_cv_func_frexp_no_libm.
23784         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
23785         gl_FUNC_FREXP_NO_LIBM.
23786         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
23787         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
23788
23789 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
23790
23791         memcoll: clarify sizes versus lengths, document better, and tweak perf
23792         * lib/memcoll.c (strcoll_loop, memcoll0):
23793         Improve quality of descriptive comments.  Name variables
23794         consistently as to whether they are lengths (which do not include
23795         terminating null) versus sizes (which do).
23796         * lib/xmemcoll.c (xmemcoll0): Likewise.
23797         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
23798         returned when s1size == 0; this is easier to compile and saves
23799         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
23800
23801 2010-07-12  Bruno Haible  <bruno@clisp.org>
23802
23803         Tests for module '_Exit'.
23804         * modules/_Exit-tests: New file.
23805         * tests/test-_Exit.sh: New file.
23806         * tests/test-_Exit.c: New file.
23807
23808         New module '_Exit'.
23809         * lib/stdlib.in.h (__attribute__): New macro.
23810         (_Exit): New declaration.
23811         * lib/_Exit.c: New file.
23812         * m4/_Exit.m4: New file.
23813         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
23814         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
23815         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
23816         * modules/_Exit: New file.
23817         * tests/test-stdlib-c++.cc (_Exit): Check signature.
23818         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
23819
23820 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
23821
23822         strtod: make it more-accurate typically, and don't require libm
23823         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
23824         Include limits.h.  Don't include string.h.
23825         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
23826         (locale_isspace): New function, so that no casts are needed to
23827         check whether *s is a space.
23828         (ldexp): Provide an unused dummy if not available.
23829         (scale_radix_exp, parse_number, underlying_strtod): New functions.
23830         (strtod): Use them.  This implementation prefers to use the
23831         underlying strtod if available, falling back on our own code
23832         only to fix known bugs.  This is more likely to produce an
23833         accurate result.  Also, it avoids the use of libm functions.
23834         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
23835         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
23836         was absent, but it caused a test failure with coreutils.
23837         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
23838         with libm.
23839         * modules/strtod (Makefile.am, Link): libm is no longer needed.
23840         * modules/strtod-tests (Makefile.am): Likewise.
23841
23842 2010-07-11  Pádraig Brady  <P@draigBrady.com>
23843             Bruno Haible  <bruno@clisp.org>
23844
23845         unistr/u8-strchr: Optimize ASCII argument case.
23846         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
23847
23848 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
23849
23850         (x)memcoll: minor tweaks
23851         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
23852         is after the type that it qualifies.
23853         (memcoll0): Likewise.
23854         * lib/memcoll.h (memcoll0): Likewise.
23855         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
23856         * lib/xmemcoll.h (xmemcoll0): Likewise.
23857         * lib/memcoll.c (memcoll0): Correct the comment.  This function
23858         differs from memcoll in that the NUL byte is part of the argument.
23859         Omit the abort-checks, as performance is a real issue here.  Plus,
23860         the checks were wrong anyway (an off-by-one error).  Omit local
23861         variable 'diff', as it's a bit clearer that way.
23862         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
23863         no longer needed.
23864
23865 2010-07-08  Chen Guo <chenguo4@yahoo.com>
23866
23867         (x)memcoll: speedup when input is known to be NUL delimited
23868         * lib/memcoll.c: Include stdlib.
23869         (memcoll0): New function.
23870         (strcoll_loop): New function, refactored for use in both memcoll
23871         and memcoll0.
23872         * lib/memcoll.h (memcoll0): Add prototype.
23873         * lib/xmemcoll.c (xmemcoll0): New function.
23874         (collate_error): New function, refactored for use in both xmemcoll
23875         and xmemcoll0.
23876         * lib/xmemcoll.h (xmemcoll0): Add prototype.
23877         * m4/memcoll.m4: add inline invocation.
23878
23879 2010-07-06  Pádraig Brady  <P@draigBrady.com>
23880
23881         * build-aux/bootstrap: Remove any local translations
23882         from the translation project synchronization directory,
23883         so that local only translations are not distributed.
23884
23885 2010-07-04  Bruno Haible  <bruno@clisp.org>
23886
23887         fsusage: Clarify which code applies to which platforms.
23888         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
23889         platform.
23890         * lib/fsusage.c (get_fs_usage): Likewise.
23891
23892 2010-07-04  Bruno Haible  <bruno@clisp.org>
23893
23894         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
23895         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
23896         Reported by Martin Lambers <marlam@marlam.de>.
23897
23898 2010-07-04  Jim Meyering  <meyering@redhat.com>
23899
23900         hash: once again explicitly disallow insertion of NULL
23901         * lib/hash.c (hash_insert0): Reinstate just-removed test:
23902         inserting a NULL pointer cannot work with these functions.
23903         Add a comment with details.
23904         This reverts part of the 2010-07-01 commit, 5bef1a35
23905         "hash: extend module to deal with non-pointer keys".
23906
23907 2010-07-01  Bruno Haible  <bruno@clisp.org>
23908
23909         stdbool: Update doc.
23910         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
23911         Info from Christian Weisgerber <naddy@mips.inka.de>.
23912
23913 2010-07-01  Jim Meyering  <meyering@redhat.com>
23914
23915         hash: extend module to deal with non-pointer keys
23916         * lib/hash.c (hash_insert0): New interface, much like hash_insert
23917         but that allows insertion of non-pointer entries.
23918         Do not disallow an ENTRY value of NULL.
23919         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
23920         * lib/hash.h (hash_insert0): Declare.
23921
23922 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
23923
23924         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
23925         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
23926         not present (i.e. with autoconf 2.59 and when using gettextize, not
23927         gnulib), require AC_GNU_SOURCE instead.
23928
23929 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
23930
23931         idpriv-drop: Fix tests.
23932         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
23933         not to the test-idpriv-droptemp program.
23934
23935 2010-06-29  Bruno Haible  <bruno@clisp.org>
23936
23937         string: Fix syntax error with g++ 2.96.
23938         * lib/string.in.h (__pure__): Remove definition.
23939         (_GL_ATTRIBUTE_PURE): New macro.
23940         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
23941         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
23942         Reported by Christian Weisgerber <naddy@mips.inka.de>.
23943
23944 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
23945
23946         unitypes: Fix bug introduced on 2010-05-18.
23947         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
23948
23949 2010-06-22  Eric Blake  <eblake@redhat.com>
23950
23951         memmem: slight optimization
23952         * lib/str-two-way.h (critical_factorization): Update comments.
23953         Reduce work during factorization phase.
23954         Reported by Carlos Bueno <carlos@bueno.org>.
23955
23956 2010-06-21  Bruno Haible  <bruno@clisp.org>
23957
23958         Fix HAVE_CALLOC_POSIX misnomer.
23959         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
23960         !HAVE_CALLOC_POSIX.
23961         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
23962         HAVE_CALLOC_POSIX.
23963         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
23964         instead of HAVE_CALLOC_POSIX.
23965         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
23966         HAVE_CALLOC_POSIX.
23967
23968         Use modern idiom for calloc() replacement.
23969         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
23970         AC_FUNC_CALLOC.
23971         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
23972         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
23973         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23974         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
23975         (gl_REPLACE_CALLOC): New macro.
23976
23977 2010-06-21  Bruno Haible  <bruno@clisp.org>
23978
23979         Fix HAVE_REALLOC_POSIX misnomer.
23980         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
23981         !HAVE_REALLOC_POSIX.
23982         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
23983         HAVE_REALLOC_POSIX.
23984         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
23985         instead of HAVE_REALLOC_POSIX.
23986         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
23987         HAVE_REALLOC_POSIX.
23988
23989         Use modern idiom for realloc() replacement.
23990         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
23991         AC_FUNC_REALLOC.
23992         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
23993         Autoconf's AC_FUNC_REALLOC.
23994         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
23995         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
23996         (gl_REPLACE_REALLOC): New macro.
23997         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
23998
23999 2010-06-21  Bruno Haible  <bruno@clisp.org>
24000
24001         Fix HAVE_MALLOC_POSIX misnomer.
24002         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
24003         !HAVE_MALLOC_POSIX.
24004         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
24005         HAVE_MALLOC_POSIX.
24006         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
24007         instead of HAVE_MALLOC_POSIX.
24008         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
24009         HAVE_MALLOC_POSIX.
24010
24011         Use modern idiom for malloc() replacement.
24012         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
24013         AC_FUNC_MALLOC.
24014         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
24015         Autoconf's AC_FUNC_MALLOC.
24016         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
24017         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
24018         (gl_REPLACE_MALLOC): New macro.
24019         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
24020
24021 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
24022
24023         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
24024         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
24025         This macro takes 3 arguments, not 4.
24026
24027 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
24028
24029         ipv6: fix detection under mingw
24030         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
24031         in6_addr.
24032
24033 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
24034
24035         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
24036         that strtod() works when cross-compiling to a glibc version known
24037         to work.
24038
24039 2010-06-15  Bruno Haible  <bruno@clisp.org>
24040
24041         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
24042
24043 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
24044
24045         select: Correct timeout.
24046         * lib/select.c (rpl_select): Compute wait_timeout correctly.
24047
24048 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
24049
24050         git-version-gen: init shell var to avoid env var influence
24051         * build-aux/git-version-gen (v): Init shell var to empty.
24052
24053 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
24054
24055         priv-set: Don't assume that priv.h exists merely because getppriv does.
24056         See Jan Andersen's bug report about AIX 5L in
24057         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
24058         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
24059         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
24060         * lib/priv-set.h: Likewise.
24061         * tests/test-priv-set.c: Likewise.
24062
24063 2010-06-13  Bruno Haible  <bruno@clisp.org>
24064
24065         relocatable: Make it easier to test whether to install wrappers.
24066         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
24067         RELOCATABLE_VIA_WRAPPER.
24068
24069 2010-06-13  Bruno Haible  <bruno@clisp.org>
24070
24071         gnulib-tool: Display specified modules and dependencies differently.
24072         * gnulib-tool (func_show_module_list): New function.
24073         (func_import, func_create_testdir): Invoke it.
24074         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
24075
24076 2010-06-13  Bruno Haible  <bruno@clisp.org>
24077
24078         gnulib-tool: Align code of func_import and func_create_testdir.
24079         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
24080         specified_modules.
24081
24082 2010-06-12  Jim Meyering  <meyering@redhat.com>
24083
24084         test-inttostr: avoid spurious failure on Solaris 9
24085         * tests/test-inttostr.c (main): Skip the test when snprintf fails
24086         to accept "%ju".  Reported by Bruno Haible.
24087
24088 2010-06-11  Jim Meyering  <meyering@redhat.com>
24089
24090         test-sys_socket: mark variables as used more readably
24091         * tests/test-sys_socket.c (main): Mark otherwise unused variables
24092         as "used" explicitly via (void) statement casts.  This is more
24093         readable than using them in an artificial return expression.
24094         Suggestion from Bruno Haible.
24095
24096 2010-06-11  Bruno Haible  <bruno@clisp.org>
24097
24098         Avoid some more warnings from "gcc -Wwrite-strings".
24099         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
24100         to 'const char *'.
24101         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
24102         * tests/test-c-strcasestr.c (main): Likewise.
24103         * tests/test-mbscasestr1.c (main): Likewise.
24104         * tests/test-mbscasestr2.c (main): Likewise.
24105         * tests/test-memmem.c (main): Likewise.
24106         * tests/test-strstr.c (main): Likewise.
24107         * tests/test-strcasestr.c (main): Likewise.
24108
24109 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24110
24111         init.sh: change framework_failure_ to fail with status 99, not 1
24112         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
24113         automake's parallel-tests rule that this is an unexpected failure,
24114         even if the test is listed in XFAIL_TESTS.
24115
24116 2010-06-11  Jim Meyering  <meyering@redhat.com>
24117
24118         test-inttostr: avoid warnings about 4-6KB literal strings
24119         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
24120         Include "macros.h", for its definition of ASSERT.
24121         (CK): s/assert/ASSERT/
24122         * modules/inttostr-tests (Files): Add macros.h.
24123
24124         init.sh: don't use $ME_ or skip_ before they are defined
24125         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
24126         their first uses.  Also hoist their companions: warn_, fail_,
24127         framework_failure_, $stderr_fileno.  Prompted by a patch from
24128         Stefano Lattarini.
24129
24130         test-sys_socket: avoid set-but-not-used warnings from gcc
24131         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
24132         avoid warning about set-but-not-used variables.
24133
24134         test-xvasprintf: avoid 'const' discard warnings
24135         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
24136         "const" when assigning from literal strings.
24137         (test_xasprintf): Add "void" in function argument list to placate
24138         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
24139
24140         tests: avoid compilation warnings in argmatch and exclude tests...
24141         in packages that define ARGMATCH_DIE_DECL, like coreutils.
24142         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
24143         Since it always exits, declare with the "noreturn" attribute.
24144         * tests/test-argmatch.c: Likewise.
24145
24146         tests: avoid 'const' discard warnings in mbsstr tests
24147         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
24148         * tests/test-mbsstr2.c (main): Likewise.
24149
24150         test-verify: avoid warning from gcc's -Wmissing-declarations
24151         * tests/test-verify.c (function): Declare to be static.
24152
24153         test-inttostr.c: include <string.h> for use of strcmp
24154         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
24155
24156         test-linkat: avoid failed assertion on "other" architectures
24157         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
24158         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
24159         sparc: https://bugs.launchpad.net/bugs/591968
24160
24161 2010-06-11  Jim Meyering  <meyering@redhat.com>
24162
24163         printf.m4: avoid autoconf's "Expanded Before Required" warning
24164         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
24165         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
24166         autoconf warning.
24167
24168 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
24169
24170         Replacement header templates are now named with ".in", not "_".
24171         * doc/gnulib-intro.texi: Correct.
24172
24173 2010-06-10  Jim Meyering  <meyering@redhat.com>
24174
24175         inttostr-tests: depend on snprintf, not snprintf-posix
24176         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
24177         snprintf-posix, to avoid this aclocal failure:
24178           missing file gnulib-tests/vasnprintf.c
24179           configure.ac:45: error: expected source file, required through \
24180           AC_LIBSOURCES, not found
24181
24182 2010-06-10  Jim Meyering  <meyering@redhat.com>
24183
24184         inttostr: add a new function, inttostr, and tests
24185         The namesake function was not available.  The existence of the
24186         template file, inttostr.c makes its addition nontrivial.
24187         * lib/anytostr.c: Rename from inttostr.c.
24188         (anytostr): Rename from inttostr.
24189         * lib/inttostr.c: New file.
24190         * modules/inttostr (Files): Add anytostr.c.
24191         (Makefile.am): Set lib_SOURCES instead of ...
24192         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
24193         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
24194         * lib/offtostr.c: Likewise.
24195         * lib/uinttostr.c: Likewise.
24196         * lib/umaxtostr.c: Likewise.
24197         * modules/inttostr-tests: New file.
24198         * tests/test-inttostr.c: New file.  Test these functions.
24199
24200 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
24201             Bruno Haible  <bruno@clisp.org>
24202
24203         Add "Extending Gnulib" chapter to manual.
24204         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
24205         chapter.
24206         (Extending Gnulib): New chapter.
24207         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
24208         chapter.
24209
24210 2010-06-09  Bruno Haible  <bruno@clisp.org>
24211
24212         Avoid relocwrapper link errors due to gnulib replacement functions.
24213         * lib/areadlink.c: Use the system's malloc, realloc functions.
24214         (areadlink): Set errno to ENOMEM explicitly.
24215         * modules/areadlink (Depends-on): Remove malloc-posix.
24216         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24217
24218 2010-06-09  Bruno Haible  <bruno@clisp.org>
24219
24220         Avoid relocwrapper link errors due to gnulib replacement functions.
24221         * lib/canonicalize-lgpl.c: Use the system's malloc function.
24222         * lib/malloca.c: Likewise.
24223         * lib/relocatable.c: Likewise.
24224         * lib/progreloc.c: Use the system's malloc, sprintf functions.
24225         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
24226         * lib/setenv.c: Use the system's malloc, realloc functions.
24227         * lib/strerror.c: Use the system's sprintf function.
24228         Reported by Ben Pfaff <blp@cs.stanford.edu>.
24229
24230 2010-06-04  Bruno Haible  <bruno@clisp.org>
24231
24232         Prefer documented low-level autoconf macro names.
24233         * m4/lib-link.m4: Use m4_translit instead of translit.
24234         * m4/environ.m4: Likewise.
24235         * m4/mathfunc.m4: Likewise.
24236         * m4/onceonly.m4: Likewise.
24237         * m4/stdint.m4: Likewise.
24238         Suggested by Eric Blake.
24239
24240 2010-06-04  Martin Lambers  <marlam@marlam.de>
24241             Bruno Haible  <bruno@clisp.org>
24242
24243         havelib: Allow library names with '+' characters.
24244         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
24245         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
24246
24247 2010-06-09  Bruno Haible  <bruno@clisp.org>
24248
24249         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
24250         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
24251         realloc failed.
24252
24253 2010-06-08  Peter Simons  <simons@cryp.to>
24254
24255         maint.mk: make the news-check rule more configurable
24256         * top/maint.mk (news-check-lines-spec): New variable.
24257         (news-check): Use "sed -n 1,10p" in place of "head".
24258
24259 2010-06-07  Jim Meyering  <meyering@redhat.com>
24260
24261         do-release-commit-and-tag: fix typo in --help
24262         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
24263
24264         regex: avoid new dead-code warning with gcc-4.6.0
24265         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
24266         if-block containing a while-loop.  It's been unused for at least
24267         5 years.
24268
24269 2010-06-05  Bruno Haible  <bruno@clisp.org>
24270
24271         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
24272         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
24273
24274 2010-06-04  Bruno Haible  <bruno@clisp.org>
24275
24276         Update to GNU gettext 0.18.1.
24277         * modules/gettext (configure.ac): Require gettext infrastructure from
24278         version 0.18.1.
24279
24280 2010-06-03  Bruno Haible  <bruno@clisp.org>
24281
24282         Don't use AC_LIBOBJ with file names in subdirectories.
24283         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
24284         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
24285         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
24286         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
24287         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
24288         gl_LIBUNISTRING_LIBSOURCE.
24289         (Makefile.am): Augment lib_SOURCES here, conditionally.
24290         * NEWS: Drop requirement for Automake option 'subdir-objects'.
24291
24292 2010-06-03  Bruno Haible  <bruno@clisp.org>
24293
24294         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
24295         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
24296         expansion does not end with a newline.
24297         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
24298         unnecessary newline.
24299
24300 2010-06-03  Bruno Haible  <bruno@clisp.org>
24301
24302         Reduce dependencies.
24303         * tests/test-quotearg.h: New file, extracted from
24304         tests/test-quotearg.c.
24305         * tests/test-quotearg-simple.c: New file, extracted from
24306         tests/test-quotearg.c.
24307         * tests/test-quotearg.c: Don't include <ctype.h>.
24308         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
24309         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
24310         use_quote_double_quotes, use_quotearg_colon): Moved to
24311         tests/test-quotearg.h.
24312         (results_g, flag_results, custom_quotes, custom_results): Moved
24313         to tests/test-quotearg-simple.c.
24314         (main): Moved the part that does not depend on gettext to
24315         tests/test-quotearg-simple.c. Return 77 if the test cannot be
24316         performed.
24317         * modules/quotearg-simple: New file.
24318         * modules/quotearg-simple-tests: New file.
24319         * modules/quotearg (Depends-on): Add quotearg-simple.
24320         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
24321         (Files): Add tests/test-quotearg.h.
24322         Reported by Paolo Bonzini.
24323
24324 2010-06-03  Bruno Haible  <bruno@clisp.org>
24325
24326         Reduce dependencies.
24327         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
24328
24329 2010-06-03  Bruno Haible  <bruno@clisp.org>
24330
24331         time: Undefine more broken macros.
24332         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
24333         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
24334         Reported by Eric Blake.
24335
24336 2010-06-03  Bruno Haible  <bruno@clisp.org>
24337
24338         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
24339         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
24340         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
24341         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
24342         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
24343         Reported by Ludovic Courtès <ludo@gnu.org>.
24344
24345 2010-06-02  Eric Blake  <eblake@redhat.com>
24346
24347         time: work with mingw + pthreads-win32 library
24348         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
24349         if timespec is defined only in pthread.h.
24350         * modules/time (Makefile.am): Substitute it.
24351         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
24352         <pthread.h>, when needed.
24353         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
24354         from the library.
24355
24356 2010-05-31  Bruno Haible  <bruno@clisp.org>
24357
24358         Avoid expanding two macros in the wrong order.
24359         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
24360         gl_LIBUNISTRING if it is defined.
24361         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
24362         autoconf >= 2.64.
24363         Reported by Ludovic Courtès <ludo@gnu.org>.
24364
24365 2010-05-27  Jim Meyering  <meyering@redhat.com>
24366
24367         maint.mk: also prohibit "#undef" of always-defined symbols
24368         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
24369         Allow more than one space before the symbol name.
24370         (sc_prohibit_always-defined_macros): Use grep's -E, now that
24371         the regexp uses alternation.
24372
24373 2010-05-26  Eric Blake  <eblake@redhat.com>
24374
24375         maint.mk: avoid echo -e
24376         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
24377         Convert all uses of echo -* to printf.
24378         Reported by Matthias Bolte.
24379
24380 2010-05-25  Bruno Haible  <bruno@clisp.org>
24381
24382         Update to GNU gettext 0.18, part 2.
24383         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
24384         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
24385
24386 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24387
24388         Add missing include in test-pwrite.c.
24389         * tests/test-pwrite.c: Include string.h, for strcmp.
24390
24391 2010-05-24  Bruno Haible  <bruno@clisp.org>
24392
24393         * NEWS: Mention requirement for Automake option 'subdir-objects'.
24394
24395 2010-05-24  Bruno Haible  <bruno@clisp.org>
24396
24397         Don't use conversion with transliteration in u{8,16,32}_strcoll.
24398         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
24399         iconveh_error argument.
24400         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
24401         U_STRCONV_TO_LOCALE.
24402         * lib/unistr/u16-strcoll.c: Likewise.
24403         * lib/unistr/u32-strcoll.c: Likewise.
24404         * modules/unistr/u8-strcoll (Depends-on): Add
24405         uniconv/u8-strconv-to-enc, localcharset. Remove
24406         uniconv/u8-strconv-to-locale.
24407         (configure.ac): Bump version number.
24408         * modules/unistr/u16-strcoll (Depends-on): Add
24409         uniconv/u16-strconv-to-enc, localcharset. Remove
24410         uniconv/u16-strconv-to-locale.
24411         (configure.ac): Bump version number.
24412         * modules/unistr/u32-strcoll (Depends-on): Add
24413         uniconv/u32-strconv-to-enc, localcharset. Remove
24414         uniconv/u32-strconv-to-locale.
24415         (configure.ac): Bump version number.
24416
24417 2010-05-24  Bruno Haible  <bruno@clisp.org>
24418
24419         Avoid a test failure on NetBSD 5.0.
24420         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
24421         an iconv() bug.
24422
24423 2010-05-24  Bruno Haible  <bruno@clisp.org>
24424
24425         Adjust #include directive style.
24426         * modules/regex (Includes): Recommend to write <regex.h>.
24427
24428 2010-05-24  Bruno Haible  <bruno@clisp.org>
24429
24430         regex: Don't require alloca.
24431         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
24432         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
24433         only inside if (0).
24434
24435 2010-05-23  Jim Meyering  <meyering@redhat.com>
24436
24437         test-renameat.c: include <sys/stat.h>
24438         * tests/test-renameat.c: Include <sys/stat.h>; required for
24439         definition of S_IS* macros.
24440
24441 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
24442
24443         Update maintainer documentation for 'relocatable-prog' module.
24444         * doc/relocatable-maint.texi: Update.
24445         Comments by Bruno Haible.
24446
24447 2010-05-23  Bruno Haible  <bruno@clisp.org>
24448
24449         git-merge-changelog: Enable --split-merged-entry by default.
24450         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
24451         (usage): Don't mention this option any more.
24452         Reported by Ralf Wildenhues.
24453
24454 2010-05-23  Jim Meyering  <meyering@redhat.com>
24455
24456         test-pwrite: do not leave behind a test file named "out"
24457         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
24458         The trivial-looking use of init.sh is really necessary.
24459         It ensures that the temporary file, "out", is created in
24460         a temporary directory, and removed upon termination.
24461         * tests/test-pwrite.sh: Re-add file.
24462         * modules/pwrite-tests: Reference it.
24463
24464 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24465
24466         Fix output redirection buglet in init.sh.
24467         * tests/init.sh: Fix redirection of stderr.
24468
24469 2010-05-20  Simon Josefsson  <simon@josefsson.org>
24470
24471         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
24472
24473 2010-05-17  Simon Josefsson  <simon@josefsson.org>
24474
24475         * modules/valgrind-tests: New file.
24476         * m4/valgrind-tests.m4: New file.
24477         * doc/valgrind-tests.texi: New file.
24478         * doc/gnulib.texi (Running self-tests under valgrind): New
24479         section.
24480
24481 2010-05-19  Bruno Haible  <bruno@clisp.org>
24482
24483         Clean up dead code in recent commit.
24484         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
24485         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
24486         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
24487         Suggested by Paolo Bonzini.
24488
24489 2010-05-19  Bruno Haible  <bruno@clisp.org>
24490
24491         Avoid valgrind error reports from libunistring.
24492         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
24493         * modules/libunistring (Files): Add it.
24494         * modules/libunistring-optional (Files): Likewise.
24495
24496 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
24497             Bruno Haible  <bruno@clisp.org>
24498
24499         New module 'libunistring-optional'.
24500         * modules/libunistring-optional: New file.
24501         * m4/libunistring-base.m4: New file.
24502         * m4/libunistring-optional.m4: New file.
24503         * lib/unicase.in.h: Renamed from lib/unicase.h.
24504         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
24505         * lib/unictype.in.h: Renamed from lib/unictype.h.
24506         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
24507         * lib/uniname.in.h: Renamed from lib/uniname.h.
24508         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
24509         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
24510         * lib/unistr.in.h: Renamed from lib/unistr.h.
24511         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
24512         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
24513         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
24514         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
24515         gl_LIBUNISTRING. If the library was found, determine the installed
24516         version and set LIBUNISTRING_VERSION.
24517         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
24518         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
24519         handle a configuration option --with-included-libunistring.
24520         * modules/libunistring (Files): Add m4/absolute-header.m4.
24521         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
24522         Add m4/libunistring-base.m4.
24523         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24524         (Makefile.am): Build unicase.h from unicase.in.h.
24525         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
24526         Add m4/libunistring-base.m4.
24527         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24528         (Makefile.am): Build uniconv.h from uniconv.in.h.
24529         * modules/unictype/base (Files): Use unictype.in.h instead of
24530         unictype.h. Add m4/libunistring-base.m4.
24531         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24532         (Makefile.am): Build unictype.h from unictype.in.h.
24533         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
24534         Add m4/libunistring-base.m4.
24535         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24536         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
24537         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
24538         Add m4/libunistring-base.m4.
24539         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24540         (Makefile.am): Build uniname.h from uniname.in.h.
24541         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
24542         Add m4/libunistring-base.m4.
24543         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24544         (Makefile.am): Build uninorm.h from uninorm.in.h.
24545         * modules/unistdio/base (Files): Use unistdio.in.h instead of
24546         unistdio.h. Add m4/libunistring-base.m4.
24547         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24548         (Makefile.am): Build unistdio.h from unistdio.in.h.
24549         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
24550         Add m4/libunistring-base.m4.
24551         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24552         (Makefile.am): Build unistr.h from unistr.in.h.
24553         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
24554         Add m4/libunistring-base.m4.
24555         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24556         (Makefile.am): Build unitypes.h from unitypes.in.h.
24557         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
24558         Add m4/libunistring-base.m4.
24559         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24560         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
24561         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
24562         uniwidth.h. Add m4/libunistring-base.m4.
24563         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
24564         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
24565         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
24566         instead of augmenting lib_SOURCES.
24567         * modules/unicase/empty-suffix-context: Likewise.
24568         * modules/unicase/locale-language: Likewise.
24569         * modules/unicase/tolower: Likewise.
24570         * modules/unicase/totitle: Likewise.
24571         * modules/unicase/toupper: Likewise.
24572         * modules/unicase/u8-casecmp: Likewise.
24573         * modules/unicase/u8-casecoll: Likewise.
24574         * modules/unicase/u8-casefold: Likewise.
24575         * modules/unicase/u8-casexfrm: Likewise.
24576         * modules/unicase/u8-ct-casefold: Likewise.
24577         * modules/unicase/u8-ct-tolower: Likewise.
24578         * modules/unicase/u8-ct-totitle: Likewise.
24579         * modules/unicase/u8-ct-toupper: Likewise.
24580         * modules/unicase/u8-is-cased: Likewise.
24581         * modules/unicase/u8-is-casefolded: Likewise.
24582         * modules/unicase/u8-is-lowercase: Likewise.
24583         * modules/unicase/u8-is-titlecase: Likewise.
24584         * modules/unicase/u8-is-uppercase: Likewise.
24585         * modules/unicase/u8-prefix-context: Likewise.
24586         * modules/unicase/u8-suffix-context: Likewise.
24587         * modules/unicase/u8-tolower: Likewise.
24588         * modules/unicase/u8-totitle: Likewise.
24589         * modules/unicase/u8-toupper: Likewise.
24590         * modules/unicase/u16-casecmp: Likewise.
24591         * modules/unicase/u16-casecoll: Likewise.
24592         * modules/unicase/u16-casefold: Likewise.
24593         * modules/unicase/u16-casexfrm: Likewise.
24594         * modules/unicase/u16-ct-casefold: Likewise.
24595         * modules/unicase/u16-ct-tolower: Likewise.
24596         * modules/unicase/u16-ct-totitle: Likewise.
24597         * modules/unicase/u16-ct-toupper: Likewise.
24598         * modules/unicase/u16-is-cased: Likewise.
24599         * modules/unicase/u16-is-casefolded: Likewise.
24600         * modules/unicase/u16-is-lowercase: Likewise.
24601         * modules/unicase/u16-is-titlecase: Likewise.
24602         * modules/unicase/u16-is-uppercase: Likewise.
24603         * modules/unicase/u16-prefix-context: Likewise.
24604         * modules/unicase/u16-suffix-context: Likewise.
24605         * modules/unicase/u16-tolower: Likewise.
24606         * modules/unicase/u16-totitle: Likewise.
24607         * modules/unicase/u16-toupper: Likewise.
24608         * modules/unicase/u32-casecmp: Likewise.
24609         * modules/unicase/u32-casecoll: Likewise.
24610         * modules/unicase/u32-casefold: Likewise.
24611         * modules/unicase/u32-casexfrm: Likewise.
24612         * modules/unicase/u32-ct-casefold: Likewise.
24613         * modules/unicase/u32-ct-tolower: Likewise.
24614         * modules/unicase/u32-ct-totitle: Likewise.
24615         * modules/unicase/u32-ct-toupper: Likewise.
24616         * modules/unicase/u32-is-cased: Likewise.
24617         * modules/unicase/u32-is-casefolded: Likewise.
24618         * modules/unicase/u32-is-lowercase: Likewise.
24619         * modules/unicase/u32-is-titlecase: Likewise.
24620         * modules/unicase/u32-is-uppercase: Likewise.
24621         * modules/unicase/u32-prefix-context: Likewise.
24622         * modules/unicase/u32-suffix-context: Likewise.
24623         * modules/unicase/u32-tolower: Likewise.
24624         * modules/unicase/u32-totitle: Likewise.
24625         * modules/unicase/u32-toupper: Likewise.
24626         * modules/unicase/ulc-casecmp: Likewise.
24627         * modules/unicase/ulc-casecoll: Likewise.
24628         * modules/unicase/ulc-casexfrm: Likewise.
24629         * modules/uniconv/u8-conv-from-enc: Likewise.
24630         * modules/uniconv/u8-conv-to-enc: Likewise.
24631         * modules/uniconv/u8-strconv-from-enc: Likewise.
24632         * modules/uniconv/u8-strconv-from-locale: Likewise.
24633         * modules/uniconv/u8-strconv-to-enc: Likewise.
24634         * modules/uniconv/u8-strconv-to-locale: Likewise.
24635         * modules/uniconv/u16-conv-from-enc: Likewise.
24636         * modules/uniconv/u16-conv-to-enc: Likewise.
24637         * modules/uniconv/u16-strconv-from-enc: Likewise.
24638         * modules/uniconv/u16-strconv-from-locale: Likewise.
24639         * modules/uniconv/u16-strconv-to-enc: Likewise.
24640         * modules/uniconv/u16-strconv-to-locale: Likewise.
24641         * modules/uniconv/u32-conv-from-enc: Likewise.
24642         * modules/uniconv/u32-conv-to-enc: Likewise.
24643         * modules/uniconv/u32-strconv-from-enc: Likewise.
24644         * modules/uniconv/u32-strconv-from-locale: Likewise.
24645         * modules/uniconv/u32-strconv-to-enc: Likewise.
24646         * modules/uniconv/u32-strconv-to-locale: Likewise.
24647         * modules/unictype/bidicategory-byname: Likewise.
24648         * modules/unictype/bidicategory-name: Likewise.
24649         * modules/unictype/bidicategory-of: Likewise.
24650         * modules/unictype/bidicategory-test: Likewise.
24651         * modules/unictype/block-list: Likewise.
24652         * modules/unictype/block-test: Likewise.
24653         * modules/unictype/category-C: Likewise.
24654         * modules/unictype/category-Cc: Likewise.
24655         * modules/unictype/category-Cf: Likewise.
24656         * modules/unictype/category-Cn: Likewise.
24657         * modules/unictype/category-Co: Likewise.
24658         * modules/unictype/category-Cs: Likewise.
24659         * modules/unictype/category-L: Likewise.
24660         * modules/unictype/category-Ll: Likewise.
24661         * modules/unictype/category-Lm: Likewise.
24662         * modules/unictype/category-Lo: Likewise.
24663         * modules/unictype/category-Lt: Likewise.
24664         * modules/unictype/category-Lu: Likewise.
24665         * modules/unictype/category-M: Likewise.
24666         * modules/unictype/category-Mc: Likewise.
24667         * modules/unictype/category-Me: Likewise.
24668         * modules/unictype/category-Mn: Likewise.
24669         * modules/unictype/category-N: Likewise.
24670         * modules/unictype/category-Nd: Likewise.
24671         * modules/unictype/category-Nl: Likewise.
24672         * modules/unictype/category-No: Likewise.
24673         * modules/unictype/category-P: Likewise.
24674         * modules/unictype/category-Pc: Likewise.
24675         * modules/unictype/category-Pd: Likewise.
24676         * modules/unictype/category-Pe: Likewise.
24677         * modules/unictype/category-Pf: Likewise.
24678         * modules/unictype/category-Pi: Likewise.
24679         * modules/unictype/category-Po: Likewise.
24680         * modules/unictype/category-Ps: Likewise.
24681         * modules/unictype/category-S: Likewise.
24682         * modules/unictype/category-Sc: Likewise.
24683         * modules/unictype/category-Sk: Likewise.
24684         * modules/unictype/category-Sm: Likewise.
24685         * modules/unictype/category-So: Likewise.
24686         * modules/unictype/category-Z: Likewise.
24687         * modules/unictype/category-Zl: Likewise.
24688         * modules/unictype/category-Zp: Likewise.
24689         * modules/unictype/category-Zs: Likewise.
24690         * modules/unictype/category-and: Likewise.
24691         * modules/unictype/category-and-not: Likewise.
24692         * modules/unictype/category-byname: Likewise.
24693         * modules/unictype/category-name: Likewise.
24694         * modules/unictype/category-none: Likewise.
24695         * modules/unictype/category-of: Likewise.
24696         * modules/unictype/category-or: Likewise.
24697         * modules/unictype/category-test: Likewise.
24698         * modules/unictype/combining-class: Likewise.
24699         * modules/unictype/ctype-alnum: Likewise.
24700         * modules/unictype/ctype-alpha: Likewise.
24701         * modules/unictype/ctype-blank: Likewise.
24702         * modules/unictype/ctype-cntrl: Likewise.
24703         * modules/unictype/ctype-digit: Likewise.
24704         * modules/unictype/ctype-graph: Likewise.
24705         * modules/unictype/ctype-lower: Likewise.
24706         * modules/unictype/ctype-print: Likewise.
24707         * modules/unictype/ctype-punct: Likewise.
24708         * modules/unictype/ctype-space: Likewise.
24709         * modules/unictype/ctype-upper: Likewise.
24710         * modules/unictype/ctype-xdigit: Likewise.
24711         * modules/unictype/decimal-digit: Likewise.
24712         * modules/unictype/digit: Likewise.
24713         * modules/unictype/mirror: Likewise.
24714         * modules/unictype/numeric: Likewise.
24715         * modules/unictype/property-alphabetic: Likewise.
24716         * modules/unictype/property-ascii-hex-digit: Likewise.
24717         * modules/unictype/property-bidi-arabic-digit: Likewise.
24718         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
24719         * modules/unictype/property-bidi-block-separator: Likewise.
24720         * modules/unictype/property-bidi-boundary-neutral: Likewise.
24721         * modules/unictype/property-bidi-common-separator: Likewise.
24722         * modules/unictype/property-bidi-control: Likewise.
24723         * modules/unictype/property-bidi-embedding-or-override: Likewise.
24724         * modules/unictype/property-bidi-eur-num-separator: Likewise.
24725         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
24726         * modules/unictype/property-bidi-european-digit: Likewise.
24727         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
24728         * modules/unictype/property-bidi-left-to-right: Likewise.
24729         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
24730         * modules/unictype/property-bidi-other-neutral: Likewise.
24731         * modules/unictype/property-bidi-pdf: Likewise.
24732         * modules/unictype/property-bidi-segment-separator: Likewise.
24733         * modules/unictype/property-bidi-whitespace: Likewise.
24734         * modules/unictype/property-byname: Likewise.
24735         * modules/unictype/property-combining: Likewise.
24736         * modules/unictype/property-composite: Likewise.
24737         * modules/unictype/property-currency-symbol: Likewise.
24738         * modules/unictype/property-dash: Likewise.
24739         * modules/unictype/property-decimal-digit: Likewise.
24740         * modules/unictype/property-default-ignorable-code-point: Likewise.
24741         * modules/unictype/property-deprecated: Likewise.
24742         * modules/unictype/property-diacritic: Likewise.
24743         * modules/unictype/property-extender: Likewise.
24744         * modules/unictype/property-format-control: Likewise.
24745         * modules/unictype/property-grapheme-base: Likewise.
24746         * modules/unictype/property-grapheme-extend: Likewise.
24747         * modules/unictype/property-grapheme-link: Likewise.
24748         * modules/unictype/property-hex-digit: Likewise.
24749         * modules/unictype/property-hyphen: Likewise.
24750         * modules/unictype/property-id-continue: Likewise.
24751         * modules/unictype/property-id-start: Likewise.
24752         * modules/unictype/property-ideographic: Likewise.
24753         * modules/unictype/property-ids-binary-operator: Likewise.
24754         * modules/unictype/property-ids-trinary-operator: Likewise.
24755         * modules/unictype/property-ignorable-control: Likewise.
24756         * modules/unictype/property-iso-control: Likewise.
24757         * modules/unictype/property-join-control: Likewise.
24758         * modules/unictype/property-left-of-pair: Likewise.
24759         * modules/unictype/property-line-separator: Likewise.
24760         * modules/unictype/property-logical-order-exception: Likewise.
24761         * modules/unictype/property-lowercase: Likewise.
24762         * modules/unictype/property-math: Likewise.
24763         * modules/unictype/property-non-break: Likewise.
24764         * modules/unictype/property-not-a-character: Likewise.
24765         * modules/unictype/property-numeric: Likewise.
24766         * modules/unictype/property-other-alphabetic: Likewise.
24767         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
24768         * modules/unictype/property-other-grapheme-extend: Likewise.
24769         * modules/unictype/property-other-id-continue: Likewise.
24770         * modules/unictype/property-other-id-start: Likewise.
24771         * modules/unictype/property-other-lowercase: Likewise.
24772         * modules/unictype/property-other-math: Likewise.
24773         * modules/unictype/property-other-uppercase: Likewise.
24774         * modules/unictype/property-paired-punctuation: Likewise.
24775         * modules/unictype/property-paragraph-separator: Likewise.
24776         * modules/unictype/property-pattern-syntax: Likewise.
24777         * modules/unictype/property-pattern-white-space: Likewise.
24778         * modules/unictype/property-private-use: Likewise.
24779         * modules/unictype/property-punctuation: Likewise.
24780         * modules/unictype/property-quotation-mark: Likewise.
24781         * modules/unictype/property-radical: Likewise.
24782         * modules/unictype/property-sentence-terminal: Likewise.
24783         * modules/unictype/property-soft-dotted: Likewise.
24784         * modules/unictype/property-space: Likewise.
24785         * modules/unictype/property-terminal-punctuation: Likewise.
24786         * modules/unictype/property-test: Likewise.
24787         * modules/unictype/property-titlecase: Likewise.
24788         * modules/unictype/property-unassigned-code-value: Likewise.
24789         * modules/unictype/property-unified-ideograph: Likewise.
24790         * modules/unictype/property-uppercase: Likewise.
24791         * modules/unictype/property-variation-selector: Likewise.
24792         * modules/unictype/property-white-space: Likewise.
24793         * modules/unictype/property-xid-continue: Likewise.
24794         * modules/unictype/property-xid-start: Likewise.
24795         * modules/unictype/property-zero-width: Likewise.
24796         * modules/unictype/scripts: Likewise.
24797         * modules/unictype/syntax-c-ident: Likewise.
24798         * modules/unictype/syntax-c-whitespace: Likewise.
24799         * modules/unictype/syntax-java-ident: Likewise.
24800         * modules/unictype/syntax-java-whitespace: Likewise.
24801         * modules/unilbrk/u8-possible-linebreaks: Likewise.
24802         * modules/unilbrk/u8-width-linebreaks: Likewise.
24803         * modules/unilbrk/u16-possible-linebreaks: Likewise.
24804         * modules/unilbrk/u16-width-linebreaks: Likewise.
24805         * modules/unilbrk/u32-possible-linebreaks: Likewise.
24806         * modules/unilbrk/u32-width-linebreaks: Likewise.
24807         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
24808         * modules/unilbrk/ulc-width-linebreaks: Likewise.
24809         * modules/uniname/uniname: Likewise.
24810         * modules/uninorm/canonical-decomposition: Likewise.
24811         * modules/uninorm/composition: Likewise.
24812         * modules/uninorm/decomposing-form: Likewise.
24813         * modules/uninorm/decomposition: Likewise.
24814         * modules/uninorm/filter: Likewise.
24815         * modules/uninorm/nfc: Likewise.
24816         * modules/uninorm/nfd: Likewise.
24817         * modules/uninorm/nfkc: Likewise.
24818         * modules/uninorm/nfkd: Likewise.
24819         * modules/uninorm/u8-normalize: Likewise.
24820         * modules/uninorm/u8-normcmp: Likewise.
24821         * modules/uninorm/u8-normcoll: Likewise.
24822         * modules/uninorm/u8-normxfrm: Likewise.
24823         * modules/uninorm/u16-normalize: Likewise.
24824         * modules/uninorm/u16-normcmp: Likewise.
24825         * modules/uninorm/u16-normcoll: Likewise.
24826         * modules/uninorm/u16-normxfrm: Likewise.
24827         * modules/uninorm/u32-normalize: Likewise.
24828         * modules/uninorm/u32-normcmp: Likewise.
24829         * modules/uninorm/u32-normcoll: Likewise.
24830         * modules/uninorm/u32-normxfrm: Likewise.
24831         * modules/unistdio/u8-asnprintf: Likewise.
24832         * modules/unistdio/u8-asprintf: Likewise.
24833         * modules/unistdio/u8-snprintf: Likewise.
24834         * modules/unistdio/u8-sprintf: Likewise.
24835         * modules/unistdio/u8-u8-asnprintf: Likewise.
24836         * modules/unistdio/u8-u8-asprintf: Likewise.
24837         * modules/unistdio/u8-u8-snprintf: Likewise.
24838         * modules/unistdio/u8-u8-sprintf: Likewise.
24839         * modules/unistdio/u8-u8-vasnprintf: Likewise.
24840         * modules/unistdio/u8-u8-vasprintf: Likewise.
24841         * modules/unistdio/u8-u8-vsnprintf: Likewise.
24842         * modules/unistdio/u8-u8-vsprintf: Likewise.
24843         * modules/unistdio/u8-vasnprintf: Likewise.
24844         * modules/unistdio/u8-vasprintf: Likewise.
24845         * modules/unistdio/u8-vsnprintf: Likewise.
24846         * modules/unistdio/u8-vsprintf: Likewise.
24847         * modules/unistdio/u16-asnprintf: Likewise.
24848         * modules/unistdio/u16-asprintf: Likewise.
24849         * modules/unistdio/u16-snprintf: Likewise.
24850         * modules/unistdio/u16-sprintf: Likewise.
24851         * modules/unistdio/u16-u16-asnprintf: Likewise.
24852         * modules/unistdio/u16-u16-asprintf: Likewise.
24853         * modules/unistdio/u16-u16-snprintf: Likewise.
24854         * modules/unistdio/u16-u16-sprintf: Likewise.
24855         * modules/unistdio/u16-u16-vasnprintf: Likewise.
24856         * modules/unistdio/u16-u16-vasprintf: Likewise.
24857         * modules/unistdio/u16-u16-vsnprintf: Likewise.
24858         * modules/unistdio/u16-u16-vsprintf: Likewise.
24859         * modules/unistdio/u16-vasnprintf: Likewise.
24860         * modules/unistdio/u16-vasprintf: Likewise.
24861         * modules/unistdio/u16-vsnprintf: Likewise.
24862         * modules/unistdio/u16-vsprintf: Likewise.
24863         * modules/unistdio/u32-asnprintf: Likewise.
24864         * modules/unistdio/u32-asprintf: Likewise.
24865         * modules/unistdio/u32-snprintf: Likewise.
24866         * modules/unistdio/u32-sprintf: Likewise.
24867         * modules/unistdio/u32-u32-asnprintf: Likewise.
24868         * modules/unistdio/u32-u32-asprintf: Likewise.
24869         * modules/unistdio/u32-u32-snprintf: Likewise.
24870         * modules/unistdio/u32-u32-sprintf: Likewise.
24871         * modules/unistdio/u32-u32-vasnprintf: Likewise.
24872         * modules/unistdio/u32-u32-vasprintf: Likewise.
24873         * modules/unistdio/u32-u32-vsnprintf: Likewise.
24874         * modules/unistdio/u32-u32-vsprintf: Likewise.
24875         * modules/unistdio/u32-vasnprintf: Likewise.
24876         * modules/unistdio/u32-vasprintf: Likewise.
24877         * modules/unistdio/u32-vsnprintf: Likewise.
24878         * modules/unistdio/u32-vsprintf: Likewise.
24879         * modules/unistdio/ulc-asnprintf: Likewise.
24880         * modules/unistdio/ulc-asprintf: Likewise.
24881         * modules/unistdio/ulc-fprintf: Likewise.
24882         * modules/unistdio/ulc-snprintf: Likewise.
24883         * modules/unistdio/ulc-sprintf: Likewise.
24884         * modules/unistdio/ulc-vasnprintf: Likewise.
24885         * modules/unistdio/ulc-vasprintf: Likewise.
24886         * modules/unistdio/ulc-vfprintf: Likewise.
24887         * modules/unistdio/ulc-vsnprintf: Likewise.
24888         * modules/unistdio/ulc-vsprintf: Likewise.
24889         * modules/unistr/u8-check: Likewise.
24890         * modules/unistr/u8-chr: Likewise.
24891         * modules/unistr/u8-cmp: Likewise.
24892         * modules/unistr/u8-cmp2: Likewise.
24893         * modules/unistr/u8-cpy: Likewise.
24894         * modules/unistr/u8-cpy-alloc: Likewise.
24895         * modules/unistr/u8-endswith: Likewise.
24896         * modules/unistr/u8-mblen: Likewise.
24897         * modules/unistr/u8-mbsnlen: Likewise.
24898         * modules/unistr/u8-mbtouc: Likewise.
24899         * modules/unistr/u8-mbtouc-unsafe: Likewise.
24900         * modules/unistr/u8-mbtoucr: Likewise.
24901         * modules/unistr/u8-move: Likewise.
24902         * modules/unistr/u8-next: Likewise.
24903         * modules/unistr/u8-prev: Likewise.
24904         * modules/unistr/u8-set: Likewise.
24905         * modules/unistr/u8-startswith: Likewise.
24906         * modules/unistr/u8-stpcpy: Likewise.
24907         * modules/unistr/u8-stpncpy: Likewise.
24908         * modules/unistr/u8-strcat: Likewise.
24909         * modules/unistr/u8-strchr: Likewise.
24910         * modules/unistr/u8-strcmp: Likewise.
24911         * modules/unistr/u8-strcoll: Likewise.
24912         * modules/unistr/u8-strcpy: Likewise.
24913         * modules/unistr/u8-strcspn: Likewise.
24914         * modules/unistr/u8-strdup: Likewise.
24915         * modules/unistr/u8-strlen: Likewise.
24916         * modules/unistr/u8-strmblen: Likewise.
24917         * modules/unistr/u8-strmbtouc: Likewise.
24918         * modules/unistr/u8-strncat: Likewise.
24919         * modules/unistr/u8-strncmp: Likewise.
24920         * modules/unistr/u8-strncpy: Likewise.
24921         * modules/unistr/u8-strnlen: Likewise.
24922         * modules/unistr/u8-strpbrk: Likewise.
24923         * modules/unistr/u8-strrchr: Likewise.
24924         * modules/unistr/u8-strspn: Likewise.
24925         * modules/unistr/u8-strstr: Likewise.
24926         * modules/unistr/u8-strtok: Likewise.
24927         * modules/unistr/u8-to-u16: Likewise.
24928         * modules/unistr/u8-to-u32: Likewise.
24929         * modules/unistr/u8-uctomb: Likewise.
24930         * modules/unistr/u16-check: Likewise.
24931         * modules/unistr/u16-chr: Likewise.
24932         * modules/unistr/u16-cmp: Likewise.
24933         * modules/unistr/u16-cmp2: Likewise.
24934         * modules/unistr/u16-cpy: Likewise.
24935         * modules/unistr/u16-cpy-alloc: Likewise.
24936         * modules/unistr/u16-endswith: Likewise.
24937         * modules/unistr/u16-mblen: Likewise.
24938         * modules/unistr/u16-mbsnlen: Likewise.
24939         * modules/unistr/u16-mbtouc: Likewise.
24940         * modules/unistr/u16-mbtouc-unsafe: Likewise.
24941         * modules/unistr/u16-mbtoucr: Likewise.
24942         * modules/unistr/u16-move: Likewise.
24943         * modules/unistr/u16-next: Likewise.
24944         * modules/unistr/u16-prev: Likewise.
24945         * modules/unistr/u16-set: Likewise.
24946         * modules/unistr/u16-startswith: Likewise.
24947         * modules/unistr/u16-stpcpy: Likewise.
24948         * modules/unistr/u16-stpncpy: Likewise.
24949         * modules/unistr/u16-strcat: Likewise.
24950         * modules/unistr/u16-strchr: Likewise.
24951         * modules/unistr/u16-strcmp: Likewise.
24952         * modules/unistr/u16-strcoll: Likewise.
24953         * modules/unistr/u16-strcpy: Likewise.
24954         * modules/unistr/u16-strcspn: Likewise.
24955         * modules/unistr/u16-strdup: Likewise.
24956         * modules/unistr/u16-strlen: Likewise.
24957         * modules/unistr/u16-strmblen: Likewise.
24958         * modules/unistr/u16-strmbtouc: Likewise.
24959         * modules/unistr/u16-strncat: Likewise.
24960         * modules/unistr/u16-strncmp: Likewise.
24961         * modules/unistr/u16-strncpy: Likewise.
24962         * modules/unistr/u16-strnlen: Likewise.
24963         * modules/unistr/u16-strpbrk: Likewise.
24964         * modules/unistr/u16-strrchr: Likewise.
24965         * modules/unistr/u16-strspn: Likewise.
24966         * modules/unistr/u16-strstr: Likewise.
24967         * modules/unistr/u16-strtok: Likewise.
24968         * modules/unistr/u16-to-u32: Likewise.
24969         * modules/unistr/u16-to-u8: Likewise.
24970         * modules/unistr/u16-uctomb: Likewise.
24971         * modules/unistr/u32-check: Likewise.
24972         * modules/unistr/u32-chr: Likewise.
24973         * modules/unistr/u32-cmp: Likewise.
24974         * modules/unistr/u32-cmp2: Likewise.
24975         * modules/unistr/u32-cpy: Likewise.
24976         * modules/unistr/u32-cpy-alloc: Likewise.
24977         * modules/unistr/u32-endswith: Likewise.
24978         * modules/unistr/u32-mblen: Likewise.
24979         * modules/unistr/u32-mbsnlen: Likewise.
24980         * modules/unistr/u32-mbtouc: Likewise.
24981         * modules/unistr/u32-mbtouc-unsafe: Likewise.
24982         * modules/unistr/u32-mbtoucr: Likewise.
24983         * modules/unistr/u32-move: Likewise.
24984         * modules/unistr/u32-next: Likewise.
24985         * modules/unistr/u32-prev: Likewise.
24986         * modules/unistr/u32-set: Likewise.
24987         * modules/unistr/u32-startswith: Likewise.
24988         * modules/unistr/u32-stpcpy: Likewise.
24989         * modules/unistr/u32-stpncpy: Likewise.
24990         * modules/unistr/u32-strcat: Likewise.
24991         * modules/unistr/u32-strchr: Likewise.
24992         * modules/unistr/u32-strcmp: Likewise.
24993         * modules/unistr/u32-strcoll: Likewise.
24994         * modules/unistr/u32-strcpy: Likewise.
24995         * modules/unistr/u32-strcspn: Likewise.
24996         * modules/unistr/u32-strdup: Likewise.
24997         * modules/unistr/u32-strlen: Likewise.
24998         * modules/unistr/u32-strmblen: Likewise.
24999         * modules/unistr/u32-strmbtouc: Likewise.
25000         * modules/unistr/u32-strncat: Likewise.
25001         * modules/unistr/u32-strncmp: Likewise.
25002         * modules/unistr/u32-strncpy: Likewise.
25003         * modules/unistr/u32-strnlen: Likewise.
25004         * modules/unistr/u32-strpbrk: Likewise.
25005         * modules/unistr/u32-strrchr: Likewise.
25006         * modules/unistr/u32-strspn: Likewise.
25007         * modules/unistr/u32-strstr: Likewise.
25008         * modules/unistr/u32-strtok: Likewise.
25009         * modules/unistr/u32-to-u16: Likewise.
25010         * modules/unistr/u32-to-u8: Likewise.
25011         * modules/unistr/u32-uctomb: Likewise.
25012         * modules/uniwbrk/u8-wordbreaks: Likewise.
25013         * modules/uniwbrk/u16-wordbreaks: Likewise.
25014         * modules/uniwbrk/u32-wordbreaks: Likewise.
25015         * modules/uniwbrk/ulc-wordbreaks: Likewise.
25016         * modules/uniwbrk/wordbreak-property: Likewise.
25017         * modules/uniwidth/u8-strwidth: Likewise.
25018         * modules/uniwidth/u8-width: Likewise.
25019         * modules/uniwidth/u16-strwidth: Likewise.
25020         * modules/uniwidth/u16-width: Likewise.
25021         * modules/uniwidth/u32-strwidth: Likewise.
25022         * modules/uniwidth/u32-width: Likewise.
25023         * modules/uniwidth/width: Likewise.
25024         * modules/unicase/cased-tests (Makefile.am): Link all test programs
25025         with $(LIBUNISTRING).
25026         * modules/unicase/ignorable-tests: Likewise.
25027         * modules/unicase/locale-language-tests: Likewise.
25028         * modules/unicase/tolower-tests: Likewise.
25029         * modules/unicase/totitle-tests: Likewise.
25030         * modules/unicase/toupper-tests: Likewise.
25031         * modules/unicase/u8-casecmp-tests: Likewise.
25032         * modules/unicase/u8-casecoll-tests: Likewise.
25033         * modules/unicase/u8-casefold-tests: Likewise.
25034         * modules/unicase/u8-is-cased-tests: Likewise.
25035         * modules/unicase/u8-is-casefolded-tests: Likewise.
25036         * modules/unicase/u8-is-lowercase-tests: Likewise.
25037         * modules/unicase/u8-is-titlecase-tests: Likewise.
25038         * modules/unicase/u8-is-uppercase-tests: Likewise.
25039         * modules/unicase/u8-tolower-tests: Likewise.
25040         * modules/unicase/u8-totitle-tests: Likewise.
25041         * modules/unicase/u8-toupper-tests: Likewise.
25042         * modules/unicase/u16-casecmp-tests: Likewise.
25043         * modules/unicase/u16-casecoll-tests: Likewise.
25044         * modules/unicase/u16-casefold-tests: Likewise.
25045         * modules/unicase/u16-is-cased-tests: Likewise.
25046         * modules/unicase/u16-is-casefolded-tests: Likewise.
25047         * modules/unicase/u16-is-lowercase-tests: Likewise.
25048         * modules/unicase/u16-is-titlecase-tests: Likewise.
25049         * modules/unicase/u16-is-uppercase-tests: Likewise.
25050         * modules/unicase/u16-tolower-tests: Likewise.
25051         * modules/unicase/u16-totitle-tests: Likewise.
25052         * modules/unicase/u16-toupper-tests: Likewise.
25053         * modules/unicase/u32-casecmp-tests: Likewise.
25054         * modules/unicase/u32-casecoll-tests: Likewise.
25055         * modules/unicase/u32-casefold-tests: Likewise.
25056         * modules/unicase/u32-is-cased-tests: Likewise.
25057         * modules/unicase/u32-is-casefolded-tests: Likewise.
25058         * modules/unicase/u32-is-lowercase-tests: Likewise.
25059         * modules/unicase/u32-is-titlecase-tests: Likewise.
25060         * modules/unicase/u32-is-uppercase-tests: Likewise.
25061         * modules/unicase/u32-tolower-tests: Likewise.
25062         * modules/unicase/u32-totitle-tests: Likewise.
25063         * modules/unicase/u32-toupper-tests: Likewise.
25064         * modules/unicase/ulc-casecmp-tests: Likewise.
25065         * modules/unicase/ulc-casecoll-tests: Likewise.
25066         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
25067         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
25068         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
25069         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
25070         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
25071         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
25072         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
25073         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
25074         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
25075         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
25076         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
25077         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
25078         * modules/unictype/bidicategory-byname-tests: Likewise.
25079         * modules/unictype/bidicategory-name-tests: Likewise.
25080         * modules/unictype/bidicategory-of-tests: Likewise.
25081         * modules/unictype/bidicategory-test-tests: Likewise.
25082         * modules/unictype/block-list-tests: Likewise.
25083         * modules/unictype/block-of-tests: Likewise.
25084         * modules/unictype/block-test-tests: Likewise.
25085         * modules/unictype/category-C-tests: Likewise.
25086         * modules/unictype/category-Cc-tests: Likewise.
25087         * modules/unictype/category-Cf-tests: Likewise.
25088         * modules/unictype/category-Cn-tests: Likewise.
25089         * modules/unictype/category-Co-tests: Likewise.
25090         * modules/unictype/category-Cs-tests: Likewise.
25091         * modules/unictype/category-L-tests: Likewise.
25092         * modules/unictype/category-Ll-tests: Likewise.
25093         * modules/unictype/category-Lm-tests: Likewise.
25094         * modules/unictype/category-Lo-tests: Likewise.
25095         * modules/unictype/category-Lt-tests: Likewise.
25096         * modules/unictype/category-Lu-tests: Likewise.
25097         * modules/unictype/category-M-tests: Likewise.
25098         * modules/unictype/category-Mc-tests: Likewise.
25099         * modules/unictype/category-Me-tests: Likewise.
25100         * modules/unictype/category-Mn-tests: Likewise.
25101         * modules/unictype/category-N-tests: Likewise.
25102         * modules/unictype/category-Nd-tests: Likewise.
25103         * modules/unictype/category-Nl-tests: Likewise.
25104         * modules/unictype/category-No-tests: Likewise.
25105         * modules/unictype/category-P-tests: Likewise.
25106         * modules/unictype/category-Pc-tests: Likewise.
25107         * modules/unictype/category-Pd-tests: Likewise.
25108         * modules/unictype/category-Pe-tests: Likewise.
25109         * modules/unictype/category-Pf-tests: Likewise.
25110         * modules/unictype/category-Pi-tests: Likewise.
25111         * modules/unictype/category-Po-tests: Likewise.
25112         * modules/unictype/category-Ps-tests: Likewise.
25113         * modules/unictype/category-S-tests: Likewise.
25114         * modules/unictype/category-Sc-tests: Likewise.
25115         * modules/unictype/category-Sk-tests: Likewise.
25116         * modules/unictype/category-Sm-tests: Likewise.
25117         * modules/unictype/category-So-tests: Likewise.
25118         * modules/unictype/category-Z-tests: Likewise.
25119         * modules/unictype/category-Zl-tests: Likewise.
25120         * modules/unictype/category-Zp-tests: Likewise.
25121         * modules/unictype/category-Zs-tests: Likewise.
25122         * modules/unictype/category-and-not-tests: Likewise.
25123         * modules/unictype/category-and-tests: Likewise.
25124         * modules/unictype/category-byname-tests: Likewise.
25125         * modules/unictype/category-name-tests: Likewise.
25126         * modules/unictype/category-none-tests: Likewise.
25127         * modules/unictype/category-of-tests: Likewise.
25128         * modules/unictype/category-or-tests: Likewise.
25129         * modules/unictype/category-test-withtable-tests: Likewise.
25130         * modules/unictype/combining-class-tests: Likewise.
25131         * modules/unictype/ctype-alnum-tests: Likewise.
25132         * modules/unictype/ctype-alpha-tests: Likewise.
25133         * modules/unictype/ctype-blank-tests: Likewise.
25134         * modules/unictype/ctype-cntrl-tests: Likewise.
25135         * modules/unictype/ctype-digit-tests: Likewise.
25136         * modules/unictype/ctype-graph-tests: Likewise.
25137         * modules/unictype/ctype-lower-tests: Likewise.
25138         * modules/unictype/ctype-print-tests: Likewise.
25139         * modules/unictype/ctype-punct-tests: Likewise.
25140         * modules/unictype/ctype-space-tests: Likewise.
25141         * modules/unictype/ctype-upper-tests: Likewise.
25142         * modules/unictype/ctype-xdigit-tests: Likewise.
25143         * modules/unictype/decimal-digit-tests: Likewise.
25144         * modules/unictype/digit-tests: Likewise.
25145         * modules/unictype/mirror-tests: Likewise.
25146         * modules/unictype/numeric-tests: Likewise.
25147         * modules/unictype/property-alphabetic-tests: Likewise.
25148         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
25149         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
25150         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
25151         * modules/unictype/property-bidi-block-separator-tests: Likewise.
25152         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
25153         * modules/unictype/property-bidi-common-separator-tests: Likewise.
25154         * modules/unictype/property-bidi-control-tests: Likewise.
25155         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
25156         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
25157         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
25158         * modules/unictype/property-bidi-european-digit-tests: Likewise.
25159         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
25160         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
25161         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
25162         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
25163         * modules/unictype/property-bidi-pdf-tests: Likewise.
25164         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
25165         * modules/unictype/property-bidi-whitespace-tests: Likewise.
25166         * modules/unictype/property-byname-tests: Likewise.
25167         * modules/unictype/property-combining-tests: Likewise.
25168         * modules/unictype/property-composite-tests: Likewise.
25169         * modules/unictype/property-currency-symbol-tests: Likewise.
25170         * modules/unictype/property-dash-tests: Likewise.
25171         * modules/unictype/property-decimal-digit-tests: Likewise.
25172         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
25173         * modules/unictype/property-deprecated-tests: Likewise.
25174         * modules/unictype/property-diacritic-tests: Likewise.
25175         * modules/unictype/property-extender-tests: Likewise.
25176         * modules/unictype/property-format-control-tests: Likewise.
25177         * modules/unictype/property-grapheme-base-tests: Likewise.
25178         * modules/unictype/property-grapheme-extend-tests: Likewise.
25179         * modules/unictype/property-grapheme-link-tests: Likewise.
25180         * modules/unictype/property-hex-digit-tests: Likewise.
25181         * modules/unictype/property-hyphen-tests: Likewise.
25182         * modules/unictype/property-id-continue-tests: Likewise.
25183         * modules/unictype/property-id-start-tests: Likewise.
25184         * modules/unictype/property-ideographic-tests: Likewise.
25185         * modules/unictype/property-ids-binary-operator-tests: Likewise.
25186         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
25187         * modules/unictype/property-ignorable-control-tests: Likewise.
25188         * modules/unictype/property-iso-control-tests: Likewise.
25189         * modules/unictype/property-join-control-tests: Likewise.
25190         * modules/unictype/property-left-of-pair-tests: Likewise.
25191         * modules/unictype/property-line-separator-tests: Likewise.
25192         * modules/unictype/property-logical-order-exception-tests: Likewise.
25193         * modules/unictype/property-lowercase-tests: Likewise.
25194         * modules/unictype/property-math-tests: Likewise.
25195         * modules/unictype/property-non-break-tests: Likewise.
25196         * modules/unictype/property-not-a-character-tests: Likewise.
25197         * modules/unictype/property-numeric-tests: Likewise.
25198         * modules/unictype/property-other-alphabetic-tests: Likewise.
25199         * modules/unictype/property-other-default-ignorable-code-point-tests:
25200         Likewise.
25201         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
25202         * modules/unictype/property-other-id-continue-tests: Likewise.
25203         * modules/unictype/property-other-id-start-tests: Likewise.
25204         * modules/unictype/property-other-lowercase-tests: Likewise.
25205         * modules/unictype/property-other-math-tests: Likewise.
25206         * modules/unictype/property-other-uppercase-tests: Likewise.
25207         * modules/unictype/property-paired-punctuation-tests: Likewise.
25208         * modules/unictype/property-paragraph-separator-tests: Likewise.
25209         * modules/unictype/property-pattern-syntax-tests: Likewise.
25210         * modules/unictype/property-pattern-white-space-tests: Likewise.
25211         * modules/unictype/property-private-use-tests: Likewise.
25212         * modules/unictype/property-punctuation-tests: Likewise.
25213         * modules/unictype/property-quotation-mark-tests: Likewise.
25214         * modules/unictype/property-radical-tests: Likewise.
25215         * modules/unictype/property-sentence-terminal-tests: Likewise.
25216         * modules/unictype/property-soft-dotted-tests: Likewise.
25217         * modules/unictype/property-space-tests: Likewise.
25218         * modules/unictype/property-terminal-punctuation-tests: Likewise.
25219         * modules/unictype/property-test-tests: Likewise.
25220         * modules/unictype/property-titlecase-tests: Likewise.
25221         * modules/unictype/property-unassigned-code-value-tests: Likewise.
25222         * modules/unictype/property-unified-ideograph-tests: Likewise.
25223         * modules/unictype/property-uppercase-tests: Likewise.
25224         * modules/unictype/property-variation-selector-tests: Likewise.
25225         * modules/unictype/property-white-space-tests: Likewise.
25226         * modules/unictype/property-xid-continue-tests: Likewise.
25227         * modules/unictype/property-xid-start-tests: Likewise.
25228         * modules/unictype/property-zero-width-tests: Likewise.
25229         * modules/unictype/scripts-tests: Likewise.
25230         * modules/unictype/syntax-c-ident-tests: Likewise.
25231         * modules/unictype/syntax-c-whitespace-tests: Likewise.
25232         * modules/unictype/syntax-java-ident-tests: Likewise.
25233         * modules/unictype/syntax-java-whitespace-tests: Likewise.
25234         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
25235         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
25236         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
25237         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
25238         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
25239         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
25240         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
25241         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
25242         * modules/uniname/uniname-tests: Likewise.
25243         * modules/uninorm/canonical-decomposition-tests: Likewise.
25244         * modules/uninorm/compat-decomposition-tests: Likewise.
25245         * modules/uninorm/composition-tests: Likewise.
25246         * modules/uninorm/decomposing-form-tests: Likewise.
25247         * modules/uninorm/decomposition-tests: Likewise.
25248         * modules/uninorm/filter-tests: Likewise.
25249         * modules/uninorm/nfc-tests: Likewise.
25250         * modules/uninorm/nfd-tests: Likewise.
25251         * modules/uninorm/nfkc-tests: Likewise.
25252         * modules/uninorm/nfkd-tests: Likewise.
25253         * modules/uninorm/u8-normcmp-tests: Likewise.
25254         * modules/uninorm/u8-normcoll-tests: Likewise.
25255         * modules/uninorm/u16-normcmp-tests: Likewise.
25256         * modules/uninorm/u16-normcoll-tests: Likewise.
25257         * modules/uninorm/u32-normcmp-tests: Likewise.
25258         * modules/uninorm/u32-normcoll-tests: Likewise.
25259         * modules/unistdio/u8-asnprintf-tests: Likewise.
25260         * modules/unistdio/u8-vasnprintf-tests: Likewise.
25261         * modules/unistdio/u8-vasprintf-tests: Likewise.
25262         * modules/unistdio/u8-vsnprintf-tests: Likewise.
25263         * modules/unistdio/u8-vsprintf-tests: Likewise.
25264         * modules/unistdio/u16-asnprintf-tests: Likewise.
25265         * modules/unistdio/u16-vasnprintf-tests: Likewise.
25266         * modules/unistdio/u16-vasprintf-tests: Likewise.
25267         * modules/unistdio/u16-vsnprintf-tests: Likewise.
25268         * modules/unistdio/u16-vsprintf-tests: Likewise.
25269         * modules/unistdio/u32-asnprintf-tests: Likewise.
25270         * modules/unistdio/u32-vasnprintf-tests: Likewise.
25271         * modules/unistdio/u32-vasprintf-tests: Likewise.
25272         * modules/unistdio/u32-vsnprintf-tests: Likewise.
25273         * modules/unistdio/u32-vsprintf-tests: Likewise.
25274         * modules/unistdio/ulc-asnprintf-tests: Likewise.
25275         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
25276         * modules/unistdio/ulc-vasprintf-tests: Likewise.
25277         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
25278         * modules/unistdio/ulc-vsprintf-tests: Likewise.
25279         * modules/unistr/u8-check-tests: Likewise.
25280         * modules/unistr/u8-chr-tests: Likewise.
25281         * modules/unistr/u8-cmp-tests: Likewise.
25282         * modules/unistr/u8-cmp2-tests: Likewise.
25283         * modules/unistr/u8-cpy-alloc-tests: Likewise.
25284         * modules/unistr/u8-cpy-tests: Likewise.
25285         * modules/unistr/u8-mblen-tests: Likewise.
25286         * modules/unistr/u8-mbsnlen-tests: Likewise.
25287         * modules/unistr/u8-mbtouc-tests: Likewise.
25288         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
25289         * modules/unistr/u8-mbtoucr-tests: Likewise.
25290         * modules/unistr/u8-move-tests: Likewise.
25291         * modules/unistr/u8-next-tests: Likewise.
25292         * modules/unistr/u8-prev-tests: Likewise.
25293         * modules/unistr/u8-set-tests: Likewise.
25294         * modules/unistr/u8-stpcpy-tests: Likewise.
25295         * modules/unistr/u8-stpncpy-tests: Likewise.
25296         * modules/unistr/u8-strcat-tests: Likewise.
25297         * modules/unistr/u8-strcmp-tests: Likewise.
25298         * modules/unistr/u8-strcoll-tests: Likewise.
25299         * modules/unistr/u8-strcpy-tests: Likewise.
25300         * modules/unistr/u8-strdup-tests: Likewise.
25301         * modules/unistr/u8-strlen-tests: Likewise.
25302         * modules/unistr/u8-strmblen-tests: Likewise.
25303         * modules/unistr/u8-strmbtouc-tests: Likewise.
25304         * modules/unistr/u8-strncat-tests: Likewise.
25305         * modules/unistr/u8-strncmp-tests: Likewise.
25306         * modules/unistr/u8-strncpy-tests: Likewise.
25307         * modules/unistr/u8-strnlen-tests: Likewise.
25308         * modules/unistr/u8-to-u16-tests: Likewise.
25309         * modules/unistr/u8-to-u32-tests: Likewise.
25310         * modules/unistr/u8-uctomb-tests: Likewise.
25311         * modules/unistr/u16-check-tests: Likewise.
25312         * modules/unistr/u16-chr-tests: Likewise.
25313         * modules/unistr/u16-cmp-tests: Likewise.
25314         * modules/unistr/u16-cmp2-tests: Likewise.
25315         * modules/unistr/u16-cpy-alloc-tests: Likewise.
25316         * modules/unistr/u16-cpy-tests: Likewise.
25317         * modules/unistr/u16-mblen-tests: Likewise.
25318         * modules/unistr/u16-mbsnlen-tests: Likewise.
25319         * modules/unistr/u16-mbtouc-tests: Likewise.
25320         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
25321         * modules/unistr/u16-mbtoucr-tests: Likewise.
25322         * modules/unistr/u16-move-tests: Likewise.
25323         * modules/unistr/u16-next-tests: Likewise.
25324         * modules/unistr/u16-prev-tests: Likewise.
25325         * modules/unistr/u16-set-tests: Likewise.
25326         * modules/unistr/u16-stpcpy-tests: Likewise.
25327         * modules/unistr/u16-stpncpy-tests: Likewise.
25328         * modules/unistr/u16-strcat-tests: Likewise.
25329         * modules/unistr/u16-strcmp-tests: Likewise.
25330         * modules/unistr/u16-strcoll-tests: Likewise.
25331         * modules/unistr/u16-strcpy-tests: Likewise.
25332         * modules/unistr/u16-strdup-tests: Likewise.
25333         * modules/unistr/u16-strlen-tests: Likewise.
25334         * modules/unistr/u16-strmblen-tests: Likewise.
25335         * modules/unistr/u16-strmbtouc-tests: Likewise.
25336         * modules/unistr/u16-strncat-tests: Likewise.
25337         * modules/unistr/u16-strncmp-tests: Likewise.
25338         * modules/unistr/u16-strncpy-tests: Likewise.
25339         * modules/unistr/u16-strnlen-tests: Likewise.
25340         * modules/unistr/u16-to-u32-tests: Likewise.
25341         * modules/unistr/u16-to-u8-tests: Likewise.
25342         * modules/unistr/u16-uctomb-tests: Likewise.
25343         * modules/unistr/u32-check-tests: Likewise.
25344         * modules/unistr/u32-chr-tests: Likewise.
25345         * modules/unistr/u32-cmp-tests: Likewise.
25346         * modules/unistr/u32-cmp2-tests: Likewise.
25347         * modules/unistr/u32-cpy-alloc-tests: Likewise.
25348         * modules/unistr/u32-cpy-tests: Likewise.
25349         * modules/unistr/u32-mblen-tests: Likewise.
25350         * modules/unistr/u32-mbsnlen-tests: Likewise.
25351         * modules/unistr/u32-mbtouc-tests: Likewise.
25352         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
25353         * modules/unistr/u32-mbtoucr-tests: Likewise.
25354         * modules/unistr/u32-move-tests: Likewise.
25355         * modules/unistr/u32-next-tests: Likewise.
25356         * modules/unistr/u32-prev-tests: Likewise.
25357         * modules/unistr/u32-set-tests: Likewise.
25358         * modules/unistr/u32-stpcpy-tests: Likewise.
25359         * modules/unistr/u32-stpncpy-tests: Likewise.
25360         * modules/unistr/u32-strcat-tests: Likewise.
25361         * modules/unistr/u32-strcmp-tests: Likewise.
25362         * modules/unistr/u32-strcoll-tests: Likewise.
25363         * modules/unistr/u32-strcpy-tests: Likewise.
25364         * modules/unistr/u32-strdup-tests: Likewise.
25365         * modules/unistr/u32-strlen-tests: Likewise.
25366         * modules/unistr/u32-strmblen-tests: Likewise.
25367         * modules/unistr/u32-strmbtouc-tests: Likewise.
25368         * modules/unistr/u32-strncat-tests: Likewise.
25369         * modules/unistr/u32-strncmp-tests: Likewise.
25370         * modules/unistr/u32-strncpy-tests: Likewise.
25371         * modules/unistr/u32-strnlen-tests: Likewise.
25372         * modules/unistr/u32-to-u16-tests: Likewise.
25373         * modules/unistr/u32-to-u8-tests: Likewise.
25374         * modules/unistr/u32-uctomb-tests: Likewise.
25375         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
25376         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
25377         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
25378         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
25379         * modules/uniwidth/u8-strwidth-tests: Likewise.
25380         * modules/uniwidth/u8-width-tests: Likewise.
25381         * modules/uniwidth/u16-strwidth-tests: Likewise.
25382         * modules/uniwidth/u16-width-tests: Likewise.
25383         * modules/uniwidth/u32-strwidth-tests: Likewise.
25384         * modules/uniwidth/u32-width-tests: Likewise.
25385         * modules/uniwidth/width-tests: Likewise.
25386
25387 2010-05-18  Richard Jones  <rjones@redhat.com>
25388
25389         doc: users.txt: list hivex
25390         * users.txt: Add hivex.
25391
25392 2010-05-18  Richard Jones  <rjones@redhat.com>
25393
25394         doc: users.txt: list febootstrap
25395         * users.txt: Add febootstrap.
25396
25397 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
25398
25399         bootstrap: fix an error when gnulib is not used as a git submodule
25400         * build-aux/bootstrap (gnulib_path): If its length is zero then
25401         assign "gnulib" to it.
25402         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
25403
25404 2010-05-16  Bruno Haible  <bruno@clisp.org>
25405
25406         Avoid autoconf warnings about AM_ICONV.
25407         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
25408         2.64.
25409
25410 2010-05-16  Bruno Haible  <bruno@clisp.org>
25411
25412         absolute-header: Make the macro usable in more situations.
25413         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
25414         from gl_ABSOLUTE_HEADER.
25415         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
25416
25417 2010-05-16  James Youngman  <jay@gnu.org>
25418
25419         doc: update users.txt
25420         * users.txt: Add CSSC.
25421
25422 2010-05-16  Jim Meyering  <meyering@redhat.com>
25423
25424         init.sh: fix an error in the previous change; add more comments
25425         * tests/init.sh: Compare exit code in loop against 9, not 2.
25426         Patch by Bruno Haible.
25427         Make the two tests more similar by adding an empty "then" clause.
25428         Add comments.
25429
25430         init.sh: avoid unnecessary shell re-exec
25431         * tests/init.sh: Improve the re-exec-required check to first test the
25432         current shell.  If it passes the test, do not search for a shell that
25433         does pass, and do not re-exec.  This test is particularly contorted to
25434         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
25435         of $(...) evokes a syntax error and causes immediate shell exit with
25436         status 2.  Bruno Haible reported that the re-exec made it impossible
25437         to single-step through any init.sh-using script.
25438
25439 2010-05-16  Bruno Haible  <bruno@clisp.org>
25440
25441         Fix collision between gnulib's and libintl's printf replacements.
25442         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
25443         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
25444         (printf): When using GNU C, map the __printf__ function to rpl_printf
25445         via __asm__. When not using GNU C, define rpl_printf instead of
25446         __printf__.
25447         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
25448         commit.
25449         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
25450         commit.
25451         * m4/asm-underscore.m4: New file.
25452         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
25453         * modules/stdio (Files): Add m4/asm-underscore.m4.
25454         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
25455         Reported by Ben Pfaff.
25456
25457 2010-05-16  Bruno Haible  <bruno@clisp.org>
25458
25459         verify: Avoid skipping the test on openSUSE 11.0.
25460         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
25461
25462 2010-05-13  Bruno Haible  <bruno@clisp.org>
25463
25464         Avoid useless warnings from G++.
25465         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
25466         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
25467         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
25468
25469 2010-05-11  Jim Meyering  <meyering@redhat.com>
25470
25471         maint.mk: tweak preceding change
25472         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
25473         regexps tighter by anchoring at EOL, and make the new group "shy"
25474         for slightly decreased overhead.
25475
25476 2010-05-11  Eric Blake  <eblake@redhat.com>
25477
25478         maint.mk: gnulib doesn't guarantee NSIG
25479         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
25480
25481 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
25482
25483         test-pwrite.c: Remove unused variable declaration.
25484         * tests/test-pwrite.c (main): Remove read_buf declaration.
25485
25486         Remove useless test-pwrite.sh file.
25487         * tests/test-pwrite.sh: Delete file.
25488         * modules/pwrite-tests: Remove references.
25489         Reported by Bruno Haible.
25490
25491 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
25492
25493         init.sh: fix a typo
25494         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
25495
25496 2010-05-10  Jim Meyering  <meyering@redhat.com>
25497
25498         maint.mk: avoid using a temporary file in the always-defined-macros check
25499         * top/maint.mk (.re-defmac): Remove rule.
25500         (gl_trap_): Remove definition.
25501         (sc_prohibit_always-defined_macros): Rewrite not to create and
25502         depend on a temporary file.  Instead, depend on GNU grep's ability
25503         to read a list of regular expressions from stdin when given "-f -".
25504
25505 2010-05-09  Bruno Haible  <bruno@clisp.org>
25506
25507         Update to GNU gettext 0.18, part 1.
25508         * m4/gettext.m4: Update to GNU gettext 0.18.
25509         * m4/intl.m4: Likewise.
25510         * m4/po.m4: Likewise.
25511         * modules/gettext (Files): Add m4/fcntl-o.m4.
25512         (configure.ac): Require gettext infrastructure from version 0.18.
25513
25514 2010-05-09  Jim Meyering  <meyering@redhat.com>
25515
25516         init.sh: enable MALLOC_PERTURB_
25517         * tests/init.sh: Enable glibc's malloc-perturbing option.
25518
25519         maint.mk: improve sc_cross_check_PATH_usage_in_tests
25520         With my recent change in init.sh from the two-line form:
25521             -#   : ${srcdir=.}
25522             -#   . "$srcdir/init.sh"; path_prepend_ .
25523             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
25524         I noticed that using the one-line form would cause this test
25525         to fail with a false-positive, or to stop working altogether,
25526         depending on whether help-version changed or all the tests did.
25527         * top/maint.mk (_hv_regex): Remove this definition.
25528         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
25529         (_hv_regex_strong): Use a stronger regex to check for conformance.
25530         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
25531         Give a separate diagnostic for lack of conforming use.
25532
25533         maint.mk: prohibit definition of symbols defined by gnulib
25534         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
25535         definition of symbols defined by gnulib.
25536
25537 2010-05-09  Bruno Haible  <bruno@clisp.org>
25538
25539         acl: Avoid test failure on Cygwin-hosted mingw.
25540         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
25541
25542 2010-05-09  Bruno Haible  <bruno@clisp.org>
25543
25544         error: Use system's fcntl function.
25545         * lib/error.c (fcntl): Undefine.
25546
25547 2010-05-09  Jim Meyering  <meyering@redhat.com>
25548
25549         verify: adjust formatting to be more consistent
25550         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
25551         argument-list '('s, and after one comma.
25552
25553 2010-05-09  Bruno Haible  <bruno@clisp.org>
25554
25555         error: More reliable output on mingw.
25556         * lib/error.c: Include <windows.h>.
25557         (is_open): New function.
25558         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
25559         defined.
25560
25561 2010-05-09  Bruno Haible  <bruno@clisp.org>
25562
25563         vasnprintf: Fix syntax errors in libintl build on mingw.
25564         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
25565         pad_ourselves and prec_ourselves after use.
25566
25567 2010-05-08  Bruno Haible  <bruno@clisp.org>
25568
25569         * lib/config.charset: Update comments for Cygwin 1.7.
25570         * lib/localcharset.c: Likewise.
25571
25572 2010-05-07  Jim Meyering  <meyering@redhat.com>
25573
25574         init.sh: improve comments
25575         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
25576         . "${srcdir=.}/init.sh"; path_prepend_ .
25577         Add a note about path_prepend_ and the alternative of using
25578         TESTS_ENVIRONMENT.
25579
25580 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
25581
25582         exclude: Unescape hashed patterns in wildcard mode.
25583         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
25584         to the hash list.
25585         * tests/test-exclude8.sh: New test case.
25586         * modules/exclude-tests: Add new test.
25587
25588 2010-05-05  Eric Blake  <eblake@redhat.com>
25589
25590         verify: automate tests
25591         * modules/verify-tests: New module.
25592         * tests/test-verify.sh: New file.
25593         * tests/test-verify.c: Guard each negative test with a unique id.
25594         Also avoid warning about unused left hand of comma expressions.
25595
25596 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
25597
25598         Further improvements to verify.h, suggested by Eric Blake.
25599         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
25600         the GL_* versions, to avoid collision with OpenGL.
25601         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
25602         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
25603         than testing merely whether it's defined.
25604
25605         Modify verify.h to pacify gcc -Wredundant_decls.
25606         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
25607         These use the prefix "GL_" since they're likely to be useful elsewhere.
25608         We may need to break them out into a different .h file.
25609         (__COUNTER__): Define to 0 if the compiler doesn't support it.
25610         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
25611         of verify_function__.
25612
25613 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
25614
25615         Tests for module pwrite.
25616         * modules/pwrite-tests: New file.
25617         * tests/test-pwrite.sh: New file.
25618         * tests/test-pwrite.c: New file.
25619
25620         New module pwrite.
25621         * lib/unistd.in.h (pwrite): New declaration.
25622         * lib/pwrite.c: New file, from glibc with modifications.
25623         * m4/pwrite.m4: New file.
25624         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
25625         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
25626         REPLACE_PWRITE.
25627         * modules/pwrite: New file.
25628         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
25629         REPLACE_PWRITE.
25630         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
25631         * doc/posix-functions/pwrite.texi: Mention the new module.
25632
25633 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
25634
25635         pread: Update documentation.
25636         * doc/posix-functions/pread.texi: Mention the 'pread' module.
25637
25638 2010-05-04  Eric Blake  <eblake@redhat.com>
25639
25640         docs: update cygwin progress
25641         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
25642         this bug.
25643         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
25644         Added in cygwin 1.7.2.
25645         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
25646         Likewise.
25647         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
25648         Likewise.
25649         * doc/glibc-functions/dup3.texi (dup3): Likewise.
25650         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
25651         * doc/glibc-functions/accept4.texi (accept4): Likewise.
25652         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
25653         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
25654         Mention nproc module.
25655         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
25656         bug in cygwin 1.7.5 addition.
25657         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
25658         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
25659         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
25660         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
25661         1.7.5.
25662         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
25663         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
25664         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
25665         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
25666         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
25667         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
25668         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
25669         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
25670         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
25671         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
25672         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
25673         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
25674         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
25675         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
25676         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
25677         Likewise.
25678         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
25679         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
25680         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
25681         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
25682         Likewise.
25683         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
25684         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
25685         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
25686         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
25687         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
25688         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
25689         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
25690         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
25691         Likewise.
25692         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
25693         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
25694         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
25695         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
25696         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
25697         Likewise.
25698         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
25699         Likewise.
25700         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
25701         Likewise.
25702         * doc/glibc-functions/xdrrec_endofrecord.texi
25703         (xdrrec_endofrecord): Likewise.
25704         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
25705         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
25706         Likewise.
25707         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
25708         Likewise.
25709
25710 2010-05-04  Jim Meyering  <meyering@redhat.com>
25711
25712         gendocs.sh: make its "-s FILE" option more useful
25713         * build-aux/gendocs.sh: When honoring the -s FILE option, update
25714         $PACKAGE to reflect the probably-different basename of "FILE".
25715
25716 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
25717
25718         bootstrap: don't ignore download_po_files failure
25719         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
25720         failure.
25721
25722 2010-05-03  Jim Meyering  <meyering@redhat.com>
25723
25724         maint.mk: allow to pass options to gendocs.sh
25725         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
25726         (gendocs_options_): New overridable variable.
25727
25728         gnu-web-doc-update: don't ignore configure or build failure
25729         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
25730
25731         announce-gen: backslash-escape '@'s in --help output
25732         * build-aux/announce-gen: Fix syntax errors.
25733
25734         maint.mk, announce-gen: allow project-specific announcement mail headers
25735         * top/maint.mk (translation_project_): Define default.
25736         (announcement_Cc_, announcement_mail_headers_): Likewise.
25737         (announcement): Invoke announce-gen with new --mail-headers option.
25738         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
25739
25740         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
25741         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
25742         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
25743         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
25744         line in the "err2" output file when running "make check" in verbose
25745         mode (i.e., with set -x enabled).
25746
25747 2010-05-03  Bruno Haible  <bruno@clisp.org>
25748
25749         wctob: Fix for weird platforms.
25750         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
25751         argument value.
25752
25753 2010-05-03  Jim Meyering  <meyering@redhat.com>
25754
25755         maint.mk: prohibit unwarranted use of <strings.h>
25756         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
25757         strings.h in a file that does not also use strcasecmp, strncasecmp,
25758         ffs or ffsll.
25759
25760         maint.mk: remove obsolete comments
25761         * top/maint.mk: Remove stale, commented-out rules.
25762
25763 2010-05-02  Bruno Haible  <bruno@clisp.org>
25764
25765         wcwidth: Declare also when it's aliased.
25766         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
25767         macro.
25768
25769 2010-05-02  Bruno Haible  <bruno@clisp.org>
25770
25771         Fix regression from 2010-04-25.
25772         * gnulib-tool (func_modules_transitive_closure): Check the status of
25773         all modules, not only of the tests that are of the form foo-tests where
25774         foo is a module.
25775
25776 2010-05-02  Bruno Haible  <bruno@clisp.org>
25777
25778         wctob: Work around nasty Cygwin 1.7.2 bug.
25779         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
25780         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
25781
25782 2010-05-01  Bruno Haible  <bruno@clisp.org>
25783
25784         fpurge: Sharper test.
25785         * tests/test-fpurge.c (main): Add one more ftell check.
25786         * modules/fpurge-tests (Depends-on): Add ftell.
25787         Suggested by Eric Blake.
25788
25789 2010-05-01  Bruno Haible  <bruno@clisp.org>
25790
25791         ftello: Another test.
25792         * tests/test-ftello3.c: New file.
25793         * modules/ftello-tests (Files): Add it.
25794         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
25795         MOSTLYCLEANFILES.
25796
25797         ftell: Another test.
25798         * tests/test-ftell3.c: New file.
25799         * modules/ftell-tests (Files): Add it.
25800         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
25801         MOSTLYCLEANFILES.
25802
25803 2010-05-01  Bruno Haible  <bruno@clisp.org>
25804
25805         ftell, ftello: Work around Solaris bug.
25806         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
25807         * lib/ftello.c: Include stdio-impl.h.
25808         (ftello): On Solaris, when _IOWRT is set, compute the result without
25809         looking at _IOREAD.
25810         * modules/ftello (Files): Add lib/stdio-impl.h.
25811         * doc/posix-functions/ftell.texi: Mention Solaris bug.
25812         * doc/posix-functions/ftello.texi: Likewise.
25813         Reported by Eric Blake.
25814
25815 2010-05-01  Bruno Haible  <bruno@clisp.org>
25816
25817         freading: Adapt to special meaning of _IOREAD flag on Solaris.
25818         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
25819         the _IOWRT flag is also set.
25820
25821 2010-05-01  Bruno Haible  <bruno@clisp.org>
25822
25823         Fix doc about a HP-UX stdio bug.
25824         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
25825         * doc/posix-functions/ftello.texi: Likewise.
25826
25827 2010-05-01  Bruno Haible  <bruno@clisp.org>
25828
25829         lseek test: Fix failure on Solaris.
25830         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
25831         output.
25832
25833 2010-04-30  Jim Meyering  <meyering@redhat.com>
25834
25835         bootstrap: don't ignore failure to generate po*/Makevars
25836         * build-aux/bootstrap (with_gettext): Don't ignore failure
25837         to create po/Makevars or runtime-po/Makevars.
25838
25839 2010-04-29  Eric Blake  <eblake@redhat.com>
25840
25841         headers: relax license to LGPLv2+
25842         * modules/fcntl-h (License): Relax license.
25843         * modules/getopt-posix (License): Likewise.
25844         * modules/locale (License): Likewise.
25845         * modules/math (License): Likewise.
25846         * modules/pty (License): Likewise.
25847         * modules/sched (License): Likewise.
25848         * modules/search (License): Likewise.
25849         * modules/spawn (License): Likewise.
25850         * modules/stdarg (License): Likewise.
25851         * modules/sysexits (License): Likewise.
25852
25853 2010-04-29  Jim Meyering  <meyering@redhat.com>
25854
25855         inttypes: relax license to LGPLv2+
25856         * modules/inttypes (License): Relax license.
25857
25858 2010-04-29  Simon Josefsson  <simon@josefsson.org>
25859
25860         * top/maint.mk (indent): Run twice to produce idempotent results.
25861
25862 2010-04-28  Bruno Haible  <bruno@clisp.org>
25863
25864         getdate: Generate getdate.c in the source directory.
25865         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
25866         MOSTLYCLEANFILES.
25867         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
25868
25869 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
25870
25871         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
25872         is not declared as a const *; avoid warnings in that case.
25873
25874 2010-04-28  Eric Blake  <eblake@redhat.com>
25875
25876         canonicalize-lgpl: avoid compiler warning
25877         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
25878         declaration' / 'extraneous semicolon' warning with some compilers.
25879         Reported by Andreas Gruenbacher.
25880
25881 2010-04-28  Jim Meyering  <meyering@redhat.com>
25882
25883         init.sh: ensure a more reliable exit status when exiting via trap
25884         * tests/init.sh (setup_): Don't rely on $? in signal handler.
25885         Inspired by patches from Dmitry V. Levin.
25886         Also trap on signal 3 (SIGQUIT).
25887
25888 2010-04-27  Bruno Haible  <bruno@clisp.org>
25889
25890         Update doc about utimes().
25891         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
25892         'utimens' module.
25893         Reported by Andreas Gruenbacher <agruen@suse.de>.
25894
25895 2010-04-27  Eric Blake  <eblake@redhat.com>
25896
25897         full-read, full-write: relax license
25898         * modules/full-read (License): Drop to LGPLv2+.
25899         * modules/full-write (License): Likewise.
25900         * modules/safe-read (License): Likewise.
25901         * modules/safe-write (License): Likewise.
25902
25903         pthread: mention library for linking
25904         * modules/pthread (Link): Mention $(LIB_PTHREAD).
25905
25906 2010-04-27  Jim Meyering  <meyering@redhat.com>
25907
25908         maint.mk: fix a bug introduced in last change
25909         * top/maint.mk (gl_assured_headers_): Now that all names are on
25910         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
25911         is not anchored to end of word, it should be adequate.
25912
25913         maint.mk: avoid side-effect in latest syntax-check
25914         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
25915         to run commands via $(shell...), and hence to incur cost only when
25916         the new rule is actually run.
25917
25918         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
25919         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
25920         and use that to create a regexp used to detect all #if HAVE_..._H uses.
25921         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
25922         (gl_assured_headers_, az_, AZ_): Define.
25923         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
25924
25925 2010-04-26  Jim Meyering  <jim@meyering.net>
25926             Bruno Haible  <bruno@clisp.org>
25927
25928         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
25929         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
25930         Prompted by an exchange with Gilles Espinasse.
25931
25932 2010-04-26  Jim Meyering  <meyering@redhat.com>
25933
25934         git-version-gen: aesthetic tweak
25935         * build-aux/git-version-gen: Use "$nl" rather than a literal,
25936         so that the command remains on a single line.
25937
25938 2010-04-26  Eric Blake  <eblake@redhat.com>
25939
25940         git-version-gen: allow use on EBCDIC hosts
25941         * build-aux/git-version-gen (dirty): Use literal rather than tying
25942         ourselves to ascii.
25943         Reported by Steve Goetze.
25944
25945 2010-04-25  Bruno Haible  <bruno@clisp.org>
25946
25947         netdb: Add support for GNULIB_POSIXCHECK.
25948         * lib/netdb.in.h: Include warn-on-use.h.
25949         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
25950         functions are used when GNULIB_POSIXCHECK is defined and the
25951         getaddrinfo module is not in use.
25952         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
25953         freeaddrinfo, gai_strerror, getnameinfo are declared.
25954         * modules/netdb (Depends-on): Add warn-on-use.
25955         (Makefile.am): Include warn-on-use.h in netdb.h.
25956
25957 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
25958
25959         build: avoid "make check" failure without .git/ directory
25960         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
25961         there is no .git/ directory.
25962
25963 2010-04-25  Bruno Haible  <bruno@clisp.org>
25964
25965         ptsname: Fix misuse of ttyname_r.
25966         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
25967         of errno.
25968
25969 2010-04-25  Bruno Haible  <bruno@clisp.org>
25970
25971         ttyname_r: Make it work on Solaris 10.
25972         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
25973         if the system function has the POSIX declaration. Test whether the
25974         function fails if the buffer is less than 128 bytes large.
25975         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
25976         system's ttyname_r function. Provide a reasonably large buffer.
25977         * modules/ttyname_r (Depends-on): Add extensions.
25978         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
25979
25980 2010-04-25  Bruno Haible  <bruno@clisp.org>
25981
25982         Use the 'extensions' module for some more functions on Solaris.
25983         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
25984         module.
25985         * doc/posix-functions/ctime_r.texi: Likewise.
25986         * doc/posix-functions/getgrgid_r.texi: Likewise.
25987         * doc/posix-functions/getgrnam_r.texi: Likewise.
25988         * doc/posix-functions/getpwnam_r.texi: Likewise.
25989         * doc/posix-functions/getpwuid_r.texi: Likewise.
25990         * doc/posix-functions/readdir_r.texi: Likewise.
25991         * doc/posix-functions/sigwait.texi: Likewise.
25992         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
25993         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
25994
25995 2010-04-25  Bruno Haible  <bruno@clisp.org>
25996
25997         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
25998         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
25999         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
26000         * lib/ttyname_r.c: Include <limits.h>.
26001         (ttyname_r): Define using the system's ttyname_r function, if it exists
26002         and not on Solaris.
26003         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
26004         set.
26005         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
26006         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
26007         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
26008         Reported by Simon Josefsson.
26009
26010 2010-04-25  Bruno Haible  <bruno@clisp.org>
26011
26012         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
26013         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
26014         * doc/posix-functions/ctime_r.texi: Likewise.
26015         * doc/posix-functions/getgrgid_r.texi: Likewise.
26016         * doc/posix-functions/getgrnam_r.texi: Likewise.
26017         * doc/posix-functions/getlogin_r.texi: Likewise.
26018         * doc/posix-functions/getpwnam_r.texi: Likewise.
26019         * doc/posix-functions/getpwuid_r.texi: Likewise.
26020         * doc/posix-functions/readdir_r.texi: Likewise.
26021         * doc/posix-functions/sigwait.texi: Likewise.
26022         * doc/posix-functions/ttyname_r.texi: Likewise.
26023         Reported by Simon Josefsson.
26024
26025 2010-04-25  Bruno Haible  <bruno@clisp.org>
26026
26027         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
26028         * gnulib-tool (func_usage): Document that --with-*-tests options apply
26029         also to --create-testdir.
26030         (func_acceptable): Don't consider the status of *-tests modules here.
26031         (func_modules_transitive_closure): Consider it here, before including a
26032         test module.
26033         (func_import, func_create_testdir): Set inc_all_direct_tests,
26034         inc_all_indirect_tests.
26035         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
26036         --create-testdir and --create-megatestdir.
26037
26038 2010-04-25  Bruno Haible  <bruno@clisp.org>
26039
26040         gnulib-tool: Add --without-*-tests options.
26041         * gnulib-tool (func_usage): Document the --without-*-tests options.
26042         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
26043         excl_unportable_tests): New variables.
26044         Fail if they are specified with --import or --update.
26045         (func_acceptable): Respect the excl_*_tests variables.
26046         (func_import): Set the excl_*_tests variables to empty.
26047
26048 2010-04-25  Simon Josefsson  <simon@josefsson.org>
26049             Bruno Haible  <bruno@clisp.org>
26050
26051         Work around a MacOS X 10.4 bug with openpty.
26052         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
26053         * tests/test-openpty.c (main): Close the master side explicitly.
26054
26055 2010-04-25  Bruno Haible  <bruno@clisp.org>
26056
26057         strnlen: Fix a C++ test error on MacOS X and Solaris.
26058         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
26059         the function is not declared.
26060         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
26061         Simon Josefsson.
26062
26063 2010-04-24  Bruno Haible  <bruno@clisp.org>
26064
26065         Avoid a gcc warning.
26066         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
26067         of correct type for %08lx directive.
26068         Reported by Eric Blake.
26069
26070 2010-04-24  Bruno Haible  <bruno@clisp.org>
26071
26072         vasnprintf: Correct errno value in case of out-of-memory.
26073         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
26074         or sprintf. Use the errno value from SNPRINTF or sprintf.
26075         Reported by Ian Beckwith <ianb@erislabs.net>.
26076
26077 2010-04-24  Bruno Haible  <bruno@clisp.org>
26078
26079         ansi-c++-opt: Find correct compiler when cross-compiling.
26080         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
26081         AC_CHECK_PROGS.
26082         Reported by Simon Josefsson.
26083
26084 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
26085
26086         vc-list-files: Add support for subversion
26087         * build-aux/vc-list-files: Use "svn list" to generate the list of
26088         files controlled by subversion.
26089
26090 2010-04-23  Jim Meyering  <meyering@redhat.com>
26091
26092         vc-list-files tests: convert to use init.sh
26093         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
26094         path_prepend_.
26095         Use Exit, not exit.
26096         Use skip_ rather than open coding it.
26097         Remove trap set-up and compare definitions.
26098         * tests/test-vc-list-files-git.sh: Likewise.
26099         * modules/vc-list-files-tests (Files): Add tests/init.sh.
26100
26101 2010-04-22  Simon Josefsson  <simon@josefsson.org>
26102
26103         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
26104         backup files.
26105
26106 2010-04-21  Simon Josefsson  <simon@josefsson.org>
26107
26108         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
26109
26110 2010-04-20  Eric Blake  <eblake@redhat.com>
26111
26112         tests: be robust to ignored SIGPIPE
26113         * tests/test-select-in.sh: Consume all output.
26114         * tests/test-lseek.sh: Check correct exit status, while avoiding
26115         EPIPE.
26116
26117 2010-04-20  Simon Josefsson  <simon@josefsson.org>
26118             Bruno Haible  <bruno@clisp.org>
26119
26120         visibility: Don't use -fvisibility if it leads to a warning.
26121         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
26122         yes, don't pretend that visibility works if it leads to a warning.
26123         Reported by Mike Gran <spk121@yahoo.com>.
26124
26125 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
26126
26127         * build-aux/bootstrap: Use "git -h" for testing for supported options
26128         instead of "git --help".  The short-form option only shows a summary,
26129         and doesn't layout the full man page.  Grep for the full option name
26130         in the summary, too.
26131
26132 2010-04-19  Bruno Haible  <bruno@clisp.org>
26133
26134         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
26135         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
26136         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
26137         mention of RELOCATABLE_STRIP.
26138         Reported by Sylvain Beucler <beuc@beuc.net>.
26139
26140 2010-04-19  Bruno Haible  <bruno@clisp.org>
26141
26142         * lib/diffseq.h: Fix typo in comment.
26143         Reported by Eric Blake.
26144
26145 2010-04-19  Bruno Haible  <bruno@clisp.org>
26146
26147         ioctl: Move autoconf macro to a .m4 file.
26148         * m4/ioctl.m4: New file, extracted from modules/ioctl.
26149         * modules/ioctl (Files): Add it.
26150         (configure.ac): Simply invoke gl_FUNC_IOCTL.
26151         Reported by Ian Beckwith <ianb@erislabs.net>.
26152
26153 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
26154             Bruno Haible  <bruno@clisp.org>
26155
26156         diffseq: Accommodate use-case with abstract arrays.
26157         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
26158         is not defined.
26159         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
26160         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
26161
26162 2010-04-18  Bruno Haible  <bruno@clisp.org>
26163
26164         * doc/posix-headers/stdbool.texi: More precise wording.
26165
26166 2010-04-17  Jim Meyering  <meyering@redhat.com>
26167
26168         maint.mk: use gnu-style indentation in an embedded perl script
26169         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
26170         Rename variable: s/two/last_two_bytes/
26171
26172 2010-04-16  Eric Blake  <eblake@redhat.com>
26173
26174         test-stdbool: skip test that fails with Solaris CC
26175         * tests/test-stdbool.c (f): Skip test that causes compilation
26176         error under buggy C++ compiler.
26177         * lib/stdbool.in.h: Document the limitation.
26178         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
26179
26180         setenv: allow compilation with C++
26181         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
26182         register keyword.
26183
26184         stdint: allow test to pass with C++
26185         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
26186
26187         getopt: allow compilation with C++
26188         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
26189         struct.
26190         * lib/getopt.c (_getopt_internal_r): Use correct type.
26191         Reported by Dagobert Michelson, via Joel E. Denny.
26192
26193 2010-04-16  Bruno Haible  <bruno@clisp.org>
26194
26195         Override netdb.h always.
26196         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
26197         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
26198         Reported by Ludovic Courtès <ludo@gnu.org>.
26199
26200 2010-04-15  Bruno Haible  <bruno@clisp.org>
26201
26202         openpty: Fix mistake from 2010-03-21.
26203         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
26204         Reported by Simon Josefsson.
26205
26206 2010-04-15  Eric Blake  <eblake@redhat.com>
26207
26208         test-forkpty: fix expected signature
26209         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
26210         Reported by Simon Josefsson.
26211
26212 2010-04-15  Jim Meyering  <meyering@redhat.com>
26213
26214         maint.mk: texinfo_suffix_re_: correct the default regexp
26215         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
26216
26217         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
26218         make it configurable via texinfo_suffix_re_.
26219
26220 2010-04-14  Eric Blake  <eblake@redhat.com>
26221
26222         strtok_r: relax license to LGPLv2+
26223         * modules/strtok_r (License): Relax license.
26224         Reported by Matthias Bolte.
26225
26226 2010-04-14  Simon Josefsson  <simon@josefsson.org>
26227
26228         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
26229         version 1.4.4 by default instead of requiring the libgcrypt
26230         version used during build.  This makes it possible to use the
26231         application with older but still binary compatible libgcrypt
26232         versions.
26233
26234 2010-04-13  Eric Blake  <eblake@redhat.com>
26235
26236         getopt-gnu: match recent glibc fixes and posix ruling
26237         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
26238         '+' handling, when requesting extensions.
26239         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
26240         'W;' handling.
26241         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
26242         * doc/posix-functions/getopt.texi (getopt): Document this.
26243         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
26244         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26245         Likewise.
26246
26247         getopt: merge bug fixes from glibc
26248         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
26249         diagnostics.  Honor '+:' correctly.  Reject ';'.
26250
26251         getopt-posix: detect MacOS bug
26252         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
26253         optind when missing a required argument.
26254         * doc/posix-functions/getopt.texi (getopt): Document the bug.
26255         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
26256         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
26257         Likewise.
26258
26259         getopt-posix: avoid spurious failure on Solaris
26260         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
26261         an indicator that setting optind=1 is sufficient for reset.
26262
26263         getopt-posix: avoid spurious failure on FreeBSD
26264         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
26265         in POSIX mode, since the m4 test uses it.
26266
26267         gnulib-tool: silence warning on BSD sh
26268         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
26269
26270 2010-04-13  Jim Meyering  <meyering@redhat.com>
26271
26272         doc: users.txt: GNU patch now uses gnulib
26273         * users.txt: Add patch.
26274
26275 2010-04-12  Jim Meyering  <meyering@redhat.com>
26276
26277         maint.mk: generate more concise timing data for syntax-check rules
26278         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
26279         " done" from each line that reports a syntax-check test duration.
26280
26281 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
26282
26283         git-version-gen: use "git update-index..." rather than "git status"
26284         * build-aux/git-version-gen: Use git update-index --refresh, not
26285         "git status".  With some versions of git, "git status" would fail
26286         to update the index and result in an unwarranted "-dirty" suffix.
26287
26288 2010-04-11  Jim Meyering  <meyering@redhat.com>
26289
26290         openat: correct formatting (no semantic change)
26291         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
26292         Suggested by Bruno Haible.
26293
26294 2010-04-11  Bruno Haible  <bruno@clisp.org>
26295
26296         Stricter declaration checking in testdirs.
26297         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
26298         If for_tests is true, augment AM_CPPFLAGS to define
26299         GNULIB_STRICT_CHECKING.
26300         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
26301         GNULIB_STRICT_CHECKING is defined, verify that the function is
26302         declared.
26303
26304 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
26305             Bruno Haible  <bruno@clisp.org>
26306
26307         libunistring: Improve configure output.
26308         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
26309         Don't say "consider installing GNU libunistring" when checking again
26310         with libiconv.
26311
26312 2010-04-11  Bruno Haible  <bruno@clisp.org>
26313
26314         libunistring: Correct value of $LTLIBUNISTRING.
26315         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
26316         correct the value of $LTLIBUNISTRING.
26317
26318 2010-04-11  Bruno Haible  <bruno@clisp.org>
26319
26320         havelib: Add static libraries to LIBS in the right order.
26321         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
26322         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
26323
26324 2010-04-11  Bruno Haible  <bruno@clisp.org>
26325
26326         libunistring: Detect libunistring also when it depends on libiconv.
26327         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
26328         the second AC_LIB_HAVE_LINKFLAGS invocation.
26329
26330 2010-04-11  James Youngman  <jay@gnu.org>
26331
26332         close-stream: declare local scalars to be "const"
26333         * lib/close-stream.c (close_stream): Make boolean variables const
26334         to document the fact that we set but do not change them.
26335
26336 2010-04-11  Bruno Haible  <bruno@clisp.org>
26337
26338         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
26339
26340 2010-04-11  Jim Meyering  <meyering@redhat.com>
26341
26342         maint.mk: don't include dist-check.mk
26343         * top/maint.mk: Remove bogus include directive.
26344
26345         maint.mk: improve empty-line-at-EOF check
26346         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
26347         solution, rather than tail+Perl-based one.  The latter would read
26348         a few kilobytes from the end of each file, and did not handle empty
26349         files properly.
26350
26351         maint.mk: print the elapsed time for each syntax-check rule
26352         * top/maint.mk (sc_m_rules_): Save start time in a file.
26353         (sc_z_rules_): New rules: remove temp file and print elapsed time.
26354         (local-check): Interpose the .z rules
26355
26356 2010-04-11  Jim Meyering  <meyering@redhat.com>
26357
26358         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
26359         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
26360         empty file with one that ends in an empty line.
26361
26362 2010-04-10  Bruno Haible  <bruno@clisp.org>
26363
26364         mkdir: Make it work on mingw64.
26365         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
26366         * lib/mkdir.c: Update comment.
26367         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
26368
26369 2010-04-10  Bruno Haible  <bruno@clisp.org>
26370
26371         Don't override improved macro from newer autoconf.
26372         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
26373         autoconf >= 2.62.
26374         Reported by Joel E. Denny <jdenny@clemson.edu>.
26375
26376 2010-04-10  Jim Meyering  <meyering@redhat.com>
26377
26378         maint.mk: new syntax-check rule: prohibit empty lines at end of file
26379         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
26380
26381         maint.mk: correct a diagnostic
26382         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
26383         in diagnostic; now use $prohibit.
26384
26385 2010-04-10  Bruno Haible  <address@hidden>
26386
26387         fchownat: Fix a C++ test error on Solaris 8.
26388         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
26389         the function does not exist.
26390
26391 2010-04-10  Bruno Haible  <bruno@clisp.org>
26392
26393         vasnprintf: Add more tests.
26394         * tests/test-vasnprintf-posix.c: Include <errno.h>.
26395         (test_function): Test converting an invalid wide string.
26396
26397         vasnprintf: Correct handling of unconvertible wide string arguments.
26398         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
26399         VASNPRINTF.
26400         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
26401         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
26402         smaller than the expected maximum need for the directive. Set errno to
26403         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
26404         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
26405         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
26406         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
26407         * modules/vasnprintf (Files): Add m4/printf.m4.
26408         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26409
26410 2010-04-10  Bruno Haible  <bruno@clisp.org>
26411
26412         vasnprintf: Fix crash in %ls directive.
26413         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
26414         string is passed as argument to %ls, with no precision and no width.
26415         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26416
26417 2010-04-10  Bruno Haible  <bruno@clisp.org>
26418
26419         vasnprintf: Fix multiple test failures on mingw.
26420         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
26421         _snprintf, or snwprintf, not _snwprintf.
26422
26423 2010-04-10  Bruno Haible  <bruno@clisp.org>
26424
26425         write: Fix a C++ test error on mingw.
26426         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
26427
26428 2010-04-10  Bruno Haible  <bruno@clisp.org>
26429
26430         vasnprintf test: Reduce code duplication.
26431         * tests/test-vasnprintf.c (test_function): New function, extracted from
26432         test_vasnprintf.
26433         (test_vasnprintf, test_asnprintf): Invoke it.
26434
26435 2010-04-10  Bruno Haible  <bruno@clisp.org>
26436
26437         strnlen: Fix warning in C++ mode on MacOS X.
26438         * lib/string.in.h (strnlen): Use the modern idiom.
26439         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
26440         defining strnlen as a macro already in <config.h>.
26441         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26442         REPLACE_STRNLEN.
26443         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
26444         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26445
26446 2010-04-08  James Youngman  <jay@gnu.org>
26447
26448         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
26449         the example.
26450
26451 2010-04-09  Jim Meyering  <meyering@redhat.com>
26452
26453         maint.mk: print better diagnostic when there is no $(_hv_file)
26454         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
26455         announce that when $(_hv_file) (aka help-version) does not exist.
26456
26457         init.sh: run tr in the "C" locale to avoid multibyte interpretation
26458         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
26459         not try to interpret its random input bytes.  Jarno Rajahalme reported
26460         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
26461         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
26462         (mktempd_): Likewise, just in case.
26463
26464         ftruncate: add two years to projected module removal date: 2012
26465         * m4/ftruncate.m4: Adjust comments.
26466
26467         ftruncate: mark module as obsolete; even MinGW provides it, now
26468         * modules/ftruncate (Status): Obsolete.
26469         (Notice): Say that.
26470         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
26471         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
26472
26473 2010-04-08  Bruno Haible  <bruno@clisp.org>
26474
26475         Fix side effects from tests-related modules.
26476         * modules/dprintf-posix (Comment): New section.
26477         * modules/fprintf-posix (Comment): Likewise.
26478         * modules/obstack-printf-posix (Comment): Likewise.
26479         * modules/printf-posix (Comment): Likewise.
26480         * modules/snprintf-posix (Comment): Likewise.
26481         * modules/sprintf-posix (Comment): Likewise.
26482         * modules/vasnprintf-posix (Comment): Likewise.
26483         * modules/vasprintf-posix (Comment): Likewise.
26484         * modules/vdprintf-posix (Comment): Likewise.
26485         * modules/vfprintf-posix (Comment): Likewise.
26486         * modules/vprintf-posix (Comment): Likewise.
26487         * modules/vsnprintf-posix (Comment): Likewise.
26488         * modules/vsprintf-posix (Comment): Likewise.
26489         * modules/xprintf-posix (Comment): Likewise.
26490         * modules/xvasprintf-posix (Comment): Likewise.
26491         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
26492         * modules/floorf-tests (Depends-on): Likewise.
26493         * modules/round-tests (Depends-on): Likewise.
26494         * modules/roundf-tests (Depends-on): Likewise.
26495         * modules/trunc-tests (Depends-on): Likewise.
26496         * modules/truncf-tests (Depends-on): Likewise.
26497         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
26498         'fprintf-posix' module is not present.
26499         * tests/test-floorf2.c (check): Likewise.
26500         * tests/test-trunc2.c (check): Likewise.
26501         * tests/test-truncf2.c (check): Likewise.
26502         * tests/test-round2.c (equal): Likewise.
26503         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
26504
26505 2010-04-07  Karl Berry  <karl@gnu.org>
26506
26507         * config/srclist.txt,
26508         * config/srclistvars.sh,
26509         * config/srclist-update: doc fixes.
26510
26511 2010-04-07  Jim Meyering  <meyering@redhat.com>
26512
26513         maint.mk: add a PATH crosschecking syntax-check rule
26514         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
26515         Useful if you use a test like the one in help-version (coreutils,
26516         diffutils, grep, gzip) that ensures $(VERSION) matches what is
26517         printed by prog --version.
26518
26519 2010-04-06  Bruno Haible  <bruno@clisp.org>
26520
26521         Fix link error on mingw.
26522         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
26523         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
26524
26525 2010-04-06  Bruno Haible  <bruno@clisp.org>
26526
26527         Assume rmdir exists.
26528         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
26529
26530 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
26531
26532         doc: update users.txt
26533         * users.txt: Add gcal.
26534
26535 2010-04-06  Jim Meyering  <meyering@redhat.com>
26536
26537         init.sh: simply unset TMPDIR rather than risking env -i
26538         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
26539         although it probably works fine on all Unix-based systems, some
26540         systems (Cygwin?) cannot tolerate a totally cleared environment.
26541         Suggestion from Eric Blake.
26542
26543 2010-04-06  Jim Meyering  <meyering@redhat.com>
26544
26545         init.sh: portability fix: use env's POSIX-specified -i option not -u
26546         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
26547         than unportable env -u.  Solaris 5.11's env lacks support for -u.
26548
26549 2010-04-05  Bruno Haible  <bruno@clisp.org>
26550
26551         btowc: Work around Cygwin 1.7.2 bug.
26552         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
26553         does not map NUL to 0.
26554         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
26555
26556 2010-04-05  Bruno Haible  <bruno@clisp.org>
26557
26558         Make the multithread modules work on Cygwin 1.7.2.
26559         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
26560         imported symbols can be declared weak, so that it returns "no" on
26561         Cygwin 1.7.2.
26562
26563 2010-04-05  Bruno Haible  <bruno@clisp.org>
26564
26565         Use the module 'strncat'.
26566         * modules/unistr/u8-strncat (Depends-on): Add strncat.
26567
26568         Tests for module 'strncat'.
26569         * modules/strncat-tests: New file.
26570         * tests/test-strncat.c: New file.
26571
26572         New module 'strncat'.
26573         * lib/string.in.h (strncat): New declaration.
26574         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
26575         * m4/strncat.m4: New file, based on m4/memchr.m4.
26576         * modules/strncat: New file.
26577         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
26578         is declared.
26579         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
26580         REPLACE_STRNCAT.
26581         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
26582         REPLACE_STRNCAT.
26583         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
26584         module.
26585         * tests/test-string-c++.cc: Check signature of strncat.
26586
26587 2010-04-05  Jim Meyering  <meyering@redhat.com>
26588
26589         xstrtoumax-tests: convert to use init.sh
26590         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
26591         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26592         Use Exit, not exit.
26593         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26594
26595         xstrtoimax-tests: convert to use init.sh
26596         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
26597         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26598         Use Exit, not exit.
26599         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26600
26601 2010-04-05  Bruno Haible  <bruno@clisp.org>
26602
26603         sys_socket: Avoid #define replacements in C++ mode.
26604         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
26605         warning to the function if possible, rather than #defining the symbol
26606         to a dysfunctional alias.
26607
26608 2010-04-05  Bruno Haible  <bruno@clisp.org>
26609
26610         fseeko: Fix C++ test error on mingw.
26611         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
26612         gl_FUNC_FSEEKO.
26613         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
26614         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
26615         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
26616         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
26617
26618 2010-04-05  Bruno Haible  <bruno@clisp.org>
26619
26620         duplocale: Improve test output.
26621         * tests/test-duplocale.c (main): Print reason for skipped test.
26622
26623 2010-04-05  Bruno Haible  <bruno@clisp.org>
26624
26625         Assume rmdir exists.
26626         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
26627         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
26628
26629 2010-04-05  Bruno Haible  <bruno@clisp.org>
26630
26631         Fix link error on Solaris 8 with cc.
26632         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
26633
26634 2010-04-05  Bruno Haible  <bruno@clisp.org>
26635
26636         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
26637         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
26638
26639 2010-04-05  Bruno Haible  <bruno@clisp.org>
26640
26641         vasprintf: Update documentation.
26642         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
26643
26644 2010-04-05  Bruno Haible  <bruno@clisp.org>
26645
26646         ptsname: Improve test.
26647         * tests/test-ptsname.c (main): Also try the various master names of BSD
26648         systems.
26649
26650 2010-04-05  Bruno Haible  <bruno@clisp.org>
26651
26652         memchr: Avoid a possible C++ test error.
26653         * lib/string.in.h (memchr): Provide declaration if function is missing.
26654         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
26655         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
26656         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
26657         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
26658
26659 2010-04-05  Bruno Haible  <bruno@clisp.org>
26660
26661         strtok_r: Improve idiom.
26662         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
26663         AC_LIBOBJ is used.
26664
26665 2010-04-05  Bruno Haible  <bruno@clisp.org>
26666
26667         strdup: Improve idiom.
26668         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
26669         AC_LIBOBJ is used.
26670         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
26671         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
26672         when AC_LIBOBJ is used.
26673
26674 2010-04-05  Bruno Haible  <bruno@clisp.org>
26675
26676         mbsinit, mbrtowc, wcrtomb: Improve idioms.
26677         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
26678         don't set REPLACE_MBSINIT to 1.
26679         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
26680         don't set REPLACE_MBRTOWC to 1.
26681         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
26682         exist, don't set REPLACE_MBSRTOWCS to 1.
26683         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
26684         exist, don't set REPLACE_MBSNRTOWCS to 1.
26685         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
26686         don't set REPLACE_WCRTOMB to 1.
26687         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
26688         exist, don't set REPLACE_WCSRTOMBS to 1.
26689         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
26690         exist, don't set REPLACE_WCSNRTOMBS to 1.
26691
26692 2010-04-05  Bruno Haible  <bruno@clisp.org>
26693
26694         ldexpl: Improve idiom.
26695         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
26696         make sure to set HAVE_DECL_LDEXPL to 0.
26697
26698 2010-04-05  Jim Meyering  <meyering@redhat.com>
26699
26700         xstrtol-tests: convert to use init.sh
26701         * modules/xstrtol-tests (Files): Add tests/init.sh.
26702         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26703         Use Exit, not exit.
26704         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26705
26706         atexit-tests: convert to use init.sh
26707         * modules/atexit-tests (Files): Add tests/init.sh.
26708         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
26709         Use Exit, not exit.
26710         Remove uses of $EXEEXT and "./" to run a program in the current dir.
26711
26712         init.sh: fix typo
26713         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
26714
26715         init.sh: make it easier for a test script to write to the tty, ...
26716         when using automake's parallel-tests mode.
26717         * tests/init.sh (stderr_fileno_): Define overridable variable.
26718         (warn_): New function, to use it.
26719         (fail_, skip_, framework_failure_): Use warn_.
26720
26721 2010-04-04  Bruno Haible  <bruno@clisp.org>
26722
26723         btowc: Avoid warning.
26724         * lib/btowc.c: Include <stdlib.h>.
26725         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
26726
26727 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
26728             Bruno Haible  <bruno@clisp.org>
26729
26730         wchar: Port to NetBSD 1.5.
26731         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
26732         * lib/wctype.in.h (WEOF): Likewise.
26733
26734 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
26735             Bruno Haible  <bruno@clisp.org>
26736
26737         Port extended stdio to NetBSD 1.5.
26738         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
26739         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
26740         older.
26741
26742 2010-04-04  Bruno Haible  <bruno@clisp.org>
26743
26744         string: Remove unused substitution.
26745         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
26746         HAVE_DECL_STRERROR.
26747         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
26748
26749 2010-04-04  Bruno Haible  <bruno@clisp.org>
26750
26751         strtod: Avoid a possible C++ test error.
26752         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
26753         set REPLACE_STRTOD.
26754
26755 2010-04-04  Bruno Haible  <bruno@clisp.org>
26756
26757         strerror: Update documentation.
26758         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
26759
26760 2010-04-04  Bruno Haible  <bruno@clisp.org>
26761
26762         stdio: Fix some C++ test errors on Solaris 8 with GCC.
26763         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
26764         _GL_CXXALIAS_SYS_CAST.
26765
26766 2010-04-04  Bruno Haible  <bruno@clisp.org>
26767
26768         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
26769         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
26770         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
26771         REPLACE_FREXPL to 1.
26772         * doc/posix-functions/frexpl.texi: Update documentation.
26773
26774 2010-04-04  Bruno Haible  <bruno@clisp.org>
26775
26776         math: Fix some C++ test errors on Solaris 8 and Cygwin.
26777         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
26778
26779 2010-04-04  Bruno Haible  <bruno@clisp.org>
26780
26781         Implement nanosleep for native Windows.
26782         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
26783
26784 2010-04-04  Bruno Haible  <bruno@clisp.org>
26785
26786         math: Fix some C++ test errors on Solaris 8.
26787         * lib/math.in.h (truncf, trunc): Use simpler idiom.
26788
26789 2010-04-04  Bruno Haible  <bruno@clisp.org>
26790
26791         math: Fix some C++ test errors on Cygwin.
26792         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
26793         truncl): Provide declaration if the system does not have it.
26794         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
26795         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
26796         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
26797         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
26798         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
26799         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
26800         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
26801         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
26802         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
26803         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
26804         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
26805         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
26806         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
26807         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
26808         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
26809         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
26810         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
26811         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
26812         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
26813         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
26814         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
26815         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
26816
26817 2010-04-04  Bruno Haible  <bruno@clisp.org>
26818
26819         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
26820         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
26821         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
26822         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
26823         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
26824         * m4/isinf.m4 (gl_ISINF): Likewise.
26825         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
26826
26827 2010-04-04  Bruno Haible  <bruno@clisp.org>
26828
26829         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
26830         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
26831
26832 2010-04-04  Bruno Haible  <bruno@clisp.org>
26833
26834         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
26835         * modules/tmpfile (configure.ac): Update.
26836
26837         tmpfile: Fix C++ test error on mingw.
26838         * lib/stdio.in.h (tmpfile): New declaration.
26839         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
26840         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
26841         * modules/tmpfile (Depends-on): Add stdio.
26842         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
26843         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
26844         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
26845         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
26846         REPLACE_TMPFILE.
26847         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
26848
26849 2010-04-04  Bruno Haible  <bruno@clisp.org>
26850
26851         ioctl: Fix C++ test error on mingw.
26852         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
26853         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
26854         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
26855
26856 2010-04-03  Bruno Haible  <bruno@clisp.org>
26857
26858         wcwidth: Fix C++ test error on mingw.
26859         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
26860         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
26861         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
26862
26863 2010-04-03  Bruno Haible  <bruno@clisp.org>
26864
26865         nanosleep: Fix C++ test error on mingw.
26866         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
26867         * lib/time.in.h (nanosleep): Use modern idiom.
26868         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
26869         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
26870         REPLACE_NANOSLEEP to 1.
26871         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
26872         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
26873
26874 2010-04-03  Bruno Haible  <bruno@clisp.org>
26875
26876         strptime: Fix C++ test error on mingw.
26877         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
26878         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
26879         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
26880         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
26881         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
26882         not REPLACE_STRPTIME.
26883         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
26884         REPLACE_STRPTIME.
26885
26886 2010-04-03  Bruno Haible  <bruno@clisp.org>
26887
26888         timegm: Fix C++ test error on mingw.
26889         * lib/time.in.h (timegm): Use modern idiom.
26890         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
26891         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
26892         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
26893         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
26894
26895 2010-04-03  Bruno Haible  <bruno@clisp.org>
26896
26897         timegm: Assume declaration if function exists.
26898         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
26899         if it exists. Don't clobber ac_cv_func_timegm.
26900
26901 2010-04-03  Bruno Haible  <bruno@clisp.org>
26902
26903         time_r: Fix C++ test error on mingw.
26904         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
26905         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
26906         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
26907         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
26908         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
26909
26910 2010-04-03  Bruno Haible  <bruno@clisp.org>
26911
26912         time_r: Minor updates.
26913         * modules/time_r (Description): Mention the provided functions.
26914         * lib/time_r.c: Don't include <string.h>.
26915         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
26916         * doc/posix-functions/localtime_r.texi: Likewise.
26917
26918 2010-04-03  Bruno Haible  <bruno@clisp.org>
26919
26920         time: Fix regression introduced on 2010-03-08.
26921         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
26922         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
26923
26924 2010-04-03  Jim Meyering  <meyering@redhat.com>
26925
26926         maint.mk: don't silently disable project-specific syntax-check rules
26927         * top/maint.mk (_prohibit_regexp): Define, to help people realize
26928         that they need to convert their project-specific syntax-check rules
26929         to use the new _sc_search_regexp.
26930
26931 2010-04-03  Bruno Haible  <bruno@clisp.org>
26932
26933         fchdir: Fix regression introduced on 2010-03-08.
26934         * lib/unistd.in.h (fchdir): Fix declaration.
26935         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
26936         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
26937         REPLACE_FCHDIR.
26938         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
26939         REPLACE_FCHDIR.
26940
26941 2010-04-03  Bruno Haible  <bruno@clisp.org>
26942
26943         getpagesize: Fix C++ test error on mingw.
26944         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
26945         system does not declare the function.
26946         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
26947         declared.
26948         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
26949         HAVE_DECL_GETPAGESIZE.
26950         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
26951
26952 2010-04-03  Bruno Haible  <bruno@clisp.org>
26953
26954         stdio: Make C++ tests work on mingw.
26955         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
26956         does not declare the function.
26957
26958 2010-04-03  Bruno Haible  <bruno@clisp.org>
26959
26960         ftello: Fix C++ test error on mingw.
26961         * lib/stdio.in.h (ftello): Use modern idiom.
26962         * lib/ftello.c (ftello): Renamed from rpl_ftello.
26963         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
26964         is missing and that it needs to be replaced.
26965         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
26966         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
26967         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
26968
26969 2010-04-03  Bruno Haible  <bruno@clisp.org>
26970
26971         fseeko: Fix C++ test error on mingw.
26972         * lib/stdio.in.h (fseeko): Use modern idiom.
26973         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
26974         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
26975         is missing and that it needs to be replaced.
26976         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
26977         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
26978         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
26979
26980 2010-04-03  Bruno Haible  <bruno@clisp.org>
26981
26982         mkstemp: Fix C++ test error on mingw.
26983         * lib/stdlib.in.h (mkstemp): Use modern idiom.
26984         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
26985         function is missing and that it needs to be replaced.
26986         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
26987         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
26988
26989 2010-04-03  Bruno Haible  <bruno@clisp.org>
26990
26991         stpncpy: Fix C++ test error on mingw.
26992         * lib/string.in.h (stpncpy): Use modern idiom.
26993         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
26994         function is missing and that it needs to be replaced.
26995         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
26996         REPLACE_STPNCPY.
26997         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
26998
26999 2010-04-03  Bruno Haible  <bruno@clisp.org>
27000
27001         sys_stat: Fix C++ test error on mingw.
27002         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
27003         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
27004
27005 2010-04-03  Bruno Haible  <bruno@clisp.org>
27006
27007         pty: Update doc.
27008         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
27009
27010 2010-04-03  Bruno Haible  <bruno@clisp.org>
27011
27012         unistd: Fix C++ test error on mingw.
27013         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
27014
27015 2010-04-03  Bruno Haible  <bruno@clisp.org>
27016
27017         Update doc regarding mingw.
27018         * doc/glibc-functions/openpty.texi: Update regarding mingw.
27019         * doc/glibc-functions/login_tty.texi: Likewise.
27020         * doc/glibc-functions/forkpty.texi: Likewise.
27021
27022 2010-04-03  Bruno Haible  <bruno@clisp.org>
27023
27024         stdlib: Avoid compilation failure of c-strtold on mingw.
27025         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
27026
27027 2010-04-03  Bruno Haible  <bruno@clisp.org>
27028
27029         locale: Make C++ tests work on Cygwin and mingw.
27030         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
27031         cannot provide the function.
27032         Reported by Simon Josefsson.
27033
27034 2010-04-03  Bruno Haible  <bruno@clisp.org>
27035
27036         localename: Port to MacOS X 10.6.
27037         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
27038         memory layout of the locales in MacOS X 10.6 as well.
27039         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
27040
27041 2010-04-02  Bruno Haible  <bruno@clisp.org>
27042
27043         gnulib-tool: Ensure that long-running tests are executed last.
27044         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
27045         running tests after the one for the other tests.
27046
27047 2010-04-02  Bruno Haible  <bruno@clisp.org>
27048
27049         gnulib-tool: Ensure the tests in the main directory are executed first.
27050         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
27051         start with the current directory.
27052
27053 2010-04-02  Bruno Haible  <bruno@clisp.org>
27054
27055         Tests for module 'havelib', moved here from GNU gettext.
27056         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
27057         modifications.
27058         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
27059         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
27060         with modifications.
27061         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
27062         modifications.
27063         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
27064         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
27065         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
27066         with modifications.
27067         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
27068         with modifications.
27069         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
27070         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
27071         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
27072         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
27073         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
27074         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
27075         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
27076         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
27077         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
27078         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
27079         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
27080         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
27081         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
27082         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
27083         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
27084         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
27085         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
27086         with modifications.
27087         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
27088         with modifications.
27089         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
27090         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
27091         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
27092         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
27093         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
27094         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
27095         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
27096         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
27097         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
27098         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
27099         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
27100         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
27101         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
27102         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
27103         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
27104         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
27105         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
27106         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
27107         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
27108         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
27109         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
27110         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
27111         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
27112         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
27113         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
27114         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
27115         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
27116         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
27117         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
27118         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
27119         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
27120         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
27121         * tests/havelib/rpathx/rpathx.c: New file, from
27122         gettext/autoconf-lib-link.
27123         * tests/havelib/rpathx/Makefile.am: New file, from
27124         gettext/autoconf-lib-link.
27125         * tests/havelib/rpathx/configure.ac: New file, from
27126         gettext/autoconf-lib-link with modifications.
27127         * tests/havelib/rpathy/rpathy.c: New file, from
27128         gettext/autoconf-lib-link.
27129         * tests/havelib/rpathy/Makefile.am: New file, from
27130         gettext/autoconf-lib-link.
27131         * tests/havelib/rpathy/configure.ac: New file, from
27132         gettext/autoconf-lib-link with modifications.
27133         * tests/havelib/rpathz/rpathz.c: New file, from
27134         gettext/autoconf-lib-link.
27135         * tests/havelib/rpathz/Makefile.am: New file, from
27136         gettext/autoconf-lib-link.
27137         * tests/havelib/rpathz/configure.ac: New file, from
27138         gettext/autoconf-lib-link with modifications.
27139         * tests/havelib/rpathlx/usex.c: New file, from
27140         gettext/autoconf-lib-link.
27141         * tests/havelib/rpathlx/Makefile.am: New file, from
27142         gettext/autoconf-lib-link.
27143         * tests/havelib/rpathlx/configure.ac: New file, from
27144         gettext/autoconf-lib-link with modifications.
27145         * tests/havelib/rpathly/usey.c: New file, from
27146         gettext/autoconf-lib-link.
27147         * tests/havelib/rpathly/Makefile.am: New file, from
27148         gettext/autoconf-lib-link.
27149         * tests/havelib/rpathly/configure.ac: New file, from
27150         gettext/autoconf-lib-link with modifications.
27151         * tests/havelib/rpathlz/usez.c: New file, from
27152         gettext/autoconf-lib-link.
27153         * tests/havelib/rpathlz/Makefile.am: New file, from
27154         gettext/autoconf-lib-link.
27155         * tests/havelib/rpathlz/configure.ac: New file, from
27156         gettext/autoconf-lib-link with modifications.
27157         * tests/havelib/rpathlyx/usey.c: New file, from
27158         gettext/autoconf-lib-link.
27159         * tests/havelib/rpathlyx/Makefile.am: New file, from
27160         gettext/autoconf-lib-link.
27161         * tests/havelib/rpathlyx/configure.ac: New file, from
27162         gettext/autoconf-lib-link with modifications.
27163         * tests/havelib/rpathlzyx/usez.c: New file, from
27164         gettext/autoconf-lib-link.
27165         * tests/havelib/rpathlzyx/Makefile.am: New file, from
27166         gettext/autoconf-lib-link.
27167         * tests/havelib/rpathlzyx/configure.ac: New file, from
27168         gettext/autoconf-lib-link with modifications.
27169         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
27170         with modifications.
27171
27172 2010-04-02  Bruno Haible  <bruno@clisp.org>
27173
27174         gnulib-tool: Create distributed built sources also for the tests.
27175         * gnulib-tool (func_create_testdir): Also generate distributed built
27176         sources in the tests directory.
27177
27178 2010-04-02  Bruno Haible  <bruno@clisp.org>
27179
27180         gnulib-tool: Obey user's environment variables.
27181         * gnulib-tool (func_create_testdir): When creating built sources,
27182         respect the environment variables for autoconf, automake, etc. given by
27183         the user.
27184
27185 2010-04-02  Bruno Haible  <bruno@clisp.org>
27186
27187         gnulib-tool: Provide the value of --m4-base to modules.
27188         * gnulib-tool (func_import, func_create_testdir): Emit a definition
27189         of gl_m4_base.
27190
27191 2010-04-02  Eric Blake  <eblake@redhat.com>
27192
27193         maint.mk: fix some fallout
27194         * NEWS: Document the incompatible change, and its effect on cfg.mk.
27195         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
27196
27197 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
27198
27199         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
27200         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
27201         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
27202         (sc_cast_of_x_alloc_return_value): Likewise.
27203         (sc_cast_of_alloca_return_value): Likewise.
27204         (sc_space_tab): Likewise.
27205         (sc_prohibit_atoi_atof): Likewise.
27206         (sc_prohibit_magic_number_exit): Likewise.
27207         (sc_error_exit_success): Likewise.
27208         (sc_file_system): Likewise.
27209         (sc_prohibit_have_config_h): Likewise.
27210         (sc_require_config_h): Likewise.
27211         (sc_prohibit_HAVE_MBRTOWC): Likewise.
27212         (sc_obsolete_symbols): Likewise.
27213         (sc_changelog): Likewise.
27214         (sc_program_name): Likewise.
27215         (sc_the_the): Likewise.
27216         (sc_trailing_blank): Likewise.
27217         (sc_two_space_separator_in_usage): Likewise.
27218         (sc_useless_cpp_parens): Likewise.
27219         (sc_GPL_version): Likewise.
27220         (sc_GFDL_version): Likewise.
27221         (sc_texinfo_acronym): Likewise.
27222         (sc_prohibit_cvs_keyword): Likewise.
27223         (sc_prohibit_stat_st_blocks): Likewise.
27224         (sc_prohibit_S_IS_definition): Likewise.
27225         (sc_redundant_const): Likewise.
27226         (sc_makefile_TAB_only_indentation): Likewise.
27227         (sc_m4_quote_check): Likewise.
27228         (sc_makefile_path_separator_check): Likewise.
27229         (sc_copyright_check): Likewise.
27230         (sc_Wundef_boolean): Likewise.
27231         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
27232
27233         maint.mk: match 0 or more whitespace-before-function-call '('
27234         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
27235         that have zero or two-and-more spaces between the function name
27236         and the open parenthesis.
27237         (sc_error_message_warn_fatal): Likewise.
27238         (sc_error_message_uppercase): Likewise.
27239         (sc_error_message_period): Likewise.
27240
27241 2010-03-31  Eric Blake  <eblake@redhat.com>
27242
27243         maint.mk: check for [ as well as test
27244         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
27245         Based on a libvirt report by Matthias Bolte.
27246
27247         gnumakefile: don't squelch _version output
27248         * top/GNUmakefile (_version): Create one-shot dependency rather
27249         than using $(shell) when version must be regenerated.
27250         (_autoreconf): Run verbosely, by default.
27251
27252         sys_time: avoid compiler warnings
27253         * lib/sys_time.in.h (includes): Ensure gcc pragma is
27254         unconditional, fixing regression from 2010-03-29.
27255         Reported by Simon Josefsson.
27256
27257 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
27258
27259         maint.mk: s/_header_without_use/_sc_header_without_use/
27260         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
27261         (sc_prohibit_assert_without_use): Use the new name.
27262         (sc_prohibit_close_stream_without_use): Likewise.
27263         (sc_prohibit_getopt_without_use): Likewise.
27264         (sc_prohibit_quotearg_without_use): Likewise.
27265         (sc_prohibit_quote_without_use): Likewise.
27266         (sc_prohibit_long_options_without_use): Likewise.
27267         (sc_prohibit_inttostr_without_use): Likewise.
27268         (sc_prohibit_ignore_value_without_use): Likewise.
27269         (sc_prohibit_error_without_use): Likewise.
27270         (sc_prohibit_xalloc_without_use): Likewise.
27271         (sc_prohibit_hash_without_use): Likewise.
27272         (sc_prohibit_hash_pjw_without_use): Likewise.
27273         (sc_prohibit_safe_read_without_use): Likewise.
27274         (sc_prohibit_argmatch_without_use): Likewise.
27275         (sc_prohibit_canonicalize_without_use): Likewise.
27276         (sc_prohibit_root_dev_ino_without_use): Likewise.
27277         (sc_prohibit_openat_without_use): Likewise.
27278         (sc_prohibit_c_ctype_without_use): Likewise.
27279         (sc_prohibit_signal_without_use): Likewise.
27280         (sc_prohibit_intprops_without_use): Likewise.
27281
27282 2010-03-30  Eric Blake  <eblake@redhat.com>
27283
27284         maint: improve module indicators
27285         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
27286         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
27287         columns, and avoid extra macro expansion.
27288
27289         fdopendir: work around FreeBSD bug
27290         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
27291         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
27292         * modules/dirent (Makefile.am): Substitute it.
27293         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
27294         declaration.
27295         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
27296         fix.
27297         Reported by Christian Weisgerber <naddy@mips.inka.de>.
27298
27299 2010-03-29  Bruno Haible  <bruno@clisp.org>
27300
27301         Emit #pragma system_header after the inclusion guard, not before.
27302         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
27303         guard that spans the entire file, not before. This enables an
27304         optimization in GCC's preprocessor.
27305         * lib/ctype.in.h: Likewise.
27306         * lib/dirent.in.h: Likewise.
27307         * lib/errno.in.h: Likewise.
27308         * lib/float.in.h: Likewise.
27309         * lib/getopt.in.h: Likewise.
27310         * lib/iconv.in.h: Likewise.
27311         * lib/langinfo.in.h: Likewise.
27312         * lib/locale.in.h: Likewise.
27313         * lib/math.in.h: Likewise.
27314         * lib/netdb.in.h: Likewise.
27315         * lib/netinet_in.in.h: Likewise.
27316         * lib/pty.in.h: Likewise.
27317         * lib/sched.in.h: Likewise.
27318         * lib/se-selinux.in.h: Likewise.
27319         * lib/search.in.h: Likewise.
27320         * lib/spawn.in.h: Likewise.
27321         * lib/stdarg.in.h: Likewise.
27322         * lib/stdint.in.h: Likewise.
27323         * lib/string.in.h: Likewise.
27324         * lib/strings.in.h: Likewise.
27325         * lib/sys_file.in.h: Likewise.
27326         * lib/sys_ioctl.in.h: Likewise.
27327         * lib/sys_time.in.h: Likewise.
27328         * lib/sys_times.in.h: Likewise.
27329         * lib/sys_utsname.in.h: Likewise.
27330         * lib/sys_wait.in.h: Likewise.
27331         * lib/sysexits.in.h: Likewise.
27332         * lib/wctype.in.h: Likewise.
27333
27334 2010-03-28  James Youngman  <jay@gnu.org>
27335
27336         save-cwd: don't leak a file descriptor when the caller execs.
27337         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
27338         saved file descriptor.
27339         * modules/save-cwd (Depends-on): Depend on cloexec.
27340
27341 2010-03-29  Bruno Haible  <bruno@clisp.org>
27342
27343         Remove vestiges of fts-lgpl module.
27344         * lib/fts_.h: Assume GNULIB_FTS is 1.
27345         * lib/fts.c: Likewise.
27346         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
27347
27348 2010-03-28  Bruno Haible  <bruno@clisp.org>
27349
27350         Fix definition of tests witness macro.
27351         * gnulib-tool (func_import): Fix definition of witness macro.
27352
27353 2010-03-28  Bruno Haible  <bruno@clisp.org>
27354
27355         Fix ioctl's protoype on glibc systems.
27356         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
27357         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
27358         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
27359         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
27360         signature. If not, arrange to replace the ioctl function.
27361         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
27362         REPLACE_IOCTL.
27363         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
27364         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
27365         Reported by Ludovic Courtès <ludo@gnu.org>.
27366
27367 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
27368
27369         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
27370         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
27371         made it so grep -r --include=GLOB* ... did not work.
27372
27373 2010-03-26  Jim Meyering  <meyering@redhat.com>
27374             Eric Blake  <eblake@redhat.com>
27375
27376         maint.mk: prohibit use of test's -o and -a operators
27377         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
27378
27379 2010-03-28  Bruno Haible  <bruno@clisp.org>
27380
27381         Remove unused GNULIB_XYZ macro definitions.
27382         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
27383         invocation.
27384
27385 2010-03-28  Bruno Haible  <bruno@clisp.org>
27386
27387         Mark privileged tests modules.
27388         * modules/idpriv-drop-tests (Status): New section.
27389         * modules/idpriv-droptemp-tests (Status): New section.
27390
27391 2010-03-28  Bruno Haible  <bruno@clisp.org>
27392
27393         Split C++ tests into separate tests modules.
27394         * modules/dirent-c++-tests: New file, extracted from
27395         modules/dirent-tests.
27396         * modules/dirent-tests: Depend on it.
27397         * modules/fcntl-h-c++-tests: New file, extracted from
27398         modules/fcntl-h-tests.
27399         * modules/fcntl-h-tests: Depend on it.
27400         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
27401         * modules/glob-tests: Depend on it.
27402         * modules/iconv-h-c++-tests: New file, extracted from
27403         modules/iconv-h-tests.
27404         * modules/iconv-h-tests: Depend on it.
27405         * modules/langinfo-c++-tests: New file, extracted from
27406         modules/langinfo-tests.
27407         * modules/langinfo-tests: Depend on it.
27408         * modules/locale-c++-tests: New file, extracted from
27409         modules/locale-tests.
27410         * modules/locale-tests: Depend on it.
27411         * modules/math-c++-tests: New file, extracted from modules/math-tests.
27412         * modules/math-tests: Depend on it.
27413         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
27414         * modules/pty-tests: Depend on it.
27415         * modules/search-c++-tests: New file, extracted from
27416         modules/search-tests.
27417         * modules/search-tests: Depend on it.
27418         * modules/signal-c++-tests: New file, extracted from
27419         modules/signal-tests.
27420         * modules/signal-tests: Depend on it.
27421         * modules/spawn-c++-tests: New file, extracted from
27422         modules/spawn-tests.
27423         * modules/spawn-tests: Depend on it.
27424         * modules/stdio-c++-tests: New file, extracted from
27425         modules/stdio-tests.
27426         * modules/stdio-tests: Depend on it.
27427         * modules/stdlib-c++-tests: New file, extracted from
27428         modules/stdlib-tests.
27429         * modules/stdlib-tests: Depend on it.
27430         * modules/string-c++-tests: New file, extracted from
27431         modules/string-tests.
27432         * modules/string-tests: Depend on it.
27433         * modules/sys_ioctl-c++-tests: New file, extracted from
27434         modules/sys_ioctl-tests.
27435         * modules/sys_ioctl-tests: Depend on it.
27436         * modules/sys_select-c++-tests: New file, extracted from
27437         modules/sys_select-tests.
27438         * modules/sys_select-tests: Depend on it.
27439         * modules/sys_socket-c++-tests: New file, extracted from
27440         modules/sys_socket-tests.
27441         * modules/sys_socket-tests: Depend on it.
27442         * modules/sys_stat-c++-tests: New file, extracted from
27443         modules/sys_stat-tests.
27444         * modules/sys_stat-tests: Depend on it.
27445         * modules/sys_time-c++-tests: New file, extracted from
27446         modules/sys_time-tests.
27447         * modules/sys_time-tests: Depend on it.
27448         * modules/time-c++-tests: New file, extracted from modules/time-tests.
27449         * modules/time-tests: Depend on it.
27450         * modules/unistd-c++-tests: New file, extracted from
27451         modules/unistd-tests.
27452         * modules/unistd-tests: Depend on it.
27453         * modules/wchar-c++-tests: New file, extracted from
27454         modules/wchar-tests.
27455         * modules/wchar-tests: Depend on it.
27456         * modules/wctype-c++-tests: New file, extracted from
27457         modules/wctype-tests.
27458         * modules/wctype-tests: Depend on it.
27459         Reported by Simon Josefsson.
27460
27461 2010-03-28  Bruno Haible  <bruno@clisp.org>
27462
27463         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
27464         * gnulib-tool (func_exists_module): New function, extracted from
27465         func_verify_module.
27466         (func_verify_module): Use it.
27467         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
27468         'foo' only if 'foo' exists.
27469         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
27470         module.
27471
27472 2010-03-28  Bruno Haible  <bruno@clisp.org>
27473
27474         gnulib-tool: Add support for special categories of tests.
27475         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
27476         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
27477         (func_usage): Document them.
27478         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
27479         inc_unportable_tests, inc_all_tests): New variables.
27480         (func_acceptable): Consider these variables.
27481         (func_modules_transitive_closure): Make it work when the 'Status' field
27482         consists of multiple words.
27483         (func_import): Store and restore the values of inc_cxx_tests,
27484         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
27485         inc_all_tests in gnulib-comp.m4.
27486         (func_create_testdir): Set inc_all_tests to true.
27487         * doc/gnulib.texi (Extra tests modules): New section.
27488         Suggested by Jim Meyering.
27489
27490 2010-03-28  Bruno Haible  <bruno@clisp.org>
27491
27492         ansi-c++-opt: Allow turning off the C++ build by default.
27493         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
27494         gl_CXX_CHOICE_DEFAULT_NO is defined.
27495         Requested by Eric Blake.
27496
27497 2010-03-28  Bruno Haible  <bruno@clisp.org>
27498
27499         unistd: Avoid #define replacements in C++ mode.
27500         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
27501         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
27502         setsockopt, shutdown, select): In C++, attach a warning to the function
27503         if possible, rather than #defining the symbol to a dysfunctional alias.
27504         Reported by John W. Eaton <jwe@gnu.org>.
27505
27506 2010-03-28  Bruno Haible  <bruno@clisp.org>
27507
27508         Fix link errors on mingw.
27509         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
27510         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
27511         $(LIBSOCKET).
27512         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
27513         $(LIBSOCKET).
27514
27515 2010-03-28  Bruno Haible  <bruno@clisp.org>
27516             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27517
27518         lib-ignore: Determine different options for different compilers.
27519         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
27520         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
27521         Add comments.
27522         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
27523         * NEWS: Mention the change.
27524
27525 2010-03-27  Bruno Haible  <bruno@clisp.org>
27526
27527         Remove unused GNULIB_XYZ macro definitions.
27528         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
27529         * modules/fseek (configure.ac): Likewise.
27530         * modules/ioctl (configure.ac): Likewise.
27531         * modules/open (configure.ac): Likewise.
27532         * modules/stdlib-safer (configure.ac): Likewise.
27533
27534 2010-03-27  Bruno Haible  <bruno@clisp.org>
27535
27536         Add a remark about certain modules.
27537         * modules/malloc (Comment): New section.
27538         * modules/realloc (Comment): Likewise.
27539         * modules/sigpipe (Comment): Likewise.
27540
27541 2010-03-27  Bruno Haible  <bruno@clisp.org>
27542
27543         Resolve conflict between the two kinds of module indicators.
27544         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
27545         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
27546         * modules/canonicalize (configure.ac): Invoke
27547         gl_MODULE_INDICATOR_FOR_TESTS.
27548         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
27549         GNULIB_XYZ.
27550         * tests/test-dirent-c++.cc: Likewise.
27551         * tests/test-dirent-safer.c: Likewise.
27552         * tests/test-dup2.c: Likewise.
27553         * tests/test-fchdir.c: Likewise.
27554         * tests/test-fcntl-h-c++.cc: Likewise.
27555         * tests/test-getopt.c: Likewise.
27556         * tests/test-getopt.h: Likewise.
27557         * tests/test-langinfo-c++.cc: Likewise.
27558         * tests/test-locale-c++.cc: Likewise.
27559         * tests/test-math-c++.cc: Likewise.
27560         * tests/test-pty-c++.cc: Likewise.
27561         * tests/test-search-c++.cc: Likewise.
27562         * tests/test-signal-c++.cc: Likewise.
27563         * tests/test-spawn-c++.cc: Likewise.
27564         * tests/test-stdio-c++.cc: Likewise.
27565         * tests/test-stdlib-c++.cc: Likewise.
27566         * tests/test-string-c++.cc: Likewise.
27567         * tests/test-sys_ioctl-c++.cc: Likewise.
27568         * tests/test-sys_select-c++.cc: Likewise.
27569         * tests/test-sys_socket-c++.cc: Likewise.
27570         * tests/test-sys_stat-c++.cc: Likewise.
27571         * tests/test-sys_time-c++.cc: Likewise.
27572         * tests/test-time-c++.cc: Likewise.
27573         * tests/test-unistd-c++.cc: Likewise.
27574         * tests/test-wchar-c++.cc: Likewise.
27575         * tests/uninorm/test-u8-nfc.c: Likewise.
27576         * tests/uninorm/test-u8-nfd.c: Likewise.
27577         * tests/uninorm/test-u8-nfkc.c: Likewise.
27578         * tests/uninorm/test-u8-nfkd.c: Likewise.
27579         * tests/uninorm/test-u16-nfc.c: Likewise.
27580         * tests/uninorm/test-u16-nfd.c: Likewise.
27581         * tests/uninorm/test-u16-nfkc.c: Likewise.
27582         * tests/uninorm/test-u16-nfkd.c: Likewise.
27583         * tests/uninorm/test-u32-nfc.c: Likewise.
27584         * tests/uninorm/test-u32-nfc-big.c: Likewise.
27585         * tests/uninorm/test-u32-nfd.c: Likewise.
27586         * tests/uninorm/test-u32-nfd-big.c: Likewise.
27587         * tests/uninorm/test-u32-nfkc.c: Likewise.
27588         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
27589         * tests/uninorm/test-u32-nfkd.c: Likewise.
27590         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
27591         * tests/uninorm/test-u32-normalize-big.c: Likewise.
27592
27593 2010-03-27  Bruno Haible  <bruno@clisp.org>
27594
27595         Distinguish two kinds of module indicators.
27596         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
27597         gl_MODULE_INDICATOR.
27598         (gl_MODULE_INDICATOR): New macro.
27599         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
27600         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
27601         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
27602         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
27603         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
27604         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
27605         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
27606         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
27607         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
27608         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
27609         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
27610         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
27611         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
27612         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
27613         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
27614         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
27615         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
27616         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
27617         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
27618         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
27619         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
27620         * modules/cloexec (configure.ac): Likewise.
27621         * modules/getopt-gnu (configure.ac): Likewise.
27622         * modules/uninorm/u8-normalize (configure.ac): Likewise.
27623         * modules/uninorm/u16-normalize (configure.ac): Likewise.
27624         * modules/uninorm/u32-normalize (configure.ac): Likewise.
27625         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
27626
27627 2010-03-27  Bruno Haible  <bruno@clisp.org>
27628
27629         New module description field 'Comment'.
27630         * gnulib-tool: New option --extract-comment.
27631         (func_usage): Document it.
27632         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
27633         (func_get_comment): New function.
27634         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
27635
27636 2010-03-27  Bruno Haible  <bruno@clisp.org>
27637
27638         Addendum to 2010-02-07 commit.
27639         * gnulib-tool (func_usage): Document --extract-applicability option.
27640
27641 2010-03-27  Bruno Haible  <bruno@clisp.org>
27642
27643         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
27644         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
27645         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
27646         rather than link errors.
27647
27648 2010-03-27  Bruno Haible  <bruno@clisp.org>
27649
27650         Avoid side effects from tests-related modules on the compilation of lib.
27651         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
27652         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
27653         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
27654         parameter. Emit into AM_CPPFLAGS a definition of the designated C
27655         macro.
27656         (func_import): Define a witness macro. Assign it a value that depends
27657         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
27658         tests-related modules.
27659         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
27660         Reported by Jim Meyering.
27661
27662 2010-03-27  Bruno Haible  <bruno@clisp.org>
27663
27664         Factorize common .m4 code.
27665         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
27666         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
27667         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
27668         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
27669         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
27670         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
27671         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
27672         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
27673         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
27674         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
27675         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
27676         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
27677         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
27678         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
27679         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
27680         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
27681         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
27682         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
27683         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
27684         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
27685         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
27686         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
27687         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
27688         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
27689         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
27690         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
27691         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
27692         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
27693         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
27694         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
27695         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
27696         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
27697
27698 2010-03-27  Bruno Haible  <bruno@clisp.org>
27699
27700         Fix a compilation error on Cygwin with g++ >= 4.3.
27701         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
27702         if it is undefined or if we alias it to chmod.
27703         (lstat): Don't warn about the use of this function if it is undefined
27704         or if we alias it to stat.
27705         Reported by Simon Josefsson.
27706
27707 2010-03-27  Bruno Haible  <bruno@clisp.org>
27708
27709         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
27710         * modules/getlogin (configure.ac): Update.
27711
27712         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
27713         * modules/getlogin_r (configure.ac): Update.
27714
27715         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
27716         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
27717         * modules/inet_ntop (configure.ac): Update.
27718
27719         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
27720         * modules/inet_pton (configure.ac): Update.
27721
27722         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
27723         * modules/mbslen (configure.ac): Update.
27724
27725         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
27726         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
27727         * modules/forkpty (configure.ac): Update.
27728         * modules/openpty (configure.ac): Update.
27729
27730 2010-03-26  Simon Josefsson  <simon@josefsson.org>
27731
27732         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
27733         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
27734
27735 2010-03-25  Eric Blake  <eblake@redhat.com>
27736
27737         maint: use pragma consistently across replacement headers
27738         * lib/ctype.in.h (system_header): Hoist for consistent placement.
27739         * lib/dirent.in.h (system_header): Likewise.
27740         * lib/errno.in.h (system_header): Likewise.
27741         * lib/float.in.h (system_header): Likewise.
27742         * lib/getopt.in.h (system_header): Likewise.
27743         * lib/iconv.in.h (system_header): Likewise.
27744         * lib/inttypes.in.h (system_header): Likewise.
27745         * lib/langinfo.in.h (system_header): Likewise.
27746         * lib/locale.in.h (system_header): Likewise.
27747         * lib/math.in.h (system_header): Likewise.
27748         * lib/netdb.in.h (system_header): Likewise.
27749         * lib/netinet_in.in.h (system_header): Likewise.
27750         * lib/pty.in.h (system_header): Likewise.
27751         * lib/sched.in.h (system_header): Likewise.
27752         * lib/se-selinux.in.h (system_header): Likewise.
27753         * lib/search.in.h (system_header): Likewise.
27754         * lib/spawn.in.h (system_header): Likewise.
27755         * lib/stdarg.in.h (system_header): Likewise.
27756         * lib/stdint.in.h (system_header): Likewise.
27757         * lib/string.in.h (system_header): Likewise.
27758         * lib/strings.in.h (system_header): Likewise.
27759         * lib/sys_file.in.h (system_header): Likewise.
27760         * lib/sys_ioctl.in.h (system_header): Likewise.
27761         * lib/sys_socket.in.h (system_header): Likewise.
27762         * lib/sys_times.in.h (system_header): Likewise.
27763         * lib/sys_utsname.in.h (system_header): Likewise.
27764         * lib/sys_wait.in.h (system_header): Likewise.
27765         * lib/sysexits.in.h (system_header): Likewise.
27766         * lib/unistd.in.h (system_header): Likewise.
27767         * lib/wctype.in.h (system_header): Likewise.
27768
27769         arpa/inet: fix mingw compilation warning
27770         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
27771         Reported by Matthew Bolte.
27772
27773 2010-03-25  Bruno Haible  <bruno@clisp.org>
27774
27775         Avoid collision between gnulib wrapper and libintl wrapper.
27776         * lib/printf.c (printf): Don't define if a printf wrapper is already
27777         defined in intl/printf.c.
27778         Reported by Michel Boaventura <michel@michelboaventura.com>.
27779
27780 2010-03-25  Bruno Haible  <bruno@clisp.org>
27781
27782         Use ANSI C.
27783         * lib/readutmp.h (getutent): Provide ANSI C prototype.
27784
27785 2010-03-25  Bruno Haible  <bruno@clisp.org>
27786
27787         Minor formatting changes.
27788         * lib/acosl.c: Insert space before function argument list.
27789         * lib/argz.c: Likewise.
27790         * lib/asinl.c: Likewise.
27791         * lib/expl.c: Likewise.
27792         * lib/gen-uni-tables.c: Likewise.
27793         * lib/gettext.h: Likewise.
27794         * lib/glthread/lock.h: Likewise.
27795         * lib/tanl.c: Likewise.
27796         * lib/uniname/uniname.c: Likewise.
27797         * tests/test-idpriv-drop.c: Likewise.
27798         * tests/test-idpriv-droptemp.c: Likewise.
27799         * tests/test-lock.c: Likewise.
27800         * tests/test-tls.c: Likewise.
27801         * lib/argp-help.c: Insert space before function-like macro argument
27802         list.
27803         * lib/memcmp.c: Likewise.
27804         * tests/test-base64.c: Likewise.
27805         * lib/localename.c: Insert space before sizeof's argument list.
27806         * lib/safe-alloc.h: Likewise.
27807         * lib/file-set.h: Insert space before macro argument list.
27808         * tests/test-argp.c: Likewise.
27809         * lib/argp-namefrob.h: Insert space before function parameter list.
27810         * lib/getaddrinfo.c: Likewise.
27811         * lib/netdb.in.h: Likewise.
27812         * lib/parse-duration.h: Likewise.
27813         * lib/parse-duration.c: Likewise.
27814         * lib/poll.c: Likewise.
27815         * lib/select.c: Likewise.
27816         * lib/trim.h: Likewise.
27817         * tests/test-usleep.c: Likewise.
27818         * lib/ldexpl.c: Insert space before function parameter list and before
27819         function argument list.
27820         * lib/logl.c: Likewise.
27821         * lib/sqrtl.c: Likewise.
27822         * lib/trim.c: Likewise.
27823         * lib/cosl.c: Use GNU style indentation. Insert space before function
27824         argument list.
27825         * lib/sinl.c: Likewise.
27826         * lib/tsearch.c: Insert space after 'for'.
27827         Reported by Jim Meyering.
27828
27829 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
27830
27831         * maint.mk (sc_Wundef_boolean): Check for the presence of the
27832         config header before grepping, as it's not present before
27833         autoreconf/configure are run.  Reported by Simon Josefsson.
27834
27835 2010-03-23  Bruno Haible  <bruno@clisp.org>
27836
27837         pt_chown: Make it work with automake < 1.11.
27838         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
27839         Reported by Simon Josefsson.
27840
27841 2010-03-23  Bruno Haible  <bruno@clisp.org>
27842
27843         pt_chown: Don't depend on GPLed modules.
27844         * lib/pt_chown.c: Don't include idpriv.h.
27845         (main): Don't drop privileges.
27846         * modules/pt_chown (Depends-on): Remove idpriv-drop.
27847         Reported by Simon Josefsson.
27848
27849 2010-03-24  Simon Josefsson  <simon@josefsson.org>
27850
27851         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
27852         suggestions from karl@freefriends.org (Karl Berry).
27853
27854 2010-03-22  Eric Blake  <eblake@redhat.com>
27855
27856         gethostname: further tweaks
27857         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
27858         are overriding gethostname.
27859         Suggested by Bruno Haible.
27860
27861 2010-03-21  Bruno Haible  <bruno@clisp.org>
27862
27863         Fix comments.
27864         * lib/forkpty.c (rpl_forkpty): Fix comment.
27865         * lib/openpty.c (rpl_openpty): Likewise.
27866         Reported by Eric Blake.
27867
27868 2010-03-22  Eric Blake  <eblake@redhat.com>
27869
27870         gethostname: fix build on mingw
27871         * lib/unistd.in.h (includes): Work around fact that mingw
27872         <winsock2.h> re-includes <unistd.h>, by avoiding any
27873         redeclarations if we are being included by <winsock2.h>.
27874         Reported by Matthias Bolte.
27875
27876 2010-03-21  Bruno Haible  <bruno@clisp.org>
27877
27878         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
27879         * lib/forkpty.c (forkpty): New replacement function, from glibc with
27880         modifications.
27881         * lib/pty.in.h (forkpty): Update declaration. Add comments.
27882         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
27883         provide the replacement.
27884         * modules/forkpty (Depends-on): Add openpty, login_tty.
27885         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
27886         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
27887         * doc/glibc-functions/forkpty.texi: More supported platforms.
27888         * config/srclist.txt: Add forkpty.c (commented).
27889
27890 2010-03-21  Bruno Haible  <bruno@clisp.org>
27891
27892         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
27893         (Makefile.am): Verify that PTY_LIB is defined.
27894
27895         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
27896
27897 2010-03-21  Bruno Haible  <bruno@clisp.org>
27898
27899         Tests for module 'login_tty'.
27900         * modules/login_tty-tests: New file.
27901         * tests/test-login_tty.c: New file.
27902
27903         New module 'login_tty'.
27904         * lib/login_tty.c: New file.
27905         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
27906         * modules/login_tty: New file.
27907         * doc/glibc-functions/login_tty.texi: Mention the new module.
27908
27909 2010-03-21  Bruno Haible  <bruno@clisp.org>
27910
27911         login_tty: Documentation.
27912         * doc/glibc-functions/login_tty.texi: New file.
27913         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
27914
27915 2010-03-21  Bruno Haible  <bruno@clisp.org>
27916
27917         pty: Consistent macro naming.
27918         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
27919         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
27920         * modules/pty (configure.ac): Update.
27921
27922 2010-03-21  Bruno Haible  <bruno@clisp.org>
27923
27924         Tests for openpty: Make stricter.
27925         * tests/test-openpty.c (main): Add test of canonical processing and
27926         erase.
27927         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
27928
27929         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
27930         * lib/openpty.c (openpty): New replacement function.
27931         * lib/pty.in.h: Include <termios.h>.
27932         (openpty): Update declaration. Add comments.
27933         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
27934         is not declared, arrange to provide the replacement. Check for _getpty
27935         and posix_openpt.
27936         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
27937         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
27938         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
27939         * modules/pty-tests (test_pty_c___LDADD): New variable.
27940         * doc/glibc-functions/openpty.texi: More supported platforms.
27941
27942 2010-03-21  Bruno Haible  <bruno@clisp.org>
27943
27944         setenv: Tweaks.
27945         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
27946         the test program.
27947         * doc/posix-functions/setenv.texi: Update platforms list.
27948
27949 2010-03-21  Bruno Haible  <bruno@clisp.org>
27950
27951         New module 'unlockpt'.
27952         * lib/unlockpt.c: New file, from glibc with modifications.
27953         * m4/unlockpt.m4: New file.
27954         * modules/unlockpt: New file.
27955         * lib/stdlib.in.h (unlockpt): New declaration.
27956         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
27957         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
27958         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
27959         HAVE_UNLOCKPT.
27960         * doc/posix-functions/unlockpt.texi: Mention the new module.
27961         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
27962         * config/srclist.txt: Add unlockpt.c (commented).
27963
27964 2010-03-21  Jim Meyering  <meyering@redhat.com>
27965
27966         maint.mk: prohibit inclusion of "intprops.h" without use
27967         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
27968
27969 2010-03-21  Bruno Haible  <bruno@clisp.org>
27970
27971         New module 'grantpt'.
27972         * lib/grantpt.c: New file, from glibc with modifications.
27973         * m4/grantpt.m4: New file.
27974         * modules/grantpt: New file.
27975         * lib/stdlib.in.h (grantpt): New declaration.
27976         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
27977         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
27978         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
27979         HAVE_GRANTPT.
27980         * doc/posix-functions/grantpt.texi: Mention the new module.
27981         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
27982         * config/srclist.txt: Add grantpt.c (commented).
27983
27984 2010-03-21  Bruno Haible  <bruno@clisp.org>
27985
27986         New module 'pt_chown'.
27987         * lib/pt_chown.c: New file, from glibc with modifications.
27988         * lib/pty-private.h: New file, from glibc with modifications.
27989         * modules/pt_chown: New file.
27990         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
27991
27992 2010-03-21  Bruno Haible  <bruno@clisp.org>
27993
27994         Tests for module 'ptsname'.
27995         * modules/ptsname-tests: New file.
27996         * tests/test-ptsname.c: New file.
27997
27998         New module 'ptsname'.
27999         * lib/ptsname.c: New file, from glibc with modifications.
28000         * m4/ptsname.m4: New file.
28001         * modules/ptsname: New file.
28002         * lib/stdlib.in.h (ptsname): New declaration.
28003         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
28004         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
28005         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
28006         HAVE_PTSNAME.
28007         * doc/posix-functions/ptsname.texi: Mention the new module.
28008         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
28009         * config/srclist.txt: Add ptsname.c (commented).
28010
28011 2010-03-21  Bruno Haible  <bruno@clisp.org>
28012
28013         Tests for module 'ttyname_r'.
28014         * modules/ttyname_r-tests: New file.
28015         * tests/test-ttyname_r.c: New file.
28016
28017         New module 'ttyname_r'.
28018         * lib/ttyname_r.c: New file.
28019         * m4/ttyname_r.m4: New file.
28020         * modules/ttyname_r: New file.
28021         * lib/unistd.in.h (ttyname_r): New declaration.
28022         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
28023         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
28024         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
28025         HAVE_TTYNAME_R.
28026         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
28027         * doc/posix-functions/ttyname_r.texi: Mention the new module.
28028
28029 2010-03-20  Bruno Haible  <bruno@clisp.org>
28030
28031         signal: Undefine macro definitions in C++ mode.
28032         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
28033         sigfillset): Undefine macro definitions from the system header in C++
28034         mode.
28035         Reported by John W. Eaton <jwe@gnu.org>.
28036
28037 2010-03-20  Bruno Haible  <bruno@clisp.org>
28038
28039         Ensure no #include statements inside extern "C" { ... }.
28040         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
28041         contain #include statements.
28042         * lib/time.in.h: Likewise.
28043
28044 2010-03-20  Bruno Haible  <bruno@clisp.org>
28045
28046         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
28047         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
28048         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
28049         Reported by John W. Eaton <jwe@gnu.org>.
28050
28051 2010-03-20  Bruno Haible  <bruno@clisp.org>
28052
28053         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
28054         Reported by Jim Meyering.
28055
28056 2010-03-20  Bruno Haible  <bruno@clisp.org>
28057
28058         pipe: Set errno upon failure.
28059         * lib/pipe.h: Specify that when -1 is returned, errno is set.
28060         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
28061         errno value in error message.
28062
28063 2010-03-20  Bruno Haible  <bruno@clisp.org>
28064             Jim Meyering  <meyering@redhat.com>
28065
28066         lchown: Avoid "unused variable" warning.
28067         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
28068
28069 2010-03-20  Bruno Haible  <bruno@clisp.org>
28070
28071         Work around unlink() bug on MacOS X 10.5.6.
28072         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
28073         attempting to unlink a parent directory.
28074         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
28075         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
28076         activate for the replacement function.
28077         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
28078
28079 2010-03-20  Bruno Haible  <bruno@clisp.org>
28080
28081         Fix link errors on Solaris 8.
28082         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
28083         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
28084
28085 2010-03-19  Jim Meyering  <meyering@redhat.com>
28086
28087         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
28088         The _LIBC implementation of build_range_exp correctly honors the
28089         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
28090         However, the non-_LIBC implementation would ignore that syntax-bit
28091         flag and return REG_ERANGE unconditionally.
28092         This change makes it honor that flag.
28093         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
28094         Make two pointer parameters "const".
28095         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
28096         (parse_bracket_exp): Update caller.
28097
28098         regex.m4: correct the reversed range endpoint ([b-a]) test
28099         * m4/regex.m4: When requiring that [b-a] evoke failure,
28100         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
28101         test pass once again for x86-based systems.
28102
28103 2010-03-19  Bruno Haible  <bruno@clisp.org>
28104
28105         scandir: Fix link error on Solaris 8.
28106         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
28107         macros.
28108
28109 2010-03-19  Bruno Haible  <bruno@clisp.org>
28110
28111         getusershell: Fix documentation.
28112         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
28113         module.
28114         * doc/glibc-functions/setusershell.texi: Likewise.
28115
28116         getusershell: Provide declaration, missing on Solaris 9.
28117         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
28118         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
28119         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
28120         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
28121         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
28122         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
28123         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
28124         HAVE_GETUSERSHELL.
28125         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
28126
28127 2010-03-19  Bruno Haible  <bruno@clisp.org>
28128
28129         wctype: Provide iswblank function.
28130         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
28131         exists and is fine.
28132         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
28133         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
28134         * tests/test-wctype.c (main): Re-enable the iswblank tests.
28135         * doc/posix-functions/iswblank.texi: Update.
28136
28137 2010-03-19  Bruno Haible  <bruno@clisp.org>
28138
28139         Tests of module 'pty' in C++ mode.
28140         * modules/pty-tests: New file.
28141         * tests/test-pty-c++.cc: New file.
28142         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28143
28144 2010-03-19  Eric Blake  <eblake@redhat.com>
28145
28146         logb: fix documentation
28147         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
28148         1.5 declaration bug.
28149
28150         forkpty, openpty: prefer glibc's const-safe prototype
28151         * lib/forkpty.c (rpl_forkpty): New file.
28152         * lib/openpty.c (rpl_openpty): Likewise.
28153         * modules/forkpty (Files): Distribute it.
28154         * modules/openpty (Files): Likewise.
28155         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
28156         check...
28157         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
28158         replacement for for non-const BSD signature.
28159         * modules/pty (Makefile.am): Substitute witnesses.
28160         * lib/pty.in.h (forkpty, openpty): Declare replacements.
28161         * tests/test-forkpty.c: Update signature check.
28162         * tests/test-openpty.c: Likewise.
28163         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
28164         * doc/glibc-functions/openpty.texi (openpty): Likewise.
28165
28166         forkpty, openpty: split functions into new modules
28167         * modules/pty (Makefile.am): Substitute new witnesses.
28168         (Libraries): Move library detection...
28169         * modules/forkpty: ...into new module.
28170         * modules/openpty: Another new module.
28171         * modules/pty-tests: Rename and split...
28172         * modules/forkpty-tests: ...to this...
28173         * modules/openpty-tests: ...and this.
28174         * tests/test-pty.c: Rename and split...
28175         * tests/test-forkpty.c: ...to this...
28176         * tests/test-openpty.c: ...and this.
28177         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
28178         (gl_PTY): Split library searching...
28179         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
28180         (gl_FORKPTY, gl_OPENPTY): New macros.
28181         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
28182         * NEWS: Mention the split.
28183         * MODULES.html.sh (Misc): Document the modules.
28184         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
28185         * doc/glibc-functions/openpty.texi (openpty): Likewise.
28186
28187         pty: improve replacement header
28188         * lib/pty.in.h: New file.
28189         * modules/pty (Files): Ship it.
28190         (Makefile.am): Always build replacement.
28191         * m4/pty.m4: Rename...
28192         * m4/pty_h.m4: ...to this.
28193         (gl_PTY): Modernize setting of witness macros; update check of
28194         forkpty to take proper advantage of cache.
28195         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
28196
28197         getopt: avoid compiler warning
28198         * lib/getopt.c (attribute_hidden): Remove unused macro.
28199
28200 2010-03-18  Bruno Haible  <bruno@clisp.org>
28201
28202         Fix link errors on Solaris 8.
28203         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
28204         * modules/search-tests (test_search_c___LDADD): Likewise.
28205         * modules/signal-tests (test_signal_c___LDADD): Likewise.
28206         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
28207         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
28208         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
28209         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
28210         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
28211         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
28212
28213 2010-03-18  Bruno Haible  <bruno@clisp.org>
28214
28215         Fix bug introduced on 2010-03-14.
28216         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
28217         (gl_SPAWN_H): Require it.
28218         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
28219         Reported by Simon Josefsson.
28220
28221 2010-03-18  Bruno Haible  <bruno@clisp.org>
28222
28223         Fix typo introduced on 2009-12-31.
28224         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
28225         posix_spawn_file_actions_adddup2.
28226
28227 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
28228         and Eric Blake  <eblake@redhat.com>
28229
28230         test-vc-list-files-git: make more robust
28231         * tests/test-vc-list-files-git.sh: Unset problematic environment
28232         variables.  Chain commands together.
28233
28234 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
28235
28236         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
28237         `AC_CHECK_DECL' invocation.
28238
28239 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
28240
28241         * lib/inttostr.c (inttostr): Make sure the invocation of verify
28242         appears before executable statements. Suggested by Petr Sumbera
28243         <Petr.Sumbera@Sun.COM>.
28244
28245 2010-03-14  Bruno Haible  <bruno@clisp.org>
28246
28247         * tests/test-flock.c (test_exclusive): Comment out a test that causes
28248         portability problems. Instead use a simpler test.
28249         (main): Check that invalid arguments are rejected only on Linux.
28250
28251 2010-03-14  Bruno Haible  <bruno@clisp.org>
28252
28253         Fix bug introduced on 2009-12-31.
28254         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
28255         gl_PREREQ_SYS_H_WINSOCK2 always.
28256         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
28257         SYS_SOCKET_H variable.
28258         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
28259         Update comments.
28260         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
28261         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
28262         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
28263         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
28264         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
28265
28266 2010-03-14  Bruno Haible  <bruno@clisp.org>
28267
28268         Fix values returned by sinl, cosl.
28269         * lib/trigl.h: Add specification comments.
28270         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
28271         that combines the values from the precomputed table with the values of
28272         the Chebyshev polynomials.
28273
28274 2010-03-14  Bruno Haible  <bruno@clisp.org>
28275
28276         Fix compilation error when modules 'posix_spawn[p]' are not used.
28277         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
28278         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
28279
28280 2010-03-14  Bruno Haible  <bruno@clisp.org>
28281
28282         Fix compilation error on mingw when module 'time_r' is not used.
28283         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
28284         is 1.
28285         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
28286         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
28287         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
28288         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
28289
28290 2010-03-14  Bruno Haible  <bruno@clisp.org>
28291
28292         Fix compilation error with Sun C.
28293         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
28294         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
28295         instead of GCC specific ULONG_LONG_MAX.
28296         * lib/xstrtoll.c: Likewise.
28297         * lib/xstrtoull.c: Likewise.
28298
28299 2010-03-13  Bruno Haible  <bruno@clisp.org>
28300
28301         Allow the user to disable C++ code and tests.
28302         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
28303         (gl_PROG_ANSI_CXX): Require it.
28304
28305 2010-03-13  Bruno Haible  <bruno@clisp.org>
28306
28307         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
28308         cases.
28309
28310 2010-03-13  Bruno Haible  <bruno@clisp.org>
28311
28312         Test that gnulib does not break the standard C++ headers.
28313         * tests/test-locale-c++2.cc: New file.
28314         * modules/locale-tests (Files): Add it.
28315         (Makefile.am): Compile it for test-locale-c++.
28316         * tests/test-math-c++2.cc: New file.
28317         * modules/math-tests (Files): Add it.
28318         (Makefile.am): Compile it for test-math-c++.
28319         * tests/test-signal-c++2.cc: New file.
28320         * modules/signal-tests (Files): Add it.
28321         (Makefile.am): Compile it for test-signal-c++.
28322         * tests/test-stdio-c++2.cc: New file.
28323         * modules/stdio-tests (Files): Add it.
28324         (Makefile.am): Compile it for test-stdio-c++.
28325         * tests/test-stdlib-c++2.cc: New file.
28326         * modules/stdlib-tests (Files): Add it.
28327         (Makefile.am): Compile it for test-stdlib-c++.
28328         * tests/test-string-c++2.cc: New file.
28329         * modules/string-tests (Files): Add it.
28330         (Makefile.am): Compile it for test-string-c++.
28331         * tests/test-time-c++2.cc: New file.
28332         * modules/time-tests (Files): Add it.
28333         (Makefile.am): Compile it for test-time-c++.
28334         Reported by John W. Eaton <jwe@gnu.org>.
28335
28336 2010-03-13  Bruno Haible  <bruno@clisp.org>
28337
28338         * gnulib-tool (func_usage): Clarify which options are available for
28339         --create-testdir and --create-megatestdir.
28340
28341 2010-03-13  Bruno Haible  <bruno@clisp.org>
28342
28343         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
28344         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
28345         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
28346         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
28347         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
28348         when appropriate.
28349         Reported by Jim Meyering.
28350
28351 2010-03-12  Simon Josefsson  <simon@josefsson.org>
28352
28353         * gnulib-tool (func_import): Explain origin of code.
28354
28355 2010-03-12  Bruno Haible  <bruno@clisp.org>
28356
28357         Fix problem with automake's definition of CXXLINK.
28358         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
28359         Reported by Simon Josefsson and Ludovic Courtès.
28360
28361 2010-03-12  Bruno Haible  <bruno@clisp.org>
28362
28363         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
28364         stable releases.
28365
28366 2010-03-11  Bruno Haible  <bruno@clisp.org>
28367
28368         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
28369         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
28370         whether the system provides one variant or multiple variants of the
28371         function.
28372         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
28373         C++ compilers.
28374         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
28375         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
28376         Reported by Jim Meyering.
28377
28378 2010-03-09  Simon Josefsson  <simon@josefsson.org>
28379
28380         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
28381
28382 2010-03-08  Bruno Haible  <bruno@clisp.org>
28383
28384         gnulib-tool: Add support for --libtool in --create-testdir.
28385         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
28386         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
28387
28388 2010-03-08  Eric Blake  <eblake@redhat.com>
28389
28390         gnulib-tool.texi: mention possibility of git submodule
28391         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
28392         submodules.
28393         * doc/.gitignore: Ignore another generated file.
28394
28395 2010-03-08  Karl Berry  <karl@gnu.org>
28396
28397         * doc/gnulib-tool.texi (VCS Issues): Mention third option
28398         of committing gnulib files while skipping others.
28399
28400 2010-03-07  Bruno Haible  <bruno@clisp.org>
28401
28402         Tests of module 'wctype' in C++ mode.
28403         * tests/test-wctype-c++.cc: New file.
28404         * modules/wctype-tests (Files): Add it and tests/signature.h.
28405         (Depends-on): Add ansi-c++-opt.
28406         (Makefile.am): Arrange to compile and run test-wctype-c++.
28407
28408         Tests of module 'wchar' in C++ mode.
28409         * tests/test-wchar-c++.cc: New file.
28410         * modules/wchar-tests (Files): Add it and tests/signature.h.
28411         (Depends-on): Add ansi-c++-opt.
28412         (Makefile.am): Arrange to compile and run test-wchar-c++.
28413         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
28414         gl_MODULE_INDICATOR.
28415
28416         Tests of module 'unistd' in C++ mode.
28417         * tests/test-unistd-c++.cc: New file.
28418         * modules/unistd-tests (Files): Add it and tests/signature.h.
28419         (Depends-on): Add ansi-c++-opt.
28420         (Makefile.am): Arrange to compile and run test-unistd-c++.
28421         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
28422         gl_MODULE_INDICATOR.
28423
28424         Tests of module 'time' in C++ mode.
28425         * tests/test-time-c++.cc: New file.
28426         * modules/time-tests (Files): Add it and tests/signature.h.
28427         (Depends-on): Add ansi-c++-opt.
28428         (Makefile.am): Arrange to compile and run test-time-c++.
28429         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28430
28431         Tests of module 'sys_time' in C++ mode.
28432         * tests/test-sys_time-c++.cc: New file.
28433         * modules/sys_time-tests (Files): Add it and tests/signature.h.
28434         (Depends-on): Add ansi-c++-opt.
28435         (Makefile.am): Arrange to compile and run test-sys_time-c++.
28436         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
28437         gl_MODULE_INDICATOR.
28438
28439         Tests of module 'sys_stat' in C++ mode.
28440         * tests/test-sys_stat-c++.cc: New file.
28441         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
28442         (Depends-on): Add ansi-c++-opt.
28443         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
28444         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
28445         gl_MODULE_INDICATOR.
28446
28447         Tests of module 'sys_socket' in C++ mode.
28448         * tests/test-sys_socket-c++.cc: New file.
28449         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
28450         (Depends-on): Add ansi-c++-opt.
28451         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
28452         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
28453         gl_MODULE_INDICATOR.
28454
28455         Tests of module 'sys_select' in C++ mode.
28456         * tests/test-sys_select-c++.cc: New file.
28457         * modules/sys_select-tests (Files): Add it and tests/signature.h.
28458         (Depends-on): Add ansi-c++-opt.
28459         (Makefile.am): Arrange to compile and run test-sys_select-c++.
28460         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
28461         gl_MODULE_INDICATOR.
28462
28463         Tests of module 'sys_ioctl' in C++ mode.
28464         * tests/test-sys_ioctl-c++.cc: New file.
28465         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
28466         (Depends-on): Add ansi-c++-opt.
28467         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
28468         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
28469         gl_MODULE_INDICATOR.
28470
28471         Tests of module 'string' in C++ mode.
28472         * tests/test-string-c++.cc: New file.
28473         * modules/string-tests (Files): Add it and tests/signature.h.
28474         (Depends-on): Add ansi-c++-opt.
28475         (Makefile.am): Arrange to compile and run test-string-c++.
28476         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
28477         gl_MODULE_INDICATOR.
28478
28479         Tests of module 'stdlib' in C++ mode.
28480         * tests/test-stdlib-c++.cc: New file.
28481         * modules/stdlib-tests (Files): Add it and tests/signature.h.
28482         (Depends-on): Add ansi-c++-opt.
28483         (Makefile.am): Arrange to compile and run test-stdlib-c++.
28484         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
28485         gl_MODULE_INDICATOR.
28486
28487         Tests of module 'stdio' in C++ mode.
28488         * tests/test-stdio-c++.cc: New file.
28489         * modules/stdio-tests (Files): Add it and tests/signature.h.
28490         (Depends-on): Add ansi-c++-opt.
28491         (Makefile.am): Arrange to compile and run test-stdio-c++.
28492         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
28493         gl_MODULE_INDICATOR.
28494
28495         Tests of module 'spawn' in C++ mode.
28496         * tests/test-spawn-c++.cc: New file.
28497         * modules/spawn-tests (Files): Add it and tests/signature.h.
28498         (Depends-on): Add ansi-c++-opt.
28499         (Makefile.am): Arrange to compile and run test-spawn-c++.
28500         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
28501         gl_MODULE_INDICATOR.
28502
28503         Tests of module 'signal' in C++ mode.
28504         * tests/test-signal-c++.cc: New file.
28505         * modules/signal-tests (Files): Add it and tests/signature.h.
28506         (Depends-on): Add ansi-c++-opt.
28507         (Makefile.am): Arrange to compile and run test-signal-c++.
28508         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
28509         gl_MODULE_INDICATOR.
28510
28511         Tests of module 'search' in C++ mode.
28512         * tests/test-search-c++.cc: New file.
28513         * modules/search-tests (Files): Add it and tests/signature.h.
28514         (Depends-on): Add ansi-c++-opt.
28515         (Makefile.am): Arrange to compile and run test-search-c++.
28516         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
28517         gl_MODULE_INDICATOR.
28518
28519         Tests of module 'math' in C++ mode.
28520         * tests/test-math-c++.cc: New file.
28521         * modules/math-tests (Files): Add it and tests/signature.h.
28522         (Depends-on): Add ansi-c++-opt.
28523         (Makefile.am): Arrange to compile and run test-math-c++.
28524         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
28525
28526         Tests of module 'locale' in C++ mode.
28527         * tests/test-locale-c++.cc: New file.
28528         * modules/locale-tests (Files): Add it and tests/signature.h.
28529         (Depends-on): Add ansi-c++-opt.
28530         (Makefile.am): Arrange to compile and run test-locale-c++.
28531         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
28532         gl_MODULE_INDICATOR.
28533
28534         Tests of module 'langinfo' in C++ mode.
28535         * tests/test-langinfo-c++.cc: New file.
28536         * modules/langinfo-tests (Files): Add it and tests/signature.h.
28537         (Depends-on): Add ansi-c++-opt.
28538         (Makefile.am): Arrange to compile and run test-langinfo-c++.
28539         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
28540         gl_MODULE_INDICATOR.
28541
28542         Tests of module 'iconv-h' in C++ mode.
28543         * tests/test-iconv-h-c++.cc: New file.
28544         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
28545         (Depends-on): Add ansi-c++-opt.
28546         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
28547
28548         Tests of module 'glob' in C++ mode.
28549         * tests/test-glob-c++.cc: New file.
28550         * modules/glob-tests (Files): Add it.
28551         (Depends-on): Add ansi-c++-opt.
28552         (Makefile.am): Arrange to compile and run test-glob-c++.
28553
28554         Tests of module 'fcntl-h' in C++ mode.
28555         * tests/test-fcntl-h-c++.cc: New file.
28556         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
28557         (Depends-on): Add ansi-c++-opt.
28558         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
28559         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
28560         gl_MODULE_INDICATOR.
28561
28562         Tests of module 'dirent' in C++ mode.
28563         * tests/test-dirent-c++.cc: New file.
28564         * modules/dirent-tests (Files): Add it and tests/signature.h.
28565         (Depends-on): Add ansi-c++-opt.
28566         (Makefile.am): Arrange to compile and run test-dirent-c++.
28567         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
28568         gl_MODULE_INDICATOR.
28569
28570         New module 'ansi-c++-opt'.
28571         * modules/ansi-c++-opt: New file.
28572         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
28573
28574         Document C++ namespace mode.
28575         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
28576
28577         wctype: Avoid #define replacements in C++ mode.
28578         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
28579         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
28580         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
28581         In C++, define a namespaced alias symbol.
28582         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
28583         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
28584         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
28585         rule.
28586
28587         wchar: Avoid #define replacements in C++ mode.
28588         * lib/wchar.in.h: Include c++defs.h.
28589         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
28590         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
28591         symbol.
28592         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
28593         * modules/wchar (Depends-on): Add c++defs.
28594         (Makefile.am): Update wchar.h rule.
28595
28596         unistd: Avoid #define replacements in C++ mode.
28597         * lib/unistd.in.h: Include c++defs.h.
28598         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
28599         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
28600         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
28601         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
28602         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
28603         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
28604         symbol.
28605         (environ): Update.
28606         * modules/unistd (Depends-on): Add c++defs.
28607         (Makefile.am): Update unistd.h rule.
28608
28609         time: Avoid #define replacements in C++ mode.
28610         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
28611         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
28612         define a namespaced alias symbol.
28613         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
28614         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
28615         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
28616         * modules/time (Depends-on): Add c++defs, warn-on-use.
28617         (Makefile.am): Update time.h rule.
28618         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
28619         * modules/nanosleep (configure.ac): Likewise.
28620         * modules/strptime (configure.ac): Likewise.
28621         * modules/timegm (configure.ac): Likewise.
28622
28623         sys_time: Avoid #define replacements in C++ mode.
28624         * lib/sys_time.in.h: Include c++defs.h.
28625         (gettimeofday): In C++, define a namespaced alias symbol.
28626         * modules/sys_time (Depends-on): Add c++defs.
28627         (Makefile.am): Update sys/time.h rule.
28628
28629         sys_stat: Avoid #define replacements in C++ mode.
28630         * lib/sys_stat.in.h: Include c++defs.h.
28631         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
28632         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
28633         namespaced alias symbol.
28634         In C++, define a namespaced alias symbol.
28635         * modules/sys_stat (Depends-on): Add c++defs.
28636         (Makefile.am): Update sys/stat.h rule.
28637
28638         sys_socket: Avoid #define replacements in C++ mode.
28639         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
28640         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
28641         definitions also when the system has a <sys/socket.h>.
28642         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
28643         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
28644         In C++, define a namespaced alias symbol.
28645         * modules/sys_socket (Depends-on): Add c++defs.
28646         (Makefile.am): Update sys/socket.h rule.
28647
28648         sys_select: Avoid #define replacements in C++ mode.
28649         * lib/sys_select.in.h: Include c++defs.h. Enable the function
28650         definitions also when the system has a <sys/select.h>.
28651         (select): In C++, define a namespaced alias symbol.
28652         * modules/sys_select (Depends-on): Add c++defs.
28653         (Makefile.am): Update sys/select.h rule.
28654
28655         sys_ioctl: Avoid #define replacements in C++ mode.
28656         * lib/sys_ioctl.in.h: Include c++defs.h.
28657         (ioctl): In C++, define a namespaced alias symbol.
28658         * modules/sys_ioctl (Depends-on): Add c++defs.
28659         (Makefile.am): Update sys/ioctl.h rule.
28660
28661         string: Avoid #define replacements in C++ mode.
28662         * lib/string.in.h: Include c++defs.h.
28663         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
28664         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
28665         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
28666         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
28667         strsignal, strverscmp): In C++, define a namespaced alias symbol.
28668         * modules/string (Depends-on): Add c++defs.
28669         (Makefile.am): Update string.h rule.
28670
28671         stdlib: Avoid #define replacements in C++ mode.
28672         * lib/stdlib.in.h: Include c++defs.h.
28673         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
28674         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
28675         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
28676         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
28677         symbol.
28678         * modules/stdlib (Depends-on): Add c++defs.
28679         (Makefile.am): Update stdlib.h rule.
28680
28681         stdio: Avoid #define replacements in C++ mode.
28682         * lib/stdio.in.h: Include c++defs.h.
28683         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
28684         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
28685         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
28686         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
28687         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
28688         namespaced alias symbol.
28689         * modules/stdio (Depends-on): Add c++defs.
28690         (Makefile.am): Update stdio.h rule.
28691
28692         spawn: Avoid #define replacements in C++ mode.
28693         * lib/spawn.in.h: Include c++defs.h.
28694         (posix_spawn, posix_spawnp, posix_spawnattr_init,
28695         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
28696         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
28697         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
28698         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
28699         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
28700         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
28701         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
28702         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
28703         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
28704         In C++, define a namespaced alias symbol.
28705         * modules/spawn (Depends-on): Add c++defs.
28706         (Makefile.am): Update spawn.h rule.
28707
28708         signal: Avoid #define replacements in C++ mode.
28709         * lib/signal.in.h: Include c++defs.h.
28710         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
28711         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
28712         namespaced alias symbol.
28713         * modules/signal (Depends-on): Add c++defs.
28714         (Makefile.am): Update signal.h rule.
28715
28716         search: Avoid #define replacements in C++ mode.
28717         * lib/search.in.h: Include c++defs.h.
28718         (_gl_search_compar_fn, _gl_search_action_fn): New types.
28719         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
28720         symbol.
28721         * modules/search (Depends-on): Add c++defs.
28722         (Makefile.am): Update search.h rule.
28723
28724         math: Avoid #define replacements in C++ mode.
28725         * lib/math.in.h: Include c++defs.h.
28726         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
28727         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
28728         trunc, truncl): In C++, define a namespaced alias symbol.
28729         * modules/math (Depends-on): Add c++defs.
28730         (Makefile.am): Update math.h rule.
28731
28732         locale: Avoid #define replacements in C++ mode.
28733         * lib/locale.in.h: Include c++defs.h.
28734         (duplocale): In C++, define a namespaced alias symbol.
28735         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
28736         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
28737         * modules/locale (Depends-on): Add c++defs.
28738         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
28739
28740         langinfo: Avoid #define replacements in C++ mode.
28741         * lib/langinfo.in.h: Include c++defs.h.
28742         (nl_langinfo): In C++, define a namespaced alias symbol.
28743         * modules/langinfo (Depends-on): Add c++defs.
28744         (Makefile.am): Update langinfo.h rule.
28745
28746         iconv-h: Avoid #define replacements in C++ mode.
28747         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
28748         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
28749         symbol.
28750         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
28751         whenever iconv is present.
28752         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
28753         (Makefile.am): Update iconv.h rule.
28754
28755         glob: Avoid #define replacements in C++ mode.
28756         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
28757         (_gl_glob_errfunc_fn): New type.
28758         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
28759         symbol.
28760         * modules/glob (Depends-on): Add c++defs, warn-on-use.
28761         (Makefile.am): Update glob.h rule.
28762
28763         fcntl-h: Avoid #define replacements in C++ mode.
28764         * lib/fcntl.in.h: Include c++defs.h.
28765         (fcntl, open, openat): In C++, define a namespaced alias symbol.
28766         * modules/fcntl-h (Depends-on): Add c++defs.
28767         (Makefile.am): Update fcntl.h rule.
28768
28769         dirent: Avoid #define replacements in C++ mode.
28770         * lib/dirent.in.h: Include c++defs.h.
28771         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
28772         namespaced alias symbol.
28773         (dirfd): Update declaration.
28774         * modules/dirent (Depends-on): Add c++defs.
28775         (Makefile.am): Update dirent.h rule.
28776
28777         ctype: Make it usable in C++ code.
28778         * lib/ctype.in.h: Include c++defs.h.
28779         (isblank): Declare as extern "C".
28780         * modules/ctype (Depends-on): Add c++defs.
28781         (Makefile.am): Update ctype.h rule.
28782
28783         New module 'c++defs'.
28784         * modules/c++defs: New file.
28785         * build-aux/c++defs.h: New file.
28786         Reported by John W. Eaton <jwe@gnu.org>.
28787
28788 2010-03-07  Bruno Haible  <bruno@clisp.org>
28789
28790         logb: Provide missing declaration for Cygwin.
28791         * lib/math.in.h (logb): New declaration.
28792         * m4/logb.m4: New file.
28793         * modules/logb (Files): Add m4/logb.m4.
28794         (Depends-on): Add math.
28795         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
28796         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
28797         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
28798         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
28799         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
28800
28801 2010-03-07  Bruno Haible  <bruno@clisp.org>
28802
28803         Fix test-cond link error.
28804         * tests/test-cond.c: Include <stdio.h>.
28805
28806 2010-03-07  Bruno Haible  <bruno@clisp.org>
28807
28808         Fix test-dirent-safer link error.
28809         * modules/dirent-safer-tests (Makefile.am): Define
28810         test_dirent_safer_LDADD.
28811
28812 2010-03-07  Bruno Haible  <bruno@clisp.org>
28813
28814         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
28815         among default module list.
28816
28817 2010-03-07  Bruno Haible  <bruno@clisp.org>
28818
28819         Fix link error on platforms with GNU libiconv.
28820         * modules/unistr/u8-strcoll-tests (Makefile): Define
28821         test_u8_strcoll_LDADD.
28822         * modules/unistr/u16-strcoll-tests (Makefile): Define
28823         test_u16_strcoll_LDADD.
28824         * modules/unistr/u32-strcoll-tests (Makefile): Define
28825         test_u32_strcoll_LDADD.
28826
28827 2010-03-07  Bruno Haible  <bruno@clisp.org>
28828
28829         Use POSIX declarations for socket functions.
28830         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
28831         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
28832         rpl_sendto): Change declaration to match POSIX.
28833         * lib/connect.c (rpl_connect): Likewise.
28834         * lib/accept.c (rpl_accept): Likewise.
28835         * lib/bind.c (rpl_bind): Likewise.
28836         * lib/getpeername.c (rpl_getpeername): Likewise.
28837         * lib/getsockname.c (rpl_getsockname): Likewise.
28838         * lib/recv.c (rpl_recv): Likewise.
28839         * lib/send.c (rpl_send): Likewise.
28840         * lib/recvfrom.c (rpl_recvfrom): Likewise.
28841         * lib/sendto.c (rpl_sendto): Likewise.
28842
28843 2010-03-06  Bruno Haible  <bruno@clisp.org>
28844
28845         Clarify access, euidaccess, faccessat.
28846         * doc/posix-functions/faccessat.texi: Mention security problem under
28847         "Other problems", not "Portability problems".
28848         * doc/posix-functions/access.texi: Likewise. Mention a related security
28849         problem.
28850         * doc/glibc-functions/euidaccess.texi: Mention security problems.
28851         * lib/euidaccess.c: Add comments about platforms.
28852         * lib/unistd.in.h (access, euidaccess): Add warnings.
28853
28854 2010-03-07  Bruno Haible  <bruno@clisp.org>
28855
28856         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
28857         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
28858         (POSIX_SPAWN_SETSCHEDULER): Likewise.
28859         (POSIX_SPAWN_USEVFORK): Define in a way that works when
28860         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
28861         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
28862         declare when POSIX_SPAWN_SETSCHEDULER is zero.
28863         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
28864         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
28865         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
28866         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
28867         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
28868         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
28869         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
28870         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
28871         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
28872         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
28873         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
28874         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
28875         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
28876         Likewise.
28877         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
28878         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
28879         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
28880         Likewise.
28881         * tests/test-spawn.c (main): Make it work when
28882         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
28883
28884 2010-03-07  Bruno Haible  <bruno@clisp.org>
28885
28886         Fix incorrect Makefile.am generation in German locale.
28887         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28888         Execute sed command with character range in C locale.
28889
28890 2010-03-06  Bruno Haible  <bruno@clisp.org>
28891
28892         Tests for module 'iconv-h'.
28893         * modules/iconv-h-tests: New file.
28894         * tests/test-iconv-h.c: New file.
28895
28896         New module 'iconv-h'.
28897         * modules/iconv-h: New file.
28898         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
28899         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
28900         (configure.ac): Remove gl_ICONV_H.
28901         (Makefile.am): Remove rule for iconv.h.
28902
28903 2010-03-06  Bruno Haible  <bruno@clisp.org>
28904
28905         More consistent naming of *.m4 files.
28906         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
28907         * modules/wctype (Files): Update.
28908
28909         More consistent naming of *.m4 files.
28910         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
28911         * modules/wchar (Files): Update.
28912
28913 2010-03-06  Jim Meyering  <meyering@redhat.com>
28914
28915         euidaccess: relax license to LGPLv2+
28916         * modules/euidaccess (License): Relax to LGPLv2+.
28917
28918 2010-03-06  Bruno Haible  <bruno@clisp.org>
28919
28920         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
28921         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
28922         (Makefile.am): Augment lib_SOURCES instead.
28923
28924 2010-03-04  Jim Meyering  <meyering@redhat.com>
28925
28926         utime: remove obsolete module
28927         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
28928         unnecessary for years, and has been marked as obsolete for 10 months.
28929         * modules/utime: Remove file.
28930         * lib/utime.c: Remove file.
28931         * m4/utime.m4: Remove file.
28932         * m4/utimes-null.m4: Remove file.
28933         * doc/posix-functions/utime.texi (utime): Remove reference to
28934         the module.  Move the sole "fixed by gnulib" item into the
28935         "problems not fixed by Gnulib" list.
28936         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
28937
28938 2010-03-05  Simon Josefsson  <simon@josefsson.org>
28939
28940         * modules/exit (License): Relax license to LGPLv2+.
28941         (Status): Mark as obsolete.
28942         * NEWS: Mention deprecated 'exit' module.
28943         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
28944         of now obsolete 'exit'.
28945
28946 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28947
28948         fts-lgpl: remove unused module
28949         * modules/fts-lgpl: Remove.
28950         * MODULES.html.sh (func_all_modules): Adjust.
28951         * check-module (find_included_lib_files): Adjust.
28952         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
28953
28954 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
28955
28956         copy-acl: enhance Solaris ACL error handling
28957         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
28958         * lib/set-mode-acl.c (qset_acl): Likewise.
28959
28960 2010-03-02  Bruno Haible  <bruno@clisp.org>
28961
28962         spawn: Don't override the system defined values on FreeBSD 8.
28963         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
28964         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
28965         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
28966         if HAVE_POSIX_SPAWN is 1.
28967         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
28968
28969 2010-03-01  Bruno Haible  <bruno@clisp.org>
28970
28971         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
28972         regarding Automake.
28973
28974 2010-02-25  Bruno Haible  <bruno@clisp.org>
28975
28976         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
28977         * gnulib-tool: Define 'echo' as a function only before the ksh alias
28978         setting, not afterwards.
28979         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
28980
28981 2010-02-24  Eric Blake  <eblake@redhat.com>
28982
28983         bootstrap, git-version-gen: use timestamp
28984         * build-aux/git-version-gen (scriptversion): Force UTC.
28985         * build-aux/bootstrap (scriptversion): New variable.
28986
28987         bootstrap: allow older git
28988         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
28989         older than 1.6.4.  Requested by the libvirt project.
28990
28991 2010-02-23  Eric Blake  <eblake@redhat.com>
28992
28993         warn-on-use: work with old autoconf
28994         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
28995         AS_VAR semantics of autoconf 2.60.
28996         Reported by Bruno Haible.
28997
28998         bootstrap: improve some comments
28999         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
29000         clarification comments.
29001
29002         gettimeofday: provide correct function
29003         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
29004         when replacement is declared, otherwise provide gettimeofday.
29005         Reported by Michael Goffioul.
29006
29007 2010-02-23  Jim Meyering  <meyering@redhat.com>
29008
29009         lib-ignore: relax license to "unlimited", not LGPLv2+
29010         * modules/lib-ignore (License): Relax to "unlimited".
29011
29012 2010-02-23  Jim Meyering  <meyering@redhat.com>
29013
29014         lib-ignore: relax license to LGPLv2+
29015         * modules/lib-ignore (License): Relax to LGPLv2+.
29016
29017 2010-02-22  Eric Blake  <eblake@redhat.com>
29018
29019         lseek: avoid bash 3.2 broken pipe bug
29020         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
29021         warning from bash 3.2.
29022         Reported by Ben Pfaff, with analysis from Bruno Haible.
29023
29024         bootstrap: support non-FSF copyright holder
29025         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
29026         bootstrap.conf override of COPYRIGHT_HOLDER.
29027         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
29028
29029         bootstrap: interoperate with gettext 0.14.1
29030         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
29031
29032         bootstrap: allow for alternate submodule location
29033         * build-aux/bootstrap (gnulib_path): New variable; use instead of
29034         hardcoding submodule location.
29035         (gnulib_mk): Allow direct use of Makefile.am.
29036
29037         bootstrap: use GNULIB_SRCDIR to reduce disk usage
29038         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
29039         rather than reconfiguring where the submodule points.
29040
29041         gettimeofday: restore support for platforms that lack function
29042         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
29043         replacement if function is missing.
29044         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
29045         * modules/sys_time (Makefile.am): Substitute it.
29046         * lib/sys_time.in.h (gettimeofday): Check it.
29047         Reported by Michael Goffioul.
29048
29049 2010-02-21  Bruno Haible  <bruno@clisp.org>
29050
29051         * lib/stdio.in.h (obstack_printf): Fix typo.
29052
29053 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
29054
29055         vc-list-files: use bzr ls's -R option
29056         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
29057         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
29058
29059 2010-02-21  Jim Meyering  <meyering@redhat.com>
29060
29061         init.sh: fix EXEEXT shims to work also for names like test-prog
29062         * tests/init.sh: Re-exec a better shell, when needed.
29063         If the current shell lacks support for posix $(...), an init.sh-using
29064         test will now try to find a shell that supports that.  If EXEEXT is
29065         nonempty, we also require support for hyphen-in-alias-name and shell
29066         substitutions like ${var#glob}.  Failure to find such a shell results
29067         in a skipped test.
29068
29069 2010-02-21  Bruno Haible  <bruno@clisp.org>
29070
29071         Really work around around "broken pipe" error message from bash 3.2.
29072         * gnulib-tool (func_reset_sigpipe): Remove function.
29073         (echo): In bash 3.2, define to a function that uses printf.
29074         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
29075
29076 2010-02-20  Bruno Haible  <bruno@clisp.org>
29077
29078         Restore support for automake 1.9.6 with autoconf 2.61.
29079         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
29080         Reported by James Youngman <jay@gnu.org>.
29081
29082 2010-02-20  Bruno Haible  <bruno@clisp.org>
29083
29084         Improve *printf warning condition.
29085         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
29086         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
29087         and the function is overridden due to SIGPIPE emulation.
29088
29089 2010-02-20  Bruno Haible  <bruno@clisp.org>
29090
29091         * lib/stdio.in.h: Tweak comments.
29092
29093 2010-02-19  Bruno Haible  <bruno@clisp.org>
29094
29095         Make it easier to find modules. New gnulib-tool option '--find'.
29096         * gnulib-tool: New option --find.
29097         (func_usage): Document it.
29098         (func_sanitize_modulelist): New function, extracted from
29099         func_all_modules.
29100         (func_all_modules): Invoke it.
29101         * doc/gnulib-tool.texi (Which modules?): New node.
29102
29103 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
29104
29105         * lib/sys_select.in.h: Provide select replacement even if
29106         sys/select.h exists on a system, for Interix.
29107
29108 2010-02-18  Jim Meyering  <meyering@redhat.com>
29109
29110         init.sh: don't use $(...) just yet
29111         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
29112         to accommodate e.g., Solaris' /bin/sh.
29113
29114 2010-02-17  Bruno Haible  <bruno@clisp.org>
29115
29116         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
29117         Reported by Ludovic Courtès <ludo@gnu.org>.
29118
29119 2010-02-16  Simon Josefsson  <simon@josefsson.org>
29120
29121         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
29122         linking with -lintl.
29123
29124 2010-02-17  Simon Josefsson  <simon@josefsson.org>
29125
29126         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
29127         if not provided by the system's netdb.h.  Reported by
29128         ludo@gnu.org (Ludovic Courtès).
29129
29130 2010-02-15  Jim Meyering  <meyering@redhat.com>
29131
29132         init.sh: improve portability and efficiency
29133         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
29134         "dummy" in a for loop.
29135         Use '!', not '^' to select the complement of a character set used
29136         in a "case" statement.
29137         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
29138         Suggestions from Eric Blake.
29139
29140         init.sh: automatically accommodate programs with the .exe suffix
29141         Automatically arrange for an invocation of "prog" to execute the
29142         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
29143         may use the simpler "prog", yet still work when built on a system
29144         that requires specifying the added suffix.
29145         Do this by constructing a function named "prog" that invokes
29146         "prog.exe" for each .exe file in selected directories.
29147         * tests/init.sh (find_exe_basenames_): New function.
29148         (create_exe_shim_functions_): New function.
29149         (path_prepend_): Use it.
29150
29151         maint.mk: mark syntax-check sc_*.m rules as .PHONY
29152         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
29153         "make -t syntax-check" doesn't create a ton of sc_*.m files.
29154
29155 2010-02-14  Jim Meyering  <meyering@redhat.com>
29156
29157         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
29158         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
29159         (sc_prohibit_hash_pjw_without_use): New rule.
29160
29161         maint.mk: allow the default upload destination dir to be overridden
29162         * top/maint.mk (upload_dest_dir_): Define with a default that
29163         preserves the status quo.
29164         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
29165         Reported by Peter Simons.
29166
29167         maint.mk: prohibit inclusion of "hash.h" without_use
29168         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
29169
29170 2010-02-10  Jim Meyering  <meyering@redhat.com>
29171
29172         maint.mk: prohibit inclusion of "ignore-value.h" without_use
29173         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
29174
29175 2010-02-09  Eric Blake  <ebb9@byu.net>
29176         and Bruno Haible  <bruno@clisp.org>
29177
29178         obstack-printf-posix: ensure declaration
29179         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
29180         extracted from gl_FUNC_OBSTACK_PRINTF.
29181         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
29182         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
29183         Likewise.
29184         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
29185         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
29186         0.
29187
29188 2010-02-08  Bruno Haible  <bruno@clisp.org>
29189
29190         gnulib-tool: Fix typo in 2010-02-07 commit.
29191         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
29192         Reported by Eric Blake.
29193
29194 2010-02-07  Bruno Haible  <bruno@clisp.org>
29195
29196         gnulib-tool: Fix up caching patches.
29197         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
29198         option --no-cache. Use associative arrays when supported by the shell.
29199         (sed_comments): New variable.
29200         (modcache): Renamed from do_cache.
29201         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
29202         abbreviate unnecessarily.
29203         (have_associative): New variable.
29204         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
29205         way also for ksh and zsh.
29206         (func_init_sed_convert_to_cache_statements): New function, extracted
29207         from func_cache_lookup_module. Add support for associative arrays.
29208         Don't set the c_MODULE_cached variable here. Ignore all lines before
29209         the first field header. Remove only the final newline, not all trailing
29210         newlines. Support empty fields correctly. Limit the use of 'eval' to
29211         assignments.
29212         (func_get_description, func_get_status, func_get_notice,
29213         func_get_applicability, func_get_filelist, func_get_dependencies,
29214         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
29215         func_get_automake_snippet, func_get_include_directive,
29216         func_get_link_directive, func_get_license, func_get_maintainer):
29217         Update documentation. List the unoptimized code first. Add support for
29218         associative arrays. Limit the use of 'eval' to assignments.
29219         (func_get_applicability): Undo stylistic pessimisations.
29220         (func_get_automake_snippet, func_get_include_directive): Reduce code
29221         duplication.
29222         (func_modules_transitive_closure, func_modules_add_dummy,
29223         func_modules_notice, func_modules_to_filelist, func_add_file,
29224         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
29225         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
29226         func_create_testdir, func_create_megatestdir): Update documentation.
29227
29228 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29229
29230         * gnulib-tool (func_cache_lookup_module): Store the module name
29231         belonging to the cache variable; error out if two different
29232         module names map to the same cache variable name.
29233
29234 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29235
29236         gnulib-tool: Make caching optional.
29237         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
29238         Update matching short versions of --no-changelog.
29239         (func_usage): Update.
29240         (sed_extract_cache_prog): Renamed from ...
29241         (sed_extract_prog): ... this; revert to old extraction script.
29242         (func_get_description, func_get_status)
29243         (func_get_notice, func_get_applicability, func_get_filelist)
29244         (func_get_dependencies, func_get_autoconf_early_snippet)
29245         (func_get_autoconf_snippet, func_get_automake_snippet)
29246         (func_get_include_directive, func_get_link_directive)
29247         (func_get_license, func_get_maintainer): If $do_cache is false,
29248         use old, non-caching extraction scripts.
29249         Suggestion by Bruno Haible.
29250
29251 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29252
29253         gnulib-tool: cache module metainformation.
29254         * gnulib-tool (sed_extract_prog): Match newline before each
29255         header, and rewrite header to a shell variable suffix.
29256         (func_cache_var, func_cache_lookup_module): New functions,
29257         to turn a module name into a cache variable prefix, and to
29258         look up and cache module metainformation.
29259         (func_get_description, func_get_status)
29260         (func_get_notice, func_get_applicability, func_get_filelist)
29261         (func_get_dependencies, func_get_autoconf_early_snippet)
29262         (func_get_autoconf_snippet, func_get_automake_snippet)
29263         (func_get_include_directive, func_get_link_directive)
29264         (func_get_license, func_get_maintainer): Use
29265         func_cache_lookup_module.
29266
29267 2010-02-07  Bruno Haible  <bruno@clisp.org>
29268
29269         fnctl: Fix missing dependency.
29270         * modules/fcntl (Depends-on): Add getdtablesize.
29271         Reported by John W. Eaton <jwe@gnu.org>.
29272
29273 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29274
29275         Argp: fix recognition of short alias options.
29276
29277         * lib/argp-parse.c (convert_options): Fix improper use of
29278         `|' between character values.
29279         * tests/test-argp.c (group1_option): New alias option
29280         --read (-r).
29281         (group1_parser): Special handling for 'r'.
29282         (test15): New test case.
29283         (test_fun): Add test15.
29284         * tests/test-argp-2.sh: Update expected --help and --usage
29285         outputs.
29286
29287 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
29288
29289         * tests/test-argp.c: Fix indentation.
29290
29291 2010-02-04  Eric Blake  <ebb9@byu.net>
29292
29293         gettimeofday: expose type of second argument
29294         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
29295         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
29296         * tests/test-gettimeofday.c: Use it to silence warning.
29297         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
29298         the issue.
29299
29300 2010-02-03  Jim Meyering  <meyering@redhat.com>
29301
29302         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
29303         * lib/regcomp.c (TYPE_SIGNED): Define.
29304         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
29305
29306         regcomp.c: avoid a new -Wshadow warning
29307         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
29308
29309 2010-02-01  Jim Meyering  <meyering@redhat.com>
29310
29311         removing useless parentheses in cpp #define directives
29312         For motivation, see commit c0221df4, "define STREQ(a,b)
29313         consistently, removing useless parentheses"
29314         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
29315         * lib/mountlist.c (MNT_IGNORE): Likewise.
29316         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
29317
29318 2010-02-01  Eric Blake  <ebb9@byu.net>
29319
29320         sys_time: use link-warning
29321         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
29322         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
29323         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
29324         * modules/sys_time (Depends-on): Add warn-on-use.
29325         (Makefile.am): Always build replacement.
29326         (configure.ac): Update substitutions.
29327         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
29328         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
29329         bother with SYS_TIME_H.
29330         * modules/gettimeofday (configure.ac): Declare indicator.
29331         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
29332         in use.
29333
29334         closein-tests: silence compiler warning
29335         * tests/test-closein.c (main): Ignore fread result.
29336         * modules/closein-tests (Depends-on): Add ignore-value.
29337
29338         tests: silence warning about system return
29339         * tests/test-areadlink-with-size.c (main): Ignore system result.
29340         * tests/test-areadlink.c (main): Likewise.
29341         * tests/test-areadlinkat-with-size.c (main): Likewise.
29342         * tests/test-areadlinkat.c (main): Likewise.
29343         * tests/test-canonicalize-lgpl.c (main): Likewise.
29344         * tests/test-canonicalize.c (main): Likewise.
29345         * tests/test-chown.c (main): Likewise.
29346         * tests/test-fchownat.c (main): Likewise.
29347         * tests/test-fdutimensat.c (main): Likewise.
29348         * tests/test-fstatat.c (main): Likewise.
29349         * tests/test-futimens.c (main): Likewise.
29350         * tests/test-lchown.c (main): Likewise.
29351         * tests/test-link.c (main): Likewise.
29352         * tests/test-linkat.c (main): Likewise.
29353         * tests/test-lstat.c (main): Likewise.
29354         * tests/test-mkdir.c (main): Likewise.
29355         * tests/test-mkdirat.c (main): Likewise.
29356         * tests/test-mkfifo.c (main): Likewise.
29357         * tests/test-mkfifoat.c (main): Likewise.
29358         * tests/test-mknod.c (main): Likewise.
29359         * tests/test-readlink.c (main): Likewise.
29360         * tests/test-remove.c (main): Likewise.
29361         * tests/test-rename.c (main): Likewise.
29362         * tests/test-renameat.c (main): Likewise.
29363         * tests/test-rmdir.c (main): Likewise.
29364         * tests/test-symlink.c (main): Likewise.
29365         * tests/test-symlinkat.c (main): Likewise.
29366         * tests/test-unlink.c (main): Likewise.
29367         * tests/test-unlinkat.c (main): Likewise.
29368         * tests/test-utimens.c (main): Likewise.
29369         * tests/test-utimensat.c (main): Likewise.
29370         * modules/areadlink-tests (Depends-on): Add ignore-value.
29371         * modules/areadlink-with-size-tests (Depends-on): Likewise.
29372         * modules/areadlinkat-tests (Depends-on): Likewise.
29373         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
29374         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
29375         * modules/canonicalize-tests (Depends-on): Likewise.
29376         * modules/chown-tests (Depends-on): Likewise.
29377         * modules/fdutimensat-tests (Depends-on): Likewise.
29378         * modules/futimens-tests (Depends-on): Likewise.
29379         * modules/lchown-tests (Depends-on): Likewise.
29380         * modules/link-tests (Depends-on): Likewise.
29381         * modules/linkat-tests (Depends-on): Likewise.
29382         * modules/lstat-tests (Depends-on): Likewise.
29383         * modules/mkdir-tests (Depends-on): Likewise.
29384         * modules/mkfifo-tests (Depends-on): Likewise.
29385         * modules/mkfifoat-tests (Depends-on): Likewise.
29386         * modules/mknod-tests (Depends-on): Likewise.
29387         * modules/openat-tests (Depends-on): Likewise.
29388         * modules/readlink-tests (Depends-on): Likewise.
29389         * modules/remove-tests (Depends-on): Likewise.
29390         * modules/rename-tests (Depends-on): Likewise.
29391         * modules/renameat-tests (Depends-on): Likewise.
29392         * modules/rmdir-tests (Depends-on): Likewise.
29393         * modules/symlink-tests (Depends-on): Likewise.
29394         * modules/symlinkat-tests (Depends-on): Likewise.
29395         * modules/unlink-tests (Depends-on): Likewise.
29396         * modules/utimens-tests (Depends-on): Likewise.
29397         * modules/utimensat-tests (Depends-on): Likewise.
29398
29399 2010-01-31  Bruno Haible  <bruno@clisp.org>
29400
29401         Perform the same test for many <math.h> functions.
29402         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
29403         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
29404         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
29405         of gl_MATHFUNC.
29406         * modules/acos (configure.ac): Likewise.
29407         * modules/asin (configure.ac): Likewise.
29408         * modules/atan (configure.ac): Likewise.
29409         * modules/atan2 (configure.ac): Likewise.
29410         * modules/cbrt (configure.ac): Likewise.
29411         * modules/copysign (configure.ac): Likewise.
29412         * modules/cos (configure.ac): Likewise.
29413         * modules/cosh (configure.ac): Likewise.
29414         * modules/erf (configure.ac): Likewise.
29415         * modules/erfc (configure.ac): Likewise.
29416         * modules/exp (configure.ac): Likewise.
29417         * modules/fmod (configure.ac): Likewise.
29418         * modules/hypot (configure.ac): Likewise.
29419         * modules/j0 (configure.ac): Likewise.
29420         * modules/j1 (configure.ac): Likewise.
29421         * modules/jn (configure.ac): Likewise.
29422         * modules/lgamma (configure.ac): Likewise.
29423         * modules/log (configure.ac): Likewise.
29424         * modules/log10 (configure.ac): Likewise.
29425         * modules/log1p (configure.ac): Likewise.
29426         * modules/pow (configure.ac): Likewise.
29427         * modules/remainder (configure.ac): Likewise.
29428         * modules/sin (configure.ac): Likewise.
29429         * modules/sinh (configure.ac): Likewise.
29430         * modules/tan (configure.ac): Likewise.
29431         * modules/tanh (configure.ac): Likewise.
29432         * modules/y0 (configure.ac): Likewise.
29433         * modules/y1 (configure.ac): Likewise.
29434         * modules/yn (configure.ac): Likewise.
29435         Suggested by Paolo Bonzini.
29436
29437 2010-01-31  Bruno Haible  <bruno@clisp.org>
29438
29439         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
29440
29441 2010-01-31  Bruno Haible  <bruno@clisp.org>
29442
29443         Work around getdelim() bug on FreeBSD 8.0.
29444         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
29445         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
29446         not work.
29447         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
29448         is 1.
29449         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
29450         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
29451         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
29452         a non-zero size.
29453         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
29454
29455 2010-01-31  Bruno Haible  <bruno@clisp.org>
29456
29457         Work around getline() bug on FreeBSD 8.0.
29458         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
29459         and a non-zero size.
29460         * tests/test-getline.c (main): Likewise.
29461         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
29462         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
29463
29464 2010-01-28  Eric Blake  <ebb9@byu.net>
29465
29466         regex: fix build failure
29467         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
29468         platforms.
29469
29470 2010-01-28  Jim Meyering  <meyering@redhat.com>
29471
29472         regex: do not ignore memory allocation failure
29473         * lib/regex_internal.c (create_cd_newstate): Detect
29474         re_node_set_init_copy failure.   Extracted from glibc commit
29475         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29476
29477         regex: sync more white-space changes from libc
29478         * lib/regex_internal.c: White-space only changes.
29479         * lib/regexec.c: Likewise.
29480
29481         regex: add many uses of __attribute_warn_unused_result__
29482         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
29483         * lib/regexec.c: Likewise.
29484         Extracted from a messy glibc commit.
29485
29486         regcomp.c: spelling and merge-artifact from glibc
29487         * lib/regcomp.c: Merge remainder of glibc's
29488         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29489
29490         regcomp.c: sync white-space changes from glibc
29491         * lib/regcomp.c: Merge to accommodate white space
29492         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
29493
29494         regcomp.c: do not ignore internal return values
29495         * lib/regcomp.c: Do not ignore internal return values.
29496         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
29497         but without its white-space changes and spelling fixes.
29498
29499         regex_internal.h: define __attribute_warn_unused_result__
29500         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
29501
29502         maint: add a syntax-check rule to check for vulnerable Makefile.in
29503         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
29504
29505 2010-01-27  Jim Meyering  <meyering@redhat.com>
29506
29507         ncftpput-ftp: clean up spaces
29508         * build-aux/ncftpput-ftp: Make Copyright line consistent.
29509         Remove trailing blanks.
29510
29511 2010-01-27  Simon Josefsson  <simon@josefsson.org>
29512
29513         * build-aux/git-version-gen: Fix copyright statement.
29514         * build-aux/gnupload: Likewise.
29515         * tests/test-arcfour.c: Likewise.
29516         * tests/test-arctwo.c: Likewise.
29517         * tests/test-count-one-bits.c: Likewise.
29518         * tests/test-crc.c: Likewise.
29519         * tests/test-des.c: Likewise.
29520         * tests/test-gc-arcfour.c: Likewise.
29521         * tests/test-gc-arctwo.c: Likewise.
29522         * tests/test-gc-des.c: Likewise.
29523         * tests/test-gc-hmac-md5.c: Likewise.
29524         * tests/test-gc-hmac-sha1.c: Likewise.
29525         * tests/test-gc-md2.c: Likewise.
29526         * tests/test-gc-md4.c: Likewise.
29527         * tests/test-gc-md5.c: Likewise.
29528         * tests/test-gc-pbkdf2-sha1.c: Likewise.
29529         * tests/test-gc-rijndael.c: Likewise.
29530         * tests/test-gc-sha1.c: Likewise.
29531         * tests/test-gc.c: Likewise.
29532         * tests/test-gethostname.c: Likewise.
29533         * tests/test-gettimeofday.c: Likewise.
29534         * tests/test-hash.c: Likewise.
29535         * tests/test-hmac-md5.c: Likewise.
29536         * tests/test-hmac-sha1.c: Likewise.
29537         * tests/test-md2.c: Likewise.
29538         * tests/test-md4.c: Likewise.
29539         * tests/test-md5.c: Likewise.
29540         * tests/test-memchr.c: Likewise.
29541         * tests/test-memchr2.c: Likewise.
29542         * tests/test-memcmp.c: Likewise.
29543         * tests/test-memmem.c: Likewise.
29544         * tests/test-memrchr.c: Likewise.
29545         * tests/test-rawmemchr.c: Likewise.
29546         * tests/test-read-file.c: Likewise.
29547         * tests/test-rijndael.c: Likewise.
29548         * tests/test-sockets.c: Likewise.
29549         * tests/test-strchrnul.c: Likewise.
29550         * tests/test-strstr.c: Likewise.
29551         * tests/test-strtod.c: Likewise.
29552         * build-aux/ncftpput-ftp: Likewise.
29553
29554 2010-01-26  Eric Blake  <ebb9@byu.net>
29555
29556         ignore-value: update recommended header name
29557         * modules/ignore-value (Include): Only use <> for headers that
29558         exist in glibc.
29559
29560 2010-01-26  Jim Meyering  <meyering@redhat.com>
29561
29562         test-userspec.c: avoid compiler warnings
29563         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
29564         and "initialization discards qualifiers..." warnings.
29565         Put the first "uid" in its own scope, and make char* members "const".
29566
29567 2010-01-25  Bruno Haible  <bruno@clisp.org>
29568
29569         gnulib-tool: Make warning diagnostics consistent.
29570         * gnulib-tool (func_warning): New function.
29571         Use it everywhere where gnulib-tool produces output to stderr and it is
29572         not a fatal error.
29573
29574 2010-01-25  Bruno Haible  <bruno@clisp.org>
29575
29576         Fix test dependencies.
29577         * modules/xstrtol-tests (Depends-on): Add inttypes.
29578         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
29579
29580 2010-01-25 Pádraig Brady <P@draigBrady.com>
29581
29582         syntax-check: detect incorrect boolean macro values in config.h
29583         * modules/maintainer-makefile (configure.ac): Parameterize the location
29584         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
29585         The logic is from Eric Blake and the location indicated by Jim Meyering.
29586         Note the more natural CONFIG_HEADER name is prohibited by automake
29587         for backwards compatibility reasons.
29588         * top/maint.mk (sc_Wundef_boolean): New rule.
29589
29590 2010-01-25  Jim Meyering  <meyering@redhat.com>
29591
29592         bootstrap: detect MacOS 10.6's shasum, too
29593         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
29594         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
29595
29596 2010-01-23  Jim Meyering  <meyering@redhat.com>
29597
29598         xstrtoll: new module
29599         * modules/xstrtoll: New file.
29600         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
29601         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
29602         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
29603         ./configure fails if you use this module and lack "long long".
29604         * modules/xstrtoll-tests: New module.
29605         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
29606         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
29607         new init.sh-based test framework.
29608
29609 2010-01-24  Bruno Haible  <bruno@clisp.org>
29610
29611         Tests for module 'yn'.
29612         * modules/yn-tests: New file.
29613         * tests/test-yn.c: New file.
29614
29615         Tests for module 'y1'.
29616         * modules/y1-tests: New file.
29617         * tests/test-y1.c: New file.
29618
29619         Tests for module 'y0'.
29620         * modules/y0-tests: New file.
29621         * tests/test-y0.c: New file.
29622
29623         Tests for module 'tanh'.
29624         * modules/tanh-tests: New file.
29625         * tests/test-tanh.c: New file.
29626
29627         Tests for module 'tan'.
29628         * modules/tan-tests: New file.
29629         * tests/test-tan.c: New file.
29630
29631         Tests for module 'sqrt'.
29632         * modules/sqrt-tests: New file.
29633         * tests/test-sqrt.c: New file.
29634
29635         Tests for module 'sinh'.
29636         * modules/sinh-tests: New file.
29637         * tests/test-sinh.c: New file.
29638
29639         Tests for module 'sin'.
29640         * modules/sin-tests: New file.
29641         * tests/test-sin.c: New file.
29642
29643         Tests for module 'rint'.
29644         * modules/rint-tests: New file.
29645         * tests/test-rint.c: New file.
29646
29647         Tests for module 'remainder'.
29648         * modules/remainder-tests: New file.
29649         * tests/test-remainder.c: New file.
29650
29651         Tests for module 'pow'.
29652         * modules/pow-tests: New file.
29653         * tests/test-pow.c: New file.
29654
29655         Tests for module 'nextafter'.
29656         * modules/nextafter-tests: New file.
29657         * tests/test-nextafter.c: New file.
29658
29659         Tests for module 'modf'.
29660         * modules/modf-tests: New file.
29661         * tests/test-modf.c: New file.
29662
29663         Tests for module 'logb'.
29664         * modules/logb-tests: New file.
29665         * tests/test-logb.c: New file.
29666
29667         Tests for module 'log1p'.
29668         * modules/log1p-tests: New file.
29669         * tests/test-log1p.c: New file.
29670
29671         Tests for module 'log10'.
29672         * modules/log10-tests: New file.
29673         * tests/test-log10.c: New file.
29674
29675         Tests for module 'log'.
29676         * modules/log-tests: New file.
29677         * tests/test-log.c: New file.
29678
29679         Tests for module 'lgamma'.
29680         * modules/lgamma-tests: New file.
29681         * tests/test-lgamma.c: New file.
29682
29683         Tests for module 'ldexp'.
29684         * modules/ldexp-tests: New file.
29685         * tests/test-ldexp.c: New file.
29686
29687         Tests for module 'jn'.
29688         * modules/jn-tests: New file.
29689         * tests/test-jn.c: New file.
29690
29691         Tests for module 'j1'.
29692         * modules/j1-tests: New file.
29693         * tests/test-j1.c: New file.
29694
29695         Tests for module 'j0'.
29696         * modules/j0-tests: New file.
29697         * tests/test-j0.c: New file.
29698
29699         Tests for module 'hypot'.
29700         * modules/hypot-tests: New file.
29701         * tests/test-hypot.c: New file.
29702
29703         Tests for module 'fmod'.
29704         * modules/fmod-tests: New file.
29705         * tests/test-fmod.c: New file.
29706
29707         Tests for module 'fabs'.
29708         * modules/fabs-tests: New file.
29709         * tests/test-fabs.c: New file.
29710
29711         Tests for module 'exp'.
29712         * modules/exp-tests: New file.
29713         * tests/test-exp.c: New file.
29714
29715         Tests for module 'erfc'.
29716         * modules/erfc-tests: New file.
29717         * tests/test-erfc.c: New file.
29718
29719         Tests for module 'erf'.
29720         * modules/erf-tests: New file.
29721         * tests/test-erf.c: New file.
29722
29723         Tests for module 'cosh'.
29724         * modules/cosh-tests: New file.
29725         * tests/test-cosh.c: New file.
29726
29727         Tests for module 'cos'.
29728         * modules/cos-tests: New file.
29729         * tests/test-cos.c: New file.
29730
29731         Tests for module 'copysign'.
29732         * modules/copysign-tests: New file.
29733         * tests/test-copysign.c: New file.
29734
29735         Tests for module 'cbrt'.
29736         * modules/cbrt-tests: New file.
29737         * tests/test-cbrt.c: New file.
29738
29739         Tests for module 'atan2'.
29740         * modules/atan2-tests: New file.
29741         * tests/test-atan2.c: New file.
29742
29743         Tests for module 'atan'.
29744         * modules/atan-tests: New file.
29745         * tests/test-atan.c: New file.
29746
29747         Tests for module 'asin'.
29748         * modules/asin-tests: New file.
29749         * tests/test-asin.c: New file.
29750
29751         Tests for module 'acos'.
29752         * modules/acos-tests: New file.
29753         * tests/test-acos.c: New file.
29754
29755 2010-01-24  Bruno Haible  <bruno@clisp.org>
29756
29757         Fix tests for common <math.h> functions.
29758         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
29759         code snippet that references the function pointer, rather than merely
29760         calling the function. Substitute the FUNC_LIBM variable.
29761         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
29762         * modules/acos (configure.ac): Likewise.
29763         * modules/asin (configure.ac): Likewise.
29764         * modules/atan (configure.ac): Likewise.
29765         * modules/atan2 (configure.ac): Likewise.
29766         * modules/cbrt (configure.ac): Likewise.
29767         * modules/copysign (configure.ac): Likewise.
29768         * modules/cos (configure.ac): Likewise.
29769         * modules/cosh (configure.ac): Likewise.
29770         * modules/erf (configure.ac): Likewise.
29771         * modules/erfc (configure.ac): Likewise.
29772         * modules/exp (configure.ac): Likewise.
29773         * modules/fabs (configure.ac): Likewise.
29774         * modules/fmod (configure.ac): Likewise.
29775         * modules/hypot (configure.ac): Likewise.
29776         * modules/j0 (configure.ac): Likewise.
29777         * modules/j1 (configure.ac): Likewise.
29778         * modules/jn (configure.ac): Likewise.
29779         * modules/ldexp (configure.ac): Likewise.
29780         * modules/lgamma (configure.ac): Likewise.
29781         * modules/log (configure.ac): Likewise.
29782         * modules/log10 (configure.ac): Likewise.
29783         * modules/log1p (configure.ac): Likewise.
29784         * modules/logb (configure.ac): Likewise.
29785         * modules/modf (configure.ac): Likewise.
29786         * modules/nextafter (configure.ac): Likewise.
29787         * modules/pow (configure.ac): Likewise.
29788         * modules/remainder (configure.ac): Likewise.
29789         * modules/rint (configure.ac): Likewise.
29790         * modules/sin (configure.ac): Likewise.
29791         * modules/sinh (configure.ac): Likewise.
29792         * modules/tan (configure.ac): Likewise.
29793         * modules/tanh (configure.ac): Likewise.
29794         * modules/y0 (configure.ac): Likewise.
29795         * modules/y1 (configure.ac): Likewise.
29796         * modules/yn (configure.ac): Likewise.
29797
29798 2010-01-24  Bruno Haible  <bruno@clisp.org>
29799
29800         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
29801         * tests/test-acosl.c (x): New variable.
29802         (main): Store argument in x and fetch it from x.
29803         * tests/test-asinl.c (x): New variable.
29804         (main): Store argument in x and fetch it from x.
29805         * tests/test-atanl.c (x): New variable.
29806         (main): Store argument in x and fetch it from x.
29807         * tests/test-cosl.c (x): New variable.
29808         (main): Store argument in x and fetch it from x.
29809         * tests/test-expl.c (x): New variable.
29810         (main): Store argument in x and fetch it from x.
29811         * tests/test-logl.c (x): New variable.
29812         (main): Store argument in x and fetch it from x.
29813         * tests/test-sinl.c (x): New variable.
29814         (main): Store argument in x and fetch it from x.
29815         * tests/test-sqrtl.c (x): New variable.
29816         (main): Store argument in x and fetch it from x.
29817         * tests/test-tanl.c (x): New variable.
29818         (main): Store argument in x and fetch it from x.
29819
29820 2010-01-24  Bruno Haible  <bruno@clisp.org>
29821
29822         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
29823         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
29824         assignments to the initial TESTS_ENVIRONMENT.
29825         * doc/gnulib.texi (Unit test modules): Document it.
29826         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
29827         TESTS_ENVIRONMENT.
29828         * modules/btowc-tests (Makefile.am): Likewise.
29829         * modules/c-stack-tests (Makefile.am): Likewise.
29830         * modules/c-strcase-tests (Makefile.am): Likewise.
29831         * modules/copy-file-tests (Makefile.am): Likewise.
29832         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
29833         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
29834         * modules/mbrtowc-tests (Makefile.am): Likewise.
29835         * modules/mbscasecmp-tests (Makefile.am): Likewise.
29836         * modules/mbscasestr-tests (Makefile.am): Likewise.
29837         * modules/mbschr-tests (Makefile.am): Likewise.
29838         * modules/mbscspn-tests (Makefile.am): Likewise.
29839         * modules/mbsinit-tests (Makefile.am): Likewise.
29840         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
29841         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
29842         * modules/mbspbrk-tests (Makefile.am): Likewise.
29843         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
29844         * modules/mbsrchr-tests (Makefile.am): Likewise.
29845         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
29846         * modules/mbsspn-tests (Makefile.am): Likewise.
29847         * modules/mbsstr-tests (Makefile.am): Likewise.
29848         * modules/nl_langinfo-tests (Makefile.am): Likewise.
29849         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
29850         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
29851         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
29852         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
29853         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
29854         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
29855         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
29856         * modules/wcrtomb-tests (Makefile.am): Likewise.
29857         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
29858         * modules/wcsrtombs-tests (Makefile.am): Likewise.
29859         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
29860         assignments from TESTS_ENVIRONMENT.
29861         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
29862         augmentation.
29863         * modules/argp-version-etc-tests (Makefile.am): Likewise.
29864         * modules/atexit-tests (Makefile.am): Likewise.
29865         * modules/binary-io-tests (Makefile.am): Likewise.
29866         * modules/closein-tests (Makefile.am): Likewise.
29867         * modules/dprintf-posix-tests (Makefile.am): Likewise.
29868         * modules/exclude-tests (Makefile.am): Likewise.
29869         * modules/fflush-tests (Makefile.am): Likewise.
29870         * modules/fpending-tests (Makefile.am): Likewise.
29871         * modules/fprintf-posix-tests (Makefile.am): Likewise.
29872         * modules/freadahead-tests (Makefile.am): Likewise.
29873         * modules/freadptr-tests (Makefile.am): Likewise.
29874         * modules/freadseek-tests (Makefile.am): Likewise.
29875         * modules/fseek-tests (Makefile.am): Likewise.
29876         * modules/fseeko-tests (Makefile.am): Likewise.
29877         * modules/ftell-tests (Makefile.am): Likewise.
29878         * modules/ftello-tests (Makefile.am): Likewise.
29879         * modules/idpriv-drop-tests (Makefile.am): Likewise.
29880         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
29881         * modules/lseek-tests (Makefile.am): Likewise.
29882         * modules/parse-duration-tests (Makefile.am): Likewise.
29883         * modules/perror-tests (Makefile.am): Likewise.
29884         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
29885         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
29886         * modules/pipe-tests (Makefile.am): Likewise.
29887         * modules/pread-tests (Makefile.am): Likewise.
29888         * modules/printf-posix-tests (Makefile.am): Likewise.
29889         * modules/select-tests (Makefile.am): Likewise.
29890         * modules/sigpipe-tests (Makefile.am): Likewise.
29891         * modules/tsearch-tests (Makefile.am): Likewise.
29892         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
29893         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
29894         * modules/uniname/uniname-tests (Makefile.am): Likewise.
29895         * modules/uniwidth/width-tests (Makefile.am): Likewise.
29896         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
29897         * modules/version-etc-tests (Makefile.am): Likewise.
29898         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
29899         * modules/vprintf-posix-tests (Makefile.am): Likewise.
29900         * modules/xalloc-die-tests (Makefile.am): Likewise.
29901         * modules/xprintf-posix-tests (Makefile.am): Likewise.
29902         * modules/xstrtoimax-tests (Makefile.am): Likewise.
29903         * modules/xstrtol-tests (Makefile.am): Likewise.
29904         * modules/xstrtoumax-tests (Makefile.am): Likewise.
29905         * modules/yesno-tests (Makefile.am): Likewise.
29906         Suggested by Jim Meyering.
29907
29908 2010-01-24  Bruno Haible  <bruno@clisp.org>
29909
29910         More documentation.
29911         * doc/gnulib.texi (Writing modules): New chapter.
29912         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
29913         the new chapter.
29914
29915 2010-01-24  Jim Meyering  <meyering@redhat.com>
29916
29917         maint.mk: do not prepend "./" after filtering
29918         * top/maint.mk (_prepend_srcdir_prefix): New variable
29919         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
29920         "./" when $(srcdir) is ".".
29921
29922         define STREQ(a,b) consistently, removing useless parentheses
29923         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
29924         since the only risk is that "a" or "b" contains an unparenthesized
29925         comma, but if either did that, STREQ would have 3 or more arguments.
29926         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
29927         * lib/fts.c (STREQ): Remove unnecessary parentheses.
29928         * lib/hash-triple.c (STREQ): Likewise.
29929         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
29930         * lib/getugroups.c (STREQ): Likewise.
29931
29932 2010-01-23  Jim Meyering  <meyering@redhat.com>
29933
29934         maint.mk: fix syntax-check in a non-srcdir build directory
29935         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
29936         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
29937
29938 2010-01-22  Jim Meyering  <meyering@redhat.com>
29939
29940         userspec: add unit tests
29941         * tests/test-userspec.c: New file.
29942         * modules/userspec-tests: Likewise.
29943
29944 2010-01-21  Jim Meyering  <meyering@redhat.com>
29945
29946         maint.mk: handle source file names containing "." robustly
29947         * top/maint.mk (_dot_escaped_srcdir): Define.
29948         (VC_LIST): Use it in LHS of sed substitution.
29949
29950 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
29951
29952         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
29953         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
29954         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
29955         from a non-srcdir build.
29956
29957 2010-01-20  Eric Blake  <ebb9@byu.net>
29958
29959         warn-on-use: use instead of link-warning
29960         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
29961         * modules/unistd (Depends-on, Makefile.am): Likewise.
29962         * modules/arpa_inet (Depends-on): Replace link-warning with
29963         warn-on-use.
29964         (Makefile.am): Update rules accordingly.
29965         * modules/ctype (Depends-on, Makefile.am): Likewise.
29966         * modules/dirent (Depends-on, Makefile.am): Likewise.
29967         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
29968         * modules/inttypes (Depends-on, Makefile.am): Likewise.
29969         * modules/langinfo (Depends-on, Makefile.am): Likewise.
29970         * modules/locale (Depends-on, Makefile.am): Likewise.
29971         * modules/math (Depends-on, Makefile.am): Likewise.
29972         * modules/search (Depends-on, Makefile.am): Likewise.
29973         * modules/signal (Depends-on, Makefile.am): Likewise.
29974         * modules/spawn (Depends-on, Makefile.am): Likewise.
29975         * modules/stdlib (Depends-on, Makefile.am): Likewise.
29976         * modules/string (Depends-on, Makefile.am): Likewise.
29977         * modules/strings (Depends-on, Makefile.am): Likewise.
29978         * modules/sys_file (Depends-on, Makefile.am): Likewise.
29979         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
29980         * modules/sys_select (Depends-on, Makefile.am): Likewise.
29981         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
29982         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
29983         * modules/sys_times (Depends-on, Makefile.am): Likewise.
29984         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
29985         * modules/wchar (Depends-on, Makefile.am): Likewise.
29986         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
29987         should be poisoned.
29988         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
29989         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
29990         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
29991         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
29992         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
29993         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
29994         * m4/math_h.m4 (gl_MATH_H): Likewise.
29995         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
29996         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
29997         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
29998         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
29999         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
30000         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
30001         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
30002         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
30003         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
30004         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
30005         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
30006         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
30007         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
30008         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
30009         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
30010         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
30011         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
30012         GL_LINK_WARNING.
30013         * lib/ctype.in.h: Likewise.
30014         * lib/dirent.in.h: Likewise.
30015         * lib/fcntl.in.h: Likewise.
30016         * lib/inttypes.in.h: Likewise.
30017         * lib/langinfo.in.h: Likewise.
30018         * lib/locale.in.h: Likewise.
30019         * lib/math.in.h: Likewise.
30020         * lib/search.in.h: Likewise.
30021         * lib/signal.in.h: Likewise.
30022         * lib/spawn.in.h: Likewise.
30023         * lib/stdio.in.h: Likewise.
30024         * lib/stdlib.in.h: Likewise.
30025         * lib/string.in.h: Likewise.
30026         * lib/strings.in.h: Likewise.
30027         * lib/sys_file.in.h: Likewise.
30028         * lib/sys_ioctl.in.h: Likewise.
30029         * lib/sys_select.in.h: Likewise.
30030         * lib/sys_socket.in.h: Likewise.
30031         * lib/sys_stat.in.h: Likewise.
30032         * lib/sys_times.in.h: Likewise.
30033         * lib/sys_utsname.in.h: Likewise.
30034         * lib/unistd.in.h: Likewise.
30035         * lib/wchar.in.h: Likewise.
30036
30037 2010-01-20  Bruno Haible  <bruno@clisp.org>
30038
30039         Avoid duplicate -lm.
30040         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
30041         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
30042         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
30043         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
30044         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
30045         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
30046         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
30047         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
30048         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
30049         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
30050         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
30051         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
30052         Reported by Paolo Bonzini.
30053
30054 2010-01-19  Bruno Haible  <bruno@clisp.org>
30055
30056         langinfo, nl_langinfo: Relicense under LGPLv2+.
30057         * modules/langinfo (License): Change to LGPLv2+.
30058         * modules/nl_langinfo (License): Likewise.
30059         Patch by David Lutterkort <lutter@redhat.com>.
30060
30061 2010-01-19  Bruno Haible  <bruno@clisp.org>
30062
30063         Avoid compilation error with cc on OSF/1 5.1.
30064         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
30065         statement, not before.
30066         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30067
30068 2010-01-18  Bruno Haible  <bruno@clisp.org>
30069
30070         Avoid a link error due to the __printf__ symbol.
30071         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
30072         and 2.6.x.
30073         (__format__, __printf__): Remove definitions.
30074         * lib/argp-fmtstream.h: Likewise.
30075         * lib/argp.h: Likewise.
30076         * lib/error.h: Likewise.
30077         * lib/vasnprintf.h: Likewise.
30078         * lib/xprintf.h: Likewise.
30079         * lib/xvasprintf.h: Likewise.
30080         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30081
30082 2010-01-18  Bruno Haible  <bruno@clisp.org>
30083
30084         Tests for module 'tanl'.
30085         * modules/tanl-tests: New file.
30086         * tests/test-tanl.c: New file.
30087
30088         Tests for module 'sqrtl'.
30089         * modules/sqrtl-tests: New file.
30090         * tests/test-sqrtl.c: New file.
30091
30092         Tests for module 'sinl'.
30093         * modules/sinl-tests: New file.
30094         * tests/test-sinl.c: New file.
30095
30096         Tests for module 'logl'.
30097         * modules/logl-tests: New file.
30098         * tests/test-logl.c: New file.
30099
30100         Tests for module 'expl'.
30101         * modules/expl-tests: New file.
30102         * tests/test-expl.c: New file.
30103
30104         Tests for module 'cosl'.
30105         * modules/cosl-tests: New file.
30106         * tests/test-cosl.c: New file.
30107
30108         Tests for module 'atanl'.
30109         * modules/atanl-tests: New file.
30110         * tests/test-atanl.c: New file.
30111
30112         Tests for module 'asinl'.
30113         * modules/asinl-tests: New file.
30114         * tests/test-asinl.c: New file.
30115
30116         Tests for module 'acosl'.
30117         * modules/acosl-tests: New file.
30118         * tests/test-acosl.c: New file.
30119
30120         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
30121         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
30122         tanl): Use the standard gnulib idiom.
30123         * lib/cosl.c: Don't include trigl.c and sincosl.c.
30124         * lib/sinl.c: Likewise.
30125         * lib/tanl.c: Don't include trigl.c.
30126         (kernel_tanl): Make static.
30127         * lib/sincosl.c: Include trigl.h first.
30128         * lib/trigl.c: Likewise.
30129         * m4/acosl.m4: New file.
30130         * m4/asinl.m4: New file.
30131         * m4/atanl.m4: New file.
30132         * m4/cosl.m4: New file.
30133         * m4/expl.m4: New file.
30134         * m4/logl.m4: New file.
30135         * m4/sinl.m4: New file.
30136         * m4/sqrtl.m4: New file.
30137         * m4/tanl.m4: New file.
30138         * m4/mathl.m4: Remove file.
30139         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
30140         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
30141         Don't initialize GNULIB_MATHL.
30142         * modules/acosl: New file.
30143         * modules/asinl: New file.
30144         * modules/atanl: New file.
30145         * modules/cosl: New file.
30146         * modules/expl: New file.
30147         * modules/logl: New file.
30148         * modules/sinl: New file.
30149         * modules/sqrtl: New file.
30150         * modules/tanl: New file.
30151         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
30152         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
30153         substitute GNULIB_MATHL.
30154         * modules/mathl: Rewritten.
30155         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
30156         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
30157         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
30158         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
30159         * doc/posix-functions/expl.texi: Mention the 'expl' module.
30160         * doc/posix-functions/logl.texi: Mention the 'logl' module.
30161         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
30162         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
30163         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
30164
30165 2010-01-18  Bruno Haible  <bruno@clisp.org>
30166
30167         sqrt: Make gl_FUNC_SQRT requirable.
30168         * m4/sqrt.m4: New file.
30169         * modules/sqrt (Files): Add it.
30170         (configure.ac): Invoke gl_FUNC_SQRT.
30171
30172 2010-01-18  Bruno Haible  <bruno@clisp.org>
30173
30174         New modules for common <math.h> functions.
30175         * m4/mathfunc.m4: New file.
30176         * modules/acos: New file.
30177         * modules/asin: New file.
30178         * modules/atan: New file.
30179         * modules/atan2: New file.
30180         * modules/cbrt: New file.
30181         * modules/copysign: New file.
30182         * modules/cos: New file.
30183         * modules/cosh: New file.
30184         * modules/erf: New file.
30185         * modules/erfc: New file.
30186         * modules/exp: New file.
30187         * modules/fabs: New file.
30188         * modules/fmod: New file.
30189         * modules/hypot: New file.
30190         * modules/j0: New file.
30191         * modules/j1: New file.
30192         * modules/jn: New file.
30193         * modules/ldexp: New file.
30194         * modules/lgamma: New file.
30195         * modules/log: New file.
30196         * modules/log10: New file.
30197         * modules/log1p: New file.
30198         * modules/logb: New file.
30199         * modules/modf: New file.
30200         * modules/nextafter: New file.
30201         * modules/pow: New file.
30202         * modules/remainder: New file.
30203         * modules/rint: New file.
30204         * modules/sin: New file.
30205         * modules/sinh: New file.
30206         * modules/sqrt: New file.
30207         * modules/tan: New file.
30208         * modules/tanh: New file.
30209         * modules/y0: New file.
30210         * modules/y1: New file.
30211         * modules/yn: New file.
30212         * doc/posix-functions/acos.texi: Mention the 'acos' module.
30213         * doc/posix-functions/asin.texi: Mention the 'asin' module.
30214         * doc/posix-functions/atan.texi: Mention the 'atan' module.
30215         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
30216         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
30217         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
30218         * doc/posix-functions/cos.texi: Mention the 'cos' module.
30219         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
30220         * doc/posix-functions/erf.texi: Mention the 'erf' module.
30221         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
30222         * doc/posix-functions/exp.texi: Mention the 'exp' module.
30223         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
30224         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
30225         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
30226         * doc/posix-functions/j0.texi: Mention the 'j0' module.
30227         * doc/posix-functions/j1.texi: Mention the 'j1' module.
30228         * doc/posix-functions/jn.texi: Mention the 'jn' module.
30229         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
30230         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
30231         * doc/posix-functions/log.texi: Mention the 'log' module.
30232         * doc/posix-functions/log10.texi: Mention the 'log10' module.
30233         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
30234         * doc/posix-functions/logb.texi: Mention the 'logb' module.
30235         * doc/posix-functions/modf.texi: Mention the 'modf' module.
30236         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
30237         * doc/posix-functions/pow.texi: Mention the 'pow' module.
30238         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
30239         * doc/posix-functions/rint.texi: Mention the 'rint' module.
30240         * doc/posix-functions/sin.texi: Mention the 'sin' module.
30241         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
30242         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
30243         * doc/posix-functions/tan.texi: Mention the 'tan' module.
30244         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
30245         * doc/posix-functions/y0.texi: Mention the 'y0' module.
30246         * doc/posix-functions/y1.texi: Mention the 'y1' module.
30247         * doc/posix-functions/yn.texi: Mention the 'yn' module.
30248
30249 2010-01-18  Jim Meyering  <meyering@redhat.com>
30250
30251         ignore-value: relax license to LGPLv2+
30252         * modules/ignore-value (License): Relax to LGPLv2+.
30253
30254         getdate: don't leak when TZ contains two or more '"'s
30255         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
30256         double quote in TZ after the first one.
30257
30258         readtokens: do not leak internal token_lengths buffer
30259         * lib/readtokens.c (readtokens): Free the local, lengths,
30260         when the supplied "token_lengths" parameter is NULL.
30261
30262 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30263
30264         Fix a couple of missing LIBTHREAD link failures on AIX.
30265         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
30266         $(LIBTHREAD).
30267         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
30268
30269         Link test-poll against INET_PTON_LIB.
30270         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
30271         for inet_pton on Solaris 10.
30272
30273 2010-01-17  Bruno Haible  <bruno@clisp.org>
30274
30275         unistdio/*-sprintf: Fix typo in module description.
30276         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
30277         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
30278         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
30279         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
30280         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
30281         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
30282         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
30283         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
30284
30285 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30286
30287         gnulib-tool: fix filelist for AIX, HP-UX ksh.
30288         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
30289         variables in shell case patterns, for AIX and HP-UX ksh.
30290
30291         Split large sed scripts, for HP-UX sed.
30292         * modules/stdio: Split sed scripts around 50 sed commands,
30293         to avoid HP-UX limit of 99 commands, in the near future.
30294         * modules/string: Likewise.
30295         * modules/unistd: Likewise.
30296
30297         gnulib-tool: avoid writing in the current directory.
30298         * gnulib-tool (func_emit_lib_Makefile_am)
30299         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
30300         not in the current directory, so concurrent gnulib-tool
30301         instances do not interfere.
30302
30303 2010-01-16  Jim Meyering  <meyering@redhat.com>
30304
30305         doc: update users.txt
30306         * users.txt: Add grep.
30307         (diffutils, gzip): Update URLs.
30308
30309 2010-01-12  Bruno Haible  <bruno@clisp.org>
30310
30311         posix_spawn: Avoid test failure on Cygwin.
30312         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
30313         characters.
30314         Reported by Simon Josefsson.
30315
30316 2010-01-12  Bruno Haible  <bruno@clisp.org>
30317
30318         * tests/test-cond.c (main): When skipping the test, show the reason.
30319
30320 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30321
30322         * lib/striconv.c (str_cd_iconv): Avoid if before free.
30323
30324 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30325
30326         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
30327         VC_LIST_ALWAYS_EXCLUDE_REGEX.
30328
30329 2010-01-12  Eric Blake  <ebb9@byu.net>
30330
30331         build: guarantee AS_VAR_IF
30332         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
30333         (gl_AS_VAR_IF): Move...
30334         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
30335         Reported by Simon Josefsson.
30336
30337 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30338
30339         * lib/stdio.in.h: Fix typo.
30340
30341 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30342
30343         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
30344         libgpg-error.
30345
30346 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30347
30348         * tests/test-xalloc-die.sh: Use $EXEEXT.
30349
30350 2010-01-12  Simon Josefsson  <simon@josefsson.org>
30351             Bruno Haible  <bruno@clisp.org>
30352
30353         getlogin, getlogin_r: Avoid test failure.
30354         * tests/test-getlogin.c: Include <stdio.h>.
30355         (main): Skip the test when the function fails because stdin is not a
30356         tty.
30357         * tests/test-getlogin_r.c: Include <stdio.h>.
30358         (main): Skip the test when the function fails because stdin is not a
30359         tty.
30360
30361 2010-01-11  Eric Blake  <ebb9@byu.net>
30362
30363         tests: avoid more large file warnings
30364         * tests/test-fflush.c: Avoid warning about ftell use.
30365         * tests/test-fseek.c: Avoid warning about fseek use.
30366
30367 2010-01-10  Bruno Haible  <bruno@clisp.org>
30368
30369         nproc: Work better on Linux when /proc and /sys are not mounted.
30370         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
30371         as lower bound when, on glibc/Linux systems,
30372         sysconf (_SC_NPROCESSORS_CONF) returns 1.
30373         Suggested by Pádraig Brady <P@draigbrady.com>.
30374         Reported by Dmitry V. Levin <ldv@altlinux.org>.
30375
30376         nproc: Refactor.
30377         * lib/nproc.c (num_processors_via_affinity_mask): New function,
30378         extracted from num_processors.
30379         (num_processors): Call it.
30380
30381 2010-01-11  Jim Meyering  <meyering@redhat.com>
30382
30383         utimecmp: avoid new warning from upcoming gcc-4.5.0
30384         * lib/utimecmp.c (BILLION): Define using #define rather than an
30385         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
30386
30387 2010-01-11  Eric Blake  <ebb9@byu.net>
30388
30389         math: add portability warnings for classification macros
30390         * modules/math (Depends-on): Add warn-on-use.
30391         (Makefile.am): Provide new substitutions.
30392         * m4/math_h.m4 (gl_MATH_H): Require inline.
30393         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
30394         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
30395         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
30396         implement warnings.
30397
30398         unistd: warn on use of environ without module
30399         * modules/unistd (Depends-on): Add warn-on-use.
30400         (Makefile.am): Provide new substitutions.
30401         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
30402         * lib/unistd.in.h (environ): Wrap with a warning helper function.
30403
30404         stdio: warn on suspicious uses
30405         * modules/stdio (Depends-on): Add warn-on-use.
30406         (Makefile.am): Provide new substitutions.
30407         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
30408         fseeko.
30409         * lib/stdio.in.h (gets): Always warn on use.
30410         (fseek, ftell): Adjust when warnings are issued, and honor
30411         _GL_NO_LARGE_FILES as a way to silence the warning.
30412         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
30413         any warning about large file offsets.
30414         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
30415         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
30416         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
30417         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
30418         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
30419         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
30420         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
30421         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
30422
30423         warn-on-use: new module
30424         * modules/warn-on-use: New file.
30425         * build-aux/warn-on-use.h: Likewise.
30426         * m4/warn-on-use.m4: Likewise.
30427         * MODULES.html.sh (Support for building): Mention it.
30428
30429 2010-01-10  Bruno Haible  <bruno@clisp.org>
30430
30431         Tests for module 'unistr/u32-strdup'.
30432         * modules/unistr/u32-strdup-tests: New file.
30433         * tests/unistr/test-u32-strdup.c: New file.
30434
30435         Tests for module 'unistr/u16-strdup'.
30436         * modules/unistr/u16-strdup-tests: New file.
30437         * tests/unistr/test-u16-strdup.c: New file.
30438
30439         Tests for module 'unistr/u8-strdup'.
30440         * modules/unistr/u8-strdup-tests: New file.
30441         * tests/unistr/test-u8-strdup.c: New file.
30442         * tests/unistr/test-strdup.h: New file.
30443
30444         Tests for module 'unistr/u32-strncmp'.
30445         * modules/unistr/u32-strncmp-tests: New file.
30446         * tests/unistr/test-u32-strncmp.c: New file.
30447
30448         Tests for module 'unistr/u16-strncmp'.
30449         * modules/unistr/u16-strncmp-tests: New file.
30450         * tests/unistr/test-u16-strncmp.c: New file.
30451
30452         Tests for module 'unistr/u8-strncmp'.
30453         * modules/unistr/u8-strncmp-tests: New file.
30454         * tests/unistr/test-u8-strncmp.c: New file.
30455         * tests/unistr/test-strncmp.h: New file.
30456
30457         Tests for module 'unistr/u32-strcoll'.
30458         * modules/unistr/u32-strcoll-tests: New file.
30459         * tests/unistr/test-u32-strcoll.c: New file.
30460
30461         Tests for module 'unistr/u16-strcoll'.
30462         * modules/unistr/u16-strcoll-tests: New file.
30463         * tests/unistr/test-u16-strcoll.c: New file.
30464
30465         Tests for module 'unistr/u8-strcoll'.
30466         * modules/unistr/u8-strcoll-tests: New file.
30467         * tests/unistr/test-u8-strcoll.c: New file.
30468
30469         Tests for module 'unistr/u32-strcmp'.
30470         * modules/unistr/u32-strcmp-tests: New file.
30471         * tests/unistr/test-u32-strcmp.c: New file.
30472         * tests/unistr/test-u32-strcmp.h: New file.
30473
30474         Tests for module 'unistr/u16-strcmp'.
30475         * modules/unistr/u16-strcmp-tests: New file.
30476         * tests/unistr/test-u16-strcmp.c: New file.
30477         * tests/unistr/test-u16-strcmp.h: New file.
30478
30479         Tests for module 'unistr/u8-strcmp'.
30480         * modules/unistr/u8-strcmp-tests: New file.
30481         * tests/unistr/test-u8-strcmp.c: New file.
30482         * tests/unistr/test-u8-strcmp.h: New file.
30483         * tests/unistr/test-strcmp.h: New file.
30484
30485         Tests for module 'unistr/u32-strncat'.
30486         * modules/unistr/u32-strncat-tests: New file.
30487         * tests/unistr/test-u32-strncat.c: New file.
30488
30489         Tests for module 'unistr/u16-strncat'.
30490         * modules/unistr/u16-strncat-tests: New file.
30491         * tests/unistr/test-u16-strncat.c: New file.
30492
30493         Tests for module 'unistr/u8-strncat'.
30494         * modules/unistr/u8-strncat-tests: New file.
30495         * tests/unistr/test-u8-strncat.c: New file.
30496         * tests/unistr/test-strncat.h: New file.
30497
30498         Tests for module 'unistr/u32-strcat'.
30499         * modules/unistr/u32-strcat-tests: New file.
30500         * tests/unistr/test-u32-strcat.c: New file.
30501
30502         Tests for module 'unistr/u16-strcat'.
30503         * modules/unistr/u16-strcat-tests: New file.
30504         * tests/unistr/test-u16-strcat.c: New file.
30505
30506         Tests for module 'unistr/u8-strcat'.
30507         * modules/unistr/u8-strcat-tests: New file.
30508         * tests/unistr/test-u8-strcat.c: New file.
30509         * tests/unistr/test-strcat.h: New file.
30510
30511         Tests for module 'unistr/u32-stpncpy'.
30512         * modules/unistr/u32-stpncpy-tests: New file.
30513         * tests/unistr/test-u32-stpncpy.c: New file.
30514
30515         Tests for module 'unistr/u16-stpncpy'.
30516         * modules/unistr/u16-stpncpy-tests: New file.
30517         * tests/unistr/test-u16-stpncpy.c: New file.
30518
30519         Tests for module 'unistr/u8-stpncpy'.
30520         * modules/unistr/u8-stpncpy-tests: New file.
30521         * tests/unistr/test-u8-stpncpy.c: New file.
30522         * tests/unistr/test-stpncpy.h: New file.
30523
30524         Tests for module 'unistr/u32-strncpy'.
30525         * modules/unistr/u32-strncpy-tests: New file.
30526         * tests/unistr/test-u32-strncpy.c: New file.
30527
30528         Tests for module 'unistr/u16-strncpy'.
30529         * modules/unistr/u16-strncpy-tests: New file.
30530         * tests/unistr/test-u16-strncpy.c: New file.
30531
30532         Tests for module 'unistr/u8-strncpy'.
30533         * modules/unistr/u8-strncpy-tests: New file.
30534         * tests/unistr/test-u8-strncpy.c: New file.
30535         * tests/unistr/test-strncpy.h: New file.
30536
30537         Tests for module 'unistr/u32-stpcpy'.
30538         * modules/unistr/u32-stpcpy-tests: New file.
30539         * tests/unistr/test-u32-stpcpy.c: New file.
30540
30541         Tests for module 'unistr/u16-stpcpy'.
30542         * modules/unistr/u16-stpcpy-tests: New file.
30543         * tests/unistr/test-u16-stpcpy.c: New file.
30544
30545         Tests for module 'unistr/u8-stpcpy'.
30546         * modules/unistr/u8-stpcpy-tests: New file.
30547         * tests/unistr/test-u8-stpcpy.c: New file.
30548         * tests/unistr/test-stpcpy.h: New file.
30549
30550         Tests for module 'unistr/u32-strcpy'.
30551         * modules/unistr/u32-strcpy-tests: New file.
30552         * tests/unistr/test-u32-strcpy.c: New file.
30553
30554         Tests for module 'unistr/u16-strcpy'.
30555         * modules/unistr/u16-strcpy-tests: New file.
30556         * tests/unistr/test-u16-strcpy.c: New file.
30557
30558         Tests for module 'unistr/u8-strcpy'.
30559         * modules/unistr/u8-strcpy-tests: New file.
30560         * tests/unistr/test-u8-strcpy.c: New file.
30561         * tests/unistr/test-strcpy.h: New file.
30562
30563         Tests for module 'unistr/u32-strnlen'.
30564         * modules/unistr/u32-strnlen-tests: New file.
30565         * tests/unistr/test-u32-strnlen.c: New file.
30566
30567         Tests for module 'unistr/u16-strnlen'.
30568         * modules/unistr/u16-strnlen-tests: New file.
30569         * tests/unistr/test-u16-strnlen.c: New file.
30570
30571         Tests for module 'unistr/u8-strnlen'.
30572         * modules/unistr/u8-strnlen-tests: New file.
30573         * tests/unistr/test-u8-strnlen.c: New file.
30574         * tests/unistr/test-strnlen.h: New file.
30575
30576         Tests for module 'unistr/u32-strlen'.
30577         * modules/unistr/u32-strlen-tests: New file.
30578         * tests/unistr/test-u32-strlen.c: New file.
30579
30580         Tests for module 'unistr/u16-strlen'.
30581         * modules/unistr/u16-strlen-tests: New file.
30582         * tests/unistr/test-u16-strlen.c: New file.
30583
30584         Tests for module 'unistr/u8-strlen'.
30585         * modules/unistr/u8-strlen-tests: New file.
30586         * tests/unistr/test-u8-strlen.c: New file.
30587
30588         Tests for module 'unistr/u32-prev'.
30589         * modules/unistr/u32-prev-tests: New file.
30590         * tests/unistr/test-u32-prev.c: New file.
30591
30592         Tests for module 'unistr/u16-prev'.
30593         * modules/unistr/u16-prev-tests: New file.
30594         * tests/unistr/test-u16-prev.c: New file.
30595
30596         Tests for module 'unistr/u8-prev'.
30597         * modules/unistr/u8-prev-tests: New file.
30598         * tests/unistr/test-u8-prev.c: New file.
30599
30600         Tests for module 'unistr/u32-next'.
30601         * modules/unistr/u32-next-tests: New file.
30602         * tests/unistr/test-u32-next.c: New file.
30603
30604         Tests for module 'unistr/u16-next'.
30605         * modules/unistr/u16-next-tests: New file.
30606         * tests/unistr/test-u16-next.c: New file.
30607
30608         Tests for module 'unistr/u8-next'.
30609         * modules/unistr/u8-next-tests: New file.
30610         * tests/unistr/test-u8-next.c: New file.
30611
30612         Tests for module 'unistr/u32-strmbtouc'.
30613         * modules/unistr/u32-strmbtouc-tests: New file.
30614         * tests/unistr/test-u32-strmbtouc.c: New file.
30615
30616         Tests for module 'unistr/u16-strmbtouc'.
30617         * modules/unistr/u16-strmbtouc-tests: New file.
30618         * tests/unistr/test-u16-strmbtouc.c: New file.
30619
30620         Tests for module 'unistr/u8-strmbtouc'.
30621         * modules/unistr/u8-strmbtouc-tests: New file.
30622         * tests/unistr/test-u8-strmbtouc.c: New file.
30623
30624         Tests for module 'unistr/u32-strmblen'.
30625         * modules/unistr/u32-strmblen-tests: New file.
30626         * tests/unistr/test-u32-strmblen.c: New file.
30627
30628         Tests for module 'unistr/u16-strmblen'.
30629         * modules/unistr/u16-strmblen-tests: New file.
30630         * tests/unistr/test-u16-strmblen.c: New file.
30631
30632         Tests for module 'unistr/u8-strmblen'.
30633         * modules/unistr/u8-strmblen-tests: New file.
30634         * tests/unistr/test-u8-strmblen.c: New file.
30635
30636         Tests for module 'unistr/u32-cpy-alloc'.
30637         * modules/unistr/u32-cpy-alloc-tests: New file.
30638         * tests/unistr/test-u32-cpy-alloc.c: New file.
30639
30640         Tests for module 'unistr/u16-cpy-alloc'.
30641         * modules/unistr/u16-cpy-alloc-tests: New file.
30642         * tests/unistr/test-u16-cpy-alloc.c: New file.
30643
30644         Tests for module 'unistr/u8-cpy-alloc'.
30645         * modules/unistr/u8-cpy-alloc-tests: New file.
30646         * tests/unistr/test-u8-cpy-alloc.c: New file.
30647         * tests/unistr/test-cpy-alloc.h: New file.
30648
30649         Tests for module 'unistr/u32-mbsnlen'.
30650         * modules/unistr/u32-mbsnlen-tests: New file.
30651         * tests/unistr/test-u32-mbsnlen.c: New file.
30652
30653         Tests for module 'unistr/u16-mbsnlen'.
30654         * modules/unistr/u16-mbsnlen-tests: New file.
30655         * tests/unistr/test-u16-mbsnlen.c: New file.
30656
30657         Tests for module 'unistr/u8-mbsnlen'.
30658         * modules/unistr/u8-mbsnlen-tests: New file.
30659         * tests/unistr/test-u8-mbsnlen.c: New file.
30660
30661         Tests for module 'unistr/u32-chr'.
30662         * modules/unistr/u32-chr-tests: New file.
30663         * tests/unistr/test-u32-chr.c: New file.
30664
30665         Tests for module 'unistr/u16-chr'.
30666         * modules/unistr/u16-chr-tests: New file.
30667         * tests/unistr/test-u16-chr.c: New file.
30668
30669         Tests for module 'unistr/u8-chr'.
30670         * modules/unistr/u8-chr-tests: New file.
30671         * tests/unistr/test-u8-chr.c: New file.
30672         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
30673
30674         Tests for module 'unistr/u32-cmp2'.
30675         * modules/unistr/u32-cmp2-tests: New file.
30676         * tests/unistr/test-u32-cmp2.c: New file.
30677
30678         Tests for module 'unistr/u16-cmp2'.
30679         * modules/unistr/u16-cmp2-tests: New file.
30680         * tests/unistr/test-u16-cmp2.c: New file.
30681
30682         Tests for module 'unistr/u8-cmp2'.
30683         * modules/unistr/u8-cmp2-tests: New file.
30684         * tests/unistr/test-u8-cmp2.c: New file.
30685         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
30686
30687         Tests for module 'unistr/u32-cmp'.
30688         * modules/unistr/u32-cmp-tests: New file.
30689         * tests/unistr/test-u32-cmp.c: New file.
30690
30691         Tests for module 'unistr/u16-cmp'.
30692         * modules/unistr/u16-cmp-tests: New file.
30693         * tests/unistr/test-u16-cmp.c: New file.
30694
30695         Tests for module 'unistr/u8-cmp'.
30696         * modules/unistr/u8-cmp-tests: New file.
30697         * tests/unistr/test-u8-cmp.c: New file.
30698         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
30699
30700         Tests for module 'unistr/u32-set'.
30701         * modules/unistr/u32-set-tests: New file.
30702         * tests/unistr/test-u32-set.c: New file.
30703
30704         Tests for module 'unistr/u16-set'.
30705         * modules/unistr/u16-set-tests: New file.
30706         * tests/unistr/test-u16-set.c: New file.
30707
30708         Tests for module 'unistr/u8-set'.
30709         * modules/unistr/u8-set-tests: New file.
30710         * tests/unistr/test-u8-set.c: New file.
30711         * tests/unistr/test-set.h: New file.
30712
30713         Tests for module 'unistr/u32-move'.
30714         * modules/unistr/u32-move-tests: New file.
30715         * tests/unistr/test-u32-move.c: New file.
30716
30717         Tests for module 'unistr/u16-move'.
30718         * modules/unistr/u16-move-tests: New file.
30719         * tests/unistr/test-u16-move.c: New file.
30720
30721         Tests for module 'unistr/u8-move'.
30722         * modules/unistr/u8-move-tests: New file.
30723         * tests/unistr/test-u8-move.c: New file.
30724         * tests/unistr/test-move.h: New file.
30725
30726         Tests for module 'unistr/u32-cpy'.
30727         * modules/unistr/u32-cpy-tests: New file.
30728         * tests/unistr/test-u32-cpy.c: New file.
30729
30730         Tests for module 'unistr/u16-cpy'.
30731         * modules/unistr/u16-cpy-tests: New file.
30732         * tests/unistr/test-u16-cpy.c: New file.
30733
30734         Tests for module 'unistr/u8-cpy'.
30735         * modules/unistr/u8-cpy-tests: New file.
30736         * tests/unistr/test-u8-cpy.c: New file.
30737         * tests/unistr/test-cpy.h: New file.
30738
30739 2010-01-09  Bruno Haible  <bruno@clisp.org>
30740
30741         Tests for module 'unistr/u32-uctomb'.
30742         * modules/unistr/u32-uctomb-tests: New file.
30743         * tests/unistr/test-u32-uctomb.c: New file.
30744
30745         Tests for module 'unistr/u16-uctomb'.
30746         * modules/unistr/u16-uctomb-tests: New file.
30747         * tests/unistr/test-u16-uctomb.c: New file.
30748
30749         Tests for module 'unistr/u8-uctomb'.
30750         * modules/unistr/u8-uctomb-tests: New file.
30751         * tests/unistr/test-u8-uctomb.c: New file.
30752
30753         Tests for module 'unistr/u32-mbtoucr'.
30754         * modules/unistr/u32-mbtoucr-tests: New file.
30755         * tests/unistr/test-u32-mbtoucr.c: New file.
30756
30757         Tests for module 'unistr/u16-mbtoucr'.
30758         * modules/unistr/u16-mbtoucr-tests: New file.
30759         * tests/unistr/test-u16-mbtoucr.c: New file.
30760
30761         Tests for module 'unistr/u8-mbtoucr'.
30762         * modules/unistr/u8-mbtoucr-tests: New file.
30763         * tests/unistr/test-u8-mbtoucr.c: New file.
30764
30765         Tests for module 'unistr/u32-mbtouc'.
30766         * modules/unistr/u32-mbtouc-tests: New file.
30767         * tests/unistr/test-u32-mbtouc.c: New file.
30768
30769         Tests for module 'unistr/u16-mbtouc'.
30770         * modules/unistr/u16-mbtouc-tests: New file.
30771         * tests/unistr/test-u16-mbtouc.c: New file.
30772
30773         Tests for module 'unistr/u8-mbtouc'.
30774         * modules/unistr/u8-mbtouc-tests: New file.
30775         * tests/unistr/test-u8-mbtouc.c: New file.
30776
30777         Tests for module 'unistr/u32-mbtouc-unsafe'.
30778         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
30779         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
30780         * tests/unistr/test-u32-mbtouc.h: New file.
30781
30782         Tests for module 'unistr/u16-mbtouc-unsafe'.
30783         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
30784         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
30785         * tests/unistr/test-u16-mbtouc.h: New file.
30786
30787         Tests for module 'unistr/u8-mbtouc-unsafe'.
30788         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
30789         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
30790         * tests/unistr/test-u8-mbtouc.h: New file.
30791
30792         Tests for module 'unistr/u32-mblen'.
30793         * modules/unistr/u32-mblen-tests: New file.
30794         * tests/unistr/test-u32-mblen.c: New file.
30795
30796         Tests for module 'unistr/u16-mblen'.
30797         * modules/unistr/u16-mblen-tests: New file.
30798         * tests/unistr/test-u16-mblen.c: New file.
30799
30800         Tests for module 'unistr/u8-mblen'.
30801         * modules/unistr/u8-mblen-tests: New file.
30802         * tests/unistr/test-u8-mblen.c: New file.
30803
30804         Tests for module 'unistr/u32-to-u16'.
30805         * modules/unistr/u32-to-u16-tests: New file.
30806         * tests/unistr/test-u32-to-u16.c: New file.
30807
30808         Tests for module 'unistr/u32-to-u8'.
30809         * modules/unistr/u32-to-u8-tests: New file.
30810         * tests/unistr/test-u32-to-u8.c: New file.
30811
30812         Tests for module 'unistr/u16-to-u32'.
30813         * modules/unistr/u16-to-u32-tests: New file.
30814         * tests/unistr/test-u16-to-u32.c: New file.
30815
30816         Tests for module 'unistr/u16-to-u8'.
30817         * modules/unistr/u16-to-u8-tests: New file.
30818         * tests/unistr/test-u16-to-u8.c: New file.
30819
30820         Tests for module 'unistr/u8-to-u32'.
30821         * modules/unistr/u8-to-u32-tests: New file.
30822         * tests/unistr/test-u8-to-u32.c: New file.
30823
30824         Tests for module 'unistr/u8-to-u16'.
30825         * modules/unistr/u8-to-u16-tests: New file.
30826         * tests/unistr/test-u8-to-u16.c: New file.
30827
30828         Tests for module 'unistr/u32-check'.
30829         * modules/unistr/u32-check-tests: New file.
30830         * tests/unistr/test-u32-check.c: New file.
30831
30832         Tests for module 'unistr/u16-check'.
30833         * modules/unistr/u16-check-tests: New file.
30834         * tests/unistr/test-u16-check.c: New file.
30835
30836         Tests for module 'unistr/u8-check'.
30837         * modules/unistr/u8-check-tests: New file.
30838         * tests/unistr/test-u8-check.c: New file.
30839
30840         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
30841         (category_equals): New function.
30842         (main): Add more tests.
30843         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
30844
30845         * tests/unictype/test-bidi_byname.c (main): Add more tests.
30846
30847 2010-01-10  Bruno Haible  <bruno@clisp.org>
30848
30849         unistr/u*-strcoll: Try harder to distinguish different strings.
30850         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
30851         compare s1 and s2 to see if they are different.
30852
30853 2010-01-10  Bruno Haible  <bruno@clisp.org>
30854
30855         unistr/u*-stpncpy: Fix the return value.
30856         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
30857         description of the return value consistent with stpncpy in glibc.
30858         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
30859         written non-NUL unit.
30860
30861 2010-01-10  Bruno Haible  <bruno@clisp.org>
30862
30863         unistr/u*-next: Add missing dependencies.
30864         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
30865         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
30866         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
30867
30868 2010-01-10  Bruno Haible  <bruno@clisp.org>
30869
30870         unistr/u8-mbsnlen: Fix return value for incomplete character.
30871         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
30872         u8_mblen.
30873         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
30874         Remove unistr/u8-mblen.
30875         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
30876         u16_mblen.
30877         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
30878         Remove unistr/u16-mblen.
30879
30880 2010-01-10  Bruno Haible  <bruno@clisp.org>
30881
30882         wchar: Fix compilation error when <wchar.h> is used from coreutils.
30883         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
30884         Reported by Brian Gough <bjg@gnu.org> and
30885         Chris Clayton <chris2553@googlemail.com> via
30886         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
30887
30888 2010-01-09  Bruno Haible  <bruno@clisp.org>
30889
30890         unistr/u16-to-u32: Reject invalid input.
30891         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
30892         u16_mbtouc.
30893         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
30894         Remove unistr/u16-mbtouc.
30895
30896         unistr/u16-to-u8: Reject invalid input.
30897         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
30898         u16_mbtouc.
30899         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
30900         Remove unistr/u16-mbtouc.
30901
30902         unistr/u8-to-u32: Reject invalid input.
30903         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
30904         u8_mbtouc.
30905         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
30906         Remove unistr/u8-mbtouc.
30907
30908         unistr/u8-to-u16: Reject invalid input.
30909         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
30910         u8_mbtouc.
30911         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
30912         Remove unistr/u8-mbtouc.
30913
30914 2010-01-09  Bruno Haible  <bruno@clisp.org>
30915
30916         Tests for module 'getlogin'.
30917         * modules/getlogin-tests: New file.
30918         * tests/test-getlogin.c: New file.
30919
30920         New module 'getlogin'.
30921         * lib/unistd.in.h (getlogin): New declaration.
30922         * lib/getlogin.c: New file.
30923         * m4/getlogin.m4: New file.
30924         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
30925         HAVE_GETLOGIN.
30926         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
30927         HAVE_GETLOGIN.
30928         * modules/getlogin: New file.
30929         * doc/posix-functions/getlogin.texi: Mention the new module.
30930         Reported by John W. Eaton <jwe@gnu.org>.
30931
30932 2010-01-09  Bruno Haible  <bruno@clisp.org>
30933
30934         getlogin_r: Support for native Windows.
30935         * lib/getlogin_r.c: Include <windows.h>
30936         (getlogin_r): Implement for native Windows.
30937         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
30938         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
30939         via John W. Eaton <jwe@gnu.org>.
30940
30941 2010-01-09  Bruno Haible  <bruno@clisp.org>
30942
30943         getlogin_r: Small fixes.
30944         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
30945         succeeds.
30946         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
30947         before testing whether getlogin_r is declared. No need to set
30948         HAVE_DECL_GETLOGIN_R to 1.
30949         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
30950
30951 2010-01-09  Bruno Haible  <bruno@clisp.org>
30952
30953         * lib/unistd.in.h (getlogin_r): Add comment.
30954
30955 2010-01-09  Bruno Haible  <bruno@clisp.org>
30956
30957         Tests for module 'getlogin_r'.
30958         * modules/getlogin_r-tests: New file.
30959         * tests/test-getlogin_r.c: New file.
30960
30961 2010-01-09  Jim Meyering  <meyering@redhat.com>
30962
30963         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
30964         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
30965         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
30966
30967 2010-01-08  Simon Josefsson  <simon@josefsson.org>
30968
30969         * lib/dup2.c (rpl_dup2): Improve comment.
30970
30971 2010-01-08  Eric Blake  <ebb9@byu.net>
30972
30973         maint.mk: allow packages to add makefile @@ exceptions
30974         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
30975         (sc_makefile_check): Rename...
30976         (sc_makefile_at_at_check): ...to this, and use hook.
30977
30978         dup2: work around mingw bug
30979         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
30980         Reported by Simon Josefsson.
30981
30982 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
30983
30984         glob: Fix C++ compilation.
30985         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
30986         C++.
30987
30988 2010-01-07  Bruno Haible  <bruno@clisp.org>
30989
30990         Fix indentation of wctype.in.h, broken since 2007-01-06.
30991         * lib/wctype.in.h: Fix indentation of preprocessor directives.
30992
30993 2010-01-07  Bruno Haible  <bruno@clisp.org>
30994
30995         mbslen: Avoid collision with system function.
30996         * lib/string.in.h [MirBSD]: Include <wchar.h>.
30997         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
30998         * m4/mbslen.m4: New file.
30999         * modules/mbslen (Files): Add it.
31000         (configure.ac): Invoke gl_MBSLEN.
31001         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
31002         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
31003         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
31004         via Ian Beckwith <ianb@erislabs.net>.
31005
31006 2010-01-07  Bruno Haible  <bruno@clisp.org>
31007
31008         dirent: Document the last fix.
31009         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
31010
31011 2010-01-07  Bruno Haible  <bruno@clisp.org>
31012
31013         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
31014         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
31015         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
31016         va_list are defined.
31017         * doc/posix-headers/stdio.texi: Document the bug of missing types.
31018         Reported by Eric Blake.
31019
31020 2010-01-07  Bruno Haible  <bruno@clisp.org>
31021
31022         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
31023         * modules/xlist (Depends-on): Add 'list',
31024         * modules/xoset (Depends-on): Add 'oset'.
31025         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
31026
31027 2010-01-07  Bruno Haible  <bruno@clisp.org>
31028
31029         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
31030         * doc/posix-functions/strncasecmp.texi: Likewise.
31031
31032 2010-01-07  Bruno Haible  <bruno@clisp.org>
31033
31034         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
31035
31036 2010-01-07  John W. Eaton  <jwe@octave.org>
31037
31038         wctype: allow C++ use
31039         * lib/wctype.in.h: Add extern "C" block for C++.
31040
31041 2010-01-06  Eric Blake  <ebb9@byu.net>
31042
31043         maint.mk: detect incorrect GFDL usage
31044         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
31045
31046 2010-01-06  Jim Meyering  <meyering@redhat.com>
31047         and Eric Blake  <ebb9@byu.net>
31048
31049         maint.mk: ignore multi-line copyright in NEWS
31050         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
31051
31052 2010-01-06  Eric Blake  <ebb9@byu.net>
31053
31054         select: add missing dependency
31055         * modules/select-tests (Depends-on): Move sockets dependency...
31056         * modules/select (Depends-on): ...here.
31057         Reported by Ian Beckwith.
31058
31059         doc: regenerate INSTALL
31060         * doc/INSTALL: Reflect recent autoconf update.
31061         * doc/INSTALL.ISO: Likewise.
31062         * doc/INSTALL.UTF-8: Likewise.
31063
31064         pread: fix compilation on glibc
31065         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
31066         Reported by Ralf Wildenhues.
31067
31068         dirent: fix test failure
31069         * lib/dirent.in.h (includes): Guarantee ino_t.
31070         Reported by Ralf Wildenhues.
31071
31072 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
31073
31074         linkat, renameat: avoid bad free
31075         * lib/at-func2.c (at_func2): Fix typo.
31076         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
31077
31078 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31079
31080         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
31081         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
31082         to avoid failure of symlink test later.
31083
31084 2010-01-06  Eric Blake  <ebb9@byu.net>
31085
31086         stdio, unistd: guarantee ssize_t
31087         * lib/unistd.in.h (includes): Ensure that types required by POSIX
31088         2008 are exposed when needed.
31089         * lib/stdio.in.h (includes): Likewise.
31090         Reported by Ralf Wildenhues.
31091
31092 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
31093
31094         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
31095         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
31096         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
31097
31098 2010-01-06  Jim Meyering  <meyering@redhat.com>
31099
31100         readtokens: this module *does* require xalloc.h
31101         It uses only functions that were omitted by the old syntax-check rule.
31102         * lib/readtokens.c: Include "xalloc.h" once again.
31103         * modules/readtokens (Depends-on): Add xalloc.
31104         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
31105
31106 2010-01-05  Eric Blake  <ebb9@byu.net>
31107
31108         maint: support 'make announcement' from a VPATH build
31109         * top/maint.mk (announcement): Look for correct NEWS file.
31110
31111 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
31112
31113         utimens (fdutimens): ignore a negative FD, per contract
31114         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
31115         when we have a valid file descriptor.  Otherwise, using a brand
31116         new glibc (with just-patched futimens that now fails with EBADF)
31117         would cause this function to fail with ENOSYS.
31118         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
31119         See also http://bugzilla.redhat.com/552320.
31120
31121 2010-01-05  Eric Blake  <ebb9@byu.net>
31122
31123         strcase: document what it provides
31124         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
31125         gnulib module.
31126         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
31127         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
31128
31129 2010-01-05  Jim Meyering  <meyering@redhat.com>
31130
31131         maint: remove useless inclusions of "xalloc.h"
31132         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
31133         * lib/readtokens.c: Likewise.
31134         * lib/same.c: Likewise.
31135         * modules/getloadavg (Depends-on): Remove xalloc.
31136         * modules/readtokens: Likewise.
31137         * modules/same: Likewise.
31138
31139         maint.mk: include 4 more function names in alloca.h-checking regexp
31140         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
31141         regexp.  Before, we would give a false-positive (saying alloca.h
31142         is included unnecessarily) when the only uses involved omitted symbols.
31143
31144         xalloc.h: use consistent formatting
31145         * lib/xalloc.h: Move declarations to start in the first column.
31146
31147 2010-01-05  Eric Blake  <ebb9@byu.net>
31148
31149         mkdir: avoid xalloc
31150         * lib/mkdir.c (includes): Drop unused header.
31151         Reported by John W. Eaton.
31152
31153 2010-01-04  Jim Meyering  <meyering@redhat.com>
31154
31155         nl_langinfo: avoid configure-time syntax error
31156         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
31157         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
31158         the empty string.  Don't let that provoke a shell syntax error.
31159
31160         regcomp, regexec, fnmatch: avoid array bounds read error
31161         * lib/regcomp.c (build_equiv_class): From glibc:
31162         Use only the low 24 bits of a findidx return value as an index
31163         into the weights array.  Patch by Ulrich Drepper:
31164         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
31165         * lib/regexec.c (check_node_accept_bytes): Likewise.
31166         * lib/fnmatch_loop.c (FCT): Likewise.
31167
31168         regcomp: skip collseq lookup when there are no rules
31169         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
31170         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
31171
31172         regcomp: recognize ill-formed { } expressions
31173         * lib/regcomp.c (parse_dup_op): From glibc:
31174         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
31175
31176         regcomp: fix typo in comment
31177         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
31178         s/satisfy/satisfies/.
31179
31180         regcomp: sync from glibc: remove dead store
31181         * lib/regcomp.c (duplicate_node_closure): Remove useless
31182         search_duplicated_node call and dead store.
31183
31184         regcomp: sync from glibc; always use nl_langinfo
31185         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
31186         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
31187         * modules/regex (Depends-on): Add nl_langinfo.
31188
31189 2010-01-04  Eric Blake  <ebb9@byu.net>
31190
31191         fdopendir: fix configure test
31192         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
31193
31194 2010-01-01  Bruno Haible  <bruno@clisp.org>
31195
31196         wchar: Remove unused configure check.
31197         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
31198
31199 2010-01-01  Eric Blake  <ebb9@byu.net>
31200
31201         headers: make check of system header explicit
31202         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
31203         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
31204         ourselves.
31205         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
31206         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31207         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
31208         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
31209         internals.
31210         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
31211         missing.
31212         Suggested by Bruno Haible.
31213
31214 2010-01-01  Jim Meyering  <meyering@redhat.com>
31215
31216         ChangeLog: tweak to eliminate unnecessary copyright line
31217         * ChangeLog: Remove a copyright line that was mistakenly updated
31218         by today's update-copyright run.  Reported by Eric Blake.
31219
31220         test-update-copyright: don't let envvar setting cause test failure
31221         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
31222
31223 2010-01-01  Bruno Haible  <bruno@clisp.org>
31224
31225         localename: Avoid gcc warning.
31226         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
31227         function if it is not used.
31228
31229 2010-01-01  Jim Meyering  <meyering@redhat.com>
31230
31231         update nearly all FSF copyright year lists to include 2010
31232         Use the same procedure as for 2009, outlined in
31233         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
31234
31235         version-etc: set COPYRIGHT_YEAR to 2010
31236         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
31237
31238 2009-12-31  Eric Blake  <ebb9@byu.net>
31239
31240         doc: correct availability of cygwin 1.5.x getopt
31241         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
31242         variables.
31243         * doc/posix-functions/opterr.texi (opterr): Likewise.
31244         * doc/posix-functions/optind.texi (optind): Likewise.
31245         * doc/posix-functions/optopt.texi (optopt): Likewise.
31246         * doc/posix-functions/tzname.texi (tzname): Likewise.
31247
31248         openat: update maintainer
31249         * modules/openat (Maintainer): Add myself.
31250
31251         utimens: avoid shadowing warning
31252         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
31253         buffers into one, to avoid shadowing, as well as avoiding a
31254         redundant stat.
31255         Reported by Jim Meyering.
31256
31257         test-dup2: avoid compiler warning
31258         * tests/test-dup2.c (is_inheritable): Only define if used.
31259
31260 2010-01-01  Bruno Haible  <bruno@clisp.org>
31261
31262         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
31263         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
31264         defined, use wctomb instead of wcrtomb.
31265
31266 2010-01-01  Bruno Haible  <bruno@clisp.org>
31267
31268         iconv: Reject native Solaris iconv.
31269         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
31270         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
31271
31272 2009-12-31  Bruno Haible  <bruno@clisp.org>
31273
31274         * tests/test-signal.c (main): Remove test of 'SIG'.
31275
31276 2009-12-31  Bruno Haible  <bruno@clisp.org>
31277
31278         spawn: Fix incomplete fix.
31279         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
31280         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
31281         warnings for GNULIB_POSIXCHECK again.
31282         Reported by Eric Blake.
31283
31284 2009-12-31  Bruno Haible  <bruno@clisp.org>
31285
31286         Avoid namespace pollution on glibc systems.
31287         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
31288         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
31289         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
31290         glibc systems.
31291
31292 2009-12-31  Bruno Haible  <bruno@clisp.org>
31293
31294         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
31295         (gl_REPLACE_WCHAR_H): Turn into a no-op.
31296         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
31297         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
31298         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
31299         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
31300         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
31301
31302 2009-12-31  Bruno Haible  <bruno@clisp.org>
31303
31304         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
31305         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
31306         afterwards.
31307
31308 2009-12-31  Bruno Haible  <bruno@clisp.org>
31309
31310         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
31311         SYS_UTSNAME_H.
31312
31313 2009-12-31  Bruno Haible  <bruno@clisp.org>
31314
31315         spawn: Fix misapplied patch.
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.
31319
31320 2009-12-31  Bruno Haible  <bruno@clisp.org>
31321
31322         times: Update after sys_times changed.
31323         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
31324         * modules/times (Files): Add it.
31325         (configure.ac): Invoke gl_FUNC_TIMES.
31326
31327 2009-12-31  Bruno Haible  <bruno@clisp.org>
31328
31329         Use AC_C_INLINE where necessary.
31330         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
31331         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
31332         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
31333         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
31334         * m4/mbfile.m4 (gl_MBFILE): Likewise.
31335         * m4/mbiter.m4 (gl_MBITER): Likewise.
31336         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
31337         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
31338         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
31339         * modules/u64 (configure.ac): Likewise.
31340
31341 2009-12-31  Bruno Haible  <bruno@clisp.org>
31342
31343         Use AC_C_INLINE instead of module 'inline' where possible.
31344         * modules/inline (Description): Clarify purpose.
31345         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
31346         * modules/count-one-bits (Depends-on): Remove inline.
31347         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
31348         * modules/openat (Depends-on): Remove inline.
31349         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
31350         instead of depending on module 'inline'.
31351         * modules/filevercmp (Depends-on, configure.ac): Likewise.
31352         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
31353         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
31354         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
31355         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
31356         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
31357         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
31358         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
31359         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
31360         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
31361         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
31362         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
31363         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
31364         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
31365         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
31366         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
31367         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
31368         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
31369         Likewise.
31370         * modules/unictype/property-ascii-hex-digit (Depends-on,
31371         configure.ac): Likewise.
31372         * modules/unictype/property-bidi-arabic-digit (Depends-on,
31373         configure.ac): Likewise.
31374         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
31375         configure.ac): Likewise.
31376         * modules/unictype/property-bidi-block-separator (Depends-on,
31377         configure.ac): Likewise.
31378         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
31379         configure.ac): Likewise.
31380         * modules/unictype/property-bidi-common-separator (Depends-on,
31381         configure.ac): Likewise.
31382         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
31383         Likewise.
31384         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
31385         configure.ac): Likewise.
31386         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
31387         configure.ac): Likewise.
31388         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
31389         configure.ac): Likewise.
31390         * modules/unictype/property-bidi-european-digit (Depends-on,
31391         configure.ac): Likewise.
31392         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
31393         configure.ac): Likewise.
31394         * modules/unictype/property-bidi-left-to-right (Depends-on,
31395         configure.ac): Likewise.
31396         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
31397         configure.ac): Likewise.
31398         * modules/unictype/property-bidi-other-neutral (Depends-on,
31399         configure.ac): Likewise.
31400         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
31401         Likewise.
31402         * modules/unictype/property-bidi-segment-separator (Depends-on,
31403         configure.ac): Likewise.
31404         * modules/unictype/property-bidi-whitespace (Depends-on,
31405         configure.ac): Likewise.
31406         * modules/unictype/property-combining (Depends-on, configure.ac):
31407         Likewise.
31408         * modules/unictype/property-composite (Depends-on, configure.ac):
31409         Likewise.
31410         * modules/unictype/property-currency-symbol (Depends-on,
31411         configure.ac): Likewise.
31412         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
31413         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
31414         Likewise.
31415         * modules/unictype/property-default-ignorable-code-point (Depends-on,
31416         configure.ac): Likewise.
31417         * modules/unictype/property-deprecated (Depends-on, configure.ac):
31418         Likewise.
31419         * modules/unictype/property-diacritic (Depends-on, configure.ac):
31420         Likewise.
31421         * modules/unictype/property-extender (Depends-on, configure.ac):
31422         Likewise.
31423         * modules/unictype/property-format-control (Depends-on, configure.ac):
31424         Likewise.
31425         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
31426         Likewise.
31427         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
31428         Likewise.
31429         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
31430         Likewise.
31431         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
31432         Likewise.
31433         * modules/unictype/property-hyphen (Depends-on, configure.ac):
31434         Likewise.
31435         * modules/unictype/property-id-continue (Depends-on, configure.ac):
31436         Likewise.
31437         * modules/unictype/property-id-start (Depends-on, configure.ac):
31438         Likewise.
31439         * modules/unictype/property-ideographic (Depends-on, configure.ac):
31440         Likewise.
31441         * modules/unictype/property-ids-binary-operator (Depends-on,
31442         configure.ac): Likewise.
31443         * modules/unictype/property-ids-trinary-operator (Depends-on,
31444         configure.ac): Likewise.
31445         * modules/unictype/property-ignorable-control (Depends-on,
31446         configure.ac): Likewise.
31447         * modules/unictype/property-iso-control (Depends-on, configure.ac):
31448         Likewise.
31449         * modules/unictype/property-join-control (Depends-on, configure.ac):
31450         Likewise.
31451         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
31452         Likewise.
31453         * modules/unictype/property-line-separator (Depends-on, configure.ac):
31454         Likewise.
31455         * modules/unictype/property-logical-order-exception (Depends-on,
31456         configure.ac): Likewise.
31457         * modules/unictype/property-lowercase (Depends-on, configure.ac):
31458         Likewise.
31459         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
31460         * modules/unictype/property-non-break (Depends-on, configure.ac):
31461         Likewise.
31462         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
31463         Likewise.
31464         * modules/unictype/property-numeric (Depends-on, configure.ac):
31465         Likewise.
31466         * modules/unictype/property-other-alphabetic (Depends-on,
31467         configure.ac): Likewise.
31468         * modules/unictype/property-other-default-ignorable-code-point
31469         (Depends-on, configure.ac): Likewise.
31470         * modules/unictype/property-other-grapheme-extend (Depends-on,
31471         configure.ac): Likewise.
31472         * modules/unictype/property-other-id-continue (Depends-on,
31473         configure.ac): Likewise.
31474         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
31475         Likewise.
31476         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
31477         Likewise.
31478         * modules/unictype/property-other-math (Depends-on, configure.ac):
31479         Likewise.
31480         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
31481         Likewise.
31482         * modules/unictype/property-paired-punctuation (Depends-on,
31483         configure.ac): Likewise.
31484         * modules/unictype/property-paragraph-separator (Depends-on,
31485         configure.ac): Likewise.
31486         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
31487         Likewise.
31488         * modules/unictype/property-pattern-white-space (Depends-on,
31489         configure.ac): Likewise.
31490         * modules/unictype/property-private-use (Depends-on, configure.ac):
31491         Likewise.
31492         * modules/unictype/property-punctuation (Depends-on, configure.ac):
31493         Likewise.
31494         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
31495         Likewise.
31496         * modules/unictype/property-radical (Depends-on, configure.ac):
31497         Likewise.
31498         * modules/unictype/property-sentence-terminal (Depends-on,
31499         configure.ac): Likewise.
31500         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
31501         Likewise.
31502         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
31503         * modules/unictype/property-terminal-punctuation (Depends-on,
31504         configure.ac): Likewise.
31505         * modules/unictype/property-titlecase (Depends-on, configure.ac):
31506         Likewise.
31507         * modules/unictype/property-unassigned-code-value (Depends-on,
31508         configure.ac): Likewise.
31509         * modules/unictype/property-unified-ideograph (Depends-on,
31510         configure.ac): Likewise.
31511         * modules/unictype/property-uppercase (Depends-on, configure.ac):
31512         Likewise.
31513         * modules/unictype/property-variation-selector (Depends-on,
31514         configure.ac): Likewise.
31515         * modules/unictype/property-white-space (Depends-on, configure.ac):
31516         Likewise.
31517         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
31518         Likewise.
31519         * modules/unictype/property-xid-start (Depends-on, configure.ac):
31520         Likewise.
31521         * modules/unictype/property-zero-width (Depends-on, configure.ac):
31522         Likewise.
31523         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
31524         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
31525         Likewise.
31526
31527 2009-12-31  Bruno Haible  <bruno@clisp.org>
31528
31529         Remove unnecessary AC_C_INLINE invocation.
31530         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
31531         since 2009-08-21.
31532
31533 2009-12-31  Jim Meyering  <meyering@redhat.com>
31534
31535         maint.mk: don't require explicit gpg_key_ID in cfg.mk
31536         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
31537         With this change, we can all remove the gpg_key_ID = ... definition
31538         from our respective cfg.mk files.
31539
31540         maint.mk: create announcement template in ~/, not in /tmp
31541         * top/maint.mk (emit_upload_commands): Adjust.
31542         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
31543         Remove temporary file, .ci-msg.
31544
31545 2009-12-31  Eric Blake  <ebb9@byu.net>
31546
31547         link-warning: always build headers with link warnings
31548         * modules/arpa_inet (Makefile.am): Always build replacement
31549         header.
31550         * modules/ctype (Makefile.am): Likewise.
31551         * modules/dirent (Makefile.am): Likewise.
31552         * modules/inttypes (Makefile.am): Likewise.
31553         * modules/langinfo (Makefile.am): Likewise.
31554         * modules/locale (Makefile.am): Likewise.
31555         * modules/spawn (Makefile.am): Likewise.
31556         * modules/sys_file (Makefile.am): Likewise.
31557         * modules/sys_ioctl (Makefile.am): Likewise.
31558         * modules/sys_select (Makefile.am): Likewise.
31559         * modules/sys_socket (Makefile.am): Likewise.
31560         * modules/sys_times (Makefile.am): Likewise.
31561         * modules/sys_utsname (Makefile.am): Likewise.
31562         * modules/sys_wait (Makefile.am): Likewise.
31563         * modules/wchar (Makefile.am): Likewise.
31564         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
31565         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
31566         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
31567         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
31568         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
31569         Likewise.
31570         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
31571         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
31572         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
31573         Likewise.
31574         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
31575         Likewise.
31576         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
31577         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
31578         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
31579         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
31580         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
31581         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
31582         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
31583         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
31584         (gl_WCHAR_H_DEFAULTS): Likewise.
31585
31586 2009-12-31  Eric Blake  <ebb9@byu.net>
31587
31588         signal, spawn: use link warnings
31589         * lib/signal.in.h (sigset_t): Make unconditional.
31590         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
31591         (sigpending, sigprocmask, sigaction): Add link warnings.
31592         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
31593         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
31594         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
31595         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
31596         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
31597         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
31598         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
31599         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
31600         (posix_spawn_file_actions_destroy)
31601         (posix_spawn_file_actions_addopen)
31602         (posix_spawn_file_actions_addclose)
31603         (posix_spawn_file_actions_adddup2): Likewise.
31604         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
31605         * tests/test-signal.c (main): Enhance test.
31606
31607         spawn: improve wrapper support
31608         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
31609         (gl_SPAWN_H_DEFAULTS): New defaults.
31610         * modules/spawn (Makefile.am): Substitute them.
31611         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
31612         Only declare if missing or broken.
31613
31614         sys_times, sys_utsname: use include_next
31615         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
31616         header.
31617         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
31618         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
31619         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
31620         * modules/sys_times (Depends-on): Add include_next.
31621         (Makefile.am): Substitute additional values.
31622         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
31623         * lib/sys_times.in.h (includes): Include native header, if
31624         available.
31625         * lib/sys_utsname.in.h (includes): Likewise.
31626         * tests/test-sys_times.c (main): Enhance test.
31627
31628         fdutimensat: revert prior patch
31629         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
31630         utimens.h.
31631         Reported by Bruno Haible.
31632
31633 2009-12-30  Eric Blake  <ebb9@byu.net>
31634
31635         sys_wait: drop link-warning dependency
31636         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
31637         link-warning efforts.
31638         * lib/sys_wait.in.h: Likewise.
31639
31640         fdutimensat: remove bogus dependency
31641         * modules/fdutimensat (Depends-on): Drop inline.
31642
31643         unistd: fix typo
31644         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
31645
31646 2009-12-30  Bruno Haible  <bruno@clisp.org>
31647
31648         Fix compilation error with Solaris cc.
31649         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
31650         * lib/unicase/u16-is-invariant.c: Likewise.
31651         * lib/unicase/u32-is-invariant.c: Likewise.
31652         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
31653
31654 2009-12-30  Bruno Haible  <bruno@clisp.org>
31655
31656         Fix test crash.
31657         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
31658         locales.
31659         Reported by Simon Josefsson <simon@josefsson.org>.
31660
31661 2009-12-30  Bruno Haible  <bruno@clisp.org>
31662
31663         Fix compilation error on most platforms.
31664         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
31665         Reported by Simon Josefsson <simon@josefsson.org>
31666         and Nelson H. F. Beebe <beebe@math.utah.edu>.
31667
31668 2009-12-30  Eric Blake  <ebb9@byu.net>
31669
31670         futimens, utimensat: work around ntfs-3g bug
31671         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
31672         a ctime bug is present, and expand workaround to cover ntfs-3g.
31673         * lib/utimens.c (fdutimens, lutimens): Likewise.
31674         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
31675         (validate_timespec): Adjust return value.
31676         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
31677         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
31678         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
31679
31680 2009-12-29  Eric Blake  <ebb9@byu.net>
31681
31682         link-warning: make usage consistent
31683         * modules/ctype (Depends-on): Add link-warning.
31684         (Makefile.am): Update rules accordingly.
31685         * modules/langinfo (Depends-on, Makefile.am): Likewise.
31686         * modules/locale (Depends-on, Makefile.am): Likewise.
31687         * modules/sys_file (Makefile.am): Likewise.
31688         * modules/getopt-posix (Makefile.am): Delete unused link warning
31689         efforts.
31690         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
31691         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
31692         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
31693         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
31694
31695         stdio: remove unused variables
31696         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
31697         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
31698         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
31699
31700         tests: test more substitute headers
31701         * modules/ctype-tests: New file.
31702         * modules/dirent-tests: Likewise.
31703         * modules/spawn-tests: Likewise.
31704         * modules/sys_file-tests: Likewise.
31705         * modules/sys_ioctl-tests: Likewise.
31706         * modules/sys_wait-tests: Likewise.
31707         * tests/test-ctype.c: Likewise.
31708         * tests/test-dirent.c: Likewise.
31709         * tests/test-spawn.c: Likewise.
31710         * tests/test-sys_file.c: Likewise.
31711         * tests/test-sys_ioctl.c: Likewise.
31712         * tests/test-sys_wait.c: Likewise.
31713         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
31714         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
31715         whether or not flock is in use.
31716
31717         tests: remove License section from module
31718         * modules/arpa_inet-tests: Remove unneeded section.
31719         * modules/byteswap-tests: Likewise.
31720         * modules/ceilf-tests: Likewise.
31721         * modules/ceill-tests: Likewise.
31722         * modules/crypto/des-tests: Likewise.
31723         * modules/crypto/gc-arcfour-tests: Likewise.
31724         * modules/crypto/gc-arctwo-tests: Likewise.
31725         * modules/crypto/gc-des-tests: Likewise.
31726         * modules/crypto/gc-hmac-md5-tests: Likewise.
31727         * modules/crypto/gc-hmac-sha1-tests: Likewise.
31728         * modules/crypto/gc-md2-tests: Likewise.
31729         * modules/crypto/gc-md4-tests: Likewise.
31730         * modules/crypto/gc-md5-tests: Likewise.
31731         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
31732         * modules/crypto/gc-rijndael-tests: Likewise.
31733         * modules/crypto/gc-sha1-tests: Likewise.
31734         * modules/crypto/gc-tests: Likewise.
31735         * modules/crypto/md2-tests: Likewise.
31736         * modules/crypto/md4-tests: Likewise.
31737         * modules/fcntl-h-tests: Likewise.
31738         * modules/floorf-tests: Likewise.
31739         * modules/floorl-tests: Likewise.
31740         * modules/frexp-nolibm-tests: Likewise.
31741         * modules/frexp-tests: Likewise.
31742         * modules/frexpl-nolibm-tests: Likewise.
31743         * modules/frexpl-tests: Likewise.
31744         * modules/getaddrinfo-tests: Likewise.
31745         * modules/inttypes-tests: Likewise.
31746         * modules/isfinite-tests: Likewise.
31747         * modules/isinf-tests: Likewise.
31748         * modules/ldexpl-tests: Likewise.
31749         * modules/locale-tests: Likewise.
31750         * modules/math-tests: Likewise.
31751         * modules/netdb-tests: Likewise.
31752         * modules/netinet_in-tests: Likewise.
31753         * modules/printf-frexp-tests: Likewise.
31754         * modules/printf-frexpl-tests: Likewise.
31755         * modules/priv-set-tests: Likewise.
31756         * modules/random_r-tests: Likewise.
31757         * modules/round-tests: Likewise.
31758         * modules/roundf-tests: Likewise.
31759         * modules/roundl-tests: Likewise.
31760         * modules/search-tests: Likewise.
31761         * modules/select-tests: Likewise.
31762         * modules/signal-tests: Likewise.
31763         * modules/stdbool-tests: Likewise.
31764         * modules/stddef-tests: Likewise.
31765         * modules/stdint-tests: Likewise.
31766         * modules/stdio-tests: Likewise.
31767         * modules/stdlib-tests: Likewise.
31768         * modules/string-tests: Likewise.
31769         * modules/strings-tests: Likewise.
31770         * modules/sys_select-tests: Likewise.
31771         * modules/sys_socket-tests: Likewise.
31772         * modules/sys_stat-tests: Likewise.
31773         * modules/sys_time-tests: Likewise.
31774         * modules/sys_utsname-tests: Likewise.
31775         * modules/sysexits-tests: Likewise.
31776         * modules/time-tests: Likewise.
31777         * modules/trunc-tests: Likewise.
31778         * modules/truncf-tests: Likewise.
31779         * modules/truncl-tests: Likewise.
31780         * modules/tsearch-tests: Likewise.
31781         * modules/unistd-tests: Likewise.
31782         * modules/wchar-tests: Likewise.
31783         * modules/wctype-tests: Likewise.
31784
31785         tests: fix license on several tests
31786         * tests/test-des.c: Update to GPLv3+.
31787         * tests/test-flock.c: Likewise.
31788         * tests/test-fsync.c: Likewise.
31789         * tests/test-futimens.h: Likewise.
31790         * tests/test-gc-arcfour.c: Likewise.
31791         * tests/test-gc-arctwo.c: Likewise.
31792         * tests/test-gc-des.c: Likewise.
31793         * tests/test-gc-hmac-md5.c: Likewise.
31794         * tests/test-gc-hmac-sha1.c: Likewise.
31795         * tests/test-gc-md2.c: Likewise.
31796         * tests/test-gc-md4.c: Likewise.
31797         * tests/test-gc-md5.c: Likewise.
31798         * tests/test-gc-pbkdf2-sha1.c: Likewise.
31799         * tests/test-gc-rijndael.c: Likewise.
31800         * tests/test-gc-sha1.c: Likewise.
31801         * tests/test-gc.c: Likewise.
31802         * tests/test-getcwd.c: Likewise.
31803         * tests/test-link.c: Likewise.
31804         * tests/test-link.h: Likewise.
31805         * tests/test-lutimens.h: Likewise.
31806         * tests/test-md2.c: Likewise.
31807         * tests/test-md4.c: Likewise.
31808         * tests/test-mkdir.h: Likewise.
31809         * tests/test-rename.c: Likewise.
31810         * tests/test-rename.h: Likewise.
31811         * tests/test-safe-alloc.c: Likewise.
31812         * tests/test-utimens-common.h: Likewise.
31813         * tests/test-utimens.h: Likewise.
31814
31815         maint: sync license texts
31816         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
31817         * doc/gpl-3.0.texi: Revert copyright year update.
31818         * doc/lgpl-3.0.texi: Likewise.
31819
31820 2009-12-29  Jim Meyering  <meyering@redhat.com>
31821
31822         update nearly all FSF copyright year lists to include 2009
31823         The files named by the following are exempted:
31824             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
31825               test -f "$dst" && { echo "$dst"; continue; }
31826               test -d "$dst" || continue
31827               echo "$dst"/$(basename "$src")
31828             done > exempt
31829             git ls-files tests/unictype >> exempt
31830         In the remaining files, convert to all-interval notation if
31831         - there is already at least one year interval like 2000-2003
31832         - the file is maintained by me
31833         - the file is in lib/uni*/, where that style already prevails
31834         Otherwise, use update-copyright's default.
31835
31836 2009-12-29  Simon Josefsson  <simon@josefsson.org>
31837         and Eric Blake  <ebb9@byu.net>
31838
31839         tests: don't require debug system() to pass
31840         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
31841         * tests/test-rmdir.h (test_rmdir_func): Likewise.
31842         * tests/test-unlink.h (test_unlink_func): Likewise.
31843         * tests/test-fstatat.c (main): ...into callers.
31844         * tests/test-lstat.c (main): Likewise.
31845         * tests/test-rmdir.c (main): Likewise.
31846         * tests/test-unlink.c (main): Likewise.
31847         * tests/test-unlinkat.c (main): Likewise.
31848         * tests/test-areadlink-with-size.c (main): Don't require a
31849         debug-only system call to pass, aiding cross-testing to mingw.
31850         * tests/test-areadlink.c (main): Likewise.
31851         * tests/test-areadlinkat-with-size.c (main): Likewise.
31852         * tests/test-areadlinkat.c (main): Likewise.
31853         * tests/test-canonicalize-lgpl.c (main): Likewise.
31854         * tests/test-canonicalize.c (main): Likewise.
31855         * tests/test-chown.c (main): Likewise.
31856         * tests/test-fchownat.c (main): Likewise.
31857         * tests/test-lchown.c (main): Likewise.
31858         * tests/test-fdutimensat.c (main): Likewise.
31859         * tests/test-futimens.c (main): Likewise.
31860         * tests/test-link.c (main): Likewise.
31861         * tests/test-linkat.c (main): Likewise.
31862         * tests/test-mkdir.c (main): Likewise.
31863         * tests/test-mkdirat.c (main): Likewise.
31864         * tests/test-mkfifo.c (main): Likewise.
31865         * tests/test-mkfifoat.c (main): Likewise.
31866         * tests/test-mknod.c (main): Likewise.
31867         * tests/test-readlink.c (main): Likewise.
31868         * tests/test-remove.c (main): Likewise.
31869         * tests/test-rename.c (main): Likewise.
31870         * tests/test-renameat.c (main): Likewise.
31871         * tests/test-symlink.c (main): Likewise.
31872         * tests/test-symlinkat.c (main): Likewise.
31873         * tests/test-utimens.c (main): Likewise.
31874         * tests/test-utimensat.c (main): Likewise.
31875
31876 2009-12-29  Simon Josefsson  <simon@josefsson.org>
31877
31878         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
31879         on $(UNUSED_PARAMETER_H) to avoid build failure.
31880
31881 2009-12-28  Jim Meyering  <meyering@redhat.com>
31882
31883         update-copyright: you may specify a max. line length other than 72
31884         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
31885
31886         maint: use consistent FSF copyright line syntax
31887         * lib/posixtm.c: Add missing comma in FSF copyright line.
31888         * lib/posixtm.h: Likewise.
31889         * lib/getugroups.c: Add missing ", Inc.".
31890
31891         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
31892         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
31893         FSF copyright line.  Remove trailing blanks.
31894
31895 2009-12-28  Eric Blake  <ebb9@byu.net>
31896
31897         test-dup2: reduce dependencies
31898         * modules/cloexec (Configure.ac): Set witness.
31899         * modules/dup2-tests (Depends-on): Drop cloexec.
31900         * tests/test-dup2.c (main): Skip portion of test if cloexec module
31901         not present.
31902         Suggested by Bruno Haible.
31903
31904 2009-12-26  Bruno Haible  <bruno@clisp.org>
31905
31906         Remove an unneeded dependency.
31907         * modules/fseterr (Depends-on): Remove dup2.
31908
31909 2009-12-26  Eric Blake  <ebb9@byu.net>
31910
31911         tests: use macros.h in more places
31912         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
31913         (ASSERT_STREAM): Provide default of stderr.
31914         * tests/test-dirent-safer.c: Include macros.h, using alternate
31915         stream for assertions.
31916         * tests/test-dup-safer.c: Likewise.
31917         * tests/test-freopen-safer.c: Likewise.
31918         * tests/test-getopt.c: Likewise.
31919         * tests/test-openat-safer.c: Likewise.
31920         * tests/test-pipe.c: Likewise.
31921         * tests/test-popen-safer.c: Likewise.
31922         * modules/dirent-safer-tests (Files): Include macros.h.
31923         * modules/unistd-safer-tests (Files): Likewise.
31924         * modules/freopen-safer-tests (Files): Likewise.
31925         * modules/getopt-posix-tests (Files): Likewise.
31926         * modules/openat-safer-tests (Files): Likewise.
31927         * modules/pipe-tests (Files): Likewise.
31928
31929 2009-12-26  Bruno Haible  <bruno@clisp.org>
31930
31931         javacomp: Portability fix.
31932         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
31933         that it also works on Solaris.
31934
31935 2009-12-26  Bruno Haible  <bruno@clisp.org>
31936
31937         localename: Fix storage allocation of gl_locale_name_thread's result.
31938         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
31939         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
31940         all platforms that have 'uselocale'.
31941         (gl_locale_name_thread_unsafe): New function, extracted from
31942         gl_locale_name_thread.
31943         (gl_locale_name_thread): Call struniq on all platforms that have
31944         'uselocale'.
31945         * tests/test-localename.c (test_locale_name_thread): Check that the
31946         resulting strings are permanently allocated.
31947         * modules/localename-tests (Depends-on): Add strdup.
31948
31949 2009-12-26  Bruno Haible  <bruno@clisp.org>
31950
31951         * tests/test-localename.c (categories): Fill in the strings.
31952
31953 2009-12-26  Jim Meyering  <meyering@redhat.com>
31954
31955         isdir: complete the removal of m4/isdir.m4
31956         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
31957
31958         isdir: clean up, since at least grep still uses it
31959         * lib/isdir.c: Include "isdir.h".
31960         (S_ISDIR): Remove now-unneeded definition.
31961         * modules/isdir (Files): Add lib/isdir.h.
31962         * lib/isdir.h: New file, with declaration.
31963         * m4/isdir.m4: Remove file -- unneeded.
31964
31965 2009-12-25  Bruno Haible  <bruno@clisp.org>
31966
31967         selinux-h: Make generated .h files standalone.
31968         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
31969         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
31970         * lib/se-selinux.in.h: Likewise.
31971         * modules/selinux-h (Depends-on): Add unused-parameter.
31972         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
31973         selinux/selinux.h and selinux/context.h.
31974         Suggested by Eric Blake.
31975
31976 2009-12-25  Bruno Haible  <bruno@clisp.org>
31977
31978         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
31979         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
31980         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
31981         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
31982         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
31983
31984 2009-12-24  Bruno Haible  <bruno@clisp.org>
31985
31986         openat: Fix warning.
31987         * lib/openat-proc.c: Include <unistd.h>.
31988
31989 2009-12-24  Bruno Haible  <bruno@clisp.org>
31990
31991         New module 'unused-parameter'.
31992         * build-aux/unused-parameter.h: New file, extracted from earlier
31993         gnulib-common.m4.
31994         * modules/unused-parameter: New file.
31995         * lib/unistr.h: Include unused-parameter.h.
31996         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
31997         _GL_UNUSED.
31998         * modules/unistr/base (Depends-on): Add unused-parameter.
31999
32000 2009-12-24  Bruno Haible  <bruno@clisp.org>
32001
32002         Add missing dependencies to 'extensions' module.
32003         * m4/extensions.m4: Add comment.
32004         * modules/accept4 (Depends-on): Add extensions.
32005         * modules/dup3 (Depends-on): Likewise.
32006         * modules/fcntl (Depends-on): Likewise.
32007         * modules/futimens (Depends-on): Likewise.
32008         * modules/mknod (Depends-on): Likewise.
32009         * modules/pipe2 (Depends-on): Likewise.
32010         * modules/stat-time (Depends-on): Likewise.
32011         * modules/strcasestr-simple (Depends-on): Likewise.
32012         * modules/strsignal (Depends-on): Likewise.
32013         * modules/utimensat (Depends-on): Likewise.
32014         * modules/localcharset (Depends-on): Likewise. Needed because of
32015         gl_FCNTL_O_FLAGS.
32016         * modules/wcrtomb (Depends-on): Likewise. Needed because of
32017         AC_TYPE_MBSTATE_T.
32018         * modules/wcsnrtombs (Depends-on): Likewise.
32019         * modules/wcsrtombs (Depends-on): Likewise.
32020
32021 2009-12-24  Bruno Haible  <bruno@clisp.org>
32022
32023         binary-io: Avoid gcc warning due to SET_BINARY.
32024         * lib/binary-io.h (SET_BINARY): Cast the result to void.
32025         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
32026
32027 2009-12-24  Bruno Haible  <bruno@clisp.org>
32028
32029         Avoid future namespace pollution on glibc systems.
32030         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
32031         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
32032         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
32033         glibc systems.
32034
32035 2009-12-24  Bruno Haible  <bruno@clisp.org>
32036
32037         Refactor common macros used in tests.
32038         * tests/macros.h: New file.
32039         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
32040         and/or <stdlib.h>, if appropriate.
32041         (ASSERT, SIZEOF): Remove macros.
32042         * tests/test-areadlink-with-size.c: Likewise.
32043         * tests/test-areadlinkat.c: Likewise.
32044         * tests/test-areadlinkat-with-size.c: Likewise.
32045         * tests/test-argmatch.c: Likewise.
32046         * tests/test-argv-iter.c: Likewise.
32047         * tests/test-array-mergesort.c: Likewise.
32048         * tests/test-array_list.c: Likewise.
32049         * tests/test-array_oset.c: Likewise.
32050         * tests/test-avltree_list.c: Likewise.
32051         * tests/test-avltree_oset.c: Likewise.
32052         * tests/test-avltreehash_list.c: Likewise.
32053         * tests/test-base64.c: Likewise.
32054         * tests/test-binary-io.c: Likewise.
32055         * tests/test-bitrotate.c: Likewise.
32056         * tests/test-btowc.c: Likewise.
32057         * tests/test-byteswap.c: Likewise.
32058         * tests/test-c-ctype.c: Likewise.
32059         * tests/test-c-stack.c: Likewise.
32060         * tests/test-c-strcasecmp.c: Likewise.
32061         * tests/test-c-strcasestr.c: Likewise.
32062         * tests/test-c-strncasecmp.c: Likewise.
32063         * tests/test-c-strstr.c: Likewise.
32064         * tests/test-canonicalize-lgpl.c: Likewise.
32065         * tests/test-canonicalize.c: Likewise.
32066         * tests/test-carray_list.c: Likewise.
32067         * tests/test-ceilf1.c: Likewise.
32068         * tests/test-ceilf2.c: Likewise.
32069         * tests/test-ceill.c: Likewise.
32070         * tests/test-chown.c: Likewise.
32071         * tests/test-cloexec.c: Likewise.
32072         * tests/test-copy-acl.c: Likewise.
32073         * tests/test-copy-file.c: Likewise.
32074         * tests/test-count-one-bits.c: Likewise.
32075         * tests/test-dprintf-posix.c: Likewise.
32076         * tests/test-dup2.c: Likewise.
32077         * tests/test-dup3.c: Likewise.
32078         * tests/test-duplocale.c: Likewise.
32079         * tests/test-fbufmode.c: Likewise.
32080         * tests/test-fchdir.c: Likewise.
32081         * tests/test-fchownat.c: Likewise.
32082         * tests/test-fcntl-safer.c: Likewise.
32083         * tests/test-fcntl.c: Likewise.
32084         * tests/test-fdopendir.c: Likewise.
32085         * tests/test-fdutimensat.c: Likewise.
32086         * tests/test-fflush2.c: Likewise.
32087         * tests/test-file-has-acl.c: Likewise.
32088         * tests/test-filevercmp.c: Likewise.
32089         * tests/test-flock.c: Likewise.
32090         * tests/test-floorf1.c: Likewise.
32091         * tests/test-floorf2.c: Likewise.
32092         * tests/test-floorl.c: Likewise.
32093         * tests/test-fnmatch.c: Likewise.
32094         * tests/test-fopen.h: Likewise.
32095         * tests/test-fpending.c: Likewise.
32096         * tests/test-fprintf-posix.c: Likewise.
32097         * tests/test-fpurge.c: Likewise.
32098         * tests/test-freadable.c: Likewise.
32099         * tests/test-freadahead.c: Likewise.
32100         * tests/test-freading.c: Likewise.
32101         * tests/test-freadptr.c: Likewise.
32102         * tests/test-freadptr2.c: Likewise.
32103         * tests/test-freadseek.c: Likewise.
32104         * tests/test-freopen.c: Likewise.
32105         * tests/test-frexp.c: Likewise.
32106         * tests/test-frexpl.c: Likewise.
32107         * tests/test-fseek.c: Likewise.
32108         * tests/test-fseeko.c: Likewise.
32109         * tests/test-fstatat.c: Likewise.
32110         * tests/test-fstrcmp.c: Likewise.
32111         * tests/test-fsync.c: Likewise.
32112         * tests/test-ftell.c: Likewise.
32113         * tests/test-ftello.c: Likewise.
32114         * tests/test-func.c: Likewise.
32115         * tests/test-futimens.c: Likewise.
32116         * tests/test-fwritable.c: Likewise.
32117         * tests/test-fwriting.c: Likewise.
32118         * tests/test-getcwd.c: Likewise.
32119         * tests/test-getdate.c: Likewise.
32120         * tests/test-getdelim.c: Likewise.
32121         * tests/test-getdtablesize.c: Likewise.
32122         * tests/test-getgroups.c: Likewise.
32123         * tests/test-getline.c: Likewise.
32124         * tests/test-getndelim2.c: Likewise.
32125         * tests/test-glob.c: Likewise.
32126         * tests/test-hash.c: Likewise.
32127         * tests/test-i-ring.c: Likewise.
32128         * tests/test-iconv-utf.c: Likewise.
32129         * tests/test-iconv.c: Likewise.
32130         * tests/test-idpriv-drop.c: Likewise.
32131         * tests/test-idpriv-droptemp.c: Likewise.
32132         * tests/test-inet_ntop.c: Likewise.
32133         * tests/test-inet_pton.c: Likewise.
32134         * tests/test-isblank.c: Likewise.
32135         * tests/test-isfinite.c: Likewise.
32136         * tests/test-isinf.c: Likewise.
32137         * tests/test-isnan.c: Likewise.
32138         * tests/test-isnand.h: Likewise.
32139         * tests/test-isnanf.h: Likewise.
32140         * tests/test-isnanl.h: Likewise.
32141         * tests/test-lchown.c: Likewise.
32142         * tests/test-ldexpl.c: Likewise.
32143         * tests/test-link.c: Likewise.
32144         * tests/test-linkat.c: Likewise.
32145         * tests/test-linked_list.c: Likewise.
32146         * tests/test-linkedhash_list.c: Likewise.
32147         * tests/test-localename.c: Likewise.
32148         * tests/test-lseek.c: Likewise.
32149         * tests/test-lstat.c: Likewise.
32150         * tests/test-mbmemcasecmp.c: Likewise.
32151         * tests/test-mbmemcasecoll.c: Likewise.
32152         * tests/test-mbrtowc.c: Likewise.
32153         * tests/test-mbscasecmp.c: Likewise.
32154         * tests/test-mbscasestr1.c: Likewise.
32155         * tests/test-mbscasestr2.c: Likewise.
32156         * tests/test-mbscasestr3.c: Likewise.
32157         * tests/test-mbscasestr4.c: Likewise.
32158         * tests/test-mbschr.c: Likewise.
32159         * tests/test-mbscspn.c: Likewise.
32160         * tests/test-mbsinit.c: Likewise.
32161         * tests/test-mbsncasecmp.c: Likewise.
32162         * tests/test-mbsnrtowcs.c: Likewise.
32163         * tests/test-mbspbrk.c: Likewise.
32164         * tests/test-mbspcasecmp.c: Likewise.
32165         * tests/test-mbsrchr.c: Likewise.
32166         * tests/test-mbsrtowcs.c: Likewise.
32167         * tests/test-mbsspn.c: Likewise.
32168         * tests/test-mbsstr1.c: Likewise.
32169         * tests/test-mbsstr2.c: Likewise.
32170         * tests/test-mbsstr3.c: Likewise.
32171         * tests/test-memchr.c: Likewise.
32172         * tests/test-memchr2.c: Likewise.
32173         * tests/test-memcmp.c: Likewise.
32174         * tests/test-memmem.c: Likewise.
32175         * tests/test-memrchr.c: Likewise.
32176         * tests/test-mkdir.c: Likewise.
32177         * tests/test-mkdirat.c: Likewise.
32178         * tests/test-mkfifo.c: Likewise.
32179         * tests/test-mkfifoat.c: Likewise.
32180         * tests/test-mknod.c: Likewise.
32181         * tests/test-nanosleep.c: Likewise.
32182         * tests/test-nl_langinfo.c: Likewise.
32183         * tests/test-obstack-printf.c: Likewise.
32184         * tests/test-open.c: Likewise.
32185         * tests/test-openat.c: Likewise.
32186         * tests/test-pipe-filter-gi1.c: Likewise.
32187         * tests/test-pipe-filter-gi2-main.c: Likewise.
32188         * tests/test-pipe-filter-ii1.c: Likewise.
32189         * tests/test-pipe-filter-ii2-main.c: Likewise.
32190         * tests/test-pipe2.c: Likewise.
32191         * tests/test-popen.h: Likewise.
32192         * tests/test-posixtm.c: Likewise.
32193         * tests/test-pread.c: Likewise.
32194         * tests/test-printf-frexp.c: Likewise.
32195         * tests/test-printf-frexpl.c: Likewise.
32196         * tests/test-printf-posix.c: Likewise.
32197         * tests/test-priv-set.c: Likewise.
32198         * tests/test-quotearg.c: Likewise.
32199         * tests/test-random_r.c: Likewise.
32200         * tests/test-rawmemchr.c: Likewise.
32201         * tests/test-rbtree_list.c: Likewise.
32202         * tests/test-rbtree_oset.c: Likewise.
32203         * tests/test-rbtreehash_list.c: Likewise.
32204         * tests/test-readlink.c: Likewise.
32205         * tests/test-remove.c: Likewise.
32206         * tests/test-rename.c: Likewise.
32207         * tests/test-renameat.c: Likewise.
32208         * tests/test-rmdir.c: Likewise.
32209         * tests/test-round1.c: Likewise.
32210         * tests/test-roundf1.c: Likewise.
32211         * tests/test-roundl.c: Likewise.
32212         * tests/test-safe-alloc.c: Likewise.
32213         * tests/test-sameacls.c: Likewise.
32214         * tests/test-set-mode-acl.c: Likewise.
32215         * tests/test-setenv.c: Likewise.
32216         * tests/test-sigaction.c: Likewise.
32217         * tests/test-signbit.c: Likewise.
32218         * tests/test-sleep.c: Likewise.
32219         * tests/test-snprintf-posix.c: Likewise.
32220         * tests/test-snprintf.c: Likewise.
32221         * tests/test-sprintf-posix.c: Likewise.
32222         * tests/test-stat-time.c: Likewise.
32223         * tests/test-stat.c: Likewise.
32224         * tests/test-strcasestr.c: Likewise.
32225         * tests/test-strchrnul.c: Likewise.
32226         * tests/test-strerror.c: Likewise.
32227         * tests/test-striconv.c: Likewise.
32228         * tests/test-striconveh.c: Likewise.
32229         * tests/test-striconveha.c: Likewise.
32230         * tests/test-strsignal.c: Likewise.
32231         * tests/test-strstr.c: Likewise.
32232         * tests/test-strtod.c: Likewise.
32233         * tests/test-strverscmp.c: Likewise.
32234         * tests/test-symlink.c: Likewise.
32235         * tests/test-symlinkat.c: Likewise.
32236         * tests/test-trunc1.c: Likewise.
32237         * tests/test-trunc2.c: Likewise.
32238         * tests/test-truncf1.c: Likewise.
32239         * tests/test-truncf2.c: Likewise.
32240         * tests/test-truncl.c: Likewise.
32241         * tests/test-uname.c: Likewise.
32242         * tests/test-unlink.c: Likewise.
32243         * tests/test-unlinkat.c: Likewise.
32244         * tests/test-unsetenv.c: Likewise.
32245         * tests/test-usleep.c: Likewise.
32246         * tests/test-utimens.c: Likewise.
32247         * tests/test-utimensat.c: Likewise.
32248         * tests/test-vasnprintf-posix.c: Likewise.
32249         * tests/test-vasnprintf-posix2.c: Likewise.
32250         * tests/test-vasnprintf.c: Likewise.
32251         * tests/test-vasprintf-posix.c: Likewise.
32252         * tests/test-vasprintf.c: Likewise.
32253         * tests/test-vdprintf-posix.c: Likewise.
32254         * tests/test-vfprintf-posix.c: Likewise.
32255         * tests/test-vprintf-posix.c: Likewise.
32256         * tests/test-vsnprintf-posix.c: Likewise.
32257         * tests/test-vsnprintf.c: Likewise.
32258         * tests/test-vsprintf-posix.c: Likewise.
32259         * tests/test-wcrtomb.c: Likewise.
32260         * tests/test-wcsnrtombs.c: Likewise.
32261         * tests/test-wcsrtombs.c: Likewise.
32262         * tests/test-wctype.c: Likewise.
32263         * tests/test-wcwidth.c: Likewise.
32264         * tests/test-xfprintf-posix.c: Likewise.
32265         * tests/test-xmemdup0.c: Likewise.
32266         * tests/test-xprintf-posix.c: Likewise.
32267         * tests/test-xvasprintf.c: Likewise.
32268         * tests/unicase/test-locale-language.c: Likewise.
32269         * tests/unicase/test-mapping-part1.h: Likewise.
32270         * tests/unicase/test-predicate-part1.h: Likewise.
32271         * tests/unicase/test-u8-casecmp.c: Likewise.
32272         * tests/unicase/test-u8-casecoll.c: Likewise.
32273         * tests/unicase/test-u8-casefold.c: Likewise.
32274         * tests/unicase/test-u8-is-cased.c: Likewise.
32275         * tests/unicase/test-u8-is-casefolded.c: Likewise.
32276         * tests/unicase/test-u8-is-lowercase.c: Likewise.
32277         * tests/unicase/test-u8-is-titlecase.c: Likewise.
32278         * tests/unicase/test-u8-is-uppercase.c: Likewise.
32279         * tests/unicase/test-u8-tolower.c: Likewise.
32280         * tests/unicase/test-u8-totitle.c: Likewise.
32281         * tests/unicase/test-u8-toupper.c: Likewise.
32282         * tests/unicase/test-u16-casecmp.c: Likewise.
32283         * tests/unicase/test-u16-casecoll.c: Likewise.
32284         * tests/unicase/test-u16-casefold.c: Likewise.
32285         * tests/unicase/test-u16-is-cased.c: Likewise.
32286         * tests/unicase/test-u16-is-casefolded.c: Likewise.
32287         * tests/unicase/test-u16-is-lowercase.c: Likewise.
32288         * tests/unicase/test-u16-is-titlecase.c: Likewise.
32289         * tests/unicase/test-u16-is-uppercase.c: Likewise.
32290         * tests/unicase/test-u16-tolower.c: Likewise.
32291         * tests/unicase/test-u16-totitle.c: Likewise.
32292         * tests/unicase/test-u16-toupper.c: Likewise.
32293         * tests/unicase/test-u32-casecmp.c: Likewise.
32294         * tests/unicase/test-u32-casecoll.c: Likewise.
32295         * tests/unicase/test-u32-casefold.c: Likewise.
32296         * tests/unicase/test-u32-is-cased.c: Likewise.
32297         * tests/unicase/test-u32-is-casefolded.c: Likewise.
32298         * tests/unicase/test-u32-is-lowercase.c: Likewise.
32299         * tests/unicase/test-u32-is-titlecase.c: Likewise.
32300         * tests/unicase/test-u32-is-uppercase.c: Likewise.
32301         * tests/unicase/test-u32-tolower.c: Likewise.
32302         * tests/unicase/test-u32-totitle.c: Likewise.
32303         * tests/unicase/test-u32-toupper.c: Likewise.
32304         * tests/unicase/test-ulc-casecmp.c: Likewise.
32305         * tests/unicase/test-ulc-casecoll.c: Likewise.
32306         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
32307         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
32308         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
32309         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
32310         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
32311         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
32312         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
32313         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
32314         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
32315         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
32316         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
32317         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
32318         * tests/unictype/test-bidi_byname.c: Likewise.
32319         * tests/unictype/test-bidi_name.c: Likewise.
32320         * tests/unictype/test-bidi_of.c: Likewise.
32321         * tests/unictype/test-bidi_test.c: Likewise.
32322         * tests/unictype/test-block_list.c: Likewise.
32323         * tests/unictype/test-block_of.c: Likewise.
32324         * tests/unictype/test-block_test.c: Likewise.
32325         * tests/unictype/test-categ_and.c: Likewise.
32326         * tests/unictype/test-categ_and_not.c: Likewise.
32327         * tests/unictype/test-categ_byname.c: Likewise.
32328         * tests/unictype/test-categ_name.c: Likewise.
32329         * tests/unictype/test-categ_none.c: Likewise.
32330         * tests/unictype/test-categ_of.c: Likewise.
32331         * tests/unictype/test-categ_or.c: Likewise.
32332         * tests/unictype/test-categ_test_withtable.c: Likewise.
32333         * tests/unictype/test-combining.c: Likewise.
32334         * tests/unictype/test-decdigit.c: Likewise.
32335         * tests/unictype/test-digit.c: Likewise.
32336         * tests/unictype/test-mirror.c: Likewise.
32337         * tests/unictype/test-numeric.c: Likewise.
32338         * tests/unictype/test-pr_byname.c: Likewise.
32339         * tests/unictype/test-pr_test.c: Likewise.
32340         * tests/unictype/test-predicate-part1.h: Likewise.
32341         * tests/unictype/test-scripts.c: Likewise.
32342         * tests/unictype/test-sy_c_ident.c: Likewise.
32343         * tests/unictype/test-sy_java_ident.c: Likewise.
32344         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
32345         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
32346         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
32347         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
32348         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
32349         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
32350         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
32351         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
32352         * tests/uninorm/test-canonical-decomposition.c: Likewise.
32353         * tests/uninorm/test-compat-decomposition.c: Likewise.
32354         * tests/uninorm/test-composition.c: Likewise.
32355         * tests/uninorm/test-decomposing-form.c: Likewise.
32356         * tests/uninorm/test-decomposition.c: Likewise.
32357         * tests/uninorm/test-u8-nfc.c: Likewise.
32358         * tests/uninorm/test-u8-nfd.c: Likewise.
32359         * tests/uninorm/test-u8-nfkc.c: Likewise.
32360         * tests/uninorm/test-u8-nfkd.c: Likewise.
32361         * tests/uninorm/test-u8-normcmp.c: Likewise.
32362         * tests/uninorm/test-u8-normcoll.c: Likewise.
32363         * tests/uninorm/test-u16-nfc.c: Likewise.
32364         * tests/uninorm/test-u16-nfd.c: Likewise.
32365         * tests/uninorm/test-u16-nfkc.c: Likewise.
32366         * tests/uninorm/test-u16-nfkd.c: Likewise.
32367         * tests/uninorm/test-u16-normcmp.c: Likewise.
32368         * tests/uninorm/test-u16-normcoll.c: Likewise.
32369         * tests/uninorm/test-u32-nfc.c: Likewise.
32370         * tests/uninorm/test-u32-nfd.c: Likewise.
32371         * tests/uninorm/test-u32-nfkc.c: Likewise.
32372         * tests/uninorm/test-u32-nfkd.c: Likewise.
32373         * tests/uninorm/test-u32-normalize-big.c: Likewise.
32374         * tests/uninorm/test-u32-normcmp.c: Likewise.
32375         * tests/uninorm/test-u32-normcoll.c: Likewise.
32376         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
32377         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
32378         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
32379         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
32380         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
32381         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
32382         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
32383         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
32384         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
32385         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
32386         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
32387         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
32388         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
32389         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
32390         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
32391         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
32392         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
32393         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
32394         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
32395         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
32396         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
32397         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
32398         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
32399         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
32400         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
32401         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
32402         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
32403         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
32404         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
32405         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
32406         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
32407         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
32408         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
32409         * tests/uniwidth/test-u8-strwidth.c: Likewise.
32410         * tests/uniwidth/test-u8-width.c: Likewise.
32411         * tests/uniwidth/test-u16-strwidth.c: Likewise.
32412         * tests/uniwidth/test-u16-width.c: Likewise.
32413         * tests/uniwidth/test-u32-strwidth.c: Likewise.
32414         * tests/uniwidth/test-u32-width.c: Likewise.
32415         * tests/uniwidth/test-uc_width.c: Likewise.
32416         * tests/uniwidth/test-uc_width2.c: Likewise.
32417         * modules/acl-tests (Files): Add tests/macros.h.
32418         * modules/areadlink-tests (Files): Likewise.
32419         * modules/areadlink-with-size-tests (Files): Likewise.
32420         * modules/areadlinkat-tests (Files): Likewise.
32421         * modules/areadlinkat-with-size-tests (Files): Likewise.
32422         * modules/argmatch-tests (Files): Likewise.
32423         * modules/argv-iter-tests (Files): Likewise.
32424         * modules/array-list-tests (Files): Likewise.
32425         * modules/array-mergesort-tests (Files): Likewise.
32426         * modules/array-oset-tests (Files): Likewise.
32427         * modules/avltree-list-tests (Files): Likewise.
32428         * modules/avltree-oset-tests (Files): Likewise.
32429         * modules/avltreehash-list-tests (Files): Likewise.
32430         * modules/base64-tests (Files): Likewise.
32431         * modules/binary-io-tests (Files): Likewise.
32432         * modules/bitrotate-tests (Files): Likewise.
32433         * modules/btowc-tests (Files): Likewise.
32434         * modules/byteswap-tests (Files): Likewise.
32435         * modules/c-ctype-tests (Files): Likewise.
32436         * modules/c-stack-tests (Files): Likewise.
32437         * modules/c-strcase-tests (Files): Likewise.
32438         * modules/c-strcasestr-tests (Files): Likewise.
32439         * modules/c-strstr-tests (Files): Likewise.
32440         * modules/canonicalize-lgpl-tests (Files): Likewise.
32441         * modules/canonicalize-tests (Files): Likewise.
32442         * modules/carray-list-tests (Files): Likewise.
32443         * modules/ceilf-tests (Files): Likewise.
32444         * modules/ceill-tests (Files): Likewise.
32445         * modules/chown-tests (Files): Likewise.
32446         * modules/cloexec-tests (Files): Likewise.
32447         * modules/copy-file-tests (Files): Likewise.
32448         * modules/count-one-bits-tests (Files): Likewise.
32449         * modules/dprintf-posix-tests (Files): Likewise.
32450         * modules/dup2-tests (Files): Likewise.
32451         * modules/dup3-tests (Files): Likewise.
32452         * modules/duplocale-tests (Files): Likewise.
32453         * modules/fbufmode-tests (Files): Likewise.
32454         * modules/fchdir-tests (Files): Likewise.
32455         * modules/fcntl-safer-tests (Files): Likewise.
32456         * modules/fcntl-tests (Files): Likewise.
32457         * modules/fdopendir-tests (Files): Likewise.
32458         * modules/fdutimensat-tests (Files): Likewise.
32459         * modules/fflush-tests (Files): Likewise.
32460         * modules/filevercmp-tests (Files): Likewise.
32461         * modules/flock-tests (Files): Likewise.
32462         * modules/floorf-tests (Files): Likewise.
32463         * modules/floorl-tests (Files): Likewise.
32464         * modules/fnmatch-tests (Files): Likewise.
32465         * modules/fopen-safer-tests (Files): Likewise.
32466         * modules/fopen-tests (Files): Likewise.
32467         * modules/fpending-tests (Files): Likewise.
32468         * modules/fprintf-posix-tests (Files): Likewise.
32469         * modules/fpurge-tests (Files): Likewise.
32470         * modules/freadable-tests (Files): Likewise.
32471         * modules/freadahead-tests (Files): Likewise.
32472         * modules/freading-tests (Files): Likewise.
32473         * modules/freadptr-tests (Files): Likewise.
32474         * modules/freadseek-tests (Files): Likewise.
32475         * modules/freopen-tests (Files): Likewise.
32476         * modules/frexp-nolibm-tests (Files): Likewise.
32477         * modules/frexp-tests (Files): Likewise.
32478         * modules/frexpl-nolibm-tests (Files): Likewise.
32479         * modules/frexpl-tests (Files): Likewise.
32480         * modules/fseek-tests (Files): Likewise.
32481         * modules/fseeko-tests (Files): Likewise.
32482         * modules/fstrcmp-tests (Files): Likewise.
32483         * modules/fsync-tests (Files): Likewise.
32484         * modules/ftell-tests (Files): Likewise.
32485         * modules/ftello-tests (Files): Likewise.
32486         * modules/func-tests (Files): Likewise.
32487         * modules/futimens-tests (Files): Likewise.
32488         * modules/fwritable-tests (Files): Likewise.
32489         * modules/fwriting-tests (Files): Likewise.
32490         * modules/getcwd-tests (Files): Likewise.
32491         * modules/getdate-tests (Files): Likewise.
32492         * modules/getdelim-tests (Files): Likewise.
32493         * modules/getdtablesize-tests (Files): Likewise.
32494         * modules/getgroups-tests (Files): Likewise.
32495         * modules/getline-tests (Files): Likewise.
32496         * modules/getndelim2-tests (Files): Likewise.
32497         * modules/glob-tests (Files): Likewise.
32498         * modules/hash-tests (Files): Likewise.
32499         * modules/i-ring-tests (Files): Likewise.
32500         * modules/iconv-tests (Files): Likewise.
32501         * modules/iconv_open-utf-tests (Files): Likewise.
32502         * modules/idpriv-drop-tests (Files): Likewise.
32503         * modules/idpriv-droptemp-tests (Files): Likewise.
32504         * modules/inet_ntop-tests (Files): Likewise.
32505         * modules/inet_pton-tests (Files): Likewise.
32506         * modules/isblank-tests (Files): Likewise.
32507         * modules/isfinite-tests (Files): Likewise.
32508         * modules/isinf-tests (Files): Likewise.
32509         * modules/isnan-tests (Files): Likewise.
32510         * modules/isnand-nolibm-tests (Files): Likewise.
32511         * modules/isnand-tests (Files): Likewise.
32512         * modules/isnanf-nolibm-tests (Files): Likewise.
32513         * modules/isnanf-tests (Files): Likewise.
32514         * modules/isnanl-nolibm-tests (Files): Likewise.
32515         * modules/isnanl-tests (Files): Likewise.
32516         * modules/lchown-tests (Files): Likewise.
32517         * modules/ldexpl-tests (Files): Likewise.
32518         * modules/link-tests (Files): Likewise.
32519         * modules/linkat-tests (Files): Likewise.
32520         * modules/linked-list-tests (Files): Likewise.
32521         * modules/linkedhash-list-tests (Files): Likewise.
32522         * modules/localename-tests (Files): Likewise.
32523         * modules/lseek-tests (Files): Likewise.
32524         * modules/lstat-tests (Files): Likewise.
32525         * modules/mbmemcasecmp-tests (Files): Likewise.
32526         * modules/mbmemcasecoll-tests (Files): Likewise.
32527         * modules/mbrtowc-tests (Files): Likewise.
32528         * modules/mbscasecmp-tests (Files): Likewise.
32529         * modules/mbscasestr-tests (Files): Likewise.
32530         * modules/mbschr-tests (Files): Likewise.
32531         * modules/mbscspn-tests (Files): Likewise.
32532         * modules/mbsinit-tests (Files): Likewise.
32533         * modules/mbsncasecmp-tests (Files): Likewise.
32534         * modules/mbsnrtowcs-tests (Files): Likewise.
32535         * modules/mbspbrk-tests (Files): Likewise.
32536         * modules/mbspcasecmp-tests (Files): Likewise.
32537         * modules/mbsrchr-tests (Files): Likewise.
32538         * modules/mbsrtowcs-tests (Files): Likewise.
32539         * modules/mbsspn-tests (Files): Likewise.
32540         * modules/mbsstr-tests (Files): Likewise.
32541         * modules/memchr-tests (Files): Likewise.
32542         * modules/memchr2-tests (Files): Likewise.
32543         * modules/memcmp-tests (Files): Likewise.
32544         * modules/memmem-tests (Files): Likewise.
32545         * modules/memrchr-tests (Files): Likewise.
32546         * modules/mkdir-tests (Files): Likewise.
32547         * modules/mkfifo-tests (Files): Likewise.
32548         * modules/mkfifoat-tests (Files): Likewise.
32549         * modules/mknod-tests (Files): Likewise.
32550         * modules/nanosleep-tests (Files): Likewise.
32551         * modules/nl_langinfo-tests (Files): Likewise.
32552         * modules/obstack-printf-tests (Files): Likewise.
32553         * modules/open-tests (Files): Likewise.
32554         * modules/openat-tests (Files): Likewise.
32555         * modules/pipe-filter-gi-tests (Files): Likewise.
32556         * modules/pipe-filter-ii-tests (Files): Likewise.
32557         * modules/pipe2-tests (Files): Likewise.
32558         * modules/popen-safer-tests (Files): Likewise.
32559         * modules/popen-tests (Files): Likewise.
32560         * modules/posixtm-tests (Files): Likewise.
32561         * modules/pread-tests (Files): Likewise.
32562         * modules/printf-frexp-tests (Files): Likewise.
32563         * modules/printf-frexpl-tests (Files): Likewise.
32564         * modules/printf-posix-tests (Files): Likewise.
32565         * modules/priv-set-tests (Files): Likewise.
32566         * modules/quotearg-tests (Files): Likewise.
32567         * modules/random_r-tests (Files): Likewise.
32568         * modules/rawmemchr-tests (Files): Likewise.
32569         * modules/rbtree-list-tests (Files): Likewise.
32570         * modules/rbtree-oset-tests (Files): Likewise.
32571         * modules/rbtreehash-list-tests (Files): Likewise.
32572         * modules/readlink-tests (Files): Likewise.
32573         * modules/remove-tests (Files): Likewise.
32574         * modules/rename-tests (Files): Likewise.
32575         * modules/renameat-tests (Files): Likewise.
32576         * modules/rmdir-tests (Files): Likewise.
32577         * modules/round-tests (Files): Likewise.
32578         * modules/roundf-tests (Files): Likewise.
32579         * modules/roundl-tests (Files): Likewise.
32580         * modules/safe-alloc-tests (Files): Likewise.
32581         * modules/setenv-tests (Files): Likewise.
32582         * modules/sigaction-tests (Files): Likewise.
32583         * modules/signbit-tests (Files): Likewise.
32584         * modules/sleep-tests (Files): Likewise.
32585         * modules/snprintf-posix-tests (Files): Likewise.
32586         * modules/snprintf-tests (Files): Likewise.
32587         * modules/sprintf-posix-tests (Files): Likewise.
32588         * modules/stat-tests (Files): Likewise.
32589         * modules/stat-time-tests (Files): Likewise.
32590         * modules/strcasestr-tests (Files): Likewise.
32591         * modules/strchrnul-tests (Files): Likewise.
32592         * modules/strerror-tests (Files): Likewise.
32593         * modules/striconv-tests (Files): Likewise.
32594         * modules/striconveh-tests (Files): Likewise.
32595         * modules/striconveha-tests (Files): Likewise.
32596         * modules/strsignal-tests (Files): Likewise.
32597         * modules/strstr-tests (Files): Likewise.
32598         * modules/strtod-tests (Files): Likewise.
32599         * modules/strverscmp-tests (Files): Likewise.
32600         * modules/symlink-tests (Files): Likewise.
32601         * modules/symlinkat-tests (Files): Likewise.
32602         * modules/trunc-tests (Files): Likewise.
32603         * modules/truncf-tests (Files): Likewise.
32604         * modules/truncl-tests (Files): Likewise.
32605         * modules/uname-tests (Files): Likewise.
32606         * modules/unicase/cased-tests (Files): Likewise.
32607         * modules/unicase/ignorable-tests (Files): Likewise.
32608         * modules/unicase/locale-language-tests (Files): Likewise.
32609         * modules/unicase/tolower-tests (Files): Likewise.
32610         * modules/unicase/totitle-tests (Files): Likewise.
32611         * modules/unicase/toupper-tests (Files): Likewise.
32612         * modules/unicase/u8-casecmp-tests (Files): Likewise.
32613         * modules/unicase/u8-casecoll-tests (Files): Likewise.
32614         * modules/unicase/u8-casefold-tests (Files): Likewise.
32615         * modules/unicase/u8-is-cased-tests (Files): Likewise.
32616         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
32617         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
32618         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
32619         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
32620         * modules/unicase/u8-tolower-tests (Files): Likewise.
32621         * modules/unicase/u8-totitle-tests (Files): Likewise.
32622         * modules/unicase/u8-toupper-tests (Files): Likewise.
32623         * modules/unicase/u16-casecmp-tests (Files): Likewise.
32624         * modules/unicase/u16-casecoll-tests (Files): Likewise.
32625         * modules/unicase/u16-casefold-tests (Files): Likewise.
32626         * modules/unicase/u16-is-cased-tests (Files): Likewise.
32627         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
32628         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
32629         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
32630         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
32631         * modules/unicase/u16-tolower-tests (Files): Likewise.
32632         * modules/unicase/u16-totitle-tests (Files): Likewise.
32633         * modules/unicase/u16-toupper-tests (Files): Likewise.
32634         * modules/unicase/u32-casecmp-tests (Files): Likewise.
32635         * modules/unicase/u32-casecoll-tests (Files): Likewise.
32636         * modules/unicase/u32-casefold-tests (Files): Likewise.
32637         * modules/unicase/u32-is-cased-tests (Files): Likewise.
32638         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
32639         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
32640         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
32641         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
32642         * modules/unicase/u32-tolower-tests (Files): Likewise.
32643         * modules/unicase/u32-totitle-tests (Files): Likewise.
32644         * modules/unicase/u32-toupper-tests (Files): Likewise.
32645         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
32646         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
32647         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
32648         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
32649         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
32650         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
32651         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
32652         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
32653         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
32654         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
32655         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
32656         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
32657         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
32658         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
32659         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
32660         * modules/unictype/bidicategory-name-tests (Files): Likewise.
32661         * modules/unictype/bidicategory-of-tests (Files): Likewise.
32662         * modules/unictype/bidicategory-test-tests (Files): Likewise.
32663         * modules/unictype/block-list-tests (Files): Likewise.
32664         * modules/unictype/block-of-tests (Files): Likewise.
32665         * modules/unictype/block-test-tests (Files): Likewise.
32666         * modules/unictype/category-C-tests (Files): Likewise.
32667         * modules/unictype/category-Cc-tests (Files): Likewise.
32668         * modules/unictype/category-Cf-tests (Files): Likewise.
32669         * modules/unictype/category-Cn-tests (Files): Likewise.
32670         * modules/unictype/category-Co-tests (Files): Likewise.
32671         * modules/unictype/category-Cs-tests (Files): Likewise.
32672         * modules/unictype/category-L-tests (Files): Likewise.
32673         * modules/unictype/category-Ll-tests (Files): Likewise.
32674         * modules/unictype/category-Lm-tests (Files): Likewise.
32675         * modules/unictype/category-Lo-tests (Files): Likewise.
32676         * modules/unictype/category-Lt-tests (Files): Likewise.
32677         * modules/unictype/category-Lu-tests (Files): Likewise.
32678         * modules/unictype/category-M-tests (Files): Likewise.
32679         * modules/unictype/category-Mc-tests (Files): Likewise.
32680         * modules/unictype/category-Me-tests (Files): Likewise.
32681         * modules/unictype/category-Mn-tests (Files): Likewise.
32682         * modules/unictype/category-N-tests (Files): Likewise.
32683         * modules/unictype/category-Nd-tests (Files): Likewise.
32684         * modules/unictype/category-Nl-tests (Files): Likewise.
32685         * modules/unictype/category-No-tests (Files): Likewise.
32686         * modules/unictype/category-P-tests (Files): Likewise.
32687         * modules/unictype/category-Pc-tests (Files): Likewise.
32688         * modules/unictype/category-Pd-tests (Files): Likewise.
32689         * modules/unictype/category-Pe-tests (Files): Likewise.
32690         * modules/unictype/category-Pf-tests (Files): Likewise.
32691         * modules/unictype/category-Pi-tests (Files): Likewise.
32692         * modules/unictype/category-Po-tests (Files): Likewise.
32693         * modules/unictype/category-Ps-tests (Files): Likewise.
32694         * modules/unictype/category-S-tests (Files): Likewise.
32695         * modules/unictype/category-Sc-tests (Files): Likewise.
32696         * modules/unictype/category-Sk-tests (Files): Likewise.
32697         * modules/unictype/category-Sm-tests (Files): Likewise.
32698         * modules/unictype/category-So-tests (Files): Likewise.
32699         * modules/unictype/category-Z-tests (Files): Likewise.
32700         * modules/unictype/category-Zl-tests (Files): Likewise.
32701         * modules/unictype/category-Zp-tests (Files): Likewise.
32702         * modules/unictype/category-Zs-tests (Files): Likewise.
32703         * modules/unictype/category-and-not-tests (Files): Likewise.
32704         * modules/unictype/category-and-tests (Files): Likewise.
32705         * modules/unictype/category-byname-tests (Files): Likewise.
32706         * modules/unictype/category-name-tests (Files): Likewise.
32707         * modules/unictype/category-none-tests (Files): Likewise.
32708         * modules/unictype/category-of-tests (Files): Likewise.
32709         * modules/unictype/category-or-tests (Files): Likewise.
32710         * modules/unictype/category-test-withtable-tests (Files): Likewise.
32711         * modules/unictype/combining-class-tests (Files): Likewise.
32712         * modules/unictype/ctype-alnum-tests (Files): Likewise.
32713         * modules/unictype/ctype-alpha-tests (Files): Likewise.
32714         * modules/unictype/ctype-blank-tests (Files): Likewise.
32715         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
32716         * modules/unictype/ctype-digit-tests (Files): Likewise.
32717         * modules/unictype/ctype-graph-tests (Files): Likewise.
32718         * modules/unictype/ctype-lower-tests (Files): Likewise.
32719         * modules/unictype/ctype-print-tests (Files): Likewise.
32720         * modules/unictype/ctype-punct-tests (Files): Likewise.
32721         * modules/unictype/ctype-space-tests (Files): Likewise.
32722         * modules/unictype/ctype-upper-tests (Files): Likewise.
32723         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
32724         * modules/unictype/decimal-digit-tests (Files): Likewise.
32725         * modules/unictype/digit-tests (Files): Likewise.
32726         * modules/unictype/mirror-tests (Files): Likewise.
32727         * modules/unictype/numeric-tests (Files): Likewise.
32728         * modules/unictype/property-alphabetic-tests (Files): Likewise.
32729         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
32730         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
32731         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
32732         Likewise.
32733         * modules/unictype/property-bidi-block-separator-tests (Files):
32734         Likewise.
32735         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
32736         Likewise.
32737         * modules/unictype/property-bidi-common-separator-tests (Files):
32738         Likewise.
32739         * modules/unictype/property-bidi-control-tests (Files): Likewise.
32740         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
32741         Likewise.
32742         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
32743         Likewise.
32744         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
32745         Likewise.
32746         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
32747         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
32748         Likewise.
32749         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
32750         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
32751         Likewise.
32752         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
32753         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
32754         * modules/unictype/property-bidi-segment-separator-tests (Files):
32755         Likewise.
32756         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
32757         * modules/unictype/property-byname-tests (Files): Likewise.
32758         * modules/unictype/property-combining-tests (Files): Likewise.
32759         * modules/unictype/property-composite-tests (Files): Likewise.
32760         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
32761         * modules/unictype/property-dash-tests (Files): Likewise.
32762         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
32763         * modules/unictype/property-default-ignorable-code-point-tests (Files):
32764         Likewise.
32765         * modules/unictype/property-deprecated-tests (Files): Likewise.
32766         * modules/unictype/property-diacritic-tests (Files): Likewise.
32767         * modules/unictype/property-extender-tests (Files): Likewise.
32768         * modules/unictype/property-format-control-tests (Files): Likewise.
32769         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
32770         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
32771         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
32772         * modules/unictype/property-hex-digit-tests (Files): Likewise.
32773         * modules/unictype/property-hyphen-tests (Files): Likewise.
32774         * modules/unictype/property-id-continue-tests (Files): Likewise.
32775         * modules/unictype/property-id-start-tests (Files): Likewise.
32776         * modules/unictype/property-ideographic-tests (Files): Likewise.
32777         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
32778         * modules/unictype/property-ids-trinary-operator-tests (Files):
32779         Likewise.
32780         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
32781         * modules/unictype/property-iso-control-tests (Files): Likewise.
32782         * modules/unictype/property-join-control-tests (Files): Likewise.
32783         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
32784         * modules/unictype/property-line-separator-tests (Files): Likewise.
32785         * modules/unictype/property-logical-order-exception-tests (Files):
32786         Likewise.
32787         * modules/unictype/property-lowercase-tests (Files): Likewise.
32788         * modules/unictype/property-math-tests (Files): Likewise.
32789         * modules/unictype/property-non-break-tests (Files): Likewise.
32790         * modules/unictype/property-not-a-character-tests (Files): Likewise.
32791         * modules/unictype/property-numeric-tests (Files): Likewise.
32792         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
32793         * modules/unictype/property-other-default-ignorable-code-point-tests
32794         (Files): Likewise.
32795         * modules/unictype/property-other-grapheme-extend-tests (Files):
32796         Likewise.
32797         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
32798         * modules/unictype/property-other-id-start-tests (Files): Likewise.
32799         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
32800         * modules/unictype/property-other-math-tests (Files): Likewise.
32801         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
32802         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
32803         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
32804         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
32805         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
32806         * modules/unictype/property-private-use-tests (Files): Likewise.
32807         * modules/unictype/property-punctuation-tests (Files): Likewise.
32808         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
32809         * modules/unictype/property-radical-tests (Files): Likewise.
32810         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
32811         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
32812         * modules/unictype/property-space-tests (Files): Likewise.
32813         * modules/unictype/property-terminal-punctuation-tests (Files):
32814         Likewise.
32815         * modules/unictype/property-test-tests (Files): Likewise.
32816         * modules/unictype/property-titlecase-tests (Files): Likewise.
32817         * modules/unictype/property-unassigned-code-value-tests (Files):
32818         Likewise.
32819         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
32820         * modules/unictype/property-uppercase-tests (Files): Likewise.
32821         * modules/unictype/property-variation-selector-tests (Files): Likewise.
32822         * modules/unictype/property-white-space-tests (Files): Likewise.
32823         * modules/unictype/property-xid-continue-tests (Files): Likewise.
32824         * modules/unictype/property-xid-start-tests (Files): Likewise.
32825         * modules/unictype/property-zero-width-tests (Files): Likewise.
32826         * modules/unictype/scripts-tests (Files): Likewise.
32827         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
32828         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
32829         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
32830         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
32831         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
32832         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
32833         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
32834         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
32835         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
32836         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
32837         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
32838         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
32839         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
32840         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
32841         * modules/uninorm/composition-tests (Files): Likewise.
32842         * modules/uninorm/decomposing-form-tests (Files): Likewise.
32843         * modules/uninorm/decomposition-tests (Files): Likewise.
32844         * modules/uninorm/filter-tests (Files): Likewise.
32845         * modules/uninorm/nfc-tests (Files): Likewise.
32846         * modules/uninorm/nfd-tests (Files): Likewise.
32847         * modules/uninorm/nfkc-tests (Files): Likewise.
32848         * modules/uninorm/nfkd-tests (Files): Likewise.
32849         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
32850         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
32851         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
32852         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
32853         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
32854         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
32855         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
32856         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
32857         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
32858         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
32859         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
32860         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
32861         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
32862         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
32863         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
32864         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
32865         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
32866         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
32867         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
32868         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
32869         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
32870         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
32871         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
32872         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
32873         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
32874         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
32875         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
32876         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
32877         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
32878         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
32879         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
32880         * modules/uniwidth/u8-width-tests (Files): Likewise.
32881         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
32882         * modules/uniwidth/u16-width-tests (Files): Likewise.
32883         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
32884         * modules/uniwidth/u32-width-tests (Files): Likewise.
32885         * modules/uniwidth/width-tests (Files): Likewise.
32886         * modules/unlink-tests (Files): Likewise.
32887         * modules/unsetenv-tests (Files): Likewise.
32888         * modules/usleep-tests (Files): Likewise.
32889         * modules/utimens-tests (Files): Likewise.
32890         * modules/utimensat-tests (Files): Likewise.
32891         * modules/vasnprintf-posix-tests (Files): Likewise.
32892         * modules/vasnprintf-tests (Files): Likewise.
32893         * modules/vasprintf-posix-tests (Files): Likewise.
32894         * modules/vasprintf-tests (Files): Likewise.
32895         * modules/vdprintf-posix-tests (Files): Likewise.
32896         * modules/vfprintf-posix-tests (Files): Likewise.
32897         * modules/vprintf-posix-tests (Files): Likewise.
32898         * modules/vsnprintf-posix-tests (Files): Likewise.
32899         * modules/vsnprintf-tests (Files): Likewise.
32900         * modules/vsprintf-posix-tests (Files): Likewise.
32901         * modules/wcrtomb-tests (Files): Likewise.
32902         * modules/wcsnrtombs-tests (Files): Likewise.
32903         * modules/wcsrtombs-tests (Files): Likewise.
32904         * modules/wctype-tests (Files): Likewise.
32905         * modules/wcwidth-tests (Files): Likewise.
32906         * modules/xmemdup0-tests (Files): Likewise.
32907         * modules/xprintf-posix-tests (Files): Likewise.
32908         * modules/xvasprintf-tests (Files): Likewise.
32909
32910 2009-12-24  Eric Blake  <ebb9@byu.net>
32911
32912         test-nanosleep: fix typo
32913         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
32914         patch.
32915         Reported by Bruno Haible.
32916
32917 2009-12-24  Bruno Haible  <bruno@clisp.org>
32918
32919         Reduce namespace pollution on glibc systems.
32920         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
32921         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
32922         systems.
32923         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
32924         <getopt.h> on glibc systems.
32925         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
32926         systems.
32927         * lib/fcntl.c: Include <unistd.h> here instead.
32928
32929 2009-12-24  Bruno Haible  <bruno@clisp.org>
32930
32931         * lib/stdlib.in.h (includes): Fix typo in today's commit.
32932
32933 2009-12-24  Eric Blake  <ebb9@byu.net>
32934
32935         tests: add signature checks
32936         * tests/signature.h (SIGNATURE_CHECK): New file.
32937         * modules/atexit-tests (Files): Use it.
32938         * modules/btowc-tests (Files): Likewise.
32939         * modules/canonicalize-lgpl-tests (Files): Likewise.
32940         * modules/ceilf-tests (Files): Likewise.
32941         * modules/ceill-tests (Files): Likewise.
32942         * modules/chown-tests (Files): Likewise.
32943         * modules/dprintf-posix-tests (Files): Likewise.
32944         * modules/dup2-tests (Files): Likewise.
32945         * modules/dup3-tests (Files): Likewise.
32946         * modules/duplocale-tests (Files): Likewise.
32947         * modules/fchdir-tests (Files): Likewise.
32948         * modules/fcntl-tests (Files): Likewise.
32949         * modules/fdopendir-tests (Files): Likewise.
32950         * modules/fflush-tests (Files): Likewise.
32951         * modules/flock-tests (Files): Likewise.
32952         * modules/floorf-tests (Files): Likewise.
32953         * modules/floorl-tests (Files): Likewise.
32954         * modules/fnmatch-tests (Files): Likewise.
32955         * modules/fopen-tests (Files): Likewise.
32956         * modules/fprintf-posix-tests (Files): Likewise.
32957         * modules/freopen-tests (Files): Likewise.
32958         * modules/frexp-nolibm-tests (Files): Likewise.
32959         * modules/frexp-tests (Files): Likewise.
32960         * modules/frexpl-nolibm-tests (Files): Likewise.
32961         * modules/frexpl-tests (Files): Likewise.
32962         * modules/fseek-tests (Files): Likewise.
32963         * modules/fseeko-tests (Files): Likewise.
32964         * modules/fsync-tests (Files): Likewise.
32965         * modules/ftell-tests (Files): Likewise.
32966         * modules/ftello-tests (Files): Likewise.
32967         * modules/futimens-tests (Files): Likewise.
32968         * modules/getaddrinfo-tests (Files): Likewise.
32969         * modules/getcwd-tests (Files): Likewise.
32970         * modules/getdelim-tests (Files): Likewise.
32971         * modules/getdtablesize-tests (Files): Likewise.
32972         * modules/getgroups-tests (Files): Likewise.
32973         * modules/gethostname-tests (Files): Likewise.
32974         * modules/getline-tests (Files): Likewise.
32975         * modules/getopt-posix-tests (Files): Likewise.
32976         * modules/gettimeofday-tests (Files): Likewise.
32977         * modules/glob-tests (Files): Likewise.
32978         * modules/iconv-tests (Files): Likewise.
32979         * modules/inet_ntop-tests (Files): Likewise.
32980         * modules/inet_pton-tests (Files): Likewise.
32981         * modules/isblank-tests (Files): Likewise.
32982         * modules/lchown-tests (Files): Likewise.
32983         * modules/ldexpl-tests (Files): Likewise.
32984         * modules/link-tests (Files): Likewise.
32985         * modules/linkat-tests (Files): Likewise.
32986         * modules/lseek-tests (Files): Likewise.
32987         * modules/lstat-tests (Files): Likewise.
32988         * modules/mbrtowc-tests (Files): Likewise.
32989         * modules/mbsinit-tests (Files): Likewise.
32990         * modules/mbsnrtowcs-tests (Files): Likewise.
32991         * modules/mbsrtowcs-tests (Files): Likewise.
32992         * modules/memchr-tests (Files): Likewise.
32993         * modules/memcmp-tests (Files): Likewise.
32994         * modules/memmem-tests (Files): Likewise.
32995         * modules/memrchr-tests (Files): Likewise.
32996         * modules/mkdir-tests (Files): Likewise.
32997         * modules/mkfifo-tests (Files): Likewise.
32998         * modules/mkfifoat-tests (Files): Likewise.
32999         * modules/mknod-tests (Files): Likewise.
33000         * modules/nanosleep-tests (Files): Likewise.
33001         * modules/nl_langinfo-tests (Files): Likewise.
33002         * modules/obstack-printf-tests (Files): Likewise.
33003         * modules/open-tests (Files): Likewise.
33004         * modules/openat-tests (Files): Likewise.
33005         * modules/perror-tests (Files): Likewise.
33006         * modules/pipe2-tests (Files): Likewise.
33007         * modules/poll-tests (Files): Likewise.
33008         * modules/popen-tests (Files): Likewise.
33009         * modules/posix_spawn-tests (Files): Likewise.
33010         * modules/posix_spawnp-tests (Files): Likewise.
33011         * modules/pread-tests (Files): Likewise.
33012         * modules/printf-posix-tests (Files): Likewise.
33013         * modules/pty-tests (Files): Likewise.
33014         * modules/random_r-tests (Files): Likewise.
33015         * modules/rawmemchr-tests (Files): Likewise.
33016         * modules/readlink-tests (Files): Likewise.
33017         * modules/remove-tests (Files): Likewise.
33018         * modules/rename-tests (Files): Likewise.
33019         * modules/renameat-tests (Files): Likewise.
33020         * modules/rmdir-tests (Files): Likewise.
33021         * modules/round-tests (Files): Likewise.
33022         * modules/roundf-tests (Files): Likewise.
33023         * modules/roundl-tests (Files): Likewise.
33024         * modules/select-tests (Files): Likewise.
33025         * modules/setenv-tests (Files): Likewise.
33026         * modules/sigaction-tests (Files): Likewise.
33027         * modules/sleep-tests (Files): Likewise.
33028         * modules/snprintf-posix-tests (Files): Likewise.
33029         * modules/snprintf-tests (Files): Likewise.
33030         * modules/sprintf-posix-tests (Files): Likewise.
33031         * modules/stat-tests (Files): Likewise.
33032         * modules/strcasestr-tests (Files): Likewise.
33033         * modules/strchrnul-tests (Files): Likewise.
33034         * modules/strerror-tests (Files): Likewise.
33035         * modules/strsignal-tests (Files): Likewise.
33036         * modules/strstr-tests (Files): Likewise.
33037         * modules/strtod-tests (Files): Likewise.
33038         * modules/strverscmp-tests (Files): Likewise.
33039         * modules/symlink-tests (Files): Likewise.
33040         * modules/symlinkat-tests (Files): Likewise.
33041         * modules/times-tests (Files): Likewise.
33042         * modules/trunc-tests (Files): Likewise.
33043         * modules/truncf-tests (Files): Likewise.
33044         * modules/truncl-tests (Files): Likewise.
33045         * modules/tsearch-tests (Files): Likewise.
33046         * modules/uname-tests (Files): Likewise.
33047         * modules/unlink-tests (Files): Likewise.
33048         * modules/unsetenv-tests (Files): Likewise.
33049         * modules/usleep-tests (Files): Likewise.
33050         * modules/utimensat-tests (Files): Likewise.
33051         * modules/vasprintf-tests (Files): Likewise.
33052         * modules/vdprintf-posix-tests (Files): Likewise.
33053         * modules/vfprintf-posix-tests (Files): Likewise.
33054         * modules/vprintf-posix-tests (Files): Likewise.
33055         * modules/vsnprintf-posix-tests (Files): Likewise.
33056         * modules/vsnprintf-tests (Files): Likewise.
33057         * modules/vsprintf-posix-tests (Files): Likewise.
33058         * modules/wcrtomb-tests (Files): Likewise.
33059         * modules/wcsnrtombs-tests (Files): Likewise.
33060         * modules/wcsrtombs-tests (Files): Likewise.
33061         * modules/wcwidth-tests (Files): Likewise.
33062         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
33063         * tests/test-isinf.c (isinf): Likewise.
33064         * tests/test-isnan.c (isnan): Likewise.
33065         * tests/test-signbit.c (signbit): Likewise.
33066         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
33067         declaration, either as macro or with correct signature.
33068         (select): Ensure function under test is declared with correct
33069         signature in correct header.
33070         * tests/test-atexit.c (atexit): Likewise.
33071         * tests/test-btowc.c (btowc): Likewise.
33072         * tests/test-canonicalize-lgpl.c (realpath)
33073         (canonicalize_file_name): Likewise.
33074         * tests/test-ceilf1.c (ceilf): Likewise.
33075         * tests/test-ceill.c (ceill): Likewise.
33076         * tests/test-chown.c (chown): Likewise.
33077         * tests/test-dprintf-posix.c (dprintf): Likewise.
33078         * tests/test-dup2.c (dup2): Likewise.
33079         * tests/test-dup3.c (dup3): Likewise.
33080         * tests/test-duplocale.c (duplocale): Likewise.
33081         * tests/test-fchdir.c (fchdir): Likewise.
33082         * tests/test-fchownat.c (fchownat): Likewise.
33083         * tests/test-fcntl.c (fcntl): Likewise.
33084         * tests/test-fdopendir.c (fdopendir): Likewise.
33085         * tests/test-fflush.c (fflush): Likewise.
33086         * tests/test-flock.c (flock): Likewise.
33087         * tests/test-floorf1.c (floorf): Likewise.
33088         * tests/test-floorl.c (floorl): Likewise.
33089         * tests/test-fnmatch.c (fnmatch): Likewise.
33090         * tests/test-fopen.c (fopen): Likewise.
33091         * tests/test-fprintf-posix.c (fprintf): Likewise.
33092         * tests/test-freopen.c (freopen): Likewise.
33093         * tests/test-frexp.c (frexp): Likewise.
33094         * tests/test-frexpl.c (frexpl): Likewise.
33095         * tests/test-fseek.c (fseek): Likewise.
33096         * tests/test-fseeko.c (fseeko): Likewise.
33097         * tests/test-fstatat.c (fstatat): Likewise.
33098         * tests/test-fsync.c (fsync): Likewise.
33099         * tests/test-ftell.c (ftell): Likewise.
33100         * tests/test-ftello.c (ftello): Likewise.
33101         * tests/test-futimens.c (futimens): Likewise.
33102         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
33103         (gai_strerror): Likewise.
33104         * tests/test-getcwd.c (getcwd): Likewise.
33105         * tests/test-getdelim.c (getdelim): Likewise.
33106         * tests/test-getdtablesize.c (getdtablesize): Likewise.
33107         * tests/test-getgroups.c (getgroups): Likewise.
33108         * tests/test-gethostname.c (gethostname): Likewise.
33109         * tests/test-getline.c (getline): Likewise.
33110         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
33111         Likewise.
33112         * tests/test-gettimeofday.c (gettimeofday): Likewise.
33113         * tests/test-glob.c (glob, globfree): Likewise.
33114         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
33115         * tests/test-inet_ntop.c (inet_ntop): Likewise.
33116         * tests/test-inet_pton.c (inet_pton): Likewise.
33117         * tests/test-isblank.c (isblank): Likewise.
33118         * tests/test-lchown.c (lchown): Likewise.
33119         * tests/test-ldexpl.c (ldexpl): Likewise.
33120         * tests/test-link.c (link): Likewise.
33121         * tests/test-linkat.c (linkat): Likewise.
33122         * tests/test-lseek.c (lseek): Likewise.
33123         * tests/test-lstat.c (lstat): Likewise.
33124         * tests/test-mbrtowc.c (mbrtowc): Likewise.
33125         * tests/test-mbsinit.c (mbsinit): Likewise.
33126         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
33127         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
33128         * tests/test-memchr.c (memchr): Likewise.
33129         * tests/test-memcmp.c (memcmp): Likewise.
33130         * tests/test-memmem.c (memmem): Likewise.
33131         * tests/test-memrchr.c (memrchr): Likewise.
33132         * tests/test-mkdir.c (mkdir): Likewise.
33133         * tests/test-mkdirat.c (mkdirat): Likewise.
33134         * tests/test-mkfifo.c (mkfifo): Likewise.
33135         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
33136         * tests/test-mknod.c (mknod): Likewise.
33137         * tests/test-nanosleep.c (nanosleep): Likewise.
33138         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
33139         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
33140         Likewise.
33141         * tests/test-open.c (open): Likewise.
33142         * tests/test-openat.c (openat): Likewise.
33143         * tests/test-perror.c (perror): Likewise.
33144         * tests/test-pipe2.c (pipe2): Likewise.
33145         * tests/test-poll.c (poll): Likewise.
33146         * tests/test-popen.c (popen, pclose): Likewise.
33147         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
33148         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
33149         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
33150         (posix_spawn_file_actions_destroy)
33151         (posix_spawn_file_actions_addclose)
33152         (posix_spawn_file_actions_addopen)
33153         (posix_spawn_file_actions_adddup2): Likewise.
33154         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
33155         * tests/test-pread.c (pread): Likewise.
33156         * tests/test-printf-posix.c (printf): Likewise.
33157         * tests/test-pty.c (openpty, forkpty): Likewise.
33158         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
33159         (random_r): Likewise.
33160         * tests/test-rawmemchr.c (rawmemchr): Likewise.
33161         * tests/test-readlink.c (readlink): Likewise.
33162         * tests/test-remove.c (remove): Likewise.
33163         * tests/test-rename.c (rename): Likewise.
33164         * tests/test-renameat.c (renameat): Likewise.
33165         * tests/test-rmdir.c (rmdir): Likewise.
33166         * tests/test-round1.c (round): Likewise.
33167         * tests/test-roundf1.c (roundf): Likewise.
33168         * tests/test-roundl.c (roundl): Likewise.
33169         * tests/test-setenv.c (setenv): Likewise.
33170         * tests/test-sigaction.c (sigaction): Likewise.
33171         * tests/test-sleep.c (sleep): Likewise.
33172         * tests/test-snprintf.c (snprintf): Likewise.
33173         * tests/test-sprintf-posix.c (sprintf): Likewise.
33174         * tests/test-stat.c (stat): Likewise.
33175         * tests/test-stpncpy.c (stpncpy): Likewise.
33176         * tests/test-strcasestr.c (strcasestr): Likewise.
33177         * tests/test-strchrnul.c (strchrnul): Likewise.
33178         * tests/test-strerror.c (strerror): Likewise.
33179         * tests/test-strsignal.c (strsignal): Likewise.
33180         * tests/test-strstr.c (strstr): Likewise.
33181         * tests/test-strtod.c (strtod): Likewise.
33182         * tests/test-strverscmp.c (strverscmp): Likewise.
33183         * tests/test-symlink.c (symlink): Likewise.
33184         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
33185         * tests/test-times.c (times): Likewise.
33186         * tests/test-trunc1.c (trunc): Likewise.
33187         * tests/test-truncf1.c (truncf): Likewise.
33188         * tests/test-truncl.c (truncl): Likewise.
33189         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
33190         Likewise.
33191         * tests/test-uname.c (uname): Likewise.
33192         * tests/test-unlink.c (unlink): Likewise.
33193         * tests/test-unlinkat.c (unlinkat): Likewise.
33194         * tests/test-unsetenv.c (unsetenv): Likewise.
33195         * tests/test-usleep.c (usleep): Likewise.
33196         * tests/test-utimensat.c (utimensat): Likewise.
33197         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
33198         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
33199         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
33200         * tests/test-vprintf-posix.c (vprintf): Likewise.
33201         * tests/test-vsnprintf.c (vsnprintf): Likewise.
33202         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
33203         * tests/test-wcrtomb.c (wcrtomb): Likewise.
33204         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
33205         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
33206         * tests/test-wcwidth.c (wcwidth): Likewise.
33207
33208         build: pull in conditional headers during GNULIB_POSIXCHECK
33209         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
33210         definitions from any conditionally-included headers.
33211         * lib/stdlib.in.h (includes): Likewise.
33212         * lib/unistd.in.h (includes): Likewise.
33213
33214 2009-12-24  Bruno Haible  <bruno@clisp.org>
33215
33216         * tests/test-argv-iter.c: Include header file being tested immediately
33217         after config.h.
33218         * tests/test-base64.c: Likewise.
33219         * tests/test-flock.c: Likewise.
33220         * tests/test-fsync.c: Likewise.
33221         * tests/test-getdate.c: Likewise.
33222         * tests/test-getndelim2.c: Likewise.
33223         * tests/test-isfinite.c: Likewise.
33224         * tests/test-isinf.c: Likewise.
33225         * tests/test-strerror.c: Likewise.
33226         * tests/test-strsignal.c: Likewise.
33227
33228 2009-12-23  Eric Blake  <ebb9@byu.net>
33229
33230         unistd: work around cygwin bug
33231         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
33232         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
33233         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
33234
33235 2009-12-23  Bruno Haible  <bruno@clisp.org>
33236
33237         localename: More tests.
33238         * tests/test-localename.c (SIZEOF): New macro.
33239         (categories): New variable.
33240         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
33241         test_locale_name_default): Add test w.r.t. thread locale.
33242         (test_locale_name_thread): New function.
33243         (main): Invoke it.
33244
33245         localename: Make aware of thread locale.
33246         * lib/localename.h (gl_locale_name_thread): New declaration.
33247         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
33248         behaviour with respect to thread locale.
33249         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
33250         <langinfo.h>, glthread/lock.h.
33251         (SIZE_BITS): New macro.
33252         (string_hash): New function.
33253         (struct hash_node): New type.
33254         (HASH_TABLE_SIZE): New macro.
33255         (struniq_hash_table, struniq_lock): New variables.
33256         (struniq): New function.
33257         (gl_locale_name_thread): New function.
33258         (gl_locale_name): Invoke it.
33259         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
33260         * modules/localename (Depends-on): Add lock.
33261         Reported by Mike Gran <spk121@yahoo.com>.
33262
33263 2009-12-23  Eric Blake  <ebb9@byu.net>
33264
33265         va-args: new module
33266         * modules/va-args: New file.
33267         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
33268         * MODULES.html.sh (Core language properties): Mention it.
33269
33270         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
33271         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
33272         named alias for __attribute__((__unused__)).
33273         * lib/chown.c: Update client.
33274         * lib/fchmodat.c: Likewise.
33275         * lib/fts.c: Likewise.
33276         * lib/getdate.y: Likewise.
33277         * lib/getgroups.c: Likewise.
33278         * lib/getopt.c: Likewise.
33279         * lib/getugroups.c: Likewise.
33280         * lib/mkdir.c: Likewise.
33281         * lib/mkfifo.c: Likewise.
33282         * lib/mkfifoat.c: Likewise.
33283         * lib/mknod.c: Likewise.
33284         * lib/mknodat.c: Likewise.
33285         * lib/readlink.c: Likewise.
33286         * lib/se-context.in.h: Likewise.
33287         * lib/se-selinux.in.h: Likewise.
33288         * lib/sockets.c: Likewise.
33289         * lib/symlink.c: Likewise.
33290         * lib/symlinkat.c: Likewise.
33291         * lib/unicodeio.c: Likewise.
33292         * lib/unistr.h: Likewise.
33293         * tests/test-areadlink.c: Likewise.
33294         * tests/test-areadlinkat.c: Likewise.
33295         * tests/test-filenamecat.c: Likewise.
33296         * tests/test-fseeko.c: Likewise.
33297         * tests/test-ftello.c: Likewise.
33298         * tests/test-getdate.c: Likewise.
33299         * tests/test-getgroups.c: Likewise.
33300         * tests/test-gethostname.c: Likewise.
33301         * tests/test-quotearg.c: Likewise.
33302         * tests/test-version-etc.c: Likewise.
33303         * tests/test-xalloc-die.c: Likewise.
33304         * tests/test-xfprintf-posix.c: Likewise.
33305         * tests/test-xprintf-posix.c: Likewise.
33306         * tests/test-xvasprintf.c: Likewise.
33307
33308         tests: avoid compiler warnings
33309         * tests/test-fcntl.c (main): Delete unused parameters.
33310         * tests/test-freopen-safer.c (main): Likewise.
33311         * tests/test-xalloc-die.c (main): Mark unused parameters.
33312         * tests/test-fseeko.c (main): Likewise.
33313         * tests/test-ftello.c (main): Likewise.
33314         * tests/test-nanosleep.c (main): Avoid declaration warning.
33315         * tests/test-sleep.c (main): Likewise.
33316         * tests/test-unsetenv.c (main): Silence warning about string
33317         literal.
33318         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
33319
33320 2009-12-23  Bruno Haible  <bruno@clisp.org>
33321
33322         * tests/test-localename.c (test_locale_name): New function, extracted
33323         from main. Also test mixed situations.
33324         (test_locale_name_posix, test_locale_name_environ,
33325         test_locale_name_default): New functions.
33326         (main): Invoke them all.
33327         * modules/localename-tests (configure.ac): Test for newlocale.
33328
33329 2009-12-23  Bruno Haible  <bruno@clisp.org>
33330
33331         unistd: Ensure getcwd gets declared before being overridden.
33332         * lib/unistd.in.h: Conditionally include <io.h>.
33333
33334 2009-12-22  Bruno Haible  <bruno@clisp.org>
33335
33336         wchar: Diagnose broken combination of glibc and gcc versions and flags.
33337         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
33338         (gl_WCHAR_H): Invoke it.
33339         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
33340         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
33341         Reported by Karl Berry <karl@freefriends.org>.
33342
33343 2009-12-22  Eric Blake  <ebb9@byu.net>
33344
33345         math, unistd: avoid redundant includes
33346         * lib/math.in.h (isnan): No need to re-include <math.h>.
33347         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
33348
33349         getsubopt: work around cygwin bug
33350         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
33351         avoid conflicting with system getsubopt.
33352         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
33353         bug.
33354
33355         getopt: synchronize from glibc
33356         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
33357         parameter order.  Adjust all callers.
33358         (_getopt_internal_r, main): Adjust quoting in error messages.
33359         Drop considerations for outdated POSIX 1003.2 error message.
33360         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
33361         callers.
33362         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
33363
33364         test-getopt: test stderr behavior
33365         * modules/getopt-posix-tests (Depends-on): Add dup2.
33366         * tests/test-getopt.c (ASSERT): Avoid stderr.
33367         (main): Move stderr to a temporary file.
33368         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
33369         Instead, add parameter to inform caller if output occurred.
33370         (test_getopt): Adjust all existing tests to expect silence, and
33371         add new tests of leading ":".
33372         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
33373         glibc shortcomings with leading "-:" or "+:" in optstring.
33374         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33375         Likewise.
33376         * doc/posix-functions/getopt.texi (getopt): Likewise.
33377
33378         test-getopt: enhance test
33379         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
33380         supports optind=0.
33381         * tests/test-getopt.c (OPTIND_MIN): Move...
33382         * tests/test-getopt.h (OPTIND_MIN): ...here.
33383         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
33384         Require that optind=0 works, since modern BSD supports it in
33385         addition to optreset, and since coreutils expects it.
33386         (test_getopt_long_only): New test.
33387         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
33388         glibc shortcomings with 'W;', and enforcement of optind=0.
33389         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
33390         Likewise.
33391
33392 2009-12-21  Bruno Haible  <bruno@clisp.org>
33393
33394         localename: Improvements for MacOS X and Cygwin.
33395         * lib/localename.h (gl_locale_name_environ): New declaration.
33396         * lib/localename.c (gl_locale_name_environ): New function, extracted from
33397         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
33398         (gl_locale_name_posix): Invoke it.
33399         (gl_locale_name_default): Add comments. Use Windows native API also on
33400         Cygwin.
33401
33402 2009-12-21  Bruno Haible  <bruno@clisp.org>
33403
33404         Update list of Win32 locale ids.
33405         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
33406         (LANG_SAMI): Renamed from LANG_SAAMI.
33407         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
33408         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
33409         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
33410         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
33411         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
33412         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
33413         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
33414         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
33415         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
33416         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
33417         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
33418         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
33419         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
33420         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
33421         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
33422         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
33423         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
33424         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
33425         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
33426         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
33427         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
33428         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
33429         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
33430         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
33431         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
33432         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
33433         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
33434         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
33435         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
33436         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
33437         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
33438         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
33439         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
33440         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
33441         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
33442         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
33443         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
33444         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
33445         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
33446         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
33447         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
33448         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
33449         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
33450         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
33451         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
33452         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
33453         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
33454         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
33455         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
33456         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
33457         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
33458         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
33459         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
33460         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
33461         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
33462         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
33463         Add more languages and countries for Sami, Sorbian. Add more countries
33464         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
33465         for Pashto. Change country for Syriac, Tswana.
33466
33467 2009-12-21  Eric Blake  <ebb9@byu.net>
33468
33469         test-utimens: avoid spurious failure
33470         * tests/test-chown.h (nap): Factor...
33471         * tests/nap.h: ...into new file.
33472         * tests/test-lchown.h (nap): Avoid duplication.
33473         * tests/test-utimens-common.h (nap): Use shared implementation,
33474         necessary on file systems with 1-second resolution.
33475         * modules/chown-tests (Files): Include new file.
33476         * modules/fdutimensat-tests (Files): Likewise.
33477         * modules/futimens-tests (Files): Likewise.
33478         * modules/lchown-tests (Files): Likewise.
33479         * modules/openat-tests (Files): Likewise.
33480         * modules/utimens-tests (Files): Likewise.
33481         * modules/utimensat-tests (Files): Likewise.
33482
33483 2009-12-19  Eric Blake  <ebb9@byu.net>
33484
33485         futimens, utimensat: work around Linux bug
33486         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
33487         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
33488         * lib/utimensat.c (rpl_utimensat): Work around it.
33489         * lib/futimens.c (rpl_futimens): Adjust comment.
33490
33491         utimens: work around Linux ctime bug
33492         * lib/utimens.c (detect_ctime_bug): New helper function.
33493         (update_timespec): Differentiate between workaround needed for
33494         this bug vs. what is needed for systems that lack utimensat.
33495         (fdutimens, lutimens): Work around bug.
33496
33497         utimens: check for ctime update
33498         * tests/test-utimens-common.h (check_ctime): Define.
33499         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
33500         * tests/test-futimens.h (test_futimens): Likewise.
33501         * tests/test-lutimens.h (test_lutimens): Likewise.
33502         * doc/posix-functions/futimens.texi (futimens): Document the bug.
33503         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
33504
33505 2009-12-19  Bruno Haible  <bruno@clisp.org>
33506
33507         dprintf-posix: Check against memory leak fixed on 2009-12-15.
33508         * tests/test-dprintf-posix2.sh: New file.
33509         * tests/test-dprintf-posix2.c: New file.
33510         * modules/dprintf-posix-tests (Files): Add them.
33511         (configure.ac): Check for getrlimit and setrlimit.
33512         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
33513
33514 2009-12-19  Bruno Haible  <bruno@clisp.org>
33515
33516         fprintf-posix: Check against memory leak fixed on 2009-12-15.
33517         * tests/test-fprintf-posix3.sh: New file.
33518         * tests/test-fprintf-posix3.c: New file.
33519         * modules/fprintf-posix-tests (Files): Add them.
33520         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
33521
33522 2009-12-19  Eric Blake  <ebb9@byu.net>
33523
33524         dirfd: fix prototype
33525         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
33526         * lib/dirfd.c (dirfd): Likewise.
33527
33528         canonicalize: reduce memory usage
33529         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
33530         allocation to size.
33531         Reported by Solar Designer <solar@openwall.com>.
33532
33533 2009-12-19  Bruno Haible  <bruno@clisp.org>
33534
33535         New module attribute 'Applicability'.
33536         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
33537         * gnulib-tool: New option --extract-applicability.
33538         (func_usage): Document it.
33539         (sed_extract_prog): Recognize it.
33540         (func_get_applicability): New function.
33541         (func_import): Generalize handling of 'link-warning' module.
33542         * modules/link-warning (Applicability): New section.
33543         * modules/arg-nonnull (Applicability): New section.
33544         Repoted by Simon Josefsson <simon@josefsson.org>.
33545
33546 2009-12-19  Bruno Haible  <bruno@clisp.org>
33547
33548         fflush: tweak
33549         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
33550         * lib/fseeko.c (rpl_fseeko): Likewise.
33551
33552 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
33553
33554         * lib/gl_list.h: Fix typo in comment.
33555
33556 2009-12-16  Eric Blake  <ebb9@byu.net>
33557
33558         fcntl: use to simplify other modules
33559         * modules/cloexec (Depends-on): Add fcntl.
33560         * modules/fchdir (Depends-on): Likewise.
33561         * modules/fd-safer-flag (Depends-on): Likewise.
33562         * modules/unistd-safer (Depends-on): Likewise.
33563         * modules/dup3 (configure.ac): Set module indicator.
33564         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
33565         missing.
33566         * lib/fchdir.c (_gl_register_dup): Fix comment.
33567         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
33568         * lib/dup-safer.c (dup_safer): Likewise.
33569         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
33570         * lib/dup3.c (dup3): Likewise.
33571         * tests/test-fchdir.c (main): Enhance test.
33572         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
33573
33574         fcntl: port portions of fcntl to mingw
33575         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
33576         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
33577         replacement for mingw.
33578         * modules/fcntl (Description): Update.
33579         (Depends-on): Add dup2.
33580         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
33581         * modules/fcntl-h (Makefile.am): Substitute it.
33582         * lib/fcntl.in.h (fcntl): Update declaration.
33583         (F_DUPFD, F_GETFD): New macros, when needed.
33584         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
33585         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
33586         * tests/test-fcntl.c (check_flags, main): Enhance test for items
33587         we now guarantee.
33588
33589         fcntl: work around cygwin bug in F_DUPFD
33590         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
33591         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
33592         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
33593         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
33594         * doc/posix-functions/fcntl.texi (fcntl): Document it.
33595
33596         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
33597         * modules/fcntl (Files): List new files.
33598         (configure.ac): Run a test.
33599         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
33600         * lib/fcntl.c (rpl_fcntl): Likewise.
33601         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
33602         (gl_FCNTL_H): Always replace fcntl.h.
33603         * modules/fcntl-h (Makefile.am): Substitute witnesses.
33604         * lib/fcntl.in.h (fcntl): Declare replacement.
33605         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
33606         needed, plus a witness.
33607         * doc/posix-functions/fcntl.texi (fcntl): Document this.
33608         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
33609         * tests/test-fcntl.c: New file.
33610         * modules/fcntl-tests: Likewise.
33611
33612         binary-io: avoid potential compilation warning
33613         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
33614         directives.
33615
33616         fflush: avoid compilation error on NetBSD
33617         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
33618         between off_t and fpos_t, since the latter is sometimes a struct.
33619         * lib/fseeko.c (rpl_fseeko): Likewise.
33620         Reported by Alexander Nasonov <alnsn@yandex.ru>.
33621
33622 2009-12-15  Eric Blake  <ebb9@byu.net>
33623
33624         fcntl-h, stdio, sys_ioctl: fix declarations
33625         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
33626         function must not take arguments.
33627         * lib/sys_ioctl.in.h (ioctl): Likewise.
33628         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
33629         (open): Add a link warning.
33630
33631 2009-12-15  Jim Meyering  <meyering@redhat.com>
33632
33633         areadlink, areadlink-with-size: relax license to LGPLv2+
33634         * modules/areadlink (License): Relax to LGPLv2+.
33635         * modules/areadlink-with-size (License): Likewise.
33636
33637 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
33638             Bruno Haible  <bruno@clisp.org>
33639
33640         *printf: Fix memory leak.
33641         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
33642         * lib/vfprintf.c (vfprintf): Likewise.
33643         * lib/dprintf.c (dprintf): Likewise.
33644         * lib/vdprintf.c (vdprintf): Likewise.
33645
33646 2009-12-14  Eric Blake  <ebb9@byu.net>
33647
33648         accept4: adjust module dependencies
33649         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
33650
33651         utimens: one more try at avoiding compiler warning
33652         * lib/utimens.c (lutimens): Lower scope of result.
33653
33654 2009-12-13  Bruno Haible  <bruno@clisp.org>
33655
33656         Move the malloc checking from module 'list' to new module 'xlist'.
33657         * modules/xlist: New file.
33658         * lib/gl_xlist.h: New file.
33659         * lib/gl_xlist.c: New file.
33660         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
33661         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
33662         gl_list_add_last, gl_list_add_before, gl_list_add_after,
33663         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
33664         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
33665         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
33666         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
33667         gl_sortedlist_nx_add): New declarations.
33668         (struct gl_list_implementation): Rename and change methods accordingly.
33669         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
33670         (gl_list_nx_create): Renamed from gl_list_create.
33671         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
33672         (gl_list_nx_set_at): Renamed from gl_list_set_at.
33673         (gl_list_nx_add_first): Renamed from gl_list_add_first.
33674         (gl_list_nx_add_last): Renamed from gl_list_add_last.
33675         (gl_list_nx_add_before): Renamed from gl_list_add_before.
33676         (gl_list_nx_add_after): Renamed from gl_list_add_after.
33677         (gl_list_nx_add_at): Renamed from gl_list_add_at.
33678         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
33679         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
33680         gl_list_create_empty.
33681         (gl_list_nx_create): Renamed from gl_list_create.
33682         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
33683         (gl_list_nx_set_at): Renamed from gl_list_set_at.
33684         (gl_list_nx_add_first): Renamed from gl_list_add_first.
33685         (gl_list_nx_add_last): Renamed from gl_list_add_last.
33686         (gl_list_nx_add_before): Renamed from gl_list_add_before.
33687         (gl_list_nx_add_after): Renamed from gl_list_add_after.
33688         (gl_list_nx_add_at): Renamed from gl_list_add_at.
33689         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
33690         * lib/gl_array_list.c: Don't include xalloc.h.
33691         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
33692         NULL upon out-of-memory.
33693         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
33694         out-of-memory.
33695         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
33696         Change return type to 'int'.
33697         (gl_array_nx_set_at): Renamed from gl_array_set_at.
33698         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
33699         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
33700         upon out-of-memory.
33701         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
33702         upon out-of-memory.
33703         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
33704         upon out-of-memory.
33705         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
33706         upon out-of-memory.
33707         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
33708         out-of-memory.
33709         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
33710         Update.
33711         (gl_array_list_implementation): Update.
33712         * lib/gl_carray_list.c: Don't include xalloc.h.
33713         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
33714         Return NULL upon out-of-memory.
33715         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
33716         out-of-memory.
33717         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
33718         Change return type to 'int'.
33719         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
33720         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
33721         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
33722         upon out-of-memory.
33723         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
33724         upon out-of-memory.
33725         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
33726         out-of-memory.
33727         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
33728         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
33729         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
33730         Update.
33731         (gl_carray_list_implementation): Update.
33732         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
33733         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
33734         gl_linked_create_empty. Return NULL upon out-of-memory.
33735         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
33736         out-of-memory.
33737         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
33738         Change return type to 'int'. Return -1 upon out-of-memory.
33739         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
33740         out-of-memory.
33741         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
33742         upon out-of-memory.
33743         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
33744         upon out-of-memory.
33745         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
33746         NULL upon out-of-memory.
33747         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
33748         upon out-of-memory.
33749         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
33750         out-of-memory.
33751         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
33752         Update.
33753         * lib/gl_linked_list.c: Don't include xalloc.h.
33754         (gl_linked_list_implementation): Update.
33755         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
33756         (add_to_bucket): Change return type to 'int'.
33757         (gl_linkedhash_list_implementation): Update.
33758         * lib/gl_anytree_list1.h (free_subtree): New function.
33759         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
33760         gl_tree_create_empty. Return NULL upon out-of-memory.
33761         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
33762         Change return type to 'int'. Return -1 upon out-of-memory.
33763         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
33764         out-of-memory.
33765         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
33766         (gl_tree_remove_node): New function, moved here from
33767         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
33768         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
33769         Update.
33770         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
33771         malloc, not xmalloc. Return NULL upon out-of-memory.
33772         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
33773         out-of-memory.
33774         (gl_tree_remove_node_from_tree): New function, extracted from
33775         gl_tree_remove_node.
33776         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
33777         upon out-of-memory.
33778         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
33779         out-of-memory.
33780         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
33781         upon out-of-memory.
33782         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
33783         upon out-of-memory.
33784         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
33785         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
33786         not xmalloc. Return NULL upon out-of-memory.
33787         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
33788         out-of-memory.
33789         (gl_tree_remove_node_from_tree): New function, extracted from
33790         gl_tree_remove_node.
33791         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
33792         upon out-of-memory.
33793         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
33794         out-of-memory.
33795         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
33796         upon out-of-memory.
33797         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
33798         upon out-of-memory.
33799         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
33800         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
33801         gl_anytree_list1.h before gl_anyavltree_list2.h.
33802         (gl_avltree_list_implementation): Update.
33803         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
33804         gl_anytree_list1.h before gl_anyavltree_list2.h.
33805         (gl_rbtree_list_implementation): Update.
33806         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
33807         Change return type to 'int'. Return -1 upon out-of-memory. Use
33808         __builtin_expect.
33809         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
33810         (gl_avltreehash_list_implementation): Update.
33811         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
33812         (gl_rbtreehash_list_implementation): Update.
33813         * modules/array-list (Depends-on): Remove xalloc.
33814         * modules/carray-list (Depends-on): Likewise.
33815         * modules/linked-list (Depends-on): Likewise.
33816         * modules/linkedhash-list (Depends-on): Likewise.
33817         * modules/avltree-list (Depends-on): Likewise.
33818         * modules/rbtree-list (Depends-on): Likewise.
33819         * modules/avltreehash-list (Depends-on): Likewise.
33820         * modules/rbtreehash-list (Depends-on): Likewise.
33821
33822         * modules/xsublist: New file.
33823         * lib/gl_xsublist.h: New file.
33824         * lib/gl_xsublist.c: New file.
33825         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
33826         (gl_sublist_nx_create): New declaration.
33827         * lib/gl_sublist.c: Don't include xalloc.h.
33828         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
33829         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
33830         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
33831         Change return type to 'int'. Return -1 upon out-of-memory.
33832         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
33833         upon out-of-memory.
33834         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
33835         NULL upon out-of-memory.
33836         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
33837         upon out-of-memory.
33838         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
33839         NULL upon out-of-memory.
33840         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
33841         NULL upon out-of-memory.
33842         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
33843         upon out-of-memory.
33844         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
33845         (gl_sublist_list_implementation): Update.
33846         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
33847         upon out-of-memory.
33848         * modules/sublist (Depends-on): Remove xalloc.
33849
33850         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
33851         * tests/test-carray_list.c: Likewise.
33852         * tests/test-linked_list.c: Likewise.
33853         * tests/test-linkedhash_list.c: Likewise.
33854         * tests/test-avltree_list.c: Likewise.
33855         * tests/test-rbtree_list.c: Likewise.
33856         * tests/test-avltreehash_list.c: Likewise.
33857         * tests/test-rbtreehash_list.c: Likewise.
33858         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
33859         * modules/carray-list-tests (Makefile.am): Likewise.
33860         * modules/linked-list-tests (Makefile.am): Likewise.
33861         * modules/linkedhash-list-tests (Makefile.am): Likewise.
33862         * modules/avltree-list-tests (Makefile.am): Likewise.
33863         * modules/rbtree-list-tests (Makefile.am): Likewise.
33864         * modules/avltreehash-list-tests (Makefile.am): Likewise.
33865         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
33866
33867         * NEWS: Mention the changes.
33868
33869         * lib/clean-temp.c: Include gl_xlist.h.
33870         * modules/clean-temp (Depends-on): Add xlist.
33871
33872         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
33873         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
33874
33875         * tests/test-array_oset.c: Include gl_xlist.h.
33876         * modules/array-oset-tests (Depends-on): Add xlist.
33877
33878         Reported by José E. Marchesi <jemarch@gnu.org>.
33879
33880 2009-12-13  Bruno Haible  <bruno@clisp.org>
33881
33882         Move the malloc checking from module 'oset' to new module 'xoset'.
33883         * modules/xoset: New file.
33884         * lib/gl_xoset.h: New file.
33885         * lib/gl_xoset.c: New file.
33886         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
33887         declarations.
33888         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
33889         (struct gl_oset_implementation): Rename and change methods accordingly.
33890         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
33891         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
33892         'int'. Mark as __warn_unused_result__.
33893         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
33894         gl_oset_create_empty.
33895         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
33896         'int'.
33897         * lib/gl_array_oset.c: Don't include xalloc.h.
33898         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
33899         malloc, not xmalloc.
33900         (grow): Change return type to 'int'. Don't call xalloc_die.
33901         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
33902         to 'int'.
33903         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
33904         'int'.
33905         (gl_array_oset_implementation): Update.
33906         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
33907         gl_tree_create_empty.
33908         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
33909         'int'.
33910         * lib/gl_avltree_oset.c: Don't include xalloc.h.
33911         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
33912         xmalloc.
33913         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
33914         not xmalloc.
33915         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
33916         xmalloc.
33917         (gl_avltree_oset_implementation): Update.
33918         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
33919         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
33920         xmalloc.
33921         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
33922         not xmalloc.
33923         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
33924         xmalloc.
33925         (gl_rbtree_oset_implementation): Update.
33926         * modules/array-oset (Depends-on): Remove xalloc.
33927         * modules/avltree-oset (Depends-on): Likewise.
33928         * modules/rbtree-oset (Depends-on): Likewise.
33929         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
33930         * tests/test-avltree_oset.c: Likewise.
33931         * tests/test-rbtree_oset.c: Likewise.
33932         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
33933         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
33934         * modules/rbtree-oset-tests (Makefile.am): Likewise.
33935         * NEWS: Mention the change.
33936
33937 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
33938
33939         maint.mk: allow a project to override release-prep commands
33940         * top/maint.mk (alpha, beta, stable): Move release-preparatory
33941         commands into a new rule.
33942         (release-prep): New rule.
33943         (release-prep-hook): New overridable variable.
33944
33945 2009-12-13  Bruno Haible  <bruno@clisp.org>
33946
33947         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
33948
33949 2009-12-13  Jim Meyering  <meyering@redhat.com>
33950
33951         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
33952         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
33953
33954 2009-12-12  Bruno Haible  <bruno@clisp.org>
33955
33956         duplocale: Tweak.
33957         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
33958
33959 2009-12-12  Karl Berry  <karl@gnu.org>
33960
33961         * config/srclist.txt (strtoll.c): tab changes, no more sync.
33962
33963 2009-12-12  Bruno Haible  <bruno@clisp.org>
33964
33965         * m4/po.m4: Undo incorrect untabification.
33966
33967 2009-12-12  Bruno Haible  <bruno@clisp.org>
33968
33969         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
33970         * modules/c-strtod (Depends-on): Add locale.
33971         * modules/c-strtold (Depends-on): Likewise.
33972
33973 2009-12-12  Bruno Haible  <bruno@clisp.org>
33974
33975         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
33976
33977 2009-12-11  Eric Blake  <ebb9@byu.net>
33978
33979         setenv: relax requirement in light of POSIX ruling
33980         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
33981         not NULL.
33982         * tests/test-setenv.c (main): Relax test.
33983         * tests/test-unsetenv.c (main): Likewise.
33984         * doc/posix-functions/setenv.texi (setenv): Document this.
33985         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
33986
33987 2009-12-11  Bruno Haible  <bruno@clisp.org>
33988
33989         New module 'fd-safer-flag'.
33990         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
33991         * lib/dup-safer.c (dup_safer_flag): Remove function.
33992         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
33993         * lib/fd-safer.c (fd_safer_flag): Remove function.
33994         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
33995         * modules/cloexec (configure.ac): Drop indicator macro.
33996         * modules/fd-safer-flag: New file.
33997         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
33998         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
33999         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
34000
34001 2009-12-11  Bruno Haible  <bruno@clisp.org>
34002
34003         Tests for module 'nl_langinfo'.
34004         * modules/nl_langinfo-tests: New file.
34005         * tests/test-nl_langinfo.sh: New file.
34006         * tests/test-nl_langinfo.c: New file.
34007
34008         New module 'nl_langinfo'.
34009         * lib/nl_langinfo.c: New file.
34010         * m4/nl_langinfo.m4: New file.
34011         * modules/nl_langinfo: New file.
34012         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
34013
34014 2009-12-11  Bruno Haible  <bruno@clisp.org>
34015
34016         Tests for module 'langinfo'.
34017         * modules/langinfo-tests: New file.
34018         * tests/test-langinfo.c: New file.
34019
34020         New module 'langinfo'.
34021         * lib/langinfo.in.h: New file.
34022         * m4/langinfo_h.m4: New file.
34023         * modules/langinfo: New file.
34024         * doc/posix-headers/langinfo.texi: Mention the new module.
34025
34026 2009-12-11  Bruno Haible  <bruno@clisp.org>
34027
34028         * lib/config.charset: Untabify.
34029
34030 2009-12-11  Bruno Haible  <bruno@clisp.org>
34031
34032         * modules/unistd-safer (configure.ac): Drop indicator macro.
34033
34034 2009-12-11  Bruno Haible  <bruno@clisp.org>
34035
34036         Move pipe2-safer code to its own file.
34037         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
34038         * lib/pipe-safer.c (pipe2_safer): Remove function.
34039         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
34040         (Makefile.am): Add it to lib_SOURCES.
34041
34042 2009-12-10  Bruno Haible  <bruno@clisp.org>
34043
34044         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
34045
34046 2009-12-10  Bruno Haible  <bruno@clisp.org>
34047
34048         Declare which arguments expect non-NULL values, for GCC and clang.
34049         * build-aux/arg-nonnull.h: New file.
34050         * modules/arg-nonnull: New file.
34051         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
34052         (inet_ntop, inet_pton): Use it.
34053         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
34054         (closedir, dirfd, opendir, scandir, alphasort): Use it.
34055         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
34056         (open, openat): Use it.
34057         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
34058         (fnmatch): Use it.
34059         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
34060         (getopt, getopt_long, getopt_long_only): Use it.
34061         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
34062         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
34063         Use it.
34064         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
34065         (iconv_open): Use it.
34066         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
34067         (strtoimax, strtoumax): Use it.
34068         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
34069         (duplocale): Use it.
34070         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
34071         (frexp, frexpl): Use it.
34072         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
34073         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
34074         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
34075         (tsearch, tfind, tdelete, twalk): Use it.
34076         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
34077         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
34078         sigpending): Use it.
34079         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
34080         (posix_spawn, posix_spawnp, posix_spawnattr_init,
34081         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
34082         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
34083         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
34084         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
34085         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
34086         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
34087         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
34088         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
34089         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
34090         Use it.
34091         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
34092         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
34093         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
34094         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
34095         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
34096         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
34097         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
34098         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
34099         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
34100         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
34101         strtoull, unsetenv): Use it.
34102         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
34103         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
34104         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
34105         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
34106         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
34107         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
34108         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
34109         (strcasecmp, strncasecmp): Use it.
34110         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
34111         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
34112         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
34113         rpl_setsockopt): Use it.
34114         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
34115         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
34116         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
34117         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
34118         (gettimeofday): Use it.
34119         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
34120         (times): Use it.
34121         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
34122         (uname): Use it.
34123         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
34124         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
34125         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
34126         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
34127         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
34128         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
34129         unlinkat, write): Use it.
34130         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
34131         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
34132         * lib/argv-iter.h: Include arg-nonnull.h.
34133         (_ATTRIBUTE_NONNULL_): Remove macro.
34134         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
34135         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
34136         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
34137         optimization.
34138         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
34139         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
34140         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
34141         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
34142         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
34143         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
34144         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
34145         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
34146         * modules/arpa_inet (Depends-on): Add arg-nonnull.
34147         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
34148         * modules/dirent (Depends-on): Add arg-nonnull.
34149         (Makefile.am): Insert arg-nonnull.h into dirent.h.
34150         * modules/fcntl-h (Depends-on): Add arg-nonnull.
34151         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
34152         * modules/fnmatch (Depends-on): Add arg-nonnull.
34153         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
34154         * modules/getopt-posix (Depends-on): Add arg-nonnull.
34155         (Makefile.am): Insert arg-nonnull.h into getopt.h.
34156         * modules/glob (Depends-on): Add arg-nonnull.
34157         (Makefile.am): Insert arg-nonnull.h into glob.h.
34158         * modules/iconv_open (Depends-on): Add arg-nonnull.
34159         (Makefile.am): Insert arg-nonnull.h into iconv.h.
34160         * modules/inttypes (Depends-on): Add arg-nonnull.
34161         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
34162         * modules/locale (Depends-on): Add arg-nonnull.
34163         (Makefile.am): Insert arg-nonnull.h into locale.h.
34164         * modules/math (Depends-on): Add arg-nonnull.
34165         (Makefile.am): Insert arg-nonnull.h into math.h.
34166         * modules/netdb (Depends-on): Add arg-nonnull.
34167         (Makefile.am): Insert arg-nonnull.h into netdb.h.
34168         * modules/search (Depends-on): Add arg-nonnull.
34169         (Makefile.am): Insert arg-nonnull.h into search.h.
34170         * modules/signal (Depends-on): Add arg-nonnull.
34171         (Makefile.am): Insert arg-nonnull.h into signal.h.
34172         * modules/spawn (Depends-on): Add arg-nonnull.
34173         (Makefile.am): Insert arg-nonnull.h into spawn.h.
34174         * modules/stdio (Depends-on): Add arg-nonnull.
34175         (Makefile.am): Insert arg-nonnull.h into stdio.h.
34176         * modules/stdlib (Depends-on): Add arg-nonnull.
34177         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
34178         * modules/string (Depends-on): Add arg-nonnull.
34179         (Makefile.am): Insert arg-nonnull.h into string.h.
34180         * modules/strings (Depends-on): Add arg-nonnull.
34181         (Makefile.am): Insert arg-nonnull.h into strings.h.
34182         * modules/sys_socket (Depends-on): Add arg-nonnull.
34183         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
34184         * modules/sys_stat (Depends-on): Add arg-nonnull.
34185         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
34186         * modules/sys_time (Depends-on): Add arg-nonnull.
34187         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
34188         * modules/sys_times (Depends-on): Add arg-nonnull.
34189         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
34190         * modules/sys_utsname (Depends-on): Add arg-nonnull.
34191         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
34192         * modules/time (Depends-on): Add arg-nonnull.
34193         (Makefile.am): Insert arg-nonnull.h into time.h.
34194         * modules/unistd (Depends-on): Add arg-nonnull.
34195         (Makefile.am): Insert arg-nonnull.h into unistd.h.
34196         * modules/wchar (Depends-on): Add arg-nonnull.
34197         (Makefile.am): Insert arg-nonnull.h into wchar.h.
34198         * modules/argv-iter (Depends-on): Add arg-nonnull.
34199         * tests/test-canonicalize.c (null_ptr): New function.
34200         (main): Use it.
34201         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
34202         (main): Use it.
34203         * tests/test-memmem.c (null_ptr): New function.
34204         (main): Use it.
34205         Reported by Jim Meyering.
34206
34207 2009-12-10  Bruno Haible  <bruno@clisp.org>
34208
34209         Use spaces for indentation, not tabs.
34210         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
34211         * m4/*.m4: Untabify.
34212         * build-aux/*.h: Untabify.
34213         * tests/**/*.[hc]: Untabify.
34214         * README: New section "Indent with spaces, not TABs", based on
34215         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
34216         * NEWS: Mention the change.
34217
34218 2009-12-10  Bruno Haible  <bruno@clisp.org>
34219
34220         pty test: Fix link error.
34221         * modules/pty-tests (Makefile.am): Add the default LDADD value to
34222         test_pty_LDADD.
34223
34224 2009-12-07  Simon Josefsson  <simon@josefsson.org>
34225
34226         * modules/pty: New file.
34227         * modules/pty-tests: New file.
34228         * m4/pty.m4: New file.
34229         * tests/test-pty.c: New file.
34230         * doc/glibc-headers/pty.texi: Modified.
34231         * doc/glibc-functions/forkpty.texi: Modified.
34232         * doc/glibc-functions/openpty.texi: Modified.
34233
34234 2009-12-10  Bruno Haible  <bruno@clisp.org>
34235
34236         Avoid syntax error in C++ mode.
34237         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
34238
34239 2009-12-10  Bruno Haible  <bruno@clisp.org>
34240
34241         Use sed with option -e.
34242         * gnulib-tool (func_version, func_emit_copyright_notice,
34243         func_emit_initmacro_end, func_import, func_create_testdir): Pass
34244         option -e to sed.
34245         * modules/link-warning (Makefile.am): Likewise.
34246
34247 2009-12-10  Jim Meyering  <meyering@redhat.com>
34248
34249         mgetgroups: do not write bytes beyond end of malloc'd buffer
34250         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
34251         username, we call getgroups with a one-element-shorter buffer,
34252         but still told it the length was original, max_n_groups.
34253
34254 2009-12-09  Eric Blake  <ebb9@byu.net>
34255
34256         cloexec: relax license
34257         * modules/cloexec (Maintainer): Add myself.
34258         (License): Use LGPL, not GPL.
34259
34260         link-warning: optimize generation
34261         * modules/link-warning (Makefile.am): Reduce process usage.
34262
34263 2009-12-09  Bruno Haible  <bruno@clisp.org>
34264
34265         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
34266         workaround was added on 2009-11-17.
34267
34268 2009-12-09  Jim Meyering  <meyering@redhat.com>
34269             Bruno Haible  <bruno@clisp.org>
34270
34271         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
34272         * modules/link-warning (Makefile.am): Make the comment-removing sed
34273         command more robust in the face of bootstrap-prepended comment lines.
34274
34275 2009-12-09  Bruno Haible  <bruno@clisp.org>
34276
34277         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
34278         most one group.
34279
34280 2009-12-09  Simon Josefsson <simon@josefsson.org>
34281             Bruno Haible  <bruno@clisp.org>
34282
34283         * build-aux/link-warning.h: Add copyright notice.
34284         * modules/link-warning (Makefile.am): Generate link-warning.h from
34285         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
34286         * NEWS: Mention change in link-warning module.
34287         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
34288         * modules/dirent (Makefile.am): Add dependency to dirent.h.
34289         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
34290         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
34291         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
34292         * modules/math (Makefile.am): Add dependency to math.h.
34293         * modules/search (Makefile.am): Add dependency to search.h.
34294         * modules/signal (Makefile.am): Add dependency to signal.h.
34295         * modules/spawn (Makefile.am): Add dependency to spawn.h.
34296         * modules/stdio (Makefile.am): Add dependency to stdio.h.
34297         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
34298         * modules/string (Makefile.am): Add dependency to string.h.
34299         * modules/strings (Makefile.am): Add dependency to strings.h.
34300         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
34301         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
34302         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
34303         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
34304         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
34305         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
34306         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
34307         * modules/unistd (Makefile.am): Add dependency to unistd.h.
34308         * modules/wchar (Makefile.am): Add dependency to wchar.h.
34309
34310 2009-12-09  Bruno Haible  <bruno@clisp.org>
34311
34312         fchdir: Optimize away rpl_fstat when possible.
34313         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
34314         REPLACE_OPEN_DIRECTORY.
34315         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
34316
34317 2009-12-09  Bruno Haible  <bruno@clisp.org>
34318
34319         * lib/fchdir.c: Update comment.
34320
34321 2009-12-09  Bruno Haible  <bruno@clisp.org>
34322
34323         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
34324
34325 2009-12-08  Eric Blake  <ebb9@byu.net>
34326
34327         fchdir: avoid memory leak on re-registration.
34328         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
34329
34330 2009-12-08  Jim Meyering  <meyering@redhat.com>
34331
34332         init.sh: avoid Solaris 10 /bin/sh portability problem
34333         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
34334         sourced script:
34335           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
34336           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
34337           bar
34338         tests/init.sh relied on that, accepting a --set-path=DIR argument,
34339         and two tests used that idiom.
34340         * tests/init.sh: Update suggested usage comments.
34341         (path_prepend_): New function, to be used in place
34342         of the --src-path=DIR option.
34343         (setup_): Move PATH-prepending code into path_prepend_.
34344         * tests/test-pread.sh: Adapt to new usage.
34345         * tests/test-xalloc-die.sh: Likewise.
34346
34347 2009-12-08  Simon Josefsson  <simon@josefsson.org>
34348
34349         * doc/gnulib.texi (Glibc pty.h): Add.
34350         * doc/glibc-functions/forkpty.texi: Add.
34351         * doc/glibc-functions/openpty.texi: Add.
34352         Suggested by Bruno Haible.
34353
34354 2009-12-08  Eric Blake  <ebb9@byu.net>
34355
34356         fchdir: fix logic bugs
34357         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
34358         * tests/test-fchdir.c (main): Enhance test.
34359         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
34360         is in use.
34361
34362         dup2: fix logic bugs
34363         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
34364         REPLACE_DUP2 to decide when rpl_dup2 is needed.
34365         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
34366         exists.
34367         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
34368
34369 2009-12-07  Eric Blake  <ebb9@byu.net>
34370
34371         unlink: fix m4 detection
34372         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
34373
34374         unistd-safer: add unit test
34375         * modules/unistd-safer-tests: New file.
34376         * tests/test-dup-safer.c: Likewise.
34377         * tests/test-cloexec.c (setmode): Avoid compiler warning.
34378         * tests/test-dup2.c (setmode): Likewise.
34379         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
34380
34381         cloexec: preserve text vs. binary across dup_cloexec
34382         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
34383         mode.
34384         * modules/dup2-tests (Depends-on): Add binary-io.
34385         * modules/cloexec-tests (Depends-on): Likewise.
34386         * tests/test-dup2.c (setmode, is_mode): New helpers.
34387         (main): Add tests that translation mode is preserved.
34388         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
34389         Reported by Bruno Haible.
34390
34391         mgetgroups: reduce duplicate listings
34392         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
34393         resulting array.
34394         * tests/test-chown.h (test_chown): Simplify client.
34395         * tests/test-lchown.h (test_lchown): Likewise.
34396
34397 2009-12-06  Bruno Haible  <bruno@clisp.org>
34398
34399         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
34400         value.
34401
34402 2009-12-06  Bruno Haible  <bruno@clisp.org>
34403
34404         * lib/progname.c: Include stdio.h, stdlib.h.
34405         (set_program_name): Reject a NULL argument.
34406
34407 2009-12-05  Eric Blake  <ebb9@byu.net>
34408
34409         pipe2-safer: new module
34410         * modules/pipe2-safer: New file.
34411         * lib/unistd-safer.h (pipe2_safer): New prototype.
34412         * lib/unistd--.h (pipe2): New wrapper.
34413         * lib/pipe-safer.c (pipe2_safer): New function.
34414         * modules/pipe (Depends-on): Add pipe2-safer.
34415         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
34416
34417         stdlib-safer: preserve cloexec flag for mkostemp[s]
34418         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
34419         fd_safer_flag.
34420
34421         unistd-safer: allow preservation of cloexec status via flag
34422         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
34423         prototypes.
34424         * lib/dup-safer.c (dup_safer_flag): New function.
34425         * lib/fd-safer.c (fd_safer_flag): Likewise.
34426         * modules/cloexec (configure.ac): Set witness.
34427
34428         test-dup2: enhance test
34429         * modules/dup2-tests (Depends-on): Add cloexec.
34430         * tests/test-dup2.c (main): Enhance test.
34431
34432         cloexec: add dup_cloexec
34433         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
34434         header and comments.
34435         * lib/cloexec.c (set_cloexec_flag): Add comments.
34436         (dup_cloexec): New function, with mingw implementation borrowed
34437         from...
34438         * lib/w32spawn.h (dup_noinherit): ...here.
34439         * modules/execute (Depends-on): Add cloexec.
34440         * modules/pipe (Depends-on): Likewise.
34441         * modules/cloexec (Depends-on): Add dup2.
34442         * modules/cloexec-tests (Files): New file.
34443         * tests/test-cloexec.c: Likewise.
34444
34445         test-xalloc-die: fix test for mingw
34446         * modules/xalloc-die-tests (Files): Add tests/init.sh.
34447         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
34448         directory and .exe suffix off argv[0] output.
34449
34450         test-fseeko: fix test for mingw
34451         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
34452         than undefining fseek, so test will pass on mingw.
34453
34454 2009-12-05  Bruno Haible  <bruno@clisp.org>
34455
34456         * lib/progname.h (set_program_name): Clarify specification.
34457         * lib/progname.c (set_program_name): Likewise.
34458         Reported by Jim Meyering.
34459
34460 2009-12-05  Jim Meyering  <meyering@redhat.com>
34461
34462         maint.mk: backslash-escape parens in default regexp
34463         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
34464         backslash-escape the literal parentheses.
34465
34466         maint.mk: news-date-check: use grep -E
34467         * top/maint.mk (today): Define a Make variable, not a...
34468         (news-date-check): ...shell variable.
34469         (news-date-regexp): Use the Make variable.
34470         Use grep's -E option.  Change the failing diagnostic to mention
34471         the variable, $(news-date-regexp).
34472
34473 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
34474
34475         maintainer-makefile: allow customization of NEWS entry format
34476         * top/maint.mk (news-date-regexp): New overridable variable.
34477         (news-date-check): Use it.
34478
34479 2009-12-04  Eric Blake  <ebb9@byu.net>
34480
34481         mgetgroups: add xgetgroups, and avoid ENOSYS failures
34482         * lib/mgetgroups.h (xgetgroups): New prototype.
34483         * lib/mgetgroups.c (xgetgroups): New wrapper.
34484         (mgetgroups): Handle ENOSYS.
34485         * modules/mgetgroups (Depends-on): Add realloc.
34486         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
34487
34488         mgetgroups: avoid argument promotion issues with -1
34489         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
34490         for invalid gid_t.
34491         * tests/test-chown.h (getegid, test_chown): Likewise.
34492         * tests/test-lchown.h (getegid, test_lchown): Likewise.
34493
34494 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
34495
34496         exclude: Fix header file problems.
34497         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
34498
34499 2009-12-01  Jim Meyering  <meyering@redhat.com>
34500
34501         fts: fts_open: do not let an empty string cause immediate failure
34502         This is required in support of GNU rm, for which the command
34503         "rm A '' B" must process and remove both A and B, in spite of
34504         the empty string argument.
34505         * lib/fts.c (fts_open): Do not let the presence of an empty string
34506         cause fts_open to fail immediately.  Most fts-using tools must be
34507         able to process all arguments, in order, and can be expected to
34508         diagnose such arguments themselves.
34509
34510 2009-11-30  Eric Blake  <ebb9@byu.net>
34511
34512         utimens: fix compilation error
34513         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
34514         Declare variable at right scope.
34515
34516 2009-11-29  Jim Meyering  <meyering@redhat.com>
34517
34518         bootstrap: handle perl-5.11's changed --version output
34519         * build-aux/bootstrap (get_version): Handle perl separately,
34520         since perl-5.11's --version output is different.
34521
34522 2009-11-28  Jim Meyering  <meyering@redhat.com>
34523
34524         userspec: depend on the inttostr module, too
34525         * modules/userspec (Depends-on): Add inttostr.
34526
34527         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
34528         * lib/userspec.c (parse_with_separator): Do not accept a user ID
34529         number of MAXUID when it evaluates to (uid_t) -1.
34530         Likewise for group ID.  Reported by Matt McCutchen in
34531         <http://savannah.gnu.org/bugs/?28113>
34532
34533         userspec: reformat to use spaces, not TABs
34534         * lib/userspec.c: Expand TABs to spaces.
34535         Add Emacs' "indent-tabs-mode: nil" hint.
34536
34537 2009-11-27  Eric Blake  <ebb9@byu.net>
34538
34539         getopt-gnu: flush out another BSD bug
34540         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
34541         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
34542         flush out BSD bug.
34543         * tests/test-getopt.h (test_getopt): End lists with NULL.
34544         * tests/test-getopt_long.h (test_getopt_long): Likewise.
34545         (test_getopt_long_posix): Enhance test.
34546         * modules/getopt-posix-tests (Depends-on): Add stdbool.
34547         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
34548         getopt-gnu.
34549         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
34550         Likewise.
34551
34552 2009-11-27  Simon Josefsson  <simon@josefsson.org>
34553
34554         * modules/idpriv-droptemp-tests (Notice): Fix text.
34555
34556 2009-11-27  Jim Meyering  <meyering@redhat.com>
34557
34558         test-xalloc-die: avoid spurious failure due to libtool argv difference
34559         In a libtool-enabled project, this test would fail due to a difference
34560         in the emitted program name, e.g.,
34561         -test-xalloc-die: memory exhausted
34562         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
34563         Use program to avoid that.
34564         * modules/xalloc-die-tests (Depends-on): Add progname.
34565         * tests/test-xalloc-die.c: Include progname.h".
34566         (program_name): Remove decl.
34567         (main): Call set_program_name.
34568         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
34569
34570 2009-11-26  Richard Jones  <rjones@redhat.com>
34571
34572         w32sock: leave win32 error in place.
34573         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
34574
34575 2009-11-26  Eric Blake  <ebb9@byu.net>
34576
34577         init.sh: suggest to use skip_ and fail_ functions in comments
34578         * tests/init.sh: Add a sentence.
34579
34580 2009-11-25  Bruno Haible  <bruno@clisp.org>
34581
34582         init.sh: add documentation in comments
34583         * tests/init.sh: Add some developer and user documentation.
34584
34585 2009-11-26  Jim Meyering  <meyering@redhat.com>
34586
34587         init.sh: accommodate even those who specify bogus srcdir manually
34588         * tests/init.sh: Normally, srcdir is guaranteed by automake and
34589         configure-time tests to be sanitized, so that there is no need to
34590         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
34591         (with no double quotes) suffices.  However, since tests may be
34592         invoked manually, and since you may explicitly set srcdir to the
34593         name of a directory containing spaces, do quote its uses here.
34594         * tests/test-pread.sh: Likewise.
34595         Suggested by Bruno Haible.
34596
34597         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
34598         * tests/test-pread.sh: Write no data into the pipe, because
34599         test-pread actually reads none.  This avoids a diagnostic,
34600         "bash: echo: write error: Broken pipe", that arises in the unusual
34601         event something is ignoring SIGPIPE, and might be interpreted
34602         as some sort of failure.  Reported by Bruno Haible.
34603
34604 2009-11-25  Jim Meyering  <meyering@redhat.com>
34605
34606         test-pread: cover failure with ESPIPE and EINVAL
34607         * tests/test-pread.c (main): Test for failure, too.
34608         * tests/test-pread.sh: Invoke with stdin on a pipe.
34609         Suggested by Eric Blake.
34610
34611         pread: improvement and fix
34612         * modules/pread (Depends-on): Depend on lseek, for portability to
34613         e.g., mingw.  Suggested by Eric Blake.
34614         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
34615
34616         unistd.in.h: correct declaration of pread
34617         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
34618         Reported by Richard W.M. Jones.
34619
34620         test-pread.sh: distribute the test script
34621         * modules/pread-tests (Files): Include test-pread.sh.
34622
34623         test-pread.sh: clean up
34624         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
34625         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
34626         That is unnecessary, since it's always ".".
34627         Suggestion from Eric Blake.
34628
34629         test-pread.sh: make executable
34630         * tests/test-pread.sh: Set executable bit.
34631         Reported by Eric Blake.
34632
34633         correct typo in test-pread.sh
34634         * tests/test-pread.sh: Add #! line.
34635
34636         test pread
34637         * tests/test-pread.c: New file.
34638         * tests/test-pread.sh: Likewise.
34639         * modules/pread-tests: Likewise.
34640
34641         pread: new module
34642         * modules/pread: New file.
34643         * lib/unistd.in.h (pread): Define/declare.
34644         * lib/pread.c (pread): New file.
34645         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
34646         * modules/unistd (Makefile.am): Substitute witnesses.
34647         * doc/posix-functions/pread.texi (pread): Update.
34648         * MODULES.html.sh: Add pread.
34649
34650 2009-11-25  Jim Meyering  <meyering@redhat.com>
34651
34652         tests/init.sh: new file to be used via most *.sh tests
34653         * tests/init.sh: New file.
34654
34655 2009-11-25  Eric Blake  <ebb9@byu.net>
34656
34657         utimens: work around older Linux failure with symlinks
34658         * lib/utimens.c (lutimensat_works_really): New variable.
34659         (fdutimens, lutimens): Use it to manage kernels that support
34660         nanosecond times on files, but not on symlinks.
34661         Reported by OndÅ™ej Vašík.
34662
34663         utimes: fix configure grammar
34664         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
34665
34666 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
34667
34668         regex: Fix fastmap for multibyte character ranges.
34669         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
34670         characters when a multibyte character range is included.
34671
34672 2009-11-22  Andy Wingo  <wingo@pobox.com>
34673
34674         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
34675         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
34676
34677 2009-11-24  Bruno Haible  <bruno@clisp.org>
34678
34679         doc: Most *_l functions exist in MacOS X 10.5.
34680         * doc/posix-functions/duplocale.texi: Update platforms list.
34681         * doc/posix-functions/freelocale.texi: Likewise.
34682         * doc/posix-functions/newlocale.texi: Likewise.
34683         * doc/posix-functions/uselocale.texi: Likewise.
34684         * doc/posix-functions/isalnum_l.texi: Likewise.
34685         * doc/posix-functions/isalpha_l.texi: Likewise.
34686         * doc/posix-functions/isblank_l.texi: Likewise.
34687         * doc/posix-functions/iscntrl_l.texi: Likewise.
34688         * doc/posix-functions/isdigit_l.texi: Likewise.
34689         * doc/posix-functions/isgraph_l.texi: Likewise.
34690         * doc/posix-functions/islower_l.texi: Likewise.
34691         * doc/posix-functions/isprint_l.texi: Likewise.
34692         * doc/posix-functions/ispunct_l.texi: Likewise.
34693         * doc/posix-functions/isspace_l.texi: Likewise.
34694         * doc/posix-functions/isupper_l.texi: Likewise.
34695         * doc/posix-functions/iswalnum_l.texi: Likewise.
34696         * doc/posix-functions/iswalpha_l.texi: Likewise.
34697         * doc/posix-functions/iswblank_l.texi: Likewise.
34698         * doc/posix-functions/iswcntrl_l.texi: Likewise.
34699         * doc/posix-functions/iswctype_l.texi: Likewise.
34700         * doc/posix-functions/iswdigit_l.texi: Likewise.
34701         * doc/posix-functions/iswgraph_l.texi: Likewise.
34702         * doc/posix-functions/iswlower_l.texi: Likewise.
34703         * doc/posix-functions/iswprint_l.texi: Likewise.
34704         * doc/posix-functions/iswpunct_l.texi: Likewise.
34705         * doc/posix-functions/iswspace_l.texi: Likewise.
34706         * doc/posix-functions/iswupper_l.texi: Likewise.
34707         * doc/posix-functions/iswxdigit_l.texi: Likewise.
34708         * doc/posix-functions/isxdigit_l.texi: Likewise.
34709         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
34710         * doc/posix-functions/strcasecmp_l.texi: Likewise.
34711         * doc/posix-functions/strcoll_l.texi: Likewise.
34712         * doc/posix-functions/strfmon_l.texi: Likewise.
34713         * doc/posix-functions/strftime_l.texi: Likewise.
34714         * doc/posix-functions/strncasecmp_l.texi: Likewise.
34715         * doc/posix-functions/strxfrm_l.texi: Likewise.
34716         * doc/posix-functions/tolower_l.texi: Likewise.
34717         * doc/posix-functions/toupper_l.texi: Likewise.
34718         * doc/posix-functions/towctrans_l.texi: Likewise.
34719         * doc/posix-functions/towlower_l.texi: Likewise.
34720         * doc/posix-functions/towupper_l.texi: Likewise.
34721         * doc/posix-functions/wcscoll_l.texi: Likewise.
34722         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
34723         * doc/posix-functions/wctrans_l.texi: Likewise.
34724         * doc/posix-functions/wctype_l.texi: Likewise.
34725         * doc/glibc-functions/strptime_l.texi: Likewise.
34726         * doc/glibc-functions/strtod_l.texi: Likewise.
34727         * doc/glibc-functions/strtof_l.texi: Likewise.
34728         * doc/glibc-functions/strtol_l.texi: Likewise.
34729         * doc/glibc-functions/strtold_l.texi: Likewise.
34730         * doc/glibc-functions/strtoll_l.texi: Likewise.
34731         * doc/glibc-functions/strtoul_l.texi: Likewise.
34732         * doc/glibc-functions/strtoull_l.texi: Likewise.
34733         * doc/glibc-functions/wcsftime_l.texi: Likewise.
34734         * doc/glibc-functions/wcstod_l.texi: Likewise.
34735         * doc/glibc-functions/wcstof_l.texi: Likewise.
34736         * doc/glibc-functions/wcstol_l.texi: Likewise.
34737         * doc/glibc-functions/wcstold_l.texi: Likewise.
34738         * doc/glibc-functions/wcstoll_l.texi: Likewise.
34739         * doc/glibc-functions/wcstoul_l.texi: Likewise.
34740         * doc/glibc-functions/wcstoull_l.texi: Likewise.
34741
34742 2009-11-24  Bruno Haible  <bruno@clisp.org>
34743
34744         duplocale: Fix logic bug.
34745         * lib/duplocale.c: Don't include <langinfo.h>.
34746         (_NL_LOCALE_NAME): Remove macro.
34747         (rpl_duplocale): Use setlocale instead of nl_langinfo.
34748         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
34749
34750 2009-11-23  Jim Meyering  <meyering@redhat.com>
34751
34752         test-update-copyright: don't hard-code /usr/bin/perl
34753         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
34754         perl to print the current year.  Gilles Espinasse reported that
34755         the replaced use of perl was hard-coded as /usr/bin/perl.
34756
34757 2009-11-23  Bruno Haible  <bruno@clisp.org>
34758
34759         duplocale: Add support for glibc 2.3.x.
34760         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
34761
34762 2009-11-22  Bruno Haible  <bruno@clisp.org>
34763
34764         vasnprintf: Tiny optimization.
34765         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
34766         MacOS X.
34767
34768 2009-11-22  Bruno Haible  <bruno@clisp.org>
34769
34770         Tests for module 'duplocale'.
34771         * modules/duplocale-tests: New file.
34772         * tests/test-duplocale.c: New file.
34773
34774         New module 'duplocale'.
34775         * m4/duplocale.m4: New file.
34776         * lib/locale.in.h (duplocale): New declaration.
34777         * lib/duplocale.c: New file.
34778         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
34779         gl_LOCALE_H_DEFAULTS): New macros.
34780         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
34781         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
34782         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
34783         REPLACE_DUPLOCALE.
34784         * modules/duplocale: New file.
34785         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
34786
34787 2009-11-22  Bruno Haible  <bruno@clisp.org>
34788
34789         * modules/locale-tests (configure.ac): Test for newlocale function.
34790         * tests/test-locale.c: When the system has extended locale functions,
34791         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
34792
34793         locale: Make locale_t available when possible.
34794         * lib/locale.in.h: Include <xlocale.h> when it exists.
34795         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
34796         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
34797         * modules/locale (Depends-on): Add extensions.
34798         (Makefile.am): Also substitute HAVE_XLOCALE_H.
34799         * doc/posix-headers/locale.texi: Document the problem with locale_t.
34800
34801 2009-11-22  Bruno Haible  <bruno@clisp.org>
34802
34803         Add comments.
34804         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
34805         invocation.
34806         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
34807         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
34808         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
34809
34810 2009-11-22  Bruno Haible  <bruno@clisp.org>
34811
34812         error: account for the possibility of freopen (stdout).
34813         * lib/error.c: Include <unistd.h>.
34814         (flush_stdout): New function, extracted from error and error_at_line.
34815         Determine stdout's fd dynamically.
34816         (error, error_at_line): Invoke flush_stdout.
34817         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
34818         * modules/error (Depends-on): Add unistd.
34819
34820 2009-11-22  Bruno Haible  <bruno@clisp.org>
34821
34822         diffseq: Add comment.
34823         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
34824
34825 2009-11-22  Jim Meyering  <meyering@redhat.com>
34826
34827         c-stack: avoid defining an unused static function
34828         * lib/c-stack.c (find_stack_direction): Do not define this function
34829         when it will not be used.
34830
34831         diffseq: avoid spurious gcc warnings
34832         * lib/diffseq.h (IF_LINT2): Define.
34833         (compareseq): Use it to initialize two members of "part".
34834         This avoids two used-uninitialized warnings.
34835
34836 2009-11-21  Jim Meyering  <meyering@redhat.com>
34837
34838         c-stack: avoid "ignoring return value of `write'" warning
34839         * lib/c-stack.c: Include "ignore-value.h".
34840         (die): Explicitly ignore each write return value.
34841         * modules/c-stack (Depends-on): Add ignore-value.
34842
34843 2009-11-21  Bruno Haible  <bruno@clisp.org>
34844
34845         diffseq: reduce scope of variable 'best'.
34846         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
34847         variable, earlier used for two different purposes.
34848
34849 2009-11-21  Jim Meyering  <meyering@redhat.com>
34850
34851         diffseq: remove useless assignment to "best"
34852         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
34853         assignment.  At that point "best" is already guaranteed to be zero.
34854
34855 2009-11-20  Eric Blake  <ebb9@byu.net>
34856
34857         build: mention ftp redirector in release announcements
34858         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
34859         values that used to come from cfg.mk; mention FTP redirect URL.
34860         * build-aux/announce-gen: Mention the mirror list.
34861         Suggested by Karl Berry.
34862
34863         nanosleep: improve port to mingw
34864         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
34865         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
34866         LIB_NANOSLEEP, but only when needed.
34867         * modules/select (Link): Document LIBSOCKET.
34868         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
34869         enough.
34870
34871         nanosleep: work around cygwin bug
34872         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
34873         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
34874         bug.
34875         (getnow): Delete, not needed.
34876         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
34877         LIB_CLOCK_GETTIME.
34878         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
34879         clock-time, gettime.
34880         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
34881         bug.
34882         * modules/nanosleep-tests: New test.
34883         * tests/test-nanosleep.c: New file.
34884
34885         sleep: work around cygwin bug
34886         * lib/sleep.c (rpl_sleep): Work around the bug.
34887         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
34888         (gl_PREREQ_SLEEP): Delete unused macro.
34889         * modules/sleep (Depends-on): Add verify.
34890         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
34891         * modules/unistd (Makefile.am): Substitute witness.
34892         * lib/unistd.in.h (sleep): Update prototype.
34893         * doc/posix-functions/sleep.texi (sleep): Document the bug.
34894         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
34895         * modules/sleep-tests (Depends-on): Check for alarm.
34896
34897 2009-11-20  Jim Meyering  <meyering@redhat.com>
34898
34899         maint.mk: improve sc_prohibit_magic_number_exit
34900         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
34901         so it does not match uses like System.exit(1).
34902         Add comments showing how to correct all offenders.
34903
34904 2009-11-19  Eric Blake  <ebb9@byu.net>
34905
34906         xalloc-die-tests: add missing library
34907         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
34908
34909         test-xvasprintf: silence compiler warnings
34910         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
34911         empty string from gcc.
34912
34913 2009-11-19  Jim Meyering  <meyering@redhat.com>
34914
34915         xfreopen: new module, from coreutils
34916         * modules/xfreopen: New module.
34917         * lib/xfreopen.c: New file.
34918         * lib/xfreopen.h: New file.
34919         * MODULES.html.sh (File stream based Input/Output"): Add it.
34920
34921 2009-11-19  Eric Blake  <ebb9@byu.net>
34922
34923         manywarnings: depend on warnings
34924         * modules/manywarnings (Depends-on): Add warnings.
34925
34926         build: avoid compiler warnings
34927         * lib/select.c (rpl_select): Delete unused variable.
34928         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
34929
34930 2009-11-18  Eric Blake  <ebb9@byu.net>
34931
34932         tests: avoid false negative with --with-packager
34933         * tests/test-version-etc.sh: Discard packager information.
34934         * tests/test-argp-version-etc-1.sh: Likewise.
34935         Reported by Mike Frysinger.
34936
34937         utimens: fix regression on Solaris
34938         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
34939         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
34940         can only change fd timestamps via futimesat.  Instead, use an
34941         additional witness macro to avoid BSD bug.
34942         Reported by Jim Meyering.
34943
34944 2009-11-17  Eric Blake  <ebb9@byu.net>
34945
34946         usleep: use it to simplify tests
34947         * modules/stat-time-tests (Depends-on): Add usleep.
34948         (configure.ac): Drop usleep check.
34949         * modules/chown-tests (Depends-on, configure.ac): Likewise.
34950         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
34951         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
34952         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
34953         * modules/openat-tests (Depends-on, configure.ac): Likewise.
34954         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
34955         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
34956         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
34957         Likewise.
34958         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
34959         * tests/test-lchown.h (nap): Likewise.
34960         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
34961         * tests/test-stat-time.c (nap): Likewise.
34962         * tests/test-utimens-common.h (nap): Update comments.
34963
34964         usleep: new module
34965         * modules/usleep: New file.
34966         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
34967         * lib/usleep.c (usleep): Likewise.
34968         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
34969         * modules/unistd (Makefile.am): Substitute witnesses.
34970         * lib/unistd.in.h (usleep): Add declaration.
34971         * doc/pastposix-functions/usleep.texi (usleep): Document this.
34972         * MODULES.html.sh (Date and time): Likewise.
34973         * modules/usleep-tests (Depends-on): New test.
34974         * tests/test-usleep.c: New file.
34975
34976         chown: work around OpenBSD bug
34977         * lib/chown.c (rpl_chown): Work around the bug.
34978         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
34979         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
34980         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
34981         * modules/chown (Depends-on): Add stdbool.
34982         * modules/lchown (Depends-on): Likewise.
34983         * doc/posix-functions/chown.texi (chown): Document the bug.
34984         * doc/posix-functions/lchown.texi (lchown): Likewise.
34985         * tests/test-lchown.h (test_chown): Relax test.
34986
34987         mkstemp: avoid conflict with C++ keyword template
34988         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
34989         * lib/mkostemp.c (mkostemp): Likewise.
34990         * lib/mkostemps.c (mkostemps): Likewise.
34991         * lib/mkstemp.c (mkstemp): Likewise.
34992         * lib/mkstemps.c (mkstemps): Likewise.
34993
34994         xalloc-die-tests: optimize
34995         * tests/test-xalloc-die.sh: Reduce number of processes.
34996
34997 2009-11-17  Simon Josefsson  <simon@josefsson.org>
34998
34999         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
35000         patch from ludo@gnu.org (Ludovic Courtès).
35001
35002 2009-11-17  Jim Meyering  <meyering@redhat.com>
35003
35004         version-etc: use proper license string
35005         * modules/version-etc (License): Use LGPL, not LGPLv3+.
35006         * modules/version-etc-fsf: Likewise.
35007
35008 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35009
35010         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
35011         printed to stdout.  Deal with EOL differences.
35012
35013 2009-11-17  Eric Blake  <ebb9@byu.net>
35014
35015         unsetenv: work around Solaris bug
35016         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
35017         * lib/unsetenv.c (rpl_unsetenv): Work around it.
35018         Reported by Jim Meyering.
35019
35020         vasnprintf: avoid compiler warnings
35021         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
35022         variables.
35023         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
35024
35025 2009-11-17  Simon Josefsson  <simon@josefsson.org>
35026
35027         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
35028         settings since xalloc-die is no longer the self test,
35029         xalloc-die.sh is.
35030
35031 2009-11-17  Jim Meyering  <meyering@redhat.com>
35032
35033         test-xalloc-die.sh: make the code agree with the commit log
35034         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
35035         at the end, just in case you happen to have a test-xalloc-die
35036         program in some other PATH directory.
35037
35038         test-xalloc-die.sh: fix a portability bug
35039         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
35040         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
35041         Otherwise, argv[0] (as often seen in diagnostics) would be too
35042         system-dependent, sometimes with, and sometimes without the leading "./".
35043
35044         version-etc-fsf: relax license to LGPLv3+
35045         * modules/version-etc-fsf (License): Relax license.
35046
35047 2009-11-16  Eric Blake  <ebb9@byu.net>
35048
35049         xalloc-die-tests: avoid printing null pointer
35050         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
35051         shell script.
35052         * tests/test-xalloc-die.c (program_name): Declare.
35053         * tests/test-xalloc-die.sh (tmpfiles): New file.
35054
35055         setenv, unsetenv: work around various bugs
35056         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
35057         (setenv) [HAVE_SETENV]: Work around bugs.
35058         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
35059         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
35060         for bugs.
35061         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
35062         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
35063         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
35064         * modules/stdlib (Makefile.am): Update substitutions.
35065         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
35066         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
35067         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
35068         * modules/setenv-tests: New test.
35069         * modules/unsetenv-tests: Likewise.
35070         * tests/test-setenv.c: New file.
35071         * tests/test-unsetenv.c: Likewise.
35072
35073 2009-11-16  Jim Meyering  <meyering@redhat.com>
35074
35075         version-etc: relax license to LGPLv3+
35076         * modules/version-etc (License): Relax license.
35077
35078         better AC_REQUIRE expanded-before-required-warning avoidance
35079         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
35080         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
35081         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
35082         which is no longer needed.
35083
35084 2009-11-16  Eric Blake  <ebb9@byu.net>
35085
35086         test-freading: clean up temporary file
35087         * tests/test-freading.c (main): Remove file on success, and use
35088         ASSERT more liberally.
35089         Reported by Jim Meyering.
35090
35091 2009-11-16  Jim Meyering  <meyering@redhat.com>
35092
35093         avoid new AC_REQUIRE expanded-before-required warnings
35094         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
35095         merely using it.
35096         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
35097         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
35098
35099 2009-11-15  Simon Josefsson  <simon@josefsson.org>
35100
35101         * tests/test-xalloc-die.c: New file.
35102         * modules/xalloc-die-tests: New file.
35103         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
35104         XFAIL_TESTS so it can be appended by modules.
35105
35106 2009-11-15  Simon Josefsson  <simon@josefsson.org>
35107
35108         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
35109         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
35110
35111 2009-11-14  Eric Blake  <ebb9@byu.net>
35112
35113         fnmatch: avoid compiler warning
35114         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
35115         to silence compiler warning about mismatch signedness in ?:.
35116         Reported by Robert Millan.
35117
35118         intprops: add double-inclusion guard
35119         * lib/intprops.h: Allow idempotent includes.
35120         Suggested by Bruce Korb.
35121
35122         openat: detect Solaris fchownat bug
35123         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
35124         penalizing glibc chownat when only lchownat is broken.
35125         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
35126         trailing slash bugs.
35127         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
35128         * modules/openat-tests (Files): Include more files.
35129         (Depends-on): Add mgetgroups, sleep, stat-time.
35130         (configure.ac): Add additional checks.
35131         (Makefile.am): Build new test.
35132         * tests/test-fchownat.c: New file.
35133
35134         lchown: detect Solaris and FreeBSD bug
35135         * lib/lchown.c (rpl_lchown): Work around bug.
35136         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
35137         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35138         * modules/unistd (Makefile.am): Populate it.
35139         * lib/unistd.in.h (lchown): Update declaration.
35140         * doc/posix-functions/lchown.texi (lchown): Document the bug.
35141         * modules/lchown-tests: New file.
35142         * tests/test-lchown.h (test_lchown): Likewise.
35143         * tests/test-lchown.c (main): Likewise.
35144
35145         chown: detect Solaris and FreeBSD bug
35146         * lib/chown.c (rpl_chown): Work around bug.
35147         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
35148         (gl_PREREQ_CHOWN): Delete.
35149         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
35150         * modules/unistd (Makefile.am): Populate it.
35151         * lib/unistd.in.h (chown): Update declaration.
35152         * lib/lchown.c (chown): Update client.
35153         * modules/lchown (Depends-on): Add lstat.
35154         * doc/posix-functions/chown.texi (chown): Document the bug.
35155         * doc/posix-functions/getgroups.texi (getgroups): Document
35156         getgroups pitfall.
35157         * modules/chown-tests: New file.
35158         * tests/test-chown.h (test_chown): Likewise.
35159         * tests/test-chown.c (main): Likewise.
35160
35161 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
35162
35163         gnulib-tool: correctly detect absence of m4 directories
35164         * gnulib-tool: Avoid extra newline on data passed to wc -l.
35165
35166 2009-11-14  Jim Meyering  <meyering@redhat.com>
35167
35168         maint.mk: Prohibit inclusion of "xalloc.h" without use.
35169         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
35170
35171 2009-11-14  John W. Eaton  <jwe@gnu.org>
35172
35173         strftime.h: wrap funtion declaration in extern "C" block
35174         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
35175
35176 2009-11-13  Eric Blake  <ebb9@byu.net>
35177
35178         getgroups: avoid compiler warning
35179         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
35180
35181         getgroups: work around FreeBSD bug
35182         * lib/getgroups.c (rpl_getgroups): Work around the bug.
35183         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
35184         * doc/posix-functions/getgroups.texi (getgroups): Document it.
35185         * tests/test-getgroups.c (main): Fix buffer overrun.
35186
35187         getgroups: avoid compilation failure
35188         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
35189         * modules/getgroups (Depends-on): Add stdint.
35190
35191 2009-11-13  Jim Meyering  <meyering@redhat.com>
35192
35193         test-getgroups: avoid compilation failure
35194         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
35195
35196 2009-11-13  Eric Blake  <ebb9@byu.net>
35197
35198         mgetgroups: new module, taken from coreutils
35199         * modules/mgetgroups: New file.
35200         * lib/mgetgroups.h: Likewise.
35201         * lib/mgetgroups.c (mgetgroups): Likewise.
35202         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
35203         * MODULES.html.sh (Users and groups): Mention it.
35204
35205         getgroups: don't expose GETGROUPS_T to user
35206         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
35207         an element at a time if GETGROUPS_T is wrong size.
35208         * lib/getugroups.h (getugroups): Change signature.
35209         * lib/unistd.in.h (getgroups): Likewise.
35210         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
35211         signature needs fixing.
35212         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
35213         AC_TYPE_GETGROUPS.
35214         * modules/group-member (Depends-on): Add getgroups.
35215         * lib/group-member.c (group_info, get_group_info): Use gid_t.
35216         (group_member): Rely on getgroups replacement.
35217         * lib/getugroups.c (getugroups): Use gid_t.
35218         * tests/test-getgroups.c (main): Likewise.
35219         * NEWS: Mention the signature change.
35220         * doc/posix-functions/getgroups.texi (getgroups): Mention the
35221         problem with signature.
35222         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
35223         GETGROUPS_T is still useful for setgroups.
35224
35225         getgroups, getugroups: provide stubs for mingw
35226         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
35227         * lib/getugroups.c (getugroups): Likewise.
35228         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
35229         function.  Modernize replacement scheme.
35230         (gl_PREREQ_GETGROUPS): Delete.
35231         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
35232         * modules/getgroups (configure.ac): Declare witness.
35233         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
35234         * modules/unistd (Depends-on): Substitute witness.
35235         * lib/unistd.in.h (getgroups): Declare replacement.
35236
35237         getgroups: avoid calling exit
35238         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
35239         drop xalloc.
35240         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
35241         dependencies.
35242         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
35243         exiting, in the rare case of malloc failure.
35244
35245         getgroups: fix logic error
35246         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
35247         has more than 20 groups.
35248         * modules/getgroups-tests: New test.
35249         * tests/test-getgroups.c: New file.
35250
35251 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35252
35253         * tests/test-base64.c: Improve.
35254
35255 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35256
35257         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
35258         Blake <ebb9@byu.net>.
35259
35260 2009-11-13  Simon Josefsson  <simon@josefsson.org>
35261
35262         * tests/test-xvasprintf.c: Add %s%s related checks.
35263
35264 2009-11-12  Eric Blake  <ebb9@byu.net>
35265
35266         version-etc: match standards.texi style
35267         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
35268         and use <> only for URLs.
35269
35270 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
35271
35272         fts: do not fail on a submount during traversal
35273         * lib/fts.c (fts_build): Read the stat info again after opening
35274         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
35275         Original report at http://bugzilla.redhat.com/501848.
35276
35277 2009-11-12  Jim Meyering  <meyering@redhat.com>
35278
35279         bootstrap: sync from coreutils
35280         * build-aux/bootstrap (bootstrap_epilogue): New function.
35281         Use git_modules_config in one more place.  This make bootstrap's
35282         --gnulib-srcdir option more useful for testing.
35283
35284         bootstrap: generalize autoheader check
35285         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
35286         AC_CONFIG_HEADERS.
35287
35288 2009-11-11  Eric Blake  <ebb9@byu.net>
35289
35290         mkfifoat: use new modules for Solaris and BSD bugs
35291         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
35292         * lib/mkfifoat.c (mknodat): Split...
35293         * lib/mknodat.c (mknodat): ...into new file.
35294         * modules/mkfifoat (Files): Ship new file.
35295         (Depends-on): Add mkfifo, mknod.
35296         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
35297         (Depends-on): Add symlink.
35298         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
35299         redundant with test_mkfifo.h.
35300         (do_mkfifoat, do_mknodat): New helpers.
35301
35302         mknod: new module
35303         * modules/mknod: New file.
35304         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
35305         * lib/mknod.c (mknod): Likewise.
35306         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
35307         defaults.
35308         * modules/sys_stat (Makefile.am): Substitute them.
35309         * lib/sys_stat.in.h (mknod): Declare replacement.
35310         * MODULES.html.sh (Support for systems lacking POSIX:2008):
35311         Document it.
35312         * doc/posix-functions/mknod.texi (mknod): Likewise.
35313         * modules/mknod-tests: New test.
35314         * tests/test-mknod.c: Likewise.
35315
35316         mkfifo: new module
35317         * modules/mkfifo: New file.
35318         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
35319         * lib/mkfifo.c (mkfifo): Likewise.
35320         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
35321         defaults.
35322         * modules/sys_stat (Makefile.am): Substitute them.
35323         * lib/sys_stat.in.h (mkfifo): Declare replacement.
35324         * MODULES.html.sh (Support for systems lacking POSIX:2008):
35325         Document it.
35326         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
35327         * modules/mkfifo-tests: New test.
35328         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
35329         from test-mkfifoat.c.
35330         * tests/test-mkfifo.c: New file.
35331
35332         readlink: detect FreeBSD bug
35333         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
35334         slash on symlink.
35335         * doc/posix-functions/readlink.texi (readlink): Document the bug.
35336         * tests/test-readlink.h (test_readlink): Enhance test.
35337
35338         symlink: detect FreeBSD bug
35339         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
35340         slash on symlink.
35341         * doc/posix-functions/symlink.texi (symlink): Document the bug.
35342         * tests/test-symlink.h (test_symlink): Enhance test.
35343
35344 2009-11-10  Eric Blake  <ebb9@byu.net>
35345
35346         link: detect FreeBSD bug
35347         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
35348         symlink.
35349         * doc/posix-functions/link.texi (link): Document the bug.
35350         * tests/test-link.h (test_link): Enhance test.
35351         * tests/test-linkat.c (main): Update caller.
35352
35353         unlink, remove: detect FreeBSD bug
35354         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
35355         slash on symlink.
35356         * doc/posix-functions/unlink.texi (unlink): Document the bug.
35357         * doc/posix-functions/remove.texi (remove): Likewise.
35358         * tests/test-unlink.h (test_unlink): Enhance test.
35359         * tests/test-remove.c (main): Likewise.
35360
35361 2009-11-09  Eric Blake  <ebb9@byu.net>
35362
35363         rename: detect FreeBSD bug
35364         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
35365         slash on symlink.
35366         * modules/renameat-tests (Depends-on): Add filenamecat.
35367         * tests/test-rename.h (test_rename): Allow one more errno.
35368         * tests/test-renameat.c (main): Likewise.
35369         * doc/posix-functions/rename.texi (rename): Document the bug.
35370
35371         open: detect FreeBSD bug
35372         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
35373         symlink.
35374         * doc/posix-functions/open.texi (open): Document the bug.
35375         * doc/posix-functions/utimes.texi (utimes): Likewise.
35376         * tests/test-open.h (test_open): Add parameters, and test symlink
35377         handling.
35378         * tests/test-open.c (main): Adjust caller.
35379         * tests/test-fcntl-safer.c (main): Likewise.
35380         * modules/open-tests (Depends-on): Add stdbool, symlink.
35381         * modules/fcntl-safer-tests (Depends-on): Likewise.
35382         * tests/test-openat.c (main): Add test-open tests.
35383
35384         stat: detect FreeBSD bug
35385         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
35386         symlink.
35387         * doc/posix-functions/stat.texi (stat): Document the bug.
35388         * tests/test-stat.h (test_stat_func): Add argument.
35389         * tests/test-stat.c (main): Adjust caller.
35390         * tests/test-fstatat.c (main): Likewise.
35391         * modules/stat-tests (Depends-on): Add stdbool, symlink.
35392         Reported by Jim Meyering.
35393
35394 2009-11-09  James Youngman  <jay@gnu.org>
35395
35396         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
35397         * lib/strftime.c: Correct placement of #include "ignore-value.h".
35398
35399 2009-11-08  Jim Meyering  <meyering@redhat.com>
35400
35401         utimens: remove invalid futimesat call
35402         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
35403         It used the file descriptor of the target file as the DIR_FD
35404         parameter and NULL as the file name.  That caused failure with
35405         errno == EFAULT on FreeBSD-8.0-rc2
35406
35407 2009-11-07  Eric Blake  <ebb9@byu.net>
35408
35409         fflush, freadseek: use fseeko, not fseek
35410         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
35411         (clear_ungetc_buffer): Avoid potential problems on large files.
35412         * lib/freadseek.c (freadseek): Likewise.
35413         * modules/freadseek (Depends-on): Add fseeko.
35414         * modules/fseek (configure.ac): Set a witness.
35415         * tests/test-fflush.c (main): Use fseeko.
35416         * tests/test-fpurge.c (fseek): Disable link warning.
35417         * tests/test-freadable.c (fseek): Likewise.
35418         * tests/test-freading.c (fseek): Likewise.
35419         * tests/test-fseeko.c (fseek): Likewise.
35420         * tests/test-ftell.c (fseek): Likewise.
35421         * tests/test-ftello.c (fseek): Likewise.
35422         * tests/test-fwritable.c (fseek): Likewise.
35423         * tests/test-fwriting.c (fseek): Likewise.
35424
35425 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35426
35427         * modules/memchr (Depends-on): Drop getpagesize dependency.
35428
35429 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35430
35431         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
35432         Reported by Ludovic Courtès.
35433         * build-aux/pmccabe2html: Improve example usage.
35434         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
35435
35436 2009-11-06  Jim Meyering  <meyering@redhat.com>
35437
35438         do-release-commit-and-tag: New module.
35439         Automate the release-commit and tag process.
35440         * build-aux/do-release-commit-and-tag: New script, from coreutils.
35441         * modules/do-release-commit-and-tag: New file.
35442         * MODULES.html.sh (Support for maintaining and releasing): Add it.
35443
35444 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35445
35446         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
35447         because test-select.c uses inet_pton.
35448
35449 2009-11-06  Simon Josefsson  <simon@josefsson.org>
35450
35451         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
35452         GETADDRINFO_LIB.  Bump serial number.
35453         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
35454         Suggested by Eric Blake <ebb9@byu.net>.
35455
35456 2009-11-05  Eric Blake  <ebb9@byu.net>
35457
35458         strtod: detect darwin bug
35459         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
35460         Reported by Leo Davis.
35461
35462         freopen-safer: new module
35463         * modules/freopen-safer: New module.
35464         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
35465         * lib/freopen-safer.c (freopen_safer): New file.
35466         * lib/stdio-safer.h (freopen_safer): New declaration.
35467         * lib/stdio--.h (freopen): New override.
35468         * MODULES.html.sh (File stream based Input/Output): Mention it.
35469         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
35470         freopen-safer module.
35471         * doc/posix-functions/stderr.texi (stderr): Likewise.
35472         * doc/posix-functions/stdin.texi (stdin): Likewise.
35473         * doc/posix-functions/stdout.texi (stdout): Likewise.
35474         * modules/freopen-safer-tests: New test.
35475         * tests/test-reopen-safer.c: New file.
35476
35477 2009-11-05  Jim Meyering  <meyering@redhat.com>
35478
35479         maint.mk: Prohibit inclusion of "close-stream.h" without use.
35480         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
35481
35482 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35483
35484         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
35485
35486 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35487
35488         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
35489
35490 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35491
35492         Fix link error.
35493         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
35494         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35495
35496 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35497
35498         * tests/test-func.c: Also test value of __func__.
35499
35500 2009-11-05  Simon Josefsson  <simon@josefsson.org>
35501
35502         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
35503         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
35504
35505 2009-11-05  Bruno Haible  <bruno@clisp.org>
35506
35507         Fix link error.
35508         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
35509         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
35510         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
35511
35512 2009-11-05  Bruno Haible  <bruno@clisp.org>
35513
35514         Tests for module 'inet_pton'.
35515         * modules/inet_pton-tests: New file.
35516         * tests/test-inet_pton.c: New file.
35517
35518 2009-11-05  Bruno Haible  <bruno@clisp.org>
35519
35520         Tests for module 'inet_ntop'.
35521         * modules/inet_ntop-tests: New file.
35522         * tests/test-inet_ntop.c: New file.
35523
35524 2009-11-04  Eric Blake  <ebb9@byu.net>
35525
35526         stdlib-safer: wrap all mkstemp variants
35527         * modules/mkostemp (configure.ac): Set witness.
35528         * modules/mkostemps (configure.ac): Likewise.
35529         * modules/mkstemps (configure.ac): Likewise.
35530         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
35531         (mkstemps_safer): Wrap more functions.
35532         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
35533         wrapping.
35534         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
35535         (mkstemps_safer): Implement the wrappers.
35536
35537         mkstemps, mkostemps: new modules
35538         * modules/mkostemps: New module.
35539         * modules/mkstemps: Likewise.
35540         * lib/mkostemps.c (mkostemps): New file.
35541         * lib/mkstemps.c (mkstemps): Likewise.
35542         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
35543         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
35544         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
35545         * modules/stdlib (Makefile.am): Substitute them.
35546         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
35547         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
35548         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
35549         * doc/gnulib.texi (Glibc stdlib.h): Include them.
35550         * MODULES.html.sh (File system functions): Mention them.
35551
35552         tempname: resync from glibc
35553         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
35554         same values for __GT_FILE as glibc.  Abort even when assertions
35555         are disabled.
35556         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
35557         match its value otherwise.  Allow idempotent inclusion.
35558         * lib/mkdtemp.c (mkdtemp): Adjust caller.
35559         * lib/mkostemp.c (mkostemp): Likewise.
35560         * lib/mkstemp.c (mkstemp): Likewise.
35561         * lib/tmpfile.c (tmpfile): Likewise.
35562         * NEWS: Document this.
35563
35564         utimens: fix use of futimens on older Linux
35565         * lib/utimens.c (fdutimens): Use updated, rather than original,
35566         timespec to avoid bug in older Linux kernel.
35567         Reported by Simon Josefsson.
35568
35569 2009-11-04  Bruno Haible  <bruno@clisp.org>
35570
35571         Make num_processors more flexible and consistent.
35572         * lib/nproc.h (enum nproc_query): New type.
35573         (num_processors): Add a 'query' argument.
35574         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
35575         (num_processors): Add a 'query' argument. Test the value of the
35576         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
35577         mingw, count the number of CPUs available for the current process.
35578         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
35579         Check for sched_getaffinity and sched_getaffinity_np.
35580         * modules/nproc (Depends-on): Add c-ctype, extensions.
35581         * NEWS: Mention the change.
35582
35583 2009-11-03  Bruno Haible  <bruno@clisp.org>
35584
35585         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
35586
35587 2009-11-03  Jim Meyering  <meyering@redhat.com>
35588
35589         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
35590         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
35591         if it is defined.
35592
35593 2009-11-02  Eric Blake  <ebb9@byu.net>
35594
35595         mktime, timegm: share common declaration
35596         * lib/mktime-internal.h: New file.
35597         * lib/mktime.c: Use it rather than open-coding a declaration.
35598         * lib/timegm.c: Likewise.
35599         * modules/mktime (Files): Ship it.
35600         * modules/timegm (Files): Likewise.
35601         Suggested by Bruno Haible.
35602
35603         test-update-copyright: update test to match script changes
35604         * tests/test-update-copyright.sh: Avoid hard-coding perl
35605         location.  Don't update *.bak created by earlier runs.
35606
35607 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
35608             Simon Josefsson  <simon@josefsson.org>
35609             Bruno Haible  <bruno@clisp.org>
35610
35611         Fix link error on Solaris 8.
35612         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
35613         also in libnsl. Define also INET_PTON_LIB.
35614         * modules/inet_pton (Link): New section.
35615
35616 2009-11-02  Simon Josefsson  <simon@josefsson.org>
35617             Bruno Haible  <bruno@clisp.org>
35618
35619         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
35620         * modules/inet_ntop (Link): New section.
35621         Reported by Boyan Kasarov <bkasarov@gmail.com>.
35622
35623 2009-11-02  Eric Blake  <ebb9@byu.net>
35624
35625         maint: avoid compiler warnings in m4 macros
35626         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
35627         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
35628
35629 2009-11-02  Simon Josefsson  <simon@josefsson.org>
35630
35631         * m4/pmccabe2html.m4: Remove file.
35632         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
35633         function.  Change maintainer.
35634         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
35635         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
35636         Courtès).
35637
35638 2009-10-31  Eric Blake  <ebb9@byu.net>
35639
35640         fseeko: fix m4 regression
35641         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
35642         regression from 2009-10-27.
35643         Reported by Ralf Wildenhues.
35644
35645 2009-10-31  Jim Meyering  <meyering@redhat.com>
35646
35647         inttostr: aesthetics and improved (compile-time) safety
35648         Define inttype_is_signed rather than inttype_is_unsigned,
35649         since the sole use is via "#if inttype_is_signed".
35650         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
35651         inttype_is_unsigned.
35652         * lib/offtostr.c (inttype_is_signed): Likewise.
35653         * lib/uinttostr.c (inttype_is_signed): Likewise.
35654         * lib/umaxtostr.c (inttype_is_signed): Likewise.
35655         * lib/inttostr.c (inttostr): Use verify to cross-check the
35656         inttype_is_signed value and the signedness of the actual type.
35657         * modules/inttostr (Depends-on): Add verify.
35658
35659 2009-10-30  Eric Blake  <ebb9@byu.net>
35660
35661         build: avoid compiler warnings
35662         * lib/fchmodat.c (lchmod): Mark unused variables.
35663         * lib/getopt.c (_getopt_initialize): Likewise.
35664         * lib/mktime.c (__mktime_internal): Provide prototype.
35665         * lib/inttostr.c (inttostr): Avoid compiler warning even with
35666         older gcc that do not understand #pragma GCC diagnostic.
35667         * lib/uinttostr.c (inttype_is_unsigned): Define.
35668         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
35669
35670 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
35671
35672         stat: fix compilation on AIX
35673         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
35674         only see struct stat64.
35675
35676 2009-10-30  Eric Blake  <ebb9@byu.net>
35677
35678         exclude: make more robust
35679         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
35680         rather than masking a coding bug.
35681         Suggested by Bruno Haible.
35682
35683 2009-10-30  Jim Meyering  <meyering@redhat.com>
35684
35685         perl scripts: remove #!/usr/bin/perl in favor of more portable...
35686         Rather than putting #!/usr/bin/perl on the first line,
35687         start with a variant of what's recommended by "man perlrun" that
35688         invokes the first "perl" program from your shell's search path.
35689         * build-aux/gitlog-to-changelog: Replace #!... as above.
35690         Add a "Local Variables" perl mode setting.
35691         Prompted by a patch from Ludovic Courtès.
35692         Improved by Eric Blake.
35693         * build-aux/useless-if-before-free: Likewise.
35694         * build-aux/announce-gen: Likewise.
35695         * build-aux/update-copyright: Likewise.
35696
35697 2009-10-29  Eric Blake  <ebb9@byu.net>
35698
35699         filenamecat-lgpl: adjust clients
35700         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
35701         filenamecat.
35702         * modules/renameat (Depends-on): Likewise.
35703
35704         filenamecat: split into filenamecat-lgpl
35705         * modules/filenamecat-lgpl: New module.
35706         * modules/filenamecat (Files): Move library-safe files into
35707         filenamecat-lgpl.
35708         (Depends-on): Add filenamecat-lgpl.
35709         (configure.ac): Declare witness.
35710         * lib/filenamecat.h (file_name_concat): Only declare when using
35711         GPL module.
35712         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
35713         Move...
35714         * lib/filenamecat-lgpl.c: ...into new file.
35715         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
35716         (gl_FILE_NAME_CONCAT): Use it.
35717         * MODULES.html.sh (File system functions): Mention new module.
35718
35719         argp: avoid memory leak
35720         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
35721         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
35722         base_name, since the latter malloc()s and can call exit().
35723         Leak introduced 2006-07-03.
35724
35725         dirname-lgpl: adjust clients that don't need full dirname
35726         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
35727         * modules/filenamecat (Depends-on): Likewise.
35728         * modules/linkat (Depends-on): Likewise.
35729         * modules/mkancesdirs (Depends-on): Likewise.
35730         * modules/mkdir (Depends-on): Likewise.
35731         * modules/openat (Depends-on): Likewise.
35732         * modules/savewd (Depends-on): Likewise.
35733         * modules/rename (Depends-on): Likewise.
35734         (License): Relax license.
35735         * modules/mkdir-tests (Depends-on): Drop progname.
35736         (Makefile.am): Delete unneeded LDADD.
35737         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
35738
35739         dirname: split into dirname-lgpl
35740         * modules/dirname-lgpl: New module.
35741         * modules/dirname (Files): Move library-safe files into
35742         dirname-lgpl.
35743         (Depends-on): Add dirname-lgpl.
35744         (configure.ac): Declare witness.
35745         * modules/double-slash-root (License): Relax license.
35746         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
35747         module.
35748         * lib/dirname.c (dir_len, mdir_name): Move...
35749         * lib/dirname-lgpl.c: ...into new file.
35750         * lib/basename.c (last_component, base_len): Move...
35751         * lib/basename-lgpl.c: ...into new file.
35752         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
35753         (gl_DIRNAME): Use it.
35754         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
35755         Mention new module.
35756         * modules/dirname-tests (Depends-on): Add progname.
35757         * tests/test-dirname.c (program_name): Delete.
35758
35759         mkdir: make safe for libraries
35760         * modules/mkdir (Depends-on): Drop xalloc.
35761         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
35762         exit.
35763
35764         tests: avoid some compiler warnings
35765         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
35766         literals.
35767         * tests/test-memchr.c (main): Avoid type mismatch.
35768         * tests/test-arpa_inet.c (main): Avoid unused parameters.
35769         * tests/test-base64.c (main): Likewise.
35770         * tests/test-getdelim.c (main): Likewise.
35771         * tests/test-gethostname.c (main): Likewise.
35772         * tests/test-getline.c (main): Likewise.
35773         * tests/test-netinet_in.c (main): Likewise.
35774         * tests/test-select.c (open_server_socket, main): Likewise.
35775         * tests/test-select-stdin.c (main): Likewise.
35776         * tests/test-sockets.c (main): Likewise.
35777         * tests/test-strsignal.c (main): Likewise.
35778         * tests/test-sys_select.c (main): Likewise.
35779         * tests/test-sys_socket.c (main): Likewise.
35780         * tests/test-u64.c (main): Likewise.
35781         * tests/test-xfprintf-posix.c (main): Likewise.
35782         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
35783
35784         sockets: avoid compiler warning
35785         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
35786
35787         maint: detect usage(1) and other suspicious exits
35788         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
35789
35790 2009-10-29  Jim Meyering  <meyering@redhat.com>
35791
35792         timespec: long-to-int truncation could make timespec_cmp malfunction
35793         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
35794         a multiple of 2^32 nanoseconds as no difference.
35795
35796 2009-10-28  Jim Meyering  <meyering@redhat.com>
35797
35798         fprintftime: wrap macro code argument in "do {...} while(0)"
35799         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
35800         cpy macro must be a statement that can be followed by a semicolon.
35801         Now that the else clause contains a comment and is hence longer
35802         than one line, I require curly braces.  That in turn requires
35803         that we wrap this code block in the standard do...while(0).
35804
35805         fprintftime: remove stray semicolon from previous change
35806         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
35807
35808         fprintftime: avoid a warning about ignored fwrite return value
35809         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
35810         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
35811         that is unsafe.
35812         * modules/fprintftime (Depends-on): Add ignore-value.
35813
35814         exclude: avoid an unwarranted warning
35815         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
35816
35817 2009-10-27  Eric Blake  <ebb9@byu.net>
35818
35819         fseek: avoid compilation failure when fflush is replaced
35820         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
35821         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
35822         module is in use.
35823         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
35824         module is not in use; since REPLACE_FSEEK worked otherwise.
35825         (GNULIB_FTELLO): Likewise for ftell.
35826         Reported by Ian Beckwith and others.
35827
35828 2009-10-27  Bruno Haible  <bruno@clisp.org>
35829
35830         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
35831         Reported by Jim Meyering.
35832
35833 2009-10-27  Jim Meyering  <jim@meyering.net>
35834             Bruno Haible  <bruno@clisp.org>
35835
35836         Avoid warning despite dropping the return value of fwrite.
35837         * lib/unicodeio.c: Include ignore-value.h.
35838         (fwrite_success_callback): Explicitly ignore fwrite's return value.
35839         * modules/unicodeio (Depends-on): Add ignore-value.
35840
35841 2009-10-26  Eric Blake  <ebb9@byu.net>
35842
35843         areadlinkat: fix fallback path
35844         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
35845         pointer and zero.
35846
35847 2009-10-22  Pádraig Brady  <P@draigBrady.com>
35848
35849         Use a better IO block size for modern systems
35850         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
35851         * lib/md2.c: Likewise.
35852         * lib/md4.c: Likewise.
35853         * lib/md5.c: Likewise.
35854         * lib/sha1.c: Likewise.
35855         * lib/sha256.c: Likewise.
35856         * lib/sha512.c: Likewise.
35857
35858 2009-10-22  Eric Blake  <ebb9@byu.net>
35859
35860         tests: avoid several compiler warnings
35861         * tests/test-getcwd.c (main): Avoid buffer underflow.
35862         * tests/test-getdate.c (main): String literals are not safe with
35863         putenv, so use setenv.  Declare unused argument.
35864         * modules/getdate-tests (Depends-on): Add setenv.
35865         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
35866         problems with string literals in char *.
35867         * tests/test-hash.c (main): Avoid shadowing declaration.
35868         (insert_new): Treat string literals as char const *.
35869         * tests/test-getopt.h (test_getopt): Likewise.
35870         (getopt_loop): Alter types to minimize casting elsewhere.
35871         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
35872         (test_getopt_long_posix): Likewise.
35873         (do_getopt_long): Add wrapper to minimize casting.
35874         * tests/test-atexit.c (clear_temp_file): Use void.
35875         * tests/test-areadlink-with-size.c (main): Declare unused
35876         arguments.
35877         * tests/test-areadlink.c (main): Likewise.
35878         * tests/test-areadlinkat-with-size.c (main): Likewise.
35879         * tests/test-areadlinkat.c (main): Likewise.
35880         * tests/test-canonicalize-lgpl.c (main): Likewise.
35881         * tests/test-canonicalize.c (main): Likewise.
35882         * tests/test-dirent-safer.c (main): Likewise.
35883         * tests/test-dirname.c (main): Likewise.
35884         * tests/test-dup2.c (main): Likewise.
35885         * tests/test-fchdir.c (main): Likewise.
35886         * tests/test-fcntl-h.c (main): Likewise.
35887         * tests/test-fcntl-safer.c (main): Likewise.
35888         * tests/test-fdopendir.c (main): Likewise.
35889         * tests/test-fdutimensat.c (main): Likewise.
35890         * tests/test-fflush.c (main): Likewise.
35891         * tests/test-filenamecat.c (main): Likewise.
35892         * tests/test-filevercmp.c (main): Likewise.
35893         * tests/test-fopen-safer.c (main): Likewise.
35894         * tests/test-fopen.c (main): Likewise.
35895         * tests/test-fpending.c (main): Likewise.
35896         * tests/test-fpurge.c (main): Likewise.
35897         * tests/test-freading.c (main): Likewise.
35898         * tests/test-fstatat.c (main): Likewise.
35899         * tests/test-fsync.c (main): Likewise.
35900         * tests/test-futimens.c (main): Likewise.
35901         * tests/test-getndelim2.c (main): Likewise.
35902         * tests/test-gettimeofday.c (main): Likewise.
35903         * tests/test-getopt.c (main): Likewise.
35904         * tests/test-i-ring.c (main): Likewise.
35905         * tests/test-inttypes.c (main): Likewise.
35906         * tests/test-link.c (main): Likewise.
35907         * tests/test-lstat.c (main): Likewise.
35908         * tests/test-math.c (main): Likewise.
35909         * tests/test-md5.c (main): Likewise.
35910         * tests/test-memchr2.c (main): Likewise.
35911         * tests/test-memrchr.c (main): Likewise.
35912         * tests/test-mkdir.c (main): Likewise.
35913         * tests/test-mkdirat.c (main): Likewise.
35914         * tests/test-mkfifoat.c (main): Likewise.
35915         * tests/test-open.c (main): Likewise.
35916         * tests/test-openat-safer.c (main): Likewise.
35917         * tests/test-openat.c (main): Likewise.
35918         * tests/test-quotearg.c (main): Likewise.
35919         * tests/test-rawmemchr.c (main): Likewise.
35920         * tests/test-readlink.c (main): Likewise.
35921         * tests/test-remove.c (main): Likewise.
35922         * tests/test-rename.c (main): Likewise.
35923         * tests/test-renameat.c (main): Likewise.
35924         * tests/test-rmdir.c (main): Likewise.
35925         * tests/test-sha1.c (main): Likewise.
35926         * tests/test-signal.c (main): Likewise.
35927         * tests/test-sigaction.c (main): Likewise.
35928         * tests/test-stat.c (main): Likewise.
35929         * tests/test-stat-time.c (main): Likewise.
35930         * tests/test-stddef.c (main): Likewise.
35931         * tests/test-stdint.c (main): Likewise.
35932         * tests/test-stdio.c (main): Likewise.
35933         * tests/test-stdlib.c (main): Likewise.
35934         * tests/test-strchrnul.c (main): Likewise.
35935         * tests/test-strerror.c (main): Likewise.
35936         * tests/test-string.c (main): Likewise.
35937         * tests/test-strtod.c (main): Likewise.
35938         * tests/test-strverscmp.c (main): Likewise.
35939         * tests/test-symlink.c (main): Likewise.
35940         * tests/test-symlinkat.c (main): Likewise.
35941         * tests/test-sys_stat.c (main): Likewise.
35942         * tests/test-sys_time.c (main): Likewise.
35943         * tests/test-time.c (main): Likewise.
35944         * tests/test-unistd.c (main): Likewise.
35945         * tests/test-unlink.c (main): Likewise.
35946         * tests/test-unlinkat.c (main): Likewise.
35947         * tests/test-utimens.c (main): Likewise.
35948         * tests/test-utimensat.c (main): Likewise.
35949         * tests/test-version-etc.c (main): Likewise.
35950         * tests/test-wchar.c (main): Likewise.
35951         * tests/test-wctype.c (main): Likewise.
35952         * tests/test-xprintf-posix.c (main): Likewise.
35953         * tests/test-posixtm.c (main): Likewise.
35954         (STREQ): Delete unused macro.
35955         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
35956         shadowed variables.
35957         * tests/test-memchr.c (main): Likewise.
35958
35959 2009-10-21  Eric Blake  <ebb9@byu.net>
35960
35961         areadlinkat: avoid failure on older glibc
35962         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
35963         rather than mis-comparing 0 against FUNC_RESULT of char*.
35964
35965 2009-10-21  Bruno Haible  <bruno@clisp.org>
35966
35967         * modules/stpncpy (License): Relicense under LGPLv2+.
35968         Reported by David Lutterkort <lutter@redhat.com>.
35969
35970 2009-10-20  Eric Blake  <ebb9@byu.net>
35971
35972         utimensat: work around Solaris 9 bug
35973         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
35974         has trailing slash bugs.
35975         * tests/test-lutimens.h (test_lutimens): Enhance test.
35976         * tests/test-utimens.h (test_utimens): Likewise.
35977         * doc/posix-functions/utime.texi (utime): Enhance documentation.
35978         * doc/posix-functions/utimes.texi (utimes): Likewise.
35979         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
35980         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
35981         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
35982         * doc/posix-functions/futimens.texi (futimens): Likewise.
35983
35984         fdutimensat: new module
35985         * modules/fdutimensat: New file.
35986         * lib/fdutimensat.c (fdutimensat): Likewise.
35987         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
35988         * MODULES.html.sh (File system functions): Mention module.
35989         * modules/fdutimensat-tests: New test.
35990         * tests/test-fdutimensat.c: Likewise.
35991
35992         doc: regenerate INSTALL
35993         * doc/INSTALL: Reflect recent autoconf update.
35994         * doc/INSTALL.ISO: Likewise.
35995         * doc/INSTALL.UTF-8: Likewise.
35996
35997 2009-10-20  Pádraig Brady  <P@draigBrady.com>
35998
35999         acl: warn if ACL support is not detected
36000         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
36001
36002 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
36003
36004         * lib/nproc.h: Add extern "C" block for C++.
36005
36006 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
36007             Bruno Haible  <bruno@clisp.org>
36008
36009         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
36010         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
36011         * doc/posix-functions/isalpha.texi: Likewise.
36012         * doc/posix-functions/isblank.texi: Likewise.
36013         * doc/posix-functions/iscntrl.texi: Likewise.
36014         * doc/posix-functions/isdigit.texi: Likewise.
36015         * doc/posix-functions/isgraph.texi: Likewise.
36016         * doc/posix-functions/islower.texi: Likewise.
36017         * doc/posix-functions/isprint.texi: Likewise.
36018         * doc/posix-functions/ispunct.texi: Likewise.
36019         * doc/posix-functions/isspace.texi: Likewise.
36020         * doc/posix-functions/isupper.texi: Likewise.
36021         * doc/posix-functions/isxdigit.texi: Likewise.
36022
36023 2009-10-18  Bruno Haible  <bruno@clisp.org>
36024
36025         Tests for module 'isblank'.
36026         * modules/isblank-tests: New file.
36027         * tests/test-isblank.c: New file.
36028
36029         New module 'isblank'.
36030         * lib/isblank.c: New file.
36031         * m4/isblank.m4: New file.
36032         * modules/isblank: New file.
36033         * doc/posix-functions/isblank.texi: Mention the new module.
36034
36035 2009-10-18  Bruno Haible  <bruno@clisp.org>
36036
36037         New module 'ctype'.
36038         * lib/ctype.in.h: New file.
36039         * m4/ctype.m4: New file.
36040         * modules/ctype: New file.
36041         * doc/posix-headers/ctype.texi: Mention the new module.
36042
36043 2009-10-18  Jim Meyering  <meyering@redhat.com>
36044
36045         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
36046         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
36047         right after its initialization, rather than farther down.
36048         Keeping these in close proximity makes it easier to ensure
36049         that each such variable is initialized.  E.g.,
36050
36051             LIB_CLOCK_GETTIME=
36052             AC_SUBST([LIB_CLOCK_GETTIME])
36053
36054         This change also increments these serial numbers.
36055         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
36056         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
36057         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36058
36059 2009-10-18  Bruno Haible  <bruno@clisp.org>
36060
36061         Don't let environment variables perturb build.
36062         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
36063         (gl_PREREQ_GETHRXTIME): ... not here.
36064
36065 2009-10-18  Bruno Haible  <bruno@clisp.org>
36066
36067         Avoid symlink attack in localcharset module.
36068         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
36069         (O_NOFOLLOW): Define fallback.
36070         (get_charset_aliases): Don't open the file if it is a symbolic link.
36071         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
36072         gl_FCNTL_H.
36073         (gl_FCNTL_H): Require it.
36074         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
36075         * modules/localcharset (Files): Add m4/fcntl_h.m4.
36076         Reported by Fergal Glynn <fglynn@veracode.com>.
36077
36078 2009-10-18  Bruno Haible  <bruno@clisp.org>
36079
36080         Implement nproc for mingw.
36081         * lib/nproc.c: Include <windows.h>
36082         (num_processors): On native Windows platforms, try GetSystemInfo.
36083
36084 2009-10-18  Bruno Haible  <bruno@clisp.org>
36085
36086         Implement nproc for IRIX.
36087         * lib/nproc.c: Include <sys/sysmp.h>.
36088         (num_processors): On IRIX systems, try sysmp.
36089         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
36090
36091 2009-10-18  Bruno Haible  <bruno@clisp.org>
36092
36093         Implement nproc for HP-UX.
36094         * lib/nproc.c: Include <sys/pstat.h>
36095         (num_processors): On HP-UX systems, try pstat_getdynamic.
36096         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
36097         pstat_getdynamic.
36098
36099 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
36100             Bruno Haible  <bruno@clisp.org>
36101
36102         Implement nproc for NetBSD, OpenBSD.
36103         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
36104         (ARRAY_SIZE): New macro.
36105         (num_processors): On BSD systems, try sysctl of HW_NCPU.
36106         * m4/nproc.m4: New file.
36107         * modules/nproc (Files): Add m4/nproc.m4.
36108         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
36109         (Makefile.am): Instead, augment lib_SOURCES.
36110
36111 2009-10-18  Bruno Haible  <bruno@clisp.org>
36112
36113         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
36114         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
36115         sys/param.h.
36116
36117 2009-10-16  Eric Blake  <ebb9@byu.net>
36118
36119         utimensat: new module
36120         * modules/utimensat: New file.
36121         * lib/utimensat.c (utimensat): Likewise.
36122         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36123         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
36124         so we can work around Linux bugs.
36125         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36126         * modules/sys_stat (Makefile.am): Substitute them.
36127         * lib/sys_stat.in.h (utimensat): Declare it.
36128         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36129         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36130         * modules/utimensat-tests: New test.
36131         * tests/test-utimensat.c: Likewise.
36132
36133         utimens: let lutimens work on non-symlinks
36134         * lib/utimens.c (lutimens): Fall back to utimens rather than
36135         failing with ENOSYS, when file is not a symlink.
36136         (utimens): Reduce redirection.
36137         * tests/test-lutimens.h (test_lutimens): Update test to cover
36138         non-symlinks.
36139         * tests/test-utimens.h (test_utimens): Update test to cover
36140         symlinks.
36141         * tests/test-utimens.c (main): Update caller.
36142
36143         utimens: cache whether utimensat syscall works
36144         * lib/utimens.c (utimensat_works_really): New cache variable.
36145         (fdutimens, lutimens): Use it to avoid failing syscall.
36146
36147         test-stat-time, test-utimens: improve portability
36148         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
36149         ext4 on alpha, and for cygwin.
36150         * tests/test-utimens-common.h: New file.
36151         (nap): Factor delays into single function.
36152         * tests/test-lutimens.h (test_lutimens): Use new header.
36153         * tests/test-futimens.h (test_futimens): Likewise.
36154         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
36155         timestamps to occur from same machine, as was done previously for
36156         test_utimens.
36157         * modules/utimens-tests (Files): Ship new file.
36158         * modules/futimens-tests (Files): Likewise.
36159         Reported in part by Jim Meyering.
36160
36161         sys_stat: sort replacement declarations
36162         * lib/sys_stat.in.h: Sort declarations.
36163         * lib/futimens.c (futimens): Fix typo.
36164
36165 2009-10-15  Jim Meyering  <meyering@redhat.com>
36166
36167         don't let environment settings perturb build
36168         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
36169         could cause a configure-time and/or build-time malfunction.
36170         Typically, a configure-time function-in-library test is performed
36171         via code like this:
36172
36173           LIB_VAR=
36174           AC_SUBST([LIB_VAR])
36175           prefix_saved_LIBS=$LIBS
36176             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
36177                        [test "$ac_cv_search_FUNC" = "none required" ||
36178                         LIB_VAR=$ac_cv_search_FUNC])
36179           LIBS=$prefix_saved_LIBS
36180
36181         However, in each of the files affected by this change, the LIB_VAR=
36182         initialization was omitted.  Thus, when set in the environment, its
36183         value would propagate into generated Makefiles when FUNC is not found
36184         in LIB_NAME.
36185         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
36186         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
36187         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36188
36189 2009-10-14  Eric Blake  <ebb9@byu.net>
36190
36191         fchdir: avoid infinite recursion in mingw
36192         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
36193         recursing.
36194
36195         test-stat-time: port to mingw
36196         * tests/test-stat-time.c (force_unlink): Return a value.
36197         (test_ctime) [W32]: Fix compilation error.
36198         (nap): Don't call usleep with too large an argument.  Use
36199         force_unlink.
36200         * doc/pastposix-functions/usleep.texi (usleep): Document the
36201         portability issue.
36202
36203 2009-10-13  Jim Meyering  <meyering@redhat.com>
36204
36205         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
36206         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
36207         * modules/pipe-filter-ii: Likewise.
36208         * modules/sys_socket-tests: Likewise.
36209         * modules/tsearch-tests: Likewise.
36210         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
36211         (check): Depend on it.
36212
36213 2009-10-12  Eric Blake  <ebb9@byu.net>
36214
36215         utimens-tests: port to NFS file systems
36216         * tests/test-utimens.h (test_utimens): Refactor utimecmp
36217         comparisons to avoid spurious failures from timestamp drift
36218         between NFS machines.
36219
36220 2009-10-12  Eric Blake  <ebb9@byu.net>
36221
36222         stat-time-tests: minor cleanups
36223         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
36224         * tests/test-stat-time.c (nap): Separate assignment from call.
36225         Suggested by Paolo Bonzini and Bruno Haible.
36226
36227         sys_stat: guarantee struct timespec
36228         * lib/sys_stat.in.h (includes): Always include <time.h>
36229         * modules/sys_stat (Depends-on): Add time.
36230         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
36231         mode_t permission values.
36232         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
36233         get at subsecond timestamps.
36234
36235 2009-10-10  Eric Blake  <ebb9@byu.net>
36236
36237         futimens: new module
36238         * modules/futimens: New file.
36239         * lib/futimens.c (futimens): Likewise.
36240         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
36241         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
36242         we can work around Linux bugs.
36243         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
36244         * modules/sys_stat (Makefile.am): Substitute them.
36245         * lib/sys_stat.in.h (futimens): Declare it.
36246         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36247         * doc/posix-functions/futimens.texi (futimens): Likewise.
36248         * modules/futimens-tests: New test.
36249         * tests/test-futimens.c: Likewise.
36250
36251         utimens: introduce fdutimens
36252         * lib/utimens.h (fdutimens): New prototype.
36253         * lib/utimens.c (gl_futimens): Move guts...
36254         (fdutimens): ...to new interface.
36255         * tests/test-utimens.c (do_fdutimens): Use it.
36256
36257         utimens: add UTIME_NOW and UTIME_OMIT support
36258         * lib/utimens.c (validate_timespec, update_timespec): New helper
36259         functions.
36260         (gl_futimens, lutimens): Use them.
36261         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
36262         stdbool, sys_stat.
36263         (Link): Mention resulting library dependency.
36264         * modules/utimecmp (Link): Likewise.
36265         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
36266         (Makefile.am): Pick up library dependency.
36267         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
36268         definition.
36269         * tests/test-sys_stat.c: Test the definitions.
36270         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
36271         * NEWS: Document library dependency.
36272
36273         utimecmp: support symlink timestamps
36274         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
36275         hashing when possible.  Use pathconf when available.
36276         (SYSCALL_RESOLUTION): Recognize tighter resolution.
36277         * modules/utimecmp (Depends-on): Add lstat.
36278
36279         utimens: add lutimens interface
36280         * lib/utimens.c (lutimens): New function.
36281         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
36282         * lib/utimens.h (lutimens): Declare new interface.
36283         * tests/test-utimens.c (main): Enhance test.
36284         * tests/test-lutimens.h (test_lutimens): New file.
36285         * modules/utimens-tests (Files): Distribute it.
36286         (Depends-on): Add symlink.
36287         (configure.ac): Check for usleep.
36288
36289         utimens: validate futimens usage
36290         * lib/utimens.c (gl_futimens): Require valid fd up front, using
36291         fewer syscalls on failure later on.  Avoid compiler warning on
36292         mingw.
36293         * modules/utimens (Depends-on): Add dup2.
36294
36295         utimens: add test
36296         * modules/utimens-tests: New test.
36297         * tests/test-utimens.h: New file.
36298         * tests/test-futimens.h: Likewise.
36299         * tests/test-utimens.c: Likewise.
36300
36301         doc: mention timestamp portability issues
36302         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
36303         instead.
36304         * doc/posix-functions/utime.texi (utime): Likewise.
36305         * doc/posix-functions/utimes.texi (utimes): Likewise.
36306         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
36307         instead.
36308         * doc/posix-functions/futimens.texi (futimens): Mention utimens
36309         module.
36310         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
36311         Mention weakness with symlink timestamps.
36312         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
36313         to utimensat/futimens instead.
36314         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
36315
36316         test-dup2: enhance test
36317         * tests/test-dup2.c (main): Also check AT_FDCWD.
36318
36319         test-stat-time: avoid more spurious failures
36320         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
36321         xfs; and avoid race if the two timestamps cross quantization edge.
36322
36323         relocatable: prefer 'file system' over 'filesystem'
36324         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
36325         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
36326         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
36327         * doc/relocatable.texi (Enabling Relocatability): Likewise.
36328         * lib/relocatable.c (compute_curr_prefix): Likewise.
36329
36330 2009-10-10  Jim Meyering  <meyering@redhat.com>
36331
36332         stat-time-tests: check for the usleep function
36333         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
36334
36335 2009-10-10  Bruno Haible  <bruno@clisp.org>
36336
36337         * modules/xnanosleep: Put the Link section after the Include section.
36338
36339 2009-10-09  Eric Blake  <ebb9@byu.net>
36340
36341         dup2: work around FreeBSD 6.1 bug
36342         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
36343         * doc/posix-functions/dup2.texi (dup2): Document it.
36344         Reported by Nelson H. F. Beebe and Jim Meyering.
36345
36346         test-stat-time: port to buggy NFS clients
36347         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
36348         (test_ctime): Also skip test if mtime and ctime are skewed.
36349
36350         maint: prefer 'file system' over 'filesystem'
36351         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
36352         * doc/posix-functions/lstat.texi (lstat): Likewise.
36353         * lib/file-has-acl.c (file_has_acl): Likewise.
36354         * lib/fwriteerror.c [TEST]: Likewise.
36355         * tests/test-areadlink.h (test_areadlink): Likewise.
36356         * tests/test-areadlinkat-with-size.c (main): Likewise.
36357         * tests/test-areadlinkat.c (main): Likewise.
36358         * tests/test-canonicalize-lgpl.c (main): Likewise.
36359         * tests/test-canonicalize.c (main): Likewise.
36360         * tests/test-fstatat.c (main): Likewise.
36361         * tests/test-linkat.c (main): Likewise.
36362         * tests/test-lstat.h (test_lstat_func): Likewise.
36363         * tests/test-mkdir.h (test_mkdir): Likewise.
36364         * tests/test-readlink.h (test_readlink): Likewise.
36365         * tests/test-remove.c (main): Likewise.
36366         * tests/test-rename.h (test_rename): Likewise.
36367         * tests/test-renameat.c (main): Likewise.
36368         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36369         * tests/test-symlink.h (test_symlink): Likewise.
36370         * tests/test-symlinkat.c (main): Likewise.
36371         * tests/test-unlink.h (test_unlink_func): Likewise.
36372         * tests/test-unlinkat.c (main): Likewise.
36373
36374         maint: make realtime library usage explicit
36375         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
36376         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
36377         * modules/settime (Link): Likewise.
36378         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
36379
36380         test-stat-time: speed up execution
36381         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
36382         warning on mingw.
36383         (nap): New helper function.
36384         (prepare_test): Use it to reduce sleep time.
36385         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
36386         execution.
36387         * modules/stat-time-tests (configure.ac): Check for usleep.
36388
36389 2009-10-09  Jim Meyering  <meyering@redhat.com>
36390
36391         selinux-h: always use getfilecon wrappers
36392         * lib/getfilecon.c: New file.
36393         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
36394         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
36395         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
36396         (fgetfilecon): Provide a stub.
36397         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
36398         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
36399         file unconditionally.
36400         When <selinux/selinux.h> is found, arrange to use wrappers.
36401         * modules/selinux-h (Files): Add getfilecon.c.
36402         (Makefile.am): Substitute include-next-related bits
36403         into the now-always-generated selinux/selinux.h file.
36404         * doc/glibc-functions/lgetfilecon.texi: New file.
36405         * doc/glibc-functions/fgetfilecon.texi: New file.
36406         * doc/glibc-functions/getfilecon.texi: New file.
36407         * doc/glibc-functions/getfilecon-desc.texi: New file.
36408         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
36409         which to pull in the new files.
36410         * MODULES.html.sh (Misc): Add selinux-h.
36411
36412 2009-10-08  Jim Meyering  <meyering@redhat.com>
36413
36414         unistd: fix comment typo
36415         * lib/unistd.in.h (euidaccess): Fix a comment typo.
36416
36417 2009-10-08  Eric Blake  <ebb9@byu.net>
36418
36419         areadlink: use SIZE_MAX consistently
36420         * modules/areadlink (Depends-on): Add stdint.
36421         * modules/areadlink-with-size (Depends-on): Likewise.
36422         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
36423         gives NULL; drop sys/types, since unistd gives size_t; and add
36424         stdint for SIZE_MAX.
36425         (SIZE_MAX): Rely on headers.
36426         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
36427         and add stdint.
36428         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
36429         (SIZE_MAX): Likewise.
36430         (INITIAL_BUF_SIZE): Turn into enum.
36431         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
36432
36433 2009-10-08  Jim Meyering  <meyering@redhat.com>
36434
36435         areadlinkat: avoid compilation failure
36436         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
36437         Fix typo in comment.
36438
36439 2009-10-07  Eric Blake  <ebb9@byu.net>
36440
36441         areadlinkat-with-size: new module
36442         * modules/areadlinkat-with-size: New module.
36443         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
36444         * lib/areadlink.h (areadlinkat): Declare it.
36445         * MODULES.html.sh (File system functions): Mention it.
36446         * modules/areadlinkat-with-size-tests: New test.
36447         * tests/test-areadlinkat-with-size.c: New file.
36448
36449         xreadlinkat: new module
36450         * modules/xreadlinkat: New module.
36451         * lib/xreadlinkat.c (xreadlinkat): New file.
36452         * lib/xreadlink.h (xreadlinkat): Declare it.
36453         * MODULES.html.sh (File system functions): Mention it.
36454
36455         areadlinkat: new module
36456         * lib/at-func.c (FUNC_FAIL): New define.
36457         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
36458         * modules/areadlinkat: New module.
36459         * lib/linkat.c (areadlinkat): Move...
36460         * lib/areadlinkat.c (areadlinkat): ...to new file.
36461         * lib/areadlink.h (areadlinkat): Declare it.
36462         * modules/linkat (Depends-on): Add areadlinkat.
36463         * MODULES.html.sh (File system functions): Mention it.
36464         * modules/areadlinkat-tests: New test.
36465         * tests/test-areadlinkat.c: New file.
36466
36467         areadlink, areadlink-with-size: add tests
36468         * modules/areadlink-tests: New test.
36469         * modules/areadlink-with-size-tests: Likewise.
36470         * tests/test-areadlink.h: New file.
36471         * tests/test-areadlink.c: Likewise.
36472         * tests/test-areadlink-with-size.c: Likewise.
36473
36474         maint: minor cleanups
36475         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
36476         _UNUSED_PARAMETER_ instead.
36477         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
36478         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
36479         * modules/linkat-tests (Files): Distribute test-link.h.
36480
36481         openat, utimens: whitespace cleanup
36482         * lib/openat.c: Prefer space throughout, rather than mix of 8
36483         spaces vs. tabs.
36484         * lib/at-func.c: Likewise.
36485         * lib/utimens.c: Likewise.
36486
36487         openat: avoid using wrong fd
36488         * lib/openat.c (openat_permissive): Reject user's fd if saving the
36489         working directory chooses same fd.
36490         * lib/at-func.c (AT_FUNC_NAME): Likewise.
36491
36492         mkdir, mkdirat: fix cygwin 1.5.x bug
36493         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
36494         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
36495         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
36496         bug.
36497         (gl_PREREQ_MKDIR): Delete unused macro.
36498         * modules/mkdir (Files): Track file rename.
36499         (configure.ac): Update macro name.
36500         * modules/openat (Depends-on): Add mkdir.
36501         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
36502
36503         mkdir, mkdirat: add tests
36504         * modules/mkdir-tests: New test.
36505         * tests/test-mkdir.h: New file.
36506         * tests/test-mkdir.c: Likewise.
36507         * tests/test-mkdirat.c: Likewise.
36508         * modules/openat-tests (Files): Add new files.
36509         (Makefile.am): Run new test.
36510
36511 2009-10-06  Eric Blake  <ebb9@byu.net>
36512
36513         doc: tweak *at function documentation
36514         * doc/posix-functions/faccessat.texi (faccessat): Mention
36515         known issue with replacement.
36516         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
36517         * doc/posix-functions/linkat.texi (linkat): Likewise.
36518         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
36519         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
36520         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36521         * doc/posix-functions/renameat.texi (renameat): Likewise.
36522         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
36523
36524         openat: fix GNU/Hurd bug in unlinkat
36525         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
36526         broken.
36527         * doc/posix-functions/unlink.texi (unlink): Document this.
36528         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
36529
36530         fdopendir: fix GNU/Hurd bug
36531         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
36532         allowing non-directory fds.
36533         * lib/fdopendir.c (rpl_fdopendir): Work around it.
36534         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
36535         * modules/dirent (Makefile.am): Substitute it.
36536         * lib/dirent.in.h (fdopendir): Declare replacement.
36537         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
36538         * tests/test-fdopendir.c (main): Test something other than
36539         /dev/null, since on Hurd that behaves like a directory.
36540
36541         test-symlink: port to GNU/Hurd
36542         * tests/test-symlink.h (test_symlink): Relax expected errno.
36543
36544         doc: tweak more cygwin information
36545         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
36546         now compatible with glibc.
36547         * doc/posix-functions/getopt.texi (getopt): Likewise.
36548
36549         getopt-gnu: add another test
36550         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
36551         guarantee behavior relied on by m4.
36552         * tests/test-getopt.c (main): Use it.
36553         * modules/getopt-posix-tests (Depends-on): Add setenv.
36554         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
36555
36556         getopt: fix compilation on darwin
36557         * lib/getopt.in.h (includes): Leave breadcrumbs during system
36558         include.
36559         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
36560         Reported by Ludovic Courtès.
36561
36562 2009-10-06  Bruno Haible  <bruno@clisp.org>
36563
36564         * modules/size_max (Description): Discourage its use.
36565         Reported by Simon Josefsson.
36566
36567 2009-10-06  Jim Meyering  <meyering@redhat.com>
36568
36569         linkat: avoid compilation failure
36570         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
36571
36572 2009-10-05  Eric Blake  <ebb9@byu.net>
36573
36574         linkat: support Linux 2.6.17
36575         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
36576         linkat on Linux, but allow cache variable override.
36577         * lib/linkat.c (rpl_linkat): Define override.
36578         * modules/linkat (Depends-on): Add symlinkat.
36579         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
36580         * modules/unistd (Makefile.am): Substitute it.
36581         * lib/unistd.in.h (linkat): Declare replacement.
36582         Reported by Pádraig Brady.
36583
36584         quotearg: port test to systems with C.UTF-8 locale
36585         * tests/test-quotearg.c (struct result_strings): Add another
36586         member, differentiating between C.ASCII and C.UTF-8 handling.
36587         (compare_strings): Add parameter.
36588         (main): Adjust all callers.
36589
36590         getopt: avoid clash with FreeBSD _getopt_internal
36591         * lib/getopt.in.h (_getopt_internal): Override the name.
36592         * lib/getopt_int.h (includes): Pick up any overrides.
36593         Reported by Reuben Thomas.
36594
36595         hash: allow C89 compilation
36596         * lib/hash.c (check_tuning): Move declaration before statement.
36597         Reported by Reuben Thomas.
36598
36599 2009-10-05  Karl Berry  <karl@gnu.org>
36600
36601         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
36602
36603 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
36604             Bruno Haible  <bruno@clisp.org>
36605
36606         * lib/uname.c (uname): Use a table-driven algorithm to compute
36607         Windows NT versions.
36608
36609 2009-10-04  Bruno Haible  <bruno@clisp.org>
36610
36611         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
36612         program_invocation_short_name.
36613         * modules/progname (configure.ac): Test for presence of
36614         program_invocation_short_name.
36615         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
36616
36617 2009-10-04  Bruno Haible  <bruno@clisp.org>
36618
36619         * lib/progname.c (set_program_name): Fix comment.
36620         Reported by Jim Meyering.
36621
36622 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
36623             Bruno Haible  <bruno@clisp.org>
36624
36625         * lib/uname.c: Include <string.h>.
36626         (uname): Do only one call to GetVersionEx in the common case.
36627
36628 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
36629             Bruno Haible  <bruno@clisp.org>
36630
36631         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
36632         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
36633         (uname): Add support for Windows CE and various non-x86 CPU types.
36634
36635 2009-10-03  Bruno Haible  <bruno@clisp.org>
36636
36637         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
36638         invocation to tests/configure.ac.
36639         Reported by Ian Beckwith <ianb@erislabs.net>.
36640
36641 2009-10-02  Eric Blake  <ebb9@byu.net>
36642
36643         fchdir: avoid compiler warning
36644         * lib/fchdir.c (canonicalize_file_name)
36645         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
36646
36647         test-open: support mingw errno values
36648         * tests/test-open.h (test_open): Relax test.
36649         * tests/test-fopen.h (test_fopen): Likewise.
36650         * tests/test-openat-safer.c (main): Likewise.
36651
36652         open: fix opening directory on mingw
36653         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
36654
36655         test-open: on GNU/Hurd, /dev/null is a directory
36656         * tests/test-fopen.h (main): Rename...
36657         (test_fopen): ...to this.  Use a guaranteed non-directory when
36658         confirming open behavior on trailing slash.
36659         * tests/test-openat-safer.c (main): Likewise.
36660         * tests/test-open.h (main): Likewise....
36661         (test_open): ...to this.
36662         * tests/test-fopen.c (main): Adjust caller.
36663         * tests/test-fopen-safer.c (main): Likewise.
36664         * tests/test-open.c (main): Likewise.
36665         * tests/test-fcntl-safer.c (main): Likewise.
36666         Reported by Samuel Thibault.
36667
36668         rename, fchdir: don't ignore chdir failure
36669         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
36670         * lib/rename.c (rpl_rename) [W32]: Likewise.
36671         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
36672         an empty destination directory if source cannot be renamed,
36673         although there is still possibility for failure.
36674         * doc/posix-functions/rename.texi (rename): Document the race.
36675         Reported by Jim Meyering.
36676
36677         maint: cleanup whitespace in recent commits
36678         * lib/rename.c (rpl_rename): Remove tabs.
36679         * tests/test-link.h (test_link): Likewise.
36680         * lib/fchdir.c (get_name): Likewise.
36681         Reported by Jim Meyering.
36682
36683 2009-10-02  Ben Pfaff  <blp@gnu.org>
36684
36685         relocatable-prog-wrapper: Add missing dependency on
36686         double-slash-root.
36687         * modules/relocatable-prog-wrapper: Add dependency.
36688         Reported by Ian Beckwith <ianb@erislabs.net>.
36689
36690 2009-10-02  Eric Blake  <ebb9@byu.net>
36691
36692         renameat: fix Solaris bugs
36693         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
36694         needed fixing.
36695         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
36696         * modules/stdio (Makefile.am): Substitute it.
36697         * lib/stdio.in.h (renameat): Declare replacement.
36698         * lib/renameat.c (rpl_renameat): Implement fix.
36699
36700         renameat: new module
36701         * modules/renameat: New file.
36702         * lib/renameat.c (renameat): Likewise.
36703         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
36704         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
36705         * modules/stdio (Makefile.am): Substitute them.
36706         * lib/stdio.in.h (renameat): Declare it.
36707         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36708         * doc/posix-functions/renameat.texi (renameat): Likewise.
36709         * modules/renameat-tests: New test.
36710         * tests/test-renameat.c: Likewise.
36711
36712         rename: fix mingw bugs
36713         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
36714         directory overwrite bugs.
36715
36716         rename: fix another cygwin 1.5 bug
36717         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
36718         checks.
36719         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
36720         unnecessary cygwin workarounds.  Also work around bug with moving
36721         full directory onto an empty one.
36722         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
36723
36724         rename-dest-slash: merge into rename module
36725         * modules/rename-dest-slash (Status): Mark obsolete.
36726         (Depends-on): Add rename.
36727         (Files): Let rename do it all.
36728         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
36729         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
36730         * m4/rename-dest-slash.m4: ...so this file can be deleted.
36731         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
36732         * lib/rename.c (rpl_rename): Update comments.
36733
36734         rename: fix cygwin 1.5.x bugs
36735         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
36736         * lib/rename.c (rpl_rename): Work around them.
36737         * modules/rename (Depends-on): Add same-inode.
36738
36739         rename: fix Solaris 10 bug
36740         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
36741         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
36742         was the only bug.
36743
36744         rename: fix Solaris 9 bug
36745         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
36746         on non-directory.  Avoid calling exit.
36747         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
36748         strdup.
36749         * modules/rename-tests (Depends-on): Drop lstat.
36750         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
36751         (gl_PREREQ_RENAME): Delete unused macro.
36752
36753         rename-dest-slash: fix NetBSD bug
36754         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
36755         links.
36756         * modules/rename-dest-slash (Depends-on): Add same-inode.
36757
36758         rename-tests: new test, exposes several platform bugs
36759         * modules/rename-tests: New file.
36760         * tests/test-rename.h: Likewise.
36761         * tests/test-rename.c: Likewise.
36762         * doc/posix-functions/rename.texi (rename): Improve documentation,
36763         including bugs that will eventually be fixed in gnulib.
36764
36765 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
36766
36767         * lib/uname.c: Include <stdlib.h>
36768         (uname): Assume version info is available.
36769
36770 2009-10-02  Jim Meyering  <meyering@redhat.com>
36771
36772         gnu-web-doc-update: correct --help output
36773         * build-aux/gnu-web-doc-update: Make --help output relevant.
36774
36775         gnu-web-doc-update: add standard options
36776         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
36777
36778         gnu-web-doc-update: New module.
36779         Use this script to automatically update the on-line web documentation
36780         for your GNU project at http://www.gnu.org/software/$pkg/manual/
36781         * modules/gnu-web-doc-update: New file, from coreutils.
36782         * build-aux/gnu-web-doc-update: New script.
36783
36784 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
36785
36786         link: LoadLibrary is not needed.
36787         * lib/link.c: Use GetModuleHandle.
36788
36789 2009-10-01  Eric Blake  <ebb9@byu.net>
36790
36791         getopt: bump serial number
36792         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
36793         change.
36794
36795         tests: tighten link, rmdir, and remove tests
36796         * tests/test-link.h (includes): No need to use <config.h> here.
36797         Clean up if directory hard link was created, otherwise test for
36798         trailing '.'.
36799         * tests/test-linkat.c (main): Simplify.
36800         * tests/test-remove.c (main): Enhance test for trailing '.'.
36801         * tests/test-rmdir.h (test_rmdir_func): Likewise.
36802
36803 2009-10-01  Jim Meyering  <meyering@redhat.com>
36804
36805         maint.mk: requiring "make major" was annoying, for a "minor" release.
36806         What is intended is "stable", to contrast with alpha and beta,
36807         so require "make stable", not "make major".
36808         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
36809         (get_tool_versions): Likewise.
36810         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
36811
36812 2009-09-30  Ben Pfaff  <blp@gnu.org>
36813
36814         Fix broken build of replacement for Windows tmpfile().
36815         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
36816         flags argument added along with the 'mkostemp' module.
36817
36818 2009-09-28  Bruno Haible  <bruno@clisp.org>
36819
36820         Avoid identifier clash with POSIX function 'remove' defined as a macro.
36821         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
36822         to 'remove_elt'.
36823         (gl_list_remove): Update.
36824         * lib/gl_list.c (gl_list_remove): Update.
36825         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
36826         to 'remove_elt'.
36827         (gl_oset_remove): Update.
36828         * lib/gl_list.c (gl_oset_remove): Update.
36829         Reported by Eric Blake.
36830
36831 2009-09-28  Eric Blake  <ebb9@byu.net>
36832
36833         doc: mention yet more cygwin 1.7 status
36834         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
36835         cygwin.
36836         * doc/glibc-functions/execvpe.texi (execvpe): New file.
36837         * doc/gnulib.texi (Glibc unistd.h): Mention it.
36838
36839         argp: fix test failure
36840         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
36841         that are not upper-case.  Pass correct range to tolower.
36842
36843 2009-09-27  Jim Meyering  <meyering@redhat.com>
36844
36845         test-yesno: work around sparc-dash here-document infelicity
36846         Without this change, the literal \177 byte in a here document
36847         would make dash 0.5.5.1-3 access uninitialized memory.
36848         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
36849         Instead, use a marker, "@", and filter through tr to create the desired
36850         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
36851
36852 2009-09-27  Bruno Haible  <bruno@clisp.org>
36853
36854         Disable untested support for new flavours of ACLs on AIX.
36855         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
36856         progress.
36857         * lib/set-mode-acl.c (qset_acl): Likewise.
36858
36859 2008-12-07  Bruno Haible  <bruno@clisp.org>
36860
36861         Add support for new flavours of ACLs on AIX. (Untested.)
36862         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
36863         (file_has_acl): Add support for newer AIX.
36864         * lib/set-mode-acl.c (qset_acl): Likewise.
36865         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
36866         Rainer Tammer <tammer@tammer.net>.
36867
36868 2009-09-26  Eric Blake  <ebb9@byu.net>
36869
36870         argp: fix compilation of getopt
36871         * lib/getopt.in.h (includes): Use different guard than glibc.
36872         Reported by Sergey Poznyakoff.
36873
36874         doc: mention more cygwin 1.7 status
36875         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
36876         bug.
36877         * doc/posix-functions/execl.texi (execl): Likewise.
36878         * doc/posix-functions/execle.texi (execle): Likewise.
36879         * doc/posix-functions/execlp.texi (execlp): Likewise.
36880         * doc/posix-functions/execv.texi (execv): Likewise.
36881         * doc/posix-functions/execve.texi (execve): Likewise.
36882         * doc/posix-functions/execvp.texi (execvp): Likewise.
36883         * doc/glibc-functions/canonicalize_file_name.texi
36884         (canonicalize_file_name): Cygwin 1.7 now provides this.
36885         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
36886         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
36887         on AT_SYMLINK_NOFOLLOW.
36888
36889 2009-09-24  Eric Blake  <ebb9@byu.net>
36890
36891         test-linkat: make test more robust
36892         * tests/test-linkat.c (main): Avoid collision with EEXIST.
36893
36894         getopt: fix inclusion guards for cygwin
36895         * modules/getopt-posix (Depends-on): Add include-next.
36896         (Makefile.am): Substitute more items in replacement header.
36897         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
36898         <getopt.h>.
36899         * lib/getopt.in.h (includes): Use split inclusion guard, and
36900         prefer <getopt.h> over include <unistd.h> when one is present.
36901         (option): Also override name of 'struct option'.
36902
36903         same-inode: revert prior change; it is not yet ready
36904         * NEWS: Undo mention of this change.
36905         * lib/same-inode.h (same-inode.h): Undo tri-state change.
36906         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
36907         * lib/cycle-check.c (cycle_check): Likewise.
36908         * lib/same.c (same_name): Likewise.
36909         * lib/at-func2.c (at_func2): Likewise.
36910
36911 2009-09-23  Eric Blake  <ebb9@byu.net>
36912
36913         linkat: new module
36914         * modules/linkat: New file.
36915         * lib/at-func2.c (at_func2): Likewise.
36916         * lib/linkat.c (linkat): Likewise.
36917         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
36918         * lib/openat-priv.h (at_func2): Add declaration.
36919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
36920         * modules/unistd (Makefile.am): Substitute them.
36921         * lib/unistd.in.h (linkat): Declare it.
36922         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
36923         * doc/posix-functions/linkat.texi (linkat): Likewise.
36924         * doc/posix-functions/link.texi (link): Tweak wording.
36925         * tests/test-link.c (main): Move guts...
36926         * tests/test-link.h (test_link): ...into new file.
36927         * modules/linkat-tests: New test.
36928         * tests/test-linkat.c: Likewise.
36929         * modules/link-tests (Files): Ship new file.
36930         (Depends-on): Add stdbool.
36931
36932         dirname: add library-safe mdir_name
36933         * lib/dirname.h (mdir_name): New prototype.
36934         * lib/dirname.c (dir_name): Move guts...
36935         (mdir_name): ...to new function that avoids xalloc_die.
36936
36937         fchdir: another mingw fix
36938         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
36939         * lib/fchdir.c (get_name): New helper method; skips canonicalize
36940         on mingw (where it has not yet been ported), and make it optional
36941         elsewhere.
36942         (_gl_register_fd): Use it.
36943
36944         same-inode: make SAME_INODE tri-state, to port to mingw
36945         * NEWS: Mention this change.
36946         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
36947         st_ino always being 0.
36948         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
36949         * lib/cycle-check.c (cycle_check): Likewise.
36950         * lib/same.c (same_name): Likewise.
36951
36952         lstat: avoid mingw compilation error
36953         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
36954         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
36955         lstat ourselves.
36956         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
36957         was adequate.
36958         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
36959         the checks for lstat.
36960         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
36961
36962         link: fix test failure on Solaris 9
36963         * lib/link.c (rpl_link): Don't assume link will catch bogus
36964         trailing slash on source.
36965
36966         test-symlinkat: enhance test
36967         * tests/test-readlink.c (main): Move guts...
36968         * tests/test-readlink.h (test_readlink): ...into new file.
36969         * tests/test-symlink.c (main): Move guts...
36970         * tests/test-symlink.h (test_symlink): ...into new file.
36971         * tests/test-symlinkat.c (main): Use new files for further
36972         coverage.
36973         (do_symlink, do_readlink): New helper functions.
36974         * modules/symlink-tests (Files): Ship new file.
36975         (Depends-on): Add stdbool.
36976         * modules/readlink-tests (Files): Ship new file.
36977         (Depends-on): Add stdbool.
36978         * modules/symlinkat-tests (Files): Use new files.
36979
36980 2009-09-23  Eric Blake  <ebb9@byu.net>
36981
36982         readlink: document portability issue with symlink length
36983         * doc/posix-functions/lstat.texi (lstat): Mention that some file
36984         systems have bogus st_size on symlinks, and mention the
36985         areadlink-with-size module.
36986         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
36987         * doc/posix-functions/readlink.texi (readlink): Mention the
36988         areadlink module, and ERANGE failure.
36989         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
36990         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
36991
36992         readlink: fix Solaris 9 bug with trailing slash
36993         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
36994         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
36995         * doc/posix-functions/readlink.texi (readlink): Document this.
36996         * modules/readlink-tests: New test.
36997         * tests/test-readlink.c: Likewise.
36998
36999         readlink: fix cygwin 1.5.x bug with return type
37000         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
37001         * lib/unistd.in.h (readlink): Use ssize_t.
37002         * lib/readlink.c (readlink): Likewise.
37003         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37004         * modules/unistd (Makefile.am): Substitute it.
37005         * lib/unistd.in.h (readlink): Declare replacement.
37006         * doc/posix-functions/readlink.texi (readlink): Document this.
37007
37008         symlink: use throughout gnulib
37009         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
37010         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
37011         symlink is not used.
37012         * modules/symlinkat (Depends-on): Add symlink.
37013         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37014         * modules/canonicalize-tests (Depends-on): Likewise.
37015         * modules/lstat-tests (Depends-on): Likewise.
37016         * modules/openat-tests (Depends-on): Likewise.
37017         * modules/remove-tests (Depends-on): Likewise.
37018         * modules/rmdir-tests (Depends-on): Likewise.
37019         * modules/unlink-tests (Depends-on): Likewise.
37020         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
37021         * tests/test-canonicalize.c (symlink): Likewise.
37022         * tests/test-fstatat.c (symlink): Likewise.
37023         * tests/test-lstat.c (symlink): Likewise.
37024         * tests/test-remove.c (symlink): Likewise.
37025         * tests/test-rmdir.c (symlink): Likewise.
37026         * tests/test-unlink.c (symlink): Likewise.
37027         * tests/test-unlinkat.c (symlink): Likewise.
37028
37029         symlink: new module, for Solaris 9 bug
37030         * modules/symlink: New file.
37031         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
37032         * lib/symlink.c: Likewise.
37033         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
37034         * modules/unistd (Makefile.am): Substitute them.
37035         * lib/unistd.in.h (symlink): Declare replacement.
37036         * MODULES.html.sh (File system functions): Mention it.
37037         * doc/posix-functions/symlink.texi (symlink): Likewise.
37038         * modules/symlink-tests: New test.
37039         * tests/test-symlink.c: Likewise.
37040
37041 2009-09-23  Bruno Haible  <bruno@clisp.org>
37042
37043         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
37044         when needed.
37045         Test case: gnulib-tool --import --with-tests atexit inttypes.
37046         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
37047
37048 2009-09-23  Bruno Haible  <bruno@clisp.org>
37049
37050         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
37051         subcommand, not in a subshell.
37052
37053 2009-09-22  Eric Blake  <ebb9@byu.net>
37054
37055         unistd: sort replacement declarations
37056         * lib/unistd.in.h: Sort declarations.
37057
37058         open, openat: minor optimization
37059         * lib/open.c (open): If open succeeded, len is non-zero.
37060         * lib/openat.c (rpl_openat): Likewise.
37061
37062         link-follow: ensure correct result
37063         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
37064         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
37065         distinguish between possible failures.
37066
37067 2009-09-21  Eric Blake  <ebb9@byu.net>
37068
37069         fts: avoid compiler warning
37070         * lib/fts.c (dirent_inode_sort_may_be_useful)
37071         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
37072
37073 2009-09-19  Bruno Haible  <bruno@clisp.org>
37074
37075         * lib/progreloc.c (canonicalize_file_name): New declaration.
37076
37077 2009-09-19  Eric Blake  <ebb9@byu.net>
37078
37079         link: fix quoting
37080         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
37081
37082         openat: fix openat bugs on Solaris 9
37083         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
37084         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
37085         * modules/openat (Depends-on): Add open.
37086         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
37087         * modules/fcntl-h (Makefile.am): Substitute it.
37088         * lib/fcntl.in.h (openat): Declare replacement.
37089         * doc/posix-functions/openat.texi (openat): Document this.
37090
37091         openat: move fstatat and unlinkat into correct files
37092         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
37093         compiled.
37094         * lib/openat.c (fstatat, unlinkat): Move...
37095         * lib/fstatat.c (fstatat): ...into correct files.
37096         * lib/unlinkat.c (unlinkat): Likewise.
37097
37098         openat: fix unlinkat bugs on Solaris 9
37099         * lib/unlinkat.c (unlinkat): New file.
37100         * modules/openat (Depends-on): Add unlink.
37101         (Files): Distribute it.
37102         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
37103         trailing slash behavior is broken.
37104         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37105         * modules/unistd (Makefile.am): Substitute it.
37106         * lib/unistd.in.h (unlinkat): Declare replacement.
37107         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
37108
37109         openat: fix fstatat bugs on Solaris 9
37110         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
37111         stat.
37112         * doc/posix-functions/fstatat.texi (fstatat): Document this.
37113
37114         test-unlinkat: enhance test, to expose Solaris 9 bug
37115         * tests/test-unlink.c (main): Factor guts...
37116         * tests/test-unlink.h (test_rmdir_func): ...into new file.
37117         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
37118         * tests/test-rmdir.c (main): Adjust caller.
37119         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
37120         (unlinker): New helper function.
37121         (rmdirat): Enhance check.
37122         * modules/rmdir-tests (Depends-on): Add stdbool.
37123         * modules/unlink-tests (Depends-on): Likewise.
37124         (Files): Add test-unlink.h.
37125         * modules/openat-tests (Files): Likewise.
37126         (Depends-on): Add unlinkdir.
37127
37128         test-fstatat: new test, to expose Solaris 9 bugs
37129         * tests/test-stat.c (main): Factor guts...
37130         * tests/test-stat.h (test_stat_func): ...into new file.
37131         * tests/test-lstat.c (main): Factor guts...
37132         * tests/test-lstat.h (test_lstat_func): ...into new file.
37133         * tests/test-fstatat.c: New file.
37134         * modules/stat-tests (Files): Add test-stat.h.
37135         * modules/lstat-tests (Files): Add test-lstat.h.
37136         (Depends-on): Add stdbool.
37137         * modules/openat-tests (Depends-on): Add pathmax.
37138         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
37139         (Makefile.am): Run new test.
37140
37141         remove: new module, for mingw and Solaris 9 bugs
37142         * modules/remove: New file.
37143         * lib/remove.c: Likewise.
37144         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
37145         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
37146         * modules/stdio (Makefile.am): Use them.
37147         * lib/stdio.in.h (remove): Declare replacement.
37148         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37149         * doc/posix-functions/remove.texi (remove): Likewise.
37150         * modules/remove-tests: New test.
37151         * tests/test-remove.c: Likewise.
37152
37153         unlink: new module, for Solaris 9 bug
37154         * modules/unlink: New file.
37155         * lib/unlink.c: Likewise.
37156         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
37157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37158         * modules/unistd (Makefile.am): Use them.
37159         * lib/unistd.in.h (stat): Declare replacement.
37160         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37161         * doc/posix-functions/unlink.texi (unlink): Likewise.
37162         * modules/unlink-tests: New test.
37163         * tests/test-unlink.c: Likewise.
37164
37165         lstat: fix Solaris 9 bug
37166         * lib/lstat.c (lstat): Also check for trailing slash on
37167         non-symlink, non-directories.  Use stat module to simplify logic.
37168         * doc/posix-functions/lstat.texi (lstat): Document it.
37169         * modules/lstat-tests (Depends-on): Add errno, same-inode.
37170         (configure.ac): Check for symlink.
37171         * tests/test-lstat.c (main): Add more tests.
37172
37173         stat: add as dependency to other modules
37174         * modules/chown (Depends-on): Add stat.
37175         * modules/euidaccess (Depends-on): Likewise.
37176         * modules/fchdir (Depends-on): Likewise.
37177         * modules/isdir (Depends-on): Likewise.
37178         * modules/link (Depends-on): Likewise.
37179         * modules/lstat (Depends-on): Likewise.
37180         * modules/mkdir-p (Depends-on): Likewise.
37181         * modules/modechange (Depends-on): Likewise.
37182         * modules/open (Depends-on): Likewise.
37183         * modules/readlink (Depends-on): Likewise.
37184         * modules/same (Depends-on): Likewise.
37185
37186         stat: fix Solaris 9 bug
37187         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
37188         slash.
37189         * lib/stat.c (rpl_stat): Work around it.
37190         * doc/posix-functions/stat.texi (stat): Update documentation.
37191
37192         stat: new module, for mingw bug
37193         * modules/stat: New file.
37194         * lib/stat.c: Likewise.
37195         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
37196         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37197         * modules/sys_stat (Makefile.am): Use them.
37198         * lib/sys_stat.in.h (stat): Declare replacement.
37199         * lib/openat.c (fstatat): Deal with lstat and stat being function
37200         macros.
37201         * modules/openat (Depends-on): Add inline.
37202         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
37203         * doc/posix-functions/stat.texi (stat): Likewise.
37204         * modules/stat-tests: New test.
37205         * tests/test-stat.c: Likewise.
37206
37207 2009-09-19  Jim Meyering  <meyering@redhat.com>
37208
37209         syntax-check: detect unnecessary inclusion of canonicalize.h
37210         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
37211
37212 2009-09-19  Eric Blake  <ebb9@byu.net>
37213
37214         canonicalize-lgpl: adjust clients to use correct header
37215         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37216         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
37217         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
37218         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
37219         * lib/progreloc.c (includes): Likewise.
37220
37221 2009-09-19  Jim Meyering  <meyering@redhat.com>
37222
37223         test-posixtm.c: correct a comment
37224         * tests/test-posixtm.c: Correct first-line comment.
37225         Spotted by Eric Blake.
37226
37227 2009-09-16  Jim Meyering  <meyering@redhat.com>
37228
37229         posixtm-tests: make T const-correct; add a test case
37230         * tests/test-posixtm.c (T): Declare const.
37231         Add a test for -(2^31+1).
37232         Remove useless can-succeed-only-in-2002 test.
37233
37234         posixtm-tests: adjust the sole failing test
37235         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
37236         expected output matches what mktime now produces.  Cross-checked via
37237         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
37238
37239         posixtm: move #ifdef'd tests into a new module
37240         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
37241         * tests/test-posixtm.c: ... this new file.
37242         * modules/posixtm-tests: New module.
37243
37244 2009-09-19  Eric Blake  <ebb9@byu.net>
37245
37246         openat: simplify use of at-func.c
37247         * lib/at-func.c (includes): Include prerequisites here, to
37248         simplify requirements on client files.
37249         * lib/openat-priv.h: Add double-inclusion guard.
37250         * lib/faccessat.c (includes): Simplify.
37251         * lib/fchmodat.c (includes): Likewise.
37252         * lib/fchownat.c (includes): Likewise.
37253         * lib/mkdirat.c (includes): Likewise.
37254         * lib/mkfifoat.c (includes): Likewise.
37255         * lib/symlinkat.c (includes): Likewise.
37256
37257         openat: allow return of fd 0
37258         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
37259         * modules/save-cwd (Depends-on): Replace fcntl-safer with
37260         unistd-safer.
37261         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
37262         <fcntl.h>; this module does not leak fds.
37263         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
37264         must be allowed to return 0, leaving openat_safer to add the
37265         safety.
37266         (openat_permissive): Avoid writing to just-opened fd 2 if
37267         restoring the current directory fails.
37268         * lib/openat-die.c (openat_restore_fail): Add comment.
37269         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
37270         (save_cwd): Guarantee safe fd, but without use of open_safer.
37271         * tests/test-openat.c: New test.
37272         * modules/openat-tests (Files, Makefile.am): Distribute and build
37273         new file.
37274
37275         relocatable-prog-wrapper: fix build
37276         * modules/relocatable-prog-wrapper (Files): Update name of
37277         canonicalize m4 file, broken on 2009-09-17.
37278         Reported by emad hajjar <aleppos@hotmail.com>.
37279
37280 2009-09-19  Bruno Haible  <bruno@clisp.org>
37281
37282         * lib/safe-alloc.h: Use the standard header with GPL copyright.
37283         * lib/safe-alloc.c: Likewise.
37284         Reported by Ian Beckwith <ianb@erislabs.net>.
37285
37286 2009-09-18  Bruno Haible  <bruno@clisp.org>
37287
37288         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
37289         Reported by <erobles@sensacd.com.mx>.
37290
37291 2009-09-17  Eric Blake  <ebb9@byu.net>
37292
37293         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
37294         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
37295         slashes when checking if last component is missing.
37296         * tests/test-canonicalize.c (main): Test this.
37297
37298         canonicalize, canonicalize-lgpl: honor // if distinct from /
37299         * modules/canonicalize (Files): Add double-slash-root.m4.
37300         * modules/canonicalize-lgpl (Files): Likewise.
37301         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
37302         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
37303         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
37304         fallback definition.
37305         (canonicalize_filename_mode): Use it to protect //.
37306         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
37307         (__realpath): Likewise.
37308         * tests/test-canonicalize.c (main): Test this.
37309         * tests/test-canonicalize-lgpl.c (main): Likewise.
37310         * modules/canonicalize-tests (Depends-on): Add same-inode.
37311         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
37312
37313         canonicalize-lgpl: fix glibc bug with trailing slash
37314         * m4/canonicalize-lgpl.m4: Move contents...
37315         * m4/canonicalize.m4: ...here.
37316         (gl_CANONICALIZE_LGPL): Factor realpath check...
37317         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
37318         glibc 2.3.5 bug, fixed 2005-04-27.
37319         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
37320         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
37321         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
37322         * modules/canonicalize-lgpl (Files): Manage file rename.
37323         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
37324         * modules/stdlib (Makefile.am): Substitute witness.
37325         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
37326         is needed.
37327         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
37328         replacement is required.
37329         * lib/canonicalize.c (canonicalize_file_name): Likewise.
37330         * doc/glibc-functions/canonicalize_file_name.texi
37331         (canonicalize_file_name): Document this.
37332         * doc/posix-functions/realpath.texi (realpath): Likewise.
37333
37334         canonicalize-lgpl: reject non-directory with trailing slash
37335         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
37336         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
37337         catches failures in glibc 2.3.5.
37338         * tests/test-canonicalize.c (main): Likewise.
37339
37340         canonicalize-lgpl: use native realpath if it works
37341         * lib/canonicalize-lgpl.c (realpath): Guard with
37342         FUNC_REALPATH_WORKS.
37343         * lib/stdlib.in.h (realpath): Make declaration optional based on
37344         HAVE_REALPATH.
37345         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
37346         native realpath works.
37347         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
37348         * modules/stdlib (Makefile.am): Substitute witness.
37349
37350         canonicalize, canonicalize-lgpl: use <stdlib.h>
37351         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
37352         (Include): Mention <stdlib.h>.
37353         (configure.ac): Mention functions we provide.
37354         * modules/canonicalize (configure.ac): Likewise.
37355         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
37356         realpath if canonicalize_file_name is missing.
37357         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
37358         * modules/stdlib (Makefile.am): Substitute witnesses.
37359         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
37360         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
37361         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
37362         * NEWS: Document this.
37363         * doc/glibc-functions/canonicalize_file_name.texi
37364         (canonicalize_file_name): Likewise.
37365         * doc/posix-functions/realpath.texi (realpath): Likewise.
37366         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
37367
37368         test-canonicalize: consolidate into single C program
37369         * tests/test-canonicalize.sh: Delete; move setup into...
37370         * tests/test-canonicalize.c (main): ...the program, making it
37371         easier to run in debugger.  Add some tests.
37372         * modules/canonicalize-tests (Files): Remove unused file.
37373         (Depends-on): Add progname.
37374         (configure.ac, Makefile.am): Simplify.
37375
37376         test-canonicalize-lgpl: consolidate into single C program
37377         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
37378         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
37379         easier to run in debugger.  Add some tests.
37380         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
37381         (configure.ac, Makefile.am): Simplify.
37382
37383         canonicalize: avoid resolvepath
37384         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
37385         unnecessary checks.
37386         * lib/canonicalize.c (includes): Simplify.
37387         (canonicalize_file_name): Drop resolvepath implementation.
37388         * modules/canonicalize (Depends-on): Drop filenamecat.
37389
37390         canonicalize: don't lose errno
37391         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
37392         over calls to free.
37393
37394         canonicalize: simplify errno handling
37395         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
37396         assignment.
37397
37398         canonicalize, canonicalize-lgpl: update module dependencies
37399         * modules/canonicalize (Depends-on): Add extensions, lstat,
37400         pathmax, stdlib.
37401         (Files): Drop pathmax.h.
37402         (configure.ac): Adjust macro name.
37403         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
37404         lstat, stdlib, sys_stat.
37405         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
37406         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
37407         extensions.
37408         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
37409         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
37410         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
37411         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
37412         declaration, if available.
37413         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
37414         we can rely on the readlink module.
37415         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
37416         (includes): Use <unistd.h> unconditionally.
37417
37418 2009-09-17  Eric Blake  <ebb9@byu.net>
37419
37420         maint: make Include sections of modules consistent
37421         * modules/alloca: Use only header name; no need to list #include.
37422         * modules/alloca-opt: Likewise.
37423         * modules/arpa_inet: Likewise.
37424         * modules/canon-host: Likewise.
37425         * modules/configmake: Likewise.
37426         * modules/dirent: Likewise.
37427         * modules/eealloc: Likewise.
37428         * modules/environ: Likewise.
37429         * modules/fchdir: Likewise.
37430         * modules/fcntl: Likewise.
37431         * modules/fcntl-h: Likewise.
37432         * modules/gethrxtime: Likewise.
37433         * modules/gettime: Likewise.
37434         * modules/ignore-value: Likewise.
37435         * modules/inet_ntop: Likewise.
37436         * modules/inet_pton: Likewise.
37437         * modules/inttypes: Likewise.
37438         * modules/isnand-nolibm: Likewise.
37439         * modules/isnanf-nolibm: Likewise.
37440         * modules/mbchar: Likewise.
37441         * modules/mbfile: Likewise.
37442         * modules/mbiter: Likewise.
37443         * modules/mbuiter: Likewise.
37444         * modules/netdb: Likewise.
37445         * modules/netinet_in: Likewise.
37446         * modules/nproc: Likewise.
37447         * modules/pagealign_alloc: Likewise.
37448         * modules/poll: Likewise.
37449         * modules/printf-frexp: Likewise.
37450         * modules/pthread: Likewise.
37451         * modules/putenv: Likewise.
37452         * modules/random_r: Likewise.
37453         * modules/relocatable-prog: Likewise.
37454         * modules/search: Likewise.
37455         * modules/select: Likewise.
37456         * modules/selinux-h: Likewise.
37457         * modules/settime: Likewise.
37458         * modules/signal: Likewise.
37459         * modules/size_max: Likewise.
37460         * modules/socklen: Likewise.
37461         * modules/ssize_t: Likewise.
37462         * modules/stdarg: Likewise.
37463         * modules/stdbool: Likewise.
37464         * modules/stddef: Likewise.
37465         * modules/stdint: Likewise.
37466         * modules/stdio: Likewise.
37467         * modules/stdlib: Likewise.
37468         * modules/string: Likewise.
37469         * modules/strings: Likewise.
37470         * modules/sys_file: Likewise.
37471         * modules/sys_ioctl: Likewise.
37472         * modules/sys_select: Likewise.
37473         * modules/sys_socket: Likewise.
37474         * modules/sys_stat: Likewise.
37475         * modules/sys_time: Likewise.
37476         * modules/sys_times: Likewise.
37477         * modules/sys_utsname: Likewise.
37478         * modules/sys_wait: Likewise.
37479         * modules/sysexits: Likewise.
37480         * modules/time: Likewise.
37481         * modules/times: Likewise.
37482         * modules/tmpfile: Likewise.
37483         * modules/trim: Likewise.
37484         * modules/unistd: Likewise.
37485         * modules/wchar: Likewise.
37486         * modules/wctype: Likewise.
37487
37488 2009-09-17  Bruno Haible  <bruno@clisp.org>
37489
37490         Make getdate.y compile on QNX and NetBSD 5 / i386.
37491         * m4/getdate.m4 (gl_GETDATE): Conditionally define
37492         TIME_T_FITS_IN_LONG_INT.
37493         * lib/getdate.y (long_time_t): New type.
37494         (relative_time): Change type of 'seconds' field to long_time_t.
37495         (get_date): Update types of local variables. Check against overflow
37496         during conversion from long_time_t to time_t.
37497         Reported by Matt Kraai <kraai@ftbfs.org>
37498         and Hasso Tepper <hasso@netbsd.org>.
37499
37500 2009-09-17  Bruno Haible  <bruno@clisp.org>
37501
37502         * modules/COPYING: Update copyright years.
37503         * modules/README: Likeiwse.
37504         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
37505         Reported by Ian Beckwith <ianb@erislabs.net>.
37506
37507 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
37508
37509         * users.txt: Update references for gnuit package.
37510
37511 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
37512
37513         * m4/getdelim.m4: Fix typo in copyright line.
37514
37515 2009-09-17  Bruno Haible  <bruno@clisp.org>
37516
37517         * lib/atoll.c: Use the standard header with GPL copyright.
37518         * lib/argz.in.h: Likewise.
37519         * lib/glob.c: Likewise.
37520         * lib/glob-libc.h: Likewise.
37521         * lib/random_r.c: Likewise.
37522         * lib/siglist.h: Likewise.
37523         * lib/strsignal.c: Likewise.
37524         Reported by Ian Beckwith <ianb@erislabs.net>.
37525
37526 2009-09-17  Eric Blake  <ebb9@byu.net>
37527
37528         rmdir: ensure correct dependency order
37529         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
37530
37531 2009-09-17  Bruno Haible  <bruno@clisp.org>
37532
37533         Disable assertion that fails on NetBSD 5 / i386.
37534         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
37535         Reported by Sam Steingold <sds@gnu.org>
37536         and Hasso Tepper <hasso@netbsd.org>.
37537
37538 2009-09-16  Eric Blake  <ebb9@byu.net>
37539
37540         unlinkdir: port to mingw
37541         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
37542         on which no one can unlink a directory.
37543
37544         stdlib: sort witness names
37545         * modules/stdlib (Makefile.am): Sort replacements.
37546         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
37547         * lib/stdlib.in.h: Likewise.
37548
37549         parse-duration-tests: avoid link failure
37550         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
37551         LIBINTL.
37552         Reported by Tom G. Christensen.
37553
37554         openat-tests: ensure unlinkat behaves like rmdir
37555         * tests/test-rmdir.c (main): Factor guts...
37556         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
37557         * modules/rmdir-tests (Files): Ship new file.
37558         * modules/openat-tests: New test.
37559         * tests/test-unlinkat.c: Likewise.
37560
37561         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
37562         * modules/rmdir-errno (Status, Notice): Now obsolete.
37563
37564         rmdir: work around cygwin 1.5.x and mingw bugs
37565         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
37566         * lib/rmdir.c (rmdir): Work around it.
37567         * modules/rmdir (Status, Notice): No longer obsolete.
37568         (Files): Add dos.m4.
37569         (Depends-on): Add unistd.
37570         (configure.ac): Set witnesses.
37571         (License): Relax to LGPLv2+.
37572         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
37573         * modules/unistd (Makefile.am): Substitute witnesses.
37574         * lib/unistd.in.h (rmdir): Declare replacement.
37575         * doc/posix-functions/rmdir.texi (rmdir): Document this.
37576         * modules/rmdir-tests: New tests.
37577         * tests/test-rmdir.c: Likewise.
37578
37579 2009-09-15  Eric Blake  <ebb9@byu.net>
37580
37581         fchdir: improve use of replacement functions
37582         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
37583         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
37584         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
37585         REPLACE_CLOSEDIR.
37586         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
37587         * modules/sys_stat (Makefile.am): Substitute correct witness.
37588         * modules/dirent (Makefile.am): Likewise.
37589         * modules/unistd (Makefile.am): Likewise.
37590         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
37591         * lib/unistd.in.h (dup): Likewise.
37592         * lib/sys_stat.in.h (fstat): Likewise.
37593
37594         maint: ignore gnulib-tool temp files
37595         * .gitignore: Ignore files created during gnulib-tool --test.
37596
37597 2009-09-13  Jim Meyering  <meyering@redhat.com>
37598
37599         posixtm: don't reject a time that specify "60" as the number of seconds
37600         * lib/posixtm.c (posixtime): The code to reject invalid dates
37601         would also reject a time specified with the .60 suffix.
37602         But POSIX allows that, in order to accommodate leap seconds.
37603         So don't reject it.
37604         (main): Adjust tests accordingly.
37605         * modules/posixtm (Depends-on): Add stpcpy.
37606
37607 2009-09-11  Jim Meyering  <meyering@redhat.com>
37608
37609         announce-gen: include [$release_type] in emitted Subject:
37610         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
37611         e.g., [stable] in the emitted Subject: line.
37612
37613 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37614
37615         Remove obsolete macros from several modules.
37616         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
37617         obsolete Autoconf macros with their modern counterparts.
37618         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
37619         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
37620         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
37621         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
37622         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
37623         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
37624         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
37625         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
37626         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
37627         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
37628         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
37629         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
37630         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
37631         * m4/sockets.m4 (gl_SOCKETS): Likewise.
37632         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
37633         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
37634         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
37635         * m4/time_r.m4 (gl_TIME_R): Likewise.
37636         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
37637         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
37638         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
37639
37640         Fix copyright header in build-aux scripts.
37641         * build-aux/git-version-gen: Fix copyright header to match GPLv3
37642         recommendation.
37643         * build-aux/ncftpput-ftp: Likewise.
37644         * build-aux/update-copyright: Likewise.
37645
37646 2009-09-09  Eric Blake  <ebb9@byu.net>
37647
37648         test-link: allow Linux choice of errno
37649         * tests/test-link.c (main): Relax test for alternate error.
37650
37651         strndup: fix improper m4 caching
37652         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
37653         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
37654         (gl_PREREQ_STRNDUP): Delete.
37655         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
37656         * modules/string (Makefile.am): Substitute it.
37657         * lib/string.in.h (strndup): Modernize prototype.
37658
37659         getcwd: port to mingw
37660         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
37661         different from the POSIX assumptions made throughout the getcwd
37662         module; fortunately, the mingw getcwd does not need replacement.
37663         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
37664         * modules/getcwd-tests: New test.
37665         * tests/test-getcwd.c: Likewise.
37666
37667         link: fix platform bugs
37668         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
37669         * lib/link.c (link): Work around them.  Fix related mingw bug.
37670         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
37671         * modules/unistd (Makefile.am): Substitute it.
37672         * lib/unistd.in.h (link): Declare replacement.
37673         * doc/posix-functions/link.texi (link): Document this.
37674         * modules/link (Depends-on): Add strdup-posix, sys_stat.
37675
37676         test-link: consolidate into single C program, test more cases
37677         * tests/test-link.sh: Delete.
37678         * tests/test-link.c: Test more error conditions.  Exposes bugs on
37679         at least Cygwin and Solaris.
37680         * modules/link-tests (Files): Remove unused file.
37681         (Depends-on): Add errno, sys_stat.
37682         (Makefile.am): Simplify.
37683
37684 2009-09-08  Bruno Haible  <bruno@clisp.org>
37685
37686         Work around towlower, towupper bug on mingw.
37687         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
37688         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
37689         * doc/posix-functions/towlower.texi: Mention the mingw bug.
37690         * doc/posix-functions/towupper.texi: Likewise.
37691         Reported by Eric Blake.
37692
37693 2009-09-08  Jim Meyering  <meyering@redhat.com>
37694
37695         build: don't try to run autoheader if we don't use it
37696         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
37697         is not used in configure.ac.
37698
37699 2009-09-08  Eric Blake  <ebb9@byu.net>
37700
37701         euidaccess: fix compilation error
37702         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
37703
37704         rawmemchr: relax license
37705         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
37706         okay.
37707         Reported by Jim Meyering.
37708
37709         mkfifoat: new module
37710         * modules/mkfifoat: New file.
37711         * lib/mkfifoat.c: Likewise.
37712         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
37713         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
37714         * modules/sys_stat (Makefile.am): Use them.
37715         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
37716         * MODULES.html.sh (File system functions): Mention module.
37717         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
37718         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
37719         * modules/mkfifoat-tests: New test.
37720         * tests/test-mkfifoat.c: Likewise.
37721
37722         strchrnul: relax license
37723         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
37724         okay.
37725         Reported by Jim Meyering.
37726
37727 2009-09-08  Eric Blake  <ebb9@byu.net>
37728
37729         fstatat: fix compilation on Solaris
37730         * lib/fstatat.c (includes): Add fcntl.h.
37731         Reported by Pádraig Brady.
37732
37733 2009-09-07  Eric Blake  <ebb9@byu.net>
37734
37735         rename: modernize replacement
37736         * modules/rename (Depends-on): Add stdio.
37737         (configure.ac): Declare witness.
37738         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
37739         stdio take care of replacement.
37740         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
37741         * modules/stdio (Makefile.am): Substitute them.
37742         * lib/stdio.in.h (rename): Declare replacement.
37743         * lib/rename.c (includes): Allow cross-compilation to non-windows
37744         machines.
37745         * doc/posix-functions/rename.texi (rename): Improve
37746         documentation.
37747
37748         stdio: sort witness names
37749         * modules/stdio (Makefile.am): Sort replacements.
37750         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
37751         * lib/stdio.in.h: Likewise.
37752
37753         getcwd: minor cleanups
37754         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
37755         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
37756
37757         openat: provide more convenience names
37758         * modules/faccessat (configure.ac): Add C witness.
37759         * lib/unistd.in.h (readlinkat): Fix typo.
37760         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
37761         convenience wrappers.
37762         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
37763         wrappers in syntax checks.
37764
37765 2009-09-06  Eric Blake  <ebb9@byu.net>
37766
37767         doc: fix comments in recent patches
37768         * lib/faccessat.c: Mention correct function.
37769         * lib/fchmodat.c: Likewise.
37770         * lib/fchownat.c: Likewise.
37771         * lib/symlinkat.c: Likewise.
37772         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
37773         constants.
37774
37775         faccessat, symlinkat: continue cleanup of previous patch
37776         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
37777         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
37778         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
37779         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
37780         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
37781         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
37782         set.
37783
37784 2009-09-06  Bruno Haible  <bruno@clisp.org>
37785
37786         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
37787         (fstatat): Declare if GNULIB_FSTATAT is set.
37788         (mkdirat): Declare if GNULIB_MKDIRAT is set.
37789         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
37790         (unlinkat): Declare if GNULIB_UNLINKAT is set.
37791         * modules/fcntl-h (Files): Remove m4/openat.m4.
37792         * modules/sys_stat (Files): Remove m4/openat.m4.
37793         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
37794         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
37795         * modules/unistd (Files): Remove m4/openat.m4.
37796         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
37797         GNULIB_OPENAT.
37798         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
37799         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
37800         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
37801         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
37802         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
37803         gl_OPENAT_DEFAULTS.
37804         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
37805         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
37806         Don't require gl_OPENAT_DEFAULTS.
37807         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
37808         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
37809         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
37810         (gl_OPENAT_DEFAULTS): Remove macro.
37811
37812 2009-09-06  Bruno Haible  <bruno@clisp.org>
37813
37814         * modules/openat (configure.ac): Remove unneeded witness.
37815
37816 2009-09-06  Bruno Haible  <bruno@clisp.org>
37817
37818         Set errno to ENOSYS when a function is entirely unsupported.
37819         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
37820         EOPNOTSUPP.
37821         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
37822         * modules/chown (Depends-on): Remove errno.
37823
37824 2009-09-06  Bruno Haible  <bruno@clisp.org>
37825
37826         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
37827
37828 2009-09-06  Bruno Haible  <bruno@clisp.org>
37829
37830         * lib/sys_stat.in.h: Fix preprocessor command indentation.
37831
37832 2009-09-06  Ben Pfaff  <blp@gnu.org>
37833             Bruno Haible  <bruno@clisp.org>
37834
37835         Work around a glibc bug in strtok_r.
37836         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
37837         Undefine if UNDEFINE_STRTOK_R is set.
37838         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
37839         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
37840         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
37841         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
37842         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
37843         UNDEFINE_STRTOK_R.
37844         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
37845
37846 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
37847
37848         exclude: minor fix
37849         * lib/exclude.c: Include wctype.h
37850
37851 2009-09-06  Akim Demaille  <demaille@gostai.com>
37852
37853         bootstrap: improve error message
37854         * build-aux/bootstrap (find_tool): Upon failure, report the list
37855         of candidates.
37856         Honor the initial value of the envvar.
37857
37858 2009-09-05  Eric Blake  <ebb9@byu.net>
37859
37860         symlinkat: new module
37861         * modules/symlinkat: New file.
37862         * lib/symlinkat.c: Likewise.
37863         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
37864         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
37865         * modules/unistd (Makefile.am): Use them.
37866         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
37867         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
37868         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
37869         * MODULES.html.sh (File system functions): Mention module.
37870         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
37871         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
37872         * modules/symlinkat-tests: New test.
37873         * tests/test-symlinkat.c: Likewise.
37874
37875         test-openat-safer: add more checks
37876         * tests/test-openat-safer.c (main): Check more code paths.
37877
37878 2009-09-05  Jim Meyering  <meyering@redhat.com>
37879
37880         syntax-check: detect unnecessary inclusion of openat.h
37881         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
37882
37883 2009-09-05  Bruno Haible  <bruno@clisp.org>
37884
37885         Support towlower, towupper.
37886         * doc/posix-functions/towlower.texi: Mention module wctype.
37887         * doc/posix-functions/towupper.texi: Likewise.
37888         * lib/wctype.in.h (towlower, towupper): New functions.
37889         * tests/test-wctype.c: Include stdio.h, stdlib.h.
37890         (ASSERT): New macro.
37891         (e): New variable.
37892         (main): Test also towlower, towupper. Test WEOF argument.
37893         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
37894
37895 2009-09-05  Bruno Haible  <bruno@clisp.org>
37896
37897         Fix conversion behaviour when the input is invalid.
37898         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
37899         mark occurring in first pass of indirect conversion.
37900         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
37901         input.
37902         Found by clang's static analyzer.
37903
37904 2009-09-05  Bruno Haible  <bruno@clisp.org>
37905
37906         * tests/test-striconveh.c (main): Test indirect conversion on platforms
37907         where direct conversion is possible.
37908
37909 2009-09-04  Eric Blake  <ebb9@byu.net>
37910
37911         openat: fail with ENOENT on empty name
37912         * lib/openat-proc.c (openat_proc_name): Special-case the empty
37913         buffer.
37914
37915         link-follow: fix logic bug in prior patch
37916         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
37917         reversed sense of yes and no in prior patch.  Avoid confusing
37918         compilation failure with desired semantics.
37919
37920         link-follow: accomodate mingw and cross-compilation
37921         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
37922         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
37923         cross-compilation results to -1, to make linkat easier to
37924         implement when cross-compiling.  Trivially support mingw.
37925         * modules/link-follow (configure.ac): Call new name.
37926         * NEWS: Mention this.
37927
37928 2009-09-03  Eric Blake  <ebb9@byu.net>
37929
37930         faccessat: compile replacement
37931         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
37932         needed.
37933
37934         fts: fix compilation error
37935         * lib/fts.c (includes): Re-add "openat.h", for
37936         openat_needs_fchdir.
37937
37938         faccessat: new module
37939         * modules/faccessat: New file.
37940         * lib/faccessat.c: Likewise.
37941         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
37942         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
37943         * modules/unistd (Makefile.am): Use it.
37944         * lib/unistd.in.h (faccessat): Declare it.
37945         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
37946         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
37947         * MODULES.html.sh (File system functions): Mention it.
37948         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
37949         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
37950
37951         euidaccess: prefer POSIX over non-standard implementation
37952         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
37953         * lib/euidaccess.c (euidaccess): Use it if available.
37954
37955         openat: make template easier to use
37956         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
37957         AT_FUNC_F2 to be undefined.
37958         (VALIDATE_FLAG): New macro; use it to reject bad flags.
37959         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
37960         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
37961         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
37962         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
37963         Likewise.
37964         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
37965         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
37966         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
37967         Likewise.
37968
37969         openat: declare in POSIX headers
37970         * NEWS: Mention this.
37971         * modules/openat (configure.ac): Declare witnesses.
37972         (Depends-on): Add fcntl-h, sys_stat, unistd.
37973         (Include): Mention correct headers.
37974         * modules/fcntl-h (Depends-on): Add link-warning.
37975         (Files): Add openat.m4.
37976         (Makefile.am): Substitute witnesses.
37977         * modules/sys_stat (Files, Makefile.am): Likewise.
37978         * modules/unistd (Files, Makefile.am): Likewise.
37979         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
37980         (gl_OPENAT_DEFAULTS): New macro.
37981         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
37982         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
37983         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
37984         (SYS_STAT_H): Remove unused variable.
37985         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
37986         * lib/fcntl--.h (includes): Remove unneeded header.
37987         * lib/openat-safer.c (includes): Likewise.
37988         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
37989         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
37990         appropriate headers.
37991         (__OPENAT_PREFIX): Delete.
37992         * lib/fcntl.in.h (openat): Provide declaration.
37993         (AT_FDCWD): Fix Solaris bug.
37994         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
37995         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
37996         * lib/fchmodat.c (includes):  Adjust to find declaration.
37997         * lib/fchownat.c (includes): Likewise.
37998         * lib/mkdirat.c (includes): Likewise.
37999         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
38000         still visible.
38001
38002 2009-09-02  Eric Blake  <ebb9@byu.net>
38003
38004         errno: use consistently
38005         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
38006         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
38007         * lib/canonicalize.c (ELOOP): Likewise.
38008         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
38009         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
38010         * lib/lchown.c (EOPNOTSUPP): Likewise.
38011         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
38012         * lib/savewd.c (ESTALE): Likewise.
38013         * lib/settime.c (ENOSYS): Likewise.
38014         * lib/utimens.c (ENOSYS): Likewise.
38015         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
38016         * lib/chdir-safer.c (ELOOP): Likewise.
38017         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
38018         * modules/c-stack (Depends-on): Add errno.
38019         * modules/canonicalize (Depends-on): Likewise.
38020         * modules/chdir-safer (Depends-on): Likewise.
38021         * modules/fdopendir (Depends-on): Likewise.
38022         * modules/inet_ntop (Depends-on): Likewise.
38023         * modules/inet_pton (Depends-on): Likewise.
38024         * modules/lchown (Depends-on): Likewise.
38025         * modules/openat (Depends-on): Likewise.
38026         * modules/savewd (Depends-on): Likewise.
38027         * modules/settime (Depends-on): Likewise.
38028         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
38029
38030         fts: avoid leaking fds
38031         * modules/fts (Depends-on): Add cloexec.
38032         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
38033         flag.
38034
38035         fts: make directory fds more robust
38036         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
38037         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
38038
38039         backupfile, chdir-long, fts, savedir: make safer
38040         * lib/backupfile.c (includes): Use "dirent--.h", since
38041         numbered_backup can write to stderr during readdir.
38042         * lib/savedir.c (includes): Likewise.
38043         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
38044         emulation can write to stderr on failure.
38045         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
38046         * lib/getcwd.c: Document why opendir_safer is unused.
38047         * lib/glob.c: Likewise.
38048         * lib/scandir.c: Likewise.
38049         * lib/openat-proc.c: Likewise, for open_safer.
38050         * modules/backupfile (Depends-on): Add dirent-safer.
38051         * modules/savedir (Depends-on): Likewise.
38052         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
38053         * modules/chdir-long (Depends-on): Add openat-safer.
38054
38055         openat-safer: new module
38056         * modules/openat-safer: New file.
38057         * lib/openat-safer.c: Likewise.
38058         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
38059         * lib/fcntl-safer.h (openat_safer): Declare.
38060         * lib/fcntl--.h (openat): Override.
38061         * MODULES.html.sh (File descriptor based I/O): Mention it.
38062         * lib/openat.h: Add double-inclusion guards.
38063         * lib/openat.c (includes): Only include "fcntl-safer.h", not
38064         "fcntl--.h", so we can implement openat.
38065         * modules/openat-safer-tests: New test.
38066         * tests/test-openat-safer.c: New file.
38067
38068         dirent-safer: new module
38069         * modules/dirent-safer: New file.
38070         * lib/dirent--.h: Likewise.
38071         * lib/dirent-safer.h: Likewise.
38072         * lib/opendir-safer.c: Likewise.
38073         * m4/dirent-safer.m4: Likewise.
38074         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
38075         * modules/dirent-safer-tests: New test.
38076         * tests/test-dirent-safer.c: New file.
38077         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
38078
38079         fdopendir: optimize on mingw
38080         * lib/unistd.in.h (_gl_directory_name): New prototype.
38081         * lib/fchdir.c (_gl_directory_name): Implement it.
38082         (fchdir): Use it to simplify implementation.
38083         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
38084         fchdir, when available, to avoid calling [f]chdir().
38085
38086         fdopendir: split into its own module
38087         * lib/openat.c (fdopendir): Move...
38088         * lib/fdopendir.c: ...into new file.
38089         * modules/fdopendir: New module.
38090         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
38091         * modules/openat (Depends-on): Add fdopendir.
38092         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
38093         fdopendir here.
38094         * modules/savedir (Depends-on): Only need fdopendir, not full
38095         openat.
38096         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
38097         * lib/openat.h (fdopendir): Drop prototype.
38098         * lib/dirent.in.h (fdopendir): Provide prototype.
38099         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
38100         * modules/dirent (Makefile.am): Substitute them.
38101         * MODULES.html.sh (File system functions): Mention it.
38102         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
38103         * modules/fdopendir-tests: New file.
38104         * tests/test-fdopendir.c: Likewise.
38105
38106         fchdir: use more consistent macro convention
38107         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
38108         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
38109         REPLACE_FCHDIR, rather than relying on config.h macros.
38110         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
38111         inside a single make-time REPLACE_FCHDIR block, rather than using
38112         the config.h FCHDIR_REPLACEMENT.
38113         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
38114         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
38115         Manage fstat replacement.
38116         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
38117         REPLACE_FCHDIR.
38118         * modules/sys_stat (Files): Add m4/unistd_h.m4.
38119         (Makefile.am): Substitute REPLACE_FCHDIR.
38120         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
38121         FCHDIR_REPLACEMENT.
38122         * lib/dup-safer.c (dup_safer): Likewise.
38123         * lib/dup2.c (rpl_dup2): Likewise.
38124         * lib/dup3.c (rpl_dup3): Likewise.
38125         * lib/open.c (rpl_open): Likewise.
38126
38127         fchdir: simplify error handling, and support dup3
38128         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
38129         stdbool, malloc-posix, realloc-posix.
38130         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
38131         (ensure_dirs_slot): Return false on allocation failure.
38132         (rpl_dup2): Delete.
38133         (_gl_register_dup): New function.
38134         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
38135         (_gl_register_fd): Close fd on allocation failure.
38136         * lib/fcntl.in.h (_gl_register_fd): Update signature.
38137         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
38138         prototype.
38139         (rpl_dup2_fchdir): Delete prototype.
38140         * lib/open.c (open): Update caller.
38141         * lib/dup2.c (dup2): Track fchdir metadata.
38142         * lib/dup3.c (dup3): Likewise.
38143         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
38144         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
38145
38146 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38147
38148         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
38149         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
38150         don't pass arguments to AC_OUTPUT.
38151
38152 2009-09-02  Bruno Haible  <bruno@clisp.org>
38153
38154         * modules/mkdtemp (License): Relicense under LGPLv2+.
38155         Reported by Paolo Bonzini.
38156
38157 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38158
38159         Replace uses of obsolete autoconf macros in Jim's modules.
38160         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
38161         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
38162         can evoke a warning from autoconf when run with -Wobsolete
38163         enabled.  They were declared obsolete for good reasons (see
38164         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
38165         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
38166         should not continue using the deprecated macros.
38167         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
38168         obsolete Autoconf macros with modern counterparts.
38169         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
38170         * m4/dos.m4 (gl_AC_DOS): Likewise.
38171         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
38172         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
38173         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
38174         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
38175         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
38176         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
38177         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
38178         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
38179         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
38180         Likewise.
38181         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
38182         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
38183         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
38184         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
38185         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
38186         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
38187
38188 2009-09-01  Eric Blake  <ebb9@byu.net>
38189
38190         fchdir: fix off-by-one bug in previous patch
38191         * lib/fchdir.c (rpl_fstat): Use correct bounds.
38192         (_gl_unregister_fd): Delete useless if.
38193
38194 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
38195
38196         maint.mk: sort the list of syntax-check rules
38197         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
38198         easier to get a sense of progress when the rules are run sequentially
38199         and take a long time.
38200
38201 2009-09-01  Simon Josefsson  <simon@josefsson.org>
38202
38203         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
38204         * modules/netinet_in: Likewise.
38205         * modules/sys_file: Likewise.
38206         * modules/sys_ioctl: Likewise.
38207         * modules/sys_select: Likewise.
38208         * modules/sys_socket: Likewise.
38209         * modules/sys_stat: Likewise.
38210         * modules/sys_time: Likewise.
38211         * modules/sys_times: Likewise.
38212         * modules/sys_utsname: Likewise.
38213         * modules/sys_wait: Likewise.
38214
38215 2009-09-01  Jim Meyering  <meyering@redhat.com>
38216
38217         fts: help ensure that return values are not ignored
38218         * lib/fts_.h (__GNUC_PREREQ): Define.
38219         (__attribute_warn_unused_result__): Define.
38220         (fts_children, fts_close, fts_open, fts_read): Declare with
38221         __attribute_warn_unused_result__.
38222
38223         fts: fts_close now fails also when closing a dir file descriptor fails
38224         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
38225         and propagate to caller, along with errno.
38226
38227         announce-gen: correct formatting in --help output
38228         * build-aux/announce-gen (usage): Move the one-line description in
38229         --help output "up", to where it belongs, just after Usage:.
38230
38231 2009-08-31  Eric Blake  <ebb9@byu.net>
38232
38233         fchdir: port to mingw
38234         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
38235         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
38236         opened, then use a substitute.
38237         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
38238         replacement.
38239         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
38240         (_gl_register_fd): No need to check stat if open already filters
38241         all directories.
38242         (fchdir): Fix error condition to match POSIX.
38243         * modules/fchdir (Depends-on): Add sys_stat.
38244         * doc/posix-functions/open.texi (open): Document the limitation.
38245         * modules/fchdir-tests: New file.
38246         * tests/test-fchdir.c: Likewise.
38247
38248         canonicalize: allow cross-testing from cygwin to mingw
38249         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
38250         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
38251         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
38252         Likewise.
38253         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
38254         target does not support symlinks.
38255         * tests/test-canonicalize-lgpl.sh: Likewise.
38256
38257         chown: avoid compilation warning on mingw
38258         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
38259         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
38260         mingw.
38261         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
38262         * modules/chown (Depends-on): Add errno.
38263
38264 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
38265
38266         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
38267         command.
38268
38269 2009-08-31  Jim Meyering  <meyering@redhat.com>
38270
38271         canonicalize: remove useless initialization
38272         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
38273         initialization of local, "end".
38274
38275 2009-08-30  Bruno Haible  <bruno@clisp.org>
38276
38277         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
38278         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
38279         ENOSYS.
38280
38281 2009-08-30  Bruno Haible  <bruno@clisp.org>
38282
38283         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
38284         /usr/xpg4/bin/tr when it exists.
38285         * tests/test-pipe-filter-gi1.sh: Likewise.
38286
38287 2009-08-30  Bruno Haible  <bruno@clisp.org>
38288
38289         Work around deficient /usr/bin/id program on Solaris.
38290         * tests/test-file-has-acl.sh (ID): New variable.
38291         * tests/test-set-mode-acl.sh (ID): Likewise.
38292         * tests/test-copy-acl.sh (ID): Likewise.
38293         * tests/test-copy-file.sh (ID): Likewise.
38294
38295 2009-08-30  Bruno Haible  <bruno@clisp.org>
38296
38297         New module 'xstriconveh'.
38298         * lib/xstriconveh.h: New file.
38299         * lib/xstriconveh.c: New file.
38300         * modules/xstriconveh: New file.
38301
38302 2009-08-30  Bruno Haible  <bruno@clisp.org>
38303
38304         Make it easier to use mem_cd_iconveh.
38305         * lib/striconveh.h (iconveh_t): New type.
38306         (iconveh_open, iconveh_close): New declarations.
38307         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
38308         with a single 'const iconveh_t *' argument.
38309         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
38310         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
38311         with a single 'const iconveh_t *' argument.
38312         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
38313         * tests/test-striconveh.c (main): Update.
38314         * NEWS: Mention the change.
38315
38316 2009-08-30  Bruno Haible  <bruno@clisp.org>
38317
38318         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
38319         problem.
38320
38321 2009-08-30  Bruno Haible  <bruno@clisp.org>
38322
38323         Work around iconv_open problem on Solaris.
38324         * lib/iconv_open-solaris.gperf: New file.
38325         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
38326         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
38327         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
38328         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
38329         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
38330         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
38331
38332 2009-08-29  Jim Meyering  <meyering@redhat.com>
38333
38334         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
38335         * top/maint.mk (cvs-check): Remove target; it was just an alias
38336         to the better-named vc-diff-check.
38337         (maintainer-distcheck): Remove rule.  It was used only from
38338         the (alpha/beta/major) target, and all of its commands but one
38339         were coreutils-specific.
38340         (vc-dist): Remove rule.
38341         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
38342         Run vc-diff-check, not vc-dist.
38343         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
38344
38345 2009-08-27  Bruno Haible  <bruno@clisp.org>
38346
38347         * tests/test-bitrotate.c (main): Remove test that uses a shift count
38348         of 0.
38349
38350 2009-08-27  Bruno Haible  <bruno@clisp.org>
38351
38352         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
38353         compilers.
38354         * doc/func.texi: Document the SunPRO C bug.
38355
38356 2009-08-27  Bruno Haible  <bruno@clisp.org>
38357
38358         Fix link error on Solaris.
38359         * tests/test-parse-duration.c (xstrdup): Remove function.
38360
38361 2009-08-26  Pádraig Brady  <P@draigbrady.com>
38362
38363         ignore-value: handle pointer types, too
38364         * lib/ignore-value.h (__attribute__): Remove definition.
38365         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
38366         of a more concise and more-often effective "(void) i" statement.
38367         (ignore_ptr): New function to suppress warnings from functions that
38368         return pointers, and to make it explicit that one function doesn't
38369         handle all cases.
38370
38371 2009-08-25  Bruno Haible  <bruno@clisp.org>
38372
38373         dup2: work around a Linux bug.
38374         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
38375         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
38376         * doc/posix-functions/dup2.texi: Mention the Linux bug.
38377         Reported by Simon Josefsson.
38378
38379 2009-08-25  Jim Meyering  <meyering@redhat.com>
38380
38381         libguestfs uses gnulib
38382         * users.txt: Add libguestfs.
38383
38384 2009-08-24  Eric Blake  <ebb9@byu.net>
38385
38386         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
38387         * lib/pipe2.c (includes): Add binary-io.h.
38388         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
38389
38390 2009-08-24  Bruno Haible  <bruno@clisp.org>
38391
38392         Tolerate declared but missing accept4 syscall.
38393         * lib/accept4.c (accept4): Invoke original accept4 function first, if
38394         available.
38395         * lib/sys_socket.in.h (accept4): If the function is already present,
38396         override it.
38397         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
38398         * modules/accept4 (Makefile.am): Compile accept4.c always.
38399         Reported by Paolo Bonzini and Eric Blake.
38400
38401 2009-08-23  Bruno Haible  <bruno@clisp.org>
38402
38403         New module 'accept4'.
38404         * lib/sys_socket.in.h (accept4): New declaration.
38405         * lib/accept4.c: New file.
38406         * m4/accept4.m4: New file.
38407         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
38408         GNULIB_ACCEPT4, HAVE_ACCEPT4.
38409         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
38410         HAVE_ACCEPT4.
38411         * modules/accept4: New file.
38412         * doc/glibc-functions/accept4.texi: Mention the new module.
38413
38414 2009-08-24  Jim Meyering  <meyering@redhat.com>
38415
38416         progname: also set global program_invocation_name, when possible
38417         Before this change, a libtool-enabled program that calls glibc's
38418         error function would report the program name as
38419         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
38420         * modules/progname (configure.ac): Check for a declaration of
38421         program_invocation_name.
38422         * lib/progname.c:  Include <errno.h>.
38423         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
38424         Set program_invocation_name.
38425
38426 2009-08-23  Bruno Haible  <bruno@clisp.org>
38427
38428         * lib/dup3.c: Include <string.h>.
38429
38430 2009-08-23  Bruno Haible  <bruno@clisp.org>
38431
38432         * lib/dup3.c (dup3): Test only once whether the system actually exists.
38433         * lib/pipe2.c (pipe2): Likewise.
38434         Suggested by Eric Blake.
38435
38436 2009-08-23  Bruno Haible  <bruno@clisp.org>
38437
38438         Tolerate declared but missing dup3 syscall.
38439         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
38440         * lib/unistd.in.h (dup3): If the function is already present,
38441         override it.
38442         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
38443         * modules/dup3 (Makefile.am): Compile dup3.c always.
38444         Reported by Paolo Bonzini.
38445
38446 2009-08-23  Bruno Haible  <bruno@clisp.org>
38447
38448         Tolerate declared but missing pipe2 syscall.
38449         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
38450         available.
38451         * lib/unistd.in.h (pipe2): If the function is already present,
38452         override it.
38453         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
38454         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
38455         Reported by Paolo Bonzini.
38456
38457 2009-08-23  Bruno Haible  <bruno@clisp.org>
38458
38459         * lib/pipe2.c (pipe2): Move #ifs inside function.
38460
38461 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38462
38463         quotearg: document limitations of quote_these_too
38464         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
38465         those limitations are created.
38466         * lib/quotearg.h (set_char_quoting): Document that digits and
38467         letters that are special after backslash are not permitted.
38468         (quotearg_char): Cross-reference set_char_quoting documentation.
38469
38470 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
38471
38472         quotearg: implement custom_quoting_style
38473         * lib/quotearg.c: (struct quoting_options): Add left_quote and
38474         right_quote fields.
38475         (set_custom_quoting): New public function.
38476         (quotearg_buffer_restyled): Add left_quote and right_quote
38477         arguments, handle them very much like locale quoting, and update
38478         all uses.
38479         (quotearg_n_custom): New public function.
38480         (quotearg_n_custom_mem): New public function.
38481         (quotearg_custom): New public function.
38482         (quotearg_custom_mem): New public function.
38483         * lib/quotearg.h: Prototype and document new public functions.
38484         (enum quoting_style): For escape_quoting_style and
38485         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
38486         ignored even though they're otherwise like c_quoting_style.
38487         Add custom_quoting_style member and document with comparison to
38488         clocale_quoting_style.
38489         * tests/test-quotearg.c (custom_quotes): New array.
38490         (custom_results): New array.
38491         (main): Extend to test custom quoting.
38492
38493 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38494
38495         quotearg: fix right quote escaping when it's in quote_these_too
38496         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
38497         quote, be sure to prepend only one backslash.
38498         * tests/test-quotearg.c (use_quote_double_quotes): New function.
38499         (main): Test it.
38500
38501 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
38502
38503         quotearg-tests: test escaping of embedded locale quotes
38504         * tests/test-quotearg.c (struct result_strings): Add member for
38505         new input.
38506         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
38507         (inputs): Add new input.
38508         (results_g): Add expected results.
38509         (flag_results): Likewise.
38510         (locale_results): Likewise.
38511         (compare_strings): Check those.
38512
38513 2009-08-23  Bruno Haible  <bruno@clisp.org>
38514
38515         Tests for module 'dup3'.
38516         * modules/dup3-tests: New file.
38517         * tests/test-dup3.c: New file.
38518
38519         New module 'dup3'.
38520         * lib/unistd.in.h (dup3): New declaration.
38521         * lib/dup3.c: New file.
38522         * m4/dup3.m4: New file.
38523         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
38524         HAVE_DUP3.
38525         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
38526         * modules/dup3: New file.
38527         * doc/glibc-functions/dup3.texi: Mention the new module.
38528
38529 2009-08-23  Bruno Haible  <bruno@clisp.org>
38530
38531         Tweak the dup2 test.
38532         * tests/test-dup2.c (main): Create the test file empty. Verify that an
38533         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
38534         the test file is still empty. Fix argument order of lseek.
38535
38536 2009-08-23  Bruno Haible  <bruno@clisp.org>
38537
38538         Avoid test link errors when the modules getopt-gnu, gettext are used.
38539         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
38540         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
38541
38542 2009-08-23  Bruno Haible  <bruno@clisp.org>
38543
38544         Fix getdtablesize() on mingw.
38545         * lib/getdtablesize.c (getdtablesize): Implement differently.
38546         * lib/unistd.in.h (getdtablesize): Improve comment.
38547
38548 2009-08-23  Bruno Haible  <bruno@clisp.org>
38549
38550         New module 'mkostemp'.
38551         Based on Ulrich Drepper's 2007-08-10 change in glibc.
38552         * lib/stdlib.in.h (mksotemp): New declaration.
38553         * lib/mkostemp.c: New file, from glibc with modifications.
38554         * lib/tempname.h (GT_FILE): Remove outdated comment.
38555         (gen_tempname): Add flags argument.
38556         * lib/tempname.c (__GT_BIGFILE): Remove macro.
38557         (__GT_FILE): Map to 1.
38558         (small_open, large_open): Remove macros.
38559         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
38560         * lib/mkstemp.c (mkstemp): Update.
38561         * lib/mkdtemp.c (mkdtemp): Likewise.
38562         * m4/mkostemp.m4: New file.
38563         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
38564         HAVE_MKOSTEMP.
38565         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
38566         HAVE_MKOSTEMP.
38567         * modules/mkostemp: New file, based on modules/mkstemp.
38568         * doc/glibc-functions/mkostemp.texi: Mention the new module.
38569         * NEWS: Mention the change.
38570
38571 2009-08-23  Bruno Haible  <bruno@clisp.org>
38572
38573         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
38574         Reported by Eric Blake.
38575
38576 2009-08-23  Bruno Haible  <bruno@clisp.org>
38577
38578         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
38579         Reported by Eric Blake.
38580
38581 2009-08-23  Bruno Haible  <bruno@clisp.org>
38582
38583         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
38584         * modules/pipe2 (Depends-on): Likewise.
38585
38586 2009-08-23  Eric Blake  <ebb9@byu.net>
38587
38588         fcntl-h: add O_TTY_INIT support
38589         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
38590         * tests/test-fcntl-h.c (o): Test it.
38591         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38592
38593         fcntl-h: rename from fcntl, in preparation for fcntl(2)
38594         * modules/fcntl: Move <fcntl.h> header replacement...
38595         * modules/fcntl-h: ...to new name, so as not to collide with
38596         like-named function.
38597         * tests/test-fcntl.c: Rename...
38598         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
38599         * modules/fcntl-tests: Rename...
38600         * modules/fcntl-h-tests: ...to this.  Update test file name.
38601         * modules/chdir-long (Depends-on): Update clients.
38602         * modules/chdir-safer (Depends-on): Likewise.
38603         * modules/fcntl-safer (Depends-on): Likewise.
38604         * modules/fts (Depends-on): Likewise.
38605         * modules/mkancesdirs (Depends-on): Likewise.
38606         * modules/mkdir-p (Depends-on): Likewise.
38607         * modules/open (Depends-on): Likewise.
38608         * modules/savewd (Depends-on): Likewise.
38609         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
38610         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38611
38612 2009-08-22  Bruno Haible  <bruno@clisp.org>
38613
38614         * modules/binary-io (License): Relicense under LGPL.
38615         * modules/pipe2 (License): Likewise.
38616
38617 2009-08-22  Bruno Haible  <bruno@clisp.org>
38618
38619         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
38620         return value.
38621         * lib/pipe-filter-gi.c (filter_init): Likewise.
38622         Reported by Eric Blake.
38623
38624 2009-08-22  Bruno Haible  <bruno@clisp.org>
38625
38626         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
38627         * modules/pipe (Depends-on): Add pipe2.
38628
38629 2009-08-22  Bruno Haible  <bruno@clisp.org>
38630
38631         Tests for module 'pipe2'.
38632         * modules/pipe2-tests: New file.
38633         * tests/test-pipe2.c: New file.
38634
38635         New module 'pipe2'.
38636         * lib/unistd.in.h (pipe2): New declaration.
38637         * lib/pipe2.c: New file.
38638         * m4/pipe2.m4: New file.
38639         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
38640         HAVE_PIPE2.
38641         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
38642         * modules/pipe2: New file.
38643         * doc/glibc-functions/pipe2.texi: Mention the new module.
38644
38645 2009-08-22  Bruno Haible  <bruno@clisp.org>
38646
38647         Reference some new glibc functions.
38648         * doc/glibc-functions/accept4.texi: New file.
38649         * doc/glibc-functions/dup3.texi: New file.
38650         * doc/glibc-functions/mkostemp.texi: New file.
38651         * doc/glibc-functions/pipe2.texi: New file.
38652         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
38653         (Glibc sys/socket.h): Refer to accept4.
38654         (Glibc unistd.h): Refer to dup3, pipe2.
38655         Reported by Eric Blake.
38656
38657 2009-08-22  Jim Meyering  <meyering@redhat.com>
38658             Bruno Haible  <bruno@clisp.org>
38659
38660         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
38661         This makes it so packages using automake-1.11's silent-rules option
38662         can print e.g., a single "GEN    configmake.h" line, rather than
38663         the 30+ statements that perform the job.  If you want to see the
38664         actual commands, you can still run "make V=1".
38665         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
38666         so that make output is abbreviated when those variables are defined
38667         appropriately.
38668         * modules/argz: Likewise.
38669         * modules/arpa_inet: Likewise.
38670         * modules/byteswap: Likewise.
38671         * modules/configmake: Likewise.
38672         * modules/dirent: Likewise.
38673         * modules/errno: Likewise.
38674         * modules/fcntl: Likewise.
38675         * modules/float: Likewise.
38676         * modules/fnmatch: Likewise.
38677         * modules/getopt-posix: Likewise.
38678         * modules/glob: Likewise.
38679         * modules/iconv_open: Likewise.
38680         * modules/inttypes: Likewise.
38681         * modules/localcharset: Likewise.
38682         * modules/locale: Likewise.
38683         * modules/math: Likewise.
38684         * modules/netdb: Likewise.
38685         * modules/netinet_in: Likewise.
38686         * modules/poll: Likewise.
38687         * modules/posix_spawnp-tests: Likewise.
38688         * modules/sched: Likewise.
38689         * modules/search: Likewise.
38690         * modules/selinux-h: Likewise.
38691         * modules/signal: Likewise.
38692         * modules/spawn: Likewise.
38693         * modules/stdarg: Likewise.
38694         * modules/stdbool: Likewise.
38695         * modules/stddef: Likewise.
38696         * modules/stdint: Likewise.
38697         * modules/stdio: Likewise.
38698         * modules/stdlib: Likewise.
38699         * modules/string: Likewise.
38700         * modules/strings: Likewise.
38701         * modules/sys_file: Likewise.
38702         * modules/sys_ioctl: Likewise.
38703         * modules/sys_select: Likewise.
38704         * modules/sys_socket: Likewise.
38705         * modules/sys_stat: Likewise.
38706         * modules/sys_time: Likewise.
38707         * modules/sys_times: Likewise.
38708         * modules/sys_utsname: Likewise.
38709         * modules/sys_wait: Likewise.
38710         * modules/sysexits: Likewise.
38711         * modules/time: Likewise.
38712         * modules/unistd: Likewise.
38713         * modules/wchar: Likewise.
38714         * modules/wctype: Likewise.
38715
38716 2009-08-22  Jim Meyering  <meyering@redhat.com>
38717
38718         announce-gen: detect write failure
38719         * build-aux/announce-gen: Add Coda at end.
38720         Remove equivalent-but-more-verbose block at top.
38721
38722 2009-08-19  Akim Demaille  <demaille@gostai.com>
38723
38724         bootstrap: --help to stdout.
38725         * bootstrap (usage): Don't send --help to stderr.
38726         Use a here doc instead of a long string.
38727
38728 2009-08-21  Eric Blake  <ebb9@byu.net>
38729
38730         test-popen-safer: split from test-popen
38731         * tests/test-popen.c (main): Move...
38732         * tests/test-popen.h: ...into new file.
38733         * tests/test-popen-safer2.c: New file.
38734         * modules/popen-tests (Files): Add test-popen.h.
38735         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
38736         Suggested by Bruno Haible.
38737
38738         test-fcntl-safer: split from test-open
38739         * tests/test-open.c (main): Move...
38740         * tests/test-open.h: ...into new file.
38741         * tests/test-fcntl-safer.c: New file.
38742         * modules/open-tests (Files): Add test-open.h.
38743         * modules/fcntl-safer-tests: New file.
38744         Suggested by Bruno Haible.
38745
38746         test-fopen-safer: split from test-fopen
38747         * tests/test-fopen.c (main): Move...
38748         * tests/test-fopen.h: ...into new file.
38749         * tests/test-fopen-safer.c: New file.
38750         * modules/fopen-tests (Files): Add test-fopen.h.
38751         * modules/fopen-safer-tests: New file.
38752         Suggested by Bruno Haible.
38753
38754 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
38755
38756         popen-safer: test O_CLOEXEC at run-time.
38757         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
38758
38759 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
38760
38761         fcntl: move more flags to the header
38762         * lib/cloexec.c: Do not define FD_CLOEXEC here.
38763         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
38764         * lib/fcntl.in.h: Do both things here.
38765
38766 2009-08-21  Jim Meyering  <meyering@redhat.com>
38767
38768         consistently remove $@-t before redirecting to it
38769         * modules/argz: Remove $@-t and $@ before redirecting to the former.
38770         * modules/alloca-opt: Likewise.
38771         * modules/byteswap: Likewise.
38772         * modules/fnmatch: Likewise.
38773         * modules/getopt-posix: Likewise.
38774         * modules/glob: Likewise.
38775         * modules/poll: Likewise.
38776         * modules/posix_spawnp-tests: Likewise.
38777         * modules/sys_socket: Likewise.
38778         * modules/sysexits: Likewise.
38779
38780 2009-08-21  Eric Blake  <ebb9@byu.net>
38781
38782         popen: simplify access to original popen
38783         * lib/popen.c (rpl_popen): No need to worry about popen being a
38784         macro.
38785         Reported by Bruno Haible.
38786
38787 2009-08-20  Eric Blake  <ebb9@byu.net>
38788
38789         build: avoid some compiler warnings
38790         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
38791         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
38792         type.
38793         (new_exclude_segment, excluded_file_pattern_p)
38794         (excluded_file_name_p): Reduce scope.
38795         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
38796         old-style declaration.
38797
38798 2009-08-20  Simon Josefsson  <simon@josefsson.org>
38799
38800         * tests/test-exclude1.sh: Handle Windows EOL.
38801         * tests/test-exclude2.sh: Likewise.
38802         * tests/test-exclude3.sh: Likewise.
38803         * tests/test-exclude4.sh: Likewise.
38804         * tests/test-exclude5.sh: Likewise.
38805         * tests/test-exclude6.sh: Likewise.
38806         * tests/test-exclude7.sh: Likewise.
38807
38808 2009-08-19  Akim Demaille  <demaille@gostai.com>
38809
38810         bootstrap: find sha1sum when named gsha1sum.
38811         * bootstrap (find_tool): New.
38812         ($SHA1SUM): New.
38813         Use it.
38814
38815 2009-08-20  Jim Meyering  <meyering@redhat.com>
38816
38817         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
38818         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
38819         expression that converts "." in a file name to "\." in the resulting
38820         regexp.  Start with a dummy statement, so that prior shell variable
38821         definitions are expanded portably.  Reported by Simon Josefsson.
38822
38823 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
38824
38825         Fix polling for writeability of a screen buffer.
38826         * lib/poll.c: Distinguish input and screen buffers for the
38827         Win32 implementation.
38828         * lib/select.c: Likewise.
38829
38830 2009-08-19  Eric Blake  <ebb9@byu.net>
38831
38832         popen-safer: prevent popen from clobbering std descriptors
38833         * modules/popen-safer: New file.
38834         * lib/popen-safer.c: Likewise.
38835         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
38836         * lib/stdio--.h (popen): Provide override.
38837         * lib/stdio-safer.h (popen_safer): Provide declaration.
38838         * tests/test-popen.c (includes): Partially test this.
38839         * modules/popen-safer-tests: New file, for more tests.
38840         * tests/test-popen-safer.c: Likewise.
38841         * MODULES.html.sh (file stream based Input/Output): Mention it.
38842
38843         tests: test some of the *-safer modules
38844         * modules/fopen-safer (Depends-on): Add fopen.
38845         * modules/fcntl-safer (Depends-on): Add fcntl.
38846         * modules/stdlib-safer (Depends-on): Add stdlib.
38847         (configure.ac): Set indicator.
38848         * modules/unistd-safer (configure.ac): Likewise.
38849         * modules/tmpfile-safer (configure.ac): Likewise.
38850         (Depends-on): Add tmpfile.
38851         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
38852         active.
38853         * tests/test-fopen.c (includes): Test safer versions when they are
38854         in use.
38855         * tests/test-open.c (includes): Likewise.
38856
38857         popen: fix cygwin 1.5 bug when stdin closed
38858         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
38859         * modules/popen: New file.
38860         * modules/popen-tests: Likewise.
38861         * tests/test-popen.c: Likewise.
38862         * m4/popen.m4: Likewise.
38863         * lib/popen.c: Likewise.
38864         * lib/stdio.in.h (popen): New declaration.
38865         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
38866         * modules/stdio (Makefile.am): Likewise.
38867         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
38868
38869 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
38870
38871         maint.mk: give full control over update-copyright exclusions
38872         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
38873         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
38874         (update-copyright): Don't force inclusion of top-level
38875         ChangeLog.  Don't force exclusion of all COPYING files, but make
38876         them the default exclusion instead.
38877
38878 2009-08-16  Bruno Haible  <bruno@clisp.org>
38879
38880         Fix test failures on Solaris 10.
38881         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
38882         tests when Solaris iconv() is used.
38883         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
38884         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
38885         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
38886         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
38887         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
38888
38889 2009-08-16  Bruno Haible  <bruno@clisp.org>
38890
38891         Fix test failures on Solaris 10.
38892         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
38893         'tr' program and pass it as first argument.
38894         * tests/test-pipe-filter-gi1.sh: Likewise.
38895         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
38896         program as first argument.
38897         * tests/test-pipe-filter-gi1.c (main): Likewise.
38898
38899 2009-08-16  Eric Blake  <ebb9@byu.net>
38900
38901         fpurge: fix previous commits
38902         * modules/fpurge (Makefile.am): Make replacement conditional,
38903         partially reverting 2007-04-29 change; missed in previous
38904         attempt.
38905         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
38906         is missing.
38907
38908 2009-08-16  Bruno Haible  <bruno@clisp.org>
38909
38910         Clarify fpurge's effect on the file position.
38911         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
38912         * tests/test-fpurge.c (main): Make a second pass for checking the file
38913         position.
38914
38915 2009-08-16  Bruno Haible  <bruno@clisp.org>
38916
38917         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
38918         declaration of fpurge is missing.
38919         * tests/test-fpurge.c (main): Check that the file has not more contents
38920         than expected. Close the file before removing it.
38921
38922 2009-08-15  Eric Blake  <ebb9@byu.net>
38923
38924         fpurge: don't wrap working cygwin implementation
38925         * lib/fpurge.c (fpurge): Fix comment typo.
38926         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
38927         1.7 to avoid replacement.
38928         * tests/test-fpurge.c (main): Enhance test.
38929
38930 2009-08-15  Eric Blake  <ebb9@byu.net>
38931         and Jim Meyering  <meyering@redhat.com>
38932
38933         test-update-copyright: skip if perl is insufficient
38934         * tests/test-update-copyright.sh: Failure to run maintainer tool
38935         should not cause testsuite failure on cygwin 1.5.
38936
38937 2009-08-14  Eric Blake  <ebb9@byu.net>
38938
38939         doc: mention more functions added in cygwin 1.7.0
38940         * doc/posix-headers/limits.texi (limits.h): Update for recent
38941         cygwin additions.
38942         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
38943         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
38944         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
38945         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
38946         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
38947
38948 2009-08-14  Eric Blake  <ebb9@byu.net>
38949
38950         maint.mk: simplify update-copyright rule
38951         * top/maint.mk (update-copyright-local): Delete, and document how
38952         to do it in cfg.mk instead.
38953         (update-copyright-exclude-regexp): Delete, and document how to do
38954         it in .x-update-copyright instead.
38955         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
38956         exclude ChangeLog.
38957
38958 2009-08-14  Bruno Haible  <bruno@clisp.org>
38959
38960         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
38961
38962 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38963
38964         maint.mk: support update-copyright-env
38965         * top/maint.mk (update-copyright-env): Define place-holder.
38966         (update-copyright): Expand $(update-copyright-env) before
38967         invoking update-copyright.
38968
38969 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
38970
38971         update-copyright: implement forced reformatting
38972         * build-aux/update-copyright: Implement and document
38973         UPDATE_COPYRIGHT_FORCE.
38974         * tests/test-update-copyright.sh: Test it.
38975
38976 2009-08-14  Eric Blake  <ebb9@byu.net>
38977         and Bruno Haible  <bruno@clisp.org>
38978
38979         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
38980         * tests/test-locale.c: Revert previous patch related to NULL.
38981         * tests/test-stdio.c: Likewise.
38982         * tests/test-stdlib.c: Likewise.
38983         * tests/test-string.c: Likewise.
38984         * tests/test-unistd.c: Likewise.
38985         * modules/time-tests (Depends-on): Add verify.
38986         * modules/wchar-tests (Depends-on): Likewise.
38987         * tests/test-time.c: Test for NULL compliance.
38988         * tests/test-wchar.c: Likewise.
38989         * modules/locale (Depends-on): Add stddef.
38990         * modules/stdio (Depends-on): Likewise.
38991         * modules/stdlib (Depends-on): Likewise.
38992         * modules/string (Depends-on): Likewise.
38993         * modules/time (Depends-on): Likewise.
38994         * modules/unistd (Depends-on): Likewise.
38995         * modules/wchar (Depends-on): Likewise.
38996         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
38997         * lib/stdlib.in.h (includes): Likewise.
38998         * lib/string.in.h (includes): Likewise.
38999         * lib/time.in.h (includes): Likewise.
39000         * lib/unistd.in.h (includes): Likewise.
39001         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
39002         replaced.
39003         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
39004         * m4/stddef_h.m4: New file.
39005         * modules/stddef: Likewise.
39006         * lib/stddef.in.h: Likewise.
39007         * modules/stddef-tests: Likewise.
39008         * tests/test-stddef.c: Likewise.
39009         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
39010         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
39011         * doc/posix-headers/locale.texi (locale.h): Likewise.
39012         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
39013         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
39014         * doc/posix-headers/string.texi (string.h): Likewise.
39015         * doc/posix-headers/time.texi (time.h): Likewise.
39016         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
39017         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
39018
39019 2009-08-14  Eric Blake  <ebb9@byu.net>
39020
39021         doc: improve git diff of texinfo files
39022         * .gitattributes: Add rule for *.texi files, with hint on how to
39023         use it.
39024         Copied from m4, and based on a report by Bruno Haible.
39025
39026 2009-08-14  Bruno Haible  <bruno@clisp.org>
39027
39028         Disable multithread support by default on Cygwin 1.5.x for real.
39029         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
39030
39031 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
39032
39033         update-copyright: much ado about intervals
39034         * build-aux/update-copyright: Implement and document
39035         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
39036         of copyright year intervals.
39037         Also, document UPDATE_COPYRIGHT_YEAR.
39038         * tests/test-update-copyright.sh: Test it.
39039
39040         update-copyright: convert 2-digit to 4-digit years
39041         * build-aux/update-copyright: Implement and document.
39042         * tests/test-update-copyright.sh: Update.
39043
39044 2009-08-14  Jim Meyering  <meyering@redhat.com>
39045
39046         test-exclude: avoid coreutils "make check" failure
39047         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
39048         just as in test-argmatch.c.
39049
39050 2009-08-13  Eric Blake  <ebb9@byu.net>
39051
39052         test-dup2: fix bad assumption
39053         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
39054         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
39055
39056         test-version-etc: fix CRLF portability issue
39057         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
39058         recognize \r.
39059         * tests/test-argp-version-etc-1.sh: Likewise.
39060
39061         getopt: update client modules
39062         * modules/argp (Depends-on): Use getopt-gnu.
39063         * modules/git-merge-changelog (Depends-on): Likewise.
39064         * modules/long-options (Depends-on): Likewise.
39065         * modules/xstrtol (Depends-on): Likewise.
39066
39067 2009-08-13  Simon Josefsson  <simon@josefsson.org>
39068
39069         * tests/test-version-etc.sh: Don't fail on different
39070         project/version.  Don't fail on CRLF differences.  Rewrite to use
39071         multiple -e instead of multiple sed forks, suggested by Eric Blake
39072         <ebb9@byu.net>.
39073         * tests/test-argp-version-etc-1.sh: Likewise.
39074
39075 2009-08-13  Simon Josefsson  <simon@josefsson.org>
39076
39077         * tests/test-version-etc.sh: Don't fail on different
39078         project/version.
39079
39080 2009-08-12  Bruno Haible  <bruno@clisp.org>
39081
39082         Tests for modules 'getopt-posix', 'getopt-gnu'.
39083         * modules/getopt-posix-tests: New file.
39084         * tests/test-getopt.c: New file.
39085         * tests/test-getopt.h: New file.
39086         * tests/test-getopt_long.h: New file.
39087
39088         New modules 'getopt-posix', 'getopt-gnu'.
39089         * modules/getopt-gnu: New file, renamed from modules/getopt.
39090         * modules/getopt-posix: New file.
39091         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
39092         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
39093         (gl_GETOPT): Remove macro.
39094         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
39095         Disable the test against BSD systems that declare optreset. Test
39096         against mingw bug. Test against lack of support of optional arguments
39097         on many platforms.
39098         * doc/glibc-headers/getopt.texi: Update module name and list of
39099         relevant platforms.
39100         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
39101         'getopt-gnu' and more portability problems.
39102         * NEWS: Mention the changes.
39103
39104 2009-08-12  Bruno Haible  <bruno@clisp.org>
39105
39106         Ensure that optarg etc. get declared by <unistd.h>.
39107         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
39108         AC_USE_SYSTEM_EXTENSIONS.
39109         * modules/getopt (Depends-on): Add 'extensions'.
39110
39111 2009-08-12  Bruno Haible  <bruno@clisp.org>
39112
39113         Avoid test link errors.
39114         * modules/pipe-filter-ii-tests (Makefile.am): Define
39115         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
39116         * modules/pipe-filter-gi-tests (Makefile.am): Define
39117         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
39118         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39119
39120 2009-08-12  Bruno Haible  <bruno@clisp.org>
39121
39122         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
39123         gl_GETOPT_SUBSTITUTE before.
39124         (gl_GETOPT): Use it.
39125         * m4/argp.m4 (gl_ARGP): Update.
39126         Reported by Sergey Poznyakoff.
39127
39128         * m4/getopt.m4: Reorder macros.
39129         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
39130         (gl_GETOPT_SUBSTITUTE): Remove macro.
39131
39132 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39133
39134         Minor improvement in gitlog-to-changelog
39135
39136         * build-aux/gitlog-to-changelog: New option `--format' makes
39137         output format string configurable.
39138
39139 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
39140
39141         Optimize exclude: use hash tables for non-wildcard patterns.
39142
39143         * lib/exclude.c: Include hash.h and mbuiter.h
39144         (struct exclude_pattern, exclude_segment): New data types.
39145         (struct exclude): Rewrite.
39146         (fnmatch_pattern_has_wildcards): New function.
39147         (new_exclude_segment, free_exclude_segment): New functions.
39148         (excluded_file_pattern_p, excluded_file_name_p): New functions.
39149         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
39150         * lib/exclude.h (is_fnmatch_pattern): New prototype.
39151         * modules/exclude: Depend on hash and mbuiter.
39152
39153         * modules/exclude-tests: New file.
39154         * tests/test-exclude.c: New file.
39155         * tests/test-exclude1.sh: New file.
39156         * tests/test-exclude2.sh: New file.
39157         * tests/test-exclude3.sh: New file.
39158         * tests/test-exclude4.sh: New file.
39159         * tests/test-exclude5.sh: New file.
39160         * tests/test-exclude6.sh: New file.
39161         * tests/test-exclude7.sh: New file.
39162
39163 2009-08-12  Bruno Haible  <bruno@clisp.org>
39164
39165         Ensure that getopt() gets declared by <unistd.h>.
39166         * lib/unistd.in.h: Conditionally include getopt.h.
39167         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
39168         Set GNULIB_UNISTD_H_GETOPT.
39169         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39170         GNULIB_UNISTD_H_GETOPT.
39171         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
39172
39173 2009-08-12  Bruno Haible  <bruno@clisp.org>
39174
39175         Clarify logic.
39176         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
39177         gl_replace_getopt instead of GETOPT_H.
39178
39179 2009-08-12  Bruno Haible  <bruno@clisp.org>
39180
39181         * m4/getopt.m4: Add comments.
39182
39183 2009-08-12  Bruno Haible  <bruno@clisp.org>
39184
39185         Disable multithread support by default on Cygwin 1.5.x.
39186         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
39187         set gl_use_threads=no if not specified otherwise.
39188
39189 2009-08-11  Bruno Haible  <bruno@clisp.org>
39190
39191         Avoid compilation error on NetBSD 5.0.
39192         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
39193         * tests/test-stdio.c: Likewise.
39194         * tests/test-stdlib.c: Likewise.
39195         * tests/test-string.c: Likewise.
39196         * tests/test-unistd.c: Likewise.
39197         Reported by Greg Troxel <gdt@ir.bbn.com>
39198         at <https://savannah.gnu.org/support/?106973>.
39199
39200 2009-08-11  Bruno Haible  <bruno@clisp.org>
39201
39202         * modules/dup2-tests (Depends-on): Remove close.
39203
39204         Undo 2009-07-19 commit.
39205         * modules/acl-tests (Depends-on): Remove close.
39206         * modules/binary-io-tests (Depends-on): Likewise.
39207         * modules/closein-tests (Depends-on): Likewise.
39208         * modules/flock-tests (Depends-on): Likewise.
39209         * modules/fsync-tests (Depends-on): Likewise.
39210         * modules/lseek-tests (Depends-on): Likewise.
39211         * modules/pipe-tests (Depends-on): Likewise.
39212         * modules/posix_spawn-tests (Depends-on): Likewise.
39213         * modules/posix_spawnp-tests (Depends-on): Likewise.
39214         * modules/stat-time-tests (Depends-on): Likewise.
39215         * modules/yesno-tests (Depends-on): Likewise.
39216
39217 2009-08-10  Bruno Haible  <bruno@clisp.org>
39218
39219         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
39220
39221 2009-08-10  Bruno Haible  <bruno@clisp.org>
39222
39223         Fix a gcc warning.
39224         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
39225
39226 2009-08-10  Bruno Haible  <bruno@clisp.org>
39227
39228         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
39229         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
39230         not only the first time.
39231         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
39232         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
39233         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
39234         is 1, not only the the first time.
39235
39236 2009-08-10  Bruno Haible  <bruno@clisp.org>
39237
39238         Make it possible to use module 'gethostname' without module 'close'.
39239         * lib/unistd.in.h (close): Evoke a link error only if
39240         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
39241         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
39242         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39243         * modules/unistd (Makefile.am): Substitute
39244         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39245         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
39246         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
39247         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
39248         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39249         * modules/sys_ioctl (Makefile.am): Substitute
39250         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39251         * modules/socket (configure.ac): On native Windows, set
39252         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
39253         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
39254         Reported by Sam Steingold <sds@gnu.org>.
39255
39256 2009-08-10  Bruno Haible  <bruno@clisp.org>
39257
39258         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
39259         * modules/ioctl (configure.ac): Likewise.
39260
39261 2009-08-10  Bruno Haible  <bruno@clisp.org>
39262
39263         Avoid collision between gnulib wrapper and libintl wrapper.
39264         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
39265         already defined in intl/printf.c.
39266         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
39267         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
39268
39269 2009-08-09  Bruno Haible  <bruno@clisp.org>
39270
39271         Make <sys/select.h> really self-contained, also on Solaris 10.
39272         * lib/sys_select.in.h: Include <string.h>.
39273         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
39274         Solaris 10 problem.
39275         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
39276         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
39277         Reported by Jim Meyering.
39278
39279 2009-08-09  Bruno Haible  <bruno@clisp.org>
39280
39281         Avoid warnings from 'aclocal' that are due to a use of macro name
39282         AM_XGETTEXT_OPTION that is not defined in automake.
39283         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
39284         automake.
39285         * modules/error (configure.ac): Likewise.
39286         * modules/propername (configure.ac): Likewise.
39287         * modules/vasprintf (configure.ac): Likewise.
39288         * modules/verror (configure.ac): Likewise.
39289         * modules/xprintf (configure.ac): Likewise.
39290         * modules/xvasprintf (configure.ac): Likewise.
39291
39292 2009-08-08  Bruno Haible  <bruno@clisp.org>
39293
39294         Avoid compilation error in C++ mode.
39295         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
39296         Reported by Sam Steingold <sds@gnu.org>.
39297
39298 2009-08-08  Bruno Haible  <bruno@clisp.org>
39299
39300         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
39301         for the various Unix platforms.
39302         * doc/posix-headers/limits.texi: Update platforms list regarding
39303         HOST_NAME_MAX.
39304         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
39305
39306 2009-08-07  Jim Meyering  <meyering@redhat.com>
39307
39308         selinux-at: fix typo in a comment
39309         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
39310         Spotted by Paolo Bonzini.
39311
39312         selinux-at: remove redundant m4 code, add documentation
39313         * modules/selinux-at (configure.ac): Remove redundant code.
39314         LIB_SELINUX is already set via the dependent module, selinux-h.
39315         (Include): Add quotes around selinux-at.h.
39316         * lib/selinux-at.h: Add documentation.
39317         Reported by Bruno Haible in
39318         http://marc.info/?l=gnulib-bug&m=124958988300749
39319
39320 2009-08-07  Bruno Haible  <bruno@clisp.org>
39321
39322         Avoid link error on MacOS X 10.3 and 10.4.
39323         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
39324         on non-ELF systems.
39325         * lib/argp-pv.c (argp_program_version): Likewise.
39326         Reported by Simon Josefsson.
39327
39328 2009-08-07  Simon Josefsson  <simon@josefsson.org>
39329
39330         * tests/test-version-etc.sh: Use $EXEEXT.
39331
39332 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
39333
39334         update-copyright: update documentation to point to maint.mk
39335         * build-aux/update-copyright: Here.
39336
39337 2009-08-06  Jim Meyering  <meyering@redhat.com>
39338
39339         maint.mk: support update-copyright-local
39340         * top/maint.mk (update-copyright-local): Define place-holder.
39341         (update-copyright): Depend on $(update-copyright-local).
39342
39343 2009-08-06  Jim Meyering  <meyering@redhat.com>
39344
39345         selinux-at: new module
39346         Initially written for coreutils, this module will soon be
39347         used by findutils, too.
39348         * MODULES.html.sh [Misc]: Add selinux-at.
39349         * lib/selinux-at.h: New file, from coreutils.
39350         * lib/selinux-at.c: Likewise.
39351         * modules/selinux-at: Likewise.
39352         (License): Change from LGPL to GPL, since it depends
39353         on the GPL'd openat module.
39354
39355         doc: update README
39356         * README: Remove references to cogito.
39357         Remove cvs-repo-updating instructions from 2007.
39358         Don't imply that CVS is better if you have limited disk space.
39359
39360 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39361
39362         update-copyright: support C-style comments
39363         * build-aux/update-copyright: Implement and document.
39364         * tests/test-update-copyright.sh: Test.
39365
39366 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39367
39368         update-copyright: support omitted "(C)"
39369         * build-aux/update-copyright: Implement and document.  Also,
39370         allow variable whitespace before "(C)".
39371         * tests/test-update-copyright.sh: Test.
39372
39373 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39374
39375         update-copyright: don't trip on non-FSF copyright statements
39376         * build-aux/update-copyright: Fix so that the first correctly
39377         formatted FSF copyright statement is recognized no matter what
39378         appears before it.  Update documentation.
39379         * tests/test-update-copyright.sh: Test that.
39380
39381 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39382
39383         update-copyright: clean up code a little
39384         * build-aux/update-copyright: Append "_re" to the name of any
39385         variable holding a regular expression.
39386         Replace "old" and "new" with "stmt" in variable names.
39387         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
39388         handled correctly.
39389         Format code more consistently.
39390
39391 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
39392
39393         update-copyright-tests: improve portability
39394         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
39395         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
39396
39397 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
39398
39399         update-copyright: support @copyright{} and &copy;
39400         * build-aux/update-copyright: Implement and document.
39401         * tests/test-update-copyright.sh: Test.
39402
39403 2009-08-04  Jim Meyering  <meyering@redhat.com>
39404
39405         update-copyright-tests: correctly test EOL=\r\n handling
39406         * tests/test-update-copyright.sh: Put \r at the end of some lines
39407         for the dos-eol tests.  Based on a patch by Joel E. Denny.
39408
39409         maint.mk: make update-copyright exclusion list more configurable
39410         * top/maint.mk (update-copyright): Default to excluding COPYING,
39411         but allow an override, in case someone does want to update that file.
39412
39413         maint.mk: don't update copyright date in COPYING
39414         * top/maint.mk (update-copyright): Exclude COPYING.
39415
39416         maint.mk: add a copyright-updating rule
39417         * top/maint.mk (update-copyright): New rule.
39418         Derived from coreutils/Makefile.am.
39419
39420         update-copyright: rename some variables
39421         * build-aux/update-copyright: Rename a few variables for clarity.
39422         Tweak syntax.  List Joel E. Denny as coauthor.
39423
39424 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
39425
39426         update-copyright: fix bug for 2-digit last year and add tests
39427         * build-aux/update-copyright: Fix bug.
39428         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
39429         specified.
39430         * modules/update-copyright-tests: New
39431         * tests/test-update-copyright.sh: New.
39432
39433 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39434
39435         update-copyright: handle leading tabs in line prefix
39436         * build-aux/update-copyright: Count leading tabs as 8 spaces
39437         when computing margin.  This helps with the formatting of
39438         ChangeLogs, for example.
39439         Fix documentation a little.
39440
39441 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39442
39443         update-copyright: support EOL=\r\n
39444         * build-aux/update-copyright: Implement that.
39445
39446 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
39447
39448         update-copyright: automatically format copyright statements
39449         * build-aux/update-copyright: Implement that.
39450         Also, be a little more predictable and safer by always failing
39451         when the full copyright format is not perfectly recognized as an
39452         unbroken whole.  Discussed at
39453         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
39454         Rewrite documentation.
39455
39456 2009-08-03  Bruno Haible  <bruno@clisp.org>
39457
39458         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
39459
39460 2009-08-02  Bruno Haible  <bruno@clisp.org>
39461
39462         Tests for module 'uname'.
39463         * modules/uname-tests: New file.
39464         * tests/test-uname.c: New file.
39465
39466         New module 'uname'.
39467         * lib/uname.c: New file.
39468         * m4/uname.m4: New file.
39469         * modules/uname: New file.
39470         * doc/posix-functions/uname.texi: Mention the new module.
39471
39472 2009-08-02  Bruno Haible  <bruno@clisp.org>
39473
39474         Tests for module 'sys_utsname'.
39475         * modules/sys_utsname-tests: New file.
39476         * tests/test-sys_utsname.c: New file.
39477
39478         New module 'sys_utsname'.
39479         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
39480         * m4/sys_utsname_h.m4: New file.
39481         * modules/sys_utsname: New file.
39482         * doc/posix-headers/sys_utsname.texi: Mention the new module.
39483
39484 2009-08-02  Bruno Haible  <bruno@clisp.org>
39485
39486         Implicitly initialize the sockets library.
39487         * lib/gethostname.c: Include sockets.h.
39488         (rpl_gethostname): Invoke gl_sockets_startup.
39489         * lib/socket.c: Include sockets.h.
39490         (rpl_socket): Invoke gl_sockets_startup.
39491         * modules/gethostname (Depends-on): Add sockets.
39492         * modules/socket (Depends-on): Likewise.
39493         * tests/test-poll.c: Don't include sockets.h.
39494         (main): Don't invoke gl_sockets_startup.
39495         * tests/test-select.c: Don't include sockets.h.
39496         (main): Don't invoke gl_sockets_startup.
39497
39498 2009-08-02  Bruno Haible  <bruno@clisp.org>
39499
39500         Allow multiple calls to gl_sockets_startup.
39501         * lib/sockets.c (initialized_sockets_version): New variable.
39502         (gl_sockets_startup): Do nothing if already called for this or a higher
39503         version.
39504         (gl_sockets_cleanup): Reset initialized_sockets_version.
39505
39506 2009-08-03  Simon Josefsson  <simon@josefsson.org>
39507
39508         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
39509         different project/version.
39510
39511 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
39512             Bruno Haible  <bruno@clisp.org>
39513
39514         Tests for module 'pipe-filter-gi'.
39515         * modules/pipe-filter-gi-tests: New file.
39516         * tests/test-pipe-filter-gi1.sh: New file.
39517         * tests/test-pipe-filter-gi1.c: New file.
39518         * tests/test-pipe-filter-gi2.sh: New file.
39519         * tests/test-pipe-filter-gi2-main.c: New file.
39520         * tests/test-pipe-filter-gi2-child.c: New file.
39521
39522         New module 'pipe-filter-gi'.
39523         * lib/pipe-filter-gi.c: New file.
39524         * modules/pipe-filter-gi: New file.
39525
39526 2009-08-02  Bruno Haible  <bruno@clisp.org>
39527             Paolo Bonzini  <bonzini@gnu.org>
39528
39529         Tests for module 'pipe-filter-ii'.
39530         * modules/pipe-filter-ii-tests: New file.
39531         * tests/test-pipe-filter-ii1.sh: New file.
39532         * tests/test-pipe-filter-ii1.c: New file.
39533         * tests/test-pipe-filter-ii2.sh: New file.
39534         * tests/test-pipe-filter-ii2-main.c: New file.
39535         * tests/test-pipe-filter-ii2-child.c: New file.
39536
39537         New module 'pipe-filter-ii'.
39538         * lib/pipe-filter.h: New file.
39539         * lib/pipe-filter-ii.c: New file.
39540         * lib/pipe-filter-aux.h: New file.
39541         * modules/pipe-filter-ii: New file.
39542
39543 2009-08-02  Simon Josefsson  <simon@josefsson.org>
39544
39545         * lib/gc-libgcrypt.c: Change copyright to FSF.
39546         * lib/gc-gnulib.c: Likewise.
39547
39548 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
39549
39550         * lib/gethostname.c: Include limits.h.
39551
39552 2009-08-02  Simon Josefsson  <simon@josefsson.org>
39553             Bruno Haible  <bruno@clisp.org>
39554
39555         Ensure HOST_NAME_MAX as part of the gethostname module.
39556         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
39557         define also HOST_NAME_MAX.
39558         * tests/test-gethostname.c: Include <limits.h>.
39559         (main): Check also HOST_NAME_MAX.
39560         * doc/posix-headers/limits.texi: Document the mingw problem.
39561
39562 2009-08-02  Bruno Haible  <bruno@clisp.org>
39563
39564         * lib/gethostname.c (gethostname): Fix handling of large len argument.
39565         Add comments.
39566
39567 2009-03-31  Simon Josefsson  <simon@josefsson.org>
39568
39569         * lib/gethostname.c: Add Windows wrapper.
39570         * m4/gethostname.m4: Look for gethostname in -lws2_32.
39571         * modules/gethostname: Depend on sys_socket & errno, for also
39572         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
39573         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
39574
39575 2009-07-31  Jim Meyering  <meyering@redhat.com>
39576
39577         getloadavg: fix symbol name in comment
39578         * lib/getloadavg.c: Correct a typo I introduced when adding
39579         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
39580         Matt Kraai spotted the problem.
39581
39582 2009-07-29  Matt Kraai  <mkraai@beckman.com>
39583
39584         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
39585         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
39586         code also if ! defined N_NAME_POINTER.
39587         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
39588         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
39589         but the n_name member is a 12-byte array.
39590
39591 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
39592
39593         update-copyright: generalize comment handling
39594         * build-aux/update-copyright: Handle copyright statements
39595         within more comment styles.
39596         Document usage.
39597         Report any file with an external copyright holder or parse failure.
39598
39599 2009-07-29  Jim Meyering  <meyering@redhat.com>
39600
39601         mktime: correct setting of REPLACE_MKTIME
39602         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
39603
39604         update-copyright: new module
39605         * modules/update-copyright: New file.
39606         * build-aux/update-copyright: New file.
39607         * MODULES.html.sh (maint+release support): Add update-copyright.
39608
39609 2009-07-27  Bruno Haible  <bruno@clisp.org>
39610
39611         Fix compilation error when <ctime> is used and mktime is replaced.
39612         * lib/time.in.h (mktime): New declaration.
39613         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
39614         REPLACE_MKTIME instead of defining mktime in config.h.
39615         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
39616         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
39617         Reported by Ross McFarland <rwmcfa1@neces.com>.
39618
39619 2009-07-27  Bruno Haible  <bruno@clisp.org>
39620
39621         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
39622         Reported by Matt Kraai <mkraai@beckman.com>.
39623
39624 2009-07-25  Jim Meyering  <meyering@redhat.com>
39625
39626         maint.mk: avoid warnings about missing files
39627         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
39628         diagnostic when .prev-version does not exist.
39629         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
39630         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
39631         nonexistent cfg.mk.
39632         Suggestions from Simon Josefsson.
39633
39634 2009-07-25  Bruno Haible  <bruno@clisp.org>
39635
39636         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
39637         defined as macros. Needed on QNX 6.4.1.
39638         Reported by Matt Kraai <mkraai@beckman.com>.
39639
39640 2009-07-23  Jim Meyering  <meyering@redhat.com>
39641
39642         maint.mk: invoke "make dist" with a working value of XZ_OPT
39643         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
39644
39645 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
39646
39647         Make fseeko.c compile on QNX.
39648         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
39649
39650 2009-07-22  Peter Simons  <simons@cryp.to>
39651
39652         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
39653         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
39654         * lib/md4.h: Likewise.
39655         * lib/md5.h: Likewise.
39656         * lib/sha1.h: Likewise.
39657         * lib/sha256.h: Likewise.
39658         * lib/sha512.h: Likewise.
39659
39660         tests-sha1: don't assign literal string to 'char *' variable
39661         * tests/test-sha1.c (main): Declare locals with "const" to match
39662         attributes of the right hand side.
39663
39664 2009-07-21  Eric Blake  <ebb9@byu.net>
39665
39666         dup2: fix more mingw problems
39667         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
39668         fd to itself.
39669         * doc/posix-functions/dup2.texi (dup2): Document the bug.
39670         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
39671         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
39672         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
39673         care of mingw bugs.
39674
39675 2009-07-21  Jim Meyering  <meyering@redhat.com>
39676
39677         vc-list-files: avoid failure when /bin/sh is dash
39678         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
39679         On some Debian based systems, /bin/sh is a symlink to dash, and running
39680         this command would omit the "/" following each 'tests' prefix:
39681           dash -x build-aux/vc-list-files -C . tests
39682         That is because bash and dash work differently:
39683           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
39684           bash ok
39685           dash odd
39686
39687 2009-07-21  Eric Blake  <ebb9@byu.net>
39688
39689         dup2-tests: test previous patch
39690         * modules/dup2-tests: New file.
39691         * tests/test-dup2.c: Likewise.
39692         * tests/test-open.c (main): Avoid unspecified behavior.
39693         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
39694         test.
39695
39696         dup2: work around mingw and cygwin 1.5 bug
39697         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
39698         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
39699         * modules/unistd (Makefile.am): Substitute it.
39700         * lib/unistd.in.h (dup2): Declare the replacement.
39701         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
39702         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
39703         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
39704         * modules/execute (Depends-on): Add dup2.
39705         * modules/fseterr (Depends-on): Likewise.
39706         * modules/pipe (Depends-on): Likewise.
39707         * modules/posix_spawn-internal (Depends-on): Likewise.
39708
39709 2009-07-21  Bruno Haible  <bruno@clisp.org>
39710
39711         * modules/.gitattributes: New file.
39712
39713 2009-07-20  Bruno Haible  <bruno@clisp.org>
39714
39715         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
39716         (main): Use it.
39717
39718 2009-07-20  Eric Blake  <ebb9@byu.net>
39719
39720         test-pipe: make a bit more robust.
39721         * tests/test-pipe.c (myerr): Allow error messages regardless of
39722         what we do to stderr.
39723         (test_pipe): Rearrange to avoid deadlock.
39724         (child_main): Try a larger read, to ensure we avoided deadlock.
39725         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
39726         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
39727         if misused.
39728
39729 2009-07-19  Jim Meyering  <meyering@redhat.com>
39730
39731         fts: avoid false-positive cycle-detection
39732         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
39733         for each new command line argument.
39734
39735 2009-07-19  Bruno Haible  <bruno@clisp.org>
39736
39737         Fix build error on mingw with the modules sys_select and unistd.
39738         * modules/acl-tests (Depends-on): Add close.
39739         * modules/binary-io-tests (Depends-on): Likewise.
39740         * modules/closein-tests (Depends-on): Likewise.
39741         * modules/flock-tests (Depends-on): Likewise.
39742         * modules/fsync-tests (Depends-on): Likewise.
39743         * modules/lseek-tests (Depends-on): Likewise.
39744         * modules/pipe-tests (Depends-on): Likewise.
39745         * modules/posix_spawn-tests (Depends-on): Likewise.
39746         * modules/posix_spawnp-tests (Depends-on): Likewise.
39747         * modules/stat-time-tests (Depends-on): Likewise.
39748         * modules/yesno-tests (Depends-on): Likewise.
39749
39750 2009-07-19  Bruno Haible  <bruno@clisp.org>
39751
39752         Unify conditionals.
39753         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
39754         macros, not at the compiler macros.
39755         * lib/pipe.c: Likewise.
39756         * lib/execute.c: Likewise.
39757         * lib/spawni.c: Likewise.
39758
39759 2009-07-19  Bruno Haible  <bruno@clisp.org>
39760
39761         Fix handling of closed stdin/stdout/stderr on mingw.
39762         * lib/w32spawn.h: Include unistd.h.
39763         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
39764         file descriptor with O_NOINHERIT flag.
39765         (fd_safer_noinherit): New function, based on fd-safer.c.
39766         (dup_safer_noinherit): New function, based on dup-safer.c.
39767         (undup_safer_noinherit): New function.
39768         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
39769         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
39770         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
39771         instead of fd_safer.
39772         * tests/test-pipe.c: Include <windows.h>.
39773         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
39774         result.
39775
39776         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
39777         from main.
39778         (test_pipe): Pass an extra argument for disambiguation.
39779         (main): Invoke parent_main or child_main.
39780
39781         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
39782         consistently.
39783
39784 2009-07-18  Eric Blake  <ebb9@byu.net>
39785
39786         test-pipe: fix mingw build
39787         * tests/test-pipe.c (main): Avoid fcntl on mingw.
39788
39789 2009-07-18  Bruno Haible  <bruno@clisp.org>
39790
39791         * modules/pipe-tests (Makefile.am): Fix typo.
39792
39793 2009-07-18  Eric Blake  <ebb9@byu.net>
39794
39795         error: fix mingw build
39796         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
39797         Reported by Bruno Haible.
39798
39799         error: avoid undefined use of stdout
39800         * lib/error.c (error, error_at_line): Check that fd 1 is open
39801         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
39802         is handling faults and the close_stdout module wants to report the
39803         detection of closed stdout as an error.
39804
39805 2009-07-17  Eric Blake  <ebb9@byu.net>
39806
39807         pipe: be robust in face of closed fds
39808         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
39809         should cause child to misbehave.
39810         * modules/pipe-tests: New module.
39811         * tests/test-pipe.c: New file.
39812         * tests/test-pipe.sh: New file.
39813         Reported by Akim Demaille.
39814
39815 2009-07-14  Bruno Haible  <bruno@clisp.org>
39816
39817         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
39818         Reported by anonymous kc.
39819
39820 2009-07-07  Jim Meyering  <meyering@redhat.com>
39821
39822         maint.mk: don't look for translatable strings in *.m4 or *.mk
39823         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
39824         when searching for translatable strings.
39825
39826 2009-07-05  Jim Meyering  <meyering@redhat.com>
39827
39828         remove superfluous parentheses in STREQ definition
39829         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
39830         * lib/getugroups.c (STREQ): Likewise.
39831         * lib/fnmatch.c (STREQ): Likewise.
39832         Spotted by Bruno Haible.
39833
39834 2009-07-04  Jim Meyering  <meyering@redhat.com>
39835
39836         argv-iter: new module
39837         * MODULES.html.sh: Add argv-iter.
39838         * lib/argv-iter.c, lib/argv-iter.h: New files.
39839         * modules/argv-iter: New file.
39840         * modules/argv-iter-tests: New file.
39841         * tests/test-argv-iter.c: Test it.
39842
39843 2009-07-04  Bruno Haible  <bruno@clisp.org>
39844
39845         Fix assertion.
39846         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
39847         contains more exact copies of a given entry than file2, leave the extra
39848         copies unpaired rather than aborting.
39849         Reported by Eric Blake.
39850
39851 2009-07-02  Bruno Haible  <bruno@clisp.org>
39852
39853         Speedup git-merge-changelog for git cherry-pick.
39854         * lib/git-merge-changelog.c (struct entries_mapping): New type.
39855         (entries_mapping_get): New function, extracted from compute_mapping.
39856         (entries_mapping_reverse_get): New function.
39857         (compute_mapping): Add a 'full' argument. Return the result in a
39858         'struct entries_mapping'.
39859         (main): Update. Access the mappings through entries_mapping_get.
39860         Reported by Eric Blake.
39861
39862 2009-07-02  Bruno Haible  <bruno@clisp.org>
39863
39864         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
39865         best_i.
39866
39867 2009-07-02  Bruno Haible  <bruno@clisp.org>
39868
39869         Speed up approximate search for matching ChangeLog entries.
39870         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
39871         argument. Call fstrcmp_bounded instead of fstrcmp.
39872         (compute_mapping, try_split_merged_entry, main): Update callers.
39873
39874 2009-07-02  Bruno Haible  <bruno@clisp.org>
39875
39876         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
39877
39878 2009-06-30  Bruno Haible  <bruno@clisp.org>
39879
39880         Reduce the number of uc_is_cased calls.
39881         * lib/unicase.h (casing_suffix_context_t): Add
39882         'first_char_except_ignorable' field.
39883         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
39884         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
39885         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
39886         Update initializer.
39887         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
39888         case-ignorable characters.
39889         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
39890         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
39891         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
39892         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
39893         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
39894
39895 2009-06-30  Bruno Haible  <bruno@clisp.org>
39896
39897         Tests for module 'unicase/ignorable'.
39898         * modules/unicase/ignorable-tests: New file.
39899         * tests/unicase/test-ignorable.c: New file, generated by
39900         gen-uni-tables.
39901
39902         Tests for module 'unicase/cased'.
39903         * modules/unicase/cased-tests: New file.
39904         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
39905         * tests/unicase/test-predicate-part1.h: New file, derived from
39906         tests/unictype/test-predicate-part1.h.
39907         * tests/unicase/test-predicate-part2.h: New file, same as
39908         tests/unictype/test-predicate-part2.h.
39909
39910         Fix evaluation of "Before C" condition of FINAL_SIGMA.
39911         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
39912         (output_casing_properties): New function.
39913         (main): Call it.
39914         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
39915         * lib/unicase/cased.c: Include unictype/bitmap.h.
39916         (uc_is_cased): Define through a bitmap lookup.
39917         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
39918         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
39919         (uc_is_case_ignorable): Define through a bitmap lookup.
39920         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
39921         lib/unictype/bitmap.h.
39922         (Depends-on): Add inline. Clean up.
39923         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
39924         lib/unictype/bitmap.h.
39925         (Depends-on): Add inline. Clean up.
39926         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
39927         recognition.
39928         * tests/unicase/test-u16-tolower.c (main): Likewise.
39929         * tests/unicase/test-u32-tolower.c (main): Likewise.
39930
39931 2009-06-30  Bruno Haible  <bruno@clisp.org>
39932
39933         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
39934         * lib/unicase/u16-casemap.c: Likewise.
39935         * lib/unicase/u32-casemap.c: Likewise.
39936
39937 2009-06-29  Bruno Haible  <bruno@clisp.org>
39938
39939         Define u32_casefold as a wrapper around u32_ct_casefold.
39940         * lib/unicase/u32-casefold.c: Update.
39941         * modules/unicase/u32-casefold (Depends-on): Add
39942         unicase/u32-ct-casefold, unicase/empty-prefix-context,
39943         unicase/empty-suffix-context. Clean up.
39944
39945         Define u16_casefold as a wrapper around u16_ct_casefold.
39946         * lib/unicase/u16-casefold.c: Update.
39947         * modules/unicase/u16-casefold (Depends-on): Add
39948         unicase/u16-ct-casefold, unicase/empty-prefix-context,
39949         unicase/empty-suffix-context. Clean up.
39950
39951         Define u8_casefold as a wrapper around u8_ct_casefold.
39952         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
39953         * lib/unicase/u8-casefold.c: Update.
39954         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
39955         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39956
39957         Define u32_totitle as a wrapper around u32_ct_totitle.
39958         * lib/unicase/u32-totitle.c: Update.
39959         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
39960         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39961
39962         Define u16_totitle as a wrapper around u16_ct_totitle.
39963         * lib/unicase/u16-totitle.c: Update.
39964         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
39965         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39966
39967         Define u8_totitle as a wrapper around u8_ct_totitle.
39968         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
39969         functions.
39970         (FUNC): Delegate to U_CT_TOTITLE.
39971         * lib/unicase/u8-totitle.c: Update.
39972         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
39973         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
39974
39975         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
39976         invocation.
39977         * modules/unicase/u32-tolower (Depends-on): Add
39978         unicase/empty-prefix-context, unicase/empty-suffix-context.
39979
39980         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
39981         invocation.
39982         * modules/unicase/u16-tolower (Depends-on): Add
39983         unicase/empty-prefix-context, unicase/empty-suffix-context.
39984
39985         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
39986         * modules/unicase/u8-tolower (Depends-on): Add
39987         unicase/empty-prefix-context, unicase/empty-suffix-context.
39988
39989         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
39990         invocation.
39991         * modules/unicase/u32-toupper (Depends-on): Add
39992         unicase/empty-prefix-context, unicase/empty-suffix-context.
39993
39994         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
39995         invocation.
39996         * modules/unicase/u16-toupper (Depends-on): Add
39997         unicase/empty-prefix-context, unicase/empty-suffix-context.
39998
39999         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
40000         * modules/unicase/u8-toupper (Depends-on): Add
40001         unicase/empty-prefix-context, unicase/empty-suffix-context.
40002
40003         New module 'unicase/u32-ct-casefold'.
40004         * lib/unicase/u32-ct-casefold.c: New file.
40005         * modules/unicase/u32-ct-casefold: New file.
40006
40007         New module 'unicase/u16-ct-casefold'.
40008         * lib/unicase/u16-ct-casefold.c: New file.
40009         * modules/unicase/u16-ct-casefold: New file.
40010
40011         New module 'unicase/u8-ct-casefold'.
40012         * lib/unicase/u8-ct-casefold.c: New file.
40013         * lib/unicase/u-ct-casefold.h: New file, derived from
40014         lib/unicase/u-casefold.h.
40015         * modules/unicase/u8-ct-casefold: New file.
40016
40017         New module 'unicase/u32-ct-totitle'.
40018         * lib/unicase/u32-ct-totitle.c: New file.
40019         * modules/unicase/u32-ct-totitle: New file.
40020
40021         New module 'unicase/u16-ct-totitle'.
40022         * lib/unicase/u16-ct-totitle.c: New file.
40023         * modules/unicase/u16-ct-totitle: New file.
40024
40025         New module 'unicase/u8-ct-totitle'.
40026         * lib/unicase/u8-ct-totitle.c: New file.
40027         * lib/unicase/u-ct-totitle.h: New file, derived from
40028         lib/unicase/u-totitle.h.
40029         * modules/unicase/u8-ct-totitle: New file.
40030
40031         New module 'unicase/u32-ct-tolower'.
40032         * lib/unicase/u32-ct-tolower.c: New file.
40033         * modules/unicase/u32-ct-tolower: New file.
40034
40035         New module 'unicase/u16-ct-tolower'.
40036         * lib/unicase/u16-ct-tolower.c: New file.
40037         * modules/unicase/u16-ct-tolower: New file.
40038
40039         New module 'unicase/u8-ct-tolower'.
40040         * lib/unicase/u8-ct-tolower.c: New file.
40041         * modules/unicase/u8-ct-tolower: New file.
40042
40043         New module 'unicase/u32-ct-toupper'.
40044         * lib/unicase/u32-ct-toupper.c: New file.
40045         * modules/unicase/u32-ct-toupper: New file.
40046
40047         New module 'unicase/u16-ct-toupper'.
40048         * lib/unicase/u16-ct-toupper.c: New file.
40049         * modules/unicase/u16-ct-toupper: New file.
40050
40051         New module 'unicase/u8-ct-toupper'.
40052         * lib/unicase/u8-ct-toupper.c: New file.
40053         * modules/unicase/u8-ct-toupper: New file.
40054
40055         Add context arguments to u*_casemap functions.
40056         * lib/unicase/unicasemap.h: Include unicase.h.
40057         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
40058         suffix_context arguments.
40059         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
40060         functions.
40061         (FUNC): Add prefix_context and suffix_context arguments. Use
40062         uc_is_cased and uc_is_case_ignorable.
40063         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
40064         * lib/unicase/u16-casemap.c: Likewise.
40065         * lib/unicase/u32-casemap.c: Likewise.
40066         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
40067         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40068         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
40069         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40070         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
40071         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
40072
40073         New module 'unicase/u32-suffix-context'.
40074         * lib/unicase/u32-suffix-context.c: New file.
40075         * modules/unicase/u32-suffix-context: New file.
40076
40077         New module 'unicase/u16-suffix-context'.
40078         * lib/unicase/u16-suffix-context.c: New file.
40079         * modules/unicase/u16-suffix-context: New file.
40080
40081         New module 'unicase/u8-suffix-context'.
40082         * lib/unicase/u8-suffix-context.c: New file.
40083         * lib/unicase/u-suffix-context.h: New file.
40084         * modules/unicase/u8-suffix-context: New file.
40085
40086         New module 'unicase/empty-suffix-context'.
40087         * lib/unicase/empty-suffix-context.c: New file.
40088         * modules/unicase/empty-suffix-context: New file.
40089
40090         New module 'unicase/u32-prefix-context'.
40091         * lib/unicase/u32-prefix-context.c: New file.
40092         * modules/unicase/u32-prefix-context: New file.
40093
40094         New module 'unicase/u16-prefix-context'.
40095         * lib/unicase/u16-prefix-context.c: New file.
40096         * modules/unicase/u16-prefix-context: New file.
40097
40098         New module 'unicase/u8-prefix-context'.
40099         * lib/unicase/u8-prefix-context.c: New file.
40100         * lib/unicase/u-prefix-context.h: New file.
40101         * lib/unicase/context.h: New file.
40102         * modules/unicase/u8-prefix-context: New file.
40103
40104         New module 'unicase/empty-prefix-context'.
40105         * lib/unicase/empty-prefix-context.c: New file.
40106         * modules/unicase/empty-prefix-context: New file.
40107
40108         New module 'unicase/ignorable'.
40109         * lib/unicase/ignorable.c: New file.
40110         * modules/unicase/ignorable: New file.
40111
40112         New module 'unicase/cased'.
40113         * lib/unicase/caseprop.h: New file.
40114         * lib/unicase/cased.c: New file.
40115         * modules/unicase/cased: New file.
40116
40117         New functions for case mapping of substrings.
40118         * lib/unicase.h (casing_prefix_context_t): New type.
40119         (unicase_empty_prefix_context): New variable.
40120         (u8_casing_prefix_context, u16_casing_prefix_context,
40121         u32_casing_prefix_context, u8_casing_prefixes_context,
40122         u16_casing_prefixes_context, u32_casing_prefixes_context): New
40123         declarations.
40124         (casing_suffix_context_t): New type.
40125         (unicase_empty_suffix_context): New variable.
40126         (u8_casing_suffix_context, u16_casing_suffix_context,
40127         u32_casing_suffix_context, u8_casing_suffixes_context,
40128         u16_casing_suffixes_context, u32_casing_suffixes_context,
40129         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
40130         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
40131         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
40132         declarations.
40133
40134 2009-06-28  Jim Meyering  <meyering@redhat.com>
40135
40136         boostrap: indent only with spaces
40137         * build-aux/bootstrap: Indent only with spaces, never TABs.
40138
40139         bootstrap: split long lines
40140         * build-aux/bootstrap: Keep line length < 80.
40141
40142         bootstrap: sync from coreutils
40143         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
40144         just as autoreconf does.  Verify a list of prerequisite
40145         package-name,version-number pairs if defined in bootstrap.conf.
40146         Refer to README-prereq, if prerequisites are not satisfied.
40147
40148 2009-06-27  Eric Blake  <ebb9@byu.net>
40149
40150         tests: add test for bogus NULL definition
40151         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
40152         * tests/test-stdlib.c: Likewise.
40153         * tests/test-string.c: Likewise.
40154         * tests/test-locale.c: Likewise.
40155         * tests/test-unistd.c: Likewise.
40156         * modules/stdio-tests (Depends-on): Add verify.
40157         * modules/stdlib-tests (Depends-on): Likewise.
40158         * modules/string-tests (Depends-on): Likewise.
40159         * modules/locale-tests (Depends-on): Likewise.
40160         * modules/unistd-tests (Depends-on): Likewise.
40161
40162 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
40163
40164         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
40165         self-explaining comment.
40166         * m4/selinux-selinux-h: Update serial.
40167         (gl_LIBSELINUX): New macro, adding a warning for missing development
40168         packages to code extracted from...
40169         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
40170         Add warning for missing development packages here, too.
40171
40172 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
40173
40174         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
40175
40176 2009-06-25  Eric Blake  <ebb9@byu.net>
40177
40178         version-etc: fix regression
40179         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
40180         gcc.
40181         (version_etc): Use it, to catch bugs with trailing NULL.
40182         * lib/version-etc.c (version_etc_arn): Delete unused argument.
40183         (version_etc_va): Fix logic bug.
40184         * modules/version-etc-tests: Add test.
40185         * tests/test-version-etc.c: New file.
40186         * tests/test-version-etc.sh: Likewise.
40187
40188 2009-06-25  Sam Steingold  <sds@gnu.org>
40189
40190         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
40191         mbtowc declaration.
40192
40193 2009-06-25  Eric Blake  <ebb9@byu.net>
40194
40195         fpurge: migrate into <stdio.h>
40196         * lib/fpurge.h: Delete...
40197         * lib/stdio.in.h (fpurge): ...and declare here, instead.
40198         * lib/fpurge.c (fpurge): Change declaring header.
40199         * modules/fpurge (Files): Drop deleted file.
40200         (Depends-on): Add stdio.
40201         (configure.ac): Set witness.
40202         * modules/stdio (Makefile.am): Support fpurge macros.
40203         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
40204         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
40205         * lib/fflush.c: Update client.
40206         * tests/test-fpurge.c: Likewise.
40207         * NEWS: Mention the change.
40208
40209 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40210
40211         * lib/argp-version-etc.c (program_authors): Add const
40212         qualifier.
40213         * lib/version-etc.c: Fix typos in the comments.
40214         * modules/argp-version-etc: Depends on version-etc.
40215
40216 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40217
40218         argp-version-etc: new module.
40219
40220         * lib/argp-version-etc.c: New file.
40221         * lib/argp-version-etc.h: New file.
40222         * modules/argp-version-etc: New file.
40223         * modules/argp-version-etc-tests: New file.
40224         * tests/test-argp-version-etc.c: New test.
40225         * tests/test-argp-version-etc-1.sh: New test.
40226
40227 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
40228
40229         Provide additional interfaces and documentation for version-etc
40230         module.
40231
40232         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
40233         interfaces.
40234         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
40235         prototypes.
40236
40237 2009-06-24  Bruno Haible  <bruno@clisp.org>
40238
40239         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
40240         HAVE_LIB${NAME} macro.
40241         Reported by Sam Steingold <sds@gnu.org>.
40242
40243 2009-06-23  Simon Josefsson  <simon@josefsson.org>
40244
40245         * modules/hash-tests (test_hash_LDADD): Link to libintl when
40246         needed.
40247
40248 2009-06-21  Bruno Haible  <bruno@clisp.org>
40249
40250         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
40251         work.
40252         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
40253         together with LIB${NAME}, LTLIB${NAME}.
40254         Reported by Sam Steingold <sds@gnu.org>.
40255
40256 2009-06-20  Jim Meyering  <meyering@redhat.com>
40257
40258         tests: make sc_require_test_exit_idiom more generic
40259         * top/maint.mk (Exit_witness_file): New overridable variable.
40260         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
40261         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
40262
40263 2009-06-19  Jim Meyering  <meyering@redhat.com>
40264
40265         hash: reverse order of src/dst parameters in an internal interface
40266         * lib/hash.c (transfer_entries): Reverse order of parameters to
40267         put DST before SRC.  Adjust callers.
40268
40269         tests: test-hash: avoid wholesale duplication
40270         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
40271         Instead, use a loop and add a single conditional.
40272
40273         tests: test-hash: allow seed selection via a command line argument
40274         * tests/test-hash.c (get_seed): New function.
40275         (main): Use it.
40276
40277 2009-06-19  Eric Blake  <ebb9@byu.net>
40278
40279         hash: avoid memory leak on allocation failure
40280         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
40281         failure.  Factor repeated algorithm...
40282         (transfer_entries): ...into new helper routine.
40283         (hash_delete): React to hash_rehash return value.
40284
40285         hash: reduce memory pressure in hash_rehash no-op case
40286         * lib/hash.c (next_prime): Avoid overflow.
40287         (hash_initialize): Factor bucket size computation...
40288         (compute_bucket_size): ...into new helper function.
40289         (hash_rehash): Use new function and open coding to reduce memory
40290         pressure, and avoid a memory leak in USE_OBSTACK code.
40291         Reported by Jim Meyering.
40292
40293 2009-06-18  Eric Blake  <ebb9@byu.net>
40294
40295         hash: make rotation more obvious
40296         * modules/hash (Depends-on): Add bitrotate and stdint.
40297         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
40298         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
40299         (SIZE_MAX): Rely on headers for definition.
40300         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
40301         (raw_hasher): Use rotr_sz.
40302         Suggested by Jim Meyering.
40303
40304         hash: fix memory leak in last patch
40305         * lib/hash.c (hash_rehash): Avoid memory leak.
40306
40307         hash: avoid no-op rehashing
40308         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
40309
40310         hash: provide default callback functions
40311         * lib/hash.c (raw_hasher, raw_comparator): New functions.
40312         (hash_initialize): Use them as defaults.
40313         * tests/test-hash.c (main): Test this.
40314
40315         hash: minor optimization
40316         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
40317         when possible.
40318         (hash_initialize): Document this promise.
40319         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
40320         * tests/test-hash.c (hash_compare_strings): Test this.
40321
40322 2009-06-18  Bruno Haible  <bruno@clisp.org>
40323
40324         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
40325         going to be replaced anyway.
40326
40327 2009-06-18  Bruno Haible  <bruno@clisp.org>
40328
40329         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
40330         in one place.
40331         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
40332         be replaced anyway.
40333
40334 2009-06-18  Eric Blake  <ebb9@byu.net>
40335
40336         hash: check for resize before insertion
40337         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
40338         threshold before insertion, so that a pathological hash_rehash
40339         that fills every bucket can still trigger another rehash.
40340
40341 2009-06-18  Jim Meyering  <meyering@redhat.com>
40342
40343         hash-tests: add a loop around the small tests
40344         * tests/test-hash.c (main): Repeat small tests with selected
40345         small initial table sizes.
40346
40347 2009-06-17  Eric Blake  <ebb9@byu.net>
40348
40349         hash: minor cleanups
40350         * lib/hash.h (hash_entry): Make opaque, by moving...
40351         * lib/hash.c (hash_entry): ...here.
40352         (hash_insert): Clarify restrictions on what can be inserted.
40353         (hash_get_next): Clarify when it is safe to remove an element
40354         during traversal.
40355         (check_tuning): Skip verification when tuning is known safe.
40356         (hash_initialize): Clarify restrictions on tuning.
40357
40358 2009-06-17  Jim Meyering  <jim@meyering.net>
40359         and Eric Blake  <ebb9@byu.net>
40360
40361         hash-tests: new module
40362         * modules/hash-tests: New file.
40363         * tests/test-hash.c: New file.
40364
40365 2009-06-17  Eric Blake  <ebb9@byu.net>
40366
40367         strstr-simple: document new module
40368         * MODULES.html.sh: Document new module.
40369
40370         strstr, strcasestr: replace on platforms with broken memchr
40371         * modules/strstr: Split into...
40372         * modules/strstr-simple: ...new module that does not care about
40373         performance, but does care about glibc bug.
40374         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
40375         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
40376         if platform memchr is broken, per Debian bug 521737.
40377         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
40378         memchr.
40379         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
40380         * doc/posix-functions/strstr.texi (strstr): Document the fix.
40381         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
40382         * modules/mountlist (Depends-on): Add strstr-simple.
40383         * modules/gen-uni-tables (Depends-on): Likewise.
40384         * modules/argz (Depends-on): Add strstr.
40385
40386 2009-06-17  Bruno Haible  <bruno@clisp.org>
40387
40388         * modules/posix_spawn-internal (Depends-on): Add errno.
40389
40390 2009-06-17  Bruno Haible  <bruno@clisp.org>
40391
40392         Define missing ESTALE on Interix 3.5.
40393         * lib/errno.in.h (ESTALE): Assign a value if missing.
40394         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
40395         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
40396         missing.
40397         * doc/posix-headers/errno.texi: Mention the Interix bug.
40398         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
40399
40400 2009-06-15  Eric Blake  <ebb9@byu.net>
40401
40402         memchr, memchr2: add valgrind exception
40403         * lib/memchr.valgrind: New file.
40404         * lib/memchr2.valgrind: New file.
40405         * modules/memchr (Files): Distribute valgrind file.
40406         * modules/memchr2 (Files): Likewise.
40407
40408         docs: memchr is no longer obsolete
40409         * MODULES.html.sh: Move memchr from obsolete to string.h section.
40410         * lib/string.in.h (memchr): Simplify logic.
40411
40412 2009-06-14  Jim Meyering  <meyering@redhat.com>
40413
40414         link-follow: fix the "checking..." message to not mention trailing slash
40415         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
40416         never considered trailing slashes.
40417
40418 2009-06-14  Bruno Haible  <bruno@clisp.org>
40419
40420         * m4/memchr.m4: Mention also the bug on IA-64.
40421         * doc/posix-functions/memchr.texi: Likewise.
40422
40423 2009-06-12  Eric Blake  <ebb9@byu.net>
40424
40425         memchr: detect broken x86_64 and alpha implementations
40426         * modules/memchr-tests (Depends-on): Move mmap detection...
40427         * modules/memchr (Depends-on): ...here.
40428         (configure.ac): Set indicator.
40429         * lib/string.in.h (memchr): Declare replacement.
40430         * modules/string (Makefile.am): Trigger replacement.
40431         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
40432         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
40433         bugs.
40434         * doc/posix-functions/memchr.texi (memchr): Document the bug.
40435         * modules/getpagesize (License): Relax license.
40436
40437 2009-06-11  Bruno Haible  <bruno@clisp.org>
40438
40439         * lib/idpriv.h: Add more references.
40440
40441 2009-06-08  Bruno Haible  <bruno@clisp.org>
40442
40443         Tests for module 'idpriv-droptemp'.
40444         * modules/idpriv-droptemp-tests: New file.
40445         * tests/test-idpriv-droptemp.sh: New file.
40446         * tests/test-idpriv-droptemp.su.sh: New file.
40447         * tests/test-idpriv-droptemp.c: New file.
40448
40449         New module 'idpriv-droptemp'.
40450         * lib/idpriv-droptemp.c: New file.
40451         * modules/idpriv-droptemp: New file.
40452
40453 2009-06-08  Bruno Haible  <bruno@clisp.org>
40454
40455         Tests for module 'idpriv-drop'.
40456         * modules/idpriv-drop-tests: New file.
40457         * tests/test-idpriv-drop.sh: New file.
40458         * tests/test-idpriv-drop.su.sh: New file.
40459         * tests/test-idpriv-drop.c: New file.
40460
40461         New module 'idpriv-drop'.
40462         * lib/idpriv.h: New file.
40463         * lib-idpriv-drop.c: New file.
40464         * m4/idpriv.m4: New file.
40465         * modules/idpriv-drop: New file.
40466
40467 2009-06-08  Bruno Haible  <bruno@clisp.org>
40468
40469         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
40470         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
40471         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
40472         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
40473         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
40474         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
40475         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
40476
40477 2009-06-08  Eric Blake  <ebb9@byu.net>
40478
40479         test-strstr: use memory fence, when possible
40480         * tests/test-strstr.c (main): Use memory fence, in order to be
40481         more likely to trigger Debian bug 521737.
40482         * modules/strstr-tests (Files): Pull in additional files.
40483
40484         memchr: no longer obsolete, for wider field testing
40485         * modules/memchr (Status, Notice): Delete, this module is no
40486         longer obsolete.
40487         * modules/vasnprintf (Depends-on): Add memchr.
40488
40489 2009-06-07  Jim Meyering  <meyering@redhat.com>
40490
40491         hash: declare some functions with the warn_unused_result attribute
40492         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
40493
40494 2009-06-07  Bruno Haible  <bruno@clisp.org>
40495
40496         * tests/test-alignof.c: Don't test int64_t if it does not exist.
40497         Reported by Eric Blake.
40498
40499 2009-06-06  Eric Blake  <ebb9@byu.net>
40500
40501         test-alignof: fix typo with long double
40502         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
40503         compiler error.
40504
40505 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
40506
40507         Escape non-texinfo { and }s.
40508         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
40509         markup error.
40510
40511 2009-06-04  Jim Meyering  <meyering@redhat.com>
40512
40513         gitlog-to-changelog: don't infloop on an empty commit log
40514         * build-aux/gitlog-to-changelog: Warn about an empty log message.
40515         Reported by Boris Petersen <transacid@centerim.org>.
40516
40517 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
40518
40519         version-etc: extend for packagers
40520         Add three new configure options, intended for packagers:
40521           --with-packager="packager name"
40522           --with-packager-version="packager-specific version"
40523           --with-packager-bug-reports="packager bug reporting"
40524         An example with coreutils:
40525           $ ./configure \
40526             --with-packager=Gentoo \
40527             --with-packager-bug-report=http://bugs.gentoo.org/ \
40528             --with-packager-version="patchset 1.6"
40529           $ ./src/ls --version | head -n2
40530           ls (GNU coreutils) 7.1-dirty
40531           Packaged by Gentoo (patchset 1.6)
40532         Note that the bug reporting info via --help doesn't show up because
40533         coreutils uses its own custom emit_bug_reporting_address() implementation
40534         in src/system.h.  If it didn't, it'd look like:
40535           $ ./src/ls --help | tail -n4
40536           Report bugs to <bug-coreutils@gnu.org>.
40537           Report Gentoo bugs to <http://bugs.gentoo.org/>.
40538           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
40539           General help using GNU software: <http://www.gnu.org/gethelp/>.
40540         * lib/version-etc.c: Print new information, if provided.
40541         * m4/version-etc.m4: New file.
40542         * modules/version-etc (Files): Add m4/version-etc.m4.
40543         (configure.ac): Add gl_VERSION_ETC.
40544
40545 2009-05-31  Bruno Haible  <bruno@clisp.org>
40546
40547         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
40548         and 'int64_t'.
40549         * modules/alignof-tests (Dependencies): Add stdint.
40550         Reported by Eric Blake.
40551
40552 2009-05-31  Bruno Haible  <bruno@clisp.org>
40553
40554         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
40555         restriction due to compiler bugs.
40556         Reported by Eric Blake.
40557
40558 2009-05-31  Simon Josefsson  <simon@josefsson.org>
40559             Bruno Haible  <bruno@clisp.org>
40560
40561         Fix test-alignof failure.
40562         * lib/alignof.h (alignof_slot): New macro.
40563         (alignof_type): New macro, with the same semantics as the previous
40564         'alignof'.
40565         (alignof): Alias to alignof_slot.
40566         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
40567         check that the results are usable as constant expressions.
40568
40569 2009-05-31  Bruno Haible  <bruno@clisp.org>
40570
40571         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
40572         * tests/test-memchr.c (main): Check that memchr does not read past the
40573         first occurrence of the byte.
40574         * tests/test-strstr.c (main): Update comment.
40575         Suggested by Eric Blake.
40576
40577 2009-05-30  Bruno Haible  <bruno@clisp.org>
40578
40579         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
40580         detail how to use dumpbin.
40581         Reported by David Byron <dbyron@dbyron.com>.
40582
40583 2009-06-02  Simon Josefsson  <simon@josefsson.org>
40584
40585         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
40586
40587 2009-06-02  Simon Josefsson  <simon@josefsson.org>
40588
40589         * m4/manywarnings.m4: Add GCC 4.4 warnings.
40590
40591 2009-05-28  Bruno Haible  <bruno@clisp.org>
40592
40593         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
40594         build-aux/ files.
40595
40596 2009-05-28  Simon Josefsson  <simon@josefsson.org>
40597
40598         * gnulib-tool (func_import): Transform license on build-aux/ files too.
40599
40600 2009-05-27  Simon Josefsson  <simon@josefsson.org>
40601
40602         * gnulib-tool (sed_transform_main_lib_file)
40603         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
40604         regexps.
40605
40606 2009-05-26  Simon Josefsson  <simon@josefsson.org>
40607
40608         * tests/test-strstr.c: Add another self-test.
40609         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
40610         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
40611
40612 2009-05-23  Bruno Haible  <bruno@clisp.org>
40613
40614         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
40615         change.
40616
40617 2009-05-21  Bruno Haible  <bruno@clisp.org>
40618
40619         Simplify use of mode_t varargs.
40620         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
40621         uses 'mode_t' or 'int'.
40622         * lib/openat.c (openat): Likewise.
40623         * lib/open-safer.c (open_safer): Likewise.
40624         * m4/mode_t.m4: New file.
40625         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
40626         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
40627         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
40628         * modules/open (Files): Add m4/mode_t.m4.
40629         * modules/openat (Files): Likewise.
40630         * modules/fcntl-safer (Files): Likewise.
40631         Suggested by Eric Blake.
40632
40633 2009-05-21  Pádraig Brady  <P@draigbrady.com>
40634
40635         * doc/glibc-functions/fallocate.texi: New file.
40636         * doc/gnulib.texi: Include it.
40637
40638 2009-05-21  Eric Blake  <ebb9@byu.net>
40639             Bruno Haible  <bruno@clisp.org>
40640
40641         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
40642         invocations.
40643         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
40644
40645 2009-05-21  Eric Blake  <ebb9@byu.net>
40646             Bruno Haible  <bruno@clisp.org>
40647
40648         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
40649         include_next. Fix of 2008-11-20 commit.
40650         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
40651         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
40652         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
40653         NEXT_MATH_H.
40654         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
40655         instead of NEXT_MATH_H.
40656
40657 2009-05-21  Bruno Haible  <bruno@clisp.org>
40658
40659         Avoid redefinition warnings for SIZE_MAX.
40660         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
40661         Reported by Simon Josefsson.
40662
40663 2009-05-21  Bruno Haible  <bruno@clisp.org>
40664
40665         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
40666         AC_CACHE_VAL.
40667
40668 2009-05-20  Bruno Haible  <bruno@clisp.org>
40669
40670         Make zeroptr.h work on mingw.
40671         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
40672         mprotect.
40673         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
40674         * modules/memchr2-tests (configure.ac): Likewise.
40675         * modules/memcmp-tests (configure.ac): Likewise.
40676         * modules/memmem-tests (configure.ac): Likewise.
40677         * modules/memrchr-tests (configure.ac): Likewise.
40678         Reported by Simon Josefsson.
40679
40680 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40681
40682         * tests/test-glob.c: Include string.h for strcmp prototype.
40683
40684 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40685
40686         * modules/getdelim (Depends-on): Add explicit stdint, although it
40687         was implicitly already pulled in via realloc-posix.
40688         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
40689
40690 2009-05-20  Simon Josefsson  <simon@josefsson.org>
40691
40692         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
40693         G. Christensen" <tgc@jupiterrise.com>.
40694         * m4/sys_socket_h.m4: Check for sa_family_t.
40695         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
40696         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
40697         * tests/test-sys_socket.c: Check that sa_family_t works.
40698
40699 2009-05-18  Eric Blake  <ebb9@byu.net>
40700
40701         maint.mk: allow gnulib_dir in VPATH build
40702         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
40703
40704 2009-05-15  Jim Meyering  <meyering@redhat.com>
40705
40706         maint.mk: Give gnulib_dir a default definition.
40707         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
40708         Thus, most packages no longer need to specify this variable in cfg.mk
40709
40710 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
40711
40712         rename.m4: fix typos that would make non-mingw cross-configure fail
40713         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
40714
40715 2009-05-13  Eric Blake  <ebb9@byu.net>
40716
40717         mmap-anon: avoid out-of-order autoconf expansion
40718         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
40719         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
40720         * modules/memchr-tests (Depends-on): Add extensions.
40721         * modules/memchr2-tests (Depends-on): Add extensions.
40722         * modules/memcmp-tests (Depends-on): Add extensions.
40723         * modules/memmem-tests (Depends-on): Add extensions.
40724         * modules/memrchr-tests (Depends-on): Add extensions.
40725
40726 2009-05-13  Bruno Haible  <bruno@clisp.org>
40727
40728         Make some tests ISO C 99 compliant.
40729         * tests/zerosize-ptr.h: New file.
40730         * tests/test-memchr.c: Include zerosize-ptr.h.
40731         (main): Use a zero-size object pointer instead of NULL.
40732         * tests/test-memchr2.c: Include zerosize-ptr.h.
40733         (main): Use a zero-size object pointer instead of NULL.
40734         * tests/test-memcmp.c: Include zerosize-ptr.h.
40735         (main): Use a zero-size object pointer instead of NULL.
40736         * tests/test-memmem.c: Include zerosize-ptr.h.
40737         (main): Use a zero-size object pointer instead of NULL.
40738         * tests/test-memrchr.c: Include zerosize-ptr.h.
40739         (main): Use a zero-size object pointer instead of NULL.
40740         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
40741         m4/mmap-anon.m4.
40742         (Depends-on): Add getpagesize.
40743         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40744         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
40745         m4/mmap-anon.m4.
40746         (Depends-on): Add getpagesize.
40747         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40748         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
40749         m4/mmap-anon.m4.
40750         (Depends-on): Add getpagesize.
40751         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40752         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
40753         m4/mmap-anon.m4.
40754         (Depends-on): Add getpagesize.
40755         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40756         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
40757         m4/mmap-anon.m4.
40758         (Depends-on): Add getpagesize.
40759         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
40760
40761 2009-05-12  Bruno Haible  <bruno@clisp.org>
40762
40763         Tests for module 'alignof'.
40764         * modules/alignof-tests: New file.
40765         * tests/test-alignof.c: New file.
40766
40767 2009-05-12  Bruno Haible  <bruno@clisp.org>
40768
40769         Fix alignof macro.
40770         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
40771         vendor compilers that are always correct.
40772
40773 2009-05-12  Bruno Haible  <bruno@clisp.org>
40774
40775         Make the MAP_ANONYMOUS detection work on HP-UX 11.
40776         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
40777         not whether its fully works.
40778
40779 2009-05-12  Bruno Haible  <bruno@clisp.org>
40780
40781         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
40782
40783 2009-05-12  Jim Meyering  <meyering@redhat.com>
40784
40785         * top/maint.mk: Adjust backslash alignment.
40786
40787 2009-05-11  Simon Josefsson  <simon@josefsson.org>
40788
40789         * top/maint.mk: Make $(srcdir)/build-aux configurable.
40790
40791 2009-05-11  Eric Blake  <ebb9@byu.net>
40792
40793         argp: avoid undefined behavior
40794         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
40795         macros.
40796
40797 2009-05-08  Simon Josefsson  <simon@josefsson.org>
40798
40799         * tests/test-vc-list-files-git.sh: Do git config of user.email and
40800         user.name to prevent git commit from complaining.
40801
40802 2009-05-10  Bruno Haible  <bruno@clisp.org>
40803
40804         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
40805         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
40806         it rewrites every file name only once.
40807         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
40808
40809 2009-05-08  Bruno Haible  <bruno@clisp.org>
40810
40811         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
40812         instead of 'max'.
40813
40814 2009-05-08  Simon Josefsson  <simon@josefsson.org>
40815
40816         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
40817         sockaddr_storage test.
40818
40819 2009-05-07  Simon Josefsson  <simon@josefsson.org>
40820
40821         * modules/sys_socket (Makefile.am): Substitute
40822         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
40823         * m4/sys_socket_h.m4: Check for sockaddr_storage.
40824         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
40825         * tests/test-sys_socket.c: Check sockaddr_storage.
40826
40827 2009-05-08  Bruno Haible  <bruno@clisp.org>
40828
40829         New module 'alignof'.
40830         * lib/alignof.h: New file.
40831         * modules/alignof: New file.
40832
40833 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40834             Bruno Haible  <bruno@clisp.org>
40835
40836         Fix test-file-has-acl on FreeBSD.
40837         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
40838         mask is implicitly added.
40839         * tests/test-file-has-acl.c: Include <signal.h>.
40840         (main): Terminate the test after 5 seconds.
40841         * modules/acl-tests (configure.ac): Check for alarm function.
40842
40843 2009-05-04  Bruno Haible  <bruno@clisp.org>
40844
40845         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
40846         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
40847         * modules/errno (configure.ac): Drop AC_REQUIRE.
40848         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
40849         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
40850
40851 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40852
40853         * modules/glob-tests: New module.
40854         * tests/test-glob.c: Add.
40855
40856 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40857
40858         * modules/fnmatch-tests: New module.
40859         * tests/test-fnmatch.c: Add.
40860
40861 2009-05-04  Eric Blake  <ebb9@byu.net>
40862
40863         maint: make the new no-submodule-changes rule VPATH-safe
40864         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
40865
40866 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40867             Bruno Haible  <bruno@clisp.org>
40868
40869         acl: Fix infinite loop on FreeBSD.
40870         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
40871         of return value from acl_get_entry.
40872         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
40873         Likewise.
40874
40875 2009-05-03  Bruno Haible  <bruno@clisp.org>
40876
40877         * lib/acl-internal.h (acl_entries): Clarify return value.
40878         * lib/acl_entries.c (acl_entries): Likewise.
40879
40880 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40881
40882         Bug fix in acl module.
40883         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
40884
40885 2009-05-03  Bruno Haible  <bruno@clisp.org>
40886
40887         Create gperf-generated file in the source dir, not in the build dir.
40888         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
40889         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
40890         * modules/unicase/locale-language (unicase/locale-languages.h):
40891         Likewise.
40892         * modules/unicase/special-casing (unicase/special-casing-table.h):
40893         Likewise.
40894         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
40895         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
40896         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
40897         Reported by Ralf Wildenhues.
40898
40899 2009-05-03  Bruno Haible  <bruno@clisp.org>
40900
40901         * modules/fnmatch (Description, configure.ac): Taken from
40902         fnmatch-posix.
40903         * modules/fnmatch-posix: Turn into a symbolic reference to the
40904         'fnmatch' module, and deprecate.
40905         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
40906
40907 2009-05-03  Bruno Haible  <bruno@clisp.org>
40908
40909         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
40910         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
40911         Reported by Ralf Wildenhues.
40912
40913 2009-05-04  Simon Josefsson  <simon@josefsson.org>
40914
40915         * m4/fnmatch.m4: Fix fnmatch re-define.
40916
40917 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
40918
40919         priv-set: new module and tests; adapt write-any-file
40920         * lib/priv-set.c: New file.
40921         * lib/priv-set.h: New file.
40922         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
40923         * lib/write-any-file.c: Simplify by using priv-set module.
40924         * m4/priv-set.m4: New file.
40925         * modules/priv-set: New file.
40926         * modules/unlinkdir: Add dependency on priv-set module.
40927         * modules/write-any-file: Likewise.
40928
40929         Tests for module 'priv-set'.
40930         * modules/priv-set-tests: New file.
40931         * tests/test-priv-set.c: New file.
40932
40933 2009-05-03  Jim Meyering  <meyering@redhat.com>
40934             Bruno Haible  <bruno@clisp.org>
40935
40936         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
40937         use the converted UTF-8 variant of the name instead.
40938
40939 2009-05-03  Jim Meyering  <meyering@redhat.com>
40940
40941         tests: tighten some getdate tests
40942         * tests/test-getdate.c (main): Tighten tests: require equality,
40943         not just greater than.  Set TZ envvar to UTC0.
40944
40945 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
40946
40947         getdate: correctly interpret "next monday" when run on a Monday
40948         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
40949         that e.g., "next tues" (when run on a tuesday) results in a date
40950         that is one week in the future, and not today's date.
40951         I.e., add a week when the wday is the same as the current one.
40952         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
40953         and earlier by Martin Bernreuther and Jan Minář.
40954         * tests/test-getdate.c (main): Check that "next DAY" is always in
40955         the future and that "last DAY" is always in the past.
40956
40957 2009-05-02  Jim Meyering  <meyering@redhat.com>
40958
40959         build: ensure that a release build fails when a submodule is unclean
40960         * top/maint.mk (no-submodule-changes): New rule.
40961         (alpha beta major): Depend on it.
40962
40963 2009-05-02  Bruno Haible  <bruno@clisp.org>
40964
40965         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
40966         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
40967         shell variable gl_fnmatch_required to detect which variant is
40968         requested.
40969         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
40970         gl_FUNC_FNMATCH_POSIX.
40971         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
40972         exclude fnmatch-posix.
40973
40974 2009-05-02  Bruno Haible  <bruno@clisp.org>
40975
40976         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
40977         * modules/mbsrtowcs (License): Change to LGPLv2+.
40978         * modules/strnlen1 (License): Likewise.
40979         Reported by Simon Josefsson.
40980
40981 2009-05-02  Bruno Haible  <bruno@clisp.org>
40982
40983         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
40984         "cross".
40985         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
40986         gnulib-tool was called with option --source-base=lib.
40987
40988 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
40989
40990         Use automake *-local hooks without commands, for extensibility.
40991         * modules/localcharset (Makefile.am): Rename install-exec-local
40992         rule to install-exec-localcharset, and make it a prerequisite of
40993         install-exec-local.  Likewise, rename the uninstall-local rule to
40994         uninstall-localcharset, and make it a prerequisite of the former.
40995
40996 2009-05-01  Bruno Haible  <bruno@clisp.org>
40997
40998         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
40999         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
41000         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
41001         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
41002         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
41003         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
41004         m4/locale-zh.m4, m4/codeset.m4.
41005
41006         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
41007         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
41008         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
41009         m4/locale-zh.m4.
41010
41011         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
41012         REPLACE_WCRTOMB if mbstate_t must be replaced.
41013         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
41014         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
41015
41016 2009-05-01  Bruno Haible  <bruno@clisp.org>
41017
41018         Avoid compiler warnings when redefining macros defined by <libintl.h>.
41019         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
41020         dngettext, dcngettext, textdomain, bindtextdomain,
41021         bind_textdomain_codeset): Undefine before redefining.
41022
41023 2009-04-30  Bruno Haible  <bruno@clisp.org>
41024
41025         Fix bug introduced on 2009-04-25.
41026         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
41027         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
41028         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
41029         is defined.
41030         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
41031         is defined.
41032         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
41033         is defined.
41034         Reported by Elbert_Pol <elbert.pol@gmail.com>.
41035
41036 2009-04-28  Bruno Haible  <bruno@clisp.org>
41037
41038         Comment tweaks.
41039         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
41040         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
41041         * lib/unicase.h (u*_casexfrm): Likewise.
41042         Reported by Paolo Bonzini.
41043
41044 2009-04-28  Bruno Haible  <bruno@clisp.org>
41045
41046         Fix a compilation error.
41047         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
41048         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
41049         Reported by Jim Meyering.
41050
41051 2009-04-27  Bruno Haible  <bruno@clisp.org>
41052
41053         New module 'libunistring'.
41054         * modules/libunistring: New file.
41055         * m4/libunistring.m4: New file.
41056         * MODULES.html.sh (Unicode string functions): Add it.
41057
41058 2009-04-27  Eric Blake  <ebb9@byu.net>
41059
41060         maint.mk: allow package-specific header to provide <config.h>
41061         * top/maint.mk (sc_require_config_h): New variable.
41062         (sc_require_config_h, sc_require_config_h_first): Use it.
41063
41064 2009-04-27  Simon Josefsson  <simon@josefsson.org>
41065
41066         * top/maint.mk (sc_avoid_if_before_free): Except
41067         useless-if-before-free script.
41068
41069 2009-04-27  Eric Blake  <ebb9@byu.net>
41070
41071         maintainer-makefile: depend on all required helper scripts
41072         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
41073         useless-if-before-free.
41074         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
41075         version, rather than assuming gnulib checkout is available.
41076         Reported by Simen Josefsson.
41077
41078 2009-04-26  Bruno Haible  <bruno@clisp.org>
41079
41080         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
41081         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
41082         "../" or "..".
41083
41084 2009-04-26  Bruno Haible  <bruno@clisp.org>
41085
41086         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
41087         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
41088         AC_LIB_HAVE_LINKFLAGS.
41089
41090 2009-04-26  Bruno Haible  <bruno@clisp.org>
41091
41092         Simplify calling convention of u*_conv_from_encoding.
41093         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
41094         u32_conv_from_encoding): Expect a resultbuf argument and return the
41095         result directly as a pointer.
41096         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
41097         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
41098         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
41099         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
41100         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
41101         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
41102         Update.
41103         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
41104         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
41105         * lib/vasnprintf.c (VASNPRINTF): Update.
41106         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
41107         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
41108         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
41109         * NEWS: Mention the change.
41110
41111 2009-04-26  Bruno Haible  <bruno@clisp.org>
41112
41113         Simplify calling convention of u*_conv_to_encoding.
41114         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
41115         u32_conv_to_encoding): Expect a resultbuf argument and return the
41116         result directly as a pointer.
41117         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
41118         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
41119         freeing scaled_offsets if mem_iconveha failed.
41120         * lib/unicase/u-casexfrm.h (FUNC): Update.
41121         * lib/uninorm/u-normxfrm.h (FUNC): Update.
41122         * lib/vasnprintf.c (VASNPRINTF): Update.
41123         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
41124         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
41125         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
41126         * NEWS: Mention the change.
41127
41128 2009-04-26  Bruno Haible  <bruno@clisp.org>
41129
41130         Avoid test failures on AIX and OSF/1.
41131         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
41132         malloc(0).
41133         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
41134         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
41135         Likewise.
41136         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
41137         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
41138         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
41139         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
41140         * doc/posix-functions/malloc.texi: Document the portability problem
41141         related to malloc(0).
41142
41143 2009-04-26  Bruno Haible  <bruno@clisp.org>
41144
41145         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
41146         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
41147         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
41148
41149 2009-04-25  Bruno Haible  <bruno@clisp.org>
41150
41151         Avoid link error when creating a namespace clean library.
41152         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
41153         as macro with arguments if already defined as an alias.
41154         * lib/signbitf.c (gl_signbitf): Don't undefine.
41155         * lib/signbitd.c (gl_signbitd): Don't undefine.
41156         * lib/signbitl.c (gl_signbitl): Don't undefine.
41157
41158 2009-04-25  Jim Meyering  <meyering@redhat.com>
41159
41160         vc-list-files: fix another quoting bug
41161         * build-aux/vc-list-files: Avoid sed backslash expansion
41162         of pathological directory names.
41163
41164 2009-04-25  Eric Blake  <ebb9@byu.net>
41165
41166         vc-list-files: fix shell quoting error
41167         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
41168         timestamp.
41169
41170 2009-04-25  Jim Meyering  <meyering@redhat.com>
41171
41172         vc-list-files: restore lost functionality with subdir argument
41173         * build-aux/vc-list-files: When given a non-"." sub-directory
41174         argument, substitute the $dir/ prefix back onto each resulting name.
41175         Otherwise, coreutils' root_tests check would fail.
41176
41177 2009-04-24  Eric Blake  <ebb9@byu.net>
41178
41179         vc-list-files: ignore git symlinks
41180         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
41181         than ls-files, to ignore git symlinks.
41182
41183         maint.mk: import improvements from m4
41184         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
41185         (move_if_change): Delete unused macro.
41186         (news-date-check, vc-diff-check): Support VPATH builds.
41187         (announcement): Likewise.  Split --bootstrap-tools list...
41188         (boostrap-tools): ...into separate list, which can be overridden
41189         in cfg.mk.
41190         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
41191         requiring dependency on useless-if-before-free module.
41192         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
41193         Support VPATH builds.
41194
41195 2009-04-24  Jim Meyering  <meyering@redhat.com>
41196
41197         maint.mk: remove coreutils-specific rules and variables
41198         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
41199         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
41200         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
41201
41202         maint.mk: remove obsolete rule
41203         * top/maint.mk (rel-check): Remove rule.
41204         (WGET, WGETFLAGS): Remove now-unused variables.
41205
41206 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41207
41208         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
41209         consistency.
41210
41211         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
41212         '$(PATH_SEPARATOR)' instead of ':'.
41213
41214 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41215
41216         * lib/getopt1.c (main): Use 'const' for static array.
41217
41218 2009-04-24  Simon Josefsson  <simon@josefsson.org>
41219
41220         * top/maint.mk: Sync with coreutils.
41221         * NEWS: Explain incompatibilities.
41222
41223 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41224             Bruno Haible  <bruno@clisp.org>
41225
41226         Fix cross-compilation results.
41227         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
41228         statement, as third argument of AC_TRY_RUN.
41229         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
41230         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
41231         Likewise.
41232         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
41233         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
41234         Likewise.
41235         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
41236         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
41237         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
41238
41239 2009-04-20  Bruno Haible  <bruno@clisp.org>
41240
41241         Avoid test failure on mingw.
41242         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
41243
41244 2009-04-20  Bruno Haible  <bruno@clisp.org>
41245
41246         Avoid compilation error on mingw.
41247         * modules/localename-tests (Depends-on): Add locale.
41248
41249 2009-04-19  Bruno Haible  <bruno@clisp.org>
41250
41251         Support for building a shared library on Windows platforms.
41252         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
41253         (main): Test the presence of UNINORM_NFC here.
41254         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
41255         (main): Test the presence of UNINORM_NFD here.
41256         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
41257         (main): Test the presence of UNINORM_NFKC here.
41258         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
41259         (main): Test the presence of UNINORM_NFKD here.
41260
41261 2009-04-19  Bruno Haible  <bruno@clisp.org>
41262
41263         Avoid a compiler warning.
41264         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
41265         Change type of variable 'sequence'.
41266
41267 2009-04-19  Bruno Haible  <bruno@clisp.org>
41268
41269         * modules/configmake (Makefile.am): When the contents of configmake.h
41270         does not change, arrange to preserve its modification time.
41271
41272 2009-04-17  Simon Josefsson  <simon@josefsson.org>
41273
41274         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
41275         gettext domain.
41276
41277 2009-04-16  Jim Meyering  <meyering@redhat.com>
41278
41279         useless-if-before-free: improve conversion code
41280         * build-aux/useless-if-before-free: Adjust code-in-comment to match
41281         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
41282
41283 2009-04-14  Bruno Haible  <bruno@clisp.org>
41284
41285         * modules/fcntl (Depends-on): Add extensions.
41286         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
41287
41288 2009-04-12  Ben Pfaff  <blp@gnu.org>
41289
41290         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
41291         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
41292
41293 2009-03-20  Ben Pfaff  <blp@gnu.org>
41294
41295         Make rename replace existing destinations on Windows.
41296         * m4/rename.m4: Add test for Mingw.
41297         * lib/rename.c: Add rename replacement that uses MoveFileEx with
41298         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
41299         * doc/posix-functions/rename.texi: Document.
41300
41301 2009-04-10  Bruno Haible  <bruno@clisp.org>
41302
41303         New include file "iconveh.h".
41304         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
41305         * lib/striconveh.h: Include it.
41306         (enum iconv_ilseq_handler): Remove definition.
41307         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
41308         striconveh.h.
41309         * lib/striconveha.c: Include striconveh.h.
41310         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
41311         * modules/striconveh (Files): Add lib/iconveh.h.
41312         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
41313         lib/striconveh.h.
41314
41315 2009-04-10  Bruno Haible  <bruno@clisp.org>
41316
41317         * lib/uniconv.h: Update comment.
41318
41319 2009-04-10  Bruno Haible  <bruno@clisp.org>
41320
41321         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
41322         always.
41323         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
41324         * lib/unistr/u16-mbtouc-aux.c: Likewise.
41325         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
41326         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
41327         "unistring-notinline.h", so that the function gets defined always.
41328         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
41329         * lib/unistr/u8-uctomb.c: Likewise.
41330         * lib/unistr/u16-mbtouc.c: Likewise.
41331         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
41332         * lib/unistr/u16-uctomb.c: Likewise.
41333         * lib/unistr/u32-mbtouc.c: Likewise.
41334         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
41335         * lib/unistr/u32-uctomb.c: Likewise.
41336
41337 2009-04-10  Bruno Haible  <bruno@clisp.org>
41338
41339         Mark 'utime' obsolete.
41340         * modules/utime (Status, Notice): New sections.
41341         Suggested by Jim Meyering.
41342
41343         Fix cross-compile guess for utime test.
41344         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
41345         autoconf.
41346         * doc/posix-functions/utime.texi: Give more precisions.
41347         Reported by Jan <ipif@ymail.com>.
41348
41349 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
41350
41351         filevercmp: correct today's change
41352         * lib/filevercmp.c: Also handle coreutils' test inputs.
41353         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
41354
41355         Fix regression in 'filevercmp' module. Thanks Sven Joachim
41356         for reporting it.
41357         * lib/filevercmp.c: Special handle for "", "." and "..".
41358         * tests/test-filevercmp.c: Enlarge the set suite.
41359
41360 2009-04-07  Jim Meyering  <meyering@redhat.com>
41361
41362         useless-if-before-free: show how to remove braced useless free, too
41363         * build-aux/useless-if-before-free: still only in a comment, though.
41364
41365 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
41366
41367         maint.mk: import changes to syntax-check macros from coreutils
41368         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
41369         Use them in the relevant macros.
41370
41371 2009-04-06  Bruno Haible  <bruno@clisp.org>
41372
41373         Fix unportable use of bit-fields.
41374         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
41375         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
41376         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
41377
41378 2009-04-06  Bruno Haible  <bruno@clisp.org>
41379
41380         Avoid test failures on AIX and OSF/1.
41381         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
41382         that malloc(0) = NULL.
41383         * tests/unicase/test-u8-tolower.c (check): Likewise.
41384         * tests/unicase/test-u8-totitle.c (check): Likewise.
41385         * tests/unicase/test-u8-toupper.c (check): Likewise.
41386         * tests/unicase/test-u16-casefold.c (check): Likewise.
41387         * tests/unicase/test-u16-tolower.c (check): Likewise.
41388         * tests/unicase/test-u16-totitle.c (check): Likewise.
41389         * tests/unicase/test-u16-toupper.c (check): Likewise.
41390         * tests/unicase/test-u32-casefold.c (check): Likewise.
41391         * tests/unicase/test-u32-tolower.c (check): Likewise.
41392         * tests/unicase/test-u32-totitle.c (check): Likewise.
41393         * tests/unicase/test-u32-toupper.c (check): Likewise.
41394         * tests/uninorm/test-u8-nfc.c (check): Likewise.
41395         * tests/uninorm/test-u8-nfd.c (check): Likewise.
41396         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
41397         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
41398         * tests/uninorm/test-u16-nfc.c (check): Likewise.
41399         * tests/uninorm/test-u16-nfd.c (check): Likewise.
41400         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
41401         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
41402         * tests/uninorm/test-u32-nfc.c (check): Likewise.
41403         * tests/uninorm/test-u32-nfd.c (check): Likewise.
41404         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
41405         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
41406
41407 2009-04-05  Bruno Haible  <bruno@clisp.org>
41408
41409         Work around an autoconf limitation.
41410         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
41411         comment line if it would be longer than 3 KB.
41412
41413 2009-04-05  Bruno Haible  <bruno@clisp.org>
41414
41415         Avoid test failure with libiconv-1.13.
41416         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
41417         of the expected test results.
41418
41419 2009-04-05  Bruno Haible  <bruno@clisp.org>
41420
41421         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
41422         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
41423         that it should be installed.
41424
41425 2009-04-05  Bruno Haible  <bruno@clisp.org>
41426
41427         * gnulib-tool: New option --copy-file.
41428         (func_usage): Document it.
41429         (func_dest_tmpfilename): Moved out of func_import.
41430         (func_add_file, func_update_file): New functions, extracted from
41431         func_import.
41432         (func_import): Update.
41433
41434 2009-04-05  Karl Berry  <karl@gnu.org>
41435
41436         * README: prominently mention gnulib-tool.
41437         Rearrange sections so getting the code is near the top.
41438
41439 2009-04-05  Bruno Haible  <bruno@clisp.org>
41440
41441         * lib/unicase.h: Mention u*_cmp2.
41442         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
41443         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
41444         * lib/unicase/ulc-casecmp.c: Likewise.
41445         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
41446         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
41447         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
41448         unistr/u8-cmp.
41449         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
41450         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
41451         unistr/u16-cmp.
41452         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
41453         unistr/u32-cmp.
41454
41455         * lib/uninorm.h: Mention u*_cmp2.
41456         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
41457         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
41458         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
41459         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
41460         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
41461         unistr/u8-cmp.
41462         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
41463         unistr/u16-cmp.
41464         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
41465         unistr/u32-cmp.
41466
41467         New module 'unistr/u32-cmp2'.
41468         * lib/unistr/u32-cmp2.c: New file.
41469         * modules/unistr/u32-cmp2: New file.
41470
41471         New module 'unistr/u16-cmp2'.
41472         * lib/unistr/u16-cmp2.c: New file.
41473         * modules/unistr/u16-cmp2: New file.
41474
41475         New module 'unistr/u8-cmp2'.
41476         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
41477         * lib/unistr/u8-cmp2.c: New file.
41478         * lib/unistr/u-cmp2.h: New file.
41479         * modules/unistr/u8-cmp2: New file.
41480
41481 2009-04-05  Bruno Haible  <bruno@clisp.org>
41482
41483         * lib/unictype.h (uc_property_is_valid): New macro.
41484         * tests/unictype/test-pr_byname.c (main): Use it.
41485
41486         * lib/unistr.h: Doc fixes.
41487         * lib/uniconv.h: Doc fixes.
41488         * lib/unictype.h: Doc fixes.
41489
41490 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
41491
41492         Port coreutils 7.2 to Solaris 8.
41493
41494         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
41495         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
41496         for Solaris 8.  This is a bit of a hack, as it means it's the
41497         caller's responsibility to add -lnsl if needed, but most likely it
41498         won't be needed since only getaddrinfo uses this and getaddrinfo
41499         isn't needed on Solaris 8.
41500
41501         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
41502         problem to Solaris 8 encountered with coreutils 7.2, which
41503         resulted in a message "fnmatch.c:292: warning: passing argument 4
41504         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
41505         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
41506
41507 2009-04-03  Simon Josefsson  <simon@josefsson.org>
41508
41509         * m4/ld-version-script.m4: Add FIXME comment.
41510
41511 2009-04-02  Simon Josefsson  <simon@josefsson.org>
41512
41513         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
41514         SOVERSION variable.
41515
41516 2009-04-02  Bruno Haible  <bruno@clisp.org>
41517
41518         * Makefile (info, html, dvi, pdf): Combine the rules.
41519         Suggested by Jim Meyering.
41520
41521 2009-04-01  Bruno Haible  <bruno@clisp.org>
41522
41523         * Makefile (info, html, dvi, pdf): New targets.
41524         Reported by Reuben Thomas <rrt@sc3d.org>.
41525
41526 2009-04-01  Bruno Haible  <bruno@clisp.org>
41527
41528         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
41529         can be put into PATH.
41530         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
41531
41532 2009-04-01  Bruno Haible  <bruno@clisp.org>
41533
41534         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
41535
41536 2009-04-01  Bruno Haible  <bruno@clisp.org>
41537
41538         Rename module 'visibility'.
41539         * modules/lib-symbol-visibility: Renamed from modules/visibility.
41540         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
41541         * doc/gnulib.texi: Update.
41542         * MODULES.html.sh (Misc): Update.
41543         * NEWS: Mention the change.
41544
41545 2009-04-01  Simon Josefsson  <simon@josefsson.org>
41546
41547         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
41548         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
41549         Eric Blake <ebb9@byu.net> for review.
41550         * MODULES.html.sh: Add lib-msvc-compat.
41551         * doc/gnulib.texi: Link to new section.
41552         * m4/ld-output-def.m4: New file.
41553         * doc/ld-output-def.texi: New file.
41554
41555 2009-04-01  Simon Josefsson  <simon@josefsson.org>
41556
41557         Rename ld-version-script to lib-symbol-versions.  Suggested by
41558         Bruno Haible <bruno@clisp.org>.
41559         * modules/ld-version-script: Renamed to lib-symbol-versions.
41560         * doc/ld-version-script.texi: Fix module name.
41561         * MODULES.html.sh: Add lib-symbol-versions.
41562
41563 2009-03-31  Simon Josefsson  <simon@josefsson.org>
41564
41565         * modules/u64-tests: New file.
41566         * tests/test-u64.c: New file.
41567
41568 2009-03-04  Simon Josefsson  <simon@josefsson.org>
41569
41570         * MODULES.html.sh: Mention u64.
41571         * modules/u64: New module.
41572         * modules/crypto/sha512: Depend on u64 module instead of providing
41573         u64.h.
41574
41575 2009-03-27  Eric Blake  <ebb9@byu.net>
41576
41577         test-strerror: make debugging EAI_SYSTEM easier
41578         * modules/getaddrinfo-tests (Depends-on): Add strerror.
41579         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
41580         failure was EAI_SYSTEM.
41581
41582 2009-03-25  Bruno Haible  <bruno@clisp.org>
41583
41584         Fix a problem with --enable-relocatable on Solaris 7.
41585         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
41586         since 2008-02-24.
41587
41588 2009-03-25  Eric Blake  <ebb9@byu.net>
41589
41590         test-sockets: avoid gcc warning
41591         * tests/test-sockets.c (main): Silence compiler warning.
41592
41593 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
41594
41595         New modules nproc, pthread, contributed by Glen Lenker.
41596
41597         * MODULES.html.sh: Add pthread, nproc.
41598         * lib/nproc.c: New file.
41599         * lib/nproc.h: New file.
41600         * lib/pthread.in.h: New file.
41601         * m4/pthread.m4: New file.
41602         * modules/nproc: New file.
41603         * modules/pthread: New file.
41604
41605 2009-03-24  Simon Josefsson  <simon@josefsson.org>
41606
41607         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
41608         New variable.
41609
41610 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
41611
41612         filevercmp: handle simple~ and numbered.~3~ backup suffixes
41613         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
41614         * tests/test-filevercmp.c: Add tests for backup suffixes.
41615
41616 2009-03-24  Simon Josefsson  <simon@josefsson.org>
41617
41618         * modules/stdlib (Depends-on): Add stdint, needed when defining
41619         struct random_data on, for example, HP-UX 10.20.  Reported by
41620         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
41621
41622 2009-03-24  Simon Josefsson  <simon@josefsson.org>
41623
41624         * lib/readline.c (readline): Call fflush on stdout after printing
41625         prompt.
41626
41627 2009-03-20  Bruno Haible  <bruno@clisp.org>
41628
41629         Remove dependency from 'close' module to -lws2_32 on native Windows.
41630         * lib/close-hook.h: New file.
41631         * lib/close-hook.c: New file.
41632         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
41633         w32sock.h.
41634         (_gl_close_fd_maybe_socket): Remove function.
41635         (rpl_close): Invoke execute_all_close_hooks instead of
41636         _gl_close_fd_maybe_socket.
41637         * lib/sockets.c: Include close-hook.h, w32sock.h.
41638         (close_fd_maybe_socket): New function, essentially from lib/close.c.
41639         (close_sockets_hook): New variable.
41640         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
41641         (gl_sockets_cleanup): Unregister it.
41642         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
41643         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
41644         * modules/close-hook: New file.
41645         * modules/close (Files): Remove lib/w32sock.h.
41646         (Depends-on): Add close-hook.
41647         (Link): Remove section.
41648         * modules/sockets (Files): Add lib/w32sock.h.
41649         (Depends-on): Add close-hook.
41650         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
41651         invocation.
41652         * NEWS: Mention that LIB_CLOSE is gone.
41653
41654 2009-03-23  Eric Blake  <ebb9@byu.net>
41655
41656         signal-tests: test previous patch
41657         * tests/test-signal.c: New file.
41658         * modules/signal-tests: Likewise.
41659
41660         signal.h: always support 'volatile sig_atomic_t'
41661         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
41662         (gl_SIGNAL_H_DEFAULTS): Add a default.
41663         * modules/signal (Makefile.am): Substitute if needed.
41664         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
41665         users can blindly add volatile.
41666         * doc/posix-headers/signal.texi (signal.h): Document it.
41667         Reported by Matthew Woehlke.
41668
41669 2009-03-23  Jim Meyering  <meyering@redhat.com>
41670
41671         pathmax: PATH_MAX: use pathconf only when available
41672         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
41673         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
41674         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
41675         This avoids a link failure in a PSP cross-compilation environment
41676         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
41677
41678         * lib/vasnprintf.c (divide): Fix typo in comment.
41679
41680 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41681
41682         * gnulib-tool (func_filter_filelist): Fix comment.
41683
41684 2009-03-20  Bruno Haible  <bruno@clisp.org>
41685
41686         Make sockets.h self-contained.
41687         * lib/sockets.c: Include sockets.h first.
41688         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
41689
41690 2009-03-19  Eric Blake  <ebb9@byu.net>
41691
41692         doc: mention more functions added in cygwin 1.7.0
41693         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
41694         addition.
41695         * doc/posix-functions/log2f.texi: Likewise.
41696
41697 2009-03-19  Jim Meyering  <meyering@redhat.com>
41698
41699         fsusage: avoid syntax error due to statement-before-declaration
41700         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
41701         after all declarations.  Reported by Matthew Woehlke in
41702         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
41703
41704 2009-03-18  Eric Blake  <ebb9@byu.net>
41705
41706         build-aux/compile: sync from automake
41707         * build-aux/compile: New file, from automake.
41708         * config/srclist.txt: Mention build-aux/compile.
41709
41710 2009-03-17  Bruno Haible  <bruno@clisp.org>
41711
41712         * lib/git-merge-changelog.c: Fix typo in comment.
41713         Reported by Reuben Thomas <rrt@sc3d.org>.
41714
41715 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
41716
41717         * m4/regex.m4: update and improve help for
41718         --without-included-regex.
41719
41720 2009-03-17  Simon Josefsson  <simon@josefsson.org>
41721
41722         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
41723         failure on missing include files.
41724
41725 2009-03-17  Eric Blake  <ebb9@byu.net>
41726
41727         doc: mention more functions added in cygwin 1.7.0
41728         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
41729         addition.
41730         * doc/posix-functions/fwscanf.texi: Likewise.
41731         * doc/posix-functions/swprintf.texi: Likewise.
41732         * doc/posix-functions/swscanf.texi: Likewise.
41733         * doc/posix-functions/vfwprintf.texi: Likewise.
41734         * doc/posix-functions/vfwscanf.texi: Likewise.
41735         * doc/posix-functions/vswprintf.texi: Likewise.
41736         * doc/posix-functions/vswscanf.texi: Likewise.
41737         * doc/posix-functions/vwprintf.texi: Likewise.
41738         * doc/posix-functions/vwscanf.texi: Likewise.
41739         * doc/posix-functions/wcscasecmp.texi: Likewise.
41740         * doc/posix-functions/wcsdup.texi: Likewise.
41741         * doc/posix-functions/wcsftime.texi: Likewise.
41742         * doc/posix-functions/wcsncasecmp.texi: Likewise.
41743         * doc/posix-functions/wprintf.texi: Likewise.
41744         * doc/posix-functions/wscanf.texi: Likewise.
41745         * doc/glibc-functions/gethostbyname2.texi: Likewise.
41746
41747 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41748
41749         maint.mk: really add $(AM_MAKEFLAGS)
41750         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
41751         was inadvertently omitted in the last commit.
41752         Spotted by Bruno Haible.
41753
41754         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
41755         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
41756         $(AM_MAKEFLAGS)' rather than plain `make'.
41757
41758         gnulib-tool: execute $MAKE not make
41759         * gnulib-tool: Default $MAKE to 'make'.
41760         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
41761         than make.  Initialize $MAKE in the do-autobuild script.
41762
41763         gnulib-tool: use $MAKE not make in generated files
41764         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
41765         make, in generated files.  Initialize $MAKE in the do-autobuild
41766         script.
41767
41768         * top/GNUmakefile (_have-git-version-gen): Fix typo.
41769
41770         GNUmakefile: disable parallelism only for multiple, recursive targets
41771         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
41772         additions in the Makefile.
41773         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
41774         by Automake.
41775         (.NOTPARALLEL): Only disable parallel builds if multiple targets
41776         are listed on the command line and at least one of them is
41777         listed in $(ALL_RECURSIVE_TARGETS).
41778
41779 2009-03-14  Bruno Haible  <bruno@clisp.org>
41780
41781         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
41782         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
41783         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
41784         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
41785         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
41786         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
41787         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
41788         unistr/u8-uctomb.
41789         * modules/unistr/u8-strchr (Depends-on): Likewise.
41790         * modules/unistr/u8-strrchr (Depends-on): Likewise.
41791         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
41792         unistr/u16-uctomb.
41793         * modules/unistr/u16-strchr (Depends-on): Likewise.
41794         * modules/unistr/u16-strrchr (Depends-on): Likewise.
41795
41796 2009-03-12  Bruno Haible  <bruno@clisp.org>
41797
41798         Work around select() bug on Interix 3.5.
41799         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
41800         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
41801         * m4/select.m4: New file.
41802         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
41803         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
41804         * modules/select (Files): Add m4/select.m4.
41805         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
41806         * modules/nanosleep (Depends-on): Add select.
41807         * modules/poll (Depends-on): Likewise.
41808         * doc/posix-functions/select.texi: Mention the Interix bug.
41809         Reported by Markus Duft <mduft@gentoo.org>.
41810
41811         * lib/select.c: Renamed from lib/winsock-select.c.
41812         * modules/select (Files): Add lib/select.c, remove
41813         lib/winsock-select.c.
41814         (configure.ac): Update.
41815
41816 2009-03-12  Jim Meyering  <meyering@redhat.com>
41817
41818         avoid gcc warnings about unused macro definitions
41819         * lib/readtokens.c (STREQ): Remove unused definition.
41820         * lib/xmalloc.c (SIZE_MAX): Likewise.
41821         * lib/openat-die.c (N_): Likewise.
41822         * lib/mountlist.c (SIZE_MAX): Remove definition.
41823         Instead, include <stdint.h>.
41824         * lib/readutmp.c: Likewise.
41825         * modules/readutmp (Depends-on): Add stdint.
41826         * modules/mountlist (Depends-on): Add stdint.
41827         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
41828
41829 2009-03-10  Bruno Haible  <bruno@clisp.org>
41830
41831         Tests for module 'mbmemcasecoll'.
41832         * modules/mbmemcasecoll-tests: New file.
41833         * tests/test-mbmemcasecoll1.sh: New file.
41834         * tests/test-mbmemcasecoll2.sh: New file.
41835         * tests/test-mbmemcasecoll3.sh: New file.
41836         * tests/test-mbmemcasecoll.c: New file.
41837
41838         New module 'mbmemcasecoll'.
41839         * lib/mbmemcasecoll.h: New file.
41840         * lib/mbmemcasecoll.c: New file.
41841         * modules/mbmemcasecoll: New file.
41842
41843         * tests/test-mbmemcasecmp.h: New file, extracted from
41844         tests/test-mbmemcasecmp.c.
41845         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
41846         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
41847         (main): Update.
41848         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
41849
41850 2009-03-09  Bruno Haible  <bruno@clisp.org>
41851
41852         Tests for module 'mbmemcasecmp'.
41853         * modules/mbmemcasecmp-tests: New file.
41854         * tests/test-mbmemcasecmp1.sh: New file.
41855         * tests/test-mbmemcasecmp2.sh: New file.
41856         * tests/test-mbmemcasecmp3.sh: New file.
41857         * tests/test-mbmemcasecmp.c: New file.
41858
41859         New module 'mbmemcasecmp'.
41860         * lib/mbmemcasecmp.h: New file.
41861         * lib/mbmemcasecmp.c: New file.
41862         * modules/mbmemcasecmp: New file.
41863
41864 2009-03-09  Bruno Haible  <bruno@clisp.org>
41865
41866         Tests for module 'unicase/ulc-casecoll'.
41867         * modules/unicase/ulc-casecoll-tests: New file.
41868         * tests/unicase/test-ulc-casecoll1.sh: New file.
41869         * tests/unicase/test-ulc-casecoll2.sh: New file.
41870         * tests/unicase/test-ulc-casecoll.c: New file.
41871
41872         New module 'unicase/ulc-casecoll'.
41873         * lib/unicase.h (ulc_casecoll): New declaration.
41874         * lib/unicase/ulc-casecoll.c: New file.
41875         * modules/unicase/ulc-casecoll: New file.
41876
41877         New module 'unicase/ulc-casexfrm'.
41878         * lib/unicase.h (ulc_casexfrm): New declaration.
41879         * lib/unicase/ulc-casexfrm.c: New file.
41880         * modules/unicase/ulc-casexfrm: New file.
41881
41882 2009-03-09  Bruno Haible  <bruno@clisp.org>
41883
41884         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
41885         invocations.
41886
41887         * m4/mbscasecmp.m4: Remove file.
41888         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
41889         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
41890
41891         * m4/mbscasestr.m4: Remove file.
41892         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
41893         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
41894
41895         * m4/mbschr.m4: Remove file.
41896         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
41897         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
41898
41899         * m4/mbscspn.m4: Remove file.
41900         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
41901         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
41902
41903         * m4/mbslen.m4: Remove file.
41904         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
41905         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
41906
41907         * m4/mbsncasecmp.m4: Remove file.
41908         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
41909         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
41910
41911         * m4/mbsnlen.m4: Remove file.
41912         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
41913         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
41914
41915         * m4/mbspbrk.m4: Remove file.
41916         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
41917         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
41918
41919         * m4/mbspcasecmp.m4: Remove file.
41920         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
41921         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
41922
41923         * m4/mbsrchr.m4: Remove file.
41924         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
41925         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
41926
41927         * m4/mbssep.m4: Remove file.
41928         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
41929         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
41930
41931         * m4/mbsspn.m4: Remove file.
41932         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
41933         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
41934
41935         * m4/mbsstr.m4: Remove file.
41936         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
41937         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
41938
41939         * m4/mbstok_r.m4: Remove file.
41940         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
41941         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
41942
41943         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
41944
41945         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
41946         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
41947
41948         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
41949
41950 2009-03-08  Bruno Haible  <bruno@clisp.org>
41951
41952         Tests for module 'unicase/ulc-casecmp'.
41953         * modules/unicase/ulc-casecmp-tests: New file.
41954         * tests/unicase/test-ulc-casecmp1.sh: New file.
41955         * tests/unicase/test-ulc-casecmp2.sh: New file.
41956         * tests/unicase/test-ulc-casecmp.c: New file.
41957
41958         New module 'unicase/ulc-casecmp'.
41959         * lib/unicase.h (ulc_casecmp): New declaration.
41960         * lib/unicase/ulc-casecmp.c: New file.
41961         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
41962         'const SRC_UNIT *'.
41963         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
41964         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
41965         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
41966         * modules/unicase/ulc-casecmp: New file.
41967
41968         Tests for module 'unicase/u32-is-cased'.
41969         * modules/unicase/u32-is-cased-tests: New file.
41970         * tests/unicase/test-u32-is-cased.c: New file.
41971
41972         Tests for module 'unicase/u16-is-cased'.
41973         * modules/unicase/u16-is-cased-tests: New file.
41974         * tests/unicase/test-u16-is-cased.c: New file.
41975
41976         Tests for module 'unicase/u8-is-cased'.
41977         * modules/unicase/u8-is-cased-tests: New file.
41978         * tests/unicase/test-u8-is-cased.c: New file.
41979         * tests/unicase/test-is-cased.h: New file.
41980
41981         New module 'unicase/u32-is-cased'.
41982         * lib/unicase/u32-is-cased.c: New file.
41983         * modules/unicase/u32-is-cased: New file.
41984
41985         New module 'unicase/u16-is-cased'.
41986         * lib/unicase/u16-is-cased.c: New file.
41987         * modules/unicase/u16-is-cased: New file.
41988
41989         New module 'unicase/u8-is-cased'.
41990         * lib/unicase/u8-is-cased.c: New file.
41991         * lib/unicase/u-is-cased.h: New file.
41992         * modules/unicase/u8-is-cased: New file.
41993
41994         Tests for module 'unicase/u32-is-casefolded'.
41995         * modules/unicase/u32-is-casefolded-tests: New file.
41996         * tests/unicase/test-u32-is-casefolded.c: New file.
41997
41998         Tests for module 'unicase/u16-is-casefolded'.
41999         * modules/unicase/u16-is-casefolded-tests: New file.
42000         * tests/unicase/test-u16-is-casefolded.c: New file.
42001
42002         Tests for module 'unicase/u8-is-casefolded'.
42003         * modules/unicase/u8-is-casefolded-tests: New file.
42004         * tests/unicase/test-u8-is-casefolded.c: New file.
42005         * tests/unicase/test-is-casefolded.h: New file.
42006
42007         New module 'unicase/u32-is-casefolded'.
42008         * lib/unicase/u32-is-casefolded.c: New file.
42009         * modules/unicase/u32-is-casefolded: New file.
42010
42011         New module 'unicase/u16-is-casefolded'.
42012         * lib/unicase/u16-is-casefolded.c: New file.
42013         * modules/unicase/u16-is-casefolded: New file.
42014
42015         New module 'unicase/u8-is-casefolded'.
42016         * lib/unicase/u8-is-casefolded.c: New file.
42017         * modules/unicase/u8-is-casefolded: New file.
42018
42019         Tests for module 'unicase/u32-is-titlecase'.
42020         * modules/unicase/u32-is-titlecase-tests: New file.
42021         * tests/unicase/test-u32-is-titlecase.c: New file.
42022
42023         Tests for module 'unicase/u16-is-titlecase'.
42024         * modules/unicase/u16-is-titlecase-tests: New file.
42025         * tests/unicase/test-u16-is-titlecase.c: New file.
42026
42027         Tests for module 'unicase/u8-is-titlecase'.
42028         * modules/unicase/u8-is-titlecase-tests: New file.
42029         * tests/unicase/test-u8-is-titlecase.c: New file.
42030         * tests/unicase/test-is-titlecase.h: New file.
42031
42032         New module 'unicase/u32-is-titlecase'.
42033         * lib/unicase/u32-is-titlecase.c: New file.
42034         * modules/unicase/u32-is-titlecase: New file.
42035
42036         New module 'unicase/u16-is-titlecase'.
42037         * lib/unicase/u16-is-titlecase.c: New file.
42038         * modules/unicase/u16-is-titlecase: New file.
42039
42040         New module 'unicase/u8-is-titlecase'.
42041         * lib/unicase/u8-is-titlecase.c: New file.
42042         * modules/unicase/u8-is-titlecase: New file.
42043
42044         Tests for module 'unicase/u32-is-lowercase'.
42045         * modules/unicase/u32-is-lowercase-tests: New file.
42046         * tests/unicase/test-u32-is-lowercase.c: New file.
42047
42048         Tests for module 'unicase/u16-is-lowercase'.
42049         * modules/unicase/u16-is-lowercase-tests: New file.
42050         * tests/unicase/test-u16-is-lowercase.c: New file.
42051
42052         Tests for module 'unicase/u8-is-lowercase'.
42053         * modules/unicase/u8-is-lowercase-tests: New file.
42054         * tests/unicase/test-u8-is-lowercase.c: New file.
42055         * tests/unicase/test-is-lowercase.h: New file.
42056
42057         New module 'unicase/u32-is-lowercase'.
42058         * lib/unicase/u32-is-lowercase.c: New file.
42059         * modules/unicase/u32-is-lowercase: New file.
42060
42061         New module 'unicase/u16-is-lowercase'.
42062         * lib/unicase/u16-is-lowercase.c: New file.
42063         * modules/unicase/u16-is-lowercase: New file.
42064
42065         New module 'unicase/u8-is-lowercase'.
42066         * lib/unicase/u8-is-lowercase.c: New file.
42067         * modules/unicase/u8-is-lowercase: New file.
42068
42069         Tests for module 'unicase/u32-is-uppercase'.
42070         * modules/unicase/u32-is-uppercase-tests: New file.
42071         * tests/unicase/test-u32-is-uppercase.c: New file.
42072
42073         Tests for module 'unicase/u16-is-uppercase'.
42074         * modules/unicase/u16-is-uppercase-tests: New file.
42075         * tests/unicase/test-u16-is-uppercase.c: New file.
42076
42077         Tests for module 'unicase/u8-is-uppercase'.
42078         * modules/unicase/u8-is-uppercase-tests: New file.
42079         * tests/unicase/test-u8-is-uppercase.c: New file.
42080         * tests/unicase/test-is-uppercase.h: New file.
42081
42082         New module 'unicase/u32-is-uppercase'.
42083         * lib/unicase/u32-is-uppercase.c: New file.
42084         * modules/unicase/u32-is-uppercase: New file.
42085
42086         New module 'unicase/u16-is-uppercase'.
42087         * lib/unicase/u16-is-uppercase.c: New file.
42088         * modules/unicase/u16-is-uppercase: New file.
42089
42090         New module 'unicase/u8-is-uppercase'.
42091         * lib/unicase/u8-is-uppercase.c: New file.
42092         * modules/unicase/u8-is-uppercase: New file.
42093
42094         New module 'unicase/u32-is-invariant'.
42095         * lib/unicase/u32-is-invariant.c: New file.
42096         * modules/unicase/u32-is-invariant: New file.
42097
42098         New module 'unicase/u16-is-invariant'.
42099         * lib/unicase/u16-is-invariant.c: New file.
42100         * modules/unicase/u16-is-invariant: New file.
42101
42102         New module 'unicase/u8-is-invariant'.
42103         * lib/unicase/u8-is-invariant.c: New file.
42104         * lib/unicase/invariant.h: New file.
42105         * lib/unicase/u-is-invariant.h: New file.
42106         * modules/unicase/u8-is-invariant: New file.
42107
42108         Tests for module 'unicase/u32-casecoll'.
42109         * modules/unicase/u32-casecoll-tests: New file.
42110         * tests/unicase/test-u32-casecoll.c: New file.
42111
42112         Tests for module 'unicase/u16-casecoll'.
42113         * modules/unicase/u16-casecoll-tests: New file.
42114         * tests/unicase/test-u16-casecoll.c: New file.
42115
42116         Tests for module 'unicase/u8-casecoll'.
42117         * modules/unicase/u8-casecoll-tests: New file.
42118         * tests/unicase/test-u8-casecoll.c: New file.
42119
42120         New module 'unicase/u32-casecoll'.
42121         * lib/unicase/u32-casecoll.c: New file.
42122         * modules/unicase/u32-casecoll: New file.
42123
42124         New module 'unicase/u16-casecoll'.
42125         * lib/unicase/u16-casecoll.c: New file.
42126         * modules/unicase/u16-casecoll: New file.
42127
42128         New module 'unicase/u8-casecoll'.
42129         * lib/unicase/u8-casecoll.c: New file.
42130         * lib/unicase/u-casecoll.h: New file.
42131         * modules/unicase/u8-casecoll: New file.
42132
42133         New module 'unicase/u32-casexfrm'.
42134         * lib/unicase/u32-casexfrm.c: New file.
42135         * modules/unicase/u32-casexfrm: New file.
42136
42137         New module 'unicase/u16-casexfrm'.
42138         * lib/unicase/u16-casexfrm.c: New file.
42139         * modules/unicase/u16-casexfrm: New file.
42140
42141         New module 'unicase/u8-casexfrm'.
42142         * lib/unicase/u8-casexfrm.c: New file.
42143         * lib/unicase/u-casexfrm.h: New file.
42144         * modules/unicase/u8-casexfrm: New file.
42145
42146         Tests for module 'unicase/u32-casecmp'.
42147         * modules/unicase/u32-casecmp-tests: New file.
42148         * tests/unicase/test-u32-casecmp.c: New file.
42149
42150         Tests for module 'unicase/u16-casecmp'.
42151         * modules/unicase/u16-casecmp-tests: New file.
42152         * tests/unicase/test-u16-casecmp.c: New file.
42153
42154         Tests for module 'unicase/u8-casecmp'.
42155         * modules/unicase/u8-casecmp-tests: New file.
42156         * tests/unicase/test-u8-casecmp.c: New file.
42157         * tests/unicase/test-casecmp.h: New file.
42158
42159         New module 'unicase/u32-casecmp'.
42160         * lib/unicase/u32-casecmp.c: New file.
42161         * modules/unicase/u32-casecmp: New file.
42162
42163         New module 'unicase/u16-casecmp'.
42164         * lib/unicase/u16-casecmp.c: New file.
42165         * modules/unicase/u16-casecmp: New file.
42166
42167         New module 'unicase/u8-casecmp'.
42168         * lib/unicase/u8-casecmp.c: New file.
42169         * lib/unicase/u-casecmp.h: New file.
42170         * modules/unicase/u8-casecmp: New file.
42171
42172         Tests for module 'unicase/u32-casefold'.
42173         * modules/unicase/u32-casefold-tests: New file.
42174         * tests/unicase/test-u32-casefold.c: New file.
42175
42176         Tests for module 'unicase/u16-casefold'.
42177         * modules/unicase/u16-casefold-tests: New file.
42178         * tests/unicase/test-u16-casefold.c: New file.
42179
42180         Tests for module 'unicase/u8-casefold'.
42181         * modules/unicase/u8-casefold-tests: New file.
42182         * tests/unicase/test-u8-casefold.c: New file.
42183
42184         New module 'unicase/u32-casefold'.
42185         * lib/unicase/u32-casefold.c: New file.
42186         * modules/unicase/u32-casefold: New file.
42187
42188         New module 'unicase/u16-casefold'.
42189         * lib/unicase/u16-casefold.c: New file.
42190         * modules/unicase/u16-casefold: New file.
42191
42192         New module 'unicase/u8-casefold'.
42193         * lib/unicase/u8-casefold.c: New file.
42194         * lib/unicase/u-casefold.h: New file.
42195         * modules/unicase/u8-casefold: New file.
42196
42197         New module 'unicase/tocasefold'.
42198         * lib/unicase/casefold.h: New file.
42199         * lib/unicase/tocasefold.c: New file.
42200         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
42201         * modules/unicase/tocasefold: New file.
42202
42203         Tests for module 'unicase/u32-totitle'.
42204         * modules/unicase/u32-totitle-tests: New file.
42205         * tests/unicase/test-u32-totitle.c: New file.
42206
42207         Tests for module 'unicase/u16-totitle'.
42208         * modules/unicase/u16-totitle-tests: New file.
42209         * tests/unicase/test-u16-totitle.c: New file.
42210
42211         Tests for module 'unicase/u8-totitle'.
42212         * modules/unicase/u8-totitle-tests: New file.
42213         * tests/unicase/test-u8-totitle.c: New file.
42214
42215         New module 'unicase/u32-totitle'.
42216         * lib/unicase/u32-totitle.c: New file.
42217         * modules/unicase/u32-totitle: New file.
42218
42219         New module 'unicase/u16-totitle'.
42220         * lib/unicase/u16-totitle.c: New file.
42221         * modules/unicase/u16-totitle: New file.
42222
42223         New module 'unicase/u8-totitle'.
42224         * lib/unicase/u8-totitle.c: New file.
42225         * lib/unicase/u-totitle.h: New file.
42226         * modules/unicase/u8-totitle: New file.
42227
42228         Tests for module 'unicase/u32-tolower'.
42229         * modules/unicase/u32-tolower-tests: New file.
42230         * tests/unicase/test-u32-tolower.c: New file.
42231
42232         Tests for module 'unicase/u16-tolower'.
42233         * modules/unicase/u16-tolower-tests: New file.
42234         * tests/unicase/test-u16-tolower.c: New file.
42235
42236         Tests for module 'unicase/u8-tolower'.
42237         * modules/unicase/u8-tolower-tests: New file.
42238         * tests/unicase/test-u8-tolower.c: New file.
42239
42240         New module 'unicase/u32-tolower'.
42241         * lib/unicase/u32-tolower.c: New file.
42242         * modules/unicase/u32-tolower: New file.
42243
42244         New module 'unicase/u16-tolower'.
42245         * lib/unicase/u16-tolower.c: New file.
42246         * modules/unicase/u16-tolower: New file.
42247
42248         New module 'unicase/u8-tolower'.
42249         * lib/unicase/u8-tolower.c: New file.
42250         * modules/unicase/u8-tolower: New file.
42251
42252         Tests for module 'unicase/u32-toupper'.
42253         * modules/unicase/u32-toupper-tests: New file.
42254         * tests/unicase/test-u32-toupper.c: New file.
42255
42256         Tests for module 'unicase/u16-toupper'.
42257         * modules/unicase/u16-toupper-tests: New file.
42258         * tests/unicase/test-u16-toupper.c: New file.
42259
42260         Tests for module 'unicase/u8-toupper'.
42261         * modules/unicase/u8-toupper-tests: New file.
42262         * tests/unicase/test-u8-toupper.c: New file.
42263
42264         New module 'unicase/u32-toupper'.
42265         * lib/unicase/u32-toupper.c: New file.
42266         * modules/unicase/u32-toupper: New file.
42267
42268         New module 'unicase/u16-toupper'.
42269         * lib/unicase/u16-toupper.c: New file.
42270         * modules/unicase/u16-toupper: New file.
42271
42272         New module 'unicase/u8-toupper'.
42273         * lib/unicase/u8-toupper.c: New file.
42274         * modules/unicase/u8-toupper: New file.
42275
42276         New module 'unicase/u32-casemap'.
42277         * lib/unicase/u32-casemap.c: New file.
42278         * modules/unicase/u32-casemap: New file.
42279
42280         New module 'unicase/u16-casemap'.
42281         * lib/unicase/u16-casemap.c: New file.
42282         * modules/unicase/u16-casemap: New file.
42283
42284         New module 'unicase/u8-casemap'.
42285         * lib/unicase/unicasemap.h: New file.
42286         * lib/unicase/u8-casemap.c: New file.
42287         * lib/unicase/u-casemap.h: New file.
42288         * modules/unicase/u8-casemap: New file.
42289
42290         New module 'unicase/special-casing'.
42291         * lib/unicase/special-casing.h: New file.
42292         * lib/unicase/special-casing.c: New file.
42293         * lib/unicase/special-casing-table.gperf: New file, generated by
42294         gen-uni-tables.c.
42295         * modules/unicase/special-casing: New file.
42296
42297         Tests for module 'unicase/locale-language'.
42298         * modules/unicase/locale-language-tests: New file.
42299         * tests/unicase/test-locale-language.sh: New file.
42300         * tests/unicase/test-locale-language.c: New file.
42301
42302         New module 'unicase/locale-language'.
42303         * lib/unicase/locale-language.c: New file.
42304         * lib/unicase/locale-languages.gperf: New file.
42305         * modules/unicase/locale-language: New file.
42306
42307         Generate more tables for case conversion and case folding.
42308         * lib/gen-uni-tables.c (SCC_*): New enum items.
42309         (struct special_casing_rule): New type.
42310         (casing_rules, num_casing_rules, allocated_casing_rules): New
42311         variables.
42312         (add_casing_rule, fill_casing_rules): New functions.
42313         (struct casefold_rule): New type.
42314         (casefolding_rules, num_casefolding_rules,
42315         allocated_casefolding_rules): New variables.
42316         (fill_casefolding_rules): New function.
42317         (unicode_casefold): New variable.
42318         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
42319         sort_casing_rules, output_casing_rules): New functions.
42320         (main): Accept to more arguments: SpecialCasing.txt and
42321         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
42322         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
42323         Output mapping for casefolding.
42324
42325         * lib/unicase.h: Include stdbool.h, uninorm.h.
42326         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
42327         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
42328         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
42329         arguments.
42330         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
42331         resultp arguments.
42332         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
42333         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
42334         resultp arguments.
42335         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
42336         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
42337         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
42338         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
42339         declarations.
42340         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
42341
42342 2009-03-08  Bruno Haible  <bruno@clisp.org>
42343
42344         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
42345         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
42346         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
42347         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
42348
42349 2009-03-07  Bruno Haible  <bruno@clisp.org>
42350
42351         Adjust u*_normcmp, u*_normcoll API.
42352         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
42353         u16_normcoll, u32_normcoll): Change failure conventions.
42354         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
42355         errno and return -1.
42356         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
42357
42358 2009-03-07  Bruno Haible  <bruno@clisp.org>
42359
42360         Tests for module 'uninorm/u32-normcoll'.
42361         * modules/uninorm/u32-normcoll-tests: New file.
42362         * tests/uninorm/test-u32-normcoll.c: New file.
42363
42364         Tests for module 'uninorm/u16-normcoll'.
42365         * modules/uninorm/u16-normcoll-tests: New file.
42366         * tests/uninorm/test-u16-normcoll.c: New file.
42367
42368         Tests for module 'uninorm/u8-normcoll'.
42369         * modules/uninorm/u8-normcoll-tests: New file.
42370         * tests/uninorm/test-u8-normcoll.c: New file.
42371
42372 2009-03-07  Bruno Haible  <bruno@clisp.org>
42373
42374         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
42375         tests/uninorm/test-u32-normcmp.c.
42376         * tests/uninorm/test-u32-normcmp.c: Include it.
42377         (test_nonascii): New function, extracted from main. Add some more
42378         tests.
42379         (main): Invoke test_ascii and test_nonascii.
42380         * modules/uninorm/u32-normcmp-tests (Files): Add
42381         tests/uninorm/test-u32-normcmp.h.
42382         (Depends-on): Remove uninorm/u32-normcmp.
42383
42384         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
42385         tests/uninorm/test-u16-normcmp.c.
42386         * tests/uninorm/test-u16-normcmp.c: Include it.
42387         (test_nonascii): New function, extracted from main. Add some more
42388         tests.
42389         (main): Invoke test_ascii and test_nonascii.
42390         * modules/uninorm/u16-normcmp-tests (Files): Add
42391         tests/uninorm/test-u16-normcmp.h.
42392         (Depends-on): Remove uninorm/u16-normcmp.
42393
42394         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
42395         tests/uninorm/test-u8-normcmp.c.
42396         * tests/uninorm/test-u8-normcmp.c: Include it.
42397         (test_nonascii): New function, extracted from main. Add some more
42398         tests.
42399         (main): Invoke test_ascii and test_nonascii.
42400         * modules/uninorm/u8-normcmp-tests (Files): Add
42401         tests/uninorm/test-u8-normcmp.h.
42402         (Depends-on): Remove uninorm/u8-normcmp.
42403
42404 2009-03-07  Bruno Haible  <bruno@clisp.org>
42405
42406         New module 'uninorm/u32-normcoll'.
42407         * lib/uninorm/u32-normcoll.c: New file.
42408         * modules/uninorm/u32-normcoll: New file.
42409
42410         New module 'uninorm/u16-normcoll'.
42411         * lib/uninorm/u16-normcoll.c: New file.
42412         * modules/uninorm/u16-normcoll: New file.
42413
42414         New module 'uninorm/u8-normcoll'.
42415         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
42416         declarations.
42417         * lib/uninorm/u8-normcoll.c: New file.
42418         * lib/uninorm/u-normcoll.h: New file.
42419         * modules/uninorm/u8-normcoll: New file.
42420
42421         New module 'uninorm/u32-normxfrm'.
42422         * lib/uninorm/u32-normxfrm.c: New file.
42423         * modules/uninorm/u32-normxfrm: New file.
42424
42425         New module 'uninorm/u16-normxfrm'.
42426         * lib/uninorm/u16-normxfrm.c: New file.
42427         * modules/uninorm/u16-normxfrm: New file.
42428
42429         New module 'uninorm/u8-normxfrm'.
42430         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
42431         declarations.
42432         * lib/uninorm/u8-normxfrm.c: New file.
42433         * lib/uninorm/u-normxfrm.h: New file.
42434         * modules/uninorm/u8-normxfrm: New file.
42435
42436 2009-03-07  Bruno Haible  <bruno@clisp.org>
42437
42438         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
42439         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
42440         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
42441
42442 2009-03-07  Bruno Haible  <bruno@clisp.org>
42443
42444         New module 'memxfrm'.
42445         * lib/memxfrm.h: New file.
42446         * lib/memxfrm.c: New file.
42447         * modules/memxfrm: New file.
42448
42449 2009-03-07  Bruno Haible  <bruno@clisp.org>
42450
42451         New module 'memcmp2'.
42452         * lib/memcmp2.h: New file.
42453         * lib/memcmp2.c: New file.
42454         * modules/memcmp2: New file.
42455
42456 2009-03-07  Bruno Haible  <bruno@clisp.org>
42457
42458         Tests for module 'uninorm/decomposing-form'.
42459         * modules/uninorm/decomposing-form-tests: New file.
42460         * tests/uninorm/test-decomposing-form.c: New file.
42461
42462         New module 'uninorm/decomposing-form'.
42463         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
42464         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
42465         Add 'decomposing_variant' field.
42466         * lib/uninorm/decomposing-form.c: New file.
42467         * lib/uninorm/nfc.c (uninorm_nfc): Update.
42468         * lib/uninorm/nfd.c (uninorm_nfd): Update.
42469         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
42470         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
42471         * modules/uninorm/decomposing-form: New file.
42472         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
42473         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
42474
42475 2009-03-07  Bruno Haible  <bruno@clisp.org>
42476
42477         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
42478         strings.
42479
42480 2009-03-06  Bruno Haible  <bruno@clisp.org>
42481
42482         Tests for module 'uninorm/u32-normcmp'.
42483         * tests/uninorm/test-u32-normcmp.c: New file.
42484         * modules/uninorm/u32-normcmp-tests: New file.
42485
42486         Tests for module 'uninorm/u16-normcmp'.
42487         * tests/uninorm/test-u16-normcmp.c: New file.
42488         * modules/uninorm/u16-normcmp-tests: New file.
42489
42490         Tests for module 'uninorm/u8-normcmp'.
42491         * tests/uninorm/test-u8-normcmp.c: New file.
42492         * modules/uninorm/u8-normcmp-tests: New file.
42493
42494         New module 'uninorm/u32-normcmp'.
42495         * lib/uninorm/u32-normcmp.c: New file.
42496         * modules/uninorm/u32-normcmp: New file.
42497
42498         New module 'uninorm/u16-normcmp'.
42499         * lib/uninorm/u16-normcmp.c: New file.
42500         * modules/uninorm/u16-normcmp: New file.
42501
42502         New module 'uninorm/u8-normcmp'.
42503         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
42504         declarations.
42505         * lib/uninorm/u8-normcmp.c: New file.
42506         * lib/uninorm/u-normcmp.h: New file.
42507         * modules/uninorm/u8-normcmp: New file.
42508
42509 2009-03-06  Bruno Haible  <bruno@clisp.org>
42510
42511         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
42512         Reported by Eric Blake.
42513
42514 2009-03-06  Eric Blake  <ebb9@byu.net>
42515             Bruno Haible  <bruno@clisp.org>
42516
42517         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
42518         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
42519         condition.
42520         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
42521         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
42522         condition.
42523         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
42524
42525 2009-03-06  Eric Blake  <ebb9@byu.net>
42526
42527         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
42528         to avoid compiler warnings.
42529         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
42530
42531 2009-03-05  Bruno Haible  <bruno@clisp.org>
42532
42533         * tests/test-ftell.c (main): Disable test beyond end of file on
42534         FreeMiNT.
42535         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
42536
42537 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
42538
42539         * lib/filevercmp.c: Move hidden files up in ordering.
42540         * tests/test-filevercmp.c: Add tests for hidden files.
42541
42542 2009-03-04  Bruno Haible  <bruno@clisp.org>
42543
42544         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
42545         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
42546         AM_CFLAGS.
42547         Reported by Simon Josefsson.
42548
42549 2009-03-03  Bruno Haible  <bruno@clisp.org>
42550
42551         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
42552         Reported by Simon Josefsson.
42553
42554         * doc/ld-version-script.texi: Update node reference.
42555
42556 2009-03-03  Bruno Haible  <bruno@clisp.org>
42557
42558         * modules/visibility (License): Change to 'unlimited'.
42559         Suggested by Simon Josefsson.
42560
42561 2009-03-03  Jim Meyering  <meyering@redhat.com>
42562
42563         unlinkdir: cannot_unlink_dir may modify process state
42564         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
42565         it's neither thread-safe nor appropriate for use in a library.
42566
42567 2009-03-03  Eric Blake  <ebb9@byu.net>
42568
42569         test-closein: silence test under Darwin
42570         * tests/test-closein.sh: Ignore stderr from cat, since we don't
42571         care if it dies from EPIPE or EBADF.
42572
42573 2009-03-03  Bruno Haible  <bruno@clisp.org>
42574
42575         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
42576         earlier.
42577         * doc/visibility.texi: Fix @node and @section.
42578
42579 2009-03-03  Simon Josefsson  <simon@josefsson.org>
42580
42581         * doc/gnulib.texi: Link to sections for ld version script and
42582         visibility.
42583         * doc/visibility.texi: Add @node and @section.
42584         * modules/ld-version-script: New module.
42585         * m4/ld-version-script.m4: New file.
42586         * doc/ld-version-script.texi: New file.
42587
42588 2009-03-02  David Lutterkort  <lutter@redhat.com>
42589
42590         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
42591         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42592
42593 2009-03-02  Bruno Haible  <bruno@clisp.org>
42594
42595         * doc/visibility.texi: Mention libtool's -export-symbols option.
42596
42597 2009-03-02  Jim Meyering  <meyering@redhat.com>
42598
42599         announce-gen: new option: --no-print-checksums
42600         * build-aux/announce-gen (usage): Describe it.
42601         (print_checksums): Print a newline here, not in the [*] footnote.
42602         (main): Honor it.
42603
42604 2009-03-01  Bruno Haible  <bruno@clisp.org>
42605
42606         Use socklen_t in the native Windows replacements prototypes.
42607         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
42608         instead of 'int'.
42609         * lib/getsockopt.c (rpl_getsockopt): Likewise.
42610         * lib/setsockopt.c (rpl_setsockopt): Likewise.
42611         * modules/getsockopt (Depends-on): Add socklen.
42612         * modules/setsockopt (Depends-on): Add socklen.
42613
42614 2009-03-01  Bruno Haible  <bruno@clisp.org>
42615
42616         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
42617         least 4.2.
42618
42619 2009-03-01  Eric Blake  <ebb9@byu.net>
42620             Bruno Haible  <bruno@clisp.org>
42621
42622         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
42623         error messages.
42624         * lib/wait-process.c (wait_subprocess): Omit error message about
42625         deadly signal sent to the child of termsigp != NULL.
42626
42627 2009-03-01  Eric Blake  <ebb9@byu.net>
42628
42629         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
42630
42631 2009-03-01  Bruno Haible  <bruno@clisp.org>
42632
42633         Avoid a gcc warning.
42634         * tests/test-sched.c (b): Make global.
42635         Reported by Eric Blake.
42636
42637 2009-01-19  Martin Lambers  <marlam@marlam.de>
42638
42639         Provide POSIX semantics for socket timeout options on W32.
42640         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
42641         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
42642         * modules/setsockopt: Depend on sys_time module for struct timeval.
42643         * modules/getsockopt: Depend on sys_time module for struct timeval.
42644
42645 2009-03-01  Simon Josefsson  <simon@josefsson.org>
42646
42647         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
42648         __USE_GNU, for consistency with netdb.in.h.
42649         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42650
42651 2009-03-01  Bruno Haible  <bruno@clisp.org>
42652
42653         More support for FreeMiNT.
42654         * lib/fseeko.c (rpl_fseeko): Complete last commit.
42655         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42656
42657 2009-03-01  Bruno Haible  <bruno@clisp.org>
42658
42659         More support for FreeMiNT.
42660         * lib/fpurge.c (fpurge): Correct last commit.
42661         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42662
42663 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42664
42665         Fix unportable awk script in vc-list-files.
42666         * build-aux/vc-list-files: In the replacement awk script, use
42667         substr with a second argument of 1, not zero.
42668         Report by Simon Josefsson.
42669
42670 2009-02-28  Bruno Haible  <bruno@clisp.org>
42671
42672         More support for FreeMiNT.
42673         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
42674         to FreeMiNT today.
42675         * lib/fwriting.c (fwriting): Likewise.
42676         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
42677
42678 2009-02-28  Bruno Haible  <bruno@clisp.org>
42679
42680         * tests/test-freadseek.c (main): Disable test beyond end of file on
42681         FreeMiNT.
42682         * tests/test-ftello.c (main): Likewise.
42683         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
42684
42685 2009-02-28  Bruno Haible  <bruno@clisp.org>
42686
42687         Add tentative support for FreeMiNT.
42688         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
42689         * lib/fpurge.c (fpurge): Likewise.
42690         * lib/freadable.c (freadable): Likewise.
42691         * lib/freading.c (freading): Likewise.
42692         * lib/freadptr.c (freadptr): Likewise.
42693         * lib/freadseek.c (freadptrinc): Likewise.
42694         * lib/fseeko.c (rpl_fseeko): Likewise.
42695         * lib/fseterr.c (fseterr): Likewise.
42696         * lib/fwritable.c (fwritable): Likewise.
42697         * lib/fwriting.c (fwriting): Likewise.
42698         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
42699         Hourihane.
42700         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
42701
42702 2009-02-28  Bruno Haible  <bruno@clisp.org>
42703
42704         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
42705         SIGCHLD.
42706         Reported by Jim Meyering.
42707
42708 2009-02-28  Bruno Haible  <bruno@clisp.org>
42709
42710         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
42711         Mention the results of these tests on various platforms.
42712         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
42713         order.
42714         * doc/posix-functions/printf.texi: Likewise.
42715         * doc/posix-functions/snprintf.texi: Likewise.
42716         * doc/posix-functions/sprintf.texi: Likewise.
42717         * doc/posix-functions/vfprintf.texi: Likewise.
42718         * doc/posix-functions/vprintf.texi: Likewise.
42719         * doc/posix-functions/vsnprintf.texi: Likewise.
42720         * doc/posix-functions/vsprintf.texi: Likewise.
42721         * doc/glibc-functions/obstack_printf.texi: Likewise.
42722         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
42723
42724 2009-02-28  Bruno Haible  <bruno@clisp.org>
42725
42726         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
42727         Reported by Loïc Minier <lool@dooz.org>.
42728
42729 2009-02-27  Bruno Haible  <bruno@clisp.org>
42730
42731         * gnulib-tool (func_import): Make the sed expression used to create the
42732         sed script for updating the .gitignore file POSIX compliant.
42733         Reported by Eric Blake.
42734
42735 2009-02-27  Bruno Haible  <bruno@clisp.org>
42736
42737         * gnulib-tool (sed): Don't alias as "sed --posix".
42738         Reported by Eric Blake.
42739
42740 2009-02-27  Bruno Haible  <bruno@clisp.org>
42741
42742         Avoid test link errors.
42743         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
42744         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
42745         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
42746         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
42747         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
42748
42749 2009-02-27  Bruno Haible  <bruno@clisp.org>
42750
42751         Avoid spurious "(cached)" in configure output.
42752         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
42753         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
42754         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
42755         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
42756         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
42757         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
42758         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
42759         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
42760         Reported by Eric Blake.
42761
42762 2009-02-27  Eric Blake  <ebb9@byu.net>
42763
42764         printf: fix regression in previous patch
42765         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
42766
42767 2009-02-27  Bruno Haible  <bruno@clisp.org>
42768
42769         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
42770         value.
42771         * lib/stdint.in.h: Likewise.
42772         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
42773
42774 2009-02-27  Eric Blake  <ebb9@byu.net>
42775
42776         doc: mention more functions added in cygwin 1.7.0
42777         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
42778         addition.
42779         * doc/posix-functions/open_wmemstream.texi: Likewise.
42780         * doc/posix-functions/wcsnlen.texi: Likewise.
42781         * doc/posix-functions/wcsnrtombs.texi: Likewise.
42782         * doc/posix-functions/wcstod.texi: Likewise.
42783         * doc/posix-functions/wcstof.texi: Likewise.
42784         * doc/posix-functions/wcstoimax.texi: Likewise.
42785         * doc/posix-functions/wcstok.texi: Likewise.
42786         * doc/posix-functions/wcstoumax.texi: Likewise.
42787
42788         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
42789         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
42790         * doc/posix-functions/fprintf.texi: Update.
42791         * doc/posix-functions/printf.texi: Update.
42792         * doc/posix-functions/snprintf.texi: Update.
42793         * doc/posix-functions/sprintf.texi: Update.
42794         * doc/posix-functions/vfprintf.texi: Update.
42795         * doc/posix-functions/vprintf.texi: Update.
42796         * doc/posix-functions/vsnprintf.texi: Update.
42797         * doc/posix-functions/vsprintf.texi: Update.
42798         * doc/glibc-functions/obstack_printf.texi: Update.
42799         * doc/glibc-functions/obstack_vprintf.texi: Update.
42800
42801 2009-02-26  Eric Blake  <ebb9@byu.net>
42802
42803         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
42804         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
42805         compilation bug by using runtime conversion.
42806         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
42807         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
42808         * modules/ceill-tests (Files): Use nan.h.
42809         * modules/floorl-tests (Files): Likewise.
42810         * modules/frexpl-tests (Files): Likewise.
42811         * modules/isnanl-tests (Files): Likewise.
42812         * modules/ldexpl-tests (Files): Likewise.
42813         * modules/roundl-tests (Files): Likewise.
42814         * modules/truncl-tests (Files): Likewise.
42815         * tests/test-ceill.c (main): Use a working NaN.
42816         * tests/test-floorl.c (main): Likewise.
42817         * tests/test-frexpl.c (main): Likewise.
42818         * tests/test-isnan.c (test_long_double): Likewise.
42819         * tests/test-isnanl.h (main): Likewise.
42820         * tests/test-ldexpl.h (main): Likewise.
42821         * tests/test-roundl.h (main): Likewise.
42822         * tests/test-truncl.h (main): Likewise.
42823         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
42824
42825 2009-02-26  Eric Blake  <ebb9@byu.net>
42826             Bruno Haible  <bruno@clisp.org>
42827
42828         Work around a *printf bug with %ls on Solaris.
42829         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
42830         precision is specified, sprintf stops converting the wide string
42831         argument when the number of bytes that have been produced by this
42832         conversion equals or exceeds the precision.
42833         * doc/posix-functions/fprintf.texi: Update.
42834         * doc/posix-functions/printf.texi: Update.
42835         * doc/posix-functions/snprintf.texi: Update.
42836         * doc/posix-functions/sprintf.texi: Update.
42837         * doc/posix-functions/vfprintf.texi: Update.
42838         * doc/posix-functions/vprintf.texi: Update.
42839         * doc/posix-functions/vsnprintf.texi: Update.
42840         * doc/posix-functions/vsprintf.texi: Update.
42841         * doc/glibc-functions/obstack_printf.texi: Update.
42842         * doc/glibc-functions/obstack_vprintf.texi: Update.
42843
42844 2009-02-26  Eric Blake  <ebb9@byu.net>
42845
42846         stdlib: favor compiler check of random.h
42847         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
42848         to avoid an ObjC random.h installed by Swarm.
42849
42850 2009-02-26  Bruno Haible  <bruno@clisp.org>
42851
42852         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
42853         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
42854         Reported by Gary V. Vaughan <gary@gnu.org>.
42855
42856 2009-02-26  Bruno Haible  <bruno@clisp.org>
42857
42858         Fix *printf behaviour regarding the %ls directive.
42859         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
42860         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
42861         NEED_PRINTF_DIRECTIVE_LS.
42862         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
42863         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
42864         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
42865         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
42866         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
42867         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
42868         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
42869         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
42870         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
42871         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
42872         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
42873         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
42874         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
42875         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
42876         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
42877         * doc/posix-functions/fprintf.texi: Update.
42878         * doc/posix-functions/printf.texi: Update.
42879         * doc/posix-functions/snprintf.texi: Update.
42880         * doc/posix-functions/sprintf.texi: Update.
42881         * doc/posix-functions/vfprintf.texi: Update.
42882         * doc/posix-functions/vprintf.texi: Update.
42883         * doc/posix-functions/vsnprintf.texi: Update.
42884         * doc/posix-functions/vsprintf.texi: Update.
42885         * doc/glibc-functions/obstack_printf.texi: Update.
42886         * doc/glibc-functions/obstack_vprintf.texi: Update.
42887         Reported by Eric Blake.
42888
42889 2009-02-25  Bruno Haible  <bruno@clisp.org>
42890
42891         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
42892         with known value.
42893         Reported by Gary V. Vaughan <gary@gnu.org>.
42894
42895 2009-02-25  Bruno Haible  <bruno@clisp.org>
42896
42897         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
42898         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
42899         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
42900         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
42901         Reported by Gary V. Vaughan <gary@gnu.org>.
42902
42903 2009-02-25  Bruno Haible  <bruno@clisp.org>
42904
42905         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
42906         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
42907         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
42908         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
42909         Reported by Gary V. Vaughan <gary@gnu.org>.
42910
42911 2009-02-25  Eric Blake  <ebb9@byu.net>
42912
42913         tests: skip fseek/ftell tests if ungetc is broken
42914         * m4/ungetc.m4: New file.
42915         * modules/fseek-tests: Split test, so ungetc dependency is
42916         separate from rest of test.
42917         * modules/fseeko-tests: Likewise.
42918         * modules/ftell-tests: Likewise.
42919         * modules/ftello-tests: Likewise.
42920         * tests/test-fseek.c (main): Isolate ungetc dependency.
42921         * tests/test-fseeko.c (main): Likewise.
42922         * tests/test-ftell.c (main): Likewise.
42923         * tests/test-ftello.c (main): Likewise.
42924         * tests/test-fseek2.sh: New file.
42925         * tests/test-fseeko2.sh: Likewise.
42926         * tests/test-ftell2.sh: Likewise.
42927         * tests/test-ftello2.sh: Likewise.
42928
42929 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
42930
42931         test-getaddrinfo: fix usage of skip return code 77
42932         * tests/test-gettaddrinfo.c: Return skip code 77 only
42933         for first occurance of skip (4x77 is not 77)
42934
42935 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
42936
42937         strtod: avoid C99 decl-after-statement
42938         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
42939
42940 2009-02-24  Eric Blake  <ebb9@byu.net>
42941
42942         strtod: detect HP-UX 11.31 bug
42943         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
42944         Reported by Gary V. Vaughan.
42945
42946 2009-02-23  Bruno Haible  <bruno@clisp.org>
42947
42948         Fix invalid read past end of memory block.
42949         * lib/vasnprintf.c (DCHAR_SET): Define.
42950         (local_wcslen): Define only when needed.
42951         (local_strnlen, local_wcsnlen): New functions.
42952         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
42953         directives that involve a conversion ourselves.
42954         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
42955         wcsnlen, mbrtowc, wcrtomb.
42956         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
42957         * tests/test-vasprintf-posix.c (test_function): Likewise.
42958         * tests/test-snprintf-posix.h (test_function): Likewise.
42959         * tests/test-sprintf-posix.h (test_function): Likewise.
42960         Reported by Ben Pfaff <blp@cs.stanford.edu>.
42961
42962 2009-02-22  Bruno Haible  <bruno@clisp.org>
42963
42964         Implement new clarified decomposition of Hangul syllables.
42965         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
42966         of type LTV, return only a pairwise decomposition.
42967         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
42968         Likewise.
42969         * tests/uninorm/test-decomposition.c (main): Updated expected result.
42970         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
42971         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
42972
42973 2009-02-22  Bruno Haible  <bruno@clisp.org>
42974
42975         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
42976         zero-length results and shrink excess allocated memory.
42977         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
42978         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
42979         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
42980         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
42981         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
42982         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
42983         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
42984         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
42985         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
42986         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
42987         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
42988         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
42989
42990 2009-02-21  Bruno Haible  <bruno@clisp.org>
42991
42992         * doc/gnulib.texi: Include safe-alloc.texi earlier.
42993         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
42994         spaces after a period. Put a space between a macro name and its
42995         argument list. Trivial rewordings.
42996         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
42997         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
42998         (main): Return 0 explicitly.
42999
43000 2009-02-21  Bruno Haible  <bruno@clisp.org>
43001
43002         Tests for module 'uninorm/filter'.
43003         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
43004         * modules/uninorm/filter-tests: New file.
43005
43006         New module 'uninorm/filter'.
43007         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
43008         uninorm_filter_flush, uninorm_filter_free): New declarations.
43009         * lib/uninorm/uninorm-filter.c: New file.
43010         * modules/uninorm/filter: New file.
43011
43012 2009-02-21  Bruno Haible  <bruno@clisp.org>
43013
43014         Tests for module 'uninorm/nfkc'.
43015         * tests/uninorm/test-nfkc.c: New file.
43016         * tests/uninorm/test-u8-nfkc.c: New file.
43017         * tests/uninorm/test-u16-nfkc.c: New file.
43018         * tests/uninorm/test-u32-nfkc.c: New file.
43019         * tests/uninorm/test-u32-nfkc-big.sh: New file.
43020         * tests/uninorm/test-u32-nfkc-big.c: New file.
43021         * modules/uninorm/nfkc-tests: New file.
43022
43023         New module 'uninorm/nfkc'.
43024         * lib/uninorm/nfkc.c: New file.
43025         * modules/uninorm/nfkc: New file.
43026
43027         Tests for module 'uninorm/nfkd'.
43028         * tests/uninorm/test-nfkd.c: New file.
43029         * tests/uninorm/test-u8-nfkd.c: New file.
43030         * tests/uninorm/test-u16-nfkd.c: New file.
43031         * tests/uninorm/test-u32-nfkd.c: New file.
43032         * tests/uninorm/test-u32-nfkd-big.sh: New file.
43033         * tests/uninorm/test-u32-nfkd-big.c: New file.
43034         * modules/uninorm/nfkd-tests: New file.
43035
43036         New module 'uninorm/nfkd'.
43037         * lib/uninorm/nfkd.c: New file.
43038         * modules/uninorm/nfkd: New file.
43039
43040         Tests for module 'uninorm/nfc'.
43041         * tests/uninorm/test-nfc.c: New file.
43042         * tests/uninorm/test-u8-nfc.c: New file.
43043         * tests/uninorm/test-u16-nfc.c: New file.
43044         * tests/uninorm/test-u32-nfc.c: New file.
43045         * tests/uninorm/test-u32-nfc-big.sh: New file.
43046         * tests/uninorm/test-u32-nfc-big.c: New file.
43047         * modules/uninorm/nfc-tests: New file.
43048
43049         New module 'uninorm/nfc'.
43050         * lib/uninorm/nfc.c: New file.
43051         * modules/uninorm/nfc: New file.
43052
43053         Tests for module 'uninorm/nfd'.
43054         * tests/uninorm/test-nfd.c: New file.
43055         * tests/uninorm/test-u8-nfd.c: New file.
43056         * tests/uninorm/test-u16-nfd.c: New file.
43057         * tests/uninorm/test-u32-nfd.c: New file.
43058         * tests/uninorm/test-u32-nfd-big.sh: New file.
43059         * tests/uninorm/test-u32-nfd-big.c: New file.
43060         * tests/uninorm/test-u32-normalize-big.h: New file.
43061         * tests/uninorm/test-u32-normalize-big.c: New file.
43062         * tests/uninorm/NormalizationTest.txt: New file, created from
43063         Unicode 5.1.0 NormalizationTest.txt.
43064         * modules/uninorm/nfd-tests: New file.
43065
43066         New module 'uninorm/nfd'.
43067         * lib/uninorm/nfd.c: New file.
43068         * modules/uninorm/nfd: New file.
43069
43070         New module 'uninorm/u32-normalize'.
43071         * lib/uninorm/u32-normalize.c: New file.
43072         * modules/uninorm/u32-normalize: New file.
43073
43074         New module 'uninorm/u16-normalize'.
43075         * lib/uninorm/u16-normalize.c: New file.
43076         * modules/uninorm/u16-normalize: New file.
43077
43078         New module 'uninorm/u8-normalize'.
43079         * lib/uninorm/u8-normalize.c: New file.
43080         * lib/uninorm/normalize-internal.h: New file.
43081         * lib/uninorm/u-normalize-internal.h: New file.
43082         * modules/uninorm/u8-normalize: New file.
43083
43084         New module 'uninorm/decompose-internal'.
43085         * lib/uninorm/decompose-internal.c: New file.
43086         * modules/uninorm/decompose-internal: New file.
43087
43088         Tests for module 'uninorm/composition'.
43089         * tests/uninorm/test-composition.c: New file.
43090         * modules/uninorm/composition-tests: New file.
43091
43092         New module 'uninorm/composition'.
43093         * lib/uninorm/composition.c: New file.
43094         * lib/uninorm/composition-table.gperf: New file, generated by
43095         gen-uni-tables.
43096         * modules/uninorm/composition: New file.
43097
43098         Tests for module 'uninorm/compat-decomposition'.
43099         * tests/uninorm/test-compat-decomposition.c: New file.
43100         * modules/uninorm/compat-decomposition-tests: New file.
43101
43102         New module 'uninorm/compat-decomposition'.
43103         * lib/uninorm/decompose-internal.h: New file.
43104         * lib/uninorm/compat-decomposition.c: New file.
43105         * modules/uninorm/compat-decomposition: New file.
43106
43107         Tests for module 'uninorm/canonical-decomposition'.
43108         * tests/uninorm/test-canonical-decomposition.c: New file.
43109         * modules/uninorm/canonical-decomposition-tests: New file.
43110
43111         New module 'uninorm/canonical-decomposition'.
43112         * lib/uninorm/canonical-decomposition.c: New file.
43113         * modules/uninorm/canonical-decomposition: New file.
43114
43115         Tests for module 'uninorm/decomposition'.
43116         * tests/uninorm/test-decomposition.c: New file.
43117         * modules/uninorm/decomposition-tests: New file.
43118
43119         New module 'uninorm/decomposition'.
43120         * lib/uninorm/decomposition.c: New file.
43121         * modules/uninorm/decomposition: New file.
43122
43123         New module 'uninorm/decomposition-table'.
43124         * lib/uninorm/decomposition-table.h: New file.
43125         * lib/uninorm/decomposition-table.c: New file.
43126         * lib/uninorm/decomposition-table1.h: New file, generated by
43127         gen-uni-tables.
43128         * lib/uninorm/decomposition-table2.h: New file, generated by
43129         gen-uni-tables.
43130         * modules/uninorm/decomposition-table: New file.
43131
43132         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
43133         (UC_DECOMP_*): New enumeration items.
43134         (get_decomposition): New function.
43135         (struct decomp_table): New type.
43136         (output_decomposition, output_decomposition_tables): New functions.
43137         (unicode_composition_exclusions): New variable.
43138         (fill_composition_exclusions, debug_output_composition_tables): New
43139         functions.
43140         (main): Accept one more argument. Invoke fill_composition_exclusions.
43141         Output decomposition and composition tables.
43142
43143         New module 'uninorm/base'.
43144         * lib/uninorm.h: New file.
43145         * lib/unictype.h: Update comment.
43146         * modules/uninorm/base: New file.
43147
43148 2009-02-21  David Lutterkort  <lutter@redhat.com>
43149
43150         Tests for module 'safe-alloc'.
43151         * tests/test-safe-alloc.c: New file.
43152         * modules/safe-alloc-tests: New file.
43153
43154         New module 'safe-alloc'.
43155         * lib/safe-alloc.h: New file.
43156         * lib/safe-alloc.c: New file.
43157         * m4/safe-alloc.m4: New file.
43158         * modules/safe-alloc: New file.
43159         * doc/safe-alloc.texi: New file.
43160         * doc/gnulib.texi: Include it.
43161         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
43162         safe-alloc.
43163
43164 2009-02-18  Bruno Haible  <bruno@clisp.org>
43165
43166         Fix link error on non-glibc systems.
43167         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
43168         variable.
43169         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43170
43171 2009-02-18  Jim Meyering  <meyering@redhat.com>
43172
43173         fts: avoid used-uninitialized error due to recent change
43174         * lib/fts.c (fts_read): Guard uses of the new member,
43175         parent->fts_n_dirs_remaining, since it's not relevant for
43176         the parent of a directory specified on the command-line.
43177
43178 2009-02-17  James Youngman  <jay@gnu.org>
43179             Bruno Haible  <bruno@clisp.org>
43180
43181         * m4/include_next.m4: Reformulate comment.
43182
43183 2009-02-16  Jim Meyering  <meyering@redhat.com>
43184
43185         fts: add #if guards so that the fts_lgpl module still builds
43186         * lib/fts.c: Guard just-added hash-table-using parts with
43187         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
43188         Reported by Simon Josefsson.
43189
43190 2009-02-15  Bruno Haible  <bruno@clisp.org>
43191
43192         * modules/array-mergesort-tests: New file.
43193         * tests/test-array-mergesort.c: New file.
43194
43195         New module 'array-mergesort'.
43196         * modules/array-mergesort: New file.
43197         * lib/array-mergesort.h: New file.
43198
43199 2009-02-15  Bruno Haible  <bruno@clisp.org>
43200
43201         Fix 2009-02-07 commit.
43202         * lib/gen-uni-tables.c (output_predicate, output_category,
43203         output_combclass, output_bidi_category, output_decimal_digit,
43204         output_digit, output_numeric, output_mirror, output_scripts,
43205         output_ident_category, output_simple_mapping): Fix format directives.
43206         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
43207
43208 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
43209
43210         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
43211         fixes are available from IBM.
43212
43213 2009-02-13  Jim Meyering  <meyering@redhat.com>
43214
43215         fts: arrange not to stat non-directories in more cases
43216         This makes GNU find (when it doesn't need to stat each file)
43217         *much* more efficient at traversing reiserfs file systems.
43218         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
43219         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
43220         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
43221         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
43222         (leaf_optimization_applies): New function.
43223         (LCO_hash, LCO_compare): New helper functions.
43224         (link_count_optimize_ok): New function.
43225         (fts_stat): Initialize new member (if dir).
43226         (fts_read): Decrement parent's fts_n_dirs_remaining count if
43227         we've just stat'ed a directory.  Skip the stat call when possible.
43228         ---
43229         Note this AFS-related exchange:
43230         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
43231         and note find's pioctl call in find/fstype.c.
43232         But that is necessary only if you want to enable the
43233         optimization for AFS, and for now, I don't.
43234
43235         fts: move a function definition "up" (no semantic change)
43236         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
43237         "up" to precede upcoming use of a related function.
43238
43239 2009-02-11  Jim Meyering  <meyering@redhat.com>
43240
43241         fts: correct internal computation of nlinks (optimization-related)
43242         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
43243         whether the current entry is a directory, so don't test it.
43244
43245 2009-02-10  Bruno Haible  <bruno@clisp.org>
43246
43247         Tests for module 'uniwbrk/ulc-wordbreaks'.
43248         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
43249         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
43250         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
43251
43252         Tests for module 'uniwbrk/u32-wordbreaks'.
43253         * modules/uniwbrk/u32-wordbreaks-tests: New file.
43254         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
43255
43256         Tests for module 'uniwbrk/u16-wordbreaks'.
43257         * modules/uniwbrk/u16-wordbreaks-tests: New file.
43258         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
43259
43260         Tests for module 'uniwbrk/u8-wordbreaks'.
43261         * modules/uniwbrk/u8-wordbreaks-tests: New file.
43262         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
43263
43264 2009-02-10  Bruno Haible  <bruno@clisp.org>
43265
43266         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
43267         property.
43268         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
43269         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
43270         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
43271
43272 2009-02-10  Simon Josefsson  <simon@josefsson.org>
43273
43274         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
43275         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
43276
43277 2009-02-10  Bruno Haible  <bruno@clisp.org>
43278
43279         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
43280         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
43281         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
43282         * lib/unilbrk/u8-possible-linebreaks.c: Update.
43283         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
43284         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
43285
43286 2009-02-09  Simon Josefsson  <simon@josefsson.org>
43287
43288         * lib/sockets.h (gl_fd_to_handle): New function.
43289
43290         * tests/test-sockets.c: Call gl_fd_to_handle.
43291
43292 2009-02-09  Bruno Haible  <bruno@clisp.org>
43293
43294         * doc/havelib.texi: Document the conventions on bi-arch systems.
43295
43296 2009-02-08  Bruno Haible  <bruno@clisp.org>
43297
43298         Document the AC_LIB_LINKFLAGS macro.
43299         * doc/havelib.texi: New file, mostly written on 2005-05-24.
43300         * doc/gnulib.texi: Include it.
43301
43302 2009-02-08  Bruno Haible  <bruno@clisp.org>
43303
43304         Fix wrong order of sections, compared to TOC.
43305         * doc/gnulib.texi: Include relocatable-maint.texi after the
43306         "Regular expressions" node, not before.
43307
43308 2009-02-08  Bruno Haible  <bruno@clisp.org>
43309
43310         Tests for module 'unicase/totitle'.
43311         * modules/unicase/totitle-tests: New file.
43312
43313         Tests for module 'unicase/tolower'.
43314         * modules/unicase/tolower-tests: New file.
43315
43316         Tests for module 'unicase/toupper'.
43317         * modules/unicase/toupper-tests: New file.
43318         * tests/unicase/test-mapping-part1.h: New file.
43319         * tests/unicase/test-mapping-part2.h: New file.
43320
43321         New module 'unicase/totitle'.
43322         * modules/unicase/totitle: New file.
43323         * lib/unicase/totitle.c: New file.
43324
43325         New module 'unicase/tolower'.
43326         * modules/unicase/tolower: New file.
43327         * lib/unicase/tolower.c: New file.
43328
43329         New module 'unicase/toupper'.
43330         * modules/unicase/toupper: New file.
43331         * lib/unicase/toupper.c: New file.
43332         * lib/unicase/simple-mapping.h: New file.
43333
43334         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
43335         (mapping_table): New structure.
43336         (output_simple_mapping): New function.
43337         (main): Invoke output_simple_mapping_test and output_simple_mapping.
43338         * modules/gen-uni-tables (Description): Update.
43339         * lib/unicase/toupper.h: New file, automatically generated by
43340         gen-uni-tables.
43341         * lib/unicase/tolower.h: New file, automatically generated by
43342         gen-uni-tables.
43343         * lib/unicase/totitle.h: New file, automatically generated by
43344         gen-uni-tables.
43345         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
43346         gen-uni-tables.
43347         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
43348         gen-uni-tables.
43349         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
43350         gen-uni-tables.
43351
43352         New module 'unicase/base'.
43353         * modules/unicase/base: New file.
43354         * lib/unicase.h: New file.
43355
43356 2009-02-08  Bruno Haible  <bruno@clisp.org>
43357
43358         New module 'uniwbrk/ulc-wordbreaks'.
43359         * modules/uniwbrk/ulc-wordbreaks: New file.
43360         * lib/uniwbrk/ulc-wordbreaks.c: New file.
43361
43362         New module 'uniwbrk/u32-wordbreaks'.
43363         * modules/uniwbrk/u32-wordbreaks: New file.
43364         * lib/uniwbrk/u32-wordbreaks.c: New file.
43365
43366         New module 'uniwbrk/u16-wordbreaks'.
43367         * modules/uniwbrk/u16-wordbreaks: New file.
43368         * lib/uniwbrk/u16-wordbreaks.c: New file.
43369
43370         New module 'uniwbrk/u8-wordbreaks'.
43371         * modules/uniwbrk/u8-wordbreaks: New file.
43372         * lib/uniwbrk/u8-wordbreaks.c: New file.
43373         * lib/uniwbrk/u-wordbreaks.h: New file.
43374
43375         New module 'uniwbrk/table'.
43376         * modules/uniwbrk/table: New file.
43377         * lib/uniwbrk/wbrktable.h: New file.
43378         * lib/uniwbrk/wbrktable.c: New file.
43379
43380         New module 'uniwbrk/wordbreak-property'.
43381         * modules/uniwbrk/wordbreak-property: New file.
43382         * lib/uniwbrk/wordbreak-property.c: New file.
43383
43384         * lib/gen-uni-tables.c (WBP_*): New enum items.
43385         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
43386         (unicode_org_wbp): New variable.
43387         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
43388         New functions.
43389         (wbp_table): New structure.
43390         (output_wbp, output_wbrk_tables): New functions.
43391         (main): Accept additional argument. Invoke fill_org_wbp,
43392         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
43393         output_wbrk_tables.
43394         * modules/gen-uni-tables (Description): Update.
43395         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
43396         gen-uni-tables.
43397
43398         New module 'uniwbrk/base'.
43399         * modules/uniwbrk/base: New file.
43400         * lib/uniwbrk.h: New file.
43401
43402 2009-02-08  Bruno Haible  <bruno@clisp.org>
43403
43404         Update to Unicode 5.1.0.
43405         * lib/gen-uni-tables.c (is_property_alphabetic): Include
43406         U+2185..U+2188.
43407         (is_property_default_ignorable_code_point): Don't include characters
43408         of category Cc or Cs and not-a-characters.
43409         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
43410         U+0D79, U+109E, U+109F, U+A60C.
43411         * lib/unictype/bidi_of.h: Regenerated.
43412         * lib/unictype/blocks.h: Regenerated.
43413         * lib/unictype/categ_C.h: Regenerated.
43414         * lib/unictype/categ_Cf.h: Regenerated.
43415         * lib/unictype/categ_Cn.h: Regenerated.
43416         * lib/unictype/categ_L.h: Regenerated.
43417         * lib/unictype/categ_Ll.h: Regenerated.
43418         * lib/unictype/categ_Lm.h: Regenerated.
43419         * lib/unictype/categ_Lo.h: Regenerated.
43420         * lib/unictype/categ_Lu.h: Regenerated.
43421         * lib/unictype/categ_M.h: Regenerated.
43422         * lib/unictype/categ_Mc.h: Regenerated.
43423         * lib/unictype/categ_Me.h: Regenerated.
43424         * lib/unictype/categ_Mn.h: Regenerated.
43425         * lib/unictype/categ_N.h: Regenerated.
43426         * lib/unictype/categ_Nd.h: Regenerated.
43427         * lib/unictype/categ_Nl.h: Regenerated.
43428         * lib/unictype/categ_No.h: Regenerated.
43429         * lib/unictype/categ_P.h: Regenerated.
43430         * lib/unictype/categ_Pd.h: Regenerated.
43431         * lib/unictype/categ_Pe.h: Regenerated.
43432         * lib/unictype/categ_Pf.h: Regenerated.
43433         * lib/unictype/categ_Pi.h: Regenerated.
43434         * lib/unictype/categ_Po.h: Regenerated.
43435         * lib/unictype/categ_Ps.h: Regenerated.
43436         * lib/unictype/categ_S.h: Regenerated.
43437         * lib/unictype/categ_Sk.h: Regenerated.
43438         * lib/unictype/categ_Sm.h: Regenerated.
43439         * lib/unictype/categ_So.h: Regenerated.
43440         * lib/unictype/categ_of.h: Regenerated.
43441         * lib/unictype/combining.h: Regenerated.
43442         * lib/unictype/ctype_alnum.h: Regenerated.
43443         * lib/unictype/ctype_alpha.h: Regenerated.
43444         * lib/unictype/ctype_graph.h: Regenerated.
43445         * lib/unictype/ctype_lower.h: Regenerated.
43446         * lib/unictype/ctype_print.h: Regenerated.
43447         * lib/unictype/ctype_punct.h: Regenerated.
43448         * lib/unictype/ctype_upper.h: Regenerated.
43449         * lib/unictype/decdigit.h: Regenerated.
43450         * lib/unictype/digit.h: Regenerated.
43451         * lib/unictype/mirror.h: Regenerated.
43452         * lib/unictype/numeric.h: Regenerated.
43453         * lib/unictype/pr_alphabetic.h: Regenerated.
43454         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
43455         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
43456         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
43457         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
43458         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
43459         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
43460         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
43461         * lib/unictype/pr_combining.h: Regenerated.
43462         * lib/unictype/pr_dash.h: Regenerated.
43463         * lib/unictype/pr_decimal_digit.h: Regenerated.
43464         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
43465         * lib/unictype/pr_deprecated.h: Regenerated.
43466         * lib/unictype/pr_diacritic.h: Regenerated.
43467         * lib/unictype/pr_extender.h: Regenerated.
43468         * lib/unictype/pr_format_control.h: Regenerated.
43469         * lib/unictype/pr_grapheme_base.h: Regenerated.
43470         * lib/unictype/pr_grapheme_extend.h: Regenerated.
43471         * lib/unictype/pr_grapheme_link.h: Regenerated.
43472         * lib/unictype/pr_id_continue.h: Regenerated.
43473         * lib/unictype/pr_id_start.h: Regenerated.
43474         * lib/unictype/pr_ideographic.h: Regenerated.
43475         * lib/unictype/pr_ignorable_control.h: Regenerated.
43476         * lib/unictype/pr_lowercase.h: Regenerated.
43477         * lib/unictype/pr_math.h: Regenerated.
43478         * lib/unictype/pr_numeric.h: Regenerated.
43479         * lib/unictype/pr_other_alphabetic.h: Regenerated.
43480         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
43481         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
43482         * lib/unictype/pr_other_id_continue.h: Regenerated.
43483         * lib/unictype/pr_other_lowercase.h: Regenerated.
43484         * lib/unictype/pr_other_math.h: Regenerated.
43485         * lib/unictype/pr_punctuation.h: Regenerated.
43486         * lib/unictype/pr_sentence_terminal.h: Regenerated.
43487         * lib/unictype/pr_soft_dotted.h: Regenerated.
43488         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
43489         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
43490         * lib/unictype/pr_unified_ideograph.h: Regenerated.
43491         * lib/unictype/pr_uppercase.h: Regenerated.
43492         * lib/unictype/pr_xid_continue.h: Regenerated.
43493         * lib/unictype/pr_xid_start.h: Regenerated.
43494         * lib/unictype/pr_zero_width.h: Regenerated.
43495         * lib/unictype/scripts.h: Regenerated.
43496         * lib/unictype/scripts_byname.gperf: Regenerated.
43497         * lib/unictype/sy_java_ident.h: Regenerated.
43498         * lib/unilbrk/lbrkprop1.h: Regenerated.
43499         * lib/unilbrk/lbrkprop2.h: Regenerated.
43500         * tests/unictype/test-categ_C.c: Regenerated.
43501         * tests/unictype/test-categ_Cf.c: Regenerated.
43502         * tests/unictype/test-categ_Cn.c: Regenerated.
43503         * tests/unictype/test-categ_L.c: Regenerated.
43504         * tests/unictype/test-categ_Ll.c: Regenerated.
43505         * tests/unictype/test-categ_Lm.c: Regenerated.
43506         * tests/unictype/test-categ_Lo.c: Regenerated.
43507         * tests/unictype/test-categ_Lu.c: Regenerated.
43508         * tests/unictype/test-categ_M.c: Regenerated.
43509         * tests/unictype/test-categ_Mc.c: Regenerated.
43510         * tests/unictype/test-categ_Me.c: Regenerated.
43511         * tests/unictype/test-categ_Mn.c: Regenerated.
43512         * tests/unictype/test-categ_N.c: Regenerated.
43513         * tests/unictype/test-categ_Nd.c: Regenerated.
43514         * tests/unictype/test-categ_Nl.c: Regenerated.
43515         * tests/unictype/test-categ_No.c: Regenerated.
43516         * tests/unictype/test-categ_P.c: Regenerated.
43517         * tests/unictype/test-categ_Pd.c: Regenerated.
43518         * tests/unictype/test-categ_Pe.c: Regenerated.
43519         * tests/unictype/test-categ_Pf.c: Regenerated.
43520         * tests/unictype/test-categ_Pi.c: Regenerated.
43521         * tests/unictype/test-categ_Po.c: Regenerated.
43522         * tests/unictype/test-categ_Ps.c: Regenerated.
43523         * tests/unictype/test-categ_S.c: Regenerated.
43524         * tests/unictype/test-categ_Sk.c: Regenerated.
43525         * tests/unictype/test-categ_Sm.c: Regenerated.
43526         * tests/unictype/test-categ_So.c: Regenerated.
43527         * tests/unictype/test-ctype_alnum.c: Regenerated.
43528         * tests/unictype/test-ctype_alpha.c: Regenerated.
43529         * tests/unictype/test-ctype_graph.c: Regenerated.
43530         * tests/unictype/test-ctype_lower.c: Regenerated.
43531         * tests/unictype/test-ctype_print.c: Regenerated.
43532         * tests/unictype/test-ctype_punct.c: Regenerated.
43533         * tests/unictype/test-ctype_upper.c: Regenerated.
43534         * tests/unictype/test-decdigit.h: Regenerated.
43535         * tests/unictype/test-digit.h: Regenerated.
43536         * tests/unictype/test-numeric.h: Regenerated.
43537         * tests/unictype/test-pr_alphabetic.c: Regenerated.
43538         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
43539         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
43540         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
43541         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
43542         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
43543         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
43544         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
43545         * tests/unictype/test-pr_combining.c: Regenerated.
43546         * tests/unictype/test-pr_dash.c: Regenerated.
43547         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
43548         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
43549         * tests/unictype/test-pr_deprecated.c: Regenerated.
43550         * tests/unictype/test-pr_diacritic.c: Regenerated.
43551         * tests/unictype/test-pr_extender.c: Regenerated.
43552         * tests/unictype/test-pr_format_control.c: Regenerated.
43553         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
43554         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
43555         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
43556         * tests/unictype/test-pr_id_continue.c: Regenerated.
43557         * tests/unictype/test-pr_id_start.c: Regenerated.
43558         * tests/unictype/test-pr_ideographic.c: Regenerated.
43559         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
43560         * tests/unictype/test-pr_lowercase.c: Regenerated.
43561         * tests/unictype/test-pr_math.c: Regenerated.
43562         * tests/unictype/test-pr_numeric.c: Regenerated.
43563         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
43564         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
43565         Regenerated.
43566         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
43567         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
43568         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
43569         * tests/unictype/test-pr_other_math.c: Regenerated.
43570         * tests/unictype/test-pr_punctuation.c: Regenerated.
43571         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
43572         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
43573         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
43574         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
43575         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
43576         * tests/unictype/test-pr_uppercase.c: Regenerated.
43577         * tests/unictype/test-pr_xid_continue.c: Regenerated.
43578         * tests/unictype/test-pr_xid_start.c: Regenerated.
43579         * tests/unictype/test-pr_zero_width.c: Regenerated.
43580
43581         Update to Unicode 5.1.0.
43582         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
43583         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
43584         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
43585         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
43586         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
43587         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
43588         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
43589         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
43590         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
43591         (nonspacing_table_ind): Update.
43592         * tests/uniwidth/test-uc_width2.sh: Update expected result.
43593
43594         Update to Unicode 5.1.0.
43595         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
43596         code transform.
43597         * lib/uniname/uniname.c (unicode_character_name,
43598         unicode_name_character): Add the range 0x1Fxxx to the code transform.
43599         * lib/uniname/uninames.h: Regenerated.
43600         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
43601
43602 2009-02-07  Bruno Haible  <bruno@clisp.org>
43603
43604         Merge gen-ctype and gen-lbrk into a single program.
43605         * lib/gen-uni-tables.c: New file, incorporating
43606         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
43607         Add directory prefixes to the names of the generated files.
43608         * lib/unictype/gen-ctype.c: Remove file.
43609         * lib/unilbrk/gen-lbrk.c: Remove file.
43610         * modules/gen-uni-tables: New file.
43611         * modules/unictype/gen-ctype: Remove file.
43612         * modules/unilbrk/gen-lbrk: Remove file.
43613
43614 2009-02-07  Bruno Haible  <bruno@clisp.org>
43615
43616         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
43617
43618         New module 'unistr/u32-strcoll'.
43619         * modules/unistr/u32-strcoll: New file.
43620         * lib/unistr/u32-strcoll.c: New file.
43621
43622         New module 'unistr/u16-strcoll'.
43623         * modules/unistr/u16-strcoll: New file.
43624         * lib/unistr/u16-strcoll.c: New file.
43625
43626         New module 'unistr/u8-strcoll'.
43627         * modules/unistr/u8-strcoll: New file.
43628         * lib/unistr/u8-strcoll.c: New file.
43629         * lib/unistr/u-strcoll.h: New file.
43630
43631 2009-02-07  Bruno Haible  <bruno@clisp.org>
43632
43633         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
43634         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
43635         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
43636         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
43637         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
43638         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
43639
43640 2009-02-07  Bruno Haible  <bruno@clisp.org>
43641
43642         Make 64-bit clean.
43643         * lib/unictype/gen-ctype.c (output_predicate, output_category,
43644         output_combclass, output_bidi_category, output_decimal_digit,
43645         output_digit, output_numeric, output_mirror, output_scripts,
43646         output_ident_category): Use proper width specifier in format strings.
43647
43648 2009-02-07  Bruno Haible  <bruno@clisp.org>
43649
43650         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
43651         failure behaviour.
43652
43653 2009-02-07  Jim Meyering  <meyering@redhat.com>
43654
43655         regex: avoid compilation failure with upcoming gcc-4.4
43656         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
43657         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
43658         "... error: integer overflow in preprocessor expression".
43659
43660 2009-02-05  Ben Pfaff  <blp@gnu.org>
43661
43662         Fix link errors on Windows when close module is used.
43663         * modules/close: Add $(LIB_CLOSE) to Link section.
43664         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
43665         $(LIB_CLOSE) on Windows.
43666
43667 2009-02-05  Jim Meyering  <meyering@redhat.com>
43668
43669         still avoid unused-parameter warnings, but do it cleanly
43670         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
43671         (get_fs_usage): Cast to void instead.
43672         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
43673         (dev_from_mount_options, read_file_system_list): Cast to void.
43674         Prompted by Bruno Haible.
43675
43676 2009-02-04  Jim Meyering  <meyering@redhat.com>
43677
43678         fsusage.c: correct copyright year
43679         * lib/fsusage.c: Reflect year in which the change is pushed into
43680
43681         avoid misc. warnings
43682         * lib/fsusage.c (UNUSED_PARAM): Define.
43683         (get_fs_usage): Mark parameter "disk" as unused.
43684         * lib/getugroups.c (getgrent): Use "void" in prototype.
43685         * lib/mountlist.c: Mark unused parameters.
43686         (read_file_system_list): Declare a local with "const".
43687         * lib/nanosleep.c (getnow): Declare static.
43688         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
43689
43690         dirfd: set errno upon failure
43691         * lib/dirfd.c: Include <errno.h>.
43692         Set errno to ENOTSUP when returning -1.
43693         * modules/dirfd (Depends-on): Add errno.
43694         Suggested by John Kodis <kodis@comcast.net>.
43695
43696 2009-02-01  Bruno Haible  <bruno@clisp.org>
43697
43698         Don't assume sizeof (long) >= sizeof (void *).
43699         * lib/memcmp.c: Include stdint.h.
43700         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
43701         srcp2 to 'const byte *'.
43702         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
43703         types to uintptr_t.
43704         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
43705         * modules/memcmp (Depends-on): Add stdint.
43706         Reported by Ozkan Sezer <sezeroz@gmail.com>.
43707
43708 2009-01-30  Eric Blake  <ebb9@byu.net>
43709
43710         fix more require-before-expand issues
43711         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
43712         expand, AC_PROG_AWK.
43713         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
43714
43715 2009-01-28  Eric Blake  <ebb9@byu.net>
43716
43717         version-etc: use consistent URL formatting
43718         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
43719         Improve formatting.  Use fputs for string without %.
43720
43721 2009-01-28  Jim Meyering  <meyering@redhat.com>
43722
43723         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
43724         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
43725         "underquoted definition of NAME" from autoconf-2.59.
43726
43727 2009-01-28  Bruno Haible  <bruno@clisp.org>
43728
43729         * doc/gnulib.texi: Add "Obsolete modules" to index.
43730
43731 2009-01-28  Jim Meyering  <meyering@redhat.com>
43732
43733         useless-if-before-free: recognize more variants
43734         * build-aux/useless-if-before-free: Also recognize e.g.,
43735         if (NULL != p) free (p);
43736
43737 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
43738
43739         test-getaddrinfo: skip (don't fail) this test when there's no network
43740         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
43741         on the presumption that it means you lack network access.
43742
43743 2009-01-26  Jim Meyering  <meyering@redhat.com>
43744
43745         fflush: avoid warnings on modern systems
43746         * lib/fflush.c (rpl_fflush): Move declarations of locals,
43747         pos and result, into scopes where they're used.
43748
43749 2009-01-26  Eric Blake  <ebb9@byu.net>
43750
43751         Silence warning reintroduced by recent extensions patch.
43752         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
43753         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
43754         autoconf.
43755
43756         Backport improved autoconf semantics of AC_DEFUN_ONCE.
43757         * m4/00gnulib.m4: New file.
43758         * gnulib-tool (func_get_filelist): Always use it.
43759         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
43760         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
43761
43762 2009-01-25  Bruno Haible  <bruno@clisp.org>
43763
43764         Make test-quotearg work on MacOS X and AIX.
43765         * tests/test-quotearg.sh: New file.
43766         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
43767         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
43768         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
43769         include <libintl.h>.
43770         (fake_locale): Remove variable.
43771         (gettext, dgettext, dcgettext): Remove functions.
43772         (main): Instead of setting a fake locale, set a real locale. Call
43773         textdomain and bindtextdomain.
43774         * modules/quotearg-tests (Files): Add the new files.
43775         (Depends-on): Add gettext, setenv, unsetenv.
43776         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
43777         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
43778         Augment TESTS_ENVIRONMENT.
43779
43780 2009-01-25  Bruno Haible  <bruno@clisp.org>
43781
43782         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
43783         fr_FR.ISO8859-1 locale on MacOS X.
43784         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
43785         ja_JP.eucJP locale on MacOS X.
43786         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
43787         zh_CN.GB18030 locale on MacOS X.
43788
43789 2009-01-25  Bruno Haible  <bruno@clisp.org>
43790
43791         Avoid link errors on MacOS X 10.3.
43792         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
43793         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
43794
43795 2009-01-25  Bruno Haible  <bruno@clisp.org>
43796
43797         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
43798         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
43799         * modules/pipe (Files): Remove m4/posix_spawn.m4.
43800         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
43801         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
43802         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
43803         posix_spawnattr_init, posix_spawnattr_setsigmask,
43804         posix_spawnattr_setflags, posix_spawnattr_destroy.
43805
43806         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
43807         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
43808         * modules/execute (Files): Remove m4/posix_spawn.m4.
43809         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
43810         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
43811         posix_spawnattr_init, posix_spawnattr_setsigmask,
43812         posix_spawnattr_setflags, posix_spawnattr_destroy.
43813
43814 2009-01-25  Bruno Haible  <bruno@clisp.org>
43815
43816         * lib/glthread/threadlib.c: Include <stdlib.h>.
43817
43818 2009-01-25  Bruno Haible  <bruno@clisp.org>
43819
43820         * lib/glthread/threadlib.c (dummy): New declaration.
43821
43822 2009-01-25  Bruno Haible  <bruno@clisp.org>
43823
43824         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
43825         multibyte characters also for the GB18030 encoding. Don't crash when
43826         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
43827
43828 2009-01-25  Bruno Haible  <bruno@clisp.org>
43829
43830         Avoid redefining 'struct random_data' on OSF/1 5.1.
43831         * lib/stdlib.in.h: Include <random.h> if it exists.
43832         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
43833         HAVE_RANDOM_H. Include <random.h> when testing whether
43834         'struct random_data' exists.
43835         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
43836
43837 2009-01-25  Bruno Haible  <bruno@clisp.org>
43838
43839         Don't install charset.alias on MacOS X >= 10.3.
43840         * lib/localcharset.c (DARWIN7): New macro.
43841         (get_charset_aliases): Hardcode the result for Darwin7.
43842         * modules/localcharset (install-exec-local): Don't install
43843         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
43844
43845 2009-01-25  Bruno Haible  <bruno@clisp.org>
43846
43847         Don't install charset.alias on mingw and Cygwin.
43848         * modules/localcharset (install-exec-local): Don't install
43849         charset.alias on mingw and Cygwin, if the file does not yet exist.
43850         The result for these platforms is hardcoded in localcharset.c.
43851
43852 2009-01-25  Bruno Haible  <bruno@clisp.org>
43853
43854         Make it possible again to use AC_GNU_SOURCE together with gnulib.
43855         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
43856         before requiring AC_USE_SYSTEM_EXTENSIONS.
43857
43858 2009-01-25  Jim Meyering  <meyering@redhat.com>
43859
43860         c-strtod: avoid warnings
43861         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
43862         "assignment discards qualifiers from pointer target type" warnings.
43863
43864 2009-01-24  Bruno Haible  <bruno@clisp.org>
43865
43866         Add support for non-UTF-8 locales on MacOS X.
43867         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
43868         canonical encodings. For Darwin 7 and newer, don't map traditional
43869         encodings to UTF-8.
43870         Reported by Vincent Lefevre <vincent@vinc17.org>
43871         at <http://savannah.gnu.org/bugs/?25235>.
43872
43873 2009-01-24  Bruno Haible  <bruno@clisp.org>
43874
43875         * doc/gnulib.texi (Obsolete modules): New section.
43876         Reported by Mike Frysinger <vapier@gentoo.org>.
43877
43878 2009-01-24  Bruno Haible  <bruno@clisp.org>
43879
43880         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
43881         (%.dvi): New rule.
43882
43883 2009-01-24  Bruno Haible  <bruno@clisp.org>
43884
43885         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
43886         Reported by Eric Blake.
43887
43888 2009-01-24  Bruno Haible  <bruno@clisp.org>
43889
43890         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
43891         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
43892         Reported by Gary V. Vaughan <gary@gnu.org>.
43893
43894 2009-01-24  Bruno Haible  <bruno@clisp.org>
43895
43896         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
43897
43898 2009-01-23  Bruno Haible  <bruno@clisp.org>
43899
43900         Make c-strtod, c-strtold usable in libraries.
43901         * lib/c-strtod.c: Include string.h instead of xalloc.h.
43902         (C_STRTOD): Call strdup instead of xstrdup.
43903         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
43904         * modules/c-strtold (Depends-on): Likewise.
43905         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
43906         * NEWS: Mention the change.
43907         Reported by Michael Gold <mgold@ncf.ca>.
43908
43909 2009-01-23  Jim Meyering  <meyering@redhat.com>
43910
43911         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
43912         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
43913         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
43914
43915 2009-01-23  Simon Josefsson  <simon@josefsson.org>
43916
43917         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
43918         GNU CoreUtils.
43919         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
43920         * modules/version-etc (Description): Update.
43921
43922 2009-01-22  Bruno Haible  <bruno@clisp.org>
43923
43924         Cache the C locale object.
43925         * lib/c-strtod.c (c_locale_cache): New variable.
43926         (c_locale): New function.
43927         (C_STRTOD): Use it, and don't call freelocale.
43928         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
43929         Suggested by Paolo Bonzini.
43930
43931 2009-01-21  Bruno Haible  <bruno@clisp.org>
43932
43933         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
43934         conditions other than overflow.
43935
43936 2009-01-21  Bruno Haible  <bruno@clisp.org>
43937
43938         * lib/c-strtod.c: Include errno.h.
43939         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
43940         value from STRTOD_L and STRTOD.
43941
43942 2009-01-21  Bruno Haible  <bruno@clisp.org>
43943         and Jim Meyering  <meyering@redhat.com>
43944
43945         nanosleep: skip configure test (fail it) for apple universal builds
43946         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
43947         universal builds, assume that nanosleep does not work.
43948         * modules/nanosleep (Depends-on): Add multiarch.
43949
43950         mktime: skip configure test (fail it) for apple universal builds
43951         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
43952         universal builds, assume that mktime does not work.
43953         * modules/mktime (Depends-on): Add multiarch.
43954
43955 2009-01-21  Eric Blake  <ebb9@byu.net>
43956
43957         multiarch: avoid expand-before-require warning
43958         * modules/multiarch (configure.ac): Require, rather than expand,
43959         gl_MULTIARCH.
43960         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
43961         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
43962         enforce that all clients require it.  Partial reversion of
43963         2008-12-29 patch.
43964
43965         error: avoid expand-before-require warning
43966         * modules/errno (configure.ac): Require, rather than expand,
43967         gl_HEADER_ERRNO_H.
43968         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
43969         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
43970         enforce that all clients require it.
43971
43972         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
43973         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
43974         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
43975         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
43976
43977 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
43978
43979         Revert:
43980         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
43981
43982         regex: do not depend on obsolete modules.
43983         * modules/regex: Remove memcmp and memmove.
43984
43985 2009-01-20  Bruno Haible  <bruno@clisp.org>
43986
43987         Make the 'link' module link on Windows NT 4.
43988         * lib/link.c (_WIN32_WINNT): Don't define.
43989         (CreateHardLinkFuncType): New type.
43990         (CreateHardLinkFunc, initialized): New variables.
43991         (initialize): New function.
43992         (link): Invoke CreateHardLink indirectly through the function pointer.
43993
43994 2009-01-20  Bruno Haible  <bruno@clisp.org>
43995
43996         Fix compilation failure on mingw.
43997         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
43998
43999 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
44000
44001         * doc/c-strtod.texi: Mention a couple of restrictions.
44002
44003 2009-01-20  Jim Meyering  <meyering@redhat.com>
44004
44005         gettimeofday: move more declarations out of functions
44006         * lib/gettimeofday.c: Move extern declarations of tzset and
44007         gmtime out of containing functions.  Prompted by Bruno Haible.
44008
44009 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
44010
44011         regex: do not depend on obsolete modules.
44012         * modules/regex: Remove memcmp and memmove.
44013
44014 2009-01-19  Bruno Haible  <bruno@clisp.org>
44015
44016         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
44017         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
44018         gl_BIGENDIAN, not AC_C_BIGENDIAN.
44019         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
44020         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
44021
44022 2009-01-19  Bruno Haible  <bruno@clisp.org>
44023
44024         * tests/test-link.c: Include <errno.h>.
44025         (main): Exit with code 77 when a hard link cannot be created due to
44026         the file system.
44027         * tests/test-link.sh: Skip test when a hard link cannot be created due
44028         to the file system.
44029         Suggested by Eric Blake.
44030
44031 2009-01-19  Martin Lambers  <marlam@marlam.de>
44032
44033         * modules/link-tests: New file.
44034         * tests/test-link.sh: New file.
44035         * tests/test-link.c: New file.
44036
44037 2009-01-19  Eric Blake  <ebb9@byu.net>
44038
44039         doc: mention another function added in cygwin 1.7.0
44040         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
44041         Another new function in cygwin 1.7.
44042
44043 2009-01-19  Bruno Haible  <bruno@clisp.org>
44044
44045         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
44046         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
44047         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
44048         gl_BIGENDIAN, not AC_C_BIGENDIAN.
44049         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
44050         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
44051         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
44052         * m4/md4.m4 (gl_MD4): Likewise.
44053         * m4/md5.m4 (gl_MD5): Likewise.
44054         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
44055         * m4/sha1.m4 (gl_SHA1): Likewise.
44056         * m4/sha256.m4 (gl_SHA256): Likewise.
44057         * m4/sha512.m4 (gl_SHA512): Likewise.
44058
44059 2009-01-19  Bruno Haible  <bruno@clisp.org>
44060
44061         * modules/uniname/uniname-tests (Depends-on): Add progname.
44062         * tests/uniname/test-uninames.c: Include progname.h.
44063         (main): Call set_program_name.
44064
44065         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
44066         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
44067         (main): Call set_program_name.
44068
44069         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
44070         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
44071         (main): Call set_program_name.
44072
44073         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
44074         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
44075         (main): Call set_program_name.
44076
44077         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
44078         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
44079         (main): Call set_program_name.
44080
44081         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
44082         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
44083         (main): Call set_program_name.
44084
44085         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
44086         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
44087         (main): Call set_program_name.
44088
44089         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
44090         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
44091         (main): Call set_program_name.
44092
44093         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
44094         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
44095         (main): Call set_program_name.
44096
44097 2009-01-19  Eric Blake  <ebb9@byu.net>
44098
44099         test-unistd: test previous patch
44100         * tests/test-unistd.c: Test *_FILENO macros.
44101
44102         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
44103         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44104         Guarantee a definition.
44105         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
44106         * modules/unistd-safer (Depends-on): Add dependency on unistd.
44107         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
44108         * lib/dup-safer.c (STDERR_FILENO): Likewise.
44109         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44110         Likewise.
44111         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
44112         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
44113         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
44114         Likewise.
44115         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
44116         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
44117         (STDERR_FILENO): Likewise.
44118         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
44119         (STDERR_FILENO): Likewise.
44120         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
44121         (STDERR_FILENO): Likewise.
44122         Reported by Elbert Pol.
44123
44124 2009-01-19  Eric Blake  <ebb9@byu.net>
44125
44126         doc: mention more functions added in cygwin 1.7.0
44127         * doc/posix-functions/abort.texi (abort): Update wording related
44128         to cygwin.
44129         * doc/posix-functions/daylight.texi (daylight): Likewise.
44130         * doc/posix-functions/optarg.texi (optarg): Likewise.
44131         * doc/posix-functions/optarg.texi (opterr): Likewise.
44132         * doc/posix-functions/optarg.texi (optind): Likewise.
44133         * doc/posix-functions/optarg.texi (optopt): Likewise.
44134         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
44135         worked in 1.5.x, and was withdrawn in 1.7.
44136         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
44137         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
44138         cygwin versions.
44139         * doc/posix-functions/perror.texi (perror): Likewise.
44140         * doc/posix-functions/printf.texi (printf): Likewise.
44141         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
44142         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
44143         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
44144         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
44145         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
44146         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
44147         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
44148         Likewise.
44149         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
44150         Likewise.
44151         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
44152         this function.
44153         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
44154         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
44155         Likewise.
44156         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
44157         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
44158         * doc/posix-functions/confstr.texi (confstr): Likewise.
44159         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
44160         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
44161         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
44162         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
44163         * doc/posix-functions/fputws.texi (fputws): Likewise.
44164         * doc/posix-functions/fwide.texi (fwide): Likewise.
44165         * doc/posix-functions/getwc.texi (getwc): Likewise.
44166         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
44167         * doc/posix-functions/putwc.texi (putwc): Likewise.
44168         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
44169         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
44170         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
44171         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
44172         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
44173         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
44174         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
44175         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
44176         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
44177         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
44178         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
44179
44180 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
44181
44182         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
44183         * lib/ioctl.c: Include <sys/ioctl.h>.
44184
44185 2009-01-19  Simon Josefsson  <simon@josefsson.org>
44186
44187         * modules/getdate-tests (Depends-on): Add progname.
44188         * tests/test-getdate.c: Use progname module, to avoid link errors
44189         on non-glibc systems.
44190
44191 2009-01-18  Simon Josefsson  <simon@josefsson.org>
44192
44193         * modules/filenamecat-tests (Depends-on): Add progname.
44194         * modules/fstrcmp-tests (Depends-on): Likewise.
44195
44196         * tests/test-filenamecat.c: Use progname module, to avoid link
44197         errors on non-glibc systems.
44198         * tests/test-fstrcmp.c: Likewise.
44199
44200 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
44201
44202         gettimeofday: avoid warning: nested extern declaration of 'localtime'
44203         * lib/gettimeofday.c: Move extern declaration out of function.
44204
44205 2009-01-18  Bruno Haible  <bruno@clisp.org>
44206
44207         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
44208         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
44209         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
44210
44211 2009-01-18  Bruno Haible  <bruno@clisp.org>
44212
44213         * lib/strftime.c (MEMPCPY): Remove unused macro.
44214         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
44215
44216 2009-01-18  Martin Lambers  <marlam@marlam.de>
44217
44218         New module 'link'.
44219         * lib/unistd.in.h (link): New declaration.
44220         * lib/link.c: New file.
44221         * m4/link.m4: New file.
44222         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
44223         HAVE_LINK.
44224         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
44225         * modules/link: New file.
44226         * doc/posix-functions/link.texi: Mention the new module.
44227
44228 2009-01-18  Bruno Haible  <bruno@clisp.org>
44229
44230         * tests/test-avltree_list.c (main): Call set_program_name.
44231         * tests/test-avltree_oset.c (main): Likewise.
44232         * tests/test-obstack-printf.c: Include progname.h.
44233         (main): Call set_program_name.
44234         * tests/test-quotearg.c: Include progname.h.
44235         (main): Call set_program_name.
44236         * tests/test-xmemdup0.c: Include progname.h.
44237         (main): Call set_program_name.
44238
44239 2009-01-18  Bruno Haible  <bruno@clisp.org>
44240
44241         New module 'alphasort'.
44242         * lib/dirent.in.h (alphasort): New declaration.
44243         * lib/alphasort.c: New file, from glibc with modifications.
44244         * m4/alphasort.m4: New file.
44245         * modules/alphasort: New file.
44246         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
44247         HAVE_ALPHASORT.
44248         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
44249         HAVE_ALPHASORT.
44250         * doc/posix-functions/alphasort.texi: Mention the new module and the
44251         portability problems.
44252
44253 2009-01-18  Bruno Haible  <bruno@clisp.org>
44254
44255         New module 'scandir'.
44256         * lib/dirent.in.h (scandir): New declaration.
44257         * lib/scandir.c: New file, from glibc with modifications.
44258         * m4/scandir.m4: New file.
44259         * modules/scandir: New file.
44260         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
44261         HAVE_SCANDIR.
44262         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
44263         HAVE_SCANDIR.
44264         * doc/posix-functions/scandir.texi: Mention the new module and the
44265         portability problems.
44266
44267 2009-01-17  Bruno Haible  <bruno@clisp.org>
44268
44269         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
44270         Update documentation.
44271         (func_remove_suffix): Escape all dots in the suffix. Update
44272         documentation.
44273         (func_filter_filelist): Update documentation.
44274         Reported by Ralf Wildenhues.
44275
44276 2009-01-17  Bruno Haible  <bruno@clisp.org>
44277
44278         * modules/dprintf-posix-tests: New file.
44279         * tests/test-dprintf-posix.sh: New file.
44280         * tests/test-dprintf-posix.c: New file.
44281
44282         New modules 'dprintf', 'dprintf-posix'.
44283         * lib/stdio.in.h (dprintf): New declaration.
44284         * lib/dprintf.c: New file.
44285         * m4/dprintf.m4: New file.
44286         * m4/dprintf-posix.m4: New file.
44287         * modules/dprintf: New file.
44288         * modules/dprintf-posix: New file.
44289         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
44290         HAVE_DPRINTF, REPLACE_DPRINTF.
44291         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
44292         HAVE_DPRINTF, REPLACE_DPRINTF.
44293         * doc/posix-functions/dprintf.texi: Mention the new modules.
44294
44295 2009-01-17  Bruno Haible  <bruno@clisp.org>
44296
44297         * modules/vdprintf-posix-tests: New file.
44298         * tests/test-vdprintf-posix.sh: New file.
44299         * tests/test-vdprintf-posix.c: New file.
44300
44301         New modules 'vdprintf', 'vdprintf-posix'.
44302         * lib/stdio.in.h (vdprintf): New declaration.
44303         * lib/vdprintf.c: New file.
44304         * m4/vdprintf.m4: New file.
44305         * m4/vdprintf-posix.m4: New file.
44306         * modules/vdprintf: New file.
44307         * modules/vdprintf-posix: New file.
44308         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
44309         HAVE_VDPRINTF, REPLACE_VDPRINTF.
44310         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
44311         HAVE_VDPRINTF, REPLACE_VDPRINTF.
44312         * doc/posix-functions/vdprintf.texi: Mention the new modules.
44313
44314 2009-01-17  Bruno Haible  <bruno@clisp.org>
44315
44316         Fix replacement of fopen on mingw.
44317         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
44318         mingw.
44319
44320 2009-01-17  Bruno Haible  <bruno@clisp.org>
44321
44322         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
44323         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
44324
44325 2009-01-17  Bruno Haible  <bruno@clisp.org>
44326
44327         Avoid test-fflush2.sh failure on mingw.
44328         * tests/test-fflush2.c: Include binary-io.h.
44329         (main): Put standard input into binary mode.
44330         * modules/fflush-tests (Depends-on): Add binary-io.
44331
44332 2009-01-17  Bruno Haible  <bruno@clisp.org>
44333
44334         * lib/wchar.in.h: In another particular situation, include only the
44335         system's <wchar.h> file.
44336         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
44337         Reported by Albert Chin-A-Young <china@thewrittenword.com>
44338         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
44339
44340 2009-01-17  Bruno Haible  <bruno@clisp.org>
44341
44342         Support for stripping executables in --enable-relocatable.
44343         * build-aux/install-reloc: Expect one more argument, or an environment
44344         variable RELOC_STRIP_PROG. If set, strip the destination program and
44345         its wrapper.
44346         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
44347         RELOC_STRIP_PROG.
44348         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
44349         to set RELOCATABLE_STRIP.
44350         * NEWS: Mention the new Makefile requirement.
44351
44352 2009-01-17  Bruno Haible  <bruno@clisp.org>
44353
44354         * build-aux/install-reloc: Remove debugging information left over by
44355         C compiler on MacOS X.
44356
44357 2009-01-17  Bruno Haible  <bruno@clisp.org>
44358
44359         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
44360         * lib/progreloc.c (find_executable): Fix type of pointer passed to
44361         _NSGetExecutablePath.
44362
44363 2009-01-16  Jim Meyering  <meyering@redhat.com>
44364
44365         strerror: avoid warnings about discarding "const"
44366         * lib/strerror.c (rpl_strerror): Instead of returning a const
44367         string from each and every "case", use a variable, and add a single
44368         cast after the switch.
44369
44370 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
44371
44372         * lib/arpa_inet.in.h: Add extern "C" block for C++.
44373
44374 2009-01-16  Bruno Haible  <bruno@clisp.org>
44375
44376         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
44377         array initializer syntax that also works in C++ mode.
44378         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44379
44380 2009-01-16  Jim Meyering  <meyering@redhat.com>
44381
44382         poll: suppress a warning
44383         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
44384         to ignore "...unsigned expression < 0 is always false" warnings.
44385
44386 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
44387
44388         poll: remove declarations of unused variables
44389         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
44390         sockbuf and optlen.
44391
44392 2009-01-15  Bruno Haible  <bruno@clisp.org>
44393
44394         Make fflush-after-ungetc POSIX compliant on BSD systems.
44395         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
44396         (clear_ungetc_buffer): Implement also for other systems.
44397         (rpl_fflush): On glibc systems, invoke
44398         clear_ungetc_buffer_preserving_position. Otherwise, invoke
44399         clear_ungetc_buffer after fetching the stream's position, not before.
44400
44401 2009-01-15  Bruno Haible  <bruno@clisp.org>
44402
44403         Make fflush-after-ungetc POSIX compliant on glibc systems.
44404         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
44405         after ungetc.
44406         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
44407         (rpl_fflush): On glibc systems, simply call the system's fflush
44408         function after clearing the ungetc buffer.
44409         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
44410         Instead, lseek only to the end of file, then use the system's fseeko
44411         for the rest. On glibc systems, reset the EOF indicator bit.
44412
44413 2009-01-15  Jim Meyering  <meyering@redhat.com>
44414
44415         openmp.m4: revert quote-adding change, for portability to older autoconf
44416         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
44417         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
44418         Simon Josefsson noticed the problem when using autoconf-2.61.
44419
44420 2009-01-15  Bruno Haible  <bruno@clisp.org>
44421
44422         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
44423         * tests/test-fflush2.c (ASSERT): Always fail.
44424         (main): Add two tests for fflush() after ungetc(), taking into account
44425         the Austin Group's clarification.
44426         Suggested by Eric Blake.
44427
44428 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
44429
44430         mktime.m4: remove K&R-style function prototypes
44431         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
44432         for the Sun C++ compiler.
44433
44434 2009-01-14  Bruno Haible  <bruno@clisp.org>
44435
44436         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
44437         while including <wchar.h>.
44438         * lib/wchar.in.h: In two particular situations on HP-UX, include only
44439         the system's <wchar.h> file.
44440         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
44441
44442 2009-01-14  Bruno Haible  <bruno@clisp.org>
44443
44444         * m4/csharp.m4: Don't mention gettext on the serial number line.
44445         * m4/csharpexec.m4: Likewise.
44446         * m4/eaccess.m4: Likewise.
44447         * m4/javaexec.m4: Likewise.
44448         * m4/sig_atomic_t.m4: Likewise.
44449         * m4/tmpdir.m4: Likewise.
44450         * m4/intldir.m4: Bump gettext version.
44451         * m4/lib-ld.m4: Likewise.
44452
44453 2009-01-14  Bruno Haible  <bruno@clisp.org>
44454
44455         * lib/progname.c (set_program_name): Add more comments.
44456         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
44457
44458 2009-01-14  Simon Josefsson  <simon@josefsson.org>
44459
44460         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
44461         were sys/stat.h does not define it.
44462
44463 2009-01-14  Jim Meyering  <meyering@redhat.com>
44464
44465         many *.m4 files: improve m4 quoting
44466         99% of this change was performed by running the following commands:
44467         git ls-files | grep '\.m4$' | xargs perl -pi \
44468           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
44469           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
44470           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
44471           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
44472         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
44473         The remainder were to add Copyright dates, increment serial numbers,
44474         undo some changes in comments, exclude m4/intl.m4, and add quotes
44475         around the "1" in ",1" where the unusual spacing prohibited the
44476         above regexps from doing the job.  For more details, see
44477         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
44478         * m4/acl.m4: Modified.
44479         * m4/afs.m4: Likewise.
44480         * m4/alloca.m4: Likewise.
44481         * m4/argp.m4: Likewise.
44482         * m4/argz.m4: Likewise.
44483         * m4/atexit.m4: Likewise.
44484         * m4/bison-i18n.m4: Likewise.
44485         * m4/bison.m4: Likewise.
44486         * m4/byteswap.m4: Likewise.
44487         * m4/c-stack.m4: Likewise.
44488         * m4/c-strtod.m4: Likewise.
44489         * m4/calloc.m4: Likewise.
44490         * m4/canonicalize-lgpl.m4: Likewise.
44491         * m4/chown.m4: Likewise.
44492         * m4/clock_time.m4: Likewise.
44493         * m4/codeset.m4: Likewise.
44494         * m4/copy-file.m4: Likewise.
44495         * m4/csharp.m4: Likewise.
44496         * m4/csharpcomp.m4: Likewise.
44497         * m4/csharpexec.m4: Likewise.
44498         * m4/d-ino.m4: Likewise.
44499         * m4/d-type.m4: Likewise.
44500         * m4/dirfd.m4: Likewise.
44501         * m4/double-slash-root.m4: Likewise.
44502         * m4/eaccess.m4: Likewise.
44503         * m4/eealloc.m4: Likewise.
44504         * m4/environ.m4: Likewise.
44505         * m4/errno_h.m4: Likewise.
44506         * m4/euidaccess.m4: Likewise.
44507         * m4/execute.m4: Likewise.
44508         * m4/fatal-signal.m4: Likewise.
44509         * m4/fchdir.m4: Likewise.
44510         * m4/fcntl_h.m4: Likewise.
44511         * m4/fileblocks.m4: Likewise.
44512         * m4/filenamecat.m4: Likewise.
44513         * m4/findprog.m4: Likewise.
44514         * m4/flexmember.m4: Likewise.
44515         * m4/fnmatch.m4: Likewise.
44516         * m4/fopen.m4: Likewise.
44517         * m4/fpending.m4: Likewise.
44518         * m4/fprintf-posix.m4: Likewise.
44519         * m4/free.m4: Likewise.
44520         * m4/frexp.m4: Likewise.
44521         * m4/frexpl.m4: Likewise.
44522         * m4/fsusage.m4: Likewise.
44523         * m4/ftruncate.m4: Likewise.
44524         * m4/gc-camellia.m4: Likewise.
44525         * m4/gc-random.m4: Likewise.
44526         * m4/gc.m4: Likewise.
44527         * m4/getaddrinfo.m4: Likewise.
44528         * m4/getcwd-abort-bug.m4: Likewise.
44529         * m4/getcwd-path-max.m4: Likewise.
44530         * m4/getdate.m4: Likewise.
44531         * m4/getdomainname.m4: Likewise.
44532         * m4/getgroups.m4: Likewise.
44533         * m4/gethostname.m4: Likewise.
44534         * m4/gethrxtime.m4: Likewise.
44535         * m4/getline.m4: Likewise.
44536         * m4/getloadavg.m4: Likewise.
44537         * m4/getndelim2.m4: Likewise.
44538         * m4/getpass.m4: Likewise.
44539         * m4/gettext.m4: Likewise.
44540         * m4/gettime.m4: Likewise.
44541         * m4/gettimeofday.m4: Likewise.
44542         * m4/gnulib-common.m4: Likewise.
44543         * m4/group-member.m4: Likewise.
44544         * m4/host-os.m4: Likewise.
44545         * m4/iconv.m4: Likewise.
44546         * m4/iconv_open.m4: Likewise.
44547         * m4/inet_ntop.m4: Likewise.
44548         * m4/inet_pton.m4: Likewise.
44549         * m4/inline.m4: Likewise.
44550         * m4/intldir.m4: Likewise.
44551         * m4/intlmacosx.m4: Likewise.
44552         * m4/intmax.m4: Likewise.
44553         * m4/intmax_t.m4: Likewise.
44554         * m4/inttypes.m4: Likewise.
44555         * m4/inttypes_h.m4: Likewise.
44556         * m4/inttypes-pri.m4: Likewise.
44557         * m4/isapipe.m4: Likewise.
44558         * m4/isnand.m4: Likewise.
44559         * m4/isnanf.m4: Likewise.
44560         * m4/isnanl.m4: Likewise.
44561         * m4/javacomp.m4: Likewise.
44562         * m4/javaexec.m4: Likewise.
44563         * m4/jm-winsz1.m4: Likewise.
44564         * m4/jm-winsz2.m4: Likewise.
44565         * m4/lchown.m4: Likewise.
44566         * m4/lcmessage.m4: Likewise.
44567         * m4/ldexpl.m4: Likewise.
44568         * m4/lib-ld.m4: Likewise.
44569         * m4/lib-link.m4: Likewise.
44570         * m4/libsigsegv.m4: Likewise.
44571         * m4/link-follow.m4: Likewise.
44572         * m4/localcharset.m4: Likewise.
44573         * m4/locale-fr.m4: Likewise.
44574         * m4/locale-ja.m4: Likewise.
44575         * m4/locale-tr.m4: Likewise.
44576         * m4/locale-zh.m4: Likewise.
44577         * m4/lock.m4: Likewise.
44578         * m4/longlong.m4: Likewise.
44579         * m4/ls-mntd-fs.m4: Likewise.
44580         * m4/lstat.m4: Likewise.
44581         * m4/malloc.m4: Likewise.
44582         * m4/mathl.m4: Likewise.
44583         * m4/mbrtowc.m4: Likewise.
44584         * m4/mbstate_t.m4: Likewise.
44585         * m4/mbswidth.m4: Likewise.
44586         * m4/memchr.m4: Likewise.
44587         * m4/memcmp.m4: Likewise.
44588         * m4/memcpy.m4: Likewise.
44589         * m4/memmem.m4: Likewise.
44590         * m4/memmove.m4: Likewise.
44591         * m4/mempcpy.m4: Likewise.
44592         * m4/memrchr.m4: Likewise.
44593         * m4/memset.m4: Likewise.
44594         * m4/minmax.m4: Likewise.
44595         * m4/mkdir-slash.m4: Likewise.
44596         * m4/mkdtemp.m4: Likewise.
44597         * m4/mktime.m4: Likewise.
44598         * m4/mmap-anon.m4: Likewise.
44599         * m4/mountlist.m4: Likewise.
44600         * m4/nanosleep.m4: Likewise.
44601         * m4/nls.m4: Likewise.
44602         * m4/nocrash.m4: Likewise.
44603         * m4/open.m4: Likewise.
44604         * m4/openat.m4: Likewise.
44605         * m4/openmp.m4: Likewise.
44606         * m4/pathmax.m4: Likewise.
44607         * m4/perl.m4: Likewise.
44608         * m4/physmem.m4: Likewise.
44609         * m4/pipe.m4: Likewise.
44610         * m4/po.m4: Likewise.
44611         * m4/poll.m4: Likewise.
44612         * m4/posixtm.m4: Likewise.
44613         * m4/posixver.m4: Likewise.
44614         * m4/printf-frexp.m4: Likewise.
44615         * m4/printf-frexpl.m4: Likewise.
44616         * m4/printf-posix.m4: Likewise.
44617         * m4/printf-posix-rpl.m4: Likewise.
44618         * m4/printf.m4: Likewise.
44619         * m4/progtest.m4: Likewise.
44620         * m4/putenv.m4: Likewise.
44621         * m4/readline.m4: Likewise.
44622         * m4/readlink.m4: Likewise.
44623         * m4/readutmp.m4: Likewise.
44624         * m4/realloc.m4: Likewise.
44625         * m4/regex.m4: Likewise.
44626         * m4/relocatable.m4: Likewise.
44627         * m4/relocatable-lib.m4: Likewise.
44628         * m4/rename-dest-slash.m4: Likewise.
44629         * m4/rename.m4: Likewise.
44630         * m4/rmdir-errno.m4: Likewise.
44631         * m4/rmdir.m4: Likewise.
44632         * m4/roundf.m4: Likewise.
44633         * m4/roundl.m4: Likewise.
44634         * m4/rpmatch.m4: Likewise.
44635         * m4/save-cwd.m4: Likewise.
44636         * m4/selinux-selinux-h.m4: Likewise.
44637         * m4/setenv.m4: Likewise.
44638         * m4/settime.m4: Likewise.
44639         * m4/sig2str.m4: Likewise.
44640         * m4/sig_atomic_t.m4: Likewise.
44641         * m4/signalblocking.m4: Likewise.
44642         * m4/signbit.m4: Likewise.
44643         * m4/sigpipe.m4: Likewise.
44644         * m4/sockets.m4: Likewise.
44645         * m4/sockpfaf.m4: Likewise.
44646         * m4/st_dm_mode.m4: Likewise.
44647         * m4/stat-time.m4: Likewise.
44648         * m4/stdbool.m4: Likewise.
44649         * m4/stdint.m4: Likewise.
44650         * m4/stdint_h.m4: Likewise.
44651         * m4/stpcpy.m4: Likewise.
44652         * m4/stpncpy.m4: Likewise.
44653         * m4/strcase.m4: Likewise.
44654         * m4/strchrnul.m4: Likewise.
44655         * m4/strcspn.m4: Likewise.
44656         * m4/strdup.m4: Likewise.
44657         * m4/strftime.m4: Likewise.
44658         * m4/strndup.m4: Likewise.
44659         * m4/strnlen.m4: Likewise.
44660         * m4/strpbrk.m4: Likewise.
44661         * m4/strptime.m4: Likewise.
44662         * m4/strsep.m4: Likewise.
44663         * m4/strtod.m4: Likewise.
44664         * m4/strtoimax.m4: Likewise.
44665         * m4/strtok_r.m4: Likewise.
44666         * m4/strtol.m4: Likewise.
44667         * m4/strtoll.m4: Likewise.
44668         * m4/strtoul.m4: Likewise.
44669         * m4/strtoull.m4: Likewise.
44670         * m4/strtoumax.m4: Likewise.
44671         * m4/strverscmp.m4: Likewise.
44672         * m4/threadlib.m4: Likewise.
44673         * m4/timegm.m4: Likewise.
44674         * m4/tm_gmtoff.m4: Likewise.
44675         * m4/tmpdir.m4: Likewise.
44676         * m4/tmpfile.m4: Likewise.
44677         * m4/tzset.m4: Likewise.
44678         * m4/uintmax_t.m4: Likewise.
44679         * m4/unlinkdir.m4: Likewise.
44680         * m4/unlocked-io.m4: Likewise.
44681         * m4/uptime.m4: Likewise.
44682         * m4/userspec.m4: Likewise.
44683         * m4/utimbuf.m4: Likewise.
44684         * m4/utime.m4: Likewise.
44685         * m4/utimes-null.m4: Likewise.
44686         * m4/utimes.m4: Likewise.
44687         * m4/vararrays.m4: Likewise.
44688         * m4/vasnprintf.m4: Likewise.
44689         * m4/vfprintf-posix.m4: Likewise.
44690         * m4/vprintf-posix.m4: Likewise.
44691         * m4/wait-process.m4: Likewise.
44692         * m4/wchar_t.m4: Likewise.
44693         * m4/wint_t.m4: Likewise.
44694         * m4/write-any-file.m4: Likewise.
44695         * m4/yield.m4: Likewise.
44696
44697 2009-01-13  Bruno Haible  <bruno@clisp.org>
44698
44699         Avoid test-copy-file.sh failures when ACL support insufficient.
44700         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
44701         TESTS_ENVIRONMENT.
44702         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
44703         Reported by Jim Meyering.
44704
44705 2009-01-13  Bruno Haible  <bruno@clisp.org>
44706
44707         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
44708         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
44709         * modules/unistdio/u8-printf-parse (Files): Likewise.
44710         * modules/unistdio/u32-printf-parse (Files): Likewise.
44711         * modules/unistdio/ulc-printf-parse (Files): Likewise.
44712
44713 2009-01-13  Simon Josefsson  <simon@josefsson.org>
44714
44715         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
44716         and m4/inttypes_h.m4 too.
44717
44718 2009-01-12  Eric Blake  <ebb9@byu.net>
44719
44720         tests: IRIX 6.2 cc can't compile -0.0 into .data
44721         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
44722         rather than at compile-time.
44723         * tests/test-floorl.c (minus_zero): Likewise.
44724         * tests/test-frexpl.c (minus_zero): Likewise.
44725         * tests/test-isnan.c (minus_zerol): Likewise.
44726         * tests/test-isnanl.h (minus_zero): Likewise.
44727         * tests/test-ldexpl.c (minus_zero): Likewise.
44728         * tests/test-roundl.c (minus_zero): Likewise.
44729         * tests/test-signbit.c (minus_zerol): Likewise.
44730         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
44731         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
44732         * tests/test-truncl.c (minus_zero): Likewise.
44733         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
44734         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
44735         Reported by Tom G. Christensen and Nelson H. F. Beebe.
44736
44737 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44738
44739         regex: fix glibc bug 9697
44740         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
44741         handling.
44742
44743 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44744
44745         regex: fix glibc bug 697
44746         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
44747         being NULL also if there are no backreferences.
44748
44749 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
44750
44751         regex: merge glibc changes
44752         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
44753         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
44754         re_string_skip_chars, re_string_reconstruct): Likewise.
44755         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
44756
44757 2009-01-07  Jim Meyering  <meyering@redhat.com>
44758
44759         poll: filter through cppi
44760         * lib/poll.c: Indent cpp directives to reflect nesting.
44761
44762 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
44763
44764         poll: don't return uninitialized
44765         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
44766
44767 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
44768
44769         avoid compile failure on AIX 6.1
44770         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
44771         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
44772
44773 2009-01-04  Jim Meyering  <meyering@redhat.com>
44774
44775         remove duplicate inclusion of <stdio.h>
44776         * tests/test-fprintf-posix.c: Likewise.
44777         * tests/test-printf-posix.c: Likewise.
44778         * tests/test-snprintf-posix.c: Likewise.
44779         * tests/test-sprintf-posix.c: Likewise.
44780         * tests/test-vasprintf-posix.c: Likewise.
44781         * tests/test-vfprintf-posix.c: Likewise.
44782         * tests/test-vprintf-posix.c: Likewise.
44783         * tests/test-vsnprintf-posix.c: Likewise.
44784         * tests/test-vsprintf-posix.c: Likewise.
44785
44786 2009-01-03  Jim Meyering  <meyering@redhat.com>
44787
44788         gnulib-tool: fix sed-based filtering
44789         * gnulib-tool (func_filter_filelist): Remove extra backslash
44790         in sed_fff_filter definition.
44791
44792 2009-01-02  Jim Meyering  <meyering@redhat.com>
44793
44794         strftime: avoid compilation failure on Solaris 2.6
44795         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
44796         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
44797         Don't #define mbrlen or mbsinit, since now they're guaranteed to
44798         be available.  Reported by Tom G. Christensen.  Details in
44799         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
44800
44801 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44802             Bruno Haible  <bruno@clisp.org>
44803
44804         Speed up gnulib-tool by doing more string processing through shell
44805         built-ins.
44806         * gnulib-tool (fast_func_append): New variable.
44807         (func_remove_prefix, func_remove_suffix): New functions.
44808         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
44809         (func_filter_filelist): New function.
44810         (func_get_dependencies): Use func_remove_suffix instead of sed.
44811         (func_get_automake_snippet): Use func_filter_filelist instead of a
44812         subshell and sed invocation.
44813
44814 2009-01-01  Bruno Haible  <bruno@clisp.org>
44815
44816         Fix a security bug.
44817         * gnulib-tool (func_import, import, update): Don't allow the characters
44818         '"', '$', '`', '\' in macro arguments that become part of commands that
44819         are evaluated.
44820
44821 2009-01-01  Bruno Haible  <bruno@clisp.org>
44822
44823         * gnulib-tool (func_reset_sigpipe): Add more comments.
44824
44825 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44826
44827         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
44828         func_emit_tests_Makefile_am, func_import): Abort loops early if we
44829         already know the answer.
44830
44831 2009-01-01  Jim Meyering  <meyering@redhat.com>
44832
44833         * lib/version-etc.c (version_etc_va): Update copyright year.
44834
44835 2008-12-30  Bruno Haible  <bruno@clisp.org>
44836
44837         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
44838         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
44839         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
44840
44841 2008-12-29  Eric Blake  <ebb9@byu.net>
44842
44843         multiarch: avoid autoconf AC_REQUIRE bug
44844         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
44845         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
44846         2.63 and older.
44847         Reported by Bruno Haible, and analyzed in
44848         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
44849
44850 2008-12-29  Bruno Haible  <bruno@clisp.org>
44851
44852         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
44853         files in subdirectories correctly.
44854         Reported by Ralf Wildenhues.
44855
44856 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
44857
44858         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
44859         rather than 'join FILE -', for Solaris join.
44860
44861 2008-12-29  Bruno Haible  <bruno@clisp.org>
44862
44863         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
44864         quoting.
44865         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
44866         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
44867         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
44868         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
44869         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
44870         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
44871         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
44872         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
44873         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
44874         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
44875         * m4/nls.m4 (AM_NLS): Likewise.
44876         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
44877         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
44878         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
44879         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
44880         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
44881         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
44882         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
44883         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
44884         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
44885         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
44886         * m4/xsize.m4 (gl_XSIZE): Likewise.
44887         Suggested by Jim Meyering.
44888
44889 2008-11-17  Bruce Korb  <bkorb@gnu.org>
44890
44891         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
44892         * lib/parse-duration.c: use a switch instead of cascading if's.
44893
44894 2008-12-29  Eric Blake  <ebb9@byu.net>
44895
44896         wchar.h: supply WEOF on Irix 5.3
44897         * lib/wchar.in.h (wint_t): Also supply WEOF.
44898         * lib/wctype.in.h (wint_t): Likewise.
44899         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
44900         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
44901         Reported by Tom G. Christensen.
44902
44903 2008-12-26  Bruno Haible  <bruno@clisp.org>
44904
44905         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
44906         i486, i586, i686.
44907
44908 2008-12-26  Bruno Haible  <bruno@clisp.org>
44909
44910         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
44911
44912 2008-12-26  Bruno Haible  <bruno@clisp.org>
44913
44914         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
44915         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
44916         not __STDC_CONSTANT_MACROS.
44917         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
44918
44919 2008-12-25  Bruno Haible  <bruno@clisp.org>
44920
44921         Add support for universal builds to vasnprintf.
44922         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
44923         universal builds, guess no.
44924         * modules/vasnprintf-posix (Depends-on): Add multiarch.
44925         * modules/vasprintf-posix (Depends-on): Likewise.
44926         * modules/fprintf-posix (Depends-on): Likewise.
44927         * modules/vfprintf-posix (Depends-on): Likewise.
44928         * modules/snprintf-posix (Depends-on): Likewise.
44929         * modules/vsnprintf-posix (Depends-on): Likewise.
44930         * modules/sprintf-posix (Depends-on): Likewise.
44931         * modules/vsprintf-posix (Depends-on): Likewise.
44932         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
44933         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
44934         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
44935         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
44936         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
44937         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
44938         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
44939
44940         Add support for universal builds to <inttypes.h>.
44941         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
44942         _SCNu64_PREFIX): In Apple
44943         universal builds, define directly, using _LP64.
44944         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
44945         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
44946         * modules/inttypes (Depends-on): Add multiarch.
44947         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
44948
44949         Add support for universal builds to <stdint.h>.
44950         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
44951         universal builds, define directly, using _LP64.
44952         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
44953         Apple universal builds, don't test for the size and suffix of ptrdiff_t
44954         and size_t.
44955         * modules/stdint (Depends-on): Add multiarch.
44956         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
44957
44958         New module 'multiarch'.
44959         * modules/multiarch: New file.
44960         * m4/multiarch.m4: New file.
44961
44962 2008-12-25  Bruno Haible  <bruno@clisp.org>
44963
44964         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
44965
44966 2008-12-25  Bruno Haible  <bruno@clisp.org>
44967
44968         * modules/btowc (License): Relicense under LGPLv2+.
44969         * modules/mbsinit (License): Likewise.
44970         * modules/mbrtowc (License): Likewise.
44971         * modules/wcrtomb (License): Likewise.
44972         * modules/streq (License): Likewise.
44973         Reported by David Lutterkort <lutter@redhat.com>.
44974
44975 2008-12-23  Bruno Haible  <bruno@clisp.org>
44976
44977         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
44978
44979 2008-12-23  Bruno Haible  <bruno@clisp.org>
44980
44981         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
44982         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
44983         GETADDRINFO_LIB, not in LIBS.
44984         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
44985         * modules/canon-host (Link): Likewise.
44986         * NEWS: Mention the change.
44987         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
44988         GETADDRINFO_LIB.
44989
44990 2008-12-22  Bruno Haible  <bruno@clisp.org>
44991
44992         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
44993         * doc/posix-functions/iswalpha_l.texi: Likewise.
44994         * doc/posix-functions/iswblank_l.texi: Likewise.
44995         * doc/posix-functions/iswcntrl_l.texi: Likewise.
44996         * doc/posix-functions/iswctype_l.texi: Likewise.
44997         * doc/posix-functions/iswdigit_l.texi: Likewise.
44998         * doc/posix-functions/iswgraph_l.texi: Likewise.
44999         * doc/posix-functions/iswlower_l.texi: Likewise.
45000         * doc/posix-functions/iswprint_l.texi: Likewise.
45001         * doc/posix-functions/iswpunct_l.texi: Likewise.
45002         * doc/posix-functions/iswspace_l.texi: Likewise.
45003         * doc/posix-functions/iswupper_l.texi: Likewise.
45004         * doc/posix-functions/iswxdigit_l.texi: Likewise.
45005         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
45006         * doc/posix-functions/open_wmemstream.texi: Likewise.
45007         * doc/posix-functions/swscanf.texi: Likewise.
45008         * doc/posix-functions/towctrans_l.texi: Likewise.
45009         * doc/posix-functions/towlower.texi: Likewise.
45010         * doc/posix-functions/towlower_l.texi: Likewise.
45011         * doc/posix-functions/towupper.texi: Likewise.
45012         * doc/posix-functions/towupper_l.texi: Likewise.
45013         * doc/posix-functions/vfwprintf.texi: Likewise.
45014         * doc/posix-functions/vfwscanf.texi: Likewise.
45015         * doc/posix-functions/vswscanf.texi: Likewise.
45016         * doc/posix-functions/vwprintf.texi: Likewise.
45017         * doc/posix-functions/vwscanf.texi: Likewise.
45018         * doc/posix-functions/wcpcpy.texi: Likewise.
45019         * doc/posix-functions/wcpncpy.texi: Likewise.
45020         * doc/posix-functions/wcscasecmp.texi: Likewise.
45021         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
45022         * doc/posix-functions/wcscoll_l.texi: Likewise.
45023         * doc/posix-functions/wcsdup.texi: Likewise.
45024         * doc/posix-functions/wcsncasecmp.texi: Likewise.
45025         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
45026         * doc/posix-functions/wcsnlen.texi: Likewise.
45027         * doc/posix-functions/wcsnrtombs.texi: Likewise.
45028         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
45029         * doc/posix-functions/wctrans_l.texi: Likewise.
45030         * doc/posix-functions/wctype_l.texi: Likewise.
45031         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
45032         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
45033         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
45034         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
45035         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
45036         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
45037         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
45038         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
45039         * doc/glibc-functions/wcschrnul.texi: Likewise.
45040         * doc/glibc-functions/wcsftime_l.texi: Likewise.
45041         * doc/glibc-functions/wcstod_l.texi: Likewise.
45042         * doc/glibc-functions/wcstof_l.texi: Likewise.
45043         * doc/glibc-functions/wcstol_l.texi: Likewise.
45044         * doc/glibc-functions/wcstold_l.texi: Likewise.
45045         * doc/glibc-functions/wcstoll_l.texi: Likewise.
45046         * doc/glibc-functions/wcstoq.texi: Likewise.
45047         * doc/glibc-functions/wcstoul_l.texi: Likewise.
45048         * doc/glibc-functions/wcstoull_l.texi: Likewise.
45049         * doc/glibc-functions/wcstouq.texi: Likewise.
45050         * doc/glibc-functions/wmempcpy.texi: Likewise.
45051
45052 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
45053             Eric Blake  <ebb9@byu.net>
45054             Paolo Bonzini  <bonzini@gnu.org>
45055             Bruno Haible  <bruno@clisp.org>
45056
45057         Make c-stack work on Haiku.
45058         * lib/c-stack.c (SA_ONSTACK): Define fallback.
45059         (c_stack_action): Use SA_ONSTACK flag.
45060
45061 2008-12-22  Bruno Haible  <bruno@clisp.org>
45062
45063         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
45064
45065 2008-12-22  Bruno Haible  <bruno@clisp.org>
45066
45067         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
45068         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
45069         being overridden.
45070         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
45071         New macros.
45072         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
45073         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
45074         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
45075         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
45076
45077 2008-12-22  Bruno Haible  <bruno@clisp.org>
45078
45079         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
45080         from test code.
45081
45082 2008-12-22  Eric Blake  <ebb9@byu.net>
45083
45084         Avoid gcc warnings on cygwin.
45085         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
45086         Avoid unused variable.
45087         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
45088         Likewise.
45089
45090 2008-12-22  Bruno Haible  <bruno@clisp.org>
45091
45092         Remove HAVE_MBRTOWC conditionals.
45093         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
45094         (mbscasecmp): Assume mbrtowc function.
45095         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
45096         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
45097         * lib/mbschr.c: Include mbuiter.h unconditionally.
45098         (mbschr): Assume mbrtowc function.
45099         * lib/mbscspn.c: Include mbuiter.h unconditionally.
45100         (mbscspn): Assume mbrtowc function.
45101         * lib/mbslen.c: Include mbuiter.h unconditionally.
45102         (mbslen): Assume mbrtowc function.
45103         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
45104         (mbsncasecmp): Assume mbrtowc function.
45105         * lib/mbsnlen.c: Include mbiter.h unconditionally.
45106         (mbsnlen): Assume mbrtowc function.
45107         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
45108         (mbspbrk): Assume mbrtowc function.
45109         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
45110         (mbspcasecmp): Assume mbrtowc function.
45111         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
45112         (mbsrchr): Assume mbrtowc function.
45113         * lib/mbssep.c: Include mbuiter.h unconditionally.
45114         (mbssep): Assume mbrtowc function.
45115         * lib/mbsspn.c: Include mbuiter.h unconditionally.
45116         (mbsspn): Assume mbrtowc function.
45117         * lib/mbsstr.c: Include mbuiter.h unconditionally.
45118         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
45119         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
45120         (mbstok_r): Assume mbrtowc function.
45121         * lib/propername.c: Include mbuiter.h unconditionally.
45122         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
45123         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
45124         (trim2): Assume mbrtowc function.
45125         * lib/mbswidth.c (mbsinit): Remove fallback definition.
45126         (mbsnwidth): Assume mbrtowc function.
45127         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
45128         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
45129         fallback definitions.
45130         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
45131
45132 2008-12-22  Bruno Haible  <bruno@clisp.org>
45133
45134         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
45135
45136 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
45137
45138         * modules/regex: Request emulations for the mb*/wc* functions we need.
45139         * m4/regex.m4: Don't look for those functions here.
45140         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
45141
45142 2008-12-22  Bruno Haible  <bruno@clisp.org>
45143
45144         * modules/fnmatch (Depends-on): Remove duplicated dependency.
45145
45146 2008-12-21  Bruno Haible  <bruno@clisp.org>
45147
45148         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
45149         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
45150         (Include): Remove conditionalization.
45151         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
45152         (Include): Remove conditionalization.
45153         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
45154         (Include): Remove conditionalization.
45155         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
45156         * m4/mbfile.m4 (gl_MBFILE): Likewise.
45157         * NEWS: Mention the change.
45158         Reported by Alan Hourihane <alanh@fairlite.co.uk>
45159         via Sergey Poznyakoff <gray@gnu.org.ua>.
45160
45161 2008-12-21  Bruno Haible  <bruno@clisp.org>
45162
45163         * MODULES.html.sh (Extended multibyte and wide character utilities
45164         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
45165         wcrtomb, wcsrtombs.
45166         (Support for systems lacking POSIX:2008): Add accept, bind, close,
45167         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
45168         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
45169         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
45170
45171 2008-12-21  Bruno Haible  <bruno@clisp.org>
45172
45173         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
45174
45175 2008-12-21  Bruno Haible  <bruno@clisp.org>
45176
45177         * modules/wcsnrtombs-tests: New file.
45178         * tests/test-wcsnrtombs1.sh: New file.
45179         * tests/test-wcsnrtombs2.sh: New file.
45180         * tests/test-wcsnrtombs3.sh: New file.
45181         * tests/test-wcsnrtombs4.sh: New file.
45182         * tests/test-wcsnrtombs.c: New file.
45183
45184         New module 'wcsnrtombs'.
45185         * lib/wchar.in.h (wcsnrtombs): New declaration.
45186         * lib/wcsnrtombs.c: New file.
45187         * lib/wcsrtombs-state.c: New file.
45188         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
45189         (internal_state): Remove variable.
45190         * m4/wcsnrtombs.m4: New file.
45191         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
45192         compilation units.
45193         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
45194         HAVE_WCSNRTOMBS.
45195         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
45196         HAVE_WCSNRTOMBS.
45197         * modules/wcsnrtombs: New file.
45198         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
45199         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
45200
45201 2008-12-21  Bruno Haible  <bruno@clisp.org>
45202
45203         * modules/wcsrtombs-tests: New file.
45204         * tests/test-wcsrtombs1.sh: New file.
45205         * tests/test-wcsrtombs2.sh: New file.
45206         * tests/test-wcsrtombs3.sh: New file.
45207         * tests/test-wcsrtombs4.sh: New file.
45208         * tests/test-wcsrtombs.c: New file.
45209
45210         New module 'wcsrtombs'.
45211         * lib/wchar.in.h (wcsrtombs): New declaration.
45212         * lib/wcsrtombs.c: New file.
45213         * m4/wcsrtombs.m4: New file.
45214         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
45215         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
45216         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
45217         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
45218         * modules/wcsrtombs: New file.
45219         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
45220         bugs.
45221
45222 2008-12-21  Bruno Haible  <bruno@clisp.org>
45223
45224         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
45225         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
45226         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
45227         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
45228         if not correct.
45229         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
45230         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
45231         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45232         m4/locale-zh.m4, m4/codeset.m4.
45233         * doc/posix-functions/wcrtomb.texi: Document the bug.
45234
45235 2008-12-21  Bruno Haible  <bruno@clisp.org>
45236
45237         Work around a btowc() bug on IRIX 6.5.
45238         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
45239         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
45240         REPLACE_WTOBC if not.
45241         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
45242         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
45243         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
45244
45245 2008-12-21  Bruno Haible  <bruno@clisp.org>
45246
45247         * modules/wcrtomb-tests: New file.
45248         * tests/test-wcrtomb.sh: New file.
45249         * tests/test-wcrtomb.c: New file.
45250
45251         New module 'wcrtomb'.
45252         * lib/wchar.in.h (wcrtomb): New declaration.
45253         * lib/wcrtomb.c: New file.
45254         * m4/wcrtomb.m4: New file.
45255         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
45256         HAVE_WCRTOMB.
45257         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
45258         HAVE_WCRTOMB.
45259         * modules/wcrtomb: New file.
45260         * doc/posix-functions/wcrtomb.texi: Mention the new module.
45261
45262 2008-12-21  Bruno Haible  <bruno@clisp.org>
45263
45264         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
45265         * modules/mbsrtowcs (Files): Likewise.
45266         * modules/wctob (Files): Likewise.
45267         * modules/c-strcase-tests (Files): Likewise.
45268         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
45269         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
45270         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
45271         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
45272         * modules/vasnprintf-posix-tests (Files): Likewise.
45273
45274 2008-12-21  William Pursell  <bill.pursell@gmail.com>
45275
45276         gitlog-to-changelog: pass all command-line arguments to git-log
45277         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
45278         it is sometimes convenient to filter the commits in various ways.
45279         gitlog-to-changelog only allows --since to specify a start date,
45280         but git-log itself supports many other filtering mechanisms.
45281         At the moment, I want to filter by branch name.  Rather than
45282         adding a --branch option to gitlog-to-changelog, it seems more
45283         flexible to simply pass all options directly to git-log and let
45284         git do the work.  Notice that this effectively makes --since a
45285         redundant option for gitlog-to-changelog, but removing it would
45286         require current usage to change since calls would then require
45287         an additional '--'.
45288
45289 2008-12-21  Bruno Haible  <bruno@clisp.org>
45290
45291         * modules/mbsnrtowcs-tests: New file.
45292         * tests/test-mbsnrtowcs1.sh: New file.
45293         * tests/test-mbsnrtowcs2.sh: New file.
45294         * tests/test-mbsnrtowcs3.sh: New file.
45295         * tests/test-mbsnrtowcs4.sh: New file.
45296         * tests/test-mbsnrtowcs.c: New file.
45297
45298         New module 'mbsnrtowcs'.
45299         * lib/wchar.in.h (mbsnrtowcs): New declaration.
45300         * lib/mbsnrtowcs.c: New file.
45301         * lib/mbsrtowcs-state.c: New file.
45302         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
45303         (internal_state): Remove variable.
45304         * m4/mbsnrtowcs.m4: New file.
45305         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
45306         compilation units.
45307         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
45308         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
45309         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
45310         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
45311         * modules/mbsnrtowcs: New file.
45312         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
45313         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
45314         portability problem.
45315
45316 2008-12-21  Bruno Haible  <bruno@clisp.org>
45317
45318         Work around mbsrtowcs bug.
45319         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
45320         (gl_FUNC_MBSRTOWCS): Invoke it.
45321         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45322         m4/locale-zh.m4.
45323         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
45324
45325 2008-12-21  Bruno Haible  <bruno@clisp.org>
45326
45327         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
45328
45329 2008-12-21  Bruno Haible  <bruno@clisp.org>
45330
45331         Update doc for AIX.
45332         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
45333         16-bit wchar_t type.
45334         * doc/posix-functions/btowc.texi: Likewise.
45335         * doc/posix-functions/fgetwc.texi: Likewise.
45336         * doc/posix-functions/fgetws.texi: Likewise.
45337         * doc/posix-functions/fputwc.texi: Likewise.
45338         * doc/posix-functions/fputws.texi: Likewise.
45339         * doc/posix-functions/fwide.texi: Likewise.
45340         * doc/posix-functions/fwprintf.texi: Likewise.
45341         * doc/posix-functions/fwscanf.texi: Likewise.
45342         * doc/posix-functions/getwchar.texi: Likewise.
45343         * doc/posix-functions/getwc.texi: Likewise.
45344         * doc/posix-functions/iswalnum.texi: Likewise.
45345         * doc/posix-functions/iswalpha.texi: Likewise.
45346         * doc/posix-functions/iswblank.texi: Likewise.
45347         * doc/posix-functions/iswcntrl.texi: Likewise.
45348         * doc/posix-functions/iswctype.texi: Likewise.
45349         * doc/posix-functions/iswdigit.texi: Likewise.
45350         * doc/posix-functions/iswgraph.texi: Likewise.
45351         * doc/posix-functions/iswlower.texi: Likewise.
45352         * doc/posix-functions/iswprint.texi: Likewise.
45353         * doc/posix-functions/iswpunct.texi: Likewise.
45354         * doc/posix-functions/iswspace.texi: Likewise.
45355         * doc/posix-functions/iswupper.texi: Likewise.
45356         * doc/posix-functions/iswxdigit.texi: Likewise.
45357         * doc/posix-functions/mbrtowc.texi: Likewise.
45358         * doc/posix-functions/mbsrtowcs.texi: Likewise.
45359         * doc/posix-functions/mbstowcs.texi: Likewise.
45360         * doc/posix-functions/mbtowc.texi: Likewise.
45361         * doc/posix-functions/putwchar.texi: Likewise.
45362         * doc/posix-functions/putwc.texi: Likewise.
45363         * doc/posix-functions/swprintf.texi: Likewise.
45364         * doc/posix-functions/tolower.texi: Likewise.
45365         * doc/posix-functions/toupper.texi: Likewise.
45366         * doc/posix-functions/towctrans.texi: Likewise.
45367         * doc/posix-functions/ungetwc.texi: Likewise.
45368         * doc/posix-functions/vswprintf.texi: Likewise.
45369         * doc/posix-functions/wcrtomb.texi: Likewise.
45370         * doc/posix-functions/wcscat.texi: Likewise.
45371         * doc/posix-functions/wcschr.texi: Likewise.
45372         * doc/posix-functions/wcscmp.texi: Likewise.
45373         * doc/posix-functions/wcscoll.texi: Likewise.
45374         * doc/posix-functions/wcscpy.texi: Likewise.
45375         * doc/posix-functions/wcscspn.texi: Likewise.
45376         * doc/posix-functions/wcsftime.texi: Likewise.
45377         * doc/posix-functions/wcslen.texi: Likewise.
45378         * doc/posix-functions/wcsncat.texi: Likewise.
45379         * doc/posix-functions/wcsncmp.texi: Likewise.
45380         * doc/posix-functions/wcsncpy.texi: Likewise.
45381         * doc/posix-functions/wcspbrk.texi: Likewise.
45382         * doc/posix-functions/wcsrchr.texi: Likewise.
45383         * doc/posix-functions/wcsrtombs.texi: Likewise.
45384         * doc/posix-functions/wcsspn.texi: Likewise.
45385         * doc/posix-functions/wcsstr.texi: Likewise.
45386         * doc/posix-functions/wcstod.texi: Likewise.
45387         * doc/posix-functions/wcstof.texi: Likewise.
45388         * doc/posix-functions/wcstoimax.texi: Likewise.
45389         * doc/posix-functions/wcstok.texi: Likewise.
45390         * doc/posix-functions/wcstold.texi: Likewise.
45391         * doc/posix-functions/wcstoll.texi: Likewise.
45392         * doc/posix-functions/wcstol.texi: Likewise.
45393         * doc/posix-functions/wcstombs.texi: Likewise.
45394         * doc/posix-functions/wcstoull.texi: Likewise.
45395         * doc/posix-functions/wcstoul.texi: Likewise.
45396         * doc/posix-functions/wcstoumax.texi: Likewise.
45397         * doc/posix-functions/wcswidth.texi: Likewise.
45398         * doc/posix-functions/wcsxfrm.texi: Likewise.
45399         * doc/posix-functions/wctob.texi: Likewise.
45400         * doc/posix-functions/wctomb.texi: Likewise.
45401         * doc/posix-functions/wctrans.texi: Likewise.
45402         * doc/posix-functions/wctype.texi: Likewise.
45403         * doc/posix-functions/wcwidth.texi: Likewise.
45404         * doc/posix-functions/wmemchr.texi: Likewise.
45405         * doc/posix-functions/wmemcmp.texi: Likewise.
45406         * doc/posix-functions/wmemcpy.texi: Likewise.
45407         * doc/posix-functions/wmemmove.texi: Likewise.
45408         * doc/posix-functions/wmemset.texi: Likewise.
45409         * doc/posix-functions/wprintf.texi: Likewise.
45410         * doc/posix-functions/wscanf.texi: Likewise.
45411
45412 2008-12-21  Bruno Haible  <bruno@clisp.org>
45413
45414         Update doc for HP-UX 11.11.
45415         * doc/posix-functions/btowc.texi: Clarify that the function is missing
45416         in HP-UX version 11.00, not in all versions of HP-UX 11.
45417         * doc/posix-functions/fwide.texi: Likewise.
45418         * doc/posix-functions/fwprintf.texi: Likewise.
45419         * doc/posix-functions/fwscanf.texi: Likewise.
45420         * doc/posix-functions/inet_ntop.texi: Likewise.
45421         * doc/posix-functions/inet_pton.texi: Likewise.
45422         * doc/posix-functions/mbrlen.texi: Likewise.
45423         * doc/posix-functions/mbrtowc.texi: Likewise.
45424         * doc/posix-functions/mbsinit.texi: Likewise.
45425         * doc/posix-functions/mbsrtowcs.texi: Likewise.
45426         * doc/posix-functions/swprintf.texi: Likewise.
45427         * doc/posix-functions/swscanf.texi: Likewise.
45428         * doc/posix-functions/towctrans.texi: Likewise.
45429         * doc/posix-functions/vfwprintf.texi: Likewise.
45430         * doc/posix-functions/vswprintf.texi: Likewise.
45431         * doc/posix-functions/vwprintf.texi: Likewise.
45432         * doc/posix-functions/wcrtomb.texi: Likewise.
45433         * doc/posix-functions/wcsrtombs.texi: Likewise.
45434         * doc/posix-functions/wcsstr.texi: Likewise.
45435         * doc/posix-functions/wctob.texi: Likewise.
45436         * doc/posix-functions/wctrans.texi: Likewise.
45437         * doc/posix-functions/wmemchr.texi: Likewise.
45438         * doc/posix-functions/wmemcmp.texi: Likewise.
45439         * doc/posix-functions/wmemcpy.texi: Likewise.
45440         * doc/posix-functions/wmemmove.texi: Likewise.
45441         * doc/posix-functions/wmemset.texi: Likewise.
45442         * doc/posix-functions/wprintf.texi: Likewise.
45443         * doc/posix-functions/wscanf.texi: Likewise.
45444
45445 2008-12-21  Bruno Haible  <bruno@clisp.org>
45446
45447         Work around a portability problem.
45448         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
45449         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
45450
45451 2008-12-20  Bruno Haible  <bruno@clisp.org>
45452
45453         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
45454         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
45455         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
45456         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
45457         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
45458
45459         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
45460         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
45461         set.
45462         (GNULIB_defined_mbstate_t): New macro.
45463         (mbsinit): Redefine if REPLACE_MBSINIT is set.
45464         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
45465         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
45466         reuses the system's mbrtowc function but works around the bugs.
45467         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
45468         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
45469         macros.
45470         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
45471         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
45472         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
45473         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
45474         REPLACE_MBSINIT if mbsinit needs to be overridden.
45475         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
45476         REPLACE_MBSINIT, REPLACE_MBRTOWC.
45477         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
45478         REPLACE_MBSINIT, REPLACE_MBRTOWC.
45479         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
45480         m4/locale-zh.m4.
45481         (Depends): Add mbsinit.
45482         * modules/mbsinit (Depends): Add mbrtowc.
45483         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
45484
45485 2008-12-20  Bruno Haible  <bruno@clisp.org>
45486
45487         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
45488         so that there are no conversion errors on AIX.
45489         * tests/test-mbsrtowcs.c (main): LIkewise.
45490
45491 2008-12-20  Bruno Haible  <bruno@clisp.org>
45492
45493         Work around wctob bug on Solaris <= 9.
45494         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
45495         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
45496         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
45497         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
45498         * modules/wctob (Files): Add m4/locale-fr.m4.
45499         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
45500
45501 2008-12-20  Bruno Haible  <bruno@clisp.org>
45502
45503         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
45504         /dev/null.
45505         * tests/test-select-in.sh: Likewise.
45506         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
45507
45508 2008-12-20  Bruno Haible  <bruno@clisp.org>
45509
45510         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
45511         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
45512         Cygwin 1.5.x.
45513
45514 2008-12-20  Bruno Haible  <bruno@clisp.org>
45515
45516         Ensure mbstate_t is defined on HP-UX 11.11.
45517         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
45518         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
45519         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
45520         AC_USE_SYSTEM_EXTENSIONS.
45521         * modules/fnmatch (Depends-on): Add extensions.
45522         * modules/mbrlen (Depends-on): Likewise.
45523         * modules/mbrtowc (Depends-on): Likewise.
45524         * modules/mbsinit (Depends-on): Likewise.
45525         * modules/mbsrtowcs (Depends-on): Likewise.
45526         * modules/mbswidth (Depends-on): Likewise.
45527         * modules/quotearg (Depends-on): Likewise.
45528         * modules/strftime (Depends-on): Likewise.
45529
45530 2008-12-20  Bruno Haible  <bruno@clisp.org>
45531
45532         Ensure wctob is declared on IRIX 6.5.
45533         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
45534         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
45535         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
45536         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
45537         of HAVE_WCTOB.
45538         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
45539         HAVE_WCTOB.
45540         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
45541
45542 2008-12-19  Bruno Haible  <bruno@clisp.org>
45543
45544         * modules/mbsrtowcs-tests: New file.
45545         * tests/test-mbsrtowcs1.sh: New file.
45546         * tests/test-mbsrtowcs2.sh: New file.
45547         * tests/test-mbsrtowcs3.sh: New file.
45548         * tests/test-mbsrtowcs4.sh: New file.
45549         * tests/test-mbsrtowcs.c: New file.
45550
45551         New module 'mbsrtowcs'.
45552         * lib/wchar.in.h (mbsrtowcs): New declaration.
45553         * lib/mbsrtowcs.c: New file.
45554         * m4/mbsrtowcs.m4: New file.
45555         * modules/mbsrtowcs: New file.
45556         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
45557         HAVE_MBSRTOWCS.
45558         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
45559         HAVE_MBSRTOWCS.
45560         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
45561
45562 2008-12-19  Bruno Haible  <bruno@clisp.org>
45563
45564         New module 'mbrlen'.
45565         * lib/wchar.in.h (mbrlen): New declaration.
45566         * lib/mbrlen.c: New file.
45567         * m4/mbrlen.m4: New file.
45568         * modules/mbrlen: New file.
45569         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
45570         HAVE_MBRLEN.
45571         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
45572         HAVE_MBRLEN.
45573         * doc/posix-functions/mbrlen.texi: Document the new module.
45574
45575 2008-12-19  Bruno Haible  <bruno@clisp.org>
45576
45577         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
45578         * modules/mbrtowc (Depends-on): Add verify.
45579         Suggested by Paul Eggert.
45580
45581 2008-12-18  Bruno Haible  <bruno@clisp.org>
45582
45583         * modules/mbsinit-tests: New file.
45584         * tests/test-mbsinit.sh: New file.
45585         * tests/test-mbsinit.c: New file.
45586
45587 2008-12-18  Bruno Haible  <bruno@clisp.org>
45588
45589         * modules/mbrtowc-tests: New file.
45590         * tests/test-mbrtowc1.sh: New file.
45591         * tests/test-mbrtowc2.sh: New file.
45592         * tests/test-mbrtowc3.sh: New file.
45593         * tests/test-mbrtowc4.sh: New file.
45594         * tests/test-mbrtowc.c: New file.
45595
45596         New module 'mbrtowc'.
45597         * lib/wchar.in.h (mbstate_t): Override when the system does not have
45598         mbsinit and mbrtowc.
45599         (mbrtowc): New declaration.
45600         * lib/mbrtowc.c: New file.
45601         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
45602         * modules/mbrtowc: New file.
45603         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
45604         HAVE_MBRTOWC.
45605         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
45606         HAVE_MBRTOWC.
45607         * doc/posix-functions/mbrtowc.texi: Document the new module.
45608
45609 2008-12-18  Bruno Haible  <bruno@clisp.org>
45610
45611         New module 'wctob'.
45612         * lib/wchar.in.h (wctob): New declaration.
45613         * lib/wctob.c: New file.
45614         * m4/wctob.m4: New file.
45615         * modules/wctob: New file.
45616         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
45617         HAVE_WCTOB.
45618         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
45619         * doc/posix-functions/wctob.texi: Document the new module.
45620
45621 2008-12-18  Bruno Haible  <bruno@clisp.org>
45622
45623         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
45624         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
45625
45626 2008-12-18  Simon Josefsson  <simon@josefsson.org>
45627
45628         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
45629         G. Christensen" <tgc@jupiterrise.com>.
45630
45631         * lib/flock.c: Need to include errno.h.  Reported by "Tom
45632         G. Christensen" <tgc@jupiterrise.com>.
45633
45634         * lib/flock.c: Need to include string.h.  Reported by "Tom
45635         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
45636         <ebb9@byu.net>.
45637
45638 2008-12-18  Bruno Haible  <bruno@clisp.org>
45639
45640         * m4/locale-ja.m4: New file, from GNU gettext.
45641
45642 2008-12-17  Bruno Haible  <bruno@clisp.org>
45643
45644         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
45645         Suggested by Eric Blake.
45646
45647 2008-12-17  Bruno Haible  <bruno@clisp.org>
45648
45649         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
45650
45651 2008-12-17  Bruno Haible  <bruno@clisp.org>
45652
45653         * lib/mbsinit.c: Include verify.h. Verify an assumption.
45654         * modules/mbsinit (Depends-on): Add verify.
45655         Suggested by Paul Eggert.
45656
45657 2008-12-17  Bruno Haible  <bruno@clisp.org>
45658
45659         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
45660         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
45661         gl_FUNC_MBRTOWC.
45662         * m4/mbiter.m4 (gl_MBITER): LIkewise.
45663         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
45664         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
45665         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
45666         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
45667         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
45668         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
45669         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
45670         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
45671         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
45672         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
45673         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
45674         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
45675         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
45676         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
45677         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
45678         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
45679         * modules/trim (configure.ac): Likewise.
45680
45681 2008-12-17  Bruno Haible  <bruno@clisp.org>
45682
45683         * modules/btowc-tests: New file.
45684         * tests/test-btowc1.sh: New file.
45685         * tests/test-btowc2.sh: New file.
45686         * tests/test-btowc.c: New file.
45687
45688         New module 'btowc'.
45689         * lib/wchar.in.h (btowc): New declaration.
45690         * lib/btowc.c: New file.
45691         * m4/btowc.m4: New file.
45692         * modules/btowc: New file.
45693         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
45694         HAVE_BTOWC.
45695         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
45696         * doc/posix-functions/btowc.texi: Document the new module.
45697
45698 2008-12-17  Bruno Haible  <bruno@clisp.org>
45699
45700         New module 'mbsinit'.
45701         * lib/wchar.in.h (mbsinit): New declaration.
45702         * lib/mbsinit.c: New file.
45703         * m4/mbsinit.m4: New file.
45704         * modules/mbsinit: New file.
45705         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
45706         HAVE_MBSINIT.
45707         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
45708         HAVE_MBSINIT.
45709         * doc/posix-functions/mbsinit.texi: Document the new module.
45710
45711 2008-12-16  Bruno Haible  <bruno@clisp.org>
45712
45713         * lib/unistd.in.h: Add comment.
45714         * tests/test-environ.c: Don't include <stdlib.h>.
45715
45716 2008-12-16  Bruno Haible  <bruno@clisp.org>
45717
45718         * lib/parse-duration.h (parse_duration): Document return value
45719         convention.
45720         * lib/parse-duration.c: Include specification header first. Add
45721         comments.
45722         (_): Remove macro.
45723         (parse_year_month_day, parse_hour_minute_second): Move side effects
45724         outside of strchr call.
45725         (parse_non_iso8601): Move side effects outside of isspace call.
45726         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
45727         call.
45728
45729 2008-12-16  Bruno Haible  <bruno@clisp.org>
45730
45731         * tests/test-parse-duration.sh: Produce no output when the test
45732         succeeds.
45733
45734 2008-12-16  Bruno Haible  <bruno@clisp.org>
45735
45736         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
45737         expressions.
45738
45739 2008-12-15  Bruno Haible  <bruno@clisp.org>
45740
45741         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
45742         * doc/glibc-functions/flistxattr.texi: Likewise.
45743         * doc/glibc-functions/fopencookie.texi: Likewise.
45744         * doc/glibc-functions/fremovexattr.texi: Likewise.
45745         * doc/glibc-functions/fsetxattr.texi: Likewise.
45746         * doc/glibc-functions/getxattr.texi: Likewise.
45747         * doc/glibc-functions/lgetxattr.texi: Likewise.
45748         * doc/glibc-functions/listxattr.texi: Likewise.
45749         * doc/glibc-functions/llistxattr.texi: Likewise.
45750         * doc/glibc-functions/lremovexattr.texi: Likewise.
45751         * doc/glibc-functions/lsetxattr.texi: Likewise.
45752         * doc/glibc-functions/removexattr.texi: Likewise.
45753         * doc/glibc-functions/setxattr.texi: Likewise.
45754         * doc/posix-functions/open_memstream.texi: Likewise.
45755
45756 2008-12-15  Eric Blake  <ebb9@byu.net>
45757
45758         Update doc for cygwin 1.7.
45759         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
45760         functions.
45761         * doc/posix-functions/fchmodat.texi: Likewise.
45762         * doc/posix-functions/fchownat.texi: Likewise.
45763         * doc/posix-functions/fdopendir.texi: Likewise.
45764         * doc/posix-functions/fmemopen.texi: Likewise.
45765         * doc/posix-functions/freeaddrinfo.texi: Likewise.
45766         * doc/posix-functions/fstatat.texi: Likewise.
45767         * doc/posix-functions/futimens.texi: Likewise.
45768         * doc/posix-functions/gai_strerror.texi: Likewise.
45769         * doc/posix-functions/getaddrinfo.texi: Likewise.
45770         * doc/posix-functions/getnameinfo.texi: Likewise.
45771         * doc/posix-functions/if_freenameindex.texi: Likewise.
45772         * doc/posix-functions/if_indextoname.texi: Likewise.
45773         * doc/posix-functions/if_nameindex.texi: Likewise.
45774         * doc/posix-functions/if_nametoindex.texi: Likewise.
45775         * doc/posix-functions/insque.texi: Likewise.
45776         * doc/posix-functions/linkat.texi: Likewise.
45777         * doc/posix-functions/llrint.texi: Likewise.
45778         * doc/posix-functions/llrintf.texi: Likewise.
45779         * doc/posix-functions/llrintl.texi: Likewise.
45780         * doc/posix-functions/lockf.texi: Likewise.
45781         * doc/posix-functions/lrintl.texi: Likewise.
45782         * doc/posix-functions/mkdirat.texi: Likewise.
45783         * doc/posix-functions/mkfifoat.texi: Likewise.
45784         * doc/posix-functions/mknodat.texi: Likewise.
45785         * doc/posix-functions/mq_close.texi: Likewise.
45786         * doc/posix-functions/mq_getattr.texi: Likewise.
45787         * doc/posix-functions/mq_notify.texi: Likewise.
45788         * doc/posix-functions/mq_open.texi: Likewise.
45789         * doc/posix-functions/mq_receive.texi: Likewise.
45790         * doc/posix-functions/mq_send.texi: Likewise.
45791         * doc/posix-functions/mq_setattr.texi: Likewise.
45792         * doc/posix-functions/mq_timedreceive.texi: Likewise.
45793         * doc/posix-functions/mq_timedsend.texi: Likewise.
45794         * doc/posix-functions/mq_unlink.texi: Likewise.
45795         * doc/posix-functions/open_memstream.texi: Likewise.
45796         * doc/posix-functions/openat.texi: Likewise.
45797         * doc/posix-functions/posix_fadvise.texi: Likewise.
45798         * doc/posix-functions/posix_fallocate.texi: Likewise.
45799         * doc/posix-functions/posix_madvise.texi: Likewise.
45800         * doc/posix-functions/posix_memalign.texi: Likewise.
45801         * doc/posix-functions/posix_openpt.texi: Likewise.
45802         * doc/posix-functions/readlinkat.texi: Likewise.
45803         * doc/posix-functions/remque.texi: Likewise.
45804         * doc/posix-functions/renameat.texi: Likewise.
45805         * doc/posix-functions/rintl.texi: Likewise.
45806         * doc/posix-functions/sem_unlink.texi: Likewise.
45807         * doc/posix-functions/shm_open.texi: Likewise.
45808         * doc/posix-functions/shm_unlink.texi: Likewise.
45809         * doc/posix-functions/signgam.texi: Likewise.
45810         * doc/posix-functions/sigset.texi: Likewise.
45811         * doc/posix-functions/stpcpy.texi: Likewise.
45812         * doc/posix-functions/stpncpy.texi: Likewise.
45813         * doc/posix-functions/strerror.texi: Likewise.
45814         * doc/posix-functions/strtod.texi: Likewise.
45815         * doc/posix-functions/symlinkat.texi: Likewise.
45816         * doc/posix-functions/unlinkat.texi: Likewise.
45817         * doc/posix-functions/utimensat.texi: Likewise.
45818         * doc/glibc-functions/bindresvport.texi: Likewise.
45819         * doc/glibc-functions/dn_expand.texi: Likewise.
45820         * doc/glibc-functions/exp10.texi: Likewise.
45821         * doc/glibc-functions/exp10f.texi: Likewise.
45822         * doc/glibc-functions/fgetxattr.texi: Likewise.
45823         * doc/glibc-functions/flistxattr.texi: Likewise.
45824         * doc/glibc-functions/fopencookie.texi: Likewise.
45825         * doc/glibc-functions/freeifaddrs.texi: Likewise.
45826         * doc/glibc-functions/fremovexattr.texi: Likewise.
45827         * doc/glibc-functions/fsetxattr.texi: Likewise.
45828         * doc/glibc-functions/getifaddrs.texi: Likewise.
45829         * doc/glibc-functions/getxattr.texi: Likewise.
45830         * doc/glibc-functions/lgetxattr.texi: Likewise.
45831         * doc/glibc-functions/listxattr.texi: Likewise.
45832         * doc/glibc-functions/llistxattr.texi: Likewise.
45833         * doc/glibc-functions/lremovexattr.texi: Likewise.
45834         * doc/glibc-functions/lsetxattr.texi: Likewise.
45835         * doc/glibc-functions/pow10.texi: Likewise.
45836         * doc/glibc-functions/pow10f.texi: Likewise.
45837         * doc/glibc-functions/rcmd_af.texi: Likewise.
45838         * doc/glibc-functions/removexattr.texi: Likewise.
45839         * doc/glibc-functions/res_init.texi: Likewise.
45840         * doc/glibc-functions/res_mkquery.texi: Likewise.
45841         * doc/glibc-functions/res_query.texi: Likewise.
45842         * doc/glibc-functions/res_querydomain.texi: Likewise.
45843         * doc/glibc-functions/res_send.texi: Likewise.
45844         * doc/glibc-functions/rresvport_af.texi: Likewise.
45845         * doc/glibc-functions/setxattr.texi: Likewise.
45846         * doc/glibc-functions/strcasestr.texi: Likewise.
45847
45848 2008-12-15  Bruno Haible  <bruno@clisp.org>
45849
45850         Fix compilation error on OSF/1 4.0.
45851         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
45852         <sys/time.h>, simply delegate to the system header.
45853         Reported by Daniel Richard G. <oss@teragram.com>.
45854
45855 2008-12-15  Bruno Haible  <bruno@clisp.org>
45856
45857         * doc/posix-functions/openat.texi: Mention the 'openat' module.
45858         * doc/posix-functions/fchmodat.texi: Likewise.
45859         * doc/posix-functions/fchownat.texi: Likewise.
45860         * doc/posix-functions/fdopendir.texi: Likewise.
45861         * doc/posix-functions/fstatat.texi: Likewise.
45862         * doc/posix-functions/mkdirat.texi: Likewise.
45863         * doc/posix-functions/unlinkat.texi: Likewise.
45864
45865 2008-12-14  Bruno Haible  <bruno@clisp.org>
45866
45867         Update doc for POSIX:2008.
45868         * doc/posix-functions/faccessat.texi: New file.
45869         * doc/posix-functions/fchmodat.texi: New file.
45870         * doc/posix-functions/fchownat.texi: New file.
45871         * doc/posix-functions/fdopendir.texi: New file.
45872         * doc/posix-functions/fstatat.texi: New file.
45873         * doc/posix-functions/futimens.texi: New file.
45874         * doc/posix-functions/linkat.texi: New file.
45875         * doc/posix-functions/mkdirat.texi: New file.
45876         * doc/posix-functions/mkfifoat.texi: New file.
45877         * doc/posix-functions/mknodat.texi: New file.
45878         * doc/posix-functions/open_wmemstream.texi: New file.
45879         * doc/posix-functions/openat.texi: New file.
45880         * doc/posix-functions/psiginfo.texi: New file.
45881         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
45882         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
45883         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
45884         * doc/posix-functions/readlinkat.texi: New file.
45885         * doc/posix-functions/renameat.texi: New file.
45886         * doc/posix-functions/strerror_l.texi: New file.
45887         * doc/posix-functions/symlinkat.texi: New file.
45888         * doc/posix-functions/unlinkat.texi: New file.
45889         * doc/posix-functions/utimensat.texi: New file.
45890         * doc/gnulib.texi (Function Substitutes): Add these subsections.
45891
45892 2008-12-14  Bruno Haible  <bruno@clisp.org>
45893
45894         Update doc for POSIX:2008.
45895         * doc/posix-functions/alphasort.texi: Renamed from
45896         doc/glibc-functions/alphasort.texi.
45897         * doc/posix-functions/dirfd.texi: Renamed from
45898         doc/glibc-functions/dirfd.texi.
45899         * doc/posix-functions/dprintf.texi: Renamed from
45900         doc/glibc-functions/dprintf.texi.
45901         * doc/posix-functions/duplocale.texi: Renamed from
45902         doc/glibc-functions/duplocale.texi.
45903         * doc/posix-functions/fexecve.texi: Renamed from
45904         doc/glibc-functions/fexecve.texi.
45905         * doc/posix-functions/fmemopen.texi: Renamed from
45906         doc/glibc-functions/fmemopen.texi.
45907         * doc/posix-functions/freelocale.texi: Renamed from
45908         doc/glibc-functions/freelocale.texi.
45909         * doc/posix-functions/getdate_err.texi: Renamed from
45910         doc/glibc-functions/getdate_err.texi.
45911         * doc/posix-functions/isalnum_l.texi: Renamed from
45912         doc/glibc-functions/isalnum_l.texi.
45913         * doc/posix-functions/isalpha_l.texi: Renamed from
45914         doc/glibc-functions/isalpha_l.texi.
45915         * doc/posix-functions/isblank_l.texi: Renamed from
45916         doc/glibc-functions/isblank_l.texi.
45917         * doc/posix-functions/iscntrl_l.texi: Renamed from
45918         doc/glibc-functions/iscntrl_l.texi.
45919         * doc/posix-functions/isdigit_l.texi: Renamed from
45920         doc/glibc-functions/isdigit_l.texi.
45921         * doc/posix-functions/isgraph_l.texi: Renamed from
45922         doc/glibc-functions/isgraph_l.texi.
45923         * doc/posix-functions/islower_l.texi: Renamed from
45924         doc/glibc-functions/islower_l.texi.
45925         * doc/posix-functions/isprint_l.texi: Renamed from
45926         doc/glibc-functions/isprint_l.texi.
45927         * doc/posix-functions/ispunct_l.texi: Renamed from
45928         doc/glibc-functions/ispunct_l.texi.
45929         * doc/posix-functions/isspace_l.texi: Renamed from
45930         doc/glibc-functions/isspace_l.texi.
45931         * doc/posix-functions/isupper_l.texi: Renamed from
45932         doc/glibc-functions/isupper_l.texi.
45933         * doc/posix-functions/iswalnum_l.texi: Renamed from
45934         doc/glibc-functions/iswalnum_l.texi.
45935         * doc/posix-functions/iswalpha_l.texi: Renamed from
45936         doc/glibc-functions/iswalpha_l.texi.
45937         * doc/posix-functions/iswblank_l.texi: Renamed from
45938         doc/glibc-functions/iswblank_l.texi.
45939         * doc/posix-functions/iswcntrl_l.texi: Renamed from
45940         doc/glibc-functions/iswcntrl_l.texi.
45941         * doc/posix-functions/iswctype_l.texi: Renamed from
45942         doc/glibc-functions/iswctype_l.texi.
45943         * doc/posix-functions/iswdigit_l.texi: Renamed from
45944         doc/glibc-functions/iswdigit_l.texi.
45945         * doc/posix-functions/iswgraph_l.texi: Renamed from
45946         doc/glibc-functions/iswgraph_l.texi.
45947         * doc/posix-functions/iswlower_l.texi: Renamed from
45948         doc/glibc-functions/iswlower_l.texi.
45949         * doc/posix-functions/iswprint_l.texi: Renamed from
45950         doc/glibc-functions/iswprint_l.texi.
45951         * doc/posix-functions/iswpunct_l.texi: Renamed from
45952         doc/glibc-functions/iswpunct_l.texi.
45953         * doc/posix-functions/iswspace_l.texi: Renamed from
45954         doc/glibc-functions/iswspace_l.texi.
45955         * doc/posix-functions/iswupper_l.texi: Renamed from
45956         doc/glibc-functions/iswupper_l.texi.
45957         * doc/posix-functions/iswxdigit_l.texi: Renamed from
45958         doc/glibc-functions/iswxdigit_l.texi.
45959         * doc/posix-functions/isxdigit_l.texi: Renamed from
45960         doc/glibc-functions/isxdigit_l.texi.
45961         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
45962         doc/glibc-functions/mbsnrtowcs.texi.
45963         * doc/posix-functions/mkdtemp.texi: Renamed from
45964         doc/glibc-functions/mkdtemp.texi.
45965         * doc/posix-functions/newlocale.texi: Renamed from
45966         doc/glibc-functions/newlocale.texi.
45967         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
45968         doc/glibc-functions/nl_langinfo_l.texi.
45969         * doc/posix-functions/open_memstream.texi: Renamed from
45970         doc/glibc-functions/open_memstream.texi.
45971         * doc/posix-functions/opterr.texi: Renamed from
45972         doc/glibc-functions/opterr.texi.
45973         * doc/posix-functions/optind.texi: Renamed from
45974         doc/glibc-functions/optind.texi.
45975         * doc/posix-functions/optopt.texi: Renamed from
45976         doc/glibc-functions/optopt.texi.
45977         * doc/posix-functions/psignal.texi: Renamed from
45978         doc/glibc-functions/psignal.texi.
45979         * doc/posix-functions/scandir.texi: Renamed from
45980         doc/glibc-functions/scandir.texi.
45981         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
45982         doc/glibc-functions/sched_get_priority_min.texi.
45983         * doc/posix-functions/signgam.texi: Renamed from
45984         doc/glibc-functions/signgam.texi.
45985         * doc/posix-functions/stpcpy.texi: Renamed from
45986         doc/glibc-functions/stpcpy.texi.
45987         * doc/posix-functions/stpncpy.texi: Renamed from
45988         doc/glibc-functions/stpncpy.texi.
45989         * doc/posix-functions/strcasecmp_l.texi: Renamed from
45990         doc/glibc-functions/strcasecmp_l.texi.
45991         * doc/posix-functions/strcoll_l.texi: Renamed from
45992         doc/glibc-functions/strcoll_l.texi.
45993         * doc/posix-functions/strfmon_l.texi: Renamed from
45994         doc/glibc-functions/strfmon_l.texi.
45995         * doc/posix-functions/strftime_l.texi: Renamed from
45996         doc/glibc-functions/strftime_l.texi.
45997         * doc/posix-functions/strncasecmp_l.texi: Renamed from
45998         doc/glibc-functions/strncasecmp_l.texi.
45999         * doc/posix-functions/strndup.texi: Renamed from
46000         doc/glibc-functions/strndup.texi.
46001         * doc/posix-functions/strnlen.texi: Renamed from
46002         doc/glibc-functions/strnlen.texi.
46003         * doc/posix-functions/strsignal.texi: Renamed from
46004         doc/glibc-functions/strsignal.texi.
46005         * doc/posix-functions/strxfrm_l.texi: Renamed from
46006         doc/glibc-functions/strxfrm_l.texi.
46007         * doc/posix-functions/timer_gettime.texi: Renamed from
46008         doc/glibc-functions/timer_gettime.texi.
46009         * doc/posix-functions/tolower_l.texi: Renamed from
46010         doc/glibc-functions/tolower_l.texi.
46011         * doc/posix-functions/toupper_l.texi: Renamed from
46012         doc/glibc-functions/toupper_l.texi.
46013         * doc/posix-functions/towctrans_l.texi: Renamed from
46014         doc/glibc-functions/towctrans_l.texi.
46015         * doc/posix-functions/towlower_l.texi: Renamed from
46016         doc/glibc-functions/towlower_l.texi.
46017         * doc/posix-functions/towupper_l.texi: Renamed from
46018         doc/glibc-functions/towupper_l.texi.
46019         * doc/posix-functions/uselocale.texi: Renamed from
46020         doc/glibc-functions/uselocale.texi.
46021         * doc/posix-functions/vdprintf.texi: Renamed from
46022         doc/glibc-functions/vdprintf.texi.
46023         * doc/posix-functions/wcpcpy.texi:
46024         Renamed from doc/glibc-functions/wcpcpy.texi.
46025         * doc/posix-functions/wcpncpy.texi: Renamed from
46026         doc/glibc-functions/wcpncpy.texi.
46027         * doc/posix-functions/wcscasecmp.texi: Renamed from
46028         doc/glibc-functions/wcscasecmp.texi.
46029         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
46030         doc/glibc-functions/wcscasecmp_l.texi.
46031         * doc/posix-functions/wcscoll_l.texi: Renamed from
46032         doc/glibc-functions/wcscoll_l.texi.
46033         * doc/posix-functions/wcsdup.texi: Renamed from
46034         doc/glibc-functions/wcsdup.texi.
46035         * doc/posix-functions/wcsncasecmp.texi: Renamed from
46036         doc/glibc-functions/wcsncasecmp.texi.
46037         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
46038         doc/glibc-functions/wcsncasecmp_l.texi.
46039         * doc/posix-functions/wcsnlen.texi: Renamed from
46040         doc/glibc-functions/wcsnlen.texi.
46041         * doc/posix-functions/wcsnrtombs.texi: Renamed from
46042         doc/glibc-functions/wcsnrtombs.texi.
46043         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
46044         doc/glibc-functions/wcsxfrm_l.texi.
46045         * doc/posix-functions/wctrans_l.texi: Renamed from
46046         doc/glibc-functions/wctrans_l.texi.
46047         * doc/posix-functions/wctype_l.texi: Renamed from
46048         doc/glibc-functions/wctype_l.texi.
46049         * doc/gnulib.texi (Function Substitutes): Add these subsections.
46050         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
46051         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
46052         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
46053         these subsections.
46054         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
46055         Remove sections.
46056
46057 2008-12-14  Bruno Haible  <bruno@clisp.org>
46058
46059         Update doc for POSIX:2008.
46060         * doc/posix-functions/*.texi: Update URL of POSIX specification.
46061
46062 2008-12-14  Bruno Haible  <bruno@clisp.org>
46063
46064         Update doc for POSIX:2008.
46065         * doc/pastposix-functions/bcmp.texi: Renamed from
46066         doc/posix-functions/bcmp.texi.
46067         * doc/pastposix-functions/bcopy.texi: Renamed from
46068         doc/posix-functions/bcopy.texi.
46069         * doc/pastposix-functions/bsd_signal.texi: Renamed from
46070         doc/posix-functions/bsd_signal.texi.
46071         * doc/pastposix-functions/bzero.texi: Renamed from
46072         doc/posix-functions/bzero.texi.
46073         * doc/pastposix-functions/ecvt.texi: Renamed from
46074         doc/posix-functions/ecvt.texi.
46075         * doc/pastposix-functions/fcvt.texi: Renamed from
46076         doc/posix-functions/fcvt.texi.
46077         * doc/pastposix-functions/ftime.texi: Renamed from
46078         doc/posix-functions/ftime.texi.
46079         * doc/pastposix-functions/gcvt.texi: Renamed from
46080         doc/posix-functions/gcvt.texi.
46081         * doc/pastposix-functions/getcontext.texi: Renamed from
46082         doc/posix-functions/getcontext.texi.
46083         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
46084         doc/posix-functions/gethostbyaddr.texi.
46085         * doc/pastposix-functions/gethostbyname.texi: Renamed from
46086         doc/posix-functions/gethostbyname.texi.
46087         * doc/pastposix-functions/getwd.texi: Renamed from
46088         doc/posix-functions/getwd.texi.
46089         * doc/pastposix-functions/h_errno.texi: Renamed from
46090         doc/posix-functions/h_errno.texi.
46091         * doc/pastposix-functions/index.texi: Renamed from
46092         doc/posix-functions/index.texi.
46093         * doc/pastposix-functions/makecontext.texi: Renamed from
46094         doc/posix-functions/makecontext.texi.
46095         * doc/pastposix-functions/mktemp.texi: Renamed from
46096         doc/posix-functions/mktemp.texi.
46097         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
46098         doc/posix-functions/pthread_attr_getstackaddr.texi.
46099         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
46100         doc/posix-functions/pthread_attr_setstackaddr.texi.
46101         * doc/pastposix-functions/rindex.texi: Renamed from
46102         doc/posix-functions/rindex.texi.
46103         * doc/pastposix-functions/scalb.texi: Renamed from
46104         doc/posix-functions/scalb.texi.
46105         * doc/pastposix-functions/setcontext.texi: Renamed from
46106         doc/posix-functions/setcontext.texi.
46107         * doc/pastposix-functions/swapcontext.texi: Renamed from
46108         doc/posix-functions/swapcontext.texi.
46109         * doc/pastposix-functions/ualarm.texi: Renamed from
46110         doc/posix-functions/ualarm.texi.
46111         * doc/pastposix-functions/usleep.texi: Renamed from
46112         doc/posix-functions/usleep.texi.
46113         * doc/pastposix-functions/vfork.texi: Renamed from
46114         doc/posix-functions/vfork.texi.
46115         * doc/pastposix-functions/wcswcs.texi: Renamed from
46116         doc/posix-functions/wcswcs.texi.
46117         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
46118         (Function Substitutes): Update.
46119
46120 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46121
46122         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
46123         m4/strerror.m4.
46124
46125 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46126             Bruno Haible  <bruno@clisp.org>
46127
46128         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
46129
46130 2008-12-13  Bruno Haible  <bruno@clisp.org>
46131
46132         * modules/strtoull (Depends-on): Remove unistd.
46133
46134 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46135
46136         * modules/strtoull (Depends-on): Add stdlib.
46137
46138 2008-12-11  Simon Josefsson  <simon@josefsson.org>
46139
46140         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
46141
46142 2008-12-10  Jim Meyering  <meyering@redhat.com>
46143
46144         gl_ASSERT: don't say assertions are disabled when they're not
46145         * m4/assert.m4 (gl_ASSERT): Do not make configure report
46146         "checking whether to enable assertions... no", when they are in
46147         fact enabled.  This is solely a bug in the output of configure.
46148         In spite of saying "no", NDEBUG was not defined in that case.
46149         Also, as noted by Eric Blake, leave assertions enabled upon
46150         --enable-assert=INVALID.
46151
46152 2008-12-10  Bruno Haible  <bruno@clisp.org>
46153
46154         Change MODULES.html to refer to POSIX:2008 where possible.
46155         * MODULES.html.sh (POSIX2008_URL): New variable.
46156         (posix_headers): Remove sys/timeb, ucontext.
46157         (posix2001_headers): New variable.
46158         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
46159         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
46160         index, makecontext, mktemp, pthread_attr_getstackaddr,
46161         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
46162         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
46163         (posix2001_functions): New variable.
46164         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
46165         otherwise.
46166
46167 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46168
46169         add missing include to parse-duration.c
46170         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
46171         * modules/parse-duration (Depends-on): Add xalloc.
46172
46173         fix sed script reading maint.mk
46174         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
46175         (syntax-check-rules): Use it.
46176
46177 2008-12-09  Bruno Haible  <bruno@clisp.org>
46178
46179         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
46180         MacOS X 10.4/PowerPC.
46181         Reported by Simon Josefsson.
46182
46183 2008-12-08  Jim Meyering  <meyering@redhat.com>
46184
46185         work around mingw's lack of some S_IF definitions
46186         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
46187         Reported by Simon Josefsson.
46188
46189 2008-12-08  Bruno Haible  <bruno@clisp.org>
46190
46191         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
46192         applied to variables. Needed on MacOS X 10.4/PowerPC.
46193         Reported by Simon Josefsson.
46194
46195 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
46196         and Eric Blake  <ebb9@byu.net>
46197
46198         assert: honor --enable-assert
46199         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
46200         order to honor --enable-assert, rather than treating it as a
46201         synonym for --disable-assert.
46202
46203 2008-12-08  Jim Meyering  <meyering@redhat.com>
46204
46205         * lib/posixtm.c: Remove now-useless declaration of mktime.
46206
46207         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
46208
46209 2008-12-07  Bruno Haible  <bruno@clisp.org>
46210
46211         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
46212         test_once): Mark functions as static.
46213         * tests/test-tls.c (test_tls): Likewise.
46214
46215 2008-12-07  Bruno Haible  <bruno@clisp.org>
46216
46217         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
46218         iconv_register_autodetect.
46219
46220 2008-12-07  Jim Meyering  <meyering@redhat.com>
46221
46222         posixtm.c: avoid a warning
46223         * lib/posixtm.c (posixtime): Don't initialize tm0.
46224         It's no longer needed to placate gcc4's -Wuninitialized,
46225         and the attempt to placate would elicit a new warning.
46226
46227         unicodeio.c: mark unused parameters
46228         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
46229         (fallback_failure_callback): Likewise.
46230
46231 2008-12-07  Bruno Haible  <bruno@clisp.org>
46232
46233         * gnulib-tool (func_create_testdir): When building the tests
46234         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
46235         Reported by Simon Josefsson.
46236
46237 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46238
46239         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
46240
46241 2008-12-06  Bruno Haible  <bruno@clisp.org>
46242
46243         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
46244         Suggested by Eric Blake.
46245
46246 2008-12-06  Bruno Haible  <bruno@clisp.org>
46247
46248         Fix a c-stack test failure on MacOS X.
46249         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
46250         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
46251         handler for SIGBUS as well.
46252         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
46253         install a signal handler for SIGBUS as well.
46254         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
46255
46256 2008-12-06  Bruno Haible  <bruno@clisp.org>
46257
46258         Advocacy documentation.
46259         * doc/gnulib-intro.texi (Benefits): New section.
46260         * doc/gnulib.texi: Update.
46261
46262 2008-12-06  Bruno Haible  <bruno@clisp.org>
46263
46264         Document the 'manywarnings' module.
46265         * doc/manywarnings.texi: New file.
46266         * doc/gnulib.texi: Include it.
46267
46268 2008-12-05  Eric Blake  <ebb9@byu.net>
46269
46270         tests: silence some gcc warnings
46271         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
46272         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
46273         type mismatches.
46274
46275 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46276             Bruno Haible  <bruno@clisp.org>
46277
46278         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
46279
46280 2008-11-29  Jim Meyering  <meyering@redhat.com>
46281
46282         unicodeio.c: mark unused parameters
46283         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
46284         (fallback_failure_callback): Likewise.
46285
46286         fts: fix a thinko
46287         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
46288         (set_stat_type): Return S_IF*-valued "type" directly.
46289         Prompted by James Youngman's spotting a related bug.
46290         Confirmed by further testing through find.
46291
46292         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
46293         * lib/fts.c (D_TYPE): Define.
46294         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
46295         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
46296         (s_ifmt_shift_bits): New function.
46297         (set_stat_type): New function.
46298         (fts_build): When not calling fts_stat, call set_stat_type
46299         to propagate dirent.d_type info to fts_read caller.
46300         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
46301         fts_statp->st_mode type information may be valid.
46302
46303 2008-11-28  Simon Josefsson  <simon@josefsson.org>
46304
46305         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
46306         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
46307         <sds@gnu.org>.
46308
46309 2008-11-20  Bruno Haible  <bruno@clisp.org>
46310
46311         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
46312         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
46313         INCLUDE_NEXT.
46314         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
46315         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
46316         * modules/math (Makefile.am): Substitute
46317         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
46318         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46319
46320 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
46321             Bruno Haible  <bruno@clisp.org>
46322
46323         * lib/stdint.in.h: Define all type macros so that their expansion is
46324         a single typedef'ed token. Fixes a compilation failure in Boost which
46325         does "using ::int8_t;".
46326
46327 2008-11-18  Simon Josefsson  <simon@josefsson.org>
46328
46329         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
46330         gl_MANYWARN_ALL_GCC.
46331         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
46332         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
46333         * modules/manywarnings: New file.
46334         * MODULES.html.sh: Mention manywarnings module.
46335
46336 2008-11-18  Bruno Haible  <bruno@clisp.org>
46337
46338         * doc/gnulib-tool.texi (Unit tests): New section.
46339
46340 2008-11-18  Simon Josefsson  <simon@josefsson.org>
46341
46342         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
46343         paths like 'lib/po/foo.po'.
46344
46345 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46346
46347         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
46348         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
46349
46350 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46351
46352         * m4/warnings.m4: Use CPPFLAGS to really check whether the
46353         parameter works.
46354
46355 2008-11-17  Simon Josefsson  <simon@josefsson.org>
46356
46357         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
46358
46359 2008-11-17  Bruce Korb  <bkorb@gnu.org>
46360
46361         * modules/parse-duration-tests: New file.
46362         * tests/test-parse-duration.sh: New file.
46363         * tests/test-parse-duration.c: New file.
46364
46365         New module 'parse-duration'.
46366         * lib/parse-duration.h: New file.
46367         * lib/parse-duration.c: New file.
46368         * modules/parse-duration: New file.
46369
46370 2008-11-17  Bruno Haible  <bruno@clisp.org>
46371
46372         * tests/test-select-out.sh: Comment out the first pipe test.
46373         Reported by Simon Josefsson.
46374
46375 2008-11-17  Bruno Haible  <bruno@clisp.org>
46376
46377         * modules/getaddrinfo (Depends-on): Add servent, hostent.
46378         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
46379         gl_HOSTENT.
46380
46381 2008-11-17  Bruno Haible  <bruno@clisp.org>
46382
46383         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
46384         -lnetwork and -lnet. Needed for Haiku and BeOS.
46385
46386 2008-11-16  Bruno Haible  <bruno@clisp.org>
46387
46388         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
46389
46390 2008-11-16  Bruno Haible  <bruno@clisp.org>
46391
46392         Avoid test failure on Haiku.
46393         * tests/test-fsync.c: Include <errno.h>.
46394         (main): Don't require that fsync (0) fails.
46395
46396 2008-11-15  Bruno Haible  <bruno@clisp.org>
46397
46398         New module 'hostent'.
46399         * modules/hostent: New file.
46400         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
46401
46402 2008-11-15  Bruno Haible  <bruno@clisp.org>
46403
46404         New module 'servent'.
46405         * modules/servent: New file.
46406         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
46407
46408 2008-11-15  Bruno Haible  <bruno@clisp.org>
46409
46410         Avoid generating same test program with two different rules.
46411         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
46412         test-frexp to test-frexp-nolibm.
46413         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
46414         test-frexpl to test-frexpl-nolibm.
46415
46416 2008-11-15  Bruno Haible  <bruno@clisp.org>
46417
46418         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
46419         $(FREXPL_LIBM).
46420
46421 2008-11-15  Bruno Haible  <bruno@clisp.org>
46422
46423         * lib/netdb.in.h: Activate the definitions also when the system's
46424         <netdb.h> has 'struct addrinfo'.
46425         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
46426         EAI_OVERFLOW or AI_NUMERICSERV.
46427         * doc/posix-headers/netdb.texi: Document the problem.
46428
46429 2008-11-15  Bruno Haible  <bruno@clisp.org>
46430
46431         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
46432
46433         Make the 'sched' module work on platforms where <sched.h> exists but
46434         is incomplete (such as Haiku).
46435         * lib/sched.in.h; Include the system's <sched.h> if it exists.
46436         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
46437         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
46438         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
46439         HAVE_STRUCT_SCHED_PARAM.
46440         * modules/sched (Depends-on): Add include_next.
46441         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
46442         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
46443         * doc/posix-headers/sched.texi: Document the issue.
46444
46445 2008-11-13  Jim Meyering  <meyering@redhat.com>
46446
46447         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
46448         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
46449         test would fail due to the difference in the Report bugs to ...
46450         line.  The expected address is empty, "<>", while the actual
46451         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
46452
46453 2008-11-12  Bruno Haible  <bruno@clisp.org>
46454
46455         lstat: don't compile lstat.c on systems lacking lstat
46456         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
46457         which don't have lstat; this is handled by lib/sys_stat.in.h already.
46458         Reported by Daniel P. Berrange via Jim Meyering.
46459
46460 2008-11-12  Jim Meyering  <meyering@redhat.com>
46461
46462         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
46463
46464 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46465
46466         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
46467         instead.
46468
46469 2008-11-12  Bruno Haible  <bruno@clisp.org>
46470
46471         * lib/unicodeio.c: Include unistr.h.
46472         (utf8_wctomb): Remove function.
46473         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
46474
46475 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46476
46477         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
46478         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
46479         <bruno@clisp.org>.
46480         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
46481
46482 2008-11-12  Simon Josefsson  <simon@josefsson.org>
46483
46484         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
46485         * doc/gnulib.texi: Add section for warnings.
46486
46487 2008-11-11  Bruno Haible  <bruno@clisp.org>
46488
46489         * lib/sockets.h: Add a comment.
46490
46491 2008-11-11  Karl Berry  <karl@gnu.org>
46492
46493         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
46494
46495 2008-11-11  Eric Blake  <ebb9@byu.net>
46496
46497         fdl.texi: avoid git symlinks
46498         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
46499
46500 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46501
46502         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
46503
46504 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46505
46506         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
46507         (gl_WARN_ADD): Substitute $2 if literal.
46508
46509 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46510
46511         * m4/warning.m4: Remove.
46512
46513 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
46514
46515         * m4/warnings.m4: Almost complete rewrite. :-)
46516
46517 2008-11-10  Simon Josefsson  <simon@josefsson.org>
46518
46519         * modules/warnings: New module.
46520         * m4/warnings.m4: New file.
46521         * MODULES.html.sh: Mention warnings module.
46522         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
46523         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
46524
46525 2008-11-10  Eric Blake  <ebb9@byu.net>
46526
46527         fdl.texi: make a symlink to the latest version
46528         * doc/standards.texi: Revert today's earlier change.
46529         * doc/fdl-1.2.texi: Rename from old fdl.texi...
46530         * doc/fdl.texi: ...and replace this with a symlink to the newer
46531         fdl-1.3.texi.
46532
46533 2008-11-10  Bruno Haible  <bruno@clisp.org>
46534
46535         * tests/test-select-fd.c (main): Accept the result file name as fourth
46536         argument.
46537         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
46538         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
46539
46540 2008-11-10  Bruno Haible  <bruno@clisp.org>
46541
46542         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
46543         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
46544         as autoconf-substituted macros.
46545         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
46546         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
46547         gl_NETDB_H_DEFAULTS. Set these variables.
46548         * modules/netdb (Makefile.am): Substitute these variables.
46549
46550 2008-11-10  Eric Blake  <ebb9@byu.net>
46551
46552         standards.texi: include correct file for FDL 1.3
46553         * doc/standards.texi (GNU Free Documentation License): Change
46554         include file to pull in FDL 1.3, not 1.2.
46555
46556         fdl.texi: revert accidental change to license
46557         * doc/fdl.texi: This is FDL 1.2, not 1.3.
46558
46559 2008-11-10  Bruno Haible  <bruno@clisp.org>
46560
46561         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
46562         cross-compiling guesses also when the native compile gives no result.
46563
46564 2008-11-10  Bruno Haible  <bruno@clisp.org>
46565
46566         * lib/spawni.c (__spawni): Force variable into the stack.
46567
46568 2008-11-10  Bruno Haible  <bruno@clisp.org>
46569
46570         Add support for Haiku.
46571         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
46572         glibc and BeOS, but also on Haiku.
46573         * lib/fpurge.c (fpurge): Likewise.
46574         * lib/freadable.c (freadable): Likewise.
46575         * lib/freadahead.c (freadahead): Likewise.
46576         * lib/freading.c (freading): Likewise.
46577         * lib/freadptr.c (freadptr): Likewise.
46578         * lib/freadseek.c (freadptrinc): Likewise.
46579         * lib/fseeko.c (rpl_fseeko): Likewise.
46580         * lib/fseterr.c (fseterr): Likewise.
46581         * lib/fwritable.c (fwritable): Likewise.
46582         * lib/fwriting.c (fwriting): Likewise.
46583         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
46584
46585 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
46586
46587         * lib/config.charset: Treat Haiku like BeOS.
46588
46589 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
46590
46591         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
46592         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
46593
46594 2008-11-08  Bruno Haible  <bruno@clisp.org>
46595
46596         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
46597         AC_CACHE_CHECK.
46598
46599 2008-11-08  Bruno Haible  <bruno@clisp.org>
46600
46601         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
46602
46603 2008-11-08  Bruno Haible  <bruno@clisp.org>
46604
46605         * tests/test-select-fd.c: New file.
46606         * tests/test-select-in.sh: New file.
46607         * tests/test-select-out.sh: New file.
46608         * tests/test-select-stdin.c: New file.
46609         * modules/select-tests (Files): Add the new files.
46610         (Depends-on): Add gettimeofday.
46611         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
46612         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
46613         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
46614
46615 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
46616             Bruno Haible  <bruno@clisp.org>
46617
46618         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
46619
46620 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
46621
46622         * build-aux/pmccabe2html: Added support for C++ source files.
46623
46624 2008-11-05  Ben Pfaff  <blp@gnu.org>
46625
46626         Fix lib/close.c build on Windows.
46627         * modules/close (Files): Add lib/w32sock.h.
46628
46629 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
46630
46631         Accept Bison's NEWS format.
46632         * build-aux/announce-gen (print_news_deltas): Tweak
46633         $re_prefix.
46634
46635 2008-11-04  Bruno Haible  <bruno@clisp.org>
46636
46637         * modules/random_r (Maintainer): Add glibc.
46638
46639 2008-11-04  Simon Josefsson  <simon@josefsson.org>
46640
46641         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
46642         by karl@freefriends.org (Karl Berry).
46643         * doc/alloca.texi: Likewise.
46644         * doc/c-ctype.texi: Likewise.
46645         * doc/c-strcase.texi: Likewise.
46646         * doc/c-strcaseeq.texi: Likewise.
46647         * doc/c-strcasestr.texi: Likewise.
46648         * doc/c-strstr.texi: Likewise.
46649         * doc/c-strtod.texi: Likewise.
46650         * doc/c-strtold.texi: Likewise.
46651         * doc/ctime.texi: Likewise.
46652         * doc/error.texi: Likewise.
46653         * doc/fdl.texi: Likewise.
46654         * doc/gcd.texi: Likewise.
46655         * doc/getdate.texi: Likewise.
46656         * doc/gnulib-intro.texi: Likewise.
46657         * doc/gnulib-tool.texi: Likewise.
46658         * doc/gnulib.texi: Likewise.
46659         * doc/inet_ntoa.texi: Likewise.
46660         * doc/maintain.texi: Likewise.
46661         * doc/make-stds.texi: Likewise.
46662         * doc/quote.texi: Likewise.
46663         * doc/regexprops-generic.texi: Likewise.
46664         * doc/standards.texi: Likewise.
46665         * doc/verify.texi: Likewise.
46666         * doc/visibility.texi: Likewise.
46667         * doc/gnulib.texi (GNU Free Documentation License): Include
46668         fdl-1.3.texi instead of fdl.texi.
46669
46670 2008-11-04  Simon Josefsson  <simon@josefsson.org>
46671
46672         * doc/fdl-1.3.texi: New file, from
46673         <http://www.gnu.org/licenses/fdl-1.3.texi>.
46674         * modules/fdl-1.3: Add.
46675         * MODULES.html.sh: Add fdl-1.3.
46676
46677 2008-11-03  Bruno Haible  <bruno@clisp.org>
46678
46679         Make determination of absolute name of header file work with AIX xlc.
46680         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
46681         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
46682         preprocessing.
46683         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
46684         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
46685
46686 2008-11-03  Simon Josefsson  <simon@josefsson.org>
46687
46688         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
46689         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
46690         <ludo@gnu.org>.
46691
46692 2008-11-02  Bruno Haible  <bruno@clisp.org>
46693
46694         Mark 'strpbrk' obsolete.
46695         * modules/strpbrk (Status, Notice): New sections.
46696         * modules/strtok_r (Depends-on): Add strpbrk.
46697
46698 2008-11-02  Bruno Haible  <bruno@clisp.org>
46699
46700         Mark 'strdup' obsolete.
46701         * modules/strdup (Status, Notice): New sections.
46702         * modules/findprog (Depends-on): Add strdup.
46703         * modules/getaddrinfo (Depends-on): Likewise.
46704         * modules/localename (Depends-on): Likewise.
46705         * modules/relocatable-lib (Depends-on): Likewise.
46706         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
46707         * modules/relocatable-prog (Depends-on): Likewise.
46708         * modules/trim (Depends-on): Likewise.
46709         * modules/unictype/gen-ctype (Depends-on): Likewise.
46710         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
46711
46712 2008-11-02  Bruno Haible  <bruno@clisp.org>
46713
46714         Mark 'strcspn' obsolete.
46715         * modules/strcspn (Status, Notice): New sections.
46716
46717 2008-11-02  Bruno Haible  <bruno@clisp.org>
46718
46719         Mark 'rmdir' obsolete.
46720         * modules/rmdir (Status, Notice): New sections.
46721         * modules/clean-temp (Depends-on): Add rmdir.
46722         * modules/openat (Depends-on): Likewise.
46723
46724 2008-11-02  Bruno Haible  <bruno@clisp.org>
46725
46726         Mark 'raise' obsolete.
46727         * modules/raise (Status, Notice): New sections.
46728         (Include): Specify <signal.h>.
46729         * modules/stdio (Depends-on): Add raise.
46730         * modules/write (Depends-on): Likewise.
46731
46732 2008-11-02  Bruno Haible  <bruno@clisp.org>
46733
46734         Mark 'memset' obsolete.
46735         * modules/memset (Status, Notice): New sections.
46736
46737 2008-11-02  Bruno Haible  <bruno@clisp.org>
46738
46739         Mark 'memmove' obsolete.
46740         * modules/memmove (Status, Notice): New sections.
46741         * modules/argp (Depends-on): Add memmove.
46742         * modules/argz (Depends-on): Likewise.
46743         * modules/canonicalize (Depends-on): Likewise.
46744         * modules/canonicalize-lgpl (Depends-on): Likewise.
46745         * modules/fts (Depends-on): Likewise.
46746         * modules/getcwd (Depends-on): Likewise.
46747         * modules/human (Depends-on): Likewise.
46748         * modules/regex (Depends-on): Likewise.
46749         * modules/striconveh (Depends-on): Likewise.
46750         * modules/trim (Depends-on): Likewise.
46751         * modules/unistr/u8-move (Depends-on): Likewise.
46752         * modules/unistr/u16-move (Depends-on): Likewise.
46753         * modules/unistr/u32-move (Depends-on): Likewise.
46754
46755 2008-11-02  Bruno Haible  <bruno@clisp.org>
46756
46757         Mark 'memcpy' obsolete.
46758         * modules/memcpy (Status, Notice): New sections.
46759
46760 2008-11-02  Bruno Haible  <bruno@clisp.org>
46761
46762         Mark 'memcmp' obsolete.
46763         * modules/memcmp (Status, Notice): New sections.
46764         * modules/argmatch (Depends-on): Add memchr.
46765         * modules/backupfile (Depends-on): Likewise.
46766         * modules/c-strcasestr (Depends-on): Likewise.
46767         * modules/crypto/des (Depends-on): Likewise.
46768         * modules/csharpcomp (Depends-on): Likewise.
46769         * modules/fnmatch (Depends-on): Likewise.
46770         * modules/git-merge-changelog (Depends-on): Likewise.
46771         * modules/isnand (Depends-on): Likewise.
46772         * modules/isnand-nolibm (Depends-on): Likewise.
46773         * modules/isnanf (Depends-on): Likewise.
46774         * modules/isnanf-nolibm (Depends-on): Likewise.
46775         * modules/isnanl (Depends-on): Likewise.
46776         * modules/isnanl-nolibm (Depends-on): Likewise.
46777         * modules/mbchar (Depends-on): Likewise.
46778         * modules/memcoll (Depends-on): Likewise.
46779         * modules/quotearg (Depends-on): Likewise.
46780         * modules/regex (Depends-on): Likewise.
46781         * modules/relocatable-prog (Depends-on): Likewise.
46782         * modules/same (Depends-on): Likewise.
46783         * modules/signbit (Depends-on): Likewise.
46784         * modules/strcasestr-simple (Depends-on): Likewise.
46785         * modules/unictype/gen-ctype (Depends-on): Likewise.
46786         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
46787         * modules/uniname/uniname (Depends-on): Likewise.
46788         * modules/unistr/u8-cmp (Depends-on): Likewise.
46789
46790 2008-11-02  Bruno Haible  <bruno@clisp.org>
46791
46792         Mark 'memchr' obsolete.
46793         * modules/memchr (Status, Notice): New sections.
46794         * modules/argp (Depends-on): Add memchr.
46795         * modules/base64 (Depends-on): Likewise.
46796         * modules/c-strcasestr (Depends-on): Likewise.
46797         * modules/chdir-long (Depends-on): Likewise.
46798         * modules/fnmatch (Depends-on): Likewise.
46799         * modules/getsubopt (Depends-on): Likewise.
46800         * modules/git-merge-changelog (Depends-on): Likewise.
46801         * modules/glob (Depends-on): Likewise.
46802         * modules/strcasestr-simple (Depends-on): Likewise.
46803         * modules/strnlen (Depends-on): Likewise.
46804
46805 2008-11-02  Bruno Haible  <bruno@clisp.org>
46806
46807         Mark 'atexit' obsolete.
46808         * modules/atexit (Status, Notice): New sections.
46809         * modules/chdir-long (Depends-on): Add atexit.
46810         * modules/wait-process (Depends-on): Likewise.
46811
46812 2008-11-02  Bruno Haible  <bruno@clisp.org>
46813
46814         * gnulib-tool: New option --with-obsolete.
46815         (func_usage): Document it.
46816         (func_modules_transitive_closure): Drop obsolete dependencies if
46817         incobsolete is not true.
46818         (func_import): Read and save the incobsolete variable to the cache.
46819
46820 2008-11-02  Bruno Haible  <bruno@clisp.org>
46821
46822         * modules/TEMPLATE-EXTENDED: New field 'Status'.
46823         * gnulib-tool: New option --extract-status.
46824         (func_usage): Document it.
46825         (sed_extract_prog): Recognize it.
46826         (func_get_status): New function.
46827
46828 2008-10-30  Simon Josefsson  <simon@josefsson.org>
46829
46830         * modules/sockets (License): Change from LGPL to LGPLv2+.
46831
46832 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46833
46834         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
46835
46836 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46837
46838         * MODULES.html.sh (Support for systems lacking POSIX:2001):
46839         Mention times and sys_times.
46840         * modules/sys_times, modules/sys_times-tests: New modules.
46841         * modules/times, modules/times-tests: Likewise
46842         * m4/sys_times_h.m4: New file.
46843         * lib/sys_times.in.h: Likewise
46844         * lib/times.c: Likewise.
46845         * tests/test-sys_times.c: Likewise.
46846         * tests/test-times.c: Likewise.
46847         * doc/posix-headers/sys_times.texi: Update.
46848         * doc/posix-functions/times.texi: Update.
46849
46850 2008-10-28  Jim Meyering  <meyering@redhat.com>
46851
46852         * modules/tempname (Depends-on): Add lstat.
46853
46854         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
46855
46856 2008-10-28  Simon Josefsson  <simon@josefsson.org>
46857
46858         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
46859         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
46860         using idiom used elsewhere in gnulib.
46861
46862 2008-10-27  Jim Meyering  <meyering@redhat.com>
46863
46864         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
46865
46866 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46867
46868         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
46869         TESTS_ENVIRONMENT, for shell scripts that needs to call built
46870         programs.
46871         * tests/test-argp-2.sh: Use $EXEEXT when needed.
46872
46873 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46874
46875         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
46876
46877 2008-10-27  Bruno Haible  <bruno@clisp.org>
46878
46879         * tests/test-lstat.c: Include <stdio.h>.
46880
46881 2008-10-27  Simon Josefsson  <simon@josefsson.org>
46882
46883         * modules/lstat-tests: New module.
46884         * tests/test-lstat.c: New file.
46885
46886 2008-10-26  Jim Meyering  <meyering@redhat.com>
46887
46888         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
46889
46890 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46891             Bruno Haible  <bruno@clisp.org>
46892
46893         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
46894         * modules/configmake (Include): Add a note that the include must come
46895         after all system headers.
46896         * lib/javaversion.c: Include configmake.h after all other includes.
46897
46898 2008-10-26  Bruno Haible  <bruno@clisp.org>
46899
46900         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
46901         HAVE_STRUCT_RANDOM_DATA to 1.
46902         (gl_STDLIB_H): Simplify.
46903
46904 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46905
46906         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
46907         substitute HAVE_STRUCT_RANDOM_DATA.
46908         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
46909         random_data.
46910         * modules/stdlib (Makefile.am): Substitute
46911         HAVE_STRUCT_RANDOM_DATA.
46912
46913 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46914
46915         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
46916         * doc/gnulib-intro.texi (Copyright): Likewise.
46917
46918 2008-10-26  Simon Josefsson  <simon@josefsson.org>
46919
46920         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
46921         findings.
46922
46923 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
46924             Bruno Haible  <bruno@clisp.org>
46925
46926         * lib/unistd.in.h: Include <winsock2.h>.
46927         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
46928         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
46929         Provide dummy declarations.
46930         (gethostname): Override.
46931         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
46932         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
46933         gl_PREREQ_SYS_H_WINSOCK2.
46934         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
46935         * doc/posix-functions/gethostname.texi: More details.
46936
46937 2008-10-25  Bruno Haible  <bruno@clisp.org>
46938
46939         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
46940         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
46941         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
46942
46943         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
46944         here ...
46945         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
46946         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
46947         gl_UNISTD_H_DEFAULTS.
46948
46949 2008-10-25  Eric Blake  <ebb9@byu.net>
46950
46951         signbit: avoid spurious compiler failure
46952         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
46953         declarations inside function.
46954
46955 2008-10-24  Simon Josefsson  <simon@josefsson.org>
46956             Bruno Haible  <bruno@clisp.org>
46957
46958         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
46959         * modules/random_r (Depends-on): Add stdint.
46960
46961 2008-10-24  Bruno Haible  <bruno@clisp.org>
46962
46963         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
46964         Eggert.
46965         * modules/strerror (License): Likewise.
46966
46967 2008-10-24  Jim Meyering  <meyering@redhat.com>
46968
46969         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
46970         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
46971
46972 2008-10-24  Eric Blake  <ebb9@byu.net>
46973
46974         getgroups: fix compilation when getgroups is available
46975         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
46976         but with <config.h> override of getgroups disabled.
46977
46978 2008-10-24  Simon Josefsson  <simon@josefsson.org>
46979
46980         * doc/gnulib.texi (Header files): Add note about C++ problems.
46981         Explained by Bruno Haible <bruno@clisp.org>.
46982
46983 2008-10-23  Bruno Haible  <bruno@clisp.org>
46984
46985         Define a dummy SA_NODEFER macro on Interix.
46986         * lib/signal.in.h (SA_NODEFER): Define fallback.
46987         Reported by Aleksey Cheusov <cheusov@tut.by> via
46988         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
46989
46990 2008-10-23  Bruno Haible  <bruno@clisp.org>
46991
46992         * modules/freadahead (License): Change to LGPLv2+.
46993         Suggested by Simon Josefsson.
46994
46995 2008-10-23  Jim Meyering  <meyering@redhat.com>
46996
46997         random_r: new module
46998         * modules/random_r: New file.
46999         * m4/random_r.m4: New file.
47000         * lib/random_r.c: New file, from glibc.
47001         * modules/random_r-tests: New file.
47002         * tests/test-random_r.c: New file.
47003         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
47004          Declare.
47005         (RAND_MAX): Define.
47006         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
47007         * modules/stdlib: Substitute them, too.
47008         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
47009         * doc/glibc-functions/initstate_r.texi: Mention the new module.
47010         * doc/glibc-functions/random_r.texi: Likewise.
47011         * doc/glibc-functions/setstate_r.texi: Likewise.
47012         * doc/glibc-functions/srandom_r.texi: Likewise.
47013         * config/srclist.txt: Mention it.
47014
47015 2008-10-23  David Lutterkort  <lutter@redhat.com>
47016
47017         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
47018         link requirement
47019
47020 2008-10-23  Jim Meyering  <meyering@redhat.com>
47021
47022         selinux-h: mark parameters of stub functions as intentionally unused
47023         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
47024         * lib/se-context.in.h: Likewise.
47025
47026 2008-10-22  Simon Josefsson  <simon@josefsson.org>
47027
47028         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
47029
47030 2008-10-22  Simon Josefsson  <simon@josefsson.org>
47031
47032         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
47033
47034 2008-10-22  Eric Blake  <ebb9@byu.net>
47035
47036         glthread/thread: avoid compiler warning
47037         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
47038         Add unreachable abort to silence compiler.
47039
47040 2008-10-22  Eric Blake  <ebb9@byu.net>
47041
47042         netdb: also supply struct addrinfo for cygwin 1.5.x
47043         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
47044         older cygwin.
47045         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
47046         cygwin.
47047         * doc/posix-headers/netdb.texi (netdb.h): Document this.
47048
47049 2008-10-22  Bruno Haible  <bruno@clisp.org>
47050
47051         * users.txt: Update entry about pspp.
47052
47053 2008-10-21  Bruno Haible  <bruno@clisp.org>
47054
47055         Simplification.
47056         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
47057         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
47058
47059         Simplification.
47060         * lib/ioctl.c (ioctl): Don't undefine.
47061         * lib/socket.c (socket): Don't undefine.
47062
47063         Remove unused module indicator macros.
47064         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
47065         GNULIB_$1 as a C macro.
47066
47067         * doc/posix-functions/close.texi: Undo last change.
47068         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
47069         Windows platforms.
47070
47071 2008-10-21  Bruno Haible  <bruno@clisp.org>
47072
47073         Add gethostname() declaration to <unistd.h>.
47074         * lib/unistd.in.h (gethostname): New declaration.
47075         * lib/gethostname.c: Include <unistd.h>.
47076         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
47077         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
47078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
47079         and HAVE_GETHOSTNAME.
47080         * modules/gethostname (Depends-on): Add unistd.
47081         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47082         (Include): Specify <unistd.h>.
47083         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
47084         HAVE_GETHOSTNAME.
47085         * tests/test-gethostname.c: Include <unistd.h> first.
47086
47087 2008-10-21  Bruno Haible  <bruno@clisp.org>
47088
47089         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
47090         * modules/select-tests (Depends-on): Likewise.
47091         Reported by Simon Josefsson.
47092
47093 2008-10-21  Simon Josefsson  <simon@josefsson.org>
47094
47095         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
47096         * lib/accept.c: New file, based on winsock.c.
47097         * lib/bind.c: New file, based on winsock.c.
47098         * lib/connect.c: New file, based on winsock.c.
47099         * lib/getpeername.c: New file, based on winsock.c.
47100         * lib/getsockname.c: New file, based on winsock.c.
47101         * lib/getsockopt.c: New file, based on winsock.c.
47102         * lib/ioctl.c: New file, based on winsock.c.
47103         * lib/listen.c: New file, based on winsock.c.
47104         * lib/recv.c: New file, based on winsock.c.
47105         * lib/recvfrom.c: New file, based on winsock.c.
47106         * lib/send.c: New file, based on winsock.c.
47107         * lib/sendto.c: New file, based on winsock.c.
47108         * lib/setsockopt.c: New file, based on winsock.c.
47109         * lib/shutdown.c: New file, based on winsock.c.
47110         * lib/socket.c: New file, based on winsock.c.
47111         * lib/w32sock.h: New file, based on winsock.c.
47112         * lib/winsock.c: Remove file.
47113         * modules/accept: Likewise.
47114         * modules/bind: Likewise.
47115         * modules/connect: Likewise.
47116         * modules/getpeername: Likewise.
47117         * modules/getsockname: Likewise.
47118         * modules/getsockopt: Likewise.
47119         * modules/ioctl: Likewise.
47120         * modules/listen: Likewise.
47121         * modules/recv: Likewise.
47122         * modules/recvfrom: Likewise.
47123         * modules/send: Likewise.
47124         * modules/sendto: Likewise.
47125         * modules/setsockopt: Likewise.
47126         * modules/shutdown: Likewise.
47127         * modules/socket: Use socket.c instead of winsock.c.
47128         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
47129         * doc/posix-functions/accept.texi: Doc fix.
47130         * doc/posix-functions/bind.texi: Doc fix.
47131         * doc/posix-functions/close.texi: Doc fix.
47132         * doc/posix-functions/connect.texi: Doc fix.
47133         * doc/posix-functions/getpeername.texi: Doc fix.
47134         * doc/posix-functions/getsockname.texi: Doc fix.
47135         * doc/posix-functions/getsockopt.texi: Doc fix.
47136         * doc/posix-functions/ioctl.texi: Doc fix.
47137         * doc/posix-functions/listen.texi: Doc fix.
47138         * doc/posix-functions/recv.texi: Doc fix.
47139         * doc/posix-functions/recvfrom.texi: Doc fix.
47140         * doc/posix-functions/send.texi: Doc fix.
47141         * doc/posix-functions/sendto.texi: Doc fix.
47142         * doc/posix-functions/setsockopt.texi: Doc fix.
47143         * doc/posix-functions/shutdown.texi: Doc fix.
47144         * doc/posix-functions/socket.texi: Doc fix.
47145
47146 2008-10-20  Bruno Haible  <bruno@clisp.org>
47147
47148         Take into account the role of SIGABRT_COMPAT on Windows 2008.
47149         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
47150         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
47151         as an alias for SIGABRT.
47152         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
47153         (sigaction): Map it to SIGABRT.
47154         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
47155
47156 2008-10-20  Bruno Haible  <bruno@clisp.org>
47157
47158         * lib/fts.c: Don't include lstat.h.
47159         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
47160
47161         Move the lstat() declaration to <sys/stat.h>.
47162         * lib/lstat.h: Remove file.
47163         * lib/sys_stat.in.h: Add special invocation convention.
47164         (lstat): New declaration.
47165         * lib/lstat.c (orig_lstat): New function.
47166         (rpl_lstat): Use orig_lstat instead of lstat.
47167         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
47168         AC_C_INLINE. Set REPLACE_LSTAT.
47169         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
47170         and REPLACE_LSTAT.
47171         * modules/lstat (Files): Remove lib/lstat.h.
47172         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
47173         (Include): Specify <sys/stat.h> instead of lstat.h.
47174         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
47175         REPLACE_LSTAT.
47176         * NEWS: Mention the change.
47177
47178 2008-10-20  Bruno Haible  <bruno@clisp.org>
47179
47180         * modules/posix_spawn-tests: New file.
47181         * tests/test-posix_spawn3.c: New file.
47182
47183 2008-10-20  Bruno Haible  <bruno@clisp.org>
47184
47185         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
47186         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
47187         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
47188         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
47189         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
47190
47191 2008-10-20  Bruno Haible  <bruno@clisp.org>
47192
47193         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
47194         of posix_spawn on AIX 5.3.
47195
47196 2008-10-20  Bruno Haible  <bruno@clisp.org>
47197
47198         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
47199
47200 2008-10-20  Bruno Haible  <bruno@clisp.org>
47201
47202         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
47203         of AC_LANG_PROGRAM.
47204
47205 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47206
47207         * lib/netdb.in.h: Don't define GNU specific constants until they
47208         are supported or needed.  Reported by Bruno Haible
47209         <bruno@clisp.org>.
47210
47211 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47212
47213         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
47214
47215 2008-10-20  Simon Josefsson  <simon@josefsson.org>
47216
47217         * lib/getaddrinfo.h: Remove file.
47218         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
47219         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
47220         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
47221         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
47222         * modules/netdb: Substitute GNULIB_GETADDRINFO.
47223         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
47224         * tests/test-getaddrinfo.c: Likewise.
47225         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
47226         * NEWS: Mention change.
47227
47228 2008-10-19  Bruno Haible  <bruno@clisp.org>
47229
47230         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
47231
47232 2008-10-19  Bruno Haible  <bruno@clisp.org>
47233
47234         * lib/wait-process.c: Include simply <sys/wait.h>.
47235         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
47236         WIFSTOPPED): Remove fallback definitions.
47237         * modules/wait-process (Depends-on): Add sys_wait.
47238
47239         New module 'sys_wait'.
47240         * modules/sys_wait: New file.
47241         * lib/sys_wait.in.h: New file, partially copied from
47242         lib/wait-process.c.
47243         * m4/sys_wait_h.m4: New file.
47244         * doc/posix-headers/sys_wait.texi: Mention the new module.
47245
47246 2008-10-19  Bruno Haible  <bruno@clisp.org>
47247
47248         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
47249
47250 2008-10-19  Bruno Haible  <bruno@clisp.org>
47251
47252         Assume that waitpid() fills an 'int' status, not a 'union wait'.
47253         * lib/wait-process.c (WAIT_T): Remove type.
47254         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
47255         (wait_subprocess): Update.
47256
47257 2008-10-19  Bruno Haible  <bruno@clisp.org>
47258
47259         New module 'atoll'.
47260         * modules/atoll: New file.
47261         * lib/stdlib.in.h (atoll): New declaration.
47262         * lib/atoll.c: New file, from glibc with modifications.
47263         * m4/atoll.m4: New file.
47264         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
47265         HAVE_ATOLL.
47266         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
47267         * doc/posix-functions/atoll.texi: Mention the new module.
47268
47269 2008-10-19  Bruno Haible  <bruno@clisp.org>
47270
47271         Add strtoull() declaration to <stdlib.h>.
47272         * lib/stdlib.in.h (strtoull): New declaration.
47273         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
47274         Set HAVE_STRTOULL.
47275         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
47276         HAVE_STRTOULL.
47277         * modules/strtoull (Depends-on): Add stdlib.
47278         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47279         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
47280         HAVE_STRTOULL.
47281
47282 2008-10-19  Bruno Haible  <bruno@clisp.org>
47283
47284         Add strtoll() declaration to <stdlib.h>.
47285         * lib/stdlib.in.h (strtoll): New declaration.
47286         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
47287         Set HAVE_STRTOLL.
47288         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
47289         HAVE_STRTOLL.
47290         * modules/strtoll (Depends-on): Add stdlib.
47291         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47292         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
47293
47294 2008-10-19  Bruno Haible  <bruno@clisp.org>
47295
47296         * modules/bcopy (Depends-on): Add strings.
47297         (Include): Specify <strings.h>.
47298
47299 2008-10-19  Bruno Haible  <bruno@clisp.org>
47300
47301         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
47302
47303 2008-10-19  Bruno Haible  <bruno@clisp.org>
47304
47305         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
47306         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
47307         mingw.
47308
47309 2008-10-19  Bruno Haible  <bruno@clisp.org>
47310
47311         * lib/atanl.c: Don't include isnanl.h.
47312         * lib/cosl.c: Likewise.
47313         * lib/ldexpl.c: Likewise.
47314         * lib/logl.c: Likewise.
47315         * lib/sinl.c: Likewise.
47316         * lib/sqrtl.c: Likewise.
47317         * lib/tanl.c: Likewise.
47318
47319         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
47320         * lib/isnanf.h: Remove file.
47321         * lib/isnand.h: Remove file.
47322         * lib/isnanl.h: Remove file.
47323         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
47324         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
47325         macros.
47326         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
47327         HAVE_ISNANF, don't define it as a C macro.
47328         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
47329         HAVE_ISNAND, don't define it as a C macro.
47330         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
47331         HAVE_ISNANL, don't define it as a C macro.
47332         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
47333         HAVE_ISNAN[FDL].
47334         * modules/isnanf (Files): Remove lib/isnanf.h.
47335         (Depends-on): Add math.
47336         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47337         (Include): Specify <math.h> instead of isnanf.h.
47338         * modules/isnand (Files): Remove lib/isnand.h.
47339         (Depends-on): Add math.
47340         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47341         (Include): Specify <math.h> instead of isnand.h.
47342         * modules/isnanl (Files): Remove lib/isnanl.h.
47343         (Depends-on): Add math.
47344         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
47345         (Include): Specify <math.h> instead of isnanl.h.
47346         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
47347         HAVE_ISNAN[FDL].
47348         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
47349         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
47350         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
47351         * NEWS: Mention the change.
47352
47353 2008-10-18  Bruno Haible  <bruno@clisp.org>
47354
47355         Add getusershell(), setusershell(), endusershell() declarations to
47356         <unistd.h>.
47357         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
47358         declarations.
47359         * lib/getusershell.c: Include unistd.h.
47360         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
47361         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
47362         HAVE_GETUSERSHELL.
47363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
47364         and HAVE_GETUSERSHELL.
47365         * modules/getusershell (Depends-on): Add unistd, extensions.
47366         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47367         (Include): Specify <unistd.h>.
47368         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
47369         HAVE_GETUSERSHELL.
47370
47371 2008-10-18  Bruno Haible  <bruno@clisp.org>
47372
47373         Add a getloadavg() declaration to <stdlib.h>.
47374         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
47375         getloadavg declaration.
47376         (getloadavg): New declaration.
47377         * lib/getloadavg.c: Include <stdlib.h> first.
47378         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
47379         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
47380         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
47381         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
47382         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
47383         * modules/getloadavg (Depends-on): Add stdlib, extensions.
47384         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
47385         (Include): Specify <stdlib.h>.
47386         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
47387         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
47388
47389 2008-10-18  Bruno Haible  <bruno@clisp.org>
47390
47391         * lib/dirchownmod.c: Don't include lchmod.h.
47392
47393         Move the lchmod() declaration to <sys/stat.h>.
47394         * lib/lchmod.h: Remove file.
47395         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
47396         (lchmod): New declaration, moved here from lib/lchown.h.
47397         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
47398         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
47399         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
47400         and HAVE_LCHMOD.
47401         * modules/lchmod (Files): Remove lib/lchmod.h.
47402         (Depends-on): Add sys_stat, extensions.
47403         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
47404         (Include): Specify <sys/stat.h> instead of lchmod.h.
47405         * modules/sys_stat (Depends-on): Add link-warning.
47406         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
47407         definition of GL_LINK_WARNING.
47408         * NEWS: Mention the change.
47409
47410 2008-10-18  Bruno Haible  <bruno@clisp.org>
47411
47412         * lib/fchdir.c: Don't include dirfd.h.
47413         * lib/fts.c: Likewise.
47414         * lib/getcwd.c: Likewise.
47415         * lib/glob.c: Likewise.
47416
47417         Move the dirfd() declaration to <dirent.h>.
47418         * lib/dirfd.h: Remove file.
47419         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
47420         (dirfd): New declaration.
47421         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
47422         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
47423         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
47424         HAVE_DECL_DIRFD.
47425         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
47426         HAVE_DECL_DIRFD.
47427         * modules/dirfd (Files): Remove lib/dirfd.h.
47428         (Depends-on): Add dirent, extensions.
47429         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
47430         (Include): Specify <dirent.h> instead of dirfd.h.
47431         * modules/dirent (Depends-on): Add link-warning.
47432         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
47433         definition of GL_LINK_WARNING.
47434         * NEWS: Mention the change.
47435
47436 2008-10-18  Bruno Haible  <bruno@clisp.org>
47437
47438         Move the euidaccess() declaration to <unistd.h>.
47439         * lib/euidaccess.h: Remove file.
47440         * lib/unistd.in.h (euidaccess): New declaration.
47441         * lib/euidaccess.c: Don't include euidaccess.h.
47442         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
47443         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
47444         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
47445         and HAVE_EUIDACCESS.
47446         * modules/euidaccess (Files): Remove lib/euidaccess.h.
47447         (Depends-on): Add unistd.
47448         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47449         (Include): Specify <unistd.h> instead of euidaccess.h.
47450         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
47451         HAVE_EUIDACCESS.
47452         * NEWS: Mention the change.
47453
47454 2008-10-18  Bruno Haible  <bruno@clisp.org>
47455
47456         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
47457
47458         Move the getdomainname() declaration to <unistd.h>.
47459         * lib/getdomainname.h: Remove file.
47460         * lib/unistd.in.h (getdomainname): New declaration.
47461         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
47462         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
47463         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
47464         HAVE_GETDOMAINNAME.
47465         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47466         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
47467         * modules/getdomainname (Files): Remove lib/getdomainname.h.
47468         (Depends-on): Add unistd, extensions.
47469         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
47470         (Includes): Specify <unistd.h> instead of getdomainname.h.
47471         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
47472         HAVE_GETDOMAINNAME.
47473         * NEWS: Mention the change.
47474
47475 2008-10-18  Bruno Haible  <bruno@clisp.org>
47476
47477         * modules/dirent: New file.
47478         * m4/dirent_h.m4: New file.
47479         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
47480         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
47481         * modules/fchdir (Files): Remove lib/dirent.in.h.
47482         (Depends-on): Add dirent.
47483         (Makefile.am): Move rules to modules/dirent.
47484         * doc/posix-headers/dirent.texi: Mention the new module.
47485
47486 2008-10-18  Bruno Haible  <bruno@clisp.org>
47487
47488         Avoid -Wunused-parameter warnings in public gnulib header files.
47489         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
47490         macro.
47491         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
47492
47493 2008-10-18  Bruno Haible  <bruno@clisp.org>
47494
47495         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
47496         * doc/glibc-functions/error.texi: Mention the module 'error'.
47497         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
47498         * doc/glibc-functions/getdomainname.texi: Mention the module
47499         'getdomainname'.
47500         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
47501         * doc/glibc-functions/getpagesize.texi: Mention the module
47502         'getpagesize'.
47503         * doc/glibc-functions/getusershell.texi: Mention the module
47504         'getusershell'.
47505         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
47506         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
47507         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
47508         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
47509         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
47510         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
47511         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
47512         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
47513         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
47514         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
47515         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
47516         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
47517         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
47518         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
47519
47520 2008-10-17  Bruno Haible  <bruno@clisp.org>
47521
47522         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
47523         HP-UX and IRIX, use -0.0L.
47524         * tests/test-ceill.c (minus_zero): Likewise.
47525         * tests/test-floorl.c (minus_zero): Likewise.
47526         * tests/test-frexpl.c (minus_zero): Likewise.
47527         * tests/test-isnan.c (minus_zerol): Likewise.
47528         * tests/test-isnanl.h (minus_zero): Likewise.
47529         * tests/test-ldexpl.c (minus_zero): Likewise.
47530         * tests/test-roundl.c (minus_zero): Likewise.
47531         * tests/test-signbit.c (minus_zerol): Likewise.
47532         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
47533         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
47534         * tests/test-truncl.c (minus_zero): Likewise.
47535         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
47536         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
47537         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
47538         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
47539
47540 2008-10-17  Bruno Haible  <bruno@clisp.org>
47541
47542         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
47543         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
47544         that it gets activated only for gcc >= 3.0.
47545         * lib/dirent.in.h: Likewise.
47546         * lib/errno.in.h: Likewise.
47547         * lib/fcntl.in.h: Likewise.
47548         * lib/float.in.h: Likewise.
47549         * lib/iconv.in.h: Likewise.
47550         * lib/inttypes.in.h: Likewise.
47551         * lib/locale.in.h: Likewise.
47552         * lib/math.in.h: Likewise.
47553         * lib/netdb.in.h: Likewise.
47554         * lib/netinet_in.in.h: Likewise.
47555         * lib/search.in.h: Likewise.
47556         * lib/signal.in.h: Likewise.
47557         * lib/spawn.in.h: Likewise.
47558         * lib/stdarg.in.h: Likewise.
47559         * lib/stdint.in.h: Likewise.
47560         * lib/stdio.in.h: Likewise.
47561         * lib/stdlib.in.h: Likewise.
47562         * lib/string.in.h: Likewise.
47563         * lib/strings.in.h: Likewise.
47564         * lib/sys_file.in.h: Likewise.
47565         * lib/sys_ioctl.in.h: Likewise.
47566         * lib/sys_select.in.h: Likewise.
47567         * lib/sys_socket.in.h: Likewise.
47568         * lib/sys_stat.in.h: Likewise.
47569         * lib/sys_time.in.h: Likewise.
47570         * lib/sysexits.in.h: Likewise.
47571         * lib/time.in.h: Likewise.
47572         * lib/unistd.in.h: Likewise.
47573         * lib/wchar.in.h: Likewise.
47574         * lib/wctype.in.h: Likewise.
47575         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
47576
47577 2008-10-17  Jim Meyering  <meyering@redhat.com>
47578
47579         ignore-value: don't depend on inline module
47580         * modules/ignore-value (Depends-on): Remove 'inline'.
47581         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
47582         Suggestion from Bruno Haible.
47583
47584 2008-10-17  Bruno Haible  <bruno@clisp.org>
47585
47586         New implementation of condition variables for Win32.
47587         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
47588         (gl_linked_waitqueue_t): New type.
47589         (gl_cond_t): Use it.
47590         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
47591         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
47592         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
47593         (glthread_cond_init_func, glthread_cond_wait_func,
47594         glthread_cond_timedwait_func, glthread_cond_signal_func,
47595         glthread_cond_broadcast_func, glthread_cond_destroy_func):
47596         Reimplemented on the basis of gl_linked_waitqueue_t.
47597         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
47598         gl_waitqueue_t.
47599         (gl_rwlock_t): Update.
47600         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
47601
47602 2008-10-17  Simon Josefsson  <simon@josefsson.org>
47603
47604         * modules/recvfrom (Depends-on): Add dependency on getpeername.
47605         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47606
47607 2008-10-17  Jim Meyering  <meyering@redhat.com>
47608
47609         ignore-value: new module
47610         * modules/ignore-value: New file.
47611         * lib/ignore-value.h: New file.
47612         * MODULES.html.sh (Compiler warning management): New section,
47613         just for this module.  More to come.
47614
47615 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
47616
47617         open-safer.c: avoid 'signed and unsigned in conditional...' warning
47618         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
47619         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
47620
47621 2008-10-16  Jim Meyering  <meyering@redhat.com>
47622
47623         openat-die.c: avoid 'no previous prototype' warning
47624         * lib/openat-die.c: Include "openat.h".
47625         Reported by Reuben Thomas <rrt@sc3d.org>.
47626
47627 2008-10-16  Simon Josefsson  <simon@josefsson.org>
47628
47629         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
47630         * lib/netdb.in.h: Fix typo.
47631         Reported by Bruno Haible  <bruno@clisp.org>
47632
47633         * lib/netdb.in.h: Include sys/socket.h for platforms without
47634         netdb.h, to get structures like hostent on MinGW.
47635         * modules/netdb (Depends-on): Add sys_socket.
47636
47637 2008-10-15  Simon Josefsson  <simon@josefsson.org>
47638
47639         * modules/netdb, modules/netdb-tests: New file.
47640         * m4/netdb_h.m4: New file.
47641         * lib/netdb.in.h: Add, currently just an empty file pending
47642         definitions.
47643         * tests/test-netdb.c: New file.
47644         * doc/posix-headers/netdb.texi: Mention that we replace it if
47645         needed.
47646         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
47647         netdb.
47648
47649 2008-10-15  Simon Josefsson  <simon@josefsson.org>
47650
47651         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
47652         with code.
47653
47654 2008-10-13  Bruno Haible  <bruno@clisp.org>
47655
47656         * lib/glthread/cond.c (glthread_cond_wait_func,
47657         glthread_cond_timedwait_func): Add a comment.
47658
47659 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47660
47661         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
47662         * tests/test-select.c: Likewise,
47663
47664 2008-10-13  Bruno Haible  <bruno@clisp.org>
47665
47666         * lib/glthread/cond.c (glthread_cond_wait_func,
47667         glthread_cond_timedwait_func): Fix variable name.
47668         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
47669
47670 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
47671
47672         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
47673         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
47674         struct sockaddr.sa_len.
47675         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
47676
47677 2008-10-13  Simon Josefsson  <simon@josefsson.org>
47678
47679         * build-aux/pmccabe2html: Add css and css_url parameters.
47680
47681 2008-10-12  Bruno Haible  <bruno@clisp.org>
47682
47683         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
47684         calling aclx_get.
47685         Reported by Rainer Tammer <tammer@tammer.net>.
47686
47687 2008-10-12  Bruno Haible  <bruno@clisp.org>
47688
47689         Use msvcrt aware primitives for creation/termination of Win32 threads.
47690         * lib/glthread/thread.c: Include <process.h>.
47691         (glthread_create_func): Use _beginthreadex instead of CreateThread.
47692         (wrapper_func): Update signature.
47693         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
47694
47695 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
47696             Bruno Haible  <bruno@clisp.org>
47697
47698         Provide a Win32 implementation of the 'cond' module.
47699         * lib/glthread/cond.h [USE_WIN32]: New implementation.
47700         * lib/glthread/cond.c (glthread_cond_init_func,
47701         glthread_cond_wait_func, glthread_cond_timedwait_func,
47702         glthread_cond_signal_func, glthread_cond_broadcast_func,
47703         glthread_cond_destroy_func) [USE_WIN32]: New functions.
47704         * modules/cond (Dependencies): Add gettimeofday.
47705
47706 2008-10-11  Bruno Haible  <bruno@clisp.org>
47707
47708         Make sleep work on older versions of mingw.
47709         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
47710         only whether it exists.
47711         * doc/posix-functions/sleep.texi: Mention the problem with older
47712         versions of mingw.
47713
47714 2008-10-11  Bruno Haible  <bruno@clisp.org>
47715
47716         New module 'shutdown'.
47717         * modules/shutdown: New file.
47718         * lib/sys_socket.in.h (shutdown): New declaration.
47719         * lib/winsock.c (shutdown): New function.
47720         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
47721         GNULIB_SHUTDOWN.
47722         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
47723         * doc/posix-functions/shutdown.texi: Document the new module.
47724
47725 2008-10-11  Jim Meyering  <meyering@redhat.com>
47726
47727         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
47728
47729 2008-10-11  Bruno Haible  <bruno@clisp.org>
47730
47731         New module 'fclose'.
47732         * modules/fclose: New file.
47733         * lib/stdio.in.h (fclose): New declaration.
47734         * lib/fclose.c: New file.
47735         * m4/fclose.m4: New file.
47736         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
47737         REPLACE_FCLOSE.
47738         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
47739         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
47740         REPLACE_FCLOSE.
47741         * modules/close (Depends-on): fclose.
47742         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
47743
47744 2008-10-11  Bruno Haible  <bruno@clisp.org>
47745
47746         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
47747         set errno and don't call _close.
47748
47749 2008-10-10  Bruno Haible  <bruno@clisp.org>
47750
47751         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
47752         ACL, not afterwards. Fixes test failure on Cygwin.
47753
47754 2008-10-09  Ben Pfaff  <blp@gnu.org>
47755
47756         * build-aux/announce-gen: Fix gnulib version related part of usage
47757         message.  Die with a useful error message if no tarballs are
47758         found.
47759
47760 2008-10-10  Jim Meyering  <meyering@redhat.com>
47761
47762         bootstrap: use git's --depth=N option only if it's supported
47763         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
47764         recognize the --depth option.  Reported by Pádraig Brady.
47765
47766 2008-10-09  Bruno Haible  <bruno@clisp.org>
47767
47768         New module 'ioctl'.
47769         * modules/ioctl: New file.
47770         * lib/sys_socket.in.h (ioctl): Remove declaration.
47771         * lib/winsock.c: Include <sys/ioctl.h>.
47772         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
47773         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
47774         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
47775         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
47776         * doc/posix-functions/ioctl.texi: Mention the new module.
47777
47778 2008-10-09  Bruno Haible  <bruno@clisp.org>
47779
47780         New module 'sys_ioctl'.
47781         * lib/sys_ioctl.in.h: New file.
47782         * m4/sys_ioctl_h.m4: New file.
47783         * modules/sys_ioctl: New file.
47784         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
47785
47786 2008-10-09  Bruno Haible  <bruno@clisp.org>
47787
47788         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
47789         * lib/winsock.c: Include <stdarg.h>.
47790         (rpl_ioctl): Change to second argument 'int' and then varargs.
47791
47792 2008-10-09  Bruno Haible  <bruno@clisp.org>
47793
47794         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
47795         when the sys_socket module is present and the system has <winsock2.h>.
47796
47797 2008-10-09  Bruno Haible  <bruno@clisp.org>
47798
47799         * doc/posix-functions/close.texi: Mention module 'close' instead of
47800         module 'sys_socket'.
47801
47802 2008-10-09  Bruno Haible  <bruno@clisp.org>
47803
47804         * doc/glibc-headers/sys_ioctl.texi: New file.
47805         * doc/gnulib.texi: Include it.
47806
47807 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47808             Bruno Haible  <bruno@clisp.org>
47809
47810         Combine the two replacements of 'close'.
47811         * lib/sys_socket.in.h (close): Define to a reminder to include
47812         <unistd.h>.
47813         (_gl_close_fd_maybe_socket): New declaration.
47814         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
47815         * lib/winsock.c (close): Remove undefinition.
47816         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
47817         needed for the gnulib module 'close'.
47818         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
47819         define to an error symbol or to a warning, if suitable.
47820         * lib/close.c: Include <sys/socket.h>.
47821         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
47822         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
47823         UNISTD_H_HAVE_WINSOCK2_H.
47824         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
47825         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
47826         UNISTD_H_HAVE_WINSOCK2_H.
47827         * modules/sys_socket (Files): Add m4/unistd_h.m4.
47828         (configure.ac): Set a module indicator.
47829         (Makefile.am): Substitute GNULIB_CLOSE.
47830         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
47831         * modules/poll-tests (Depends-on): Add close.
47832         * modules/select-tests (Depends-on): Likewise.
47833
47834 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47835             Bruno Haible  <bruno@clisp.org>
47836
47837         New module 'close'.
47838         * modules/close: New file.
47839         * lib/unistd.in.h (close): Move declaration out of the
47840         FCHDIR_REPLACEMENT scope.
47841         (_gl_unregister_fd): New declaration.
47842         * lib/close.c: New file.
47843         * lib/fchdir.c (rpl_close): Remove function.
47844         * m4/close.m4: New file.
47845         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
47846         close.
47847         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
47848         REPLACE_CLOSE.
47849         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
47850         REPLACE_CLOSE.
47851         * modules/fchdir (Depends-on): Add close.
47852
47853 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47854             Bruno Haible  <bruno@clisp.org>
47855
47856         * lib/fcntl.in.h (open): Simplify conditionals.
47857         (_gl_register_fd): New declaration.
47858         * lib/fchdir.c (rpl_open): Remove function.
47859         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
47860         also.
47861         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
47862         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
47863         open.
47864
47865 2008-10-09  Jim Meyering  <meyering@redhat.com>
47866
47867         GNUmakefile: use the more name-space-friendly "_version"
47868         * top/GNUmakefile (_dummy): Update.
47869         (_version): Rename from "version".
47870
47871 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47872             Bruno Haible  <bruno@clisp.org>
47873
47874         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
47875         rpl_close.
47876         (_gl_register_fd): New function, extracted from rpl_open.
47877         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
47878         (rpl_open, rpl_opendir): Use _gl_register_fd.
47879
47880 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
47881
47882         Fix organization of 'open' replacement.
47883         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
47884         (gl_FUNC_OPEN): Use it.
47885         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
47886
47887 2008-10-08  Bruno Haible  <bruno@clisp.org>
47888
47889         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
47890
47891 2008-10-08  Simon Josefsson  <simon@josefsson.org>
47892
47893         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
47894         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
47895         listen).
47896
47897 2008-10-08  Eric Blake  <ebb9@byu.net>
47898
47899         GNUmakefile: add 'make version' target
47900         * top/GNUmakefile (_curr-ver): Split version update rules...
47901         (version): ...into a target.
47902
47903 2008-10-07  Bruno Haible  <bruno@clisp.org>
47904
47905         Use a more portable replacement expression for -0.0L.
47906         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
47907         instead of -0.0L. Fix m4 quotation.
47908
47909         * tests/test-signbit.c: Include <float.h>.
47910         (minus_zero): New variable.
47911         (test_signbitl): Use minus_zero instead of -zero.
47912         * modules/signbit-tests (Depends-on): Add float.
47913
47914         * tests/test-ceill.c: Include <float.h>.
47915         (zero): Remove variable.
47916         (minus_zero): New variable.
47917         (main): Use minus_zero instead of -zero.
47918         * modules/ceill-tests (Depends-on): Add float.
47919
47920         * tests/test-floorl.c: Include <float.h>.
47921         (zero): Remove variable.
47922         (minus_zero): New variable.
47923         (main): Use minus_zero instead of -zero.
47924         * modules/floorl-tests (Depends-on): Add float.
47925
47926         * tests/test-roundl.c: Include <float.h>.
47927         (zero): Remove variable.
47928         (minus_zero): New variable.
47929         (main): Use minus_zero instead of -zero.
47930         * modules/roundl-tests (Depends-on): Add float.
47931
47932         * tests/test-truncl.c: Include <float.h>.
47933         (zero): Remove variable.
47934         (minus_zero): New variable.
47935         (main): Use minus_zero instead of -zero.
47936         * modules/truncl-tests (Depends-on): Add float.
47937
47938         * tests/test-frexpl.c (zero): Remove variable.
47939         (minus_zero): New variable.
47940         (main): Use minus_zero instead of -zero.
47941         * modules/frexpl-tests (Depends-on): Add float.
47942
47943         * tests/test-isnan.c (zerol): Remove variable.
47944         (minus_zerol): New variable.
47945         (test_long_double): Use minus_zerol instead of -zerol.
47946         * modules/isnan-tests (Depends-on): Add float.
47947
47948         * tests/test-isnanl.h (zero): Remove variable.
47949         (minus_zero): New variable.
47950         (main): Use minus_zero instead of -zero.
47951         * modules/isnanl-nolibm-tests (Depends-on): Add float.
47952         * modules/isnanl-tests (Depends-on): Add float.
47953
47954         * tests/test-ldexpl.c (zero): Remove variable.
47955         (minus_zero): New variable.
47956         (main): Use minus_zero instead of -zero.
47957         * modules/ldexpl-tests (Depends-on): Add float.
47958
47959         * tests/test-snprintf-posix.h (zerol): Remove variable.
47960         (minus_zerol): New variable.
47961         (test_function): Use minus_zerol instead of -zerol.
47962         * modules/snprintf-posix-tests (Depends-on): Add float.
47963         * modules/vsnprintf-posix-tests (Depends-on): Add float.
47964
47965         * tests/test-sprintf-posix.h (zerol): Remove variable.
47966         (minus_zerol): New variable.
47967         (test_function): Use minus_zerol instead of -zerol.
47968         * modules/sprintf-posix-tests (Depends-on): Add float.
47969         * modules/vsprintf-posix-tests (Depends-on): Add float.
47970
47971         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
47972         (minus_zerol): New variable.
47973         (test_function): Use minus_zerol instead of -zerol.
47974         * modules/vasnprintf-posix-tests (Depends-on): Add float.
47975
47976         * tests/test-vasprintf-posix.c (zerol): Remove variable.
47977         (minus_zerol): New variable.
47978         (test_function): Use minus_zerol instead of -zerol.
47979         * modules/vasprintf-posix-tests (Depends-on): Add float.
47980
47981 2008-10-07  Simon Josefsson  <simon@josefsson.org>
47982
47983         * MODULES.html.sh (Support for building documentation): Mention
47984         pmccabe2html.  Sort entries.
47985
47986         Add pmccabe2html module, from gnupdf.
47987         * build-aux/pmccabe.css: New file.
47988         * build-aux/pmccabe2html: New file.
47989         * m4/pmccabe2html.m4: New file.
47990         * modules/pmccabe2html: New file.
47991
47992 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
47993
47994         flock: new module
47995         * MODULES.html.sh: Add to list of modules.
47996         * lib/flock.c: flock implementation for Windows and Unix systems
47997         which have fcntl.
47998         * doc/glibc-functions/flock.texi: Update documentation.
47999         * lib/sys_file.in.h: <sys/file.h> header file.
48000         * m4/flock.m4: M4 macros.
48001         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
48002         * modules/flock: flock module.
48003         * modules/flock-tests: flock tests module.
48004         * modules/sys_file: sys/file.h module.
48005         * tests/test-flock.c: test suite for flock.
48006
48007 2008-10-06  Jim Meyering  <meyering@redhat.com>
48008
48009         bootstrap: check for LT_INIT more portably still ;-)
48010         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
48011         Spotted by Bruno Haible.
48012
48013 2008-10-06  Eric Blake  <ebb9@byu.net>
48014
48015         test-signbit: avoid tripping Irix cc bug on -0.0L
48016         * tests/test-signbit.c (minus_zerol): Delete, and replace with
48017         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
48018         entire testsuite consistent and avoids an Irix 6.2 bug.
48019
48020 2008-10-05  Bruno Haible  <bruno@clisp.org>
48021             Jim Meyering  <jim@meyering.net>
48022
48023         Add an option for ignoring EPIPE during close_stdout.
48024         * lib/closeout.h: Include <stdbool.h>.
48025         (close_stdout_set_ignore_EPIPE): New declaration.
48026         * lib/closeout.c: Include <stdbool.h>.
48027         (ignore_EPIPE): New variable.
48028         (close_stdout_set_ignore_EPIPE): New function.
48029         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
48030         * lib/close-stream.c (close_stream): Mention the possible EPIPE
48031         failure.
48032         * modules/closeout (Depends-on): Add stdbool.
48033
48034 2008-10-05  Bruno Haible  <bruno@clisp.org>
48035
48036         * modules/accept: New file.
48037         * modules/bind: New file.
48038         * modules/connect: New file.
48039         * modules/getpeername: New file.
48040         * modules/getsockname: New file.
48041         * modules/getsockopt: New file.
48042         * modules/listen: New file.
48043         * modules/recv: New file.
48044         * modules/recvfrom: New file.
48045         * modules/send: New file.
48046         * modules/sendto: New file.
48047         * modules/setsockopt: New file.
48048         * modules/socket: New file.
48049         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
48050         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
48051         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
48052         the particular module is requested. Add a link warning when the
48053         particular module is not requested.
48054         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
48055         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
48056         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
48057         the particular module is requested.
48058         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
48059         gl_SYS_SOCKET_H_DEFAULTS): New macros.
48060         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
48061         * modules/sys_socket (Depends-on): Add link-warning.
48062         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
48063         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
48064         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
48065         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
48066         GL_LINK_WARNING.
48067         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
48068         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
48069         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
48070         * doc/posix-functions/getpeername.texi: Mention the new module
48071         'getpeername'.
48072         * doc/posix-functions/getsockname.texi: Mention the new module
48073         'getsockname'.
48074         * doc/posix-functions/getsockopt.texi: Mention the new module
48075         'getsockopt'.
48076         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
48077         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
48078         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
48079         * doc/posix-functions/send.texi: Mention the new module 'send'.
48080         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
48081         * doc/posix-functions/setsockopt.texi: Mention the new module
48082         'setsockopt'.
48083         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
48084         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
48085         listen, connect, accept.
48086         * modules/select-tests (Depends-on): Likewise.
48087
48088 2008-10-05  Bruno Haible  <bruno@clisp.org>
48089
48090         * lib/winsock.c (strerror): Remove unused #undef.
48091         (rpl_close): Remove unused local variable.
48092
48093         * modules/sys_socket (Depends-on); Add errno.
48094
48095 2008-10-05  Bruno Haible  <bruno@clisp.org>
48096
48097         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
48098         (select): Add a link warning when the 'select' module is not used.
48099         * modules/sys_select (Depends-on): Add link-warning.
48100         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
48101         Suggested by Paolo Bonzini.
48102
48103 2008-10-05  Jim Meyering  <meyering@redhat.com>
48104
48105         bootstrap: check for LT_INIT more portably
48106         * build-aux/bootstrap: Avoid using grep -E, since it's not
48107         portable enough.  Suggestion from Bruno Haible.
48108
48109 2008-10-05  Bruno Haible  <bruno@clisp.org>
48110
48111         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
48112         as being fixed by gnulib.
48113
48114 2008-10-05  Bruno Haible  <bruno@clisp.org>
48115
48116         * modules/select-tests: New file, mostly copied from
48117         modules/sys_select-tests.
48118         * tests/test-select.c: New file, mostly copied from
48119         tests/test-sys_select.c.
48120         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
48121         * modules/sys_select-tests (Depends-on): Remove all dependencies.
48122         (Makefile.am): Remove test_sys_select_LDADD.
48123
48124         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
48125         to an undefined symbol, for an error message.
48126         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
48127         (gl_SYS_SELECT_H_DEFAULTS): New macro.
48128         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
48129         winsock-select.c here.
48130         * modules/sys_select (Files): Remove lib/winsock-select.c.
48131         (Depends-on): Remove alloca.
48132         (Makefile.am): Substitute GNULIB_SELECT.
48133         * modules/select: New file.
48134         * doc/posix-functions/select.texi: Update.
48135
48136 2008-10-05  Bruno Haible  <bruno@clisp.org>
48137
48138         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
48139         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
48140         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
48141         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
48142         getdtablesize.
48143         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
48144         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
48145
48146 2008-10-05  Bruno Haible  <bruno@clisp.org>
48147
48148         * modules/getdtablesize-tests: New file.
48149         * tests/test-getdtablesize.c: New file.
48150
48151         New module 'getdtablesize'.
48152         * lib/unistd.in.h (getdtablesize): New declaration.
48153         * lib/getdtablesize.c: New file.
48154         * m4/getdtablesize.m4: New file.
48155         * modules/getdtablesize: New file.
48156         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48157         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
48158         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
48159         HAVE_GETDTABLESIZE.
48160         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
48161
48162 2008-10-05  Bruno Haible  <bruno@clisp.org>
48163
48164         * modules/sched (Makefile.am): Fix typo.
48165         Reported by Simon Josefsson.
48166
48167 2008-10-05  Jim Meyering  <meyering@redhat.com>
48168
48169         bootstrap: check for LT_INIT, too
48170         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
48171         are deprecated.  Suggestion from Ralf Wildenhues.
48172
48173 2008-10-05  Bruno Haible  <bruno@clisp.org>
48174
48175         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
48176         overriding them by ours.
48177         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
48178
48179 2008-10-05  Jim Meyering  <meyering@redhat.com>
48180
48181         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
48182         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
48183         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
48184
48185 2008-10-04  Bruno Haible  <bruno@clisp.org>
48186
48187         * modules/dup2 (License): Change to LGPLv2+.
48188         * modules/sleep (License): Likewise.
48189         * modules/perror (License): Likewise.
48190         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
48191         Blake.
48192         * modules/signal (License): Likewise.
48193         * modules/sigprocmask (License): Likewise.
48194         * modules/raise (License): Change to LGPLv2+, with approval by Jim
48195         Meyering.
48196
48197 2008-10-04  Bruno Haible  <bruno@clisp.org>
48198
48199         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
48200         Reported by Rainer Tammer <tammer@tammer.net>.
48201
48202 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
48203             Bruno Haible  <bruno@clisp.org>
48204
48205         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
48206         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
48207         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
48208
48209 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
48210
48211         filevercmp: new module
48212         * lib/filevercmp.h: New function filevercmp comparing version strings.
48213         * lib/filevercmp.c: Implementation of filevercmp function.
48214         * modules/filevercmp: Module metadata.
48215         * tests/test-filevercmp.c: Unit test for new module.
48216         * modules/filevercmp-tests: Unit test metadata.
48217         * MODULES.html.sh: Add filevercmp module.
48218
48219 2008-10-03  Bruno Haible  <bruno@clisp.org>
48220
48221         * lib/c-ctype.h: Add comment.
48222         Reported by Jim Meyering.
48223
48224 2008-10-02  Bruno Haible  <bruno@clisp.org>
48225
48226         * modules/posix_spawn-internal (Depends-on): Add 'open'.
48227
48228 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48229
48230         * build-aux/bootstrap: Allow renaming bootstrap, and change the
48231         name of bootstrap.conf accordingly.
48232
48233 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48234
48235         * build-aux/bootstrap: Install git-merge-changelog configuration
48236         items into .gitconfig if needed.
48237
48238 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
48239
48240         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
48241         git repository, and initialize/update it accordingly.
48242
48243 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
48244
48245         * modules/fsync-tests: New file.
48246         * tests/test-fsync.c: New file.
48247
48248         New module 'fsync'.
48249         * lib/fsync.c: New file.
48250         * m4/fsync.m4: New file.
48251         * modules/fsync: New file.
48252         * lib/unistd.in.h (fsync): New declaration.
48253         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
48254         GNULIB_FSYNC and HAVE_FSYNC.
48255         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
48256         * MODULES.html.sh (posix_functions): Add fsync.
48257         * doc/posix-functions/fsync.texi: Mention the new module.
48258
48259 2008-10-02  Jim Meyering  <meyering@redhat.com>
48260
48261         fts.c: sync with similar code from coreutils' remove.c
48262         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
48263         Guard also with "#if defined __linux__", since for now at least,
48264         this code is Linux-kernel-specific.
48265
48266 2008-10-02  Jim Meyering  <meyering@redhat.com>
48267
48268         fts: bug fixes
48269         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
48270         Include <sys/vfs.h>, not <sys/statfs.h>.
48271
48272         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
48273         Include <sys/vfs.h>, not <sys/statfs.h>.
48274
48275 2008-10-01  Bruno Haible  <bruno@clisp.org>
48276
48277         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
48278         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
48279         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
48280         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
48281         * doc/posix-functions/posix_spawnp.texi: Likewise.
48282         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
48283         whether posix_spawn actually works.
48284         * m4/pipe.m4 (gl_PIPE): Likewise.
48285         * modules/execute (Files): Add m4/posix_spawn.m4.
48286         * modules/pipe (Files): Add m4/posix_spawn.m4.
48287         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
48288
48289 2008-10-01  Jim Meyering  <meyering@redhat.com>
48290
48291         remove trailing spaces
48292         * NEWS: Likewise.
48293         * lib/poll.c (poll): Likewise.
48294         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
48295         * lib/winsock.c (rpl_close): Likewise.
48296         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
48297         * modules/yield: Likewise.
48298         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
48299         * tests/test-sys_select.c (connect_to_socket): Likewise.
48300
48301         fts.c: adjust a new interface to be more generally useful
48302         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
48303         (fts_build): Adjust caller.
48304
48305 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48306
48307         * modules/cond-tests: New file.
48308         * tests/test-cond.c: New file.
48309
48310 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48311             Bruno Haible  <bruno@clisp.org>
48312
48313         * modules/cond (Dependencies): Add errno, time.
48314         * lib/glthread/cond.h: Include <time.h>.
48315         (gl_cond_define, gl_cond_define_initialized): Use the same definition
48316         across platforms.
48317
48318 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48319             Bruno Haible  <bruno@clisp.org>
48320
48321         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
48322
48323 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48324             Bruno Haible  <bruno@clisp.org>
48325
48326         * modules/tls-tests (Depends-on): Add thread, yield.
48327         (configure.ac): Remove all checks.
48328         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
48329         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
48330         gl_thread_self): Remove definitions. Include glthread/thread.h and
48331         glthread/yield.h instead.
48332         (test_tls): Pass an additional NULL argument to gl_thread_join.
48333
48334 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48335             Bruno Haible  <bruno@clisp.org>
48336
48337         * modules/lock-tests (Depends-on): Add thread, yield.
48338         (configure.ac): Remove all checks.
48339         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
48340         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
48341         gl_thread_self): Remove definitions. Include glthread/thread.h and
48342         glthread/yield.h instead.
48343         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
48344         additional NULL argument to gl_thread_join.
48345
48346 2008-09-30  Bruno Haible  <bruno@clisp.org>
48347
48348         Fix the Win32 implementation of the 'thread' module.
48349         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
48350         pointer type.
48351         (gl_thread_self): Invoke gl_thread_self_func.
48352         (gl_thread_self_func): New declaration.
48353         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
48354         (do_init_self_key, init_self_key): New functions.
48355         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
48356         Remove some fields.
48357         (running_threads, running_lock): Remove variables.
48358         (get_current_thread_handle): New function.
48359         (gl_thread_self_func, wrapper_func, glthread_create_func,
48360         glthread_join_func, gl_thread_exit_func): Largely rewritten and
48361         simplified.
48362
48363 2008-09-30  Bruno Haible  <bruno@clisp.org>
48364
48365         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
48366         files.
48367
48368 2008-09-30  Jim Meyering  <meyering@redhat.com>
48369
48370         fts.m4: correct the test for statfs.f_type
48371         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
48372         when checking for statfs.f_type.
48373
48374 2008-09-15  Simon Josefsson  <simon@josefsson.org>
48375
48376         tests: avoid some compiler warnings
48377         * tests/test-memchr.c (main): Pass NULL indirectly.
48378         * tests/test-getdate.c (main): Remove unused variable 'ret'.
48379
48380 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
48381
48382         getdate.y: disallow countable dayshifts like "4 yesterday ago"
48383         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
48384         exactly specified dayshifts.
48385         (dayshift): New rule.
48386         (rel): Add dayshift.
48387         (relative_time_table) [tomorrow, yesterday, today, now]:
48388         Use tDAY_SHIFT in place of tDAY_UNIT.
48389         * tests/test-getdate.c: Add tests for now-disallowed countable
48390         dayshifts, e.g., "4 yesterday ago".
48391
48392 2008-09-29  Bruno Haible  <bruno@clisp.org>
48393
48394         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
48395         * tests/test-posix_spawn1.in.sh: Renamed from
48396         tests/test-posix_spawn.in.sh.
48397         * tests/test-posix_spawn2.c: New file.
48398         * tests/test-posix_spawn2.in.sh: New file.
48399         * modules/posix_spawnp-tests (Files): Update.
48400         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
48401
48402 2008-09-29  Bruno Haible  <bruno@clisp.org>
48403
48404         Propagate effects of putenv/setenv/unsetenv to child processes.
48405         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
48406         * lib/pipe.c (create_pipe): Likewise.
48407
48408 2008-09-29  Bruno Haible  <bruno@clisp.org>
48409
48410         Enable use of shell scripts as executables in mingw.
48411         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
48412         run the program as a shell script.
48413         * lib/pipe.c (create_pipe): Likewise.
48414         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
48415         resulting array.
48416
48417 2008-09-29  Eric Blake  <ebb9@byu.net>
48418
48419         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
48420
48421 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
48422
48423         * doc/posix-functions/accept.texi: Update mingw problems.
48424         * doc/posix-functions/bind.texi: Update mingw problems.
48425         * doc/posix-functions/close.texi: Update mingw problems.
48426         * doc/posix-functions/connect.texi: Update mingw problems.
48427         * doc/posix-functions/getpeername.texi: Update mingw problems.
48428         * doc/posix-functions/getsockname.texi: Update mingw problems.
48429         * doc/posix-functions/getsockopt.texi: Update mingw problems.
48430         * doc/posix-functions/ioctl.texi: Update mingw problems.
48431         * doc/posix-functions/listen.texi: Update mingw problems.
48432         * doc/posix-functions/recv.texi: Update mingw problems.
48433         * doc/posix-functions/recvfrom.texi: Update mingw problems.
48434         * doc/posix-functions/select.texi: Update mingw problems.
48435         * doc/posix-functions/send.texi: Update mingw problems.
48436         * doc/posix-functions/sendto.texi: Update mingw problems.
48437         * doc/posix-functions/setsockopt.texi: Update mingw problems.
48438         * doc/posix-functions/socket.texi: Update mingw problems.
48439
48440 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
48441             Bruno Haible  <bruno@clisp.org>
48442
48443         * lib/sys_select.in.h: Include sys/time.h.
48444         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
48445         * modules/sys_select: Depend on sys_time.
48446         * tests/test-sys_select.c: Test that sys/select.h defines struct
48447         timeval fully.
48448
48449 2008-09-29  Bruno Haible  <bruno@clisp.org>
48450
48451         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
48452         * lib/sys_select.in.h: Likewise.
48453
48454 2008-09-29  Bruno Haible  <bruno@clisp.org>
48455
48456         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
48457
48458 2008-09-29  Bruno Haible  <bruno@clisp.org>
48459
48460         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
48461         Set LIBSOCKET instead of augmenting LIBS.
48462         * modules/sockets (Link): New section.
48463         * modules/sockets-tests (test_sockets_LDADD): New variable.
48464         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
48465         * modules/poll-tests (test_poll_LDADD): New variable.
48466         * NEWS: Document the change.
48467
48468 2008-09-29  Bruno Haible  <bruno@clisp.org>
48469
48470         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
48471         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
48472         ARPA_INET_H directly.
48473         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
48474
48475 2008-09-28  Bruno Haible  <bruno@clisp.org>
48476
48477         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
48478         from gl_HEADER_SYS_SOCKET.
48479         (gl_HEADER_SYS_SOCKET): Invoke it.
48480         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
48481
48482 2008-09-28  Bruno Haible  <bruno@clisp.org>
48483
48484         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
48485         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
48486         Needed on OSF/1 4.0.
48487
48488 2008-09-28  Bruno Haible  <bruno@clisp.org>
48489
48490         Override open more carefully.
48491         * lib/open.c (orig_open): New function.
48492         (rpl_open): Use orig_open instead of open.
48493         * lib/fcntl.in.h: Add special invocation convention.
48494         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
48495         (gl_FUNC_OPEN): Invoke it.
48496
48497         Override freopen more carefully.
48498         * lib/freopen.c (orig_freopen): New function.
48499         (rpl_freopen): Use orig_freopen instead of freopen.
48500         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
48501         (gl_FUNC_FREOPEN): Invoke it.
48502
48503         Override fopen more carefully.
48504         * lib/fopen.c (orig_fopen): New function.
48505         (rpl_fopen): Use orig_fopen instead of fopen.
48506         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
48507         (gl_FUNC_FOPEN): Invoke it.
48508         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
48509
48510 2008-09-28  Bruno Haible  <bruno@clisp.org>
48511
48512         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
48513         SIGPIPE.
48514
48515 2008-09-28  Bruno Haible  <bruno@clisp.org>
48516
48517         * tests/test-sigaction.c (handler, main): Disable the check whether
48518         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
48519         glibc systems with LinuxThreads.
48520
48521 2008-09-28  Bruno Haible  <bruno@clisp.org>
48522
48523         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
48524
48525         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
48526         with AIX xlc.
48527         * lib/fcntl.in.h (open): Likewise.
48528         Reported by Rainer Tammer <tammer@tammer.net>.
48529
48530 2008-09-28  Bruno Haible  <bruno@clisp.org>
48531
48532         * modules/posix_spawnp-tests: New file.
48533         * tests/test-posix_spawn.c: New file.
48534         * tests/test-posix_spawn.in.sh: New file.
48535
48536         New module 'posix_spawnp'.
48537         * modules/posix_spawnp: New file.
48538         * lib/spawnp.c: New file, from GNU libc with modifications.
48539         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
48540
48541         New module 'posix_spawn'.
48542         * modules/posix_spawn: New file.
48543         * lib/spawn.c: New file, from GNU libc with modifications.
48544         * doc/posix-functions/posix_spawn.texi: Mention the new module.
48545
48546         New module 'posix_spawnattr_destroy'.
48547         * modules/posix_spawnattr_destroy: New file.
48548         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
48549         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
48550         module.
48551
48552         New module 'posix_spawnattr_setsigmask'.
48553         * modules/posix_spawnattr_setsigmask: New file.
48554         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
48555         modifications.
48556         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
48557         new module.
48558
48559         New module 'posix_spawnattr_getsigmask'.
48560         * modules/posix_spawnattr_getsigmask: New file.
48561         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
48562         modifications.
48563         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
48564         new module.
48565
48566         New module 'posix_spawnattr_setsigdefault'.
48567         * modules/posix_spawnattr_setsigdefault: New file.
48568         * lib/spawnattr_setdefault.c: New file, from GNU libc with
48569         modifications.
48570         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
48571         new module.
48572
48573         New module 'posix_spawnattr_getsigdefault'.
48574         * modules/posix_spawnattr_getsigdefault: New file.
48575         * lib/spawnattr_getdefault.c: New file, from GNU libc with
48576         modifications.
48577         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
48578         new module.
48579
48580         New module 'posix_spawnattr_setschedpolicy'.
48581         * modules/posix_spawnattr_setschedpolicy: New file.
48582         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
48583         modifications.
48584         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
48585         new module.
48586
48587         New module 'posix_spawnattr_getschedpolicy'.
48588         * modules/posix_spawnattr_getschedpolicy: New file.
48589         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
48590         modifications.
48591         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
48592         new module.
48593
48594         New module 'posix_spawnattr_setschedparam'.
48595         * modules/posix_spawnattr_setschedparam: New file.
48596         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
48597         modifications.
48598         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
48599         new module.
48600
48601         New module 'posix_spawnattr_getschedparam'.
48602         * modules/posix_spawnattr_getschedparam: New file.
48603         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
48604         modifications.
48605         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
48606         new module.
48607
48608         New module 'posix_spawnattr_setpgroup'.
48609         * modules/posix_spawnattr_setpgroup: New file.
48610         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
48611         modifications.
48612         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
48613         module.
48614
48615         New module 'posix_spawnattr_getpgroup'.
48616         * modules/posix_spawnattr_getpgroup: New file.
48617         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
48618         modifications.
48619         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
48620         module.
48621
48622         New module 'posix_spawnattr_setflags'.
48623         * modules/posix_spawnattr_setflags: New file.
48624         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
48625         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
48626         module.
48627
48628         New module 'posix_spawnattr_getflags'.
48629         * modules/posix_spawnattr_getflags: New file.
48630         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
48631         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
48632         module.
48633
48634         New module 'posix_spawnattr_init'.
48635         * modules/posix_spawnattr_init: New file.
48636         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
48637         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
48638         module.
48639
48640         New module 'posix_spawn_file_actions_destroy'.
48641         * modules/posix_spawn_file_actions_destroy: New file.
48642         * lib/spawn_faction_destroy.c: New file, from GNU libc with
48643         modifications.
48644         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
48645         the new module.
48646
48647         New module 'posix_spawn_file_actions_addopen'.
48648         * modules/posix_spawn_file_actions_addopen: New file.
48649         * lib/spawn_faction_addopen.c: New file, from GNU libc with
48650         modifications.
48651         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
48652         the new module.
48653
48654         New module 'posix_spawn_file_actions_adddup2'.
48655         * modules/posix_spawn_file_actions_adddup2: New file.
48656         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
48657         modifications.
48658         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
48659         the new module.
48660
48661         New module 'posix_spawn_file_actions_addclose'.
48662         * modules/posix_spawn_file_actions_addclose: New file.
48663         * lib/spawn_faction_addclose.c: New file, from GNU libc with
48664         modifications.
48665         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
48666         the new module.
48667
48668         New module 'posix_spawn_file_actions_init'.
48669         * modules/posix_spawn_file_actions_init: New file.
48670         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
48671         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
48672         new module.
48673
48674         New module 'posix_spawn-internal'.
48675         * modules/posix_spawn-internal: New file.
48676         * lib/spawn_int.h: New file, from GNU libc with modifications.
48677         * lib/spawni.c: New file, from GNU libc with modifications.
48678         * m4/posix_spawn.m4: New file.
48679
48680         New module 'spawn'.
48681         * modules/spawn: New file.
48682         * lib/spawn.in.h: New file, from GNU libc with modifications.
48683         * m4/spawn_h.m4: New file.
48684         * doc/posix-headers/spawn.texi: Mention the new module.
48685
48686 2008-09-28  Bruno Haible  <bruno@clisp.org>
48687
48688         * modules/sched-tests: New file.
48689         * tests/test-sched.c: New file.
48690
48691         New module 'sched'.
48692         * modules/sched: New file.
48693         * lib/sched.in.h: New file.
48694         * m4/sched_h.m4: New file.
48695         * doc/posix-headers/sched.texi: Mention the new module.
48696
48697 2008-09-27  Eric Blake  <ebb9@byu.net>
48698
48699         Fix previous patch, and tweak references to $0.
48700         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
48701         (func_version, func_gnulib_dir): Don't call this program
48702         gnulib-tool.
48703         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
48704         with using $0 in function.
48705         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
48706         (func_fatal_error): Reuse the name the user invoked us with.
48707
48708 2008-09-27  Bruno Haible  <bruno@clisp.org>
48709
48710         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
48711         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
48712         (gl_ICONV_H): Not here.
48713         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
48714         instead of assigning ICONV_H directly.
48715
48716         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
48717         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
48718         WCHAR_H directly.
48719
48720 2008-09-27  Bruno Haible  <bruno@clisp.org>
48721
48722         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
48723         * modules/arpa_inet (Depends-on): Add link-warning.
48724         (Makefile.am): Insert the definition of GL_LINK-WARNING.
48725         * modules/unistd (Makefile.am): Likewise.
48726
48727 2008-09-26  Bruno Haible  <bruno@clisp.org>
48728
48729         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
48730         variables.
48731         (func_version): Essentially copied from gnulib-tool.
48732         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
48733         func_readlink): Copied from gnulib-tool.
48734
48735 2008-09-26  Bruno Haible  <bruno@clisp.org>
48736
48737         * gnulib-tool (func_version): Change directory to $gnulib_dir before
48738         invoking git-version-gen.
48739
48740 2008-09-26  Bruno Haible  <bruno@clisp.org>
48741
48742         * posix-modules: Update to directory names changed on 2008-01-19.
48743         Remove commas in output before splitting into words. No more need to
48744         avoid 'ftruncate' since 2007-02-19.
48745
48746 2008-09-26  Bruno Haible  <bruno@clisp.org>
48747
48748         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
48749
48750 2008-09-26  Bruno Haible  <bruno@clisp.org>
48751
48752         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
48753         * modules/fwriteerror (Depends-on): Add errno.
48754
48755 2008-09-26  Bruno Haible  <bruno@clisp.org>
48756
48757         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
48758         * tests/test-vc-list-files-cvs.sh: Likewise.
48759
48760 2008-09-26  Bruno Haible  <bruno@clisp.org>
48761
48762         * doc/posix-headers/sys_resource.texi: Reorder items.
48763
48764 2008-09-26  Jim Meyering  <meyering@redhat.com>
48765
48766         fts: tweak inode comparison function
48767         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
48768         inode numbers, as documented.
48769
48770         fts: sort dirent entries on inode number before traversing
48771         This avoids a quadratic, seek-related performance penalty when
48772         operating on a directory containing many entries (measurable at 10k;
48773         3.5 hours at 2 million entries with a cold cache) on certain types
48774         of file systems, including ext3 and ext4, but not tmpfs.
48775         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
48776         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
48777         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
48778         (fs_handles_readdir_ordered_dirents_efficiently): New function.
48779         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
48780         (fts_build): Set the stat.st_ino member from D_INO.
48781         If it is likely to be useful, sort dirent entries on inode number.
48782
48783         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
48784         and the struct statfs.f_type member.
48785         * modules/fts (Depends-on): Add d-ino.
48786
48787 2008-09-26  Bruno Haible  <bruno@clisp.org>
48788
48789         * modules/sigpipe-die (Depends-on): Add sigpipe.
48790
48791         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
48792         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
48793         and GNULIB_STDIO_H_SIGPIPE are set.
48794         * lib/stdio-write.c: New file.
48795         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
48796         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48797         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48798         REPLACE_STDIO_WRITE_FUNCS.
48799         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
48800         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48801         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48802         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
48803         * modules/stdio (Files): Add lib/stdio-write.c.
48804         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
48805         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
48806         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
48807         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
48808         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
48809         REPLACE_FPRINTF_POSIX.
48810         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
48811         REPLACE_PRINTF_POSIX.
48812         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
48813         REPLACE_VFPRINTF_POSIX.
48814         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
48815         REPLACE_VPRINTF_POSIX.
48816         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
48817         SIGPIPE issue.
48818         * doc/posix-functions/fputc.texi: Likewise.
48819         * doc/posix-functions/fputs.texi: Likewise.
48820         * doc/posix-functions/fwrite.texi: Likewise.
48821         * doc/posix-functions/printf.texi: Likewise.
48822         * doc/posix-functions/putc.texi: Likewise.
48823         * doc/posix-functions/putchar.texi: Likewise.
48824         * doc/posix-functions/puts.texi: Likewise.
48825         * doc/posix-functions/vfprintf.texi: Likewise.
48826         * doc/posix-functions/vprintf.texi: Likewise.
48827
48828         * modules/safe-write (Depends-on): Add write.
48829
48830         * modules/sigpipe-tests: New file.
48831         * tests/test-sigpipe.c: New file.
48832         * tests/test-sigpipe.sh: New file.
48833
48834         * modules/write: New file.
48835         * lib/unistd.in.h: Include <sys/types.h>.
48836         (write): New declaration.
48837         * lib/write.c: New file.
48838         * m4/write.m4: New file.
48839         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
48840         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
48841         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
48842         GNULIB_WRITE, REPLACE_WRITE.
48843         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
48844         and the SIGPIPE issue.
48845
48846         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
48847         (raise): New declaration.
48848         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
48849         (ext_signal): New function.
48850         (rpl_raise): New function.
48851         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
48852         GNULIB_SIGNAL_H_SIGPIPE.
48853         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
48854         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
48855
48856         * modules/sigpipe: New file.
48857         * m4/sigpipe.m4: New file.
48858
48859 2008-09-25  Derek Price  <derek@ximbiot.com>
48860             Bruno Haible  <bruno@clisp.org>
48861
48862         * gnulib-tool (func_import): Report all license incompatibilities, not
48863         just the first one.
48864
48865 2008-09-25  Bruno Haible  <bruno@clisp.org>
48866
48867         * gnulib-tool (func_import): When computing the edits, consider not
48868         only the Makefile.ams that exist but also those that will be generated.
48869
48870 2008-09-25  Simon Josefsson  <simon@josefsson.org>
48871
48872         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
48873         fixes gnulib-tool --test warning about duplicate dependency.
48874
48875 2008-09-25  Bruno Haible  <bruno@clisp.org>
48876
48877         * gnulib-tool: Don't ask the user to perform edits in the generated
48878         Makefile.ams.
48879         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
48880         apply to the Makefile.am being generated.
48881         (func_emit_tests_Makefile_am): Execute edits that apply to the
48882         Makefile.am being generated.
48883         (func_import): Setup list of Makefile.am edits before emitting the
48884         Makefile.ams, not at the end.
48885         (func_create_testdir): Update.
48886         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
48887
48888 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
48889
48890         * gnulib-tool (func_import): Store the --tests-base option in the
48891         comment in gnulib-cache.m4.
48892
48893 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
48894
48895         * NEWS: Document increased portability that sys_select now provides.
48896
48897         * lib/sys_select.in.h: Install select wrapper.
48898         * lib/sys_socket.in.h: Use more descriptive name when there is no
48899         select wrapper.
48900         * lib/winsock-select.c: New.
48901         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
48902         Require gl_HEADER_SYS_SOCKET.
48903         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
48904         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
48905         * tests/test-sys_select.c: Add functional tests.
48906
48907 2008-09-24  Eric Blake  <ebb9@byu.net>
48908
48909         open, fopen: close fd leak in last patch
48910         * lib/open.c (rpl_open): Close fd before returning error.
48911         * lib/fopen.c (rpl_fopen): Close fd before returning error.
48912         * doc/posix-functions/open.texi (open): Document that Irix also
48913         has the bug.
48914         * doc/posix-functions/fopen.texi (fopen): Likewise.
48915         Reported by Paolo Bonzini.
48916
48917 2008-09-24  Bruno Haible  <bruno@clisp.org>
48918
48919         Ensure that a filename ending in a slash cannot be used to access a
48920         non-directory.
48921         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
48922         to check whether it's really a directory.
48923         * lib/fopen.c: Include fcntl.h, unistd.h.
48924         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
48925         and fdopen().
48926         * modules/fopen (Depends-on): Add unistd.
48927         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
48928         * tests/test-fopen.c (main): Likewise.
48929         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
48930         * doc/posix-functions/fopen.texi: Likewise.
48931         Reported by Eric Blake.
48932
48933 2008-09-23  Eric Blake  <ebb9@byu.net>
48934
48935         c-stack: avoid compiler optimizations when provoking overflow
48936         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
48937         recursion harder to optimize, to ensure a stack overflow occurs.
48938         * tests/test-c-stack.c (recurse): Likewise.
48939         Borrowed from libsigsegv.
48940
48941         c-stack: work around Irix sigaltstack bug
48942         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
48943         whether sigaltstack uses wrong end of stack_t (copied in part from
48944         libsigsegv).
48945         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
48946         Irix bug, without requiring an over-allocation.
48947         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
48948         bug.
48949
48950         fopen: document mingw bug on directories
48951         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
48952         not allowing a stream visiting a directory, even though reading
48953         from such a stream is not portable.
48954
48955 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48956
48957         * lib/poll.c: Rewrite.
48958         * modules/poll: Depend on alloca.
48959
48960 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48961
48962         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
48963         instead define prototypes for a full set of wrappers.  Ensure
48964         that Cygwin does not use the compatibility code, which is only
48965         for MinGW.
48966         * lib/winsock.c: New.
48967         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
48968         * modules/sys_socket: Add lib/winsock.c.
48969
48970         * modules/poll-tests: Add errno and perror.
48971         * tests/test-poll.c: Use ioctl, not ioctlsocket.
48972
48973 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
48974
48975         * tests/test-poll.c: Downgrade minimum needed Winsock version.
48976
48977 2008-09-23  Bruno Haible  <bruno@clisp.org>
48978
48979         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
48980         * doc/glibc-functions/*: Likewise.
48981
48982 2008-09-23  Simon Josefsson  <simon@josefsson.org>
48983
48984         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
48985         success.
48986
48987 2008-09-22  Eric Blake  <ebb9@byu.net>
48988             Bruno Haible  <bruno@clisp.org>
48989
48990         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
48991         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
48992         supply %A but mishandle pseudo-NaN.
48993         Reported by Simon Josefsson.
48994
48995 2008-09-21  Bruno Haible  <bruno@clisp.org>
48996
48997         * tests/test-lock.c (main): Tweak skip message.
48998         * tests/test-tls.c (main): Likewise.
48999
49000 2008-09-21  Bruno Haible  <bruno@clisp.org>
49001
49002         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
49003         whether 'struct sigaction' has sa_sigaction here...
49004         (gl_PREREQ_SIG_HANDLER_H): ... not here.
49005         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
49006
49007 2008-09-21  Bruno Haible  <bruno@clisp.org>
49008
49009         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
49010         section.
49011         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
49012         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
49013         the new section.
49014         (Support for obsolete systems lacking POSIX:2001): New section.
49015         (String handling <string.h>): Move strdup to the new section.
49016         Suggested by Simon Josefsson and Paolo Bonzini.
49017
49018 2008-09-21  Bruno Haible  <bruno@clisp.org>
49019
49020         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
49021         exponents in %e and %g results on 'long double'. Needed for mingw's
49022         improved *printf functions.
49023         * tests/test-vasprintf-posix.c (test_function): Likewise.
49024         * tests/test-snprintf-posix.h (test_function): Likewise.
49025         * tests/test-sprintf-posix.h (test_function): Likewise.
49026         Reported by Eric Blake.
49027
49028 2008-09-21  Bruno Haible  <bruno@clisp.org>
49029
49030         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
49031         * tests/test-sprintf-posix.h (test_function): Likewise.
49032
49033 2008-09-21  Bruno Haible  <bruno@clisp.org>
49034
49035         * modules/getpass (Depends-on): Add strdup-posix.
49036
49037         New module 'strdup-posix'.
49038         * modules/strdup-posix: New file.
49039         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
49040         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
49041         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
49042         REPLACE_STRDUP.
49043         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
49044         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
49045         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
49046         strdup-posix.
49047
49048         * modules/strdup (Depends-on): Remove malloc-posix.
49049
49050 2008-09-20  Bruno Haible  <bruno@clisp.org>
49051
49052         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
49053         Wildenhues.
49054
49055 2008-09-20  Bruno Haible  <bruno@clisp.org>
49056
49057         Ensure that wint_t gets defined on IRIX 5.3.
49058         * lib/wchar.in.h (wint_t): Define if not defined by the system.
49059         * lib/wctype.in.h (wint_t): Likewise.
49060         (__wctype_wint_t): Remove type.
49061         (isw*): Use wint_t instead of __wctype_wint_t.
49062         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
49063         * modules/wchar (Files): Add m4/wint_t.m4.
49064         (Makefile.am): Substitute HAVE_WINT_T.
49065         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
49066         * tests/test-wctype.c: Check that wint_t is defined.
49067         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
49068         * doc/posix-headers/wctype.texi: Likewise.
49069         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
49070
49071 2008-09-18  Bruno Haible  <bruno@clisp.org>
49072
49073         * gnulib-tool (func_exit): Update comment.
49074
49075 2008-09-18  Simon Josefsson  <simon@josefsson.org>
49076
49077         * modules/getaddrinfo (Depends-on): Remove strdup, this module
49078         assumes strdup exists and does not depend on strdup to return
49079         ENOMEM on out of memory conditions.
49080
49081 2008-09-18  Bruno Haible  <bruno@clisp.org>
49082
49083         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
49084         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
49085         digits for the exponent.
49086
49087 2008-09-18  Jim Meyering  <meyering@redhat.com>
49088             Bruno Haible  <bruno@clisp.org>
49089
49090         * lib/vasnprintf.c (decimal_point_char): Define also if
49091         NEED_PRINTF_INFINITE_LONG_DOUBLE.
49092
49093 2008-09-16  Bruno Haible  <bruno@clisp.org>
49094         and Eric Blake  <ebb9@byu.net>
49095
49096         vasnprintf: support Irix 5.3
49097         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
49098         that mishandle long double infinity.
49099         Reported by Tom G. Christensen.
49100
49101 2008-09-16  Bruno Haible  <bruno@clisp.org>
49102
49103         * doc/glibc-functions/scandir.texi: Mention the function is missing on
49104         Solaris 9.
49105         * doc/glibc-functions/alphasort.texi: Likewise.
49106         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
49107
49108 2008-09-16  Jim Meyering  <meyering@redhat.com>
49109
49110         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
49111         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
49112         a umask modification leak out of a subshell.  Otherwise, the
49113         opensolaris /bin/sh would be accepted and thus cause unwarranted
49114         failures in the coreutils test suite.
49115
49116 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
49117
49118         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
49119         to succeed.
49120
49121 2008-09-16  Jim Meyering  <meyering@redhat.com>
49122
49123         avoid spurious test failure when library is built without ACL support
49124         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
49125         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
49126         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
49127         * tests/test-copy-acl.sh: Likewise.
49128
49129 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49130
49131         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
49132         based on character occurrence counts.
49133
49134 2008-09-15  Eric Blake  <ebb9@byu.net>
49135
49136         tests: avoid some compiler warnings
49137         * tests/test-memchr.c (main): Pass NULL indirectly.
49138         * tests/test-closein.c (main): Avoid unused variable.
49139
49140 2008-09-15  Bruno Haible  <bruno@clisp.org>
49141
49142         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
49143         are missing on OpenBSD 4.0 individually.
49144         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
49145
49146 2008-09-15  Bruno Haible  <bruno@clisp.org>
49147
49148         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
49149         * doc/posix-functions/strerror.texi: Mention also Cygwin.
49150         * doc/posix-functions/perror.texi: Likewise.
49151         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
49152         is missing.
49153         Reported by Eric Blake.
49154
49155         * lib/errno.in.h: Use replacement values >= 2000.
49156         Reported by Eric Blake.
49157
49158 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49159
49160         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
49161         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
49162         limit.
49163         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
49164         compareseq was aborted.
49165
49166 2008-09-14  Bruno Haible  <bruno@clisp.org>
49167
49168         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
49169         yvec_edit_count.
49170         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
49171         (fstrcmp_bounded): Simplify result computation accordingly.
49172
49173 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49174
49175         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
49176         (fstrcmp): Define in terms of fstrcmp_bounded.
49177         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
49178         lower_bound argument.
49179         Return quickly if the result is certainly < lower_bound.
49180         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
49181
49182 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49183
49184         * lib/diffseq.h (EARLY_ABORT): New macro.
49185         (compareseq): Change return type to bool. Return true when EARLY_ABORT
49186         evaluates to true.
49187
49188 2008-09-14  Bruno Haible  <bruno@clisp.org>
49189
49190         * modules/perror-tests: New file.
49191         * tests/test-perror.sh: New file.
49192         * tests/test-perror.c: New file.
49193
49194         New module 'perror'.
49195         * lib/stdio.in.h (perror): New declaration.
49196         * lib/perror.c: New file.
49197         * m4/perror.m4: New file.
49198         * modules/perror: New file.
49199         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
49200         * doc/posix-functions/perror.texi: Mention the perror module.
49201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
49202         REPLACE_PERROR.
49203         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
49204         REPLACE_PERROR.
49205
49206 2008-09-14  Bruno Haible  <bruno@clisp.org>
49207
49208         * modules/stdio (Makefile.am): Reorder to match the order in
49209         lib/stdio.in.h.
49210         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
49211
49212 2008-09-13  Bruno Haible  <bruno@clisp.org>
49213
49214         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
49215
49216 2008-09-13  Bruno Haible  <bruno@clisp.org>
49217
49218         Extend strerror to cover the added errno values.
49219         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
49220         (rpl_strerror): Provide error messages for the added errno values and
49221         for the WSA* values.
49222         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
49223         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
49224         strerror.
49225         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
49226         * modules/strerror (Depends-on): Add errno.
49227         * doc/posix-functions/strerror.texi: Document the change.
49228         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
49229         and EOVERFLOW.
49230
49231 2008-09-13  Bruno Haible  <bruno@clisp.org>
49232
49233         * modules/EOVERFLOW: Remove file.
49234         * m4/eoverflow.m4: Remove file.
49235         * modules/EOVERFLOW-tests: Remove file.
49236         * tests/test-EOVERFLOW.c: Remove file.
49237         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
49238         * modules/ftell (Depends-on): Likewise.
49239         * modules/getdelim (Depends-on): Likewise.
49240         * modules/getugroups (Depends-on): Likewise.
49241         * modules/poll (Depends-on): Likewise.
49242         * modules/snprintf (Depends-on): Likewise.
49243         * modules/sprintf-posix (Depends-on): Likewise.
49244         * modules/vasnprintf (Depends-on): Likewise.
49245         * modules/vasprintf (Depends-on): Likewise.
49246         * modules/vfprintf-posix (Depends-on): Likewise.
49247         * modules/vsnprintf (Depends-on): Likewise.
49248         * modules/vsprintf-posix (Depends-on): Likewise.
49249         * modules/xvasprintf (Depends-on): Likewise.
49250         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
49251         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
49252         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
49253         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
49254         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
49255         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
49256         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
49257         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
49258         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
49259         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
49260         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
49261         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
49262         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
49263         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
49264         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
49265         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
49266         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
49267         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
49268         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
49269         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
49270         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
49271         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
49272         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
49273         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
49274         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
49275         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
49276         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
49277         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
49278         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
49279         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
49280         * MODULES.html.sh: Remove EOVERFLOW.
49281         * NEWS: Mention the change.
49282
49283 2008-09-13  Bruno Haible  <bruno@clisp.org>
49284
49285         * modules/errno-tests: New file.
49286         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
49287
49288         * lib/errno.in.h: New file.
49289         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
49290         * modules/errno: New file.
49291         * doc/posix-headers/errno.texi: Update documentation.
49292         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
49293
49294 2008-09-13  Bruno Haible  <bruno@clisp.org>
49295
49296         * tests/test-poll.c: Use #if for native Windows, rather than testing
49297         __MSVCRT__.
49298
49299 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49300             Bruno Haible  <bruno@clisp.org>
49301
49302         * lib/glob.c: Don't include <pwd.h> on native Windows.
49303         (WINDOWS32): New macro.
49304         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
49305
49306 2008-09-13  Bruno Haible  <bruno@clisp.org>
49307
49308         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
49309         (ETIMEDOUT): Remove macro.
49310         (glthread_cond_timedwait_multithreaded): New declaration.
49311         (glthread_cond_timedwait): Use it.
49312         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
49313         (glthread_cond_timedwait_multithreaded): New function.
49314
49315 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49316
49317         * modules/poll-tests: Do not check for io.h.
49318         * tests/test-poll.c: Check for __MSVCRT__ instead.
49319
49320 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49321
49322         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
49323         * modules/poll-tests: Add inet_pton, stdbool, sockets.
49324         * tests/test-poll.c: Use them.  Use _pipe on Windows.
49325
49326 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
49327
49328         * modules/poll-tests: New.
49329         * tests/test-poll.c: New.
49330
49331 2008-09-12  Eric Blake  <ebb9@byu.net>
49332
49333         frexp: test for NetBSD failure on -0.0
49334         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
49335         not all, bugs from NetBSD 3.0 have been fixed.
49336         * doc/posix-functions/frexp.texi (frexp): Document bug.
49337         Reported by Thomas Klausner.
49338
49339         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
49340         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
49341         literal -0.0.
49342         Reported by Jonathan C. Patschke <jp@centtech.com>.
49343
49344 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49345
49346         * lib/glthread/cond.h: Use dummy implementation also if
49347         USE_WIN32_THREADS.
49348
49349 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49350
49351         * modules/fnmatch-posix (License): Change to LGPLv2+.
49352         * modules/fnmatch-gnu (License): Likewise.
49353
49354 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49355
49356         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
49357
49358 2008-09-11  Jim Meyering  <meyering@redhat.com>
49359
49360         * users.txt: Add gtk-vnc.
49361
49362 2008-09-08  Simon Josefsson  <simon@josefsson.org>
49363
49364         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
49365         rotate amounts.
49366
49367         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
49368         required for 16-bit and 8-bit rotates.
49369         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
49370         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
49371         UINT8_MAX instead of hard-coded constants.
49372         Suggested by Paul Eggert.
49373
49374 2008-09-07  Bruno Haible  <bruno@clisp.org>
49375
49376         * tests/test-striconveh.c (main): Check behaviour when converting from
49377         UTF-7.
49378
49379         Make striconveh work better with stateful encodings.
49380         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
49381         that iconv does not increment the inptr when returning -1/EINVAL.
49382
49383 2008-09-07  Bruno Haible  <bruno@clisp.org>
49384
49385         * build-aux/config.rpath: Update according to libtool-2.2.6.
49386         * build-aux/config.libpath: Likewise.
49387
49388 2008-09-06  Bruno Haible  <bruno@clisp.org>
49389
49390         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
49391         * lib/freadptr.c (freadptr): Likewise.
49392         * lib/freadseek.c (freadptrinc): Likewise.
49393         Reported by Simon Josefsson.
49394
49395 2008-09-06  Bruno Haible  <bruno@clisp.org>
49396
49397         * modules/freadptr (License): Change to LGPLv2+.
49398         * modules/freadseek (License): Likewise.
49399         Suggested by Eric Blake.
49400
49401         * modules/memchr2 (License): Change to LGPLv2+.
49402         Approved by Eric Blake.
49403
49404 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
49405             Bruno Haible  <bruno@clisp.org>
49406
49407         Make gnulib-tool work with native 'sed' on AIX.
49408         * gnulib-tool (sed_noop): New variable.
49409         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
49410         func_add_or_update, func_create_testdir): Use it to initialize sed
49411         script variables.
49412         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49413
49414 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
49415             Bruno Haible  <bruno@clisp.org>
49416
49417         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
49418         also works after #include directives.
49419
49420 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
49421
49422         getdate.y: reject an out-of-range timezone value
49423         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
49424         the range [-24...+24].  When specified with only one or two digits,
49425         * tests/test-getdate.c: Tests for the fix.
49426         * doc/getdate.texi: Document this change.
49427
49428 2008-09-03  Bruno Haible  <bruno@clisp.org>
49429
49430         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
49431
49432 2008-09-02  Simon Josefsson  <simon@josefsson.org>
49433
49434         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
49435         <bruce.korb@gmail.com> with ideas from Ben Pfaff
49436         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
49437         Blake <ebb9@byu.net>.
49438
49439         * tests/test-bitrotate.c: Add more test vectors.
49440
49441 2008-09-02  Eric Blake  <ebb9@byu.net>
49442
49443         vasnprintf-posix: handle large precision via %.*d
49444         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
49445         when handling it ourselves.
49446         * tests/test-vasnprintf-posix.c (test_function): Add test.
49447         * tests/test-snprintf-posix.h (test_function): Likewise.
49448         * tests/test-sprintf-posix.h (test_function): Likewise.
49449         * tests/test-vasprintf-posix.c (test_function): Likewise.
49450         Reported by Alain Guibert.
49451
49452 2008-09-01  Eric Blake  <ebb9@byu.net>
49453
49454         c-stack: make configure-time check more robust
49455         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
49456         successful sigaction call.
49457         Reported by Tom G. Christensen.
49458
49459 2008-09-01  Bruno Haible  <bruno@clisp.org>
49460
49461         New module 'findprog-lgpl'.
49462         * modules/findprog-lgpl: New file.
49463         * lib/findprog-lgpl.c: New file.
49464         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
49465         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
49466         to decide whether to use strdup or xstrdup, concatenated_filename or
49467         xconcatenated_filename.
49468
49469 2008-09-01  Bruno Haible  <bruno@clisp.org>
49470
49471         Split module 'concat-filename' into 'concat-filename' (LGPL) and
49472         'xconcat-filename' (GPL).
49473         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
49474         (License): Change to LGPLv2+.
49475         * modules/xconcat-filename: New file.
49476         * lib/concat-filename.h (concatenated_filename): Change specification.
49477         (xconcatenated_filename): New declaration.
49478         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
49479         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
49480         memory situations.
49481         * lib/xconcat-filename.c: New file.
49482         * NEWS: Mention the change.
49483         * lib/findprog.c: Include concat-filename.h, not filename.h.
49484         (find_in_path): Use xconcatenated_filename instead of
49485         concatenated_filename.
49486         * lib/javacomp.c: Include concat-filename.h, not filename.h.
49487         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
49488         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
49489         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
49490         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
49491         instead of concatenated_filename.
49492         * lib/javaexec.c: Include concat-filename.h, not filename.h.
49493         (execute_java_class): Use xconcatenated_filename instead of
49494         concatenated_filename.
49495         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
49496         * modules/javacomp (Depends-on): Likewise.
49497         * modules/javaexec (Depends-on): Likewise.
49498
49499 2008-09-01  Bruno Haible  <bruno@clisp.org>
49500
49501         Split module 'filename' into 'filename' and 'concat-filename'.
49502         * modules/filename: Keep only lib/filename.h.
49503         (License): Change to LGPLv2+.
49504         * modules/concat-filename: New file, extracted from modules/filename.
49505         * lib/filename.h (concatenated_filename): Remove declaration.
49506         * lib/concat-filename.h: New file, extracted from lib/filename.h.
49507         * lib/concat-filename.c: Include concat-filename.h.
49508         * NEWS: Mention the change.
49509
49510 2008-09-01  Simon Josefsson  <simon@josefsson.org>
49511
49512         * lib/bitrotate.h (rotl8, rotr8): Add.
49513
49514         * modules/bitrotate (configure.ac): Need
49515         AC_REQUIRE([AC_C_INLINE]).
49516         (Description): Mention stdint.h.  Reported by Bruno Haible
49517         <bruno@clisp.org>.
49518
49519         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
49520         Paolo Bonzini <bonzini@gnu.org>.
49521
49522 2008-08-31  Bruno Haible  <bruno@clisp.org>
49523
49524         Assume Solaris specific bi-arch conventions on Solaris systems.
49525         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
49526         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
49527         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
49528         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
49529         like acl_libdirstem.
49530         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
49531         acl_libdirstem.
49532         * NEWS: Mention the change.
49533         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
49534
49535 2008-08-31  Jim Meyering  <meyering@redhat.com>
49536
49537         * lib/strftime.h: Add comments describing the two added arguments.
49538
49539         remove duplicate #include directives
49540         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
49541         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
49542
49543 2008-08-31  Bruno Haible  <bruno@clisp.org>
49544
49545         New module 'sigpipe-die'.
49546         * modules/sigpipe-die: New file.
49547         * lib/sigpipe-die.h: New file.
49548         * lib/sigpipe-die.c: New file.
49549         * MODULES.html.sh (Signal handling): Add sigpipe-die.
49550
49551 2008-08-31  Bruno Haible  <bruno@clisp.org>
49552
49553         Don't override previously installed signal handlers.
49554         * lib/fatal-signal.c (saved_sigactions): New variable.
49555         (uninstall_handlers): Reset the signal to the saved handler, not
49556         to SIG_DFL (except when ignored).
49557         (install_handlers): Save the previous handlers.
49558
49559 2008-08-30  Bruno Haible  <bruno@clisp.org>
49560
49561         * gnulib-tool (func_reset_sigpipe): New function.
49562         (func_get_automake_snippet, func_modules_transitive_closure,
49563         func_import): Invoke it before a join command that reads from stdin,
49564         to avoid "echo: write error: Broken pipe" error messages on stderr.
49565         Reported by Sam Steingold <sds@gnu.org>.
49566
49567 2008-08-30  Bruno Haible  <bruno@clisp.org>
49568
49569         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
49570         Code copied from m4/open.m4.
49571         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
49572         access and the filename ends in a slash. Code copied from lib/open.c.
49573         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
49574         * tests/test-fopen.c (main): Check against bug with trailing slash.
49575
49576 2008-08-29  Bruno Haible  <bruno@clisp.org>
49577
49578         Avoid some "gcc -pedantic" warnings.
49579         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
49580         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
49581         * lib/dirent.in.h: Likewise.
49582         * lib/fcntl.in.h: Likewise.
49583         * lib/float.in.h: Likewise.
49584         * lib/iconv.in.h: Likewise.
49585         * lib/inttypes.in.h: Likewise.
49586         * lib/locale.in.h: Likewise.
49587         * lib/math.in.h: Likewise.
49588         * lib/netinet_in.in.h: Likewise.
49589         * lib/search.in.h: Likewise.
49590         * lib/signal.in.h: Likewise.
49591         * lib/stdarg.in.h: Likewise.
49592         * lib/stdint.in.h: Likewise.
49593         * lib/stdio.in.h: Likewise.
49594         * lib/stdlib.in.h: Likewise.
49595         * lib/string.in.h: Likewise.
49596         * lib/strings.in.h: Likewise.
49597         * lib/sys_select.in.h: Likewise.
49598         * lib/sys_socket.in.h: Likewise.
49599         * lib/sys_stat.in.h: Likewise.
49600         * lib/sys_time.in.h: Likewise.
49601         * lib/sysexits.in.h: Likewise.
49602         * lib/time.in.h: Likewise.
49603         * lib/unistd.in.h: Likewise.
49604         * lib/wchar.in.h: Likewise.
49605         * lib/wctype.in.h: Likewise.
49606         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
49607         * modules/fchdir (Makefile.am): Likewise.
49608         * modules/fcntl (Makefile.am): Likewise.
49609         * modules/float (Makefile.am): Likewise.
49610         * modules/iconv_open (Makefile.am): Likewise.
49611         * modules/inttypes (Makefile.am): Likewise.
49612         * modules/locale (Makefile.am): Likewise.
49613         * modules/math (Makefile.am): Likewise.
49614         * modules/netinet_in (Makefile.am): Likewise.
49615         * modules/search (Makefile.am): Likewise.
49616         * modules/signal (Makefile.am): Likewise.
49617         * modules/stdarg (Makefile.am): Likewise.
49618         * modules/stdint (Makefile.am): Likewise.
49619         * modules/stdio (Makefile.am): Likewise.
49620         * modules/stdlib (Makefile.am): Likewise.
49621         * modules/string (Makefile.am): Likewise.
49622         * modules/strings (Makefile.am): Likewise.
49623         * modules/sys_select (Makefile.am): Likewise.
49624         * modules/sys_socket (Makefile.am): Likewise.
49625         * modules/sys_stat (Makefile.am): Likewise.
49626         * modules/sys_time (Makefile.am): Likewise.
49627         * modules/sysexits (Makefile.am): Likewise.
49628         * modules/time (Makefile.am): Likewise.
49629         * modules/unistd (Makefile.am): Likewise.
49630         * modules/wchar (Makefile.am): Likewise.
49631         * modules/wctype (Makefile.am): Likewise.
49632         Reported by Reuben Thomas <rrt@sc3d.org>.
49633
49634 2008-08-29  Bruno Haible  <bruno@clisp.org>
49635
49636         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
49637         any more.
49638
49639 2008-08-29  Simon Josefsson  <simon@josefsson.org>
49640
49641         * MODULES.html.sh (Misc): Add bitrotate.
49642
49643         * modules/bitrotate: New file.
49644
49645         * lib/bitrotate.h: New file.
49646
49647         * modules/bitrotate-tests: New file.
49648
49649         * tests/test-bitrotate.c: New file.
49650
49651         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
49652         on the bitrotate module.
49653
49654         * lib/arctwo.c: Use new bitrotate module.
49655
49656 2008-08-29  Jim Meyering  <meyering@redhat.com>
49657
49658         bootstrap: merge changes from coreutils
49659         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
49660         of copied files.  Remove a kludge, now that this is fixed.
49661         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
49662         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
49663         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
49664
49665 2008-08-29  Bruno Haible  <bruno@clisp.org>
49666
49667         * MODULES.html.sh: Remove --cvs-urls option.
49668
49669 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
49670
49671         maint.mk: adjust to file name change
49672         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
49673
49674 2008-08-28  Jim Meyering  <meyering@redhat.com>
49675
49676         * modules/getndelim2 (License): Relicense to LGPLv2+.
49677         Approved by Richard Stallman for the version of 1995, and by
49678         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
49679
49680 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
49681
49682         * lib/getdelim.c (flockfile, funlockfile): Make all of them
49683         dummy if one is not available.  Do not touch them if
49684         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
49685         (getc_maybe_unlocked): New.
49686         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
49687
49688 2008-08-26  Eric Blake  <ebb9@byu.net>
49689
49690         doc/INSTALL: resync from autoconf
49691         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
49692         (INSTALL_PRELUDE): Delete; this is done more efficiently by
49693         moving...
49694         * install.texi [!autoconf]: ...here.  Resync from autoconf.
49695         * INSTALL: Regenerate.
49696         * INSTALL.ISO: New file.
49697         * INSTALL.UTF-8: Likewise.
49698
49699 2008-08-26  Jim Meyering  <meyering@redhat.com>
49700
49701         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
49702         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
49703         these definitions conditional, so that they may be overridden, too.
49704
49705 2008-08-26  Bruno Haible  <bruno@clisp.org>
49706
49707         Generate INSTALL file variants with prettier quotes.
49708         * doc/Makefile (INSTALL_PRELUDE): New macro.
49709         (INSTALL): Use it.
49710         (INSTALL.ISO, INSTALL.UTF-8): New rules.
49711
49712 2008-08-26  Bruno Haible  <bruno@clisp.org>
49713
49714         Run makeinfo in an English locale.
49715         * doc/Makefile (MAKEINFO): New variable.
49716
49717 2008-08-26  Bruno Haible  <bruno@clisp.org>
49718
49719         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
49720         Suggested by Eric Blake.
49721
49722 2008-08-25  Bruno Haible  <bruno@clisp.org>
49723
49724         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
49725
49726 2008-08-25  Eric Blake  <ebb9@byu.net>
49727
49728         c-stack: test that stack overflow can be caught
49729         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
49730         that platform allows handling stack overflow; at least OS/2 EMX
49731         has sigaltstack, but crashes before transferring control to
49732         handler on stack overflow.
49733         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
49734         check for HAVE_STACK_OVERFLOW_HANDLING.
49735         Reported by Elbert Pol.
49736
49737 2008-08-25  Bruno Haible  <bruno@clisp.org>
49738
49739         * doc/posix-functions/strftime.texi: Fix description of strftime
49740         module.
49741
49742 2008-08-24  Bruno Haible  <bruno@clisp.org>
49743
49744         * tests/uniwidth/test-uc_width2.c: New file.
49745         * tests/uniwidth/test-uc_width2.sh: New file.
49746         * modules/uniwidth/width-tests (Files): Add the new files.
49747         (TESTS): Add uniwidth/test-uc_width2.sh.
49748         (TESTS_ENVIRONMENT): New variable.
49749         (check_PROGRAMS): Add test-uc_width2.
49750         (test_uc_width2_SOURCES): New variable.
49751
49752         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
49753         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
49754         not 0x00AB.
49755         Reported by Alexander V. Lukyanov <lav@netis.ru>.
49756
49757 2008-08-22  Eric Blake  <ebb9@byu.net>
49758
49759         test-lock, test-tls: mention why a test is skipped
49760         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
49761         skipped.
49762         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
49763
49764         count-one-bits: relax license
49765         * modules/count-one-bits (License): Relicense to LGPLv2+.
49766         Suggested by Ludovic Courtès, approved by Ben Pfaff.
49767
49768 2008-08-22  Andreas Schwab  <schwab@suse.de>
49769
49770         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
49771         Remove spurious space in assignment.
49772
49773 2008-08-21  Simon Josefsson  <simon@josefsson.org>
49774
49775         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
49776         Paul Eggert <eggert@CS.UCLA.EDU>.
49777
49778 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
49779
49780         * modules/gettext: Add m4/threadlib.m4.
49781
49782 2008-08-19  Eric Blake  <ebb9@byu.net>
49783
49784         test-c-stack: fix compilation failure on FreeBSD 5.0
49785         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
49786         headers before <sys/resource.h>.
49787         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
49788         the bug.
49789         Reported by Nelson H. F. Beebe.
49790
49791         strverscmp: migrate from "strverscmp.h" to <string.h>
49792         * modules/string (Makefile.am): Add new hooks.
49793         * modules/strverscmp (Files): Remove strverscmp.h.
49794         (Depends-on): Add string.
49795         (configure.ac): Add indicator.
49796         (Include): Mention new header.
49797         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
49798         defaults.
49799         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
49800         results.
49801         * lib/strverscmp.h: Delete.
49802         * lib/string.in.h (strverscmp): Provide declaration, when needed.
49803         * tests/test-strverscmp.c (includes): Adjust client.
49804         * lib/check-version.c (includes): Likewise.
49805         * NEWS: Document the change.
49806
49807         strverscmp: add unit test
49808         * modules/strverscmp-tests: New file.
49809         * tests/test-strverscmp.c: Likewise.
49810
49811 2008-08-19  Simon Josefsson  <simon@josefsson.org>
49812
49813         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
49814         regarding Windows crypto stuff, from Mono.
49815
49816 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
49817
49818         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
49819         if present, for intel RND.  Return error on failures.
49820
49821 2008-08-18  Ben Pfaff  <blp@gnu.org>
49822
49823         gitlog-to-changelog: give better diagnostic for failed pipe-open
49824         * build-aux/gitlog-to-changelog: Improve error message: suggest
49825         that the version of Git may be too old.
49826
49827 2008-08-18  Simon Josefsson  <simon@josefsson.org>
49828
49829         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
49830         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
49831
49832 2008-08-18  Bruno Haible  <bruno@clisp.org>
49833
49834         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
49835         pthread_in_use().
49836
49837 2008-08-18  Bruno Haible  <bruno@clisp.org>
49838
49839         * lib/glthread/threadlib.c: Include <pthread.h>.
49840
49841 2008-08-18  Bruno Haible  <bruno@clisp.org>
49842
49843         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
49844         glthread_recursive_lock_* macros.
49845         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
49846         Fix syntax error.
49847
49848 2008-08-18  Bruno Haible  <bruno@clisp.org>
49849
49850         * lib/glthread/thread.c: Avoid forcing a context switch right after
49851         thread creation.
49852
49853 2008-08-17  Bruno Haible  <bruno@clisp.org>
49854
49855         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
49856         * lib/glthread/thread.h: Provide Win32 specific implementation.
49857         * modules/thread (Files): Add lib/glthread/thread.c.
49858         (Depends-on): Add lock.
49859         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
49860
49861 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49862
49863         New module 'yield'.
49864         * modules/yield: New file.
49865         * lib/glthread/yield.h: New file.
49866         * m4/yield.m4: New file.
49867         * MODULES.html.sh (Multithreading): Add yield.
49868
49869 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49870
49871         New module 'thread'.
49872         * modules/thread: New file.
49873         * lib/glthread/thread.h: New file.
49874         * m4/thread.m4: New file.
49875         * MODULES.html.sh (Multithreading): Add thread.
49876
49877 2008-08-17  Bruno Haible  <bruno@clisp.org>
49878
49879         * lib/glthread/lock.h: Include <stdlib.h> always.
49880         * lib/glthread/tls.h: Likewise.
49881         * lib/glthread/cond.h: Likewise.
49882
49883 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
49884
49885         New module 'cond'.
49886         * modules/cond: New file.
49887         * lib/glthread/cond.h: New file.
49888         * lib/glthread/cond.c: New file.
49889         * m4/cond.m4: New file.
49890         * MODULES.html.sh (Multithreading): Add cond.
49891
49892 2008-08-16  Eric Blake  <ebb9@byu.net>
49893
49894         c-stack: fix regression on Irix 5.3 from 2008-06-21
49895         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
49896         sa_sigaction...
49897         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
49898         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
49899         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
49900         * modules/signal (Makefile.am): Use the value.
49901         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
49902         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
49903         * doc/posix-headers/signal.texi (signal.h): Document this
49904         portability issue.
49905         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
49906         Reported by Tom G. Christensen.
49907
49908 2008-08-17  Bruno Haible  <bruno@clisp.org>
49909
49910         New module 'threadlib'.
49911         * modules/threadlib: New file.
49912         * lib/glthread/threadlib.c: New file, extracted from
49913         lib/glthread/lock.c.
49914         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
49915         functions.
49916         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
49917         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
49918         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
49919         macros.
49920         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
49921         (gl_DISABLE_THREADS): Remove macro.
49922         * modules/lock (Files): Remove build-aux/config.rpath.
49923         (Depends-on): Remove havelib. Add threadlib.
49924         (configure.ac-early): Remove section.
49925         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
49926         * modules/tls (Depends-on): Remove lock. Add threadlib.
49927         (Link): New section, copied from threadlib.
49928         * MODULES.html.sh (Multithreading): Add threadlib.
49929
49930 2008-08-14  Bruno Haible  <bruno@clisp.org>
49931
49932         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
49933         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
49934         glthread_rwlock_unlock, glthread_rwlock_destroy,
49935         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
49936         glthread_recursive_lock_destroy): Define as macros always.
49937         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
49938         glthread_lock_lock.
49939         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
49940         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
49941         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
49942         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
49943         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
49944         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
49945         (glthread_recursive_lock_lock_func): Renamed from
49946         glthread_recursive_lock_lock.
49947         (glthread_recursive_lock_unlock_func): Renamed from
49948         glthread_recursive_lock_unlock.
49949         (glthread_recursive_lock_destroy_func): Renamed from
49950         glthread_recursive_lock_destroy.
49951
49952 2008-08-14  Bruno Haible  <bruno@clisp.org>
49953
49954         * lib/glthread/lock.h: Renamed from lib/lock.h.
49955         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
49956         * lib/glthread/tls.h: Renamed from lib/tls.h.
49957         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
49958         * lib/fstrcmp.c: Update includes.
49959         * lib/strsignal.c: Update includes.
49960         * modules/lock (Files, Makefile.am): Update.
49961         (Include): Change to "glthread/lock.h".
49962         * modules/tls (Files, Makefile.am): Update.
49963         (Include): Change to "glthread/tls.h".
49964         * tests/test-lock.c: Update includes.
49965         * tests/test-tls.c: Update includes.
49966         * NEWS: Mention the renamed header files.
49967
49968 2008-08-11  Jim Meyering  <meyering@redhat.com>
49969
49970         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
49971
49972 2008-08-11  Eric Blake  <ebb9@byu.net>
49973
49974         test-c-stack: avoid C99-ism
49975         * tests/test-c-stack.c (main): Fix whitespace, move declaration
49976         before statement.
49977         Reported by Alain Guibert.
49978
49979 2008-08-10  Jim Meyering  <meyering@redhat.com>
49980
49981         ensure that return value of uinttostr et al are not ignored
49982         * lib/inttostr.h (__GNUC_PREREQ): Define.
49983         (__attribute_warn_unused_result__): Define.
49984         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
49985
49986 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
49987
49988         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
49989         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
49990
49991 2008-08-07  Jim Meyering  <meyering@redhat.com>
49992
49993         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
49994
49995         * modules/mkstemp (License): Relicense under LGPLv2+.
49996         * modules/tempname (License): Likewise.
49997
49998 2008-08-06  Bruno Haible  <bruno@clisp.org>
49999
50000         * lib/poll.c (poll): Further micro-optimization.
50001
50002 2008-08-06  Jim Meyering  <meyering@redhat.com>
50003
50004         inet_pton.c: use locale-independent tolower
50005         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
50006         (inet_pton6): Use c_tolower rather than tolower.
50007         * modules/inet_pton (Depends-on): Add c-ctype.
50008
50009 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
50010
50011         * lib/poll.c (poll): Avoid division when timeout is 0, cache
50012         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
50013
50014 2008-08-06  Jim Meyering  <meyering@redhat.com>
50015
50016         * modules/inet_pton (License): Relicense under LGPLv2+.
50017
50018 2008-08-03  Bruno Haible  <bruno@clisp.org>
50019
50020         Additional non-aborting API for lock and tls.
50021         * lib/lock.h: Include <errno.h>.
50022         (glthread_lock_init): New macro/function.
50023         (gl_lock_init): Define as wrapper around glthread_lock_init.
50024         (glthread_lock_lock): New macro/function.
50025         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
50026         (glthread_lock_unlock): New macro/function.
50027         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
50028         (glthread_lock_destroy): New macro/function.
50029         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
50030         (glthread_rwlock_init): New macro/function.
50031         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
50032         (glthread_rwlock_rdlock): New macro/function.
50033         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
50034         (glthread_rwlock_wrlock): New macro/function.
50035         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
50036         (glthread_rwlock_unlock): New macro/function.
50037         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
50038         (glthread_rwlock_destroy): New macro/function.
50039         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
50040         (glthread_recursive_lock_init): New macro/function.
50041         (gl_recursive_lock_init): Define as wrapper around
50042         glthread_recursive_lock_init.
50043         (glthread_recursive_lock_lock): New macro/function.
50044         (gl_recursive_lock_lock): Define as wrapper around
50045         glthread_recursive_lock_lock.
50046         (glthread_recursive_lock_unlock): New macro/function.
50047         (gl_recursive_lock_unlock): Define as wrapper around
50048         glthread_recursive_lock_unlock.
50049         (glthread_recursive_lock_destroy): New macro/function.
50050         (gl_recursive_lock_destroy): Define as wrapper around
50051         glthread_recursive_lock_destroy.
50052         (glthread_once): New macro/function.
50053         (gl_once): Define as wrapper around glthread_once.
50054         Update function declarations.
50055         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
50056         glthread_rwlock_init. Return error code.
50057         (glthread_rwlock_rdlock_multithreaded): Renamed from
50058         glthread_rwlock_rdlock. Return error code.
50059         (glthread_rwlock_wrlock_multithreaded): Renamed from
50060         glthread_rwlock_wrlock. Return error code.
50061         (glthread_rwlock_unlock_multithreaded): Renamed from
50062         glthread_rwlock_unlock. Return error code.
50063         (glthread_rwlock_destroy_multithreaded): Renamed from
50064         glthread_rwlock_destroy. Return error code.
50065         (glthread_recursive_lock_init_multithreaded): Renamed from
50066         glthread_recursive_lock_init. Return error code.
50067         (glthread_recursive_lock_lock_multithreaded): Renamed from
50068         glthread_recursive_lock_lock. Return error code.
50069         (glthread_recursive_lock_unlock_multithreaded): Renamed from
50070         glthread_recursive_lock_unlock. Return error code.
50071         (glthread_recursive_lock_destroy_multithreaded): Renamed from
50072         glthread_recursive_lock_destroy. Return error code.
50073         (glthread_once_call): Make static.
50074         (glthread_once_multithreaded): Renamed from glthread_once.
50075         * lib/tls.h: Include <errno.h>.
50076         (glthread_tls_key_init): New macro/function.
50077         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
50078         (glthread_tls_set): New macro/function.
50079         (gl_tls_set): Define as wrapper around glthread_tls_set.
50080         (glthread_tls_key_destroy): New macro/function.
50081         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
50082         Update function declarations.
50083         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
50084         glthread_tls_get.
50085         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
50086
50087 2008-08-04  Eric Blake  <ebb9@byu.net>
50088
50089         gnumakefile: use space, not TAB, outside of targets
50090         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
50091
50092 2008-08-02  Jim Meyering  <meyering@redhat.com>
50093
50094         getdate.y: avoid locale-dependent date parsing failure
50095         In Turkish locales, getdate would fail to recognize keywords
50096         containing a lowercase "i".  The solution is not to rely on
50097         locale-sensitive case-conversion.
50098         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
50099         (lookup_word): Use c_toupper in place of toupper.
50100         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
50101         Reported by Vefa Bicakci <bicave@superonline.com> in
50102         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
50103         * modules/getdate (Depends-on): Add c-ctype.
50104
50105 2008-08-02  Bruno Haible  <bruno@clisp.org>
50106
50107         * gnulib-tool (func_import): When updating or creating a .gitignore
50108         file, prepend each added line with a slash, and ignore leading slashes
50109         from the existing lines.
50110         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
50111
50112 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50113
50114         Portability fix for GNU make 3.79.1.
50115         * top/GNUmakefile: Avoid 'else COND', which older GNU make
50116         versions do not understand.
50117
50118 2008-08-01  Bruno Haible  <bruno@clisp.org>
50119
50120         Work around bug of HP-UX 10.20 cc with -0.0 literal.
50121         * tests/test-isnanf.h (zero): New variable.
50122         (main): Avoid literal -0.0f.
50123         * tests/test-isnand.h (zero): New variable.
50124         (main): Avoid literal -0.0.
50125         * tests/test-isnanl.h (zero): New variable.
50126         (main): Avoid literal -0.0L.
50127         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
50128         (test_float, test_double, test_long_double): Avoid literals -0.0f,
50129         -0.0, -0.0L.
50130         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
50131         (test_signbitd): Avoid literal -0.0.
50132         (test_signbitl): Avoid literal -0.0L.
50133         * tests/test-ceilf1.c (zero): New variable.
50134         (main): Avoid literal -0.0f.
50135         * tests/test-ceill.c (zero): New variable.
50136         (main): Avoid literal -0.0L.
50137         * tests/test-floorf1.c (zero): New variable.
50138         (main): Avoid literal -0.0f.
50139         * tests/test-floorl.c (zero): New variable.
50140         (main): Avoid literal -0.0L.
50141         * tests/test-roundf1.c (zero): New variable.
50142         (main): Avoid literal -0.0f.
50143         * tests/test-round1.c (zero): New variable.
50144         (main): Avoid literal -0.0.
50145         * tests/test-roundl.c (zero): New variable.
50146         (main): Avoid literal -0.0L.
50147         * tests/test-truncf1.c (zero): New variable.
50148         (main): Avoid literal -0.0f.
50149         * tests/test-trunc1.c (zero): New variable.
50150         (main): Avoid literal -0.0.
50151         * tests/test-truncl.c (zero): New variable.
50152         (main): Avoid literal -0.0L.
50153         * tests/test-frexp.c (zero): New variable.
50154         (main): Avoid literal -0.0.
50155         * tests/test-frexpl.c (zero): New variable.
50156         (main): Avoid literal -0.0L.
50157         * tests/test-ldexpl.c (zero): New variable.
50158         (main): Avoid literal -0.0L.
50159         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
50160         (zerod, zerol): New variables.
50161         (test_function): Avoid literals -0.0, -0.0L.
50162         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
50163         (zerod, zerol): New variables.
50164         (test_function): Avoid literals -0.0, -0.0L.
50165         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
50166         (zerod, zerol): New variables.
50167         (test_function): Avoid literals -0.0, -0.0L.
50168         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
50169         (zerod, zerol): New variables.
50170         (test_function): Avoid literals -0.0, -0.0L.
50171         * tests/test-strtod.c (zero): New variable.
50172         (main): Avoid literal -0.0.
50173         Reported by Jonathan C. Patschke <jp@centtech.com>.
50174
50175 2008-07-31  Jim Meyering  <meyering@redhat.com>
50176
50177         sha256.h: correct definition of SHA224_DIGEST_SIZE
50178         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
50179         Reported by Paulie Pena IV <paulie4@gmail.com>.
50180         Define as 224 / 8, rather than as a literal.
50181         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
50182         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
50183         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
50184
50185 2008-07-31  Bruno Haible  <bruno@clisp.org>
50186
50187         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
50188         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
50189         Reported by Jonathan Patschke <jp@centtech.com>.
50190
50191 2008-07-31  Bruno Haible  <bruno@clisp.org>
50192
50193         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
50194         Reported by Paolo Bonzini <bonzini@gnu.org>.
50195
50196 2008-07-30  Eric Blake  <ebb9@byu.net>
50197
50198         test-strtod: allow compilation without -lm
50199         * tests/test-strtod.c (main): Avoid link dependence on fabs.
50200         Reported by Dennis Clarke <blastwave@gmail.com>.
50201
50202 2008-07-28  Jim Meyering  <meyering@redhat.com>
50203
50204         bootstrap: work also when there are no .po files in po/
50205         * build-aux/bootstrap (update_po_files): Complete the change
50206         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
50207
50208 2008-07-27  Jim Meyering  <meyering@redhat.com>
50209
50210         * users.txt: Add zile.
50211
50212 2008-07-26  Ben Pfaff  <blp@gnu.org>
50213
50214         Add missing dependencies on new m4/exponent[fdl].m4 files.
50215         * modules/isnanf-nolibm: Add m4/exponentf.m4.
50216         * modules/isnand-nolibm: Add m4/exponentd.m4.
50217         * modules/isnanl-nolibm: Add m4/exponentl.m4.
50218         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
50219         m4/isnan[fdl].m4, because the macros actually used moved.
50220         Reported by Jim Meyering.
50221
50222 2008-07-14  Ben Pfaff  <blp@gnu.org>
50223
50224         Add isinf module.
50225         * lib/isinf.c: New file.
50226         * lib/math.in.h: Define isinf macro if we have decided to replace
50227         it.
50228         * m4/isinf.m4: New file.
50229         * m4/math_h.m4: Initialize and substitute variables for isinf
50230         module.
50231         * modules/isinf: New file.
50232         * modules/isinf-tests: New file.
50233         * modules/math: Add substitutions for new module.
50234         * tests/test-isinf.c: New file.
50235         * doc/posix-functions/isinf.texi: Mention new module.
50236         * MODULES.html.sh: Mention new module.
50237
50238 2008-07-14  Ben Pfaff  <blp@gnu.org>
50239
50240         Factor out some macros for use by additional modules.
50241         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
50242         exponentf.m4.
50243         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
50244         exponentd.m4.
50245         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
50246         file exponentl.m4.
50247         * m4/exponentf.m4: New file.
50248         * m4/exponentd.m4: New file.
50249         * m4/exponentl.m4: New file.
50250         * modules/isnanf: Use new file m4/exponentf.m4.
50251         * modules/isnand: Use new file m4/exponentd.m4.
50252         * modules/isnanl: Use new file m4/exponentl.m4.
50253
50254 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
50255
50256         mktime.c: normalize tp->tm_isdst value to -1/0/1.
50257         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
50258         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
50259         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
50260
50261         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
50262         readlink on platforms without PATH_MAX.
50263
50264 2008-07-21  Eric Blake  <ebb9@byu.net>
50265
50266         Warn, not fail, on stale version.
50267         * top/GNUmakefile (_curr-ver): Tone down previous patch.
50268
50269         Don't allow installation with stale devel version number.
50270         * top/GNUmakefile (_is-install-target): New macro.
50271         (_curr-ver): Forbid installation with stale version number.
50272
50273 2008-07-20  Bruno Haible  <bruno@clisp.org>
50274
50275         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
50276         TESTS_ENVIRONMENT.
50277         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
50278
50279 2008-07-20  Bruno Haible  <bruno@clisp.org>
50280
50281         * lib/c-stack.h (c_stack_action): Add documentation.
50282         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
50283
50284 2008-07-20  Bruno Haible  <bruno@clisp.org>
50285
50286         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
50287         * modules/readlink (License): Likewise.
50288
50289 2008-07-17  Eric Blake  <ebb9@byu.net>
50290
50291         * modules/c-stack (Link): Fix typo.
50292
50293         Make c-stack use libsigsegv, when available.
50294         * modules/c-stack (Depends-on): Add libsigsegv.
50295         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
50296         needed.
50297         * lib/c-stack.c (SIGSTKSZ): Define fallback.
50298         (segv_handler, overflow_handler, c_stack_action)
50299         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
50300         implementation when libsigsegv is available, but only when using
50301         the library is necessary.
50302         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
50303         comment, explaining why XSI check fails on Linux.
50304         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
50305         * tests/test-c-stack2.sh: Tweak skip message.
50306         * NEWS: Document new link-time requirements.
50307
50308 2008-07-16  Eric Blake  <ebb9@byu.net>
50309
50310         c-stack: Expose false positives when not using libsigsegv.
50311         * modules/c-stack-tests (Files): Expand test.
50312         * tests/test-c-stack.c (main): Add means to conditionally trigger
50313         non-overflow SIGSEGV.
50314         * tests/test-c-stack2.sh: New file.
50315
50316 2008-07-14  Bruno Haible  <bruno@clisp.org>
50317
50318         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
50319         Reported by Eric Blake.
50320
50321 2008-07-14  Sam Steingold  <sds@gnu.org>
50322             Bruno Haible  <bruno@clisp.org>
50323
50324         New module libsigsegv.
50325         * modules/libsigsegv: New file.
50326         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
50327         modifications.
50328         * MODULES.html.sh (Signal handling): New section.
50329
50330 2008-07-14  Bruno Haible  <bruno@clisp.org>
50331
50332         * modules/unictype/ctype-* (Description): Add the word "function".
50333         Improves the resulting doc in MODULES.html.
50334
50335 2008-07-12  Ben Pfaff  <blp@gnu.org>
50336
50337         Add longlong module.
50338         * modules/longlong: New file.
50339
50340 2008-07-12  Bruno Haible  <bruno@clisp.org>
50341
50342         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
50343         to empty.
50344
50345 2008-07-10  Ben Pfaff  <blp@gnu.org>
50346
50347         Add isnan module.
50348         * doc/posix-functions/isnan.texi: Mention new module.
50349         * lib/math.in.h: Define isnan macro if we have decided to replace
50350         it.
50351         * m4/isnan.m4: New file.
50352         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
50353         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
50354         also.
50355         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
50356         redundancy.
50357         * m4/math_h.m4: Initialize and substitute variables for isnan
50358         module.
50359         * modules/isnan: New file.
50360         * modules/isnan-tests: New file.
50361         * modules/math: Add substitutions for new module.
50362         * tests/test-isnan.c: New file.
50363         * MODULES.html.sh: Mention new module.
50364
50365 2008-07-10  Ben Pfaff  <blp@gnu.org>
50366
50367         Add isnanf module.
50368         * lib/isnanf.m4: New file.
50369         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
50370         (gl_HAVE_ISNANF_IN_LIBM): New macro.
50371         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
50372         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
50373         * modules/isnanf: New file.
50374         * modules/isnanf-tests: New file.
50375         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
50376         files.
50377         * tests/test-isnanf-nolibm.c: factored most of its contents into
50378         new file tests/test-isnanf.h.
50379         * tests/test-isnanf.h: New file.
50380         * tests/test-isnanf.c: New file.
50381         * MODULES.html.sh: Mention new module.
50382         * doc/glibc-functions/isnanf.texi: Mention new module.
50383
50384 2008-07-10  Ben Pfaff  <blp@gnu.org>
50385
50386         Add isnand module.
50387         * lib/isnand.h: New file.
50388         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
50389         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
50390         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
50391         functionality also.
50392         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
50393         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
50394         (gl_HAVE_ISNAND_IN_LIBM): New macro.
50395         * modules/isnand: New file.
50396         * modules/isnand-tests: New file.
50397         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
50398         files.
50399         * tests/test-isnand-nolibm.c: factored most of its contents into
50400         new file tests/test-isnand.h.
50401         * tests/test-isnand.h: New file.
50402         * tests/test-isnand.c: New file.
50403         * MODULES.html.sh: Mention new module.
50404
50405 2008-07-10  Ben Pfaff  <blp@gnu.org>
50406
50407         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
50408         * lib/isnand.h: Rename lib/isnand-nolibm.h.
50409         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
50410         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
50411         * modules/isnanf-nolibm: Update references to renamed files.
50412         * modules/isnand-nolibm: Likewise.
50413         * modules/isnanf-nolibm-tests: Likewise.
50414         * modules/isnand-nolibm-tests: Likewise.
50415         * lib/frexp.c: Likewise.
50416         * lib/isfinite.c: Likewise.
50417         * lib/signbitd.c: Likewise.
50418         * lib/signbitf.c: Likewise.
50419         * lib/vasnprintf.c: Likewise.
50420         * tests/test-ceilf1.c: Likewise.
50421         * tests/test-ceilf2.c: Likewise.
50422         * tests/test-floorf1.c: Likewise.
50423         * tests/test-floorf2.c: Likewise.
50424         * tests/test-frexp.c: Likewise.
50425         * tests/test-round1.c: Likewise.
50426         * tests/test-round2.c: Likewise.
50427         * tests/test-roundf1.c: Likewise.
50428         * tests/test-strtod.c: Likewise.
50429         * tests/test-trunc1.c: Likewise.
50430         * tests/test-trunc2.c: Likewise.
50431         * tests/test-truncf1.c: Likewise.
50432         * tests/test-truncf2.c: Likewise.
50433         * NEWS: Mention the renamed header files.
50434
50435 2008-07-11  Jim Meyering  <meyering@redhat.com>
50436
50437         vc-list-files: make the last-resort awk code more portable
50438         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
50439         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
50440         does not support it.
50441
50442 2008-07-10  Eric Blake  <ebb9@byu.net>
50443
50444         Work with tar's bootstrap.
50445         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
50446         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
50447         an m4 comment.
50448
50449 2008-07-09  Jim Meyering  <meyering@redhat.com>
50450
50451         posix-shell.m4: fix typo that made this test malfunction
50452         * m4/posix-shell.m4: Remove capitalization in variable name.
50453
50454 2008-07-08  Bruno Haible  <bruno@clisp.org>
50455
50456         * m4/onceonly.m4: Update comments.
50457         Reported by Ben Pfaff <blp@cs.stanford.edu>.
50458
50459 2008-07-04  Jim Meyering  <meyering@redhat.com>
50460
50461         * users.txt: Add vc-dwim.
50462         (bison, coreutils): Use the gitweb URL.
50463
50464 2008-07-03  Jim Meyering  <meyering@redhat.com>
50465
50466         * users.txt: Add libffcall.  From Sam Steingold.
50467
50468 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
50469
50470         getdate.y: do not ignore TZ with relative day, month or year offset
50471         * lib/getdate.y (get_date): Move the tz-handling block to follow the
50472         relative-date-handling, since otherwise, the latter would clobber the
50473         sole output (an updated Start value) of the tz-handling block.
50474         * tests/test-getdate.c: Tests for the fix
50475
50476 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50477
50478         Recognize 'foo_LIBRARIES += libgnu.a'.
50479         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
50480         makefile snippet has already specified an installation location,
50481         also using '+='.
50482
50483 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
50484
50485         getdate.y: factor out common actions
50486         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
50487         Use them in place of open-coded actions.
50488
50489 2008-07-01  Simon Josefsson  <simon@josefsson.org>
50490
50491         Add self-test for getdate module.
50492         * modules/getdate-tests: New file.
50493         * tests/test-getdate.c: New file.
50494
50495 2008-06-29  Bruno Haible  <bruno@clisp.org>
50496
50497         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
50498         .gitignore.
50499         Reported by Sylvain Beucler <beuc@beuc.net>.
50500
50501 2008-06-29  Bruno Haible  <bruno@clisp.org>
50502
50503         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
50504         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
50505
50506 2008-06-29  Bruno Haible  <bruno@clisp.org>
50507
50508         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
50509         EXTRA_DIST.
50510         Reported by Sylvain Beucler <beuc@beuc.net>.
50511
50512 2008-06-26  Jim Meyering  <meyering@redhat.com>
50513
50514         make several modules depend on the "open" module
50515         This provides slightly increased consistency when opening-for-write
50516         the name of a non-directory spelled with a trailing slash.
50517         * modules/chdir-safer: Likewise.
50518         * modules/chown: Likewise.
50519         * modules/clean-temp: Likewise.
50520         * modules/copy-file: Likewise.
50521         * modules/fchdir: Likewise.
50522         * modules/fcntl-safer: Likewise.
50523         * modules/pipe: Likewise.
50524         * modules/utime: Likewise.
50525         Prompted by Eric Blake and Bruno Haible.
50526
50527 2008-06-24  Andreas Schwab  <schwab@suse.de>
50528
50529         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
50530         literals can be used as initializers for global variables.
50531
50532 2008-06-23  Eric Blake  <ebb9@byu.net>
50533
50534         Make gnulib-cache.m4 easier to diff.
50535         * gnulib-tool (func_import): Allow newlines when reading cached
50536         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
50537
50538 2008-06-23  Bruno Haible  <bruno@clisp.org>
50539
50540         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
50541         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
50542         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
50543         m4/signalblocking.m4.
50544         (gl_PREREQ_SIGACTION): Don't invoke it.
50545         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
50546         gl_PREREQ_SIG_HANDLER_H.
50547         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
50548         Don't check for sigaction here.
50549
50550 2008-06-23  Bruno Haible  <bruno@clisp.org>
50551
50552         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
50553         (install_handlers): Don't set the SA_RESETHAND flag.
50554
50555 2008-06-23  Bruno Haible  <bruno@clisp.org>
50556
50557         * m4/sigaction.m4: Comment fixes.
50558         * lib/signal.in.h: Likewise.
50559
50560 2008-06-23  Eric Blake  <ebb9@byu.net>
50561
50562         Fix typo.
50563         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
50564
50565         Avoid SA_ namespace.
50566         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
50567         Reported by Ralf Wildenhues.
50568
50569         Avoid test failure due to SA_RESTORER.
50570         * tests/test-sigaction.c (SA_MASK): New macro.
50571         (main): Avoid failing due to extension flags being set.
50572         Reported by Jim Meyering.
50573
50574         Revert use of sig-handler.h in sigprocmask.c.
50575         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
50576         it requires the existence of struct sigaction.
50577         * lib/sigprocmask.c (handler_t): Restore typedef.
50578         (rpl_signal, old_handlers): Use local type.
50579
50580 2008-06-22  Bruno Haible  <bruno@clisp.org>
50581
50582         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
50583         conditionally.
50584         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
50585
50586 2008-06-22  Bruno Haible  <bruno@clisp.org>
50587
50588         * doc/posix-functions/siginterrupt.texi: Move note.
50589
50590         * lib/signal.in.h (SA_RESTART): New macro.
50591         * lib/sigaction.c: Update comment.
50592
50593         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
50594
50595         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
50596         (gl_PREREQ_SIGPROCMASK): Invoke it.
50597         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
50598
50599         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
50600
50601         * lib/sigprocmask.c: Update a comment.
50602
50603 2008-06-21  Eric Blake  <ebb9@byu.net>
50604
50605         Use sigaction module rather than signal().
50606         * modules/c-stack (Depends-on): Add sigaction.
50607         * modules/fatal-signal (Depends-on): Likewise.
50608         * modules/nanosleep (Depends-on): Likewise.
50609         * modules/sigprocmask (Files): Add sig-handler.h.
50610         * modules/sigaction (Files): Likewise.
50611         * lib/sig-handler.h (get_handler): New file, suggested by Paul
50612         Eggert.
50613         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
50614         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
50615         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
50616         (init_fatal_signals): Likewise.
50617         * lib/nanosleep.c (rpl_nanosleep): Likewise.
50618         (siginterrupt): Delete fallback.
50619         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
50620         instead.
50621         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
50622         siginterrupt.
50623
50624         New module sigaction, for mingw.
50625         * modules/sigaction: New module...
50626         * modules/sigaction-tests: ...and its test.
50627         * m4/sigaction.m4: New file.
50628         * lib/sigaction.c: Likewise.
50629         * tests/test-sigaction.c: Likewise.
50630         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
50631         * modules/signal (Makefile.am): Likewise.
50632         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
50633         needed.
50634         * doc/posix-headers/signal.texi (signal.h): Mention provided
50635         types.
50636         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
50637         that sigaction is preferable.
50638         * doc/posix-functions/sigaction.texi (sigaction): Mention new
50639         module.
50640         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
50641         sigaction.
50642
50643         Improve robustness of sigprocmask by overriding signal.
50644         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
50645         is in use.
50646         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
50647         (SIGKILL, SIGSTOP): Provide fallbacks.
50648         (rpl_signal): Implement.
50649         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
50650         signal can be called inside handlers.
50651
50652         Fix nanosleep module on mingw.
50653         * modules/nanosleep (Depends-on): Add sys_select.
50654         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
50655
50656         Fix licensing of sigprocmask.
50657         * modules/raise (License): Relicense as LGPL.
50658
50659 2008-06-21  Bruno Haible  <bruno@clisp.org>
50660
50661         * lib/propername.c (proper_name_utf8): Don't use the transliterated
50662         result if it contains question marks.
50663         Reported by Michael Geng <linux@michaelgeng.de>.
50664
50665 2008-06-19  Bruno Haible  <bruno@clisp.org>
50666
50667         Fix CVS-ism.
50668         * doc/gnulib.texi: Include updated-stamp.texi.
50669         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
50670         (updated-stamp.texi): New rule.
50671         (gnulib.info): Depend on it.
50672         * doc/.gitignore: Add updated-stamp.texi.
50673         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
50674
50675 2008-06-19  Bruno Haible  <bruno@clisp.org>
50676
50677         * doc/Makefile (gnulib.info): Update and simplify dependencies.
50678         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
50679
50680 2008-06-19  Eric Blake  <ebb9@byu.net>
50681
50682         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
50683         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
50684         Reported by Stepan Kasal.
50685
50686 2008-06-18  Bruno Haible  <bruno@clisp.org>
50687
50688         * lib/fatal-signal.c (init_fatal_signals): Add comment.
50689         Reported by Eric Blake.
50690
50691 2008-06-18  Eric Blake  <ebb9@byu.net>
50692
50693         Work around cygwin 1.5.25 strsignal bug.
50694         * tests/test-strsignal.c: Allow for const char *.
50695         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
50696
50697 2008-06-18  Simon Josefsson  <simon@josefsson.org>
50698
50699         * users.txt: Update URL to article and add author/date
50700         information.
50701
50702 2008-06-17  Bruno Haible  <bruno@clisp.org>
50703
50704         New macro gl_DISABLE_THREADS.
50705         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
50706         if the user did not pass --enable-threads or --disable-threads option.
50707         (gl_DISABLE_THREADS): New macro.
50708         Reported by Eric Blake <ebb9@byu.net>.
50709
50710 2008-06-17  Bruno Haible  <bruno@clisp.org>
50711
50712         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
50713         when the macro ignores it.
50714         Based on a patch by Eric Blake <ebb9@byu.net>.
50715
50716 2008-06-17  Bruno Haible  <bruno@clisp.org>
50717
50718         * modules/tls (License): Change to LGPLv2+.
50719         Reported by Eric Blake.
50720
50721 2008-06-17  Eric Blake  <ebb9@byu.net>
50722
50723         Simplify c-stack prerequisites.
50724         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
50725         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
50726         no longer requires <ucontext.h> to exist.  Optimize setrlimit
50727         check.
50728         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
50729         <sys/resource.h>.
50730
50731         Move c-stack test into testsuite.
50732         * modules/c-stack-tests: New file.
50733         * lib/c-stack.c [DEBUG]: Move test program...
50734         * tests/test-c-stack.c: ...into this new file.  Skip rather than
50735         fail test if sigaltstack is lacking.
50736         * tests/test-c-stack.sh: New driver file.
50737
50738 2008-06-16  Eric Blake  <ebb9@byu.net>
50739
50740         Use raise module consistently.
50741         * modules/fatal-signal (Depends-on): Add raise.
50742         * modules/sigprocmask (Depends-on): Likewise.
50743         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
50744         * lib/sigprocmask.c (sigprocmask): Likewise.
50745         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
50746         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
50747
50748         Fix compliance bug in sigpending.
50749         * lib/sigprocmask.c (sigpending): Return pending array via
50750         parameter, not return value.
50751
50752 2008-06-14  Eric Blake  <ebb9@byu.net>
50753
50754         Improve obstack-printf test code.
50755         * tests/test-obstack-printf.c (test_function): Fix comment, and
50756         simplify usage of obstack_* in macros.  Add a test for coverage.
50757         Reported by Bruno Haible.
50758
50759 2008-06-14  Bruno Haible  <bruno@clisp.org>
50760
50761         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
50762         array size as a constant, not as a const variable.
50763         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
50764         AC_USE_SYSTEM_EXTENSIONS.
50765         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
50766         Test whether the obstack_printf function actually exists.
50767         * modules/obstack-printf (Depends-on): Add extensions.
50768         (Include): Remove obstack.h.
50769         * modules/obstack-printf-posix (Depends-on): Add extensions.
50770         (Include): Remove obstack.h.
50771
50772 2008-06-13  Eric Blake  <ebb9@byu.net>
50773
50774         Add obstack-printf and obstack-printf-posix modules.
50775         * modules/obstack-printf: New file.
50776         * modules/obstack-printf-posix: Likewise.
50777         * MODULES.html.sh (Misc): Mention them.
50778         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
50779         Likewise.
50780         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
50781         Likewise.
50782         * modules/stdio (Makefile.am): Accomodate new modules.
50783         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
50784         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
50785         Declare.
50786         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
50787         functions.
50788         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
50789         (gl_REPLACE_OBSTACK_PRINTF): New macros
50790         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
50791         * tests/test-obstack-printf.c: New file.
50792         * modules/obstack-printf-tests: Likewise.
50793         * modules/obstack-printf-posix-tests: Likewise.
50794
50795 2008-06-11  Bruno Haible  <bruno@clisp.org>
50796
50797         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
50798         * lib/open.c: Include errno.h.
50799         (open): Fail when attempting to write to a file that has a trailing
50800         slash.
50801         * tests/test-open.c (main): Test against trailing slash bug.
50802         * doc/posix-functions/open.texi: Mention the trailing slash bug.
50803
50804 2008-06-10  Bruno Haible  <bruno@clisp.org>
50805
50806         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
50807         for $? to work inside the trap command, with various /bin/sh-s.
50808         * tests/test-vc-list-files-cvs.sh: Likewise.
50809
50810 2008-06-10  Bruno Haible  <bruno@clisp.org>
50811
50812         * lib/acl-internal.h: Don't include gettext.h here.
50813         * lib/set-mode-acl.c: Include gettext.h here.
50814         * lib/copy-acl.c: Likewise.
50815
50816 2008-06-10  Bruno Haible  <bruno@clisp.org>
50817
50818         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
50819         * lib/wait-process.c (wait_subprocess): Likewise.
50820         * lib/execute.h (execute): Add termsigp argument.
50821         * lib/execute.c (execute): Likewise.
50822         * lib/csharpcomp.c (compile_csharp_using_pnet,
50823         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
50824         * lib/csharpexec.c (execute_csharp_using_pnet,
50825         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
50826         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
50827         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
50828         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
50829         is_jikes_present): Update.
50830         * lib/javaexec.c (execute_java_class): Update.
50831         * lib/javaversion.c (execute_and_read_line): Update.
50832         * NEWS: Document the changes.
50833         Reported by Eric Blake.
50834
50835 2008-06-10  Eric Blake  <ebb9@byu.net>
50836
50837         Add missing include.
50838         * tests/test-strstr.c (includes): Add <signal.h>.
50839         * tests/test-strcasestr.c (includes): Likewise.
50840         * tests/test-memmem.c (includes): Likewise.
50841
50842 2008-06-10  Bruno Haible  <bruno@clisp.org>
50843
50844         * lib/wait-process.c (wait_subprocess): Add an assertion.
50845
50846 2008-06-10  Bruno Haible  <bruno@clisp.org>
50847
50848         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
50849
50850 2008-06-10  Bruno Haible  <bruno@clisp.org>
50851
50852         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
50853         using alarm().
50854         * tests/test-strcasestr.c (main): Likewise.
50855         * tests/test-strstr.c (main): Likewise.
50856
50857 2008-06-09  Bruno Haible  <bruno@clisp.org>
50858
50859         Work around the Solaris 10 ACE ACLs ABI change.
50860         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
50861         declare if ACL_NO_TRIVIAL is present.
50862         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
50863         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
50864         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
50865         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
50866         define if ACL_NO_TRIVIAL is present.
50867         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
50868         and use the current ABI.
50869         (file_has_acl): Use same #if condition as elsewhere.
50870         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
50871         in use, and use the current ABI.
50872         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
50873         Reported by Jim Meyering.
50874
50875 2008-06-09  Eric Blake  <ebb9@byu.net>
50876
50877         Work around environments that (stupidly) ignore SIGALRM.
50878         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
50879         before using alarm().
50880         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
50881         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
50882         Reported by Ian Beckwith <ianb@erislabs.net>.
50883
50884         Produce autobuild blurb earlier in log.
50885         * modules/autobuild (configure.ac-early): Move AB_INIT here.
50886
50887 2008-06-09  Jim Meyering  <meyering@redhat.com>
50888         and OndÅ™ej Vašík  <ovasik@redhat.com>
50889
50890         utimens.c: correct kernel bug work-around
50891         OndÅ™ej Vašík found that the invalid return value of 280 indicates
50892         failure, not success, and the kernel bug we're trying to work
50893         around affects not just the utimensat call, but also the fallback
50894         futimens call.
50895         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
50896         not success.
50897         [HAVE_FUTIMENS]: Use the same work-around, here.
50898
50899 2008-06-09  Jim Meyering  <meyering@redhat.com>
50900
50901         add more guards around definition of ACE_-related code
50902         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
50903         ALLOW and ACE_OWNER are also defined.
50904
50905 2008-06-08  Bruno Haible  <bruno@clisp.org>
50906
50907         * lib/acl-internal.h: Add me as co-author.
50908         * lib/file-has-acl.c: Likewise.
50909         * lib/set-mode-acl.c: Likewise.
50910         * lib/copy-acl.c: Likewise.
50911
50912 2008-06-08  Bruno Haible  <bruno@clisp.org>
50913
50914         Add support for AIX ACLs.
50915         * lib/acl-internal.h (acl_nontrivial): New declaration.
50916         * lib/file-has-acl.c (acl_nontrivial): New function.
50917         (file_has_acl): Add implementation using AIX 4 ACL API.
50918         * lib/set-mode-acl.c (qset_acl): Likewise.
50919         * lib/copy-acl.c (qcopy_acl): Likewise.
50920
50921 2008-06-08  Bruno Haible  <bruno@clisp.org>
50922
50923         Add support for HP-UX ACLs.
50924         * lib/acl-internal.h (acl_nontrivial): New declaration.
50925         * lib/file-has-acl.c (acl_nontrivial): New function.
50926         (file_has_acl): Add implementation using HP-UX 11 ACL API.
50927         * lib/set-mode-acl.c (qset_acl): Likewise.
50928         * lib/copy-acl.c (qcopy_acl): Likewise.
50929
50930 2008-06-08  Bruno Haible  <bruno@clisp.org>
50931
50932         Add support for Cygwin ACLs.
50933         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
50934         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
50935         the chmod_or_fchmod call.
50936         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
50937
50938 2008-06-08  Bruno Haible  <bruno@clisp.org>
50939
50940         Fix bug with setuid modes in Solaris 10+ code.
50941         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
50942         succeeded, when the mode contains some special bits.
50943
50944 2008-06-08  Bruno Haible  <bruno@clisp.org>
50945
50946         Add support for Solaris 7..10 ACLs.
50947         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
50948         declarations.
50949         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
50950         functions.
50951         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
50952         * lib/set-mode-acl.c (qset_acl): Likewise.
50953         * lib/copy-acl.c (qcopy_acl): Likewise.
50954
50955 2008-06-08  Bruno Haible  <bruno@clisp.org>
50956
50957         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
50958         declaration.
50959         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
50960         (acl_access_nontrivial): Remove MacOS X case.
50961         (file_has_acl): Use acl_extended_nontrivial.
50962         * lib/copy-acl.c (qcopy_acl): Likewise.
50963
50964 2008-06-08  Bruno Haible  <bruno@clisp.org>
50965
50966         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
50967
50968 2008-06-08  Jim Meyering  <meyering@redhat.com>
50969
50970         * modules/acl (Maintainer): Add Bruno Haible.
50971
50972 2008-06-07  Bruno Haible  <bruno@clisp.org>
50973
50974         Improve support for Tru64 ACLs.
50975         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
50976         ACL on OSF/1.
50977
50978 2008-06-07  Bruno Haible  <bruno@clisp.org>
50979
50980         Add support for MacOS X ACLs.
50981         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
50982         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
50983         * lib/set-mode-acl.c (qset_acl): Likewise.
50984         * lib/copy-acl.c (qcopy_acl): Likewise.
50985
50986 2008-06-07  Bruno Haible  <bruno@clisp.org>
50987
50988         Fix memory leak introduced on 2008-05-22.
50989         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
50990         use.
50991
50992 2008-06-07  Bruno Haible  <bruno@clisp.org>
50993
50994         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
50995         to construct an empty ACL.
50996
50997 2008-06-07  Bruno Haible  <bruno@clisp.org>
50998
50999         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
51000         precisely.
51001         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
51002
51003 2008-06-07  Bruno Haible  <bruno@clisp.org>
51004
51005         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
51006         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
51007
51008 2008-06-07  Bruno Haible  <bruno@clisp.org>
51009
51010         * doc/posix-functions/_setjmp.texi: Explain the use of this function
51011         regardless of POSIX.
51012         * doc/posix-functions/_longjmp.texi: Likewise.
51013         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
51014         SystemV platform in this case.
51015
51016 2008-06-06  Eric Blake  <ebb9@byu.net>
51017
51018         Document abort() bugs.
51019         * doc/posix-functions/abort.texi (abort): Mention anomalies.
51020
51021         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
51022         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
51023         sigsetjmp.
51024         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
51025         siglongjmp, but only as a macro.
51026         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
51027         is obsolete.
51028         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
51029
51030         Tweak documentation to cover cygwin argz bugs.
51031         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
51032         argz bug fix; no code change needed since no cygwin releases
51033         occurred between the last fix and the bug being tested.
51034         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
51035         module and recently fixed cygwin bugs.
51036         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
51037         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
51038         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
51039         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
51040         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
51041         Likewise.
51042         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
51043         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
51044         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
51045         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
51046         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
51047         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
51048         Likewise.
51049
51050         Avoid gcc warning on cygwin.
51051         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
51052         !ACL_NO_TRIVIAL]: Avoid unused variable.
51053
51054 2008-06-05  Eric Blake  <ebb9@byu.net>
51055
51056         Be tolerant of UNKNOWN version in gnulib-tool test dir.
51057         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
51058         git-version-gen fails to come up with a version.
51059         Reported by Simon Josefsson.
51060
51061 2008-06-05  Jim Meyering  <meyering@redhat.com>
51062             Paul Eggert  <eggert@cs.ucla.edu>
51063
51064         utimens.c: work around a probable Linux kernel bug
51065         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
51066         appears to be a kernel bug that causes utimensat to return 280
51067         instead of 0, indicating success.
51068
51069 2008-06-04  Bruno Haible  <bruno@clisp.org>
51070
51071         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
51072         2008-06-01 commit.
51073
51074 2008-06-04  Bruno Haible  <bruno@clisp.org>
51075
51076         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
51077         * lib/file-has-acl.c (acl_access_nontrivial): New function.
51078         (file_has_acl): Use it. Save errno afterwards.
51079         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
51080
51081 2008-06-03  Bruno Haible  <bruno@clisp.org>
51082
51083         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
51084         draft code. Simplify #ifs.
51085         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
51086         Put Solaris code after POSIX-draft code. Fix comments regarding
51087         Solaris 10, HP-UX. Mention Cygwin.
51088         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
51089
51090 2008-06-03  Eric Blake  <ebb9@byu.net>
51091
51092         Provide fallback for older kernels.
51093         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
51094         Provide runtime fallback if kernel lacks support.
51095         Reported by Mike Frysinger.
51096
51097 2008-06-02  Bruno Haible  <bruno@clisp.org>
51098
51099         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
51100         it exists.
51101
51102 2008-06-02  Bruno Haible  <bruno@clisp.org>
51103
51104         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
51105         * lib/copy-acl.c (qcopy_acl): Update comment.
51106
51107 2008-06-02  Bruno Haible  <bruno@clisp.org>
51108
51109         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
51110         like ACL APIs.
51111
51112 2008-06-02  Bruno Haible  <bruno@clisp.org>
51113
51114         * tests/test-file-has-acl.sh: Use different code for Cygwin.
51115         * tests/test-set-mode-acl.sh: Likewise.
51116         * tests/test-copy-acl.sh: Likewise.
51117         * tests/test-copy-file.sh: Likewise.
51118
51119 2008-06-02  Bruno Haible  <bruno@clisp.org>
51120
51121         * tests/test-file-has-acl.sh: Remove unused code.
51122
51123 2008-06-01  Bruno Haible  <bruno@clisp.org>
51124
51125         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
51126         (copy_acl): Just a wrapper around qcopy_acl that emits the error
51127         messages.
51128         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
51129
51130 2008-06-01  Bruno Haible  <bruno@clisp.org>
51131
51132         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
51133         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
51134         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
51135         APIs.
51136         * modules/acl-tests (configure.ac): Remove tests now contained in
51137         m4/acl.m4.
51138
51139 2008-06-02  Jim Meyering  <meyering@redhat.com>
51140
51141         announce-gen: use a better key-server host name
51142         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
51143         it may be more consistently reliable.  Suggested by Werner Koch
51144         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
51145
51146 2008-06-01  Bruno Haible  <bruno@clisp.org>
51147
51148         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
51149         Reported by Voroskoi Andras <voroskoi@gmail.com>.
51150
51151 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
51152
51153         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
51154
51155 2008-06-01  Bruno Haible  <bruno@clisp.org>
51156
51157         New ACL tests.
51158         * tests/test-file-has-acl.sh: New file.
51159         * tests/test-file-has-acl.c: New file.
51160         * tests/test-set-mode-acl.sh: New file.
51161         * tests/test-set-mode-acl.c: New file.
51162         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
51163         * tests/test-copy-acl.c: New file.
51164         * modules/acl-tests: New file, based on modules/copy-file-tests.
51165         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
51166         (Depends-on): Add acl-tests.
51167         (configure.ac): Remove checks.
51168         (Makefile.am): Don't create test-sameacls program here any more.
51169
51170 2008-06-01  Bruno Haible  <bruno@clisp.org>
51171
51172         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
51173         * tests/test-sameacls.c: Include progname.h.
51174         (main): Invoke set_program_name. Portability fixes for MacOS X,
51175         Solaris, HP-UX.
51176
51177 2008-06-01  Bruno Haible  <bruno@clisp.org>
51178
51179         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
51180         function.
51181         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
51182
51183 2008-06-01  Bruno Haible  <bruno@clisp.org>
51184
51185         * modules/rpmatch (Depends-on): Add strdup.
51186
51187 2008-06-01  Bruno Haible  <bruno@clisp.org>
51188
51189         * lib/pipe.c: Include unistd-safer.h.
51190         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
51191         * modules/pipe (Depends-on): Add unistd-safer.
51192
51193 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51194
51195         * modules/autobuild (configure.ac): Call AB_INIT.
51196
51197 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51198
51199         * tests/test-getaddrinfo.c: Don't print debug messages by default.
51200         Suggested by Bruno Haible <bruno@clisp.org>.
51201
51202 2008-05-30  Simon Josefsson  <simon@josefsson.org>
51203
51204         * tests/test-base64.c: Cast size_t to unsigned long when invoking
51205         printf.  Use %lu instead of %d.  Reported by Bruno Haible
51206         <bruno@clisp.org>.
51207
51208 2008-05-29  Eric Blake  <ebb9@byu.net>
51209
51210         Prefer new POSIX 200x interfaces over futimesat.
51211         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
51212         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
51213         when available.
51214         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
51215
51216 2008-05-28  Bruno Haible  <bruno@clisp.org>
51217
51218         * modules/stpcpy (License): Change to LGPLv2+.
51219         Requested by David Lutterkort <dlutter@redhat.com>.
51220
51221 2008-05-27  Bruno Haible  <bruno@clisp.org>
51222
51223         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
51224         current mingw.
51225         Reported by Jose E. Marchesi <jemarch@gnu.org>.
51226
51227 2008-05-27  Bruno Haible  <bruno@clisp.org>
51228
51229         * modules/iconv_open (Link): New section, from module 'iconv'.
51230         * modules/striconv (Link): Likewise.
51231         * modules/striconveh (Link): Likewise.
51232         * modules/xstriconv (Link): Likewise.
51233         * modules/unicodeio (Link): Likewise.
51234         * modules/propername (Link): Likewise.
51235         Reported by Jim Meyering.
51236
51237 2008-05-26  Jim Meyering  <meyering@redhat.com>
51238
51239         sha256: do not artificially restrict buffer length to be < 2^32
51240         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
51241         uint32_t to size_t.
51242         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
51243         to match.
51244
51245         avoid unaligned access errors, e.g., on sparc
51246         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
51247         direct access through a possibly-unaligned uint64* pointer.
51248         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
51249         direct access through a possibly-unaligned uint32* pointer.
51250         Prompted by this patch from Tom "spot" Callaway:
51251         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
51252
51253         sha512.c: fix typo in comment
51254         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
51255
51256 2008-05-25  Bruno Haible  <bruno@clisp.org>
51257
51258         * lib/set-mode-acl.c: Renamed from lib/acl.c.
51259         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
51260         (Makefile.am): Update lib_SOURCES.
51261
51262 2008-05-25  Bruno Haible  <bruno@clisp.org>
51263
51264         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
51265
51266 2008-05-25  Jim Meyering  <meyering@redhat.com>
51267
51268         useless-if-before-free: freed expr may have white-space differences
51269         * build-aux/useless-if-before-free: Recognize cases in which the
51270         freed expression differs from the tested one in embedded white
51271         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
51272         $1 was used, so we can't make any regexp shy.  Improved tests now
51273         detect this.
51274
51275         useless-if-before-free: accept white space in the expression.
51276         * build-aux/useless-if-before-free: For now, any white space
51277         in the expression must be identical in the free argument.
51278
51279         useless-if-before-free: efficiency tweak
51280         * build-aux/useless-if-before-free: Make the expression-matching
51281         regexp "shy".
51282         Make the *outer* regexp shy, not the expr-matching one.
51283
51284         update code-in-comment to accept cast of free arg
51285         * build-aux/useless-if-before-free: Update regexp.
51286
51287 2008-05-25  Bruno Haible  <bruno@clisp.org>
51288
51289         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
51290         * modules/copy-file-tests (Files, Makefile.am): Update.
51291         * tests/test-copy-file.c (func_test_copy): Update.
51292
51293 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
51294
51295         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
51296
51297 2008-05-23  Bruno Haible  <bruno@clisp.org>
51298
51299         Improve support for ACLs on OSF/1.
51300         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
51301         Remove fallback for unknown flavors of ACLs.
51302
51303 2008-05-22  Bruno Haible  <bruno@clisp.org>
51304
51305         Add support for ACLs on OSF/1.
51306         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
51307         replacements.
51308         (acl_free_text): New macro fallback.
51309         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
51310         acl_free.
51311         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
51312         acl_free_text function. Require AC_C_INLINE.
51313
51314 2008-05-22  Bruno Haible  <bruno@clisp.org>
51315
51316         Make copy_acl work on MacOS X 10.5.
51317         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
51318         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
51319         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
51320         If MODE_INSIDE_ACL, don't assume that every system has the same text
51321         representation for ACLs as FreeBSD.
51322         * lib/copy-acl.c (copy_acl): Add support for platforms with
51323         !MODE_INSIDE_ACL.
51324         * lib/file-has-acl.c (file_has_acl): Likewise.
51325         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
51326         FreeBSD, MacOS X, or IRIX, respectively.
51327
51328 2008-05-22  Bruno Haible  <bruno@clisp.org>
51329
51330         * lib/acl.h: Don't include <sys/acl.h>.
51331         (GETACLCNT): Move fallback to lib/acl-internal.h.
51332         * lib/acl-internal.h: Include <sys/acl.h> here.
51333         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
51334
51335 2008-05-22  Bruno Haible  <bruno@clisp.org>
51336
51337         Split off copy_acl function to separate file.
51338         * lib/copy-acl.c: New file, extracted from lib/acl.c.
51339         * lib/acl.c (copy_acl): Moved function to separate file.
51340         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
51341         * modules/acl (Files): Add lib/copy-acl.c.
51342         (Makefiles.am): Augment lib_SOURCES.
51343
51344 2008-05-22  Bruno Haible  <bruno@clisp.org>
51345
51346         * modules/copy-file-tests: New file.
51347         * tests/test-copy-file.sh: New file.
51348         * tests/test-copy-file.c: New file.
51349         * tests/test-copy-file-sameacls.c: New file.
51350
51351 2008-05-22  Eric Blake  <ebb9@byu.net>
51352
51353         Avoid gcc warning.
51354         * tests/test-memcmp.c (main): Pass NULL indirectly.
51355
51356 2008-05-21  Bruno Haible  <bruno@clisp.org>
51357
51358         Add reference doc about ACLs.
51359         * doc/acl-resources.txt: New file.
51360         * doc/acl-cygwin.txt: New file.
51361
51362 2008-05-21  Bruno Haible  <bruno@clisp.org>
51363
51364         Avoid one more warning from gcc.
51365         * lib/vasnprintf.c (IF_LINT): Update comments.
51366         (VASNPRINTF): Use it also for the 'prefix' array initializer.
51367
51368 2008-05-21  Jim Meyering  <meyering@redhat.com>
51369
51370         avoid a warning from gcc
51371         * lib/vasnprintf.c (IF_LINT): Define.
51372         (scale10_round_decimal_long_double):
51373         Use it to avoid a "may be used uninitialized" warning.
51374         (scale10_round_decimal_double): Likewise.
51375
51376 2008-05-21  Simon Josefsson  <simon@josefsson.org>
51377
51378         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
51379         declared.
51380
51381 2008-05-20  Bruno Haible  <bruno@clisp.org>
51382
51383         * tests/test-memcmp.c (main): Test also the sign of the result. Test
51384         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
51385
51386 2008-05-20  Simon Josefsson  <simon@josefsson.org>
51387
51388         * modules/memcmp-tests: New file.
51389         * tests/test-memcmp.c: New file.
51390
51391 2008-05-19  Bruno Haible  <bruno@clisp.org>
51392
51393         * modules/propername (Notice, configure.ac): Put quoted "..." into
51394         --keyword option.
51395         * lib/propername.h: Update comments accordingly.
51396         Reported by Eric Blake.
51397
51398 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
51399
51400         * modules/getpass-gnu (Depends-on): Add fseeko.
51401
51402 2008-05-19  Simon Josefsson  <simon@josefsson.org>
51403
51404         * modules/base64-tests: New file.
51405
51406 2008-05-19  Bo Borgerson <gigabo@gmail.com>
51407
51408         * lib/base64.c (base64_decode_ctx): If a decode context structure
51409         was passed in use it to ignore newlines.  If a context structure
51410         was _not_ passed in, continue to treat newlines as garbage (this
51411         is the historical behavior).  Formerly base64_decode.
51412         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
51413         takes a decode context structure.
51414         * lib/base64.h (base64_decode): Macro for four-argument calls.
51415         (base64_decode_alloc): Likewise.
51416         * lib/base64.c (base64_decode_ctx): If a decode context structure
51417         was passed in use it to ignore newlines.  If a context structure
51418         was _not_ passed in, continue to treat newlines as garbage (this
51419         is the historical behavior).  Formerly base64_decode.
51420         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
51421         takes a decode context structure.
51422         * lib/base64.h (base64_decode): Macro for four-argument calls.
51423         (base64_decode_alloc): Likewise.
51424
51425 2008-05-19  Jim Meyering  <meyering@redhat.com>
51426
51427         avoid a warning from gcc
51428         * lib/trim.c (IF_LINT): Define.
51429         (trim2): Use it to avoid a "may be used uninitialized" warning.
51430
51431         Fix doc typo.
51432         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
51433
51434 2008-05-19  Bruno Haible  <bruno@clisp.org>
51435
51436         * doc/glibc-functions/getpass.texi: Document limits of other
51437         implementations.
51438
51439 2008-05-19  Simon Josefsson  <simon@josefsson.org>
51440             Bruno Haible <bruno@clisp.org>
51441
51442         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
51443
51444 2008-05-18  Bruno Haible  <bruno@clisp.org>
51445
51446         * modules/propername: New file, from GNU gettext.
51447         * lib/propername.h: New file, from GNU gettext.
51448         * lib/propername.c: New file, from GNU gettext.
51449         * MODULES.html.sh (Internationalization functions): Add propername.
51450
51451 2008-05-16  Jim Meyering  <meyering@redhat.com>
51452             Bruno Haible  <bruno@clisp.org>
51453
51454         Avoid some warnings from "gcc -Wshadow".
51455         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
51456
51457 2008-05-15  Eric Blake  <ebb9@byu.net>
51458
51459         Extend previous patch to cygwin 1.7.0.
51460         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
51461         fast implementation in cygwin >= 1.7.0.
51462         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51463         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51464
51465 2008-05-15  Bruno Haible  <bruno@clisp.org>
51466
51467         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
51468         implementation in glibc >= 2.9.
51469         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
51470         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
51471
51472 2008-05-15  Bruno Haible  <bruno@clisp.org>
51473
51474         * MODULES.html.sh (Internationalization functions): Remove linebreak.
51475         (Unicode string functions): Add unilbrk/*.
51476         Reported by Karl Berry.
51477
51478 2008-05-15  Eric Blake  <ebb9@byu.net>
51479
51480         Fix violation of <stdbool.h> replacement in regex.
51481         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
51482         * lib/regexec.c (re_search_internal): Likewise.
51483         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
51484
51485 2008-05-15  Jim Meyering  <meyering@redhat.com>
51486
51487         avoid distracting test output when git or cvs is not found
51488         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
51489         * tests/test-vc-list-files-git.sh: Likewise.
51490
51491 2008-05-15  Eric Blake  <ebb9@byu.net>
51492
51493         Glibc finally accepted the memmem speedup code, bugzilla #5514.
51494         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
51495         glibc version.
51496         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
51497         * doc/posix-functions/strstr.texi (strstr): Likewise.
51498         * lib/str-two-way.h (MAX): Sychronize with glibc.
51499
51500 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
51501
51502         * lib/regcomp.c (optimize_utf8): Add a note on why we test
51503         opr.ctx_type.
51504         (calc_first): Initialize constraint field.
51505         (duplicate_node_closure): Use it instead of special casing ANCHORS.
51506         Fix grammar.
51507         (duplicate_node): Merge constraint field for all node types.
51508         (calc_eclosure_iter): Look at constraint field for all node types.
51509         * lib/regex_internal.c (create_cd_newstate): Don't look at
51510         opr.ctx_type.
51511
51512 2008-05-14  Bruno Haible  <bruno@clisp.org>
51513
51514         Help GCC to do better code generation.
51515         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
51516         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
51517         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
51518         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
51519         Declare with attribute 'malloc' if supported.
51520
51521 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
51522
51523         use "echo STR|wc -c" rather than unportable "expr length STR"
51524         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
51525         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
51526
51527 2008-05-14  Jim Meyering  <meyering@redhat.com>
51528
51529         use dd ibs=$n count=1 ... rather than less-portable head -c$n
51530         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
51531         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
51532         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
51533         via Collin Lasse.
51534
51535 2008-05-14  Eric Blake  <ebb9@byu.net>
51536
51537         Avoid quadratic growth in gl_LIBSOURCES.
51538         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
51539         Suggested by Bruno Haible.
51540
51541         Test xmemdup0.
51542         * modules/xmemdup0-tests: New file.
51543         * tests/test-xmemdup0.c: Likewise.
51544
51545 2008-05-13  Eric Blake  <ebb9@byu.net>
51546
51547         Split xmemdup0 into its own module.
51548         * modules/xmemdup0: New file.
51549         * lib/xmemdup0.h: Likewise.
51550         * lib/xmemdup0.c: Likewise.
51551         * MODULES.html.sh (Memory management functions): Add xmemdup0.
51552         * lib/xalloc.h (xmemdup0): Remove.
51553         * lib/xmalloc.c (xmemdup0): Likewise.
51554
51555 2008-05-13  Eric Blake  <ebb9@byu.net>
51556             Bruno Haible  <bruno@clisp.org>
51557
51558         Reduce number of forks required during autoconf.
51559         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
51560         and gl_LIBSOURCES_DIR.
51561         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
51562         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
51563         m4_syscmd per file.
51564         <m4_foreach_w>: Move...
51565         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
51566
51567 2008-05-13  Eric Blake  <ebb9@byu.net>
51568
51569         * gnulib-tool: Fix various comment typos.
51570
51571 2008-05-12  Bruno Haible  <bruno@clisp.org>
51572
51573         Tailor the linebreaking algorithm.
51574         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
51575
51576 2008-05-12  Bruno Haible  <bruno@clisp.org>
51577
51578         Update to Unicode 5.0.0.
51579         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
51580         LBP_JV, LBP_JT. Redistribute values.
51581         (unilbrk_table): Change size.
51582         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
51583         Unicode TR#14 rev. 22.
51584         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
51585         LBP_JV, LBP_JT. Redistribute values.
51586         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
51587         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
51588         Update.
51589         * lib/unilbrk/lbrkprop1.h: Regenerated.
51590         * lib/unilbrk/lbrkprop2.h: Regenerated.
51591         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
51592         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
51593         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
51594         Likewise.
51595         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
51596         Likewise.
51597         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
51598         result.
51599         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
51600         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
51601         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
51602         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
51603         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
51604         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
51605
51606 2008-05-11  Bruno Haible  <bruno@clisp.org>
51607
51608         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
51609
51610 2008-05-11  Bruno Haible  <bruno@clisp.org>
51611
51612         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
51613         * modules/unilbrk/gen-lbrk: New file.
51614
51615 2008-05-11  Bruno Haible  <bruno@clisp.org>
51616
51617         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
51618         * m4/sha512.m4 (gl_SHA512): Likewise.
51619
51620 2008-05-11  Jim Meyering  <meyering@redhat.com>
51621
51622         New modules: crypto/sha256, crypto/sha512 (from coreutils)
51623         * modules/crypto/sha256: New file.
51624         * modules/crypto/sha512: Likewise.
51625         * lib/sha256.c: Likewise.
51626         * lib/sha256.h: Likewise.
51627         * lib/sha512.c: Likewise.
51628         * lib/sha512.h: Likewise.
51629         * lib/u64.h: Likewise.
51630         * m4/sha256.m4: Likewise.
51631         * m4/sha512.m4: Likewise.
51632         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
51633
51634 2008-05-10  Bruno Haible  <bruno@clisp.org>
51635
51636         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
51637         (Input/Output <stdio.h>): Add xprintf.
51638         (Signal handling <signal.h>): Add strsignal.
51639         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
51640         (Core language properties): Add func.
51641         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
51642         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
51643         strings.
51644         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
51645         (Input/output): New section.
51646         (File system functions): Add openat-die, stat-macros.
51647         (Networking functions): Add sockets.
51648         (Unicode string functions): Add unictype/*.
51649         (Support for building libraries and executables): Add gperf.
51650         (Support for building documentation): Add agpl-3.0.
51651         (Misc): Add nocrash.
51652
51653 2008-05-10  Bruno Haible  <bruno@clisp.org>
51654
51655         * modules/unictype/gen-ctype: New file.
51656
51657 2008-05-10  Jim Meyering  <meyering@redhat.com>
51658
51659         Make chdir-safer.c more efficient on a system with no symlinks.
51660         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
51661         also if ELOOP is zero.  Suggested by Bruno Haible.
51662
51663         Make chdir-safer.c slightly safer.
51664         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
51665         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
51666
51667         Avoid compile failure on systems without ELOOP (like mingw).
51668         * lib/chdir-safer.c (ELOOP): Define if not already defined.
51669         Reported by Bruno Haible.
51670
51671 2008-05-10  Bruno Haible  <bruno@clisp.org>
51672
51673         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
51674         (is_utf8_encoding): Use a case-insensitive comparison.
51675         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
51676         streq.
51677
51678 2008-05-10  Bruno Haible  <bruno@clisp.org>
51679
51680         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
51681         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
51682         * lib/unilbrk/ulc-common.h (iconv_string_length,
51683         iconv_string_keeping_offsets): Remove declarations.
51684         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
51685         Don't include <iconv.h>, streq.h, xsize.h.
51686         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
51687         conversion.
51688         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
51689         <iconv.h>, streq.h, xsize.h.
51690         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
51691         conversion.
51692         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
51693         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
51694         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
51695         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
51696
51697 2008-05-10  Bruno Haible  <bruno@clisp.org>
51698
51699         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
51700         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
51701
51702         * modules/unilbrk/u32-width-linebreaks-tests: New file.
51703         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
51704
51705         * modules/unilbrk/u16-width-linebreaks-tests: New file.
51706         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
51707
51708         * modules/unilbrk/u8-width-linebreaks-tests: New file.
51709         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
51710
51711         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
51712         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
51713
51714         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
51715         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
51716
51717         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
51718         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
51719
51720         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
51721         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
51722
51723 2008-05-10  Bruno Haible  <bruno@clisp.org>
51724
51725         Split up 'linebreak' module.
51726         * lib/unilbrk.h: New file, based on lib/linebreak.h.
51727         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
51728         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
51729         modifications.
51730         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
51731         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
51732         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
51733         lib/linebreak.c.
51734         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
51735         lib/linebreak.c.
51736         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
51737         lib/linebreak.c.
51738         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
51739         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
51740         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
51741         lib/linebreak.c.
51742         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
51743         lib/linebreak.c.
51744         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
51745         lib/linebreak.c.
51746         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
51747         lib/linebreak.c.
51748         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
51749         lib/linebreak.c.
51750         * modules/unilbrk/base: New file.
51751         * modules/unilbrk/tables: New file.
51752         * modules/unilbrk/u8-possible-linebreaks: New file.
51753         * modules/unilbrk/u16-possible-linebreaks: New file.
51754         * modules/unilbrk/u32-possible-linebreaks: New file.
51755         * modules/unilbrk/ulc-common: New file.
51756         * modules/unilbrk/ulc-possible-linebreaks: New file.
51757         * modules/unilbrk/u8-width-linebreaks: New file.
51758         * modules/unilbrk/u16-width-linebreaks: New file.
51759         * modules/unilbrk/u32-width-linebreaks: New file.
51760         * modules/unilbrk/ulc-width-linebreaks: New file.
51761         * lib/linebreak.h: Remove file.
51762         * lib/linebreak.c: Remove file.
51763         * m4/linebreak.m4: Remove file.
51764         * modules/linebreak: Remove file.
51765         * NEWS: Mention the changes.
51766
51767 2008-05-09  Eric Blake  <ebb9@byu.net>
51768
51769         Add xmemdup0.
51770         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
51771         implementation.
51772         * lib/xmalloc.c (xmemdup0): New C implementation.
51773
51774 2008-05-08  Bruno Haible  <bruno@clisp.org>
51775
51776         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
51777
51778 2008-05-07  Eric Blake  <ebb9@byu.net>
51779
51780         Support cross-compilation of <wctype.h>.
51781         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
51782         AC_CACHE_CHECK.
51783
51784 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
51785
51786         * build-aux/vc-list-files: Add support for bzr.
51787
51788 2008-05-03  Jim Meyering  <meyering@redhat.com>
51789
51790         avoid failed assertion with tight malloc
51791         * tests/test-getndelim2.c: Correct an off-by-one assertion.
51792
51793 2008-05-03  Simon Josefsson  <simon@josefsson.org>
51794
51795         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
51796         are needed from arpa/inet.h.
51797         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
51798         Reported by Bruno Haible.
51799
51800 2008-05-02  Jim Meyering  <meyering@redhat.com>
51801
51802         avoid compilation error on FreeBSD 6
51803         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
51804
51805 2008-05-01  Jim Meyering  <meyering@redhat.com>
51806
51807         useless-if-before-free: correct --help's exit status description
51808         * build-aux/useless-if-before-free (usage): Like grep, exit 0
51809         for one or more matches, etc.  Reported by Bruno Haible.
51810
51811         vc-list-files: make the stand-alone gnulib test work
51812         * modules/vc-list-files-tests (configure.ac):
51813         Define and AC_SUBST abs_aux_dir.
51814         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
51815         $(abs_top_srcdir) to each script and having each of them
51816         duplicate the work of setting PATH, set PATH here, using
51817         the new variable, abs_aux_dir instead.
51818         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
51819         * tests/test-vc-list-files-git.sh: Likewise.
51820         Reported by Bruno Haible.
51821
51822 2008-05-01  Bruno Haible  <bruno@clisp.org>
51823
51824         * lib/getndelim2.c (getndelim2): Fix newsize computation during
51825         reallocation. Rename 'done' to 'found_delimiter'.
51826
51827 2008-05-01  Jim Meyering  <meyering@redhat.com>
51828
51829         vc-list-files: accommodate /bin/sh like the one from Solaris 10
51830         * build-aux/vc-list-files: Use `...`, not $(...).
51831
51832 2008-04-30  Jim Meyering  <meyering@redhat.com>
51833
51834         add tests for vc-list-files
51835         * modules/vc-list-files-tests: New module.
51836         * tests/test-vc-list-files-cvs.sh: New file.
51837         * tests/test-vc-list-files-git.sh: New file.
51838
51839         avoid a warning from gcc
51840         * lib/getndelim2.c (IF_LINT): Define.
51841         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
51842
51843         vc-list-files: work properly with build-aux/cvsu, too
51844         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
51845         to all cvs-based clauses.
51846
51847         vc-list-files: work properly in the CVS+awk case, too
51848         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
51849
51850         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
51851         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
51852         take more than one file argument, so .  Add quotes, just in case $dir
51853         ever contains a shell meta-character.  Prompted by Soren Hansen in
51854         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
51855
51856 2008-04-29  Eric Blake  <ebb9@byu.net>
51857
51858         Optimize getndelim2 to use block operations when possible.
51859         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
51860         freadseek, and memchr2.
51861         * lib/getndelim2.c (getndelim2): Use them for block reads.
51862
51863 2008-04-29  Bruno Haible  <bruno@clisp.org>
51864
51865         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
51866         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51867         * modules/inet_ntop (Depends-on): Add extensions.
51868         * modules/inet_pton (Depends-on): Likewise.
51869         Reported by Simon Josefsson.
51870
51871 2008-04-29  Jim Meyering  <meyering@redhat.com>
51872
51873         When the is more than one match in a block, match all of them.
51874         * build-aux/useless-if-before-free: Iterate through each block
51875         until there are no more matches.
51876
51877         Fix broken useless-if-before-free script.
51878         * build-aux/useless-if-before-free: Fix typo: missing "?" after
51879         the expression to match cast of argument to free-like function.
51880
51881 2008-04-29  Eric Blake  <ebb9@byu.net>
51882
51883         Use new header.
51884         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
51885
51886 2008-04-29  Jim Meyering  <meyering@redhat.com>
51887
51888         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
51889         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
51890         by gnulib to exist and to declare e.g., inet_ntop.
51891         Don't include "inet_ntop.h", now removed.
51892
51893         * m4/arpa_inet_h.m4: Remove trailing blanks.
51894
51895 2008-04-29  Eric Blake  <ebb9@byu.net>
51896
51897         Silence valgrind on safe reads beyond potential array bounds.
51898         * lib/rawmemchr.valgrind: New file.
51899         * lib/strchrnul.valgrind: Likewise.
51900         * modules/rawmemchr (Files): Distribute new file.
51901         * modules/strchrnul (Files): Likewise.
51902         Suggested by Bruno Haible.
51903
51904 2008-04-29  Bruno Haible  <bruno@clisp.org>
51905
51906         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
51907         (inet_ntop, inet_pton): Change portability warning's wording.
51908         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
51909         Invoke gl_CHECK_NEXT_HEADERS.
51910         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
51911         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
51912         set ARPA_INET_H.
51913         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
51914         * modules/arpa_inet (Description): No longer only for systems that
51915         lack it.
51916         (Depends-on): Add include_next.
51917         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
51918         HAVE_ARPA_INET_H.
51919
51920 2008-04-29  Jim Meyering  <meyering@redhat.com>
51921
51922         * modules/mkdir (License): Re-license as LGPLv2+.
51923
51924 2008-04-29  Bruno Haible  <bruno@clisp.org>
51925
51926         * modules/rawmemchr (Maintainer): Set to Eric.
51927         * modules/strchrnul (Maintainer): Likewise.
51928
51929 2008-04-29  Simon Josefsson  <simon@josefsson.org>
51930
51931         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
51932         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
51933
51934         * modules/arpa_inet (arpa/inet.h): Use them.
51935
51936 2008-04-28  Eric Blake  <ebb9@byu.net>
51937
51938         Test getndelim2.
51939         * modules/getndelim2-tests: New file.
51940         * tests/test-getndelim2.c: Likewise.
51941         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
51942         stream.
51943         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
51944
51945         * MODULES.html.sh: Document new module.
51946
51947 2008-04-20  Bruno Haible  <bruno@clisp.org>
51948
51949         * lib/c-stack.c (die): Use raise.
51950         * modules/c-stack (Depends-on): Add raise.
51951
51952 2008-04-28  Bruno Haible  <bruno@clisp.org>
51953
51954         Expect rpmatch to be declared.
51955         * lib/yesno.c (rpmatch): Remove declaration.
51956
51957         Declare rpmatch.
51958         * lib/stdlib.in.h (rpmatch): New declaration.
51959         * lib/rpmatch.c: Include <stdlib.h> first.
51960         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
51961         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
51962         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
51963         HAVE_RPMATCH.
51964         * modules/rpmatch (Depends-on): Add stdlib, extensions.
51965         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
51966         (Include): Set to <stdlib.h>.
51967         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
51968         HAVE_RPMATCH.
51969         * NEWS: Document the change.
51970
51971 2008-04-28  Bruno Haible  <bruno@clisp.org>
51972
51973         Change rpmatch to use nl_langinfo when appropriate.
51974         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
51975         (N_): New macro.
51976         (localized_pattern): New function/macro.
51977         (try): Remove match, nomatch arguments. Copy the pattern into safe
51978         memory before caching it.
51979         (rpmatch): Use localized_pattern. Add translator comments.
51980         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
51981         Suggested by Eric Blake.
51982         * modules/rpmatch (Depends-on): Add stdbool.
51983
51984 2008-04-28  Eric Blake  <ebb9@byu.net>
51985
51986         Add rawmemchr module, matching glibc.
51987         * modules/string (Makefile.am): New indicator.
51988         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
51989         * lib/string.in.h (rawmemchr): Declare when appropriate.
51990         * modules/rawmemchr: New file.
51991         * m4/rawmemchr.m4: Likewise.
51992         * lib/rawmemchr.c: Likewise.
51993         * modules/rawmemchr-tests: Likewise.
51994         * tests/test-rawmemchr.c: Likewise.
51995         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
51996         module.
51997         * modules/strchrnul (Depends-on): Add rawmemchr.
51998         * lib/strchrnul.c (strchrnul): Optimize a corner case.
51999
52000         Whitespace cleanup.
52001         * tests/test-strchrnul.c: Reindent.
52002         * lib/strchrnul.c: Likewise.
52003
52004         Optimize and test strchrnul.
52005         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
52006         * modules/strchrnul-tests: New file.
52007         * tests/test-strchrnul.c: Likewise.
52008
52009         Remove intprops dependency.
52010         * modules/memchr (Depends-on): Remove intprops.
52011         * modules/memrchr (Depends-on): Likewise.
52012         * modules/memchr2 (Depends-on): Likewise.
52013         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
52014         * lib/memrchr.c (__memrchr): Likewise.
52015         * lib/memrchr2.c (memchr2): Likewise.
52016         Reported by Simon Josefsson.
52017
52018 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52019
52020         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
52021         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52022
52023 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52024
52025         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
52026
52027         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
52028
52029         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
52030
52031         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
52032         declarations.
52033         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
52034
52035         * m4/inet_pton.m4: Don't check for header files.
52036
52037         * m4/inet_ntop.m4: Don't check for header files.
52038
52039 2008-04-28  Simon Josefsson  <simon@josefsson.org>
52040
52041         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
52042         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
52043         trigger for cygwin).
52044         Reported by Bruno Haible  <bruno@clisp.org>.
52045
52046 2008-04-28  Bruno Haible  <bruno@clisp.org>
52047
52048         * doc/posix-functions/strdup.texi: Mention mingw problem.
52049
52050 2008-04-27  Bruno Haible  <bruno@clisp.org>
52051
52052         * modules/stat-time-tests (Depends-on): Add sleep.
52053         * tests/test-stat-time.c (force_unlink): New function.
52054         (cleanup): Use it.
52055         (test_mtime): Remove the ctime related tests.
52056         (test_ctime): New function, containing the ctime related tests.
52057         (main): Call test_ctime, except on native Windows platforms.
52058
52059 2008-04-27  Bruno Haible  <bruno@clisp.org>
52060
52061         * lib/rpmatch.c (rpmatch): Add some comments.
52062         Reported by James Youngman <jay@gnu.org>.
52063
52064 2008-04-27  Bruno Haible  <bruno@clisp.org>
52065
52066         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
52067         quiet NaNs.
52068
52069 2008-04-27  Bruno Haible  <bruno@clisp.org>
52070
52071         Make test-yesno.sh work on mingw.
52072         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
52073         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
52074         (main): Set stdin to binary mode.
52075         * modules/yesno-tests (Depends-on): Add binary-io.
52076
52077 2008-04-27  Bruno Haible  <bruno@clisp.org>
52078
52079         Fix 'isfinite' on x86, x86_64, ia64 platforms.
52080         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
52081         argument that lie outside the IEEE 854 domain.
52082         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
52083         (gl_ISFINITE): Use it.
52084         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
52085
52086 2008-04-27  Bruno Haible  <bruno@clisp.org>
52087
52088         Allow local renaming in config.h.
52089         * lib/memrchr.c (memrchr): Don't undefine outside libc.
52090
52091 2008-04-27  Bruno Haible  <bruno@clisp.org>
52092
52093         * lib/memchr.c (__memchr): Change type of 'i'.
52094         * lib/memchr2.c (memchr2): Likewise.
52095
52096 2008-04-26  Eric Blake  <ebb9@byu.net>
52097         and Bruno Haible  <bruno@clisp.org>
52098
52099         Optimize and test memrchr.
52100         * modules/memrchr (Depends-on): Add intprops.
52101         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
52102         * modules/memrchr-tests: New file.
52103         * tests/test-memrchr.c: New file.
52104
52105 2008-04-26  Bruno Haible  <bruno@clisp.org>
52106
52107         Add tentative support for DragonFly BSD.
52108         * lib/stdio-impl.h: Add macros for DragonFly BSD.
52109         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
52110         fp.
52111         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
52112         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
52113         * lib/fpurge.c (fpurge): Likewise.
52114         * lib/freadable.c (freaadable): Likewise.
52115         * lib/freadahead.c (freadahead): Likewise.
52116         * lib/freading.c (freading): Likewise.
52117         * lib/freadptr.c (freadptr): Likewise.
52118         * lib/freadseek.c (freadptrinc): Likewise.
52119         * lib/fseeko.c (fseeko): Likewise.
52120         * lib/fseterr.c (fseterr): Likewise.
52121         * lib/fwritable.c (fwritable): Likewise.
52122         * lib/fwriting.c (fwriting): Likewise.
52123
52124 2008-04-26  Bruno Haible  <bruno@clisp.org>
52125
52126         * lib/stdio-impl.h: New file.
52127         * lib/fbufmode.c: Include stdio-impl.h.
52128         (fbufmode): Use fp_, remove redundant #defines.
52129         * lib/fflush.c: Include stdio-impl.h.
52130         (clear_ungetc_buffer): Remove redundant #defines.
52131         * lib/fpurge.c: Include stdio-impl.h.
52132         (fpurge): Remove redundant #defines.
52133         * lib/freadable.c: Include stdio-impl.h.
52134         (freadable): Remove redundant #defines.
52135         * lib/freadahead.c: Include stdio-impl.h.
52136         (freadahead): Remove redundant #defines.
52137         * lib/freading.c: Include stdio-impl.h.
52138         (freading): Remove redundant #defines.
52139         * lib/freadptr.c: Include stdio-impl.h.
52140         (freadptr): Remove redundant #defines.
52141         * lib/freadseek.c: Include stdio-impl.h.
52142         (freadptrinc): Remove redundant #defines.
52143         * lib/fseeko.c: Include stdio-impl.h.
52144         (rpl_fseeko): Remove redundant #defines.
52145         * lib/fseterr.c: Include stdio-impl.h.
52146         (fseterr): Remove redundant #defines.
52147         * lib/fwritable.c: Include stdio-impl.h.
52148         (fwritable: Remove redundant #defines.
52149         * lib/fwriting.c: Include stdio-impl.h.
52150         (fwriting): Remove redundant #defines.
52151         * modules/fbufmode (Files): Add lib/stdio-impl.h.
52152         * modules/fflush (Files): Likewise.
52153         * modules/fpurge (Files): Likewise.
52154         * modules/freadable (Files): Likewise.
52155         * modules/freadahead (Files): Likewise.
52156         * modules/freading (Files): Likewise.
52157         * modules/freadptr (Files): Likewise.
52158         * modules/freadseek (Files): Likewise.
52159         * modules/fseeko (Files): Likewise.
52160         * modules/fseterr (Files): Likewise.
52161         * modules/fwritable (Files): Likewise.
52162         * modules/fwriting (Files): Likewise.
52163
52164 2008-04-26  Bruno Haible  <bruno@clisp.org>
52165
52166         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
52167         restore_seek_optimization, update_fpos_cache): New functions, extracted
52168         from rpl_fflush.
52169         (rpl_fflush): Use them.
52170         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
52171         (gl_REPLACE_FFLUSH): Use it.
52172
52173 2008-04-26  Bruno Haible  <bruno@clisp.org>
52174
52175         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
52176         on Solaris.
52177         * tests/test-xstrtoimax.sh: Likewise.
52178         * tests/test-xstrtoumax.sh: Likewise.
52179         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
52180
52181 2008-04-26  Bruno Haible  <bruno@clisp.org>
52182
52183         * modules/memchr-tests: New file.
52184         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
52185
52186 2008-04-26  Eric Blake  <ebb9@byu.net>
52187             Bruno Haible  <bruno@clisp.org>
52188
52189         * lib/memchr.c: Include intprops.h.
52190         (__memchr): Optimize parallel detection of matching bytes. Rename local
52191         variables. Add explanatory comments.
52192
52193 2008-04-26  Bruno Haible  <bruno@clisp.org>
52194
52195         Fix module 'memchr', broken since 2000-10-28.
52196         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
52197
52198 2008-04-26  Bruno Haible  <bruno@clisp.org>
52199
52200         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
52201         comments.
52202
52203 2008-04-25  Eric Blake  <ebb9@byu.net>
52204
52205         Use native fstatat on cygwin 1.7.0.
52206         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
52207         first.
52208
52209 2008-04-23  Eric Blake  <ebb9@byu.net>
52210
52211         Improve memchr2 performance.
52212         * lib/memchr2.c (memchr2): Further optimize parallel detection of
52213         NUL bytes.
52214         * modules/memchr2 (Depends-on): Use intprops.h.
52215
52216 2008-04-23  Simon Josefsson  <simon@josefsson.org>
52217
52218         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
52219         an inline function instead of a CPP macro.  Patch by Ben Pfaff
52220         <blp@cs.stanford.edu>.
52221
52222 2008-04-23  Simon Josefsson  <simon@josefsson.org>
52223
52224         * lib/arpa_inet.in.h: New file.
52225
52226         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
52227         (Makefile.am): Sed in substitute header file.
52228
52229         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
52230         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
52231
52232         * modules/inet_ntop (configure.ac): Use
52233         gl_ARPA_INET_MODULE_INDICATOR.
52234
52235         * modules/inet_pton (configure.ac): Use
52236         gl_ARPA_INET_MODULE_INDICATOR.
52237
52238 2008-04-22  Jim Meyering  <meyering@redhat.com>
52239
52240         * modules/verify (License): Re-license as LGPLv2+.
52241
52242 2008-04-22  Simon Josefsson  <simon@josefsson.org>
52243
52244         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
52245         parameter to void* as per POSIX standard (MinGW uses char*).
52246
52247 2008-04-21  Bruno Haible  <bruno@clisp.org>
52248
52249         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
52250         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
52251         Define to replacements if REPLACE_ISWCNTRL is 1.
52252         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
52253         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
52254         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
52255         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
52256         what it fixes.
52257         * doc/posix-functions/iswalpha.texi: Likewise.
52258         * doc/posix-functions/iswblank.texi: Likewise.
52259         * doc/posix-functions/iswcntrl.texi: Likewise.
52260         * doc/posix-functions/iswdigit.texi: Likewise.
52261         * doc/posix-functions/iswgraph.texi: Likewise.
52262         * doc/posix-functions/iswlower.texi: Likewise.
52263         * doc/posix-functions/iswprint.texi: Likewise.
52264         * doc/posix-functions/iswpunct.texi: Likewise.
52265         * doc/posix-functions/iswspace.texi: Likewise.
52266         * doc/posix-functions/iswupper.texi: Likewise.
52267         * doc/posix-functions/iswxdigit.texi: Likewise.
52268         Reported by Alain Guibert.
52269
52270 2008-04-21  Bruno Haible  <bruno@clisp.org>
52271
52272         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
52273         Patch by Alain Guibert.
52274
52275 2008-04-21  Bruno Haible  <bruno@clisp.org>
52276
52277         Fix test failures on mingw.
52278         * tests/test-xstrtol.c (print_no_progname): New function.
52279         (main): Install it in error_print_progname hook.
52280         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
52281         * tests/test-xstrtoimax.sh: Likewise.
52282         * tests/test-xstrtoumax.sh: Likewise.
52283
52284 2008-04-21  Bruno Haible  <bruno@clisp.org>
52285
52286         Fix test failure on mingw.
52287         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
52288
52289 2008-04-21  Bruno Haible  <bruno@clisp.org>
52290
52291         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
52292         Actually assign a value.
52293
52294 2008-04-20  Bruno Haible  <bruno@clisp.org>
52295
52296         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
52297         take 2.
52298         * lib/canonicalize.c (canonicalize_file_name): Elide if the
52299         'canonicalize-lgpl' module is also used.
52300         * lib/canonicalize-lgpl.c: Undo last change.
52301         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
52302
52303 2008-04-20  Bruno Haible  <bruno@clisp.org>
52304
52305         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
52306         config.h. Provide _mkdir based fallback for mingw.
52307         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
52308         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
52309         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
52310         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
52311         rather than defining mkdir in config.h.
52312         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
52313         (gl_SYS_STAT_H_DEFAULTS): New macro.
52314         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
52315         HAVE_IO_H any more.
52316         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
52317         HAVE_DECL_MKDIR and HAVE_IO_H.
52318
52319 2008-04-20  Bruno Haible  <bruno@clisp.org>
52320
52321         * lib/isapipe.c: Port to native Windows platforms.
52322
52323 2008-04-20  Bruno Haible  <bruno@clisp.org>
52324
52325         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
52326
52327 2008-04-21  Eric Blake  <ebb9@byu.net>
52328
52329         Work around preprocessors that don't handle UINTMAX_MAX.
52330         * lib/memchr2.c (memchr2): Avoid embedded #if.
52331         Reported by Alain Guibert, fix suggested by Bruno Haible.
52332
52333 2008-04-21  Simon Josefsson  <simon@josefsson.org>
52334
52335         * doc/posix-functions/strftime.texi (strftime): Explain better
52336         Windows incompatibility.  Suggested by Micah Cowan
52337         <micah@cowan.name>.
52338
52339 2008-04-20  Bruno Haible  <bruno@clisp.org>
52340
52341         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
52342         unistr/u8-mblen.
52343
52344 2008-04-20  Bruno Haible  <bruno@clisp.org>
52345
52346         Fix test failure on platforms with non-GNU iconv.
52347         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
52348         (U_TO_U8): Use it, rather than u16_to_u8.
52349         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
52350         units at the end of the input string.
52351         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
52352
52353 2008-04-20  Bruno Haible  <bruno@clisp.org>
52354
52355         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
52356         when the resulting length is 0.
52357         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
52358
52359 2008-04-20  Bruno Haible  <bruno@clisp.org>
52360
52361         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
52362         works.
52363         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
52364
52365 2008-04-20  Bruno Haible  <bruno@clisp.org>
52366
52367         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
52368         * modules/tsearch-tests (configure.ac): Test for initstate function.
52369
52370 2008-04-20  Bruno Haible  <bruno@clisp.org>
52371
52372         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
52373         for nlink_t if missing.
52374         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
52375
52376 2008-04-19  Bruno Haible  <bruno@clisp.org>
52377
52378         Work around snprintf bug on Linux libc5.
52379         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
52380         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
52381         gl_SNPRINTF_SIZE1.
52382         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
52383         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
52384         that test failed.
52385         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
52386         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
52387         * modules/snprintf (Files): Add m4/printf.m4.
52388         * modules/vsnprintf (Files): Likewise.
52389         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
52390         * doc/posix-functions/vsnprintf.texi: Likewise.
52391
52392 2008-04-19  Bruno Haible  <bruno@clisp.org>
52393
52394         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
52395         from 0.0058 to less than 10^-7.
52396
52397 2008-04-19  Bruno Haible  <bruno@clisp.org>
52398
52399         Fix rounding when a precision is given.
52400         * lib/vasnprintf.c (is_borderline): New function.
52401         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
52402         9...9x.
52403         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
52404         %e, %g.
52405         * tests/test-vasprintf-posix.c (test_function): Likewise.
52406         * tests/test-snprintf-posix.h (test_function): Likewise.
52407         * tests/test-sprintf-posix.h (test_function): Likewise.
52408         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
52409         * tests/test-printf-posix.h (test_function): Likewise.
52410         * tests/test-printf-posix.output: Update.
52411         Reported by John Darrington <john@darrington.wattle.id.au> via
52412         Ben Pfaff <blp@cs.stanford.edu>.
52413
52414 2008-04-18  Simon Josefsson  <simon@josefsson.org>
52415
52416         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
52417         Suggested by Bruno Haible <bruno@clisp.org>.
52418
52419 2008-04-17  Bruno Haible  <bruno@clisp.org>
52420
52421         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
52422         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
52423         implementation.
52424         Patch by Bruce Merry <bmerry@gmail.com>.
52425
52426 2008-04-17  Simon Josefsson  <simon@josefsson.org>
52427
52428         * doc/posix-functions/strftime.texi (strftime): Mention that %e
52429         doesn't work under Windows.
52430
52431 2008-04-16  Bruno Haible  <bruno@clisp.org>
52432
52433         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
52434         New macros.
52435         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
52436         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
52437         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
52438         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
52439         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
52440         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
52441         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
52442         macros.
52443         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
52444         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
52445         Northern Sotho, Uighur.
52446
52447 2008-04-16  Bruno Haible  <bruno@clisp.org>
52448
52449         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
52450         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
52451         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
52452         Reported by Daniel Bergström <daniel@octocode.com>.
52453
52454 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
52455             Bruno Haible  <bruno@clisp.org>
52456
52457         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
52458         function.
52459         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
52460         New functions, mostly extracted from gl_locale_name_default.
52461         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
52462
52463 2008-04-16  Eric Blake  <ebb9@byu.net>
52464
52465         Adjust strtod detection to catch glibc 2.7 bug.
52466         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
52467         Reported by John Gatewood Ham.
52468
52469 2008-04-16  Bruno Haible  <bruno@clisp.org>
52470
52471         Add tentative support for Linux libc5.
52472         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
52473         * lib/fpurge.c (fpurge): Likewise.
52474         * lib/freadable.c (freadable): Likewise.
52475         * lib/freadahead.c (freadahead): Likewise.
52476         * lib/freading.c (freading): Likewise.
52477         * lib/freadptr.c (freadptr): Likewise.
52478         * lib/freadseek.c (freadptrinc): Likewise.
52479         * lib/fseeko.c (rpl_fseeko): Likewise.
52480         * lib/fseterr.c (fseterr): Likewise.
52481         * lib/fwritable.c (fwritable): Likewise.
52482         * lib/fwriting.c (fwriting): Likewise.
52483         Reported by Alain Guibert <alguibert+bts@free.fr>.
52484
52485 2008-04-15  Bruno Haible  <bruno@clisp.org>
52486
52487         * modules/mathl (configure.ac): Define module indicator.
52488
52489 2008-04-15  Bruno Haible  <bruno@clisp.org>
52490
52491         * lib/logl.c (logl): Remove unused variables.
52492
52493 2008-04-15  Bruno Haible  <bruno@clisp.org>
52494
52495         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
52496         fails.
52497
52498 2008-04-15  Bruno Haible  <bruno@clisp.org>
52499
52500         * lib/trim.c (trim2): Fix argument of isspace() macro.
52501
52502 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
52503
52504         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
52505         to 0.
52506         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
52507
52508 2008-04-14  Bruno Haible  <bruno@clisp.org>
52509
52510         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
52511         AC_LANG_PROGRAM argument.
52512         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
52513         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
52514         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
52515         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
52516         * m4/math_h.m4 (gl_MATH_H): Likewise.
52517         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
52518         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
52519         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
52520         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
52521         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
52522         * m4/regex.m4 (gl_REGEX): Likewise.
52523         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
52524         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
52525         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
52526         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
52527         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
52528         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
52529         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
52530         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
52531
52532 2008-04-14  Jim Meyering  <meyering@redhat.com>
52533
52534         test-strtod: fix typos: s/abs/fabs/
52535         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
52536
52537 2008-04-13  Bruno Haible  <bruno@clisp.org>
52538
52539         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
52540         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
52541         module is also used and while not building the reloc-wrapper.
52542
52543 2008-04-13  Bruno Haible  <bruno@clisp.org>
52544
52545         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
52546
52547 2008-04-13  Bruno Haible  <bruno@clisp.org>
52548
52549         Fix AIX compilation failure introduced on 2008-04-02.
52550         * tests/test-frexp.c (exp): Undefine before redefining.
52551         * tests/test-frexpl.c (exp): Likewise.
52552
52553 2008-04-13  Bruno Haible  <bruno@clisp.org>
52554
52555         Work around a HP-UX stdio bug.
52556         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
52557         * tests/test-ftello.c (main): Likewise.
52558         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
52559         * doc/posix-functions/ftello.texi: Likewise.
52560
52561 2008-04-13  Bruno Haible  <bruno@clisp.org>
52562
52563         Make test-signbit pass on HP-UX/hppa.
52564         * tests/test-signbit.c (minus_zerol): New variable.
52565         (test_signbitl): Use it.
52566
52567 2008-04-13  Bruno Haible  <bruno@clisp.org>
52568
52569         Make truncl work on OSF/1 4.0.
52570         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
52571         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
52572         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
52573         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
52574         HAVE_DECL_TRUNCL.
52575         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
52576         HAVE_DECL_TRUNCL.
52577         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
52578
52579 2008-04-13  Bruno Haible  <bruno@clisp.org>
52580
52581         * lib/unictype.h: Remove trailing comma from enumeration definitions.
52582
52583 2008-04-13  Bruno Haible  <bruno@clisp.org>
52584
52585         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
52586         expression, so as to avoid HP-UX 11 cc compiler bug.
52587
52588 2008-04-13  Bruno Haible  <bruno@clisp.org>
52589
52590         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
52591
52592 2008-04-13  Bruno Haible  <bruno@clisp.org>
52593
52594         * lib/git-merge-changelog.c: Remove empty declaration outside of
52595         functions.
52596
52597 2008-04-13  Bruno Haible  <bruno@clisp.org>
52598
52599         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
52600
52601 2008-04-13  Bruno Haible  <bruno@clisp.org>
52602
52603         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
52604         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
52605         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
52606         also if it exists but lacks definitions of the SHUT_* macros.
52607         * modules/sys_socket (Description): Update.
52608         Reported by Elbert Pol <e.pol@chello.nl>.
52609
52610 2008-04-13  Bruno Haible  <bruno@clisp.org>
52611
52612         * lib/localcharset.c (OS2): Don't redefine if already defined.
52613         Reported by Elbert Pol <e.pol@chello.nl>.
52614
52615 2008-04-13  Bruno Haible  <bruno@clisp.org>
52616
52617         * lib/binary-io.h [__EMX__]: Include <io.h>.
52618         Reported by Elbert Pol <e.pol@chello.nl>.
52619
52620 2008-04-12  Bruno Haible  <bruno@clisp.org>
52621
52622         * lib/fpucw.h: Enable the definitions also for x86_64.
52623         Needed for NetBSD/x86_64.
52624         Reported by Thomas Klausner <tk@giga.or.at>.
52625
52626 2008-04-12  Bruno Haible  <bruno@clisp.org>
52627
52628         * tests/test-strtod.c: Include isnand.h.
52629         (main): Use isnand instead of isnan.
52630         Reported by Jim Meyering.
52631
52632 2008-04-12  Bruno Haible  <bruno@clisp.org>
52633
52634         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
52635         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
52636
52637 2008-04-12  Jim Meyering  <meyering@redhat.com>
52638
52639         * m4/math_h.m4 (gl_MATH_H): Fix typos.
52640
52641 2008-04-12  Bruno Haible  <bruno@clisp.org>
52642
52643         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
52644         Reported by Elbert Pol <e.pol@chello.nl>.
52645
52646 2008-04-12  Eric Blake  <ebb9@byu.net>
52647
52648         Work around Solaris 10 math.h bug.
52649         * m4/math_h.m4 (gl_MATH_H): Check for bug.
52650         (gl_MATH_H_DEFAULTS): Set up default.
52651         * modules/math (Makefile.am): Replace new indicators.
52652         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
52653         * tests/test-math.c (main): Test this.
52654         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
52655         * doc/posix-headers/math.texi (math.h): Mention bug.
52656         Reported by Nelson H. F. Beebe and Jim Meyering.
52657
52658 2008-04-11  Bruno Haible  <bruno@clisp.org>
52659
52660         Adapt to future versions of Apple GCC.
52661         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
52662         Reported by Peter O'Gorman <peter@pogma.com>.
52663
52664 2008-04-11  Bruno Haible  <bruno@clisp.org>
52665
52666         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
52667
52668 2008-04-11  Bruno Haible  <bruno@clisp.org>
52669
52670         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
52671
52672         * modules/getaddrinfo-tests (Makefile.am): Define
52673         test_getaddrinfo_LDADD.
52674
52675 2008-04-11  Bruno Haible  <bruno@clisp.org>
52676
52677         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
52678         (init): Fix syntax error.
52679         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
52680         is declared.
52681
52682 2008-04-11  Bruno Haible  <bruno@clisp.org>
52683
52684         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
52685         * modules/glob (Depends-on): Add stdbool.
52686
52687 2008-04-11  Bruno Haible  <bruno@clisp.org>
52688
52689         * lib/trim.c: Include <string.h>.
52690
52691 2008-04-11  Eric Blake  <ebb9@byu.net>
52692
52693         Avoid compile failure on OS/2.
52694         * lib/regex_internal.h (internal_function): Disable optimization
52695         on OS/2 (__EMX__), where it caused compiler error.
52696         Reported by Elbert Pol.
52697
52698 2008-04-11  Bruno Haible  <bruno@clisp.org>
52699
52700         Flush the standard error stream before aborting. Needed on mingw.
52701         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
52702         * tests/test-array_list.c (ASSERT): Likewise.
52703         * tests/test-array_oset.c (ASSERT): Likewise.
52704         * tests/test-avltree_list.c (ASSERT): Likewise.
52705         * tests/test-avltree_oset.c (ASSERT): Likewise.
52706         * tests/test-avltreehash_list.c (ASSERT): Likewise.
52707         * tests/test-binary-io.c (ASSERT): Likewise.
52708         * tests/test-byteswap.c (ASSERT): Likewise.
52709         * tests/test-c-ctype.c (ASSERT): Likewise.
52710         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
52711         * tests/test-c-strcasestr.c (ASSERT): Likewise.
52712         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
52713         * tests/test-c-strstr.c (ASSERT): Likewise.
52714         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
52715         * tests/test-canonicalize.c (ASSERT): Likewise.
52716         * tests/test-carray_list.c (ASSERT): Likewise.
52717         * tests/test-ceilf1.c (ASSERT): Likewise.
52718         * tests/test-ceilf2.c (ASSERT): Likewise.
52719         * tests/test-ceill.c (ASSERT): Likewise.
52720         * tests/test-count-one-bits.c (ASSERT): Likewise.
52721         * tests/test-fbufmode.c (ASSERT): Likewise.
52722         * tests/test-fflush2.c (ASSERT): Likewise.
52723         * tests/test-floorf1.c (ASSERT): Likewise.
52724         * tests/test-floorf2.c (ASSERT): Likewise.
52725         * tests/test-floorl.c (ASSERT): Likewise.
52726         * tests/test-fopen.c (ASSERT): Likewise.
52727         * tests/test-fpending.c (ASSERT): Likewise.
52728         * tests/test-fprintf-posix.c (ASSERT): Likewise.
52729         * tests/test-fpurge.c (ASSERT): Likewise.
52730         * tests/test-freadable.c (ASSERT): Likewise.
52731         * tests/test-freadahead.c (ASSERT): Likewise.
52732         * tests/test-freading.c (ASSERT): Likewise.
52733         * tests/test-freadptr.c (ASSERT): Likewise.
52734         * tests/test-freadptr2.c (ASSERT): Likewise.
52735         * tests/test-freadseek.c (ASSERT): Likewise.
52736         * tests/test-freopen.c (ASSERT): Likewise.
52737         * tests/test-frexp.c (ASSERT): Likewise.
52738         * tests/test-frexpl.c (ASSERT): Likewise.
52739         * tests/test-fseek.c (ASSERT): Likewise.
52740         * tests/test-fseeko.c (ASSERT): Likewise.
52741         * tests/test-fstrcmp.c (ASSERT): Likewise.
52742         * tests/test-ftell.c (ASSERT): Likewise.
52743         * tests/test-ftello.c (ASSERT): Likewise.
52744         * tests/test-func.c (ASSERT): Likewise.
52745         * tests/test-fwritable.c (ASSERT): Likewise.
52746         * tests/test-fwriting.c (ASSERT): Likewise.
52747         * tests/test-getdelim.c (ASSERT): Likewise.
52748         * tests/test-getline.c (ASSERT): Likewise.
52749         * tests/test-i-ring.c (ASSERT): Likewise.
52750         * tests/test-iconv-utf.c (ASSERT): Likewise.
52751         * tests/test-iconv.c (ASSERT): Likewise.
52752         * tests/test-isfinite.c (ASSERT): Likewise.
52753         * tests/test-isnand.c (ASSERT): Likewise.
52754         * tests/test-isnanf.c (ASSERT): Likewise.
52755         * tests/test-isnanl.h (ASSERT): Likewise.
52756         * tests/test-ldexpl.c (ASSERT): Likewise.
52757         * tests/test-linked_list.c (ASSERT): Likewise.
52758         * tests/test-linkedhash_list.c (ASSERT): Likewise.
52759         * tests/test-localename.c (ASSERT): Likewise.
52760         * tests/test-lseek.c (ASSERT): Likewise.
52761         * tests/test-mbscasecmp.c (ASSERT): Likewise.
52762         * tests/test-mbscasestr1.c (ASSERT): Likewise.
52763         * tests/test-mbscasestr2.c (ASSERT): Likewise.
52764         * tests/test-mbscasestr3.c (ASSERT): Likewise.
52765         * tests/test-mbscasestr4.c (ASSERT): Likewise.
52766         * tests/test-mbschr.c (ASSERT): Likewise.
52767         * tests/test-mbscspn.c (ASSERT): Likewise.
52768         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
52769         * tests/test-mbspbrk.c (ASSERT): Likewise.
52770         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
52771         * tests/test-mbsrchr.c (ASSERT): Likewise.
52772         * tests/test-mbsspn.c (ASSERT): Likewise.
52773         * tests/test-mbsstr1.c (ASSERT): Likewise.
52774         * tests/test-mbsstr2.c (ASSERT): Likewise.
52775         * tests/test-mbsstr3.c (ASSERT): Likewise.
52776         * tests/test-memchr2.c (ASSERT): Likewise.
52777         * tests/test-memmem.c (ASSERT): Likewise.
52778         * tests/test-open.c (ASSERT): Likewise.
52779         * tests/test-printf-frexp.c (ASSERT): Likewise.
52780         * tests/test-printf-frexpl.c (ASSERT): Likewise.
52781         * tests/test-printf-posix.c (ASSERT): Likewise.
52782         * tests/test-quotearg.c (ASSERT): Likewise.
52783         * tests/test-rbtree_list.c (ASSERT): Likewise.
52784         * tests/test-rbtree_oset.c (ASSERT): Likewise.
52785         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
52786         * tests/test-round1.c (ASSERT): Likewise.
52787         * tests/test-roundf1.c (ASSERT): Likewise.
52788         * tests/test-roundl.c (ASSERT): Likewise.
52789         * tests/test-signbit.c (ASSERT): Likewise.
52790         * tests/test-sleep.c (ASSERT): Likewise.
52791         * tests/test-snprintf-posix.c (ASSERT): Likewise.
52792         * tests/test-snprintf.c (ASSERT): Likewise.
52793         * tests/test-sprintf-posix.c (ASSERT): Likewise.
52794         * tests/test-stat-time.c (ASSERT): Likewise.
52795         * tests/test-strcasestr.c (ASSERT): Likewise.
52796         * tests/test-strerror.c (ASSERT): Likewise.
52797         * tests/test-striconv.c (ASSERT): Likewise.
52798         * tests/test-striconveh.c (ASSERT): Likewise.
52799         * tests/test-striconveha.c (ASSERT): Likewise.
52800         * tests/test-strsignal.c (ASSERT): Likewise.
52801         * tests/test-strstr.c (ASSERT): Likewise.
52802         * tests/test-strtod.c (ASSERT): Likewise.
52803         * tests/test-trunc1.c (ASSERT): Likewise.
52804         * tests/test-trunc2.c (ASSERT): Likewise.
52805         * tests/test-truncf1.c (ASSERT): Likewise.
52806         * tests/test-truncf2.c (ASSERT): Likewise.
52807         * tests/test-truncl.c (ASSERT): Likewise.
52808         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
52809         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
52810         * tests/test-vasnprintf.c (ASSERT): Likewise.
52811         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
52812         * tests/test-vasprintf.c (ASSERT): Likewise.
52813         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
52814         * tests/test-vprintf-posix.c (ASSERT): Likewise.
52815         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
52816         * tests/test-vsnprintf.c (ASSERT): Likewise.
52817         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
52818         * tests/test-wcwidth.c (ASSERT): Likewise.
52819         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
52820         * tests/test-xprintf-posix.c (ASSERT): Likewise.
52821         * tests/test-xvasprintf.c (ASSERT): Likewise.
52822         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
52823         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
52824         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
52825         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
52826         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
52827         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
52828         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
52829         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
52830         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
52831         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
52832         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
52833         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
52834         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
52835         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
52836         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
52837         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
52838         * tests/unictype/test-block_list.c (ASSERT): Likewise.
52839         * tests/unictype/test-block_of.c (ASSERT): Likewise.
52840         * tests/unictype/test-block_test.c (ASSERT): Likewise.
52841         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
52842         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
52843         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
52844         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
52845         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
52846         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
52847         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
52848         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
52849         * tests/unictype/test-combining.c (ASSERT): Likewise.
52850         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
52851         * tests/unictype/test-digit.c (ASSERT): Likewise.
52852         * tests/unictype/test-mirror.c (ASSERT): Likewise.
52853         * tests/unictype/test-numeric.c (ASSERT): Likewise.
52854         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
52855         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
52856         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
52857         * tests/unictype/test-scripts.c (ASSERT): Likewise.
52858         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
52859         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
52860         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
52861         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
52862         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
52863         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
52864         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
52865         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
52866         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
52867         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
52868         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
52869         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
52870         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
52871         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
52872         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
52873         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
52874         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
52875         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
52876         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
52877         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
52878         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
52879         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
52880         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
52881         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
52882         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
52883         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
52884         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
52885         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
52886         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
52887         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
52888         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
52889         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
52890         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
52891         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
52892         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
52893         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
52894         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
52895         Reported by Eric Blake.
52896
52897 2008-04-11  Bruno Haible  <bruno@clisp.org>
52898
52899         * lib/wchar.in.h: Tweak comment.
52900
52901 2008-04-11  Bruno Haible  <bruno@clisp.org>
52902
52903         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
52904         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
52905         gl_COMMON.
52906         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
52907
52908 2008-04-11  Bruno Haible  <bruno@clisp.org>
52909
52910         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
52911
52912 2008-04-11  Simon Josefsson  <simon@josefsson.org>
52913
52914         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
52915         of attempting to use non-existing /dev/*random.  Based on patch
52916         from Adam Strzelecki <ono@java.pl> in
52917         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
52918
52919 2008-04-08  Bruno Haible  <bruno@clisp.org>
52920
52921         Add tentative support for emx+gcc.
52922         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
52923         * lib/fpurge.c (fpurge): Likewise.
52924         * lib/freadable.c (freadable): Likewise.
52925         * lib/freadahead.c (freadahead): Likewise.
52926         * lib/freading.c (freading): Likewise.
52927         * lib/freadptr.c (freadptr): Likewise.
52928         * lib/freadseek.c (freadptrinc): Likewise.
52929         * lib/fseeko.c (rpl_fseeko): Likewise.
52930         * lib/fseterr.c (fseterr): Likewise.
52931         * lib/fwritable.c (fwritable): Likewise.
52932         * lib/fwriting.c (fwriting): Likewise.
52933         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
52934
52935 2008-04-09  Eric Blake  <ebb9@byu.net>
52936
52937         Avoid some autoconf warnings.
52938         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
52939         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
52940         * m4/afs.m4 (gl_AFS): Likewise.
52941         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
52942         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
52943         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
52944         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
52945         (gl_INTEGER_TYPE_SUFFIX): Likewise.
52946         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
52947         (AC_CHECK_DECLS_ONCE): Likewise.
52948         Rename file...
52949         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
52950         gnulib-tool requires autoconf 2.59 or better.
52951         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
52952
52953 2008-04-08  Eric Blake  <ebb9@byu.net>
52954
52955         Use 'git describe --match' if present (added in git 1.5.5).
52956         * build-aux/git-version-gen: Limit result to tags that match 'v*'
52957         if possible.
52958
52959 2008-04-08  Bruno Haible  <bruno@clisp.org>
52960
52961         Add tentative support for OpenServer.
52962         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
52963         _ptr, _cnt.
52964         * lib/fpurge.c (fpurge): Likewise.
52965         * lib/freadable.c (freadable): Likewise.
52966         * lib/freadahead.c (freadahead): Likewise.
52967         * lib/freading.c (freading): Likewise.
52968         * lib/freadptr.c (freadptr): Likewise.
52969         * lib/freadseek.c (freadptrinc): Likewise.
52970         * lib/fseeko.c (rpl_fseeko): Likewise.
52971         * lib/fseterr.c (fseterr): Likewise.
52972         * lib/fwritable.c (fwritable): Likewise.
52973         * lib/fwriting.c (fwriting): Likewise.
52974         Reported by Roger Cornelius <rac@tenzing.org> and
52975         Brian K. White <brian@aljex.com>.
52976
52977 2008-04-06  Jim Meyering  <meyering@redhat.com>
52978
52979         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
52980
52981 2008-04-06  Bruno Haible  <bruno@clisp.org>
52982
52983         Avoid possible error with non-ASCII bytes in UTF-8 locales.
52984         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
52985         * tests/test-printf-posix.sh: Likewise.
52986         * tests/test-vfprintf-posix.sh: Likewise.
52987         * tests/test-vprintf-posix.sh: Likewise.
52988         * tests/test-xprintf-posix.sh: Likewise.
52989
52990 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
52991
52992         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
52993         hide error from 'ls', needed on OS/2.
52994         Report by Elbert Pol <elbert.pol@gmail.com>.
52995
52996 2008-04-04  Eric Blake  <ebb9@byu.net>
52997
52998         Make test-fseeko.c failures meaningful.
52999         * tests/test-fseeko.c: Print line number on failure.
53000         * tests/test-fseek.c: Likewise.
53001         Reported by Nelson H. F. Beebe.
53002
53003         Improve strtod bug detection check.
53004         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
53005         required for Solaris 10.
53006         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
53007
53008 2008-04-04  Bruno Haible  <bruno@clisp.org>
53009
53010         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
53011         by m4/setenv.m4.
53012
53013 2008-04-03  Eric Blake  <ebb9@byu.net>
53014
53015         Ensure sane .version contents.
53016         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
53017         version string.
53018         * build-aux/git-version-gen: Improve documentation.
53019
53020         Make GNU make output nicer.
53021         * top/GNUmakefile [!_have-Makefile]: Add dependency on
53022         MAKECMDGOALS to enforce message for all command line targets.  Set
53023         srcdir for use in maint.mk.
53024
53025         Another maintainer tweak.
53026         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
53027         a target that regenerates version.
53028
53029 2008-04-03  Jim Meyering  <meyering@redhat.com>
53030
53031         vc-list-files: don't cause coreutils "make po-check" failure
53032         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
53033
53034 2008-04-03  Eric Blake  <ebb9@byu.net>
53035
53036         Allow VPATH usage of vc-list-files.
53037         * build-aux/vc-list-files (scriptversion): Add timestamp.
53038         (options): Add --help, --version, -C.
53039         (CVS): Support installed cvsu.
53040
53041 2008-04-02  Bruno Haible  <bruno@clisp.org>
53042
53043         Avoid some "statement with no effect" warnings from gcc.
53044         * tests/test-wctype.c (main): Explicitly ignore unused values.
53045         Reported by Jim Meyering.
53046
53047 2008-04-02  Jim Meyering  <meyering@redhat.com>
53048
53049         Avoid some warnings from "gcc -Wshadow".
53050         * tests/test-frexp.c (exp): Define to a different identifier.
53051         * tests/test-frexpl.c (exp): Likewise.
53052
53053 2008-04-03  Jim Meyering  <meyering@redhat.com>
53054
53055         bootstrap: remove dangling *.[ch] symlinks from lib
53056         * build-aux/bootstrap [dangling symlink removal]: Move find's
53057         -depth option to precede all others, to avoid a warning.
53058         Remove *.[ch] files too, and from "$source_base" (usually lib/).
53059
53060 2008-04-02  Bruno Haible  <bruno@clisp.org>
53061
53062         Avoid some warnings from "gcc -Wshadow".
53063         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
53064         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
53065         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
53066         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
53067         Reported by Jim Meyering.
53068
53069 2008-04-01  Bruno Haible  <bruno@clisp.org>
53070
53071         Fix test to work on IRIX 6.5 with cc.
53072         * tests/test-math.c (numeric_equal): New function.
53073         (main): Use it.
53074
53075 2008-04-01  Bruno Haible  <bruno@clisp.org>
53076
53077         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
53078
53079 2008-04-01  Bruno Haible  <bruno@clisp.org>
53080
53081         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
53082         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53083         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
53084         (Depends-on): Remove math.
53085
53086         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
53087         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53088         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
53089         (Depends-on): Remove math.
53090
53091         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
53092         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53093         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
53094         (Depends-on): Remove math.
53095         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
53096         (Depends-on): Remove math.
53097
53098         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
53099         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
53100         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
53101         (Depends-on): Remove math.
53102         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
53103         (Depends-on): Remove math.
53104
53105         * tests/test-round1.c: Include nan.h.
53106         (main): Use NaNd instead of NAN.
53107         * modules/round-tests (Files): Add tests/nan.h.
53108
53109         * tests/test-trunc1.c: Include nan.h.
53110         (main): Use NaNd instead of NAN.
53111         * modules/trunc-tests (Files): Add tests/nan.h.
53112
53113         * tests/test-roundf1.c: Include nan.h.
53114         (main): Use NaNf instead of NAN.
53115         * modules/roundf-tests (Files): Add tests/nan.h.
53116
53117         * tests/test-truncf1.c: Include nan.h.
53118         (main): Use NaNf instead of NAN.
53119         * modules/truncf-tests (Files): Add tests/nan.h.
53120
53121         * tests/test-ceilf1.c: Include nan.h.
53122         (main): Use NaNf instead of NAN.
53123         * modules/ceilf-tests (Files): Add tests/nan.h.
53124
53125         * tests/test-floorf1.c: Include nan.h.
53126         (main): Use NaNf instead of NAN.
53127         * modules/floorf-tests (Files): Add tests/nan.h.
53128
53129         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
53130         (main): Use NaNf instead of NAN.
53131         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
53132
53133         * tests/test-isnand.c: Include nan.h instead of <math.h>.
53134         (main): Use NaNd instead of NAN.
53135         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
53136
53137         * tests/test-frexp.c: Include nan.h.
53138         (main): Use NaNd instead of NAN.
53139         * modules/frexp-tests (Files): Add tests/nan.h.
53140
53141         * lib/isnan.c: Don't include <math.h>.
53142         (FUNC): Don't use NAN macro.
53143         * modules/isnand-nolibm (Depends-on): Remove math.
53144         * modules/isnanf-nolibm (Depends-on): Remove math.
53145         * modules/isnanl (Depends-on): Remove math.
53146         * modules/isnanl-nolibm (Depends-on): Remove math.
53147
53148         * tests/nan.h: New file.
53149
53150 2008-04-01  Eric Blake  <ebb9@byu.net>
53151
53152         Fix typos.
53153         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
53154         values to be the right type.
53155
53156         For now, cater to gnulib strtod inaccuracies.
53157         * tests/test-strtod.c (main): Allow 1-ulp error on expected
53158         fractional results.  While not as nice from a QoI perspective, it
53159         is a quicker patch than correctly implementing decimal to binary
53160         rounding.
53161
53162 2008-03-31  Eric Blake  <ebb9@byu.net>
53163
53164         Guarantee a definition of NAN.
53165         * lib/math.in.h (NAN): Define if missing.
53166         * tests/test-math.c (main): Test it.
53167         * doc/posix-headers/math.texi (math.h): Document this.
53168         * lib/isnan.c (rpl_isnand): Use it.
53169         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
53170         * tests/test-floorf1.c (NaN): Likewise.
53171         * tests/test-frexp.c (NaN): Likewise.
53172         * tests/test-isnand.c (NaN): Likewise.
53173         * tests/test-isnanf.c (NaN): Likewise.
53174         * tests/test-round1.c (NaN): Likewise.
53175         * tests/test-roundf1.c (NaN): Likewise.
53176         * tests/test-snprintf-posix.h (NaN): Likewise.
53177         * tests/test-sprintf-posix.h (NaN): Likewise.
53178         * tests/test-trunc1.c (NaN): Likewise.
53179         * tests/test-truncf1.c (NaN): Likewise.
53180         * tests/test-vasnprintf-posix.c (NaN): Likewise.
53181         * tests/test-vasprintf-posix.c (NaN): Likewise.
53182         * modules/isnand-nolibm (Depends-on): Add math.
53183         * modules/isnanf-nolibm (Depends-on): Likewise.
53184         * modules/isnanl (Depends-on): Likewise.
53185         * modules/isnanl-nolibm (Depends-on): Likewise.
53186         * modules/snprintf-posix-tests (Depends-on): Likewise.
53187         * modules/sprintf-posix-tests (Depends-on): Likewise.
53188         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
53189         * modules/vsprintf-posix-tests (Depends-on): Likewise.
53190         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
53191         * modules/vasprintf-posix-tests (Depends-on): Likewise.
53192
53193 2008-03-31  Bruno Haible  <bruno@clisp.org>
53194
53195         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
53196         * doc/posix-functions/strtod.texi: Likewise.
53197
53198 2008-03-31  Bruno Haible  <bruno@clisp.org>
53199
53200         * tests/test-strtod.c (main): Don't use C99 syntax.
53201
53202 2008-03-31  Bruno Haible  <bruno@clisp.org>
53203
53204         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
53205         Reported by Eric Blake.
53206
53207 2008-03-31  Jim Meyering  <meyering@redhat.com>
53208
53209         Don't compare actual signbit return values.
53210         * tests/test-strtod.c (main): Rather, compare only their
53211         zero/non-zero nature.
53212
53213 2008-03-31  Eric Blake  <ebb9@byu.net>
53214
53215         More strtod documentation.
53216         * doc/posix-functions/strtod.texi (strtod): Interpret more test
53217         failures as distinct bugs.
53218
53219 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
53220
53221         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
53222         Problem reported by Erik Benada in
53223         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
53224
53225 2008-03-30  Bruno Haible  <bruno@clisp.org>
53226
53227         * tests/test-strtod.c: Add comments about which assertion fails on which
53228         platform.
53229         * doc/posix-functions/strtod.texi: Add info about many more platforms.
53230
53231 2008-03-30  Eric Blake  <ebb9@byu.net>
53232
53233         Test signbit behavior on zeros.
53234         * tests/test-signbit.c (test_signbitf): Add tests for zero.
53235         (test_signbitd, test_signbitl): Likewise.
53236
53237         More strtod touchups.
53238         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
53239         sign of negative underflow, for now.  Use .5, not .1.
53240         * doc/posix-functions/strtod.texi (strtod): Mention these
53241         limitations.
53242         Reported by Jim Meyering.
53243
53244 2008-03-30  Bruno Haible  <bruno@clisp.org>
53245
53246         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
53247         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
53248
53249 2008-03-30  Bruno Haible  <bruno@clisp.org>
53250
53251         Avoid failure when attempting to return empty iconv results on some
53252         platforms.
53253         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
53254         allocation, don't report ENOMEM when the resulting string is empty.
53255
53256 2008-03-30  Bruno Haible  <bruno@clisp.org>
53257
53258         Fix buffer overrun.
53259         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
53260         Don't consider the width for tmp_length. Check count against tmp_length
53261         before doing the padding. Ensure enough allocation during padding.
53262
53263 2008-03-30  Eric Blake  <ebb9@byu.net>
53264
53265         strtod touchups.
53266         * lib/strtod.c (strtod): Avoid compiler warnings.
53267         Reported by Jim Meyering.
53268
53269 2008-03-30  Bruno Haible  <bruno@clisp.org>
53270
53271         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
53272         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
53273         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
53274         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
53275         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
53276         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
53277         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
53278         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
53279
53280         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
53281         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
53282         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
53283         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
53284         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
53285         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
53286         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
53287         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
53288
53289         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
53290         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
53291         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
53292         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
53293         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
53294         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
53295         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
53296         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
53297
53298         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
53299         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
53300
53301         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
53302         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
53303
53304         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
53305         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
53306
53307         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
53308         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
53309         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
53310
53311         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
53312         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
53313         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
53314
53315         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
53316         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
53317         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
53318
53319         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
53320         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
53321         * modules/vasprintf (Depends-on): Add EOVERFLOW.
53322
53323         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
53324         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
53325         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
53326         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
53327         (Depends-on): Add EOVERFLOW.
53328         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
53329         (Depends-on): Add EOVERFLOW.
53330         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
53331         (Depends-on): Add EOVERFLOW.
53332         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
53333         (Depends-on): Add EOVERFLOW.
53334         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
53335         (Depends-on): Add EOVERFLOW.
53336         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
53337         (Depends-on): Add EOVERFLOW.
53338         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
53339         (Depends-on): Add EOVERFLOW.
53340         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
53341         (Depends-on): Add EOVERFLOW.
53342
53343         * lib/sprintf.c (EOVERFLOW): Remove fallback.
53344         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
53345         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
53346
53347         * lib/snprintf.c (EOVERFLOW): Remove fallback.
53348         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
53349         * modules/snprintf (Depends-on): Add EOVERFLOW.
53350
53351         * lib/poll.c (EOVERFLOW): Remove fallback.
53352         * modules/poll (Depends-on): Add EOVERFLOW.
53353
53354         * lib/getugroups.c (EOVERFLOW): Remove fallback.
53355         * modules/getugroups (Depends-on): Add EOVERFLOW.
53356
53357         * lib/getdelim.c (EOVERFLOW): Remove fallback.
53358         * modules/getdelim (Depends-on): Add EOVERFLOW.
53359
53360         * lib/ftell.c (EOVERFLOW): Remove fallback.
53361         * modules/ftell (Depends-on): Add EOVERFLOW.
53362
53363         * lib/fprintf.c (EOVERFLOW): Remove fallback.
53364         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
53365         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
53366
53367         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
53368
53369         * modules/EOVERFLOW-tests: New file.
53370         * tests/test-EOVERFLOW.c: New file.
53371
53372         * modules/EOVERFLOW: New file.
53373         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
53374
53375 2008-03-30  Bruno Haible  <bruno@clisp.org>
53376
53377         Fix bug introduced on 2007-06-10.
53378         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
53379         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
53380
53381 2008-03-30  Bruno Haible  <bruno@clisp.org>
53382
53383         Improve freadseek's efficiency after ungetc.
53384         * lib/freadseek.c: Include freadahead.h.
53385         (freadptrinc): New function, extracted from freadseek.
53386         (freadseek): Use it in a loop. Use freadahead to determine the number
53387         of loop iterations.
53388         * modules/freadseek (Depends-on): Add freadahead.
53389         (configure.ac): Require AC_C_INLINE.
53390
53391 2008-03-30  Bruno Haible  <bruno@clisp.org>
53392
53393         * lib/freadseek.c (freadseek): Don't ignore the return value of
53394         freadptr.
53395
53396 2008-03-29  Eric Blake  <ebb9@byu.net>
53397
53398         Add hex float support.
53399         * modules/strtod (Depends-on): Add c-ctype.
53400         (Link): Mention POW_LIB.
53401         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
53402         whitespace between 'e' and exponent.
53403         * tests/test-strtod.c (main): Enable hex float tests.
53404         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
53405         now provides.
53406
53407         Document various strtod bugs, with some fixes.
53408         * doc/posix-functions/strtod.texi (strtod): Document bugs with
53409         "-0x", "inf", "nan", and hex constants.
53410         * doc/posix-functions/atof.texi (atof): Likewise.
53411         * modules/stdlib (Makefile.am): Support strtod.
53412         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
53413         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
53414         detect additional strtod bugs.
53415         * lib/stdlib.in.h (rpl_strtod): Add declarations.
53416         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
53417         bool where appropriate.  Parse 'inf' and 'nan'.
53418         * tests/test-strtod.c: New file.
53419         * modules/strtod (Depends-on): Add stdbool, stdlib.
53420         (configure.ac): Turn on module indicator.
53421         * modules/strtod-tests: New module.
53422
53423 2008-03-29  Eric Blake  <ebb9@byu.net>
53424
53425         Fix ftell on mingw.
53426         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
53427         * modules/ftell-tests (Depends-on): Add binary-io.
53428         * modules/ftello-tests (Depends-on): Likewise.
53429         * tests/test-ftell.c (main): Enhance test to cover behavior after
53430         ungetc.  Enforce binary mode.
53431         * tests/test-ftello.c (main): Likewise.
53432
53433         Pass test-freadseek on cygwin.
53434         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
53435         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
53436         ungetc buffer.
53437
53438         * tests/test-fflush2.c (main): Fix typo.
53439
53440 2008-03-29  Bruno Haible  <bruno@clisp.org>
53441
53442         * tests/test-fflush2.c (main): Temporarily disable the contents of
53443         this test.
53444         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
53445         Reported by Eric Blake.
53446
53447 2008-03-28  Simon Josefsson  <simon@josefsson.org>
53448
53449         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
53450         (GC_SHA224_DIGEST_SIZE): Add.
53451
53452         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
53453         (gc_hash_digest_length): Likewise.
53454         (gc_hash_buffer): Likewise.
53455
53456 2008-03-25  Bruno Haible  <bruno@clisp.org>
53457
53458         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
53459         detail which gettext release to use.
53460         Reported by Simon Josefsson.
53461
53462 2008-03-26  Jim Meyering  <meyering@redhat.com>
53463
53464         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
53465         * modules/gnumakefile (clean-GNUmakefile): Also, use
53466         test ... && ... || : syntax rather than if-then ... fi.
53467
53468         gnumakefile: Don't double-quote-expand $(VPATH) value.
53469         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
53470
53471 2008-03-24  Eric Blake  <ebb9@byu.net>
53472
53473         Alter GNUmakefile to install into top directory.
53474         * modules/maintainer-makefile: Split, and add dependency...
53475         * modules/gnumakefile: to this new module.
53476         * build-aux/GNUmakefile: Move...
53477         * top/GNUmakefile: ...here.
53478         * build-aux/maint.mk: Move...
53479         * top/maint.mk: ...here.
53480         * MODULES.html.sh (Support for maintaining...): Document new
53481         module.
53482
53483 2008-03-23  Bruno Haible  <bruno@clisp.org>
53484
53485         * gnulib-tool: New options --vc-files, --no-vc-files.
53486         (func_usage): Document them.
53487         (vc_files): New variable.
53488         (func_import): Consider vc_files.
53489         (func_create_testdir): Set vc_files to empty.
53490         Suggested by Jim Meyering and Karl Berry.
53491
53492 2008-03-23  Bruno Haible  <bruno@clisp.org>
53493
53494         Fix regex compilation error on HP-UX 11.
53495         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
53496         * modules/regex (Files): Add m4/mbstate_t.m4.
53497         Reported by Ton Voon <ton.voon@altinity.com>.
53498
53499 2008-03-23  Bruno Haible  <bruno@clisp.org>
53500
53501         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
53502
53503 2008-03-23  Eric Blake  <ebb9@byu.net>
53504             Bruno Haible  <bruno@clisp.org>
53505
53506         Install files from top/ in the destination directory.
53507         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
53508         augmentation also for the files from top/.
53509         (func_import, func_create_testdir): Rewrite file names:
53510         top/filename -> filename.
53511
53512 2008-03-23  Bruno Haible  <bruno@clisp.org>
53513
53514         Tweak "gnulib --version" output.
53515         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
53516
53517 2008-03-23  Bruno Haible  <bruno@clisp.org>
53518
53519         Tweak "gnulib --version" output.
53520         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
53521         rather than contents of ChangeLog, when possible.
53522
53523 2008-03-21  Eric Blake  <ebb9@byu.net>
53524
53525         More --version tweaks.
53526         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
53527         date of last ChangeLog entry.
53528
53529 2008-03-21  Jim Meyering  <meyering@redhat.com>
53530
53531         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
53532
53533 2008-03-20  Eric Blake  <ebb9@byu.net>
53534
53535         VPATH fix.
53536         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
53537
53538 2008-03-20  Simon Josefsson  <simon@josefsson.org>
53539
53540         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
53541         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
53542
53543 2008-03-20  Eric Blake  <ebb9@byu.net>
53544
53545         Sync GNUmakefile with coreutils.
53546         * build-aux/GNUmakefile (have-Makefile): Rename...
53547         (_have-Makefile): ...to this, for namespace consideration.
53548         (GNUmakefile.cfg): Include, if present.
53549         (_autoreconf): Define a default.
53550         (_is-dist-target): New rule for rebuilds to pick up intra-release
53551         version.
53552         (maint-cfg.mk): Rename...
53553         (cfg.mk): ...to this.
53554
53555 2008-03-18  Jim Meyering  <meyering@redhat.com>
53556
53557         New script and module: mktempd
53558         * MODULES.html.sh (maint+release support): Add mktempd.
53559         * build-aux/mktempd: New file.
53560         * modules/mktempd: New file.
53561
53562 2008-03-15  Jim Meyering  <meyering@redhat.com>
53563
53564         Undo last change.
53565         * lib/sha1.c, lib/md5.c: 63 != ~63.
53566         Reported by Andreas Schwab.
53567
53568         sha1.c, md5.c: Hoist a redundant expression.
53569         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
53570         "ctx->buflen" only once, before calling *_process_block.
53571         * lib/md5.c (md5_process_bytes): Likewise.
53572
53573 2008-03-14  Eric Blake  <ebb9@byu.net>
53574
53575         Bump copyright year in files generated by gnulib-tool.
53576         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
53577         gnulib-tool, rather than hard-coding it.
53578
53579         Fix 'gnulib-tool --version' output to work with git.
53580         * gnulib-tool (func_gnulib_dir): New function, extracted from...
53581         (startup): ...here.
53582         (func_version): Use it to invoke git-version-gen, rather than
53583         relying on CVS keyword expansion.  Modernize wording.
53584         (cvsdatestamp, last_checkin_date, version): Kill unused
53585         variables.
53586
53587 2008-03-12  Jim Meyering  <meyering@redhat.com>
53588
53589         Recognize optional cast of the argument to free.
53590         * build-aux/useless-if-before-free: Update regexps.
53591
53592         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
53593
53594 2008-03-11  Bruno Haible  <bruno@clisp.org>
53595
53596         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
53597         by a single package.
53598         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
53599         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
53600         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
53601         Reported by Sam Steingold <sds@gnu.org>.
53602
53603 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
53604
53605         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
53606         repositories.
53607
53608 2008-03-11  Bruno Haible  <bruno@clisp.org>
53609
53610         Avoid conflicts between local macro definitions.
53611         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
53612         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
53613
53614 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
53615             Bruno Haible  <bruno@clisp.org>
53616
53617         Make va_copy work with some version of xlc on AIX 5.1.
53618         * lib/stdarg.in.h: New file.
53619         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
53620         On AIX, use a <stdarg.h> file substitute.
53621         * modules/stdarg (Files): Add lib/stdarg.in.h.
53622         (Depends-on): Add include_next.
53623         (Makefile.am): Build a stdarg.h substitute if requested.
53624         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
53625
53626 2008-03-10  Bruno Haible  <bruno@clisp.org>
53627
53628         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
53629         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
53630         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
53631
53632 2008-03-10  Bruno Haible  <bruno@clisp.org>
53633
53634         * modules/stdlib (Depends-on): Add include_next, remove
53635         absolute-header.
53636
53637 2008-03-09  Bruno Haible  <bruno@clisp.org>
53638
53639         * lib/freadahead.h (freadahead): Document more precisely.
53640         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
53641         the sum of both buffer sizes.
53642         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
53643         * NEWS: Document the change.
53644
53645 2008-03-09  Bruno Haible  <bruno@clisp.org>
53646
53647         Extend freadptr to return also the buffer size.
53648         * lib/freadptr.h (freadptr): Add sizep argument.
53649         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
53650         (freadptr): Add sizep argument. Determine buffer size like freadahead
53651         does.
53652         * tests/test-freadptr.c: Don't include freadahead.h.
53653         (main): Adapt for new calling convention of freadptr.
53654         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
53655         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
53656         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
53657         tests/test-freadptr2.sh.
53658         (Depends): Remove freadahead.
53659         (TESTS): Add test-freadptr2.sh.
53660         (check_PROGRAMS): Add test-freadptr2.
53661
53662 2008-03-09  Bruno Haible  <bruno@clisp.org>
53663
53664         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
53665         Report and solution by Simon Josefsson.
53666
53667 2008-03-06  Bruno Haible  <bruno@clisp.org>
53668
53669         Make fflush after ungetc work on BSD platforms.
53670         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
53671         * tests/test-fflush2.c: New file.
53672         * tests/test-fflush2.sh: New file.
53673         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
53674         tests/test-fflush2.c.
53675         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
53676         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
53677
53678 2008-03-06  Eric Blake  <ebb9@byu.net>
53679
53680         Likewise for ftello.
53681         * modules/ftello (Dependencies): Add extensions.
53682         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
53683
53684 2008-03-06  Bruno Haible  <bruno@clisp.org>
53685
53686         * modules/fseeko (Dependencies): Add extensions.
53687         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
53688         Needed on glibc systems.
53689
53690 2008-03-06  Bruno Haible  <bruno@clisp.org>
53691
53692         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
53693         email address.
53694         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53695
53696 2008-03-06  Bruno Haible  <bruno@clisp.org>
53697
53698         * users.txt: Add libgnupdf.
53699
53700 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
53701
53702         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
53703         (Header File Substitutes, Function Substitutes,
53704         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
53705         (Build robot for gnulib): Fix typo.
53706
53707 2008-03-06  Bruno Haible  <bruno@clisp.org>
53708
53709         * doc/gnulib-tool.texi (VCS Issues): Small updates.
53710         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
53711
53712 2008-03-06  Bruno Haible  <bruno@clisp.org>
53713
53714         * doc/func.texi: New file, extracted from doc/gnulib.texi.
53715         * doc/gnulib.texi: Include it.
53716
53717 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53718
53719         * modules/func (License): Change license to unlimited; there was
53720         no LGPL parts in the module anyway.
53721
53722 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53723
53724         * modules/__func__: Renamed to modules/func.
53725         * modules/__func__-tests: Renamed to modules/func-tests.
53726         * tests/test-__func__.c: Renamed to tests/test-func.c.
53727         * m4/__func__.m4: Renamed to m4/func.m4.
53728         * doc/gnulib.texi (__func__): Section renamed to func.
53729         Suggested by Eric Blake <ebb9@byu.net>.
53730
53731 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53732
53733         * doc/gnulib.texi (__func__): Use C99 terminology when talking
53734         about __func__.  Make example self-contained.  Suggested by Eric
53735         Blake <ebb9@byu.net>.
53736
53737         * tests/test-__func__.c (main): Avoid extraneous () around __func.
53738         Suggested by Eric Blake <ebb9@byu.net>.
53739
53740 2008-03-06  Simon Josefsson  <simon@josefsson.org>
53741
53742         * modules/__func__: New file.
53743         * modules/__func__-tests: New file.
53744         * tests/test-__func__.c: New file.
53745         * m4/__func__.m4: New file.
53746         * doc/gnulib.texi (__func__): Document __func__ module.
53747
53748 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53749
53750         * modules/byteswap (License): Re-license as LGPLv2+.
53751
53752 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53753
53754         * doc/Makefile: Add pdf target.
53755
53756 2008-03-05  Simon Josefsson  <simon@josefsson.org>
53757
53758         * modules/inline (License): Use 'unlimited', since there are only
53759         *.m4 files in this module.
53760
53761 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
53762             Bruno Haible  <bruno@clisp.org>
53763
53764         Add support for HP C 7.1 on OpenVMS 8.3.
53765         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
53766
53767 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
53768
53769         Update VMS specifics.
53770         * lib/getopt.c [VMS]: Remove include of unixlib.h.
53771
53772 2008-03-02  Jim Meyering  <meyering@redhat.com>
53773
53774         Remove the last dependency on the "free" module.
53775         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
53776         Reported by Bob Proulx.
53777
53778         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
53779
53780         Remove useless "if" tests before free.  Deprecate "free" module.
53781         * doc/posix-functions/free.texi: Mention that this
53782         module is no longer useful.
53783         * modules/free (Notice): Say this module is obsolete.
53784         * modules/readutmp (Depends-on): Remove free.
53785         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
53786         * lib/putenv.c (putenv): Likewise.
53787         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
53788         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
53789         * tests/test-c-strcasestr.c (main): Likewise.
53790         * tests/test-c-strstr.c (main): Likewise.
53791         * tests/test-mbscasestr1.c (main): Likewise.
53792         * tests/test-mbscasestr2.c (main): Likewise.
53793         * tests/test-mbsstr1.c (main): Likewise.
53794         * tests/test-mbsstr2.c (main): Likewise.
53795         * tests/test-memmem.c (main): Likewise.
53796         * tests/test-strcasestr.c (main): Likewise.
53797         * tests/test-striconv.c (main): Likewise.
53798         * tests/test-striconveh.c (main): Likewise.
53799         * tests/test-striconveha.c (main): Likewise.
53800         * tests/test-strstr.c (main): Likewise.
53801
53802         * build-aux/git-version-gen: Adjust a comment and the Usage string.
53803
53804         bootstrap: sync from coreutils again
53805         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
53806
53807 2008-03-01  Jim Meyering  <meyering@redhat.com>
53808
53809         bootstrap: sync from coreutils
53810         * build-aux/bootstrap (update_po_files): Copy a .po file into place
53811         also when the target doesn't exist.
53812
53813 2008-03-01  Eric Blake  <ebb9@byu.net>
53814
53815         Fix bugs in last patch.
53816         * lib/memchr2.c (memchr2): Fix typo.
53817         * tests/test-memchr2.c: Test previous bug, and don't use GNU
53818         extension.
53819         Reported by Bruce Korb.
53820
53821         New module 'memchr2'.
53822         * modules/memchr2: New file.
53823         * modules/memchr2-tests: Likewise.
53824         * lib/memchr2.h: Likewise.
53825         * lib/memchr2.c: Likewise, based on memchr.c.
53826         * tests/test-memchr2.c: New test.
53827         * MODULES.html.sh (String handling): Add memchr2.
53828
53829 2008-02-29  Bruno Haible  <bruno@clisp.org>
53830
53831         * modules/freadseek-tests: New file.
53832         * tests/test-freadseek.sh: New file.
53833         * tests/test-freadseek.c: New file.
53834
53835         New module 'freadseek'.
53836         * modules/freadseek: New file.
53837         * lib/freadseek.h: New file.
53838         * lib/freadseek.c: New file.
53839         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
53840
53841 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
53842
53843         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
53844         wydawca.
53845
53846         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
53847         program_invocation_name and program_invocation_short_name are
53848         present.
53849
53850 2008-02-28  Bruno Haible  <bruno@clisp.org>
53851
53852         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
53853         * tests/test-freadptr.sh: Also test non-seekable stdin.
53854
53855 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
53856
53857         * build-aux/bootstrap (source_base, m4_base)
53858         (doc_base, tests_base): New variables.
53859         (gnulib_tool_options): Do not hardcode base directories, use
53860         the above variables instead.
53861
53862 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
53863
53864         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
53865
53866 2008-02-28  Bruno Haible  <bruno@clisp.org>
53867
53868         * modules/freadptr-tests: New file.
53869         * tests/test-freadptr.sh: New file.
53870         * tests/test-freadptr.c: New file.
53871
53872         New module 'freadptr'.
53873         * modules/freadptr: New file.
53874         * lib/freadptr.h: New file.
53875         * lib/freadptr.c: New file.
53876         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
53877
53878 2008-02-26  Karl Berry  <karl@freefriends.org>
53879
53880         Sync from Libtool:
53881         * libltdl/argz.c (argz_add, argz_count): New functions.
53882         * libltdl/argz.in.h: Declare them.
53883         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
53884
53885 2008-02-22  Bruno Haible  <bruno@clisp.org>
53886
53887         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
53888         is a pointer type.  Needed for HP-UX 10.
53889         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
53890         * doc/posix-functions/gmtime_r.texi: Likewise.
53891         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
53892
53893 2008-02-24  Bruno Haible  <bruno@clisp.org>
53894
53895         * modules/environ-tests: New file.
53896         * tests/test-environ.c: New file.
53897
53898         New module 'environ'.
53899         * modules/environ: New file.
53900         * lib/unistd.in.h (environ): New declaration.
53901         * m4/environ.m4: New file.
53902         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
53903         after use.
53904         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
53905         HAVE_DECL_ENVIRON.
53906         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
53907         HAVE_DECL_ENVIRON.
53908         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
53909         wrong claim that 'environ' is missing on some systems.
53910         * modules/execute (Depends-on): Add environ.
53911         * lib/execute.c (environ): Remove fallback declaration.
53912         * modules/pipe (Depends-on): Add environ.
53913         * lib/pipe.c (environ): Remove fallback declaration.
53914         * modules/setenv (Depends-on): Add environ.
53915         * lib/setenv.c (environ): Remove fallback declaration.
53916         * modules/unsetenv (Depends-on): Add environ.
53917         * lib/unsetenv.c (environ): Remove fallback declaration.
53918         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
53919         m4/environ.m4.
53920         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
53921         (gl_PREREQ_UNSETENV): Likewise.
53922
53923 2008-02-24  Bruno Haible  <bruno@clisp.org>
53924
53925         * doc/posix-functions/environ.texi: Document the MacOS X problem.
53926
53927 2008-02-20  Bob Proulx  <bob@proulx.com>
53928
53929         Enable use of older two part flavor 'git describe'.
53930         * build-aux/git-version-gen: If using the older two part flavor of
53931         git version then recreate the third part now present in the
53932         newer three part flavor of git describe.
53933
53934 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
53935
53936         * lib/fts.c (fts_build): Typo correction to comment.
53937
53938 2008-02-17  Bruno Haible  <bruno@clisp.org>
53939
53940         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
53941         generating no-op conflicts.
53942
53943 2008-02-17  Bruno Haible  <bruno@clisp.org>
53944
53945         Speed up by 10%.
53946         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
53947         result_entries, rather than an index-based loop.
53948
53949 2008-02-17  Bruno Haible  <bruno@clisp.org>
53950
53951         Speed up by 25%.
53952         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
53953         'hashcode_cached'.
53954         (entry_create): New function.
53955         (entry_hashcode): Use the cached hashcode if possible.
53956         (read_changelog_file, try_split_merged_entry): Use entry_create.
53957
53958 2008-02-17  Bruno Haible  <bruno@clisp.org>
53959
53960         Speed up from O(n^2) to O(n) for long ChangeLog files.
53961         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
53962         (read_changelog_file): Change implementation of entries_reversed list
53963         to rbtreehash.
53964         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
53965
53966 2008-02-17  Bruno Haible  <bruno@clisp.org>
53967
53968         New option --split-merged-entry.
53969         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
53970         (find_paragraph_end, try_split_merged_entry): New functions.
53971         (long_options): Add option --split-merged-entry.
53972         (usage): Document option --split-merged-entry.
53973         (main): Implement option --split-merged-entry.
53974         Reported by Eric Blake.
53975
53976 2008-02-17  Bruno Haible  <bruno@clisp.org>
53977
53978         * lib/git-merge-changelog.c: Include c-strstr.h.
53979         (main): Support the "git pull --rebase" situation.
53980         * modules/git-merge-changelog (Depends-on): Add c-strstr.
53981         Reported by Eric Blake.
53982
53983 2008-02-16  Eric Blake  <ebb9@byu.net>
53984
53985         Avoid doubling \ in common case of "c-maybe" quoting style.
53986         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
53987         eliding outer quotes.
53988         * lib/quotearg.h: Document this.
53989         * tests/test-quotearg.c (result_strings, inputs, results_g)
53990         (flag_results, locale_results): Test it by adding a new string to
53991         each test group.
53992         (compare_strings): Test new string.
53993
53994 2008-02-13  Eric Blake  <ebb9@byu.net>
53995
53996         Avoid trigraph quoting in default output.
53997         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
53998         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
53999         unless explicitly requested.
54000         * tests/test-quotearg.c (flag_results, main): Add additional tests.
54001
54002 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
54003
54004         Don't rely on signed integer overflowing to negative value.
54005         * lib/getugroups.c (getugroups): Include <limits.h>.
54006         Instead, compare against INT_MAX, and increment only if the test passes.
54007
54008 2008-02-13  Jim Meyering  <meyering@redhat.com>
54009         and Eric Blake  <ebb9@byu.net>
54010
54011         Avoid shadowing warning and compile errors on Linux.
54012         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
54013         forwarding macros on Linux.
54014         (dcgettext): Define a stub, for Linux.
54015         (results_g, main): Avoid warnings.
54016
54017 2008-02-12  Eric Blake  <ebb9@byu.net>
54018
54019         Silence warning in last patch.
54020         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
54021
54022         Quotearg part 4: add tests, fix c-maybe colon quoting.
54023         * lib/quotearg.h: Improve documentation.
54024         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
54025         escapes when adding outer quotes.  When quoting trigraphs, use
54026         valid C notation.  When quoting NUL, omit extra characters if next
54027         character is not digit.  Alter prototype.
54028         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
54029         callers.
54030         * modules/quotearg-tests: New module.
54031         * tests/test-quotearg.c: New test.
54032
54033 2008-02-07  Eric Blake  <ebb9@byu.net>
54034
54035         Quotearg part 3: add flag to control outer quote elision.
54036         * lib/quotearg.h (c_maybe_quoting_style): New style.
54037         (enum quoting_flags): Better documentation of flags.
54038         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
54039         c-maybe style.
54040         (quotearg_buffer_restyled): Handle new flag to elide outer
54041         quotes.
54042
54043         Quotearg part 2: add flag that can control NUL elision.
54044         * lib/quotearg.h (set_quoting_flags): New prototype.
54045         * lib/quotearg.c (struct quoting_options): Add flag field.
54046         (set_quoting_flags): New function.
54047         (quotearg_buffer_restyled): Add flags parameter.
54048         (quotearg_alloc_mem): Set the flag if length cannot be returned.
54049         (quotearg_n_options): Set the flag, since length cannot be
54050         returned.
54051         (quoting_options_from_style): Default flags correctly.
54052
54053         Quotearg part 1: more wrappers, restore quotearg_char state.
54054         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
54055         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
54056         (quotearg_colon_mem): New wrappers.
54057         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
54058         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
54059         functions.
54060         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
54061         (quotearg_colon_mem): New functions.
54062
54063 2008-02-11  Bruno Haible  <bruno@clisp.org>
54064
54065         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
54066         library in the current directory: it does not work with parallel make.
54067         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
54068
54069 2008-02-11  Bruno Haible  <bruno@clisp.org>
54070
54071         * .gitattributes: New file.
54072
54073 2008-02-11  Jim Meyering  <meyering@redhat.com>
54074
54075         useless-if-before-free: Fix reversed exit values.
54076         * build-aux/useless-if-before-free: Use correct values
54077         for EXIT_MATCH and EXIT_NO_MATCH.
54078
54079         * build-aux/useless-if-before-free: Close stdout carefully.
54080
54081 2008-02-10  Bruno Haible  <bruno@clisp.org>
54082
54083         New module 'git-merge-changelog'.
54084         * modules/git-merge-changelog: New file.
54085         * lib/git-merge-changelog.c: New file.
54086
54087 2008-02-10  Jim Meyering  <meyering@redhat.com>
54088
54089         useless-if-before-free: New option: --list (-l).
54090
54091         useless-if-before-free: Don't exit immediately upon open failure.
54092         * build-aux/useless-if-before-free: Exit 2 for errors.
54093         Upon failure to open a file, don't exit immediately.
54094         Rather, just warn and continue with any remaining files.
54095
54096 2008-02-10  Bruno Haible  <bruno@clisp.org>
54097
54098         New abstract list operation 'node_set_value'.
54099         * lib/gl_list.h (gl_list_node_set_value): New function.
54100         (struct gl_list_implementation): New field node_set_value.
54101         * lib/gl_list.c (gl_list_node_set_value): New function.
54102         * lib/gl_array_list.c (gl_array_node_set_value): New function.
54103         (gl_array_list_implementation): Update.
54104         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
54105         (gl_carray_list_implementation): Update.
54106         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
54107         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
54108         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
54109         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
54110         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
54111         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
54112         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
54113         Update.
54114         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
54115         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
54116         (gl_sublist_list_implementation): Update.
54117
54118 2008-02-10  Bruno Haible  <bruno@clisp.org>
54119
54120         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
54121         Needed when ELEMENT is #defined to 'some_type *'.
54122
54123 2008-02-10  Jim Meyering  <meyering@redhat.com>
54124
54125         New script and module: useless-if-before-free
54126         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
54127         * build-aux/useless-if-before-free: New file.
54128         * modules/useless-if-before-free: New file.
54129
54130         * build-aux/gitlog-to-changelog: Use committer date, not author date.
54131
54132         xstrtol_error: Fix typo.
54133         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
54134         s/exit_failure/exit_status/.
54135
54136 2008-02-09  Jim Meyering  <meyering@redhat.com>
54137
54138         New script and module: gitlog-to-changelog
54139         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
54140         * modules/gitlog-to-changelog: New file.
54141         * build-aux/gitlog-to-changelog: New file.
54142
54143 2008-02-08  Jim Meyering  <meyering@redhat.com>
54144
54145         Avoid two "parameter unused" warnings.
54146         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
54147         Mark "st" as used.
54148
54149         Use "git COMMAND", not "git-COMMAND".
54150         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
54151         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
54152         * build-aux/git-version-gen: Use "git status", not "git-status".
54153
54154 2008-02-07  Bruno Haible  <bruno@clisp.org>
54155
54156         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
54157         Avoids a crash on Windows Vista.
54158         Reported by Adam Strzelecki <ono@java.pl> via
54159         Simon Josefsson <simon@josefsson.org>.
54160
54161 2008-02-06  Bruno Haible  <bruno@clisp.org>
54162
54163         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
54164         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
54165         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
54166         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
54167         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
54168         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
54169         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
54170         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
54171         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
54172         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
54173         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
54174         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
54175         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
54176         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
54177         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
54178         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
54179         left-adjust flag.
54180         * tests/test-snprintf-posix.h (test_function): Likewise.
54181         * tests/test-sprintf-posix.h (test_function): Likewise.
54182         * tests/test-vasprintf-posix.c (test_function): Likewise.
54183         * doc/posix-functions/fprintf.texi: Update.
54184         * doc/posix-functions/printf.texi: Update.
54185         * doc/posix-functions/snprintf.texi: Update.
54186         * doc/posix-functions/sprintf.texi: Update.
54187         * doc/posix-functions/vfprintf.texi: Update.
54188         * doc/posix-functions/vprintf.texi: Update.
54189         * doc/posix-functions/vsnprintf.texi: Update.
54190         * doc/posix-functions/vsprintf.texi: Update.
54191         Reported by Peter Fales <psfales@alcatel-lucent.com>.
54192
54193 2008-02-06  Bruno Haible  <bruno@clisp.org>
54194
54195         Fix bug introduced on 2008-01-26.
54196         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
54197
54198 2008-02-06  Bruno Haible  <bruno@clisp.org>
54199
54200         Fix bug introduced on 2007-06-10.
54201         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
54202         !NEED_PRINTF_FLAG_ZERO.
54203
54204 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
54205
54206         getloadavg: use libperfstat on AIX5
54207         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
54208
54209 2008-02-03  Bruno Haible  <bruno@clisp.org>
54210
54211         * lib/diffseq.h: Add comments about required #includes.
54212         Reported by Michael Biggs <gnulib@doubleplum.net>.
54213
54214 2008-02-01  Bruno Haible  <bruno@clisp.org>
54215
54216         * users.txt: Add gnuit.
54217
54218 2008-01-31  Bruno Haible  <bruno@clisp.org>
54219
54220         * lib/md4.c (set_uint32): Mark as inline.
54221         * lib/md5.c (set_uint32): Likewise.
54222         * lib/sha1.c (set_uint32): Likewise.
54223         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
54224         * m4/md5.m4 (gl_MD5): Likewise.
54225         * m4/sha1.m4 (gl_SHA1): Likewise.
54226
54227 2008-01-31  Jim Meyering  <meyering@redhat.com>
54228
54229         Use "sizeof VAR", rather than a literal "4".
54230         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
54231         * lib/md4.c (md4_read_ctx): Likewise.
54232         * lib/sha1.c (sha1_read_ctx): Likewise.
54233
54234 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54235
54236         * tests/test-sha1.c: New file, based on test-md5.c.
54237
54238         * modules/crypto/sha1-tests: New file.
54239
54240 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54241
54242         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
54243
54244 2008-01-31  Jim Meyering  <meyering@redhat.com>
54245
54246         Prefer "sizeof v" over the equivalent "4".
54247         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
54248         * lib/md5.c (set_uint32): Likewise.
54249         * lib/sha1.c (set_uint32): Likewise.
54250
54251 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54252
54253         * lib/sha1.c (set_uint32): Mark function as static.
54254
54255 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54256
54257         md2: clarify comments to say that alignment is not required.
54258         * lib/md2.h: Remove warning about alignment in comment.
54259         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
54260         never been required.
54261
54262 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54263
54264         md4: adapt alignment constraint fix from sha1.
54265         * lib/md4.c (set_uint32): New function, from sha1.c
54266         (md4_read_ctx): Use it.
54267         (md4_finish_ctx): Doc fix.
54268         * lib/md4.h: Doc fix.
54269
54270 2008-01-31  Simon Josefsson  <simon@josefsson.org>
54271
54272         md5: adapt alignment constraint fix from sha1.
54273         * lib/md5.c (set_uint32): New function, from sha1.c
54274         (md5_read_ctx): Use it.
54275         (md5_finish_ctx): Doc fix.
54276         * lib/md5.h: Doc fix.
54277
54278 2008-01-30  Peter Palfrader  <weasel@debian.org>
54279
54280         sha1: remove the result buffer alignment constraint
54281         * lib/sha1.c (set_uint32): New function.
54282         (sha1_read_ctx): Rewrite to remove the result buffer alignment
54283         constraint.
54284         (sha1_finish_ctx): Remove comment warning about alignment constraint.
54285         * lib/sha1.h: Likewise.
54286
54287 2008-01-30  Andreas Schwab  <schwab@suse.de>
54288             Bruno Haible  <bruno@clisp.org>
54289
54290         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
54291         correct definition of LDBL_MIN_EXP.
54292
54293 2008-01-30  Karl Berry  <karl@gnu.org>
54294
54295         * config/srclist-update: try to preserve x bit on updates.
54296         * config/srclistvars.sh: update for karl.
54297
54298 2008-01-29  Jim Meyering  <meyering@redhat.com>
54299
54300         vasnprintf.c: Avoid warning about unused label
54301         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
54302         "overflow" label definition and associated code with the
54303         same cpp condition that guards the sole use of that label.
54304
54305 2008-01-26  Bruno Haible  <bruno@clisp.org>
54306
54307         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
54308         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
54309         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
54310         * lib/isnanl-nolibm.h (isnanl): Likewise.
54311         Reported by Paul Eggert <eggert@cs.ucla.edu>.
54312
54313 2008-01-26  Bruno Haible  <bruno@clisp.org>
54314
54315         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
54316         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
54317
54318 2008-01-26  Bruno Haible  <bruno@clisp.org>
54319
54320         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
54321         GCC >= 4.0 built-in.
54322         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
54323
54324 2008-01-26  Bruno Haible  <bruno@clisp.org>
54325
54326         Rename isnan, applicable to 'double' only, to isnand.
54327         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
54328         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
54329         (configure.ac): Update.
54330         (Include): Replace "isnan.h" with "isnand.h".
54331         * m4/isnand.m4: Renamed from m4/isnan.m4.
54332         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
54333         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
54334         instead of isnan.c.
54335         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
54336         instead of HAVE_ISNAN_IN_LIBC.
54337         (isnand): Renamed from isnan.
54338         * lib/isnand.c: New file.
54339         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
54340         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
54341         (Makefile.am): Update.
54342         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
54343         Include isnand.h instead of isnan.h.
54344         (main): Test isnand instead of isnan.
54345         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
54346         isnan-nolibm.
54347         * modules/frexp (Depends-on): Likewise.
54348         * modules/frexp-tests (Depends-on): Likewise.
54349         * modules/frexp-nolibm (Depends-on): Likewise.
54350         * modules/frexp-nolibm-tests (Depends-on): Likewise.
54351         * modules/isfinite (Depends-on): Likewise.
54352         * modules/round-tests (Depends-on): Likewise.
54353         * modules/signbit (Depends-on): Likewise.
54354         * modules/signbit-tests (Depends-on): Likewise.
54355         * modules/snprintf-posix (Depends-on): Likewise.
54356         * modules/sprintf-posix (Depends-on): Likewise.
54357         * modules/trunc-tests (Depends-on): Likewise.
54358         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54359         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54360         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54361         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54362         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54363         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54364         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54365         * modules/vasnprintf-posix (Depends-on): Likewise.
54366         * modules/vasprintf-posix (Depends-on): Likewise.
54367         * modules/vfprintf-posix (Depends-on): Likewise.
54368         * modules/vsnprintf-posix (Depends-on): Likewise.
54369         * modules/vsprintf-posix (Depends-on): Likewise.
54370         * lib/frexp.c: Include isnand.h instead of isnan.h.
54371         (ISNAN): Set to isnand instead of isnan.
54372         * lib/isfinite.c: Include isnand.h instead of isnan.h.
54373         (gl_isfinited): Use isnand instead of isnan.
54374         * lib/signbitd.c: Include isnand.h instead of isnan.h.
54375         (gl_signbitd): Use isnand instead of isnan.
54376         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
54377         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
54378         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
54379         (main): Use isnand instead of isnan.
54380         * tests/test-round1.c: Include isnand.h.
54381         (main): Use isnand instead of isnan.
54382         * tests/test-round2.c: Include isnand.h instead of isnan.h.
54383         (ISNAN): Set to isnand instead of isnan.
54384         * tests/test-trunc1.c: Include isnand.h.
54385         (main): Use isnand instead of isnan.
54386         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
54387         (equal): Use isnand instead of isnan.
54388         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
54389         isnand-nolibm.
54390         * NEWS: Mention the change.
54391
54392 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
54393             Bruno Haible  <bruno@clisp.org>
54394
54395         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
54396         the GCC builtins for signbits are present and set
54397         REPLACE_SIGNBIT_USING_GCC if so.
54398         * lib/math.in.h (signbit): Define using GCC builtins if
54399         REPLACE_SIGNBIT_USING_GCC is set.
54400         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
54401         REPLACE_SIGNBIT_USING_GCC.
54402         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
54403
54404 2008-01-25  Jim Meyering  <meyering@redhat.com>
54405
54406         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
54407         * lib/poll.c: Include <config.h>, not "config.h".
54408         * tests/test-getaddrinfo.c: Likewise.
54409
54410 2008-01-25  Simon Josefsson  <simon@josefsson.org>
54411
54412         * modules/sockets-tests: New file.
54413
54414 2008-01-24  Simon Josefsson  <simon@josefsson.org>
54415
54416         * modules/sockets: New module, can be used to call WSA_Startup and
54417         WSA_Cleanup when needed.
54418
54419         * lib/sockets.h, lib/sockets.c: New files.
54420
54421         * m4/sockets.m4: New file.
54422
54423         * tests/test-sockets.c: New file.
54424
54425 2008-01-19  Bruno Haible  <bruno@clisp.org>
54426
54427         * doc/posix-headers: Renamed from doc/headers.
54428         * doc/posix-functions: Renamed from doc/functions.
54429         * doc/gnulib.texi: Update.
54430
54431 2008-01-19  Bruno Haible  <bruno@clisp.org>
54432
54433         * doc/glibc-functions/strcasestr.texi: Include contents of
54434         doc/functions/strcasestr.texi, fixing the list of platforms.
54435         * doc/functions/strcasestr.texi: Remove file.
54436
54437 2008-01-19  Bruno Haible  <bruno@clisp.org>
54438
54439         * doc/glibc-functions/memmem.texi: Include contents of
54440         doc/functions/memmem.texi.
54441         * doc/functions/memmem.texi: Remove file.
54442
54443 2008-01-18  Bruno Haible  <bruno@clisp.org>
54444
54445         * doc/glibc-functions/*.texi: New files.
54446         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
54447         to use the new files.
54448
54449 2008-01-17  Bruno Haible  <bruno@clisp.org>
54450
54451         * tests/test-gethostname.c (main): Fix printf statement.
54452
54453 2008-01-17  Simon Josefsson  <simon@josefsson.org>
54454
54455         * modules/gethostname-tests: New file.
54456
54457         * tests/test-gethostname.c: New file.
54458
54459 2008-01-17  Simon Josefsson  <simon@josefsson.org>
54460
54461         * lib/gethostname.c: Include string.h unconditionally, strncpy is
54462         used by the UNAME case.  Reported by Bruno Haible
54463         <bruno@clisp.org>.
54464
54465 2008-01-17  Eric Blake  <ebb9@byu.net>
54466
54467         Convert c-strcasestr to be more efficient.
54468         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
54469         (Depends-on): Add c-strcase, remove malloca, strnlen.
54470         * tests/test-c-strcasestr.c (main): Enhance test.
54471         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
54472
54473 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
54474
54475         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
54476         Use it in creating po/Makevars.
54477
54478 2008-01-15  Simon Josefsson  <simon@josefsson.org>
54479
54480         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
54481         Applications that requires it should initialize libgcrypt
54482         manually.
54483
54484 2008-01-16  Simon Josefsson  <simon@josefsson.org>
54485
54486         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
54487
54488 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
54489
54490         Fix problem with getdate on mingw32 reported by Simon Josefsson
54491         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
54492         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
54493         tzname", when deciding whether to declare tzname.
54494         * lib/strftime.c (tzname): Likewise.
54495
54496 2008-01-15  Bruno Haible  <bruno@clisp.org>
54497
54498         Work around a MacOS X 10.5 bug in frexpl().
54499         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
54500         * doc/functions/frexpl.texi: Document the bug.
54501         Reported by Elias Pipping <pipping@gentoo.org>.
54502
54503 2008-01-14  Eric Blake  <ebb9@byu.net>
54504
54505         Touch up previous patch.
54506         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
54507         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
54508
54509         Convert strcasestr module to use Two-Way algorithm.
54510         * modules/strcasestr-simple: New module, based on the old
54511         strcasestr, but with Two-Way rather than KMP.
54512         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
54513         * lib/string.in.h (rpl_strcasestr): Declare.
54514         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
54515         performance.
54516         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
54517         * modules/string (Makefile.am): Support strcasestr.
54518         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
54519         * modules/strcasestr-tests (Depends-on): Check for alarm.
54520         * tests/test-strcasestr.c: Augment test.
54521         * lib/str-two-way.h: Clean up stray macro.
54522         * NEWS: Document new module.
54523         * MODULES.html.sh (string handling): Likewise.
54524         * doc/functions/strcasestr.texi: New file.
54525         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
54526         here, since it is not a POSIX function.
54527
54528 2008-01-14  Colin Watson  <cjwatson@debian.org>
54529             Bruno Haible  <bruno@clisp.org>
54530
54531         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
54532         works fine; if not, set REPLACE_STRSIGNAL.
54533         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
54534         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54535         REPLACE_STRSIGNAL.
54536         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
54537         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
54538         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
54539
54540 2008-01-14  Bruno Haible  <bruno@clisp.org>
54541
54542         * modules/strsignal (Include): Change to <string.h>.
54543
54544 2008-01-14  Colin Watson  <cjwatson@debian.org>
54545
54546         * modules/argp (Notice): Add a notice recommending to change
54547         XGETTEXT_OPTIONS.
54548         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
54549
54550 2008-01-13  Colin Watson  <cjwatson@debian.org>
54551
54552         * modules/strsignal-tests: New file.
54553         * tests/test-strsignal.c: New file.
54554
54555         * lib/strsignal.c: New file, from glibc with modifications.
54556         * lib/siglist.h: New file, from glibc with modifications.
54557         * lib/string.in.h (strsignal): New declaration.
54558         * m4/strsignal.m4: New file.
54559         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54560         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
54561         * modules/strsignal: New file.
54562         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
54563         HAVE_DECL_STRSIGNAL.
54564
54565 2008-01-13  Bruno Haible  <bruno@clisp.org>
54566
54567         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
54568         locale encoding is not ASCII. Needed for OpenBSD 4.0.
54569         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
54570         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
54571
54572 2008-01-13  Bruno Haible  <bruno@clisp.org>
54573
54574         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
54575         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
54576         * lib/argp.h (__attribute__): Likewise.
54577         * lib/c-stack.c (__attribute__): Likewise.
54578         * lib/error.h (__attribute__): Likewise.
54579         * lib/fts.c (__attribute__): Likewise.
54580         * lib/openat.h (__attribute__): Likewise.
54581         * lib/stdio.in.h (__attribute__): Likewise.
54582         * lib/string.in.h (__attribute__): Likewise.
54583         * lib/utimens.c (__attribute__): Likewise.
54584         * lib/vasnprintf.h (__attribute__): Likewise.
54585         * lib/xalloc.h (__attribute__): Likewise.
54586         * lib/xprintf.h (__attribute__): Likewise.
54587         * lib/xstrtol.h (__attribute__): Likewise.
54588         * lib/xvasprintf.h (__attribute__): Likewise.
54589
54590 2008-01-12  Bruno Haible  <bruno@clisp.org>
54591
54592         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
54593         * doc/glibc-headers/a.out.texi: New file.
54594         * doc/glibc-headers/aliases.texi: New file.
54595         * doc/glibc-headers/alloca.texi: New file.
54596         * doc/glibc-headers/ar.texi: New file.
54597         * doc/glibc-headers/argp.texi: New file.
54598         * doc/glibc-headers/argz.texi: New file.
54599         * doc/glibc-headers/byteswap.texi: New file.
54600         * doc/glibc-headers/crypt.texi: New file.
54601         * doc/glibc-headers/endian.texi: New file.
54602         * doc/glibc-headers/envz.texi: New file.
54603         * doc/glibc-headers/err.texi: New file.
54604         * doc/glibc-headers/error.texi: New file.
54605         * doc/glibc-headers/execinfo.texi: New file.
54606         * doc/glibc-headers/fpu_control.texi: New file.
54607         * doc/glibc-headers/fstab.texi: New file.
54608         * doc/glibc-headers/fts.texi: New file.
54609         * doc/glibc-headers/getopt.texi: New file.
54610         * doc/glibc-headers/ieee754.texi: New file.
54611         * doc/glibc-headers/ifaddrs.texi: New file.
54612         * doc/glibc-headers/libintl.texi: New file.
54613         * doc/glibc-headers/mcheck.texi: New file.
54614         * doc/glibc-headers/mntent.texi: New file.
54615         * doc/glibc-headers/obstack.texi: New file.
54616         * doc/glibc-headers/paths.texi: New file.
54617         * doc/glibc-headers/printf.texi: New file.
54618         * doc/glibc-headers/pty.texi: New file.
54619         * doc/glibc-headers/resolv.texi: New file.
54620         * doc/glibc-headers/shadow.texi: New file.
54621         * doc/glibc-headers/sysexits.texi: New file.
54622         * doc/glibc-headers/ttyent.texi: New file.
54623
54624 2008-01-12  Jim Meyering  <meyering@redhat.com>
54625
54626         announce-gen: emit Gnulib's git-based version string.
54627         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
54628         New option --gnulib-version=V, where V is expected to be
54629         the output of running git describe in the gnulib directory.
54630         (get_tool_versions): Request feedback on xdelta.  I suspect it's
54631         not useful, and plan to stop publishing an xdelta file with each
54632         coreutils release.
54633
54634         * build-aux/announce-gen: Also check for lzma-compressed files.
54635
54636 2008-01-11  Bruno Haible  <bruno@clisp.org>
54637
54638         * tests/test-memmem.c (main): Increase maximum allowed time.
54639         * tests/test-strstr.c (main): Likewise.
54640
54641 2008-01-11  Bruno Haible  <bruno@clisp.org>
54642
54643         * doc/functions/memmem.texi: Add more precisions about platforms.
54644         * doc/functions/strstr.texi: Likewise.
54645
54646 2008-01-10  Eric Blake  <ebb9@byu.net>
54647
54648         * m4/strstr.m4: Delete cruft from copy-n-paste.
54649         Reported by Bruno Haible.
54650
54651 2008-01-10  Bruno Haible  <bruno@clisp.org>
54652
54653         Make c-strstr rely on strstr.
54654         * lib/c-strstr.c: Don't include str-kmp.h.
54655         (c_strstr): Define in terms of strstr.
54656         * modules/c-strstr (Files): Remove lib/str-kmp.h.
54657         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
54658
54659 2008-01-10  Bruno Haible  <bruno@clisp.org>
54660
54661         * doc/gnulib.texi (String Functions in C Locale): New section.
54662         * doc/c-ctype.texi: New file.
54663         * doc/c-strcase.texi: New file.
54664         * doc/c-strcaseeq.texi: New file.
54665         * doc/c-strcasestr.texi: New file.
54666         * doc/c-strstr.texi: New file.
54667         * doc/c-strtod.texi: New file.
54668         * doc/c-strtold.texi: New file.
54669
54670 2008-01-10  Eric Blake  <ebb9@byu.net>
54671
54672         * lib/relocatable.h: Fix a comment.
54673
54674 2008-01-10  Eric Blake  <ebb9@byu.net>
54675
54676         Share two-way algorithm.
54677         * lib/str-two-way.h: New file, merged from...
54678         * lib/memmem.c: ...here...
54679         * lib/strstr.c: ...and here.
54680         * modules/memmem (Files): Use it.
54681         * modules/strstr (Files): Likewise.
54682
54683         Avoid quadratic strstr implementations.
54684         * lib/strstr.c: New file.
54685         * m4/strstr.m4: Likewise.
54686         * modules/strstr: Likewise.
54687         * modules/strstr-tests: Likewise.
54688         * tests/test-strstr.c: Likewise.
54689         * lib/string.in.h (rpl_strstr): Declare.
54690         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
54691         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
54692         * modules/string (Makefile.am): Likewise.
54693         * MODULES.html.sh (string handling): Mention new module.
54694         * doc/functions/strstr.texi (strstr): Document the bug.
54695
54696 2008-01-10  Bruno Haible  <bruno@clisp.org>
54697
54698         * lib/relocatable.h (relocate): State whether result is freshly
54699         allocated or not.
54700         * lib/relocatable.c (relocate): Return a freshly allocated string
54701         instead of a pointer to a privately held string.
54702         Reported by Sylvain Beucler <beuc@gnu.org>.
54703
54704 2008-01-10  Colin Watson  <cjwatson@debian.org>
54705
54706         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
54707         s/S_ISNLK/S_ISLNK/.
54708
54709 2008-01-09  Bruno Haible  <bruno@clisp.org>
54710
54711         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
54712         and other files.
54713         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
54714         if it's only a guess.
54715         * modules/memmem: Simplify by depending on memmem-simple.
54716
54717 2008-01-09  Bruno Haible  <bruno@clisp.org>
54718
54719         Work around OpenBSD 4.0 tdelete() bug.
54720         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
54721         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
54722         macros and don't redefine the enum values.
54723         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
54724         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
54725         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
54726
54727 2008-01-09  Bruno Haible  <bruno@clisp.org>
54728
54729         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
54730         (main): Don't perform the tests if setlocale did not install a UTF-8
54731         locale. Needed on OpenBSD 4.0.
54732         * modules/wcwidth-tests (Depends-on): Add localcharset.
54733
54734 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
54735
54736         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
54737         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
54738         * NEWS: announce this.
54739         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
54740
54741 2008-01-09  Simon Josefsson  <simon@josefsson.org>
54742         and Eric Blake  <ebb9@byu.net>
54743
54744         Add memmem-simple module.
54745         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
54746         (gl_FUNC_MEMMEM): Separate performance from presence checks.
54747         * modules/memmem-simple: New file.
54748         * modules/memmem (Description): Tweak.
54749         * MODULES.html.sh (string handling): Mention new module.
54750         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
54751         addressed by memmem-simple.
54752         * NEWS: Document the difference.
54753
54754 2008-01-09  Eric Blake  <ebb9@byu.net>
54755
54756         Give gcc some memmem optimization hints.
54757         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
54758         (strcasestr): Declare as pure.
54759         * modules/memmem (Maintainer): Claim my implementation.
54760
54761 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54762
54763         Support AIX 6.1 and higher.
54764         * build-aux/config.libpath: Likewise.
54765         * build-aux/config.rpath: Likewise.
54766
54767 2008-01-08  Jim Meyering  <meyering@redhat.com>
54768             Bruno Haible  <bruno@clisp.org>
54769
54770         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
54771         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
54772         Reported by Peter Fales in
54773         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
54774
54775 2008-01-08  Bruno Haible  <bruno@clisp.org>
54776
54777         * modules/unictype/category-of (Depends-on): Add
54778         unictype/category-none.
54779         * modules/unictype/category-and-tests (Depends-on): Add
54780         unictype/category-{L,N,Lu,Nd}.
54781         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
54782         * modules/unictype/category-or-tests (Depends-on): Add
54783         unictype/category-{L,N}.
54784         * modules/unictype/category-name-tests (Depends-on): Add
54785         unictype/category-{Z,Nl}.
54786         Reported by Simon Josefsson.
54787
54788 2008-01-08  Bruno Haible  <bruno@clisp.org>
54789
54790         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
54791         convention better.
54792         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
54793         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
54794         Reported by Peter Miller <millerp@canb.auug.org.au>.
54795
54796 2008-01-08  Eric Blake  <ebb9@byu.net>
54797
54798         Rewrite memmem to guarantee linear complexity without malloc.
54799         * lib/memmem.c (memmem): Use Two-Way rather than
54800         Knuth-Morris-Pratt, to allow O(1) space usage.
54801         (critical_factorization, two_way_short_needle)
54802         (two_way_long_needle): New functions.
54803         (knuth_morris_pratt): Delete.
54804         * modules/memmem (Depends-on): No longer need malloca or stdbool.
54805         Add stdint.
54806         * tests/test-memmem.c (main): Add tests for periodic needle and
54807         sublinear performance.
54808         * doc/functions/memmem.texi (memmem): Document other deficiencies
54809         in cygwin and older glibc.
54810
54811 2008-01-08  Bruno Haible  <bruno@clisp.org>
54812
54813         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
54814         augmentation.
54815
54816 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
54817
54818         Add a configure time option: --disable-acl.
54819         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
54820         AC_ARG_ENABLE(acl).
54821
54822 2008-01-06  Simon Josefsson  <simon@josefsson.org>
54823
54824         * tests/test-localename.c: Don't include obsolete "setenv.h".
54825
54826         * modules/localename-tests (Depends-on): Need unsetenv.
54827
54828 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54829
54830         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
54831
54832 2008-01-06  Colin Watson  <cjwatson@debian.org>
54833
54834         * users.txt: Add man-db.
54835
54836 2008-01-07  Bruno Haible  <bruno@clisp.org>
54837
54838         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
54839         previous section name.
54840
54841 2008-01-07  Bruno Haible  <bruno@clisp.org>
54842
54843         * lib/progname.c (set_program_name): Don't strip off a leading
54844         "lt-" prefix outside a .libs directory.
54845         Suggested by Paul Eggert.
54846
54847 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
54848             Bruno Haible  <bruno@clisp.org>
54849
54850         Improve memory cleanup in 'relocatable' module.
54851         * lib/relocatable.h (compute_curr_prefix): Change return type to
54852         'char *'.
54853         * lib/relocatable.c (compute_curr_prefix): Change return type to
54854         'char *'. Free curr_installdir after use.
54855         (relocate): Free curr_prefix_better after use.
54856         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
54857
54858 2008-01-01  Bruno Haible  <bruno@clisp.org>
54859
54860         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
54861         failure on older glibc systems.
54862         Reported by Peter Fales <psfales@alcatel-lucent.com>.
54863
54864 2008-01-05  Eric Blake  <ebb9@byu.net>
54865
54866         Avoid quadratic system memmem.
54867         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
54868         Reported by Ralf Wildenhues.
54869
54870         Fix memmem test for mingw.
54871         * modules/memmem-tests (configure.ac): Check for alarm.
54872         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
54873         it.
54874         * doc/functions/memmem.texi: New file.
54875         * doc/gnulib.texi (Function Substitutes): Add memmem.
54876         Reported by Bruno Haible.
54877
54878 2008-01-04  Bruno Haible  <bruno@clisp.org>
54879
54880         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
54881         Require gl_HEADER_STRINGS_H_DEFAULTS, not
54882         gl_HEADER_STRING_H_DEFAULTS.
54883
54884 2008-01-04  Eric Blake  <ebb9@byu.net>
54885
54886         Shorten duration of memmem test.
54887         * tests/test-memmem.c (main): Use alarm to declare failure if test
54888         is taking too long.
54889         Reported by Ralf Wildenhues.
54890
54891 2007-12-21  Simon Josefsson  <simon@josefsson.org>
54892
54893         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
54894         string, needed by strerror.
54895
54896 2008-01-03  Colin Watson  <cjwatson@debian.org>
54897             Bruno Haible  <bruno@clisp.org>
54898
54899         * doc/gnulib-tool.texi (Localization): New section.
54900
54901 2008-01-02  Bruno Haible  <bruno@clisp.org>
54902
54903         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
54904         variables to 'unsigned char *' type.
54905         Reported by Paul Eggert.
54906
54907 2008-01-02  Jim Meyering  <jim@meyering.net>
54908
54909         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
54910
54911 2007-12-31  Jim Meyering  <jim@meyering.net>
54912
54913         Avoid use of private FTS type name.
54914         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
54915
54916 2007-12-30  Karl Berry  <karl@gnu.org>
54917
54918         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
54919         work around defect in Texinfo and/or the standalone Info browser.
54920
54921 2007-12-30  Bruno Haible  <bruno@clisp.org>
54922
54923         Unify 5 copies of the KMP code.
54924         * lib/str-kmp.h: New file.
54925         * lib/c-strcasestr.c: Include str-kmp.h.
54926         (knuth_morris_pratt): Remove function.
54927         (c_strcasestr): Update.
54928         * lib/c-strstr.c: Include str-kmp.h.
54929         (knuth_morris_pratt): Remove function.
54930         (c_strcasestr): Update.
54931         * lib/mbscasestr.c: Include str-kmp.h.
54932         (knuth_morris_pratt_unibyte): Remove function.
54933         * lib/mbsstr.c: Include str-kmp.h.
54934         (knuth_morris_pratt_unibyte): Remove function.
54935         * lib/strcasestr.c: Include str-kmp.h.
54936         (knuth_morris_pratt): Remove function.
54937         (strcasestr): Update.
54938         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
54939         * modules/c-strstr (Files): Likewise.
54940         * modules/mbscasestr (Files): Likewise.
54941         * modules/mbsstr (Files): Likewise.
54942         * modules/strcasestr (Files): Likewise.
54943         Suggested by Paul Eggert.
54944
54945 2007-12-30  Bruno Haible  <bruno@clisp.org>
54946
54947         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
54948         defined.
54949
54950 2007-12-30  Bruno Haible  <bruno@clisp.org>
54951
54952         * lib/xmalloca.h: Include xalloc.h.
54953         (xnmalloca): New macro.
54954
54955 2007-12-30  Bruno Haible  <bruno@clisp.org>
54956
54957         * lib/malloca.h (nmalloca): New macro.
54958         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
54959         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
54960         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
54961         knuth_morris_pratt_multibyte): Likewise.
54962         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
54963         knuth_morris_pratt_multibyte): Likewise.
54964         * lib/memmem.c (knuth_morris_pratt): Likewise.
54965         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
54966
54967 2007-12-25  Bruno Haible  <bruno@clisp.org>
54968
54969         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
54970         * lib/glob.c: Don't include openat.h.
54971         (link_exists2_p): Add back the code that deals with the
54972         !GLOB_ALTDIRFUNC case.
54973         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
54974         let it do the filename concatenation.
54975         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
54976         * modules/glob (Depends-on): Remove openat.
54977
54978 2007-12-31  Bruno Haible  <bruno@clisp.org>
54979
54980         * modules/dirfd (License): Change to LGPLv2+.
54981         Approved by Jim Meyering.
54982
54983 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
54984
54985         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
54986         when multiplying M by sizeof (size_t).
54987
54988 2007-12-10  Martin Lambers  <marlam@marlam.de>
54989
54990         Override getpagesize on mingw.
54991         * lib/getpagesize.c: New file.
54992         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
54993         * modules/getpagesize (Files): Add lib/getpagesize.c.
54994         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
54995         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54996         REPLACE_GETPAGESIZE.
54997         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
54998
54999 2007-12-25  Bruno Haible  <bruno@clisp.org>
55000
55001         * modules/localcharset (Notice): New field.
55002         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
55003         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
55004
55005 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
55006             Bruno Haible  <bruno@clisp.org>
55007
55008         Avoid using the syntax symbol() in formatted documentation.
55009         * MODULES.html.sh (func_module): When replacing symbol() with a
55010         hyperlink, remove the parentheses. Show an error if some remain.
55011         Recognize and render the '...' syntax.
55012         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
55013         Rework. Add paragraph about GCC's inlining.
55014         * doc/alloca.texi: Likewise.
55015         * doc/error.texi: Remove parentheses from symbol reference.
55016         * doc/gnulib-intro.texi: Likewise.
55017         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
55018         * modules/fnmatch (Description): Reword to say "the ... function".
55019         * modules/full-read (Description): Likewise.
55020         * modules/full-write (Description): Likewise.
55021         * modules/safe-read (Description): Likewise.
55022         * modules/safe-write (Description): Likewise.
55023         * modules/strchrnul (Description): Likewise.
55024         * modules/trim (Description): Likewise.
55025         * modules/error (Description): Remove parentheses from symbol
55026         references.
55027         * modules/verror (Description): Likewise.
55028         Reported by Karl Berry.
55029
55030 2007-12-25  Bruno Haible  <bruno@clisp.org>
55031
55032         Fixup after 2007-10-16 commit.
55033         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
55034
55035 2007-12-24  Bruno Haible  <bruno@clisp.org>
55036
55037         Make --enable-relocatable work with DESTDIR.
55038         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
55039         to compute installdir from destprog.
55040         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
55041         also set the RELOC_DESTDIR variable.
55042         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55043
55044 2007-12-24  Bruno Haible  <bruno@clisp.org>
55045
55046         Fix link error due to xalloc_die().
55047         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
55048         of xreadlink.
55049         * lib/relocwrapper.c: Update comments.
55050         * build-aux/install-reloc: Remove xreadlink.c from file list.
55051         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
55052         xreadlink.c.
55053         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55054
55055 2007-12-24  Bruno Haible  <bruno@clisp.org>
55056
55057         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
55058         * lib/setenv.h: Remove file.
55059         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
55060         lib/setenv.h.
55061         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
55062         (Depends-on): Add stdlib.
55063         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
55064         gl_FUNC_UNSETENV.
55065         (Include): Replace setenv.h with <stdlib.h>.
55066         * modules/unsetenv: New file.
55067         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
55068         * lib/unsetenv.c: Include <stdlib.h> first.
55069         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
55070         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
55071         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
55072         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
55073         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
55074         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
55075         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
55076         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
55077         * doc/functions/unsetenv.texi: Update.
55078         * modules/xsetenv (Depends-on): Add unsetenv.
55079         * modules/getdate (Depends-on): Likewise.
55080         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
55081         * lib/xsetenv.c: Don't include setenv.h.
55082         * lib/getdate.y: Likewise.
55083         * lib/relocwrapper.c: Likewise.
55084         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
55085         (Depends-on): Add stdlib.
55086         * NEWS: Mention the changes.
55087         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
55088
55089 2007-12-23  Bruno Haible  <bruno@clisp.org>
55090
55091         * lib/memmem.c (memmem): Use lowercase variable names. Tab
55092         indentation.
55093
55094 2007-12-23  Bruno Haible  <bruno@clisp.org>
55095
55096         * lib/c-strcasestr.c: Add more comments.
55097         * lib/c-strstr.c: Likewise.
55098         * lib/mbscasestr.c: Likewise.
55099         * lib/mbsstr.c: Likewise.
55100         * lib/strcasestr.c: Likewise.
55101         * lib/memmem.c: Likewise.
55102
55103 2007-12-23  Bruno Haible  <bruno@clisp.org>
55104
55105         * tests/test-memmem.c: Include <string.h> first.
55106
55107 2007-12-22  Bruno Haible  <bruno@clisp.org>
55108
55109         * gnulib-tool (func_create_testdir): Change $auxdir while generating
55110         the contents of $testsbase.
55111         Reported by Ralf Wildenhues.
55112
55113 2007-12-22  Bruno Haible  <bruno@clisp.org>
55114
55115         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
55116         two variables local_ldadd_before, local_ldadd_last.
55117
55118 2007-12-20  Eric Blake  <ebb9@byu.net>
55119
55120         Work around circular library issue when cross-compiling.
55121         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
55122         that progname.o does not need to pull in rpl_memcmp.
55123
55124 2007-12-19  Eric Blake  <ebb9@byu.net>
55125
55126         Fix memmem to avoid O(n^2) worst-case complexity.
55127         * lib/memmem.c (knuth_morris_pratt): New function.
55128         (memmem): Use it if first few naive iterations fail.
55129         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
55130         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
55131         * modules/memchr (License): Likewise.
55132         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
55133         malloca.
55134         * tests/test-memmem.c: Rewrite, borrowing ideas from
55135         test-mbsstr1.c; the old version wouldn't even compile!
55136         * modules/memmem-tests: New file.
55137         * lib/string.in.h (rpl_memmem): Add declaration.
55138         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
55139         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
55140         REPLACE_MEMMEM.
55141
55142 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
55143
55144         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
55145         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
55146         before any system include files, and undef after them all.  This
55147         should fix a problem on VMS reported by John E. Malmberg in
55148         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
55149
55150 2007-12-17  Eric Blake  <ebb9@byu.net>
55151
55152         Revert addition of verify, for BSD/OS.
55153         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
55154         can't handle large files, for the sake of obsolete platforms.
55155         * modules/fseeko (Depends-on): Remove verify.
55156         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
55157         * doc/functions/ftello.texi (ftello): Likewise.
55158         * doc/functions/fgetpos.texi (fgetpos): Likewise.
55159         Reported by Larry Jones.
55160
55161 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
55162
55163         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
55164         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
55165
55166 2007-12-17  Jim Meyering  <meyering@redhat.com>
55167
55168         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
55169         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
55170         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
55171         * modules/getcwd (Depends-on): Add openat.
55172         Reported by Petr Salinger.
55173
55174 2007-12-17  Bruno Haible  <bruno@clisp.org>
55175
55176         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
55177         avoid a segmentation fault of the configure test on x86_64 systems.
55178
55179 2007-12-15  Jim Meyering  <meyering@redhat.com>
55180
55181         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
55182
55183 2007-12-13  Eric Blake  <ebb9@byu.net>
55184
55185         Another fseek test.
55186         * tests/test-fseek.c (main): Also test ungetc handling.
55187         * tests/test-fseeko.c (main): Likewise.
55188         * modules/fseeko (Depends-on): Add verify.
55189         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
55190         large.
55191         Reported by Larry Jones.
55192
55193         Fix fseeko on mingw.
55194         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
55195         seek.
55196
55197         Beef up fseek tests.
55198         * tests/test-fseek.c (main): Also test eof handling.
55199         * tests/test-fseeko.c (main): Likewise.
55200         Reported by Larry Jones.
55201
55202 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
55203
55204         Fix fseeko on BSD-based platforms.
55205         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
55206         successful seek.
55207
55208 2007-12-12  Eric Blake  <ebb9@byu.net>
55209
55210         Allow circular dependency of separate libtests.a
55211         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
55212         when use_libtests.
55213
55214 2007-12-11  Eric Blake  <ebb9@byu.net>
55215
55216         Fix bug with -0.0L in previous patch.
55217         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
55218         * tests/test-isnan.c (main): Also test on zeroes.
55219         * tests/test-isnanf.c (main): Likewise.
55220         * tests/test-isnanl.h (main): Likewise.
55221
55222         Detect pseudo-denormals on x86 even when cross-compiling.
55223         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
55224         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
55225         invalid bit patterns that happen to satisfy ==.
55226
55227         Avoid link failures with separate libtests.a.
55228         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
55229         last, to satisfy circular dependencies.
55230
55231 2007-12-11  Eric Blake  <ebb9@byu.net>
55232         and Bruno Haible  <bruno@clisp.org>
55233
55234         Fix OpenBSD 4.0 <float.h> handling of long double.
55235         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
55236         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
55237         * doc/headers/float.texi (float.h): Document OpenBSD bug.
55238
55239 2007-12-11  Jim Meyering  <meyering@redhat.com>
55240
55241         * users.txt: Add libvirt.
55242
55243         Support versions of autoconf prior to 2.59c.
55244         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
55245         if it is not already defined.
55246
55247 2007-12-09  Bruno Haible  <bruno@clisp.org>
55248
55249         Let 'gnulib-tool --import' collect sources needed for the tests in
55250         tests/ rather than in lib/.
55251         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
55252         argument. If true, add rules to generate libtests.a, and put libtests.a
55253         into $(LDADD). Consider source files in subdirectories and set
55254         uses_subdirs.
55255         (func_emit_initmacro_start, func_emit_initmacro_end,
55256         func_emit_initmacro_done): Pass all arguments explicitly.
55257         (func_import): Determine two module lists main_modules,
55258         testsrelated_modules. Determine use_libtests. Determine two variables
55259         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
55260         instead of just sed_transform_lib_file. Determine two variables
55261         main_files and testsrelated_files. Compute 'files' as the union of
55262         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
55263         func_add_or_update. In the generated gnulib-comp.m4, collect the
55264         object files for tests/ in different variables than those for lib/.
55265         Substitute LIBTESTS_LIBDEPS.
55266         (func_create_testdir): Combine the uses_subdirs results from
55267         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
55268
55269 2007-12-09  Bruno Haible  <bruno@clisp.org>
55270
55271         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
55272         the build-aux directory.
55273
55274 2007-12-09  Bruno Haible  <bruno@clisp.org>
55275
55276         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
55277         introduced on 2006-09-09.
55278
55279 2007-12-07  Jim Meyering  <meyering@redhat.com>
55280
55281         Let these macros work also with autoconf-2.59.
55282         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
55283         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
55284         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
55285
55286 2007-12-06  Jim Meyering  <meyering@redhat.com>
55287
55288         Avoid a configure-time syntax error in gl_FUNC_ACL.
55289         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
55290         function in each branch, before testing the cache variable.
55291
55292 2007-12-04  Eric Blake  <ebb9@byu.net>
55293
55294         Make scripts executable.
55295         * build-aux/config.guess: Add execute permissions.
55296         * build-aux/config.sub: Likewise.
55297         * build-aux/gendocs.sh: Likewise.
55298
55299         Fix frexp on mingw.
55300         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
55301         cross-compiling.
55302         * doc/functions/frexp.texi (frexp): Document the bug.
55303
55304         Make cygwin fseeko check more reliable.
55305         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
55306         version numbers, rather than unrelated feature check.
55307         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
55308         * doc/functions/ftello.texi (ftello): Likewise.
55309         Reported by Bruno Haible.
55310
55311         * m4/strerror.m4: Bump version number.
55312
55313 2007-12-03  Bruno Haible  <bruno@clisp.org>
55314
55315         * doc/functions/mprotect.texi: Mention the mingw problem.
55316
55317 2007-12-03  Eric Blake  <ebb9@byu.net>
55318
55319         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
55320         REPLACE_STRERROR is initialized before this macro.
55321
55322 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
55323
55324         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
55325         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
55326         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
55327         put -lsec in even for programs other than 'ls'.  This fixes a problem
55328         for gettext reported by Bruno Haible in
55329         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
55330         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
55331         Add support for Solaris 10.  This isn't efficient, but should get the
55332         job done for now.
55333
55334 2007-12-03  James Youngman  <jay@gnu.org>
55335
55336         * doc/regexprops-generic.texi: change "an close-group" to "a
55337         close-group" and "illegal" to "not allowed".
55338
55339 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55340
55341         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
55342         pr_byname.h. Needed for the rare case when the maintainer has done
55343         "make maintainer-clean" in the source directory and then attempts a
55344         build outside the source directory.
55345         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
55346         scripts_byname.h.
55347
55348 2007-12-02  Martin Lambers <marlam@marlam.de>
55349             Bruno Haible  <bruno@clisp.org>
55350
55351         * lib/getpagesize.h: Remove file.
55352         * lib/unistd.in.h: Include declaration of getpagesize here.
55353         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
55354         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
55355         HAVE_SYS_PARAM_H.
55356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
55357         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
55358         * modules/getpagesize (Files): Remove lib/getpagesize.h.
55359         (Depends-on): Add unistd.
55360         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55361         (Include): Use <unistd.h> instead of getpagesize.h.
55362         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
55363         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
55364         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
55365         gl_GETPAGESIZE invocation, already handled by module dependency.
55366         * lib/pagealign_alloc.c: Don't include getpagesize.h.
55367
55368 2007-12-02  Bruno Haible  <bruno@clisp.org>
55369
55370         * modules/strings-tests: New file.
55371         * tests/test-strings.c: New file.
55372
55373         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
55374         * lib/strings.in.h: New file.
55375         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
55376         * m4/strings_h.m4: New file.
55377         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
55378         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
55379         * modules/strings: New file.
55380         * modules/string (Makefile.am): Update.
55381         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
55382         Reported by Karl Berry.
55383
55384 2007-12-01  Eric Blake  <ebb9@byu.net>
55385
55386         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
55387         accomodate fix in cygwin 1.5.25.
55388
55389 2007-12-01  Jim Meyering  <meyering@redhat.com>
55390
55391         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
55392         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
55393         that would inhibit utf8-optimization of a regexp containing line-
55394         or buffer-anchors, e.g., `^', `$'.
55395
55396 2007-11-30  Bruno Haible  <bruno@clisp.org>
55397
55398         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
55399         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
55400         glthread_recursive_lock_init.
55401         * lib/lock.c (glthread_recursive_lock_init)
55402         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
55403         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
55404
55405 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
55406
55407         New function qset_acl, like set_acl but with syscall semantics.
55408         * lib/acl.h (qset_acl): New decl.
55409         * lib/acl.c (qset_acl): New function.
55410         (set_acl): Use new function.  Use more-consistent diagnostics.
55411
55412 2007-11-28  Jim Meyering  <meyering@redhat.com>
55413
55414         * modules/physmem (License): Change from GPL to LGPLv2+.
55415
55416 2007-11-26  Bruno Haible  <bruno@clisp.org>
55417
55418         * lib/vasnprintf.c (decode_long_double): Don't abort if the
55419         'long double' type has excess precision.
55420         Reported by Jim Meyering in
55421         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
55422
55423 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55424
55425         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
55426         Sync from <http://gnu.org/licenses>.
55427         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
55428         with license text from same location.
55429         * doc/maintain.texi, doc/standards.texi:  Sync from
55430         <http://savannah.gnu.org/projects/gnustandards>.
55431
55432 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
55433         and Jim Meyering  <meyering@redhat.com>
55434
55435         Adjust getdate' grammar to accept a slightly more regular language.
55436         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
55437         Before, the former was rejected.
55438         * lib/getdate.y (digits_to_date_time): New function, factored
55439         out of ...
55440         (number): ...here.  Just call digits_to_date_time.
55441         (hybrid): New non-terminal to handle an <unsigned number,
55442         signed relative offset> sequence consistently.
55443
55444 2007-11-18  Jim Meyering  <meyering@redhat.com>
55445
55446         Pull my changes from coreutils:
55447         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
55448         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
55449         use of $gnulib_tool_option_extras, so that it's separated from the
55450         preceding argument.
55451
55452         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
55453         * build-aux/bootstrap (cp_mark_as_generated): Create any required
55454         parent destination directories before copying a file into place.
55455
55456 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
55457
55458         bootstrap: work also with 4-argument variant of AC_INIT
55459         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
55460
55461 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
55462
55463         Port test-getaddrinfo to Solaris.
55464         Problem reported by Bruno Haible in
55465         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
55466         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
55467         explanation of setting 'hints'.
55468         Don't reject an implementation merely because it returns EAI_SERVICE.
55469         (EAI_SERVICE): Define to 0 if not defined.
55470
55471 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
55472
55473         The license of gnu-make and posix-shell is now "GPLed build tool".
55474         * modules/gnu-make (License): Likewise.
55475         * modules/posix-shell (License): Likewise.
55476
55477         New module posix-shell, for determining a POSIX shell
55478         or perhaps something that is close enough to a POSIX shell.
55479         * m4/posix-shell.m4: New file.
55480         * modules/posix-shell: New file.
55481
55482         * MODULES.html.sh: Mention new module.
55483
55484         New module gnu-make, for determining whether we're using GNU Make.
55485         * m4/gnu-make.m4: New file.
55486         * modules/gnu-make: New file.
55487         * MODULES.html.sh: Mention new module.
55488
55489 2007-11-14  Jim Meyering  <meyering@redhat.com>
55490
55491         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
55492         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
55493         use this macro to create a function _definition_.
55494         Remove useless "#undef ARGMATCH_DIE".
55495
55496 2007-11-14  Bruno Haible  <bruno@clisp.org>
55497
55498         * lib/config.charset: Update for OpenBSD 4.1.
55499         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
55500
55501 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
55502
55503         Document 64-bit #if problems in stdint.texi.
55504         * doc/headers/stdint.texi (stdint.h): Mention problems with
55505         64-bit-#if, and how to work around them.
55506
55507         Don't insist on 'long long int' support in the preprocessor.  It
55508         breaks too many things.  For example, PRIdMAX still uses a 'long
55509         long int' format with the latest Sun compiler, even though
55510         HAVE_LONG_LONG_INT isn't defined due to that compiler's
55511         preprocessor problem.  This causes the latest coreutils to dump
55512         core on Solaris 10 sparc with the Sun C compiler.
55513         Instead, fix the 2007-10-16 problem in a different way, by evaluating
55514         the troublesome expressions at configure-time, not at #if-time.
55515         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
55516         preprocessor.
55517         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
55518         compile-time C checks, done at 'configure'-time.
55519         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
55520         * modules/inttypes (Makefile): Substitute the new symbols that
55521         gl_INTTYPES_H now generates.
55522         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
55523
55524 2007-11-12  Bruno Haible  <bruno@clisp.org>
55525
55526         Tests for Unicode character classification functions.
55527
55528         * modules/unictype/bidicategory-byname-tests: New file.
55529         * modules/unictype/bidicategory-name-tests: New file.
55530         * modules/unictype/bidicategory-of-tests: New file.
55531         * modules/unictype/bidicategory-test-tests: New file.
55532         * modules/unictype/block-list-tests: New file.
55533         * modules/unictype/block-of-tests: New file.
55534         * modules/unictype/block-test-tests: New file.
55535         * modules/unictype/category-C-tests: New file.
55536         * modules/unictype/category-Cc-tests: New file.
55537         * modules/unictype/category-Cf-tests: New file.
55538         * modules/unictype/category-Cn-tests: New file.
55539         * modules/unictype/category-Co-tests: New file.
55540         * modules/unictype/category-Cs-tests: New file.
55541         * modules/unictype/category-L-tests: New file.
55542         * modules/unictype/category-Ll-tests: New file.
55543         * modules/unictype/category-Lm-tests: New file.
55544         * modules/unictype/category-Lo-tests: New file.
55545         * modules/unictype/category-Lt-tests: New file.
55546         * modules/unictype/category-Lu-tests: New file.
55547         * modules/unictype/category-M-tests: New file.
55548         * modules/unictype/category-Mc-tests: New file.
55549         * modules/unictype/category-Me-tests: New file.
55550         * modules/unictype/category-Mn-tests: New file.
55551         * modules/unictype/category-N-tests: New file.
55552         * modules/unictype/category-Nd-tests: New file.
55553         * modules/unictype/category-Nl-tests: New file.
55554         * modules/unictype/category-No-tests: New file.
55555         * modules/unictype/category-P-tests: New file.
55556         * modules/unictype/category-Pc-tests: New file.
55557         * modules/unictype/category-Pd-tests: New file.
55558         * modules/unictype/category-Pe-tests: New file.
55559         * modules/unictype/category-Pf-tests: New file.
55560         * modules/unictype/category-Pi-tests: New file.
55561         * modules/unictype/category-Po-tests: New file.
55562         * modules/unictype/category-Ps-tests: New file.
55563         * modules/unictype/category-S-tests: New file.
55564         * modules/unictype/category-Sc-tests: New file.
55565         * modules/unictype/category-Sk-tests: New file.
55566         * modules/unictype/category-Sm-tests: New file.
55567         * modules/unictype/category-So-tests: New file.
55568         * modules/unictype/category-Z-tests: New file.
55569         * modules/unictype/category-Zl-tests: New file.
55570         * modules/unictype/category-Zp-tests: New file.
55571         * modules/unictype/category-Zs-tests: New file.
55572         * modules/unictype/category-and-not-tests: New file.
55573         * modules/unictype/category-and-tests: New file.
55574         * modules/unictype/category-byname-tests: New file.
55575         * modules/unictype/category-name-tests: New file.
55576         * modules/unictype/category-none-tests: New file.
55577         * modules/unictype/category-of-tests: New file.
55578         * modules/unictype/category-or-tests: New file.
55579         * modules/unictype/category-test-withtable-tests: New file.
55580         * modules/unictype/combining-class-tests: New file.
55581         * modules/unictype/ctype-alnum-tests: New file.
55582         * modules/unictype/ctype-alpha-tests: New file.
55583         * modules/unictype/ctype-blank-tests: New file.
55584         * modules/unictype/ctype-cntrl-tests: New file.
55585         * modules/unictype/ctype-digit-tests: New file.
55586         * modules/unictype/ctype-graph-tests: New file.
55587         * modules/unictype/ctype-lower-tests: New file.
55588         * modules/unictype/ctype-print-tests: New file.
55589         * modules/unictype/ctype-punct-tests: New file.
55590         * modules/unictype/ctype-space-tests: New file.
55591         * modules/unictype/ctype-upper-tests: New file.
55592         * modules/unictype/ctype-xdigit-tests: New file.
55593         * modules/unictype/decimal-digit-tests: New file.
55594         * modules/unictype/digit-tests: New file.
55595         * modules/unictype/mirror-tests: New file.
55596         * modules/unictype/numeric-tests: New file.
55597         * modules/unictype/property-alphabetic-tests: New file.
55598         * modules/unictype/property-ascii-hex-digit-tests: New file.
55599         * modules/unictype/property-bidi-arabic-digit-tests: New file.
55600         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
55601         * modules/unictype/property-bidi-block-separator-tests: New file.
55602         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
55603         * modules/unictype/property-bidi-common-separator-tests: New file.
55604         * modules/unictype/property-bidi-control-tests: New file.
55605         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
55606         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
55607         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
55608         * modules/unictype/property-bidi-european-digit-tests: New file.
55609         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
55610         * modules/unictype/property-bidi-left-to-right-tests: New file.
55611         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
55612         * modules/unictype/property-bidi-other-neutral-tests: New file.
55613         * modules/unictype/property-bidi-pdf-tests: New file.
55614         * modules/unictype/property-bidi-segment-separator-tests: New file.
55615         * modules/unictype/property-bidi-whitespace-tests: New file.
55616         * modules/unictype/property-byname-tests: New file.
55617         * modules/unictype/property-combining-tests: New file.
55618         * modules/unictype/property-composite-tests: New file.
55619         * modules/unictype/property-currency-symbol-tests: New file.
55620         * modules/unictype/property-dash-tests: New file.
55621         * modules/unictype/property-decimal-digit-tests: New file.
55622         * modules/unictype/property-default-ignorable-code-point-tests: New file.
55623         * modules/unictype/property-deprecated-tests: New file.
55624         * modules/unictype/property-diacritic-tests: New file.
55625         * modules/unictype/property-extender-tests: New file.
55626         * modules/unictype/property-format-control-tests: New file.
55627         * modules/unictype/property-grapheme-base-tests: New file.
55628         * modules/unictype/property-grapheme-extend-tests: New file.
55629         * modules/unictype/property-grapheme-link-tests: New file.
55630         * modules/unictype/property-hex-digit-tests: New file.
55631         * modules/unictype/property-hyphen-tests: New file.
55632         * modules/unictype/property-id-continue-tests: New file.
55633         * modules/unictype/property-id-start-tests: New file.
55634         * modules/unictype/property-ideographic-tests: New file.
55635         * modules/unictype/property-ids-binary-operator-tests: New file.
55636         * modules/unictype/property-ids-trinary-operator-tests: New file.
55637         * modules/unictype/property-ignorable-control-tests: New file.
55638         * modules/unictype/property-iso-control-tests: New file.
55639         * modules/unictype/property-join-control-tests: New file.
55640         * modules/unictype/property-left-of-pair-tests: New file.
55641         * modules/unictype/property-line-separator-tests: New file.
55642         * modules/unictype/property-logical-order-exception-tests: New file.
55643         * modules/unictype/property-lowercase-tests: New file.
55644         * modules/unictype/property-math-tests: New file.
55645         * modules/unictype/property-non-break-tests: New file.
55646         * modules/unictype/property-not-a-character-tests: New file.
55647         * modules/unictype/property-numeric-tests: New file.
55648         * modules/unictype/property-other-alphabetic-tests: New file.
55649         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
55650         * modules/unictype/property-other-grapheme-extend-tests: New file.
55651         * modules/unictype/property-other-id-continue-tests: New file.
55652         * modules/unictype/property-other-id-start-tests: New file.
55653         * modules/unictype/property-other-lowercase-tests: New file.
55654         * modules/unictype/property-other-math-tests: New file.
55655         * modules/unictype/property-other-uppercase-tests: New file.
55656         * modules/unictype/property-paired-punctuation-tests: New file.
55657         * modules/unictype/property-paragraph-separator-tests: New file.
55658         * modules/unictype/property-pattern-syntax-tests: New file.
55659         * modules/unictype/property-pattern-white-space-tests: New file.
55660         * modules/unictype/property-private-use-tests: New file.
55661         * modules/unictype/property-punctuation-tests: New file.
55662         * modules/unictype/property-quotation-mark-tests: New file.
55663         * modules/unictype/property-radical-tests: New file.
55664         * modules/unictype/property-sentence-terminal-tests: New file.
55665         * modules/unictype/property-soft-dotted-tests: New file.
55666         * modules/unictype/property-space-tests: New file.
55667         * modules/unictype/property-terminal-punctuation-tests: New file.
55668         * modules/unictype/property-test-tests: New file.
55669         * modules/unictype/property-titlecase-tests: New file.
55670         * modules/unictype/property-unassigned-code-value-tests: New file.
55671         * modules/unictype/property-unified-ideograph-tests: New file.
55672         * modules/unictype/property-uppercase-tests: New file.
55673         * modules/unictype/property-variation-selector-tests: New file.
55674         * modules/unictype/property-white-space-tests: New file.
55675         * modules/unictype/property-xid-continue-tests: New file.
55676         * modules/unictype/property-xid-start-tests: New file.
55677         * modules/unictype/property-zero-width-tests: New file.
55678         * modules/unictype/scripts-tests: New file.
55679         * modules/unictype/syntax-c-ident-tests: New file.
55680         * modules/unictype/syntax-c-whitespace-tests: New file.
55681         * modules/unictype/syntax-java-ident-tests: New file.
55682         * modules/unictype/syntax-java-whitespace-tests: New file.
55683         * tests/unictype/test-bidi_byname.c: New file.
55684         * tests/unictype/test-bidi_name.c: New file.
55685         * tests/unictype/test-bidi_of.c: New file.
55686         * tests/unictype/test-bidi_test.c: New file.
55687         * tests/unictype/test-block_list.c: New file.
55688         * tests/unictype/test-block_of.c: New file.
55689         * tests/unictype/test-block_test.c: New file.
55690         * tests/unictype/test-categ_and.c: New file.
55691         * tests/unictype/test-categ_and_not.c: New file.
55692         * tests/unictype/test-categ_byname.c: New file.
55693         * tests/unictype/test-categ_name.c: New file.
55694         * tests/unictype/test-categ_none.c: New file.
55695         * tests/unictype/test-categ_of.c: New file.
55696         * tests/unictype/test-categ_or.c: New file.
55697         * tests/unictype/test-categ_test_withtable.c: New file.
55698         * tests/unictype/test-combining.c: New file.
55699         * tests/unictype/test-decdigit.c: New file.
55700         * tests/unictype/test-digit.c: New file.
55701         * tests/unictype/test-mirror.c: New file.
55702         * tests/unictype/test-numeric.c: New file.
55703         * tests/unictype/test-pr_byname.c: New file.
55704         * tests/unictype/test-pr_test.c: New file.
55705         * tests/unictype/test-predicate-part1.h: New file.
55706         * tests/unictype/test-predicate-part2.h: New file.
55707         * tests/unictype/test-scripts.c: New file.
55708         * tests/unictype/test-sy_c_ident.c: New file.
55709         * tests/unictype/test-sy_java_ident.c: New file.
55710
55711         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
55712         for Unicode 5.0.0.
55713         * tests/unictype/test-categ_Cc.c: Likewise.
55714         * tests/unictype/test-categ_Cf.c: Likewise.
55715         * tests/unictype/test-categ_Cn.c: Likewise.
55716         * tests/unictype/test-categ_Co.c: Likewise.
55717         * tests/unictype/test-categ_Cs.c: Likewise.
55718         * tests/unictype/test-categ_L.c: Likewise.
55719         * tests/unictype/test-categ_Ll.c: Likewise.
55720         * tests/unictype/test-categ_Lm.c: Likewise.
55721         * tests/unictype/test-categ_Lo.c: Likewise.
55722         * tests/unictype/test-categ_Lt.c: Likewise.
55723         * tests/unictype/test-categ_Lu.c: Likewise.
55724         * tests/unictype/test-categ_M.c: Likewise.
55725         * tests/unictype/test-categ_Mc.c: Likewise.
55726         * tests/unictype/test-categ_Me.c: Likewise.
55727         * tests/unictype/test-categ_Mn.c: Likewise.
55728         * tests/unictype/test-categ_N.c: Likewise.
55729         * tests/unictype/test-categ_Nd.c: Likewise.
55730         * tests/unictype/test-categ_Nl.c: Likewise.
55731         * tests/unictype/test-categ_No.c: Likewise.
55732         * tests/unictype/test-categ_P.c: Likewise.
55733         * tests/unictype/test-categ_Pc.c: Likewise.
55734         * tests/unictype/test-categ_Pd.c: Likewise.
55735         * tests/unictype/test-categ_Pe.c: Likewise.
55736         * tests/unictype/test-categ_Pf.c: Likewise.
55737         * tests/unictype/test-categ_Pi.c: Likewise.
55738         * tests/unictype/test-categ_Po.c: Likewise.
55739         * tests/unictype/test-categ_Ps.c: Likewise.
55740         * tests/unictype/test-categ_S.c: Likewise.
55741         * tests/unictype/test-categ_Sc.c: Likewise.
55742         * tests/unictype/test-categ_Sk.c: Likewise.
55743         * tests/unictype/test-categ_Sm.c: Likewise.
55744         * tests/unictype/test-categ_So.c: Likewise.
55745         * tests/unictype/test-categ_Z.c: Likewise.
55746         * tests/unictype/test-categ_Zl.c: Likewise.
55747         * tests/unictype/test-categ_Zp.c: Likewise.
55748         * tests/unictype/test-categ_Zs.c: Likewise.
55749         * tests/unictype/test-ctype_alnum.c: Likewise.
55750         * tests/unictype/test-ctype_alpha.c: Likewise.
55751         * tests/unictype/test-ctype_blank.c: Likewise.
55752         * tests/unictype/test-ctype_cntrl.c: Likewise.
55753         * tests/unictype/test-ctype_digit.c: Likewise.
55754         * tests/unictype/test-ctype_graph.c: Likewise.
55755         * tests/unictype/test-ctype_lower.c: Likewise.
55756         * tests/unictype/test-ctype_print.c: Likewise.
55757         * tests/unictype/test-ctype_punct.c: Likewise.
55758         * tests/unictype/test-ctype_space.c: Likewise.
55759         * tests/unictype/test-ctype_upper.c: Likewise.
55760         * tests/unictype/test-ctype_xdigit.c: Likewise.
55761         * tests/unictype/test-decdigit.h: Likewise.
55762         * tests/unictype/test-digit.h: Likewise.
55763         * tests/unictype/test-numeric.h: Likewise.
55764         * tests/unictype/test-pr_alphabetic.c: Likewise.
55765         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
55766         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
55767         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
55768         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
55769         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
55770         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
55771         * tests/unictype/test-pr_bidi_control.c: Likewise.
55772         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
55773         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
55774         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
55775         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
55776         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
55777         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
55778         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
55779         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
55780         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
55781         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
55782         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
55783         * tests/unictype/test-pr_combining.c: Likewise.
55784         * tests/unictype/test-pr_composite.c: Likewise.
55785         * tests/unictype/test-pr_currency_symbol.c: Likewise.
55786         * tests/unictype/test-pr_dash.c: Likewise.
55787         * tests/unictype/test-pr_decimal_digit.c: Likewise.
55788         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
55789         * tests/unictype/test-pr_deprecated.c: Likewise.
55790         * tests/unictype/test-pr_diacritic.c: Likewise.
55791         * tests/unictype/test-pr_extender.c: Likewise.
55792         * tests/unictype/test-pr_format_control.c: Likewise.
55793         * tests/unictype/test-pr_grapheme_base.c: Likewise.
55794         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
55795         * tests/unictype/test-pr_grapheme_link.c: Likewise.
55796         * tests/unictype/test-pr_hex_digit.c: Likewise.
55797         * tests/unictype/test-pr_hyphen.c: Likewise.
55798         * tests/unictype/test-pr_id_continue.c: Likewise.
55799         * tests/unictype/test-pr_id_start.c: Likewise.
55800         * tests/unictype/test-pr_ideographic.c: Likewise.
55801         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
55802         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
55803         * tests/unictype/test-pr_ignorable_control.c: Likewise.
55804         * tests/unictype/test-pr_iso_control.c: Likewise.
55805         * tests/unictype/test-pr_join_control.c: Likewise.
55806         * tests/unictype/test-pr_left_of_pair.c: Likewise.
55807         * tests/unictype/test-pr_line_separator.c: Likewise.
55808         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
55809         * tests/unictype/test-pr_lowercase.c: Likewise.
55810         * tests/unictype/test-pr_math.c: Likewise.
55811         * tests/unictype/test-pr_non_break.c: Likewise.
55812         * tests/unictype/test-pr_not_a_character.c: Likewise.
55813         * tests/unictype/test-pr_numeric.c: Likewise.
55814         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
55815         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
55816         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
55817         * tests/unictype/test-pr_other_id_continue.c: Likewise.
55818         * tests/unictype/test-pr_other_id_start.c: Likewise.
55819         * tests/unictype/test-pr_other_lowercase.c: Likewise.
55820         * tests/unictype/test-pr_other_math.c: Likewise.
55821         * tests/unictype/test-pr_other_uppercase.c: Likewise.
55822         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
55823         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
55824         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
55825         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
55826         * tests/unictype/test-pr_private_use.c: Likewise.
55827         * tests/unictype/test-pr_punctuation.c: Likewise.
55828         * tests/unictype/test-pr_quotation_mark.c: Likewise.
55829         * tests/unictype/test-pr_radical.c: Likewise.
55830         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
55831         * tests/unictype/test-pr_soft_dotted.c: Likewise.
55832         * tests/unictype/test-pr_space.c: Likewise.
55833         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
55834         * tests/unictype/test-pr_titlecase.c: Likewise.
55835         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
55836         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
55837         * tests/unictype/test-pr_uppercase.c: Likewise.
55838         * tests/unictype/test-pr_variation_selector.c: Likewise.
55839         * tests/unictype/test-pr_white_space.c: Likewise.
55840         * tests/unictype/test-pr_xid_continue.c: Likewise.
55841         * tests/unictype/test-pr_xid_start.c: Likewise.
55842         * tests/unictype/test-pr_zero_width.c: Likewise.
55843         * tests/unictype/test-sy_c_whitespace.c: Likewise.
55844         * tests/unictype/test-sy_java_whitespace.c: Likewise.
55845
55846 2007-11-12  Bruno Haible  <bruno@clisp.org>
55847
55848         Unicode character classification functions.
55849         * lib/unictype.h: New file.
55850         * modules/unictype/base: New file.
55851         * modules/unictype/category-L: New file.
55852         * modules/unictype/category-Lu: New file.
55853         * modules/unictype/category-Ll: New file.
55854         * modules/unictype/category-Lt: New file.
55855         * modules/unictype/category-Lm: New file.
55856         * modules/unictype/category-Lo: New file.
55857         * modules/unictype/category-M: New file.
55858         * modules/unictype/category-Mn: New file.
55859         * modules/unictype/category-Mc: New file.
55860         * modules/unictype/category-Me: New file.
55861         * modules/unictype/category-N: New file.
55862         * modules/unictype/category-Nd: New file.
55863         * modules/unictype/category-Nl: New file.
55864         * modules/unictype/category-No: New file.
55865         * modules/unictype/category-P: New file.
55866         * modules/unictype/category-Pc: New file.
55867         * modules/unictype/category-Pd: New file.
55868         * modules/unictype/category-Ps: New file.
55869         * modules/unictype/category-Pe: New file.
55870         * modules/unictype/category-Pi: New file.
55871         * modules/unictype/category-Pf: New file.
55872         * modules/unictype/category-Po: New file.
55873         * modules/unictype/category-S: New file.
55874         * modules/unictype/category-Sm: New file.
55875         * modules/unictype/category-Sc: New file.
55876         * modules/unictype/category-Sk: New file.
55877         * modules/unictype/category-So: New file.
55878         * modules/unictype/category-Z: New file.
55879         * modules/unictype/category-Zs: New file.
55880         * modules/unictype/category-Zl: New file.
55881         * modules/unictype/category-Zp: New file.
55882         * modules/unictype/category-C: New file.
55883         * modules/unictype/category-Cc: New file.
55884         * modules/unictype/category-Cf: New file.
55885         * modules/unictype/category-Cs: New file.
55886         * modules/unictype/category-Co: New file.
55887         * modules/unictype/category-Cn: New file.
55888         * modules/unictype/category-or: New file.
55889         * modules/unictype/category-of: New file.
55890         * modules/unictype/category-test: New file.
55891         * modules/unictype/category-test-withtable: New file.
55892         * modules/unictype/category-byname: New file.
55893         * modules/unictype/category-none: New file.
55894         * modules/unictype/category-and: New file.
55895         * modules/unictype/category-and-not: New file.
55896         * modules/unictype/category-name: New file.
55897         * modules/unictype/combining-class: New file.
55898         * modules/unictype/category-all: New file.
55899         * modules/unictype/bidicategory-all: New file.
55900         * modules/unictype/bidicategory-byname: New file.
55901         * modules/unictype/bidicategory-name: New file.
55902         * modules/unictype/bidicategory-of: New file.
55903         * modules/unictype/bidicategory-test: New file.
55904         * modules/unictype/decimal-digit: New file.
55905         * modules/unictype/digit: New file.
55906         * modules/unictype/numeric: New file.
55907         * modules/unictype/mirror: New file.
55908         * modules/unictype/property-white-space: New file.
55909         * modules/unictype/property-alphabetic: New file.
55910         * modules/unictype/property-other-alphabetic: New file.
55911         * modules/unictype/property-not-a-character: New file.
55912         * modules/unictype/property-default-ignorable-code-point: New file.
55913         * modules/unictype/property-other-default-ignorable-code-point: New
55914         file.
55915         * modules/unictype/property-deprecated: New file.
55916         * modules/unictype/property-logical-order-exception: New file.
55917         * modules/unictype/property-variation-selector: New file.
55918         * modules/unictype/property-private-use: New file.
55919         * modules/unictype/property-unassigned-code-value: New file.
55920         * modules/unictype/property-uppercase: New file.
55921         * modules/unictype/property-other-uppercase: New file.
55922         * modules/unictype/property-lowercase: New file.
55923         * modules/unictype/property-other-lowercase: New file.
55924         * modules/unictype/property-titlecase: New file.
55925         * modules/unictype/property-soft-dotted: New file.
55926         * modules/unictype/property-id-start: New file.
55927         * modules/unictype/property-other-id-start: New file.
55928         * modules/unictype/property-id-continue: New file.
55929         * modules/unictype/property-other-id-continue: New file.
55930         * modules/unictype/property-xid-start: New file.
55931         * modules/unictype/property-xid-continue: New file.
55932         * modules/unictype/property-pattern-white-space: New file.
55933         * modules/unictype/property-pattern-syntax: New file.
55934         * modules/unictype/property-join-control: New file.
55935         * modules/unictype/property-grapheme-base: New file.
55936         * modules/unictype/property-grapheme-extend: New file.
55937         * modules/unictype/property-other-grapheme-extend: New file.
55938         * modules/unictype/property-grapheme-link: New file.
55939         * modules/unictype/property-bidi-control: New file.
55940         * modules/unictype/property-bidi-left-to-right: New file.
55941         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
55942         * modules/unictype/property-bidi-arabic-right-to-left: New file.
55943         * modules/unictype/property-bidi-european-digit: New file.
55944         * modules/unictype/property-bidi-eur-num-separator: New file.
55945         * modules/unictype/property-bidi-eur-num-terminator: New file.
55946         * modules/unictype/property-bidi-arabic-digit: New file.
55947         * modules/unictype/property-bidi-common-separator: New file.
55948         * modules/unictype/property-bidi-block-separator: New file.
55949         * modules/unictype/property-bidi-segment-separator: New file.
55950         * modules/unictype/property-bidi-whitespace: New file.
55951         * modules/unictype/property-bidi-non-spacing-mark: New file.
55952         * modules/unictype/property-bidi-boundary-neutral: New file.
55953         * modules/unictype/property-bidi-pdf: New file.
55954         * modules/unictype/property-bidi-embedding-or-override: New file.
55955         * modules/unictype/property-bidi-other-neutral: New file.
55956         * modules/unictype/property-hex-digit: New file.
55957         * modules/unictype/property-ascii-hex-digit: New file.
55958         * modules/unictype/property-ideographic: New file.
55959         * modules/unictype/property-unified-ideograph: New file.
55960         * modules/unictype/property-radical: New file.
55961         * modules/unictype/property-ids-binary-operator: New file.
55962         * modules/unictype/property-ids-trinary-operator: New file.
55963         * modules/unictype/property-zero-width: New file.
55964         * modules/unictype/property-space: New file.
55965         * modules/unictype/property-non-break: New file.
55966         * modules/unictype/property-iso-control: New file.
55967         * modules/unictype/property-format-control: New file.
55968         * modules/unictype/property-dash: New file.
55969         * modules/unictype/property-hyphen: New file.
55970         * modules/unictype/property-punctuation: New file.
55971         * modules/unictype/property-line-separator: New file.
55972         * modules/unictype/property-paragraph-separator: New file.
55973         * modules/unictype/property-quotation-mark: New file.
55974         * modules/unictype/property-sentence-terminal: New file.
55975         * modules/unictype/property-terminal-punctuation: New file.
55976         * modules/unictype/property-currency-symbol: New file.
55977         * modules/unictype/property-math: New file.
55978         * modules/unictype/property-other-math: New file.
55979         * modules/unictype/property-paired-punctuation: New file.
55980         * modules/unictype/property-left-of-pair: New file.
55981         * modules/unictype/property-combining: New file.
55982         * modules/unictype/property-composite: New file.
55983         * modules/unictype/property-decimal-digit: New file.
55984         * modules/unictype/property-numeric: New file.
55985         * modules/unictype/property-diacritic: New file.
55986         * modules/unictype/property-extender: New file.
55987         * modules/unictype/property-ignorable-control: New file.
55988         * modules/unictype/property-test: New file.
55989         * modules/unictype/property-byname: New file.
55990         * modules/unictype/property-all: New file.
55991         * modules/unictype/scripts: New file.
55992         * modules/unictype/scripts-all: New file.
55993         * modules/unictype/block-of: New file.
55994         * modules/unictype/block-test: New file.
55995         * modules/unictype/block-list: New file.
55996         * modules/unictype/block-all: New file.
55997         * modules/unictype/syntax-c-whitespace: New file.
55998         * modules/unictype/syntax-java-whitespace: New file.
55999         * modules/unictype/syntax-c-ident: New file.
56000         * modules/unictype/syntax-java-ident: New file.
56001         * modules/unictype/ctype-alnum: New file.
56002         * modules/unictype/ctype-alpha: New file.
56003         * modules/unictype/ctype-cntrl: New file.
56004         * modules/unictype/ctype-digit: New file.
56005         * modules/unictype/ctype-graph: New file.
56006         * modules/unictype/ctype-lower: New file.
56007         * modules/unictype/ctype-print: New file.
56008         * modules/unictype/ctype-punct: New file.
56009         * modules/unictype/ctype-space: New file.
56010         * modules/unictype/ctype-upper: New file.
56011         * modules/unictype/ctype-xdigit: New file.
56012         * modules/unictype/ctype-blank: New file.
56013         * lib/unictype/bidi_byname.c: New file.
56014         * lib/unictype/bidi_name.c: New file.
56015         * lib/unictype/bidi_of.c: New file.
56016         * lib/unictype/bidi_test.c: New file.
56017         * lib/unictype/bitmap.h: New file.
56018         * lib/unictype/block_test.c: New file.
56019         * lib/unictype/blocks.c: New file.
56020         * lib/unictype/categ_C.c: New file.
56021         * lib/unictype/categ_Cc.c: New file.
56022         * lib/unictype/categ_Cf.c: New file.
56023         * lib/unictype/categ_Cn.c: New file.
56024         * lib/unictype/categ_Co.c: New file.
56025         * lib/unictype/categ_Cs.c: New file.
56026         * lib/unictype/categ_L.c: New file.
56027         * lib/unictype/categ_Ll.c: New file.
56028         * lib/unictype/categ_Lm.c: New file.
56029         * lib/unictype/categ_Lo.c: New file.
56030         * lib/unictype/categ_Lt.c: New file.
56031         * lib/unictype/categ_Lu.c: New file.
56032         * lib/unictype/categ_M.c: New file.
56033         * lib/unictype/categ_Mc.c: New file.
56034         * lib/unictype/categ_Me.c: New file.
56035         * lib/unictype/categ_Mn.c: New file.
56036         * lib/unictype/categ_N.c: New file.
56037         * lib/unictype/categ_Nd.c: New file.
56038         * lib/unictype/categ_Nl.c: New file.
56039         * lib/unictype/categ_No.c: New file.
56040         * lib/unictype/categ_P.c: New file.
56041         * lib/unictype/categ_Pc.c: New file.
56042         * lib/unictype/categ_Pd.c: New file.
56043         * lib/unictype/categ_Pe.c: New file.
56044         * lib/unictype/categ_Pf.c: New file.
56045         * lib/unictype/categ_Pi.c: New file.
56046         * lib/unictype/categ_Po.c: New file.
56047         * lib/unictype/categ_Ps.c: New file.
56048         * lib/unictype/categ_S.c: New file.
56049         * lib/unictype/categ_Sc.c: New file.
56050         * lib/unictype/categ_Sk.c: New file.
56051         * lib/unictype/categ_Sm.c: New file.
56052         * lib/unictype/categ_So.c: New file.
56053         * lib/unictype/categ_Z.c: New file.
56054         * lib/unictype/categ_Zl.c: New file.
56055         * lib/unictype/categ_Zp.c: New file.
56056         * lib/unictype/categ_Zs.c: New file.
56057         * lib/unictype/categ_and.c: New file.
56058         * lib/unictype/categ_and_not.c: New file.
56059         * lib/unictype/categ_byname.c: New file.
56060         * lib/unictype/categ_name.c: New file.
56061         * lib/unictype/categ_none.c: New file.
56062         * lib/unictype/categ_of.c: New file.
56063         * lib/unictype/categ_or.c: New file.
56064         * lib/unictype/categ_test.c: New file.
56065         * lib/unictype/combining.c: New file.
56066         * lib/unictype/ctype_alnum.c: New file.
56067         * lib/unictype/ctype_alpha.c: New file.
56068         * lib/unictype/ctype_blank.c: New file.
56069         * lib/unictype/ctype_cntrl.c: New file.
56070         * lib/unictype/ctype_digit.c: New file.
56071         * lib/unictype/ctype_graph.c: New file.
56072         * lib/unictype/ctype_lower.c: New file.
56073         * lib/unictype/ctype_print.c: New file.
56074         * lib/unictype/ctype_punct.c: New file.
56075         * lib/unictype/ctype_space.c: New file.
56076         * lib/unictype/ctype_upper.c: New file.
56077         * lib/unictype/ctype_xdigit.c: New file.
56078         * lib/unictype/decdigit.c: New file.
56079         * lib/unictype/digit.c: New file.
56080         * lib/unictype/identsyntaxmap.h: New file.
56081         * lib/unictype/mirror.c: New file.
56082         * lib/unictype/numeric.c: New file.
56083         * lib/unictype/pr_alphabetic.c: New file.
56084         * lib/unictype/pr_ascii_hex_digit.c: New file.
56085         * lib/unictype/pr_bidi_arabic_digit.c: New file.
56086         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
56087         * lib/unictype/pr_bidi_block_separator.c: New file.
56088         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
56089         * lib/unictype/pr_bidi_common_separator.c: New file.
56090         * lib/unictype/pr_bidi_control.c: New file.
56091         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
56092         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
56093         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
56094         * lib/unictype/pr_bidi_european_digit.c: New file.
56095         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
56096         * lib/unictype/pr_bidi_left_to_right.c: New file.
56097         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
56098         * lib/unictype/pr_bidi_other_neutral.c: New file.
56099         * lib/unictype/pr_bidi_pdf.c: New file.
56100         * lib/unictype/pr_bidi_segment_separator.c: New file.
56101         * lib/unictype/pr_bidi_whitespace.c: New file.
56102         * lib/unictype/pr_byname.c: New file.
56103         * lib/unictype/pr_byname.gperf: New file.
56104         * lib/unictype/pr_combining.c: New file.
56105         * lib/unictype/pr_composite.c: New file.
56106         * lib/unictype/pr_currency_symbol.c: New file.
56107         * lib/unictype/pr_dash.c: New file.
56108         * lib/unictype/pr_decimal_digit.c: New file.
56109         * lib/unictype/pr_default_ignorable_code_point.c: New file.
56110         * lib/unictype/pr_deprecated.c: New file.
56111         * lib/unictype/pr_diacritic.c: New file.
56112         * lib/unictype/pr_extender.c: New file.
56113         * lib/unictype/pr_format_control.c: New file.
56114         * lib/unictype/pr_grapheme_base.c: New file.
56115         * lib/unictype/pr_grapheme_extend.c: New file.
56116         * lib/unictype/pr_grapheme_link.c: New file.
56117         * lib/unictype/pr_hex_digit.c: New file.
56118         * lib/unictype/pr_hyphen.c: New file.
56119         * lib/unictype/pr_id_continue.c: New file.
56120         * lib/unictype/pr_id_start.c: New file.
56121         * lib/unictype/pr_ideographic.c: New file.
56122         * lib/unictype/pr_ids_binary_operator.c: New file.
56123         * lib/unictype/pr_ids_trinary_operator.c: New file.
56124         * lib/unictype/pr_ignorable_control.c: New file.
56125         * lib/unictype/pr_iso_control.c: New file.
56126         * lib/unictype/pr_join_control.c: New file.
56127         * lib/unictype/pr_left_of_pair.c: New file.
56128         * lib/unictype/pr_line_separator.c: New file.
56129         * lib/unictype/pr_logical_order_exception.c: New file.
56130         * lib/unictype/pr_lowercase.c: New file.
56131         * lib/unictype/pr_math.c: New file.
56132         * lib/unictype/pr_non_break.c: New file.
56133         * lib/unictype/pr_not_a_character.c: New file.
56134         * lib/unictype/pr_numeric.c: New file.
56135         * lib/unictype/pr_other_alphabetic.c: New file.
56136         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
56137         * lib/unictype/pr_other_grapheme_extend.c: New file.
56138         * lib/unictype/pr_other_id_continue.c: New file.
56139         * lib/unictype/pr_other_id_start.c: New file.
56140         * lib/unictype/pr_other_lowercase.c: New file.
56141         * lib/unictype/pr_other_math.c: New file.
56142         * lib/unictype/pr_other_uppercase.c: New file.
56143         * lib/unictype/pr_paired_punctuation.c: New file.
56144         * lib/unictype/pr_paragraph_separator.c: New file.
56145         * lib/unictype/pr_pattern_syntax.c: New file.
56146         * lib/unictype/pr_pattern_white_space.c: New file.
56147         * lib/unictype/pr_private_use.c: New file.
56148         * lib/unictype/pr_punctuation.c: New file.
56149         * lib/unictype/pr_quotation_mark.c: New file.
56150         * lib/unictype/pr_radical.c: New file.
56151         * lib/unictype/pr_sentence_terminal.c: New file.
56152         * lib/unictype/pr_soft_dotted.c: New file.
56153         * lib/unictype/pr_space.c: New file.
56154         * lib/unictype/pr_terminal_punctuation.c: New file.
56155         * lib/unictype/pr_test.c: New file.
56156         * lib/unictype/pr_titlecase.c: New file.
56157         * lib/unictype/pr_unassigned_code_value.c: New file.
56158         * lib/unictype/pr_unified_ideograph.c: New file.
56159         * lib/unictype/pr_uppercase.c: New file.
56160         * lib/unictype/pr_variation_selector.c: New file.
56161         * lib/unictype/pr_white_space.c: New file.
56162         * lib/unictype/pr_xid_continue.c: New file.
56163         * lib/unictype/pr_xid_start.c: New file.
56164         * lib/unictype/pr_zero_width.c: New file.
56165         * lib/unictype/scripts.c: New file.
56166         * lib/unictype/sy_c_ident.c: New file.
56167         * lib/unictype/sy_c_whitespace.c: New file.
56168         * lib/unictype/sy_java_ident.c: New file.
56169         * lib/unictype/sy_java_whitespace.c: New file.
56170
56171         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
56172         Unicode 5.0.0.
56173         * lib/unictype/blocks.h: Likewise.
56174         * lib/unictype/categ_C.h: Likewise.
56175         * lib/unictype/categ_Cc.h: Likewise.
56176         * lib/unictype/categ_Cf.h: Likewise.
56177         * lib/unictype/categ_Cn.h: Likewise.
56178         * lib/unictype/categ_Co.h: Likewise.
56179         * lib/unictype/categ_Cs.h: Likewise.
56180         * lib/unictype/categ_L.h: Likewise.
56181         * lib/unictype/categ_Ll.h: Likewise.
56182         * lib/unictype/categ_Lm.h: Likewise.
56183         * lib/unictype/categ_Lo.h: Likewise.
56184         * lib/unictype/categ_Lt.h: Likewise.
56185         * lib/unictype/categ_Lu.h: Likewise.
56186         * lib/unictype/categ_M.h: Likewise.
56187         * lib/unictype/categ_Mc.h: Likewise.
56188         * lib/unictype/categ_Me.h: Likewise.
56189         * lib/unictype/categ_Mn.h: Likewise.
56190         * lib/unictype/categ_N.h: Likewise.
56191         * lib/unictype/categ_Nd.h: Likewise.
56192         * lib/unictype/categ_Nl.h: Likewise.
56193         * lib/unictype/categ_No.h: Likewise.
56194         * lib/unictype/categ_P.h: Likewise.
56195         * lib/unictype/categ_Pc.h: Likewise.
56196         * lib/unictype/categ_Pd.h: Likewise.
56197         * lib/unictype/categ_Pe.h: Likewise.
56198         * lib/unictype/categ_Pf.h: Likewise.
56199         * lib/unictype/categ_Pi.h: Likewise.
56200         * lib/unictype/categ_Po.h: Likewise.
56201         * lib/unictype/categ_Ps.h: Likewise.
56202         * lib/unictype/categ_S.h: Likewise.
56203         * lib/unictype/categ_Sc.h: Likewise.
56204         * lib/unictype/categ_Sk.h: Likewise.
56205         * lib/unictype/categ_Sm.h: Likewise.
56206         * lib/unictype/categ_So.h: Likewise.
56207         * lib/unictype/categ_Z.h: Likewise.
56208         * lib/unictype/categ_Zl.h: Likewise.
56209         * lib/unictype/categ_Zp.h: Likewise.
56210         * lib/unictype/categ_Zs.h: Likewise.
56211         * lib/unictype/categ_of.h: Likewise.
56212         * lib/unictype/combining.h: Likewise.
56213         * lib/unictype/ctype_alnum.h: Likewise.
56214         * lib/unictype/ctype_alpha.h: Likewise.
56215         * lib/unictype/ctype_blank.h: Likewise.
56216         * lib/unictype/ctype_cntrl.h: Likewise.
56217         * lib/unictype/ctype_digit.h: Likewise.
56218         * lib/unictype/ctype_graph.h: Likewise.
56219         * lib/unictype/ctype_lower.h: Likewise.
56220         * lib/unictype/ctype_print.h: Likewise.
56221         * lib/unictype/ctype_punct.h: Likewise.
56222         * lib/unictype/ctype_space.h: Likewise.
56223         * lib/unictype/ctype_upper.h: Likewise.
56224         * lib/unictype/ctype_xdigit.h: Likewise.
56225         * lib/unictype/decdigit.h: Likewise.
56226         * lib/unictype/digit.h: Likewise.
56227         * lib/unictype/mirror.h: Likewise.
56228         * lib/unictype/numeric.h: Likewise.
56229         * lib/unictype/pr_alphabetic.h: Likewise.
56230         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
56231         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
56232         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
56233         * lib/unictype/pr_bidi_block_separator.h: Likewise.
56234         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
56235         * lib/unictype/pr_bidi_common_separator.h: Likewise.
56236         * lib/unictype/pr_bidi_control.h: Likewise.
56237         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
56238         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
56239         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
56240         * lib/unictype/pr_bidi_european_digit.h: Likewise.
56241         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
56242         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
56243         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
56244         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
56245         * lib/unictype/pr_bidi_pdf.h: Likewise.
56246         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
56247         * lib/unictype/pr_bidi_whitespace.h: Likewise.
56248         * lib/unictype/pr_combining.h: Likewise.
56249         * lib/unictype/pr_composite.h: Likewise.
56250         * lib/unictype/pr_currency_symbol.h: Likewise.
56251         * lib/unictype/pr_dash.h: Likewise.
56252         * lib/unictype/pr_decimal_digit.h: Likewise.
56253         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
56254         * lib/unictype/pr_deprecated.h: Likewise.
56255         * lib/unictype/pr_diacritic.h: Likewise.
56256         * lib/unictype/pr_extender.h: Likewise.
56257         * lib/unictype/pr_format_control.h: Likewise.
56258         * lib/unictype/pr_grapheme_base.h: Likewise.
56259         * lib/unictype/pr_grapheme_extend.h: Likewise.
56260         * lib/unictype/pr_grapheme_link.h: Likewise.
56261         * lib/unictype/pr_hex_digit.h: Likewise.
56262         * lib/unictype/pr_hyphen.h: Likewise.
56263         * lib/unictype/pr_id_continue.h: Likewise.
56264         * lib/unictype/pr_id_start.h: Likewise.
56265         * lib/unictype/pr_ideographic.h: Likewise.
56266         * lib/unictype/pr_ids_binary_operator.h: Likewise.
56267         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
56268         * lib/unictype/pr_ignorable_control.h: Likewise.
56269         * lib/unictype/pr_iso_control.h: Likewise.
56270         * lib/unictype/pr_join_control.h: Likewise.
56271         * lib/unictype/pr_left_of_pair.h: Likewise.
56272         * lib/unictype/pr_line_separator.h: Likewise.
56273         * lib/unictype/pr_logical_order_exception.h: Likewise.
56274         * lib/unictype/pr_lowercase.h: Likewise.
56275         * lib/unictype/pr_math.h: Likewise.
56276         * lib/unictype/pr_non_break.h: Likewise.
56277         * lib/unictype/pr_not_a_character.h: Likewise.
56278         * lib/unictype/pr_numeric.h: Likewise.
56279         * lib/unictype/pr_other_alphabetic.h: Likewise.
56280         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
56281         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
56282         * lib/unictype/pr_other_id_continue.h: Likewise.
56283         * lib/unictype/pr_other_id_start.h: Likewise.
56284         * lib/unictype/pr_other_lowercase.h: Likewise.
56285         * lib/unictype/pr_other_math.h: Likewise.
56286         * lib/unictype/pr_other_uppercase.h: Likewise.
56287         * lib/unictype/pr_paired_punctuation.h: Likewise.
56288         * lib/unictype/pr_paragraph_separator.h: Likewise.
56289         * lib/unictype/pr_pattern_syntax.h: Likewise.
56290         * lib/unictype/pr_pattern_white_space.h: Likewise.
56291         * lib/unictype/pr_private_use.h: Likewise.
56292         * lib/unictype/pr_punctuation.h: Likewise.
56293         * lib/unictype/pr_quotation_mark.h: Likewise.
56294         * lib/unictype/pr_radical.h: Likewise.
56295         * lib/unictype/pr_sentence_terminal.h: Likewise.
56296         * lib/unictype/pr_soft_dotted.h: Likewise.
56297         * lib/unictype/pr_space.h: Likewise.
56298         * lib/unictype/pr_terminal_punctuation.h: Likewise.
56299         * lib/unictype/pr_titlecase.h: Likewise.
56300         * lib/unictype/pr_unassigned_code_value.h: Likewise.
56301         * lib/unictype/pr_unified_ideograph.h: Likewise.
56302         * lib/unictype/pr_uppercase.h: Likewise.
56303         * lib/unictype/pr_variation_selector.h: Likewise.
56304         * lib/unictype/pr_white_space.h: Likewise.
56305         * lib/unictype/pr_xid_continue.h: Likewise.
56306         * lib/unictype/pr_xid_start.h: Likewise.
56307         * lib/unictype/pr_zero_width.h: Likewise.
56308         * lib/unictype/scripts.h: Likewise.
56309         * lib/unictype/scripts_byname.gperf: Likewise.
56310         * lib/unictype/sy_c_ident.h: Likewise.
56311         * lib/unictype/sy_c_whitespace.h: Likewise.
56312         * lib/unictype/sy_java_ident.h: Likewise.
56313         * lib/unictype/sy_java_whitespace.h: Likewise.
56314
56315         * lib/unictype/Makefile: New file.
56316         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
56317         glibc.
56318         * lib/unictype/3level.h: New file, copied from glibc.
56319         * lib/unictype/3levelbit.h: New file.
56320
56321 2007-11-11  Bruno Haible  <bruno@clisp.org>
56322
56323         * modules/gperf: New file.
56324         * modules/iconv_open (Depends-on): Add it.
56325         (Makefile.am): Remove the GPERF definition.
56326
56327 2007-11-11  Bruno Haible  <bruno@clisp.org>
56328
56329         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
56330         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
56331
56332 2007-11-11  Bruno Haible  <bruno@clisp.org>
56333
56334         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
56335         (usage): Remove function.
56336
56337 2007-11-11  Bruno Haible  <bruno@clisp.org>
56338
56339         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
56340         gl_FUNC_CEILF_LIBS.
56341         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
56342         gl_FUNC_CEIL_LIBS.
56343         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
56344         gl_FUNC_CEILL_LIBS.
56345         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
56346         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
56347         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
56348
56349 2007-11-11  Bruno Haible  <bruno@clisp.org>
56350
56351         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
56352         roundf were declared but do not exist on functions.
56353         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
56354         roundl were declared but do not exist on functions.
56355         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
56356         HAVE_FLOORL_AND_CEILL, respectively.
56357         Needed for Sun C on Solaris 10.
56358
56359 2007-11-11  Bruno Haible  <bruno@clisp.org>
56360
56361         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
56362         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
56363         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
56364         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
56365         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
56366         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
56367         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
56368         HAVE_DECL_ROUNDF.
56369         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
56370         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
56371         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
56372         of HAVE_DECL_ROUND*.
56373         * modules/math (Makefile.am): Update.
56374
56375 2007-11-10  Bruno Haible  <bruno@clisp.org>
56376
56377         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
56378         ptrdiff_t as m4/intl.m4.
56379
56380 2007-11-10  Jim Meyering  <meyering@redhat.com>
56381
56382         Avoid link failure for the argmatch test.
56383         * tests/test-argmatch.c (usage): Define function to avoid a link
56384         failure: argmatch_die requires a usage function.
56385
56386 2007-11-09  Bruno Haible  <bruno@clisp.org>
56387
56388         * doc/functions/snprintf.texi: Mention BeOS deficiency.
56389         * doc/functions/vsnprintf.texi: Likewise.
56390         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
56391         with a size argument < 2.
56392
56393 2007-11-09  Bruno Haible  <bruno@clisp.org>
56394
56395         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
56396         buffer. Fixes an inefficiency introduced on 2007-11-03.
56397
56398 2007-11-09  Bruno Haible  <bruno@clisp.org>
56399
56400         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
56401         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
56402
56403 2007-11-08  Jim Meyering  <meyering@redhat.com>
56404
56405         Change cache variable name prefix "jm_" to "gl_" everywhere.
56406         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
56407         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
56408         * m4/uptime.m4: s/gl_/jm_/
56409
56410 2007-11-07  Bruno Haible  <bruno@clisp.org>
56411
56412         Update to GNU gettext 0.17.
56413         * m4/intl.m4: Update to GNU gettext 0.17.
56414         * m4/po.m4: Likewise.
56415         * modules/gettext (Files): Remove m4/ulonglong.m4.
56416         (configure.ac): Require gettext infrastructure from version 0.17.
56417
56418 2007-11-06  Bruno Haible  <bruno@clisp.org>
56419
56420         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
56421         symbolic values are not defined in a public header.
56422         * lib/freadable.c (freadable) [QNX]: Likewise.
56423         * lib/freadahead.c (freadahead) [QNX]: Likewise.
56424         * lib/freading.c (freading) [QNX]: Likewise.
56425         * lib/fseterr.c (fseterr) [QNX]: Likewise.
56426         * lib/fwritable.c (fwritable) [QNX]: Likewise.
56427         * lib/fwriting.c (fwriting) [QNX]: Likewise.
56428         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
56429         Reported by Alain Magloire.
56430
56431         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
56432
56433 2007-11-05  Bruno Haible  <bruno@clisp.org>
56434
56435         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
56436         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
56437         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
56438         Reported by Eric Blake.
56439
56440 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56441             Bruno Haible  <bruno@clisp.org>
56442
56443         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
56444         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
56445         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
56446         (malloc): Undefine also before including <stdlib.h>.
56447         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
56448         Needed on OSF/1 4.0.
56449
56450 2007-11-05  Jim Meyering  <meyering@redhat.com>
56451
56452         git-version-gen: sync from coreutils.
56453         * build-aux/git-version-gen: Add comments.
56454         Change the first '-' to '.' in the snapshot version string,
56455         e.g., 6.9-377-08144 -> 6.9.377-08144
56456         Remove first parameter.
56457         Don't declare a version "-dirty" merely because a time
56458         stamp has changed.
56459
56460 2007-11-04  Bruno Haible  <bruno@clisp.org>
56461
56462         * lib/lock.h: Protect all macro definitions containing an 'if'
56463         statement through a "do { ... } while (0)".
56464         * lib/tls.h: Likewise.
56465
56466 2007-11-04  Bruno Haible  <bruno@clisp.org>
56467
56468         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
56469
56470 2007-11-04  Bruno Haible  <bruno@clisp.org>
56471
56472         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
56473         * modules/fprintf-posix (Depends-on): Add nocrash.
56474         * modules/snprintf-posix (Depends-on): Likewise.
56475         * modules/sprintf-posix (Depends-on): Likewise.
56476         * modules/vasnprintf-posix (Depends-on): Likewise.
56477         * modules/vasprintf-posix (Depends-on): Likewise.
56478         * modules/vfprintf-posix (Depends-on): Likewise.
56479         * modules/vsnprintf-posix (Depends-on): Likewise.
56480         * modules/vsprintf-posix (Depends-on): Likewise.
56481         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
56482         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
56483         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
56484         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
56485         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
56486         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
56487         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
56488
56489 2007-11-04  Bruno Haible  <bruno@clisp.org>
56490
56491         * modules/nocrash: New file.
56492         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
56493         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
56494
56495 2007-11-04  Bruno Haible  <bruno@clisp.org>
56496
56497         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
56498         precision handling.
56499         * tests/test-vasprintf-posix.c (test_function): Likewise.
56500         * tests/test-snprintf-posix.h (test_function): Likewise.
56501         * tests/test-sprintf-posix.h (test_function): Likewise.
56502
56503         Fix *printf behaviour for large precisions on mingw and BeOS.
56504         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
56505         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
56506         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
56507         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56508         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56509         gl_PRINTF_PRECISION and test its result. Invoke
56510         gl_PREREQ_VASNPRINTF_PRECISION.
56511         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56512         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56513         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56514         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56515         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56516         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56517         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56518         * doc/functions/fprintf.texi: Update.
56519         * doc/functions/printf.texi: Update.
56520         * doc/functions/snprintf.texi: Update.
56521         * doc/functions/sprintf.texi: Update.
56522         * doc/functions/vfprintf.texi: Update.
56523         * doc/functions/vprintf.texi: Update.
56524         * doc/functions/vsnprintf.texi: Update.
56525         * doc/functions/vsprintf.texi: Update.
56526
56527 2007-11-04  Bruno Haible  <bruno@clisp.org>
56528
56529         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
56530
56531 2007-11-04  Bruno Haible  <bruno@clisp.org>
56532
56533         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
56534         Reported by Sylvain Beucler <beuc@gnu.org>.
56535
56536 2007-11-03  Bruno Haible  <bruno@clisp.org>
56537
56538         * tests/test-fprintf-posix2.sh: New file.
56539         * tests/test-fprintf-posix2.c: New file.
56540         * modules/fprintf-posix-tests (Files): Add them.
56541         (TESTS): Add test-fprintf-posix2.sh.
56542         (configure.ac): Check for getrlimit and setrlimit.
56543         (check_PROGRAMS): Add test-fprintf-posix2.
56544
56545         * tests/test-printf-posix2.sh: New file.
56546         * tests/test-printf-posix2.c: New file.
56547         * modules/printf-posix-tests (Files): Add them.
56548         (TESTS): Add test-printf-posix2.sh.
56549         (configure.ac): Check for getrlimit and setrlimit.
56550         (check_PROGRAMS): Add test-printf-posix2.
56551
56552         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
56553         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
56554         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
56555         (decode_double): New function, copied from decode_long_double.
56556         (scale10_round_decimal_decoded): New function, extracted from
56557         scale10_round_decimal_long_double.
56558         (scale10_round_decimal_long_double): Use it.
56559         (scale10_round_decimal_double): New function.
56560         (floorlog10): New function.
56561         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
56562         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
56563         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
56564         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
56565         gl_PRINTF_ENOMEM and test its result. Invoke
56566         gl_PREREQ_VASNPRINTF_ENOMEM.
56567         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
56568         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
56569         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
56570         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
56571         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
56572         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
56573         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
56574         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
56575         * modules/snprintf-posix (Depends-on): Likewise.
56576         * modules/sprintf-posix (Depends-on): Likewise.
56577         * modules/vasnprintf-posix (Depends-on): Likewise.
56578         * modules/vasprintf-posix (Depends-on): Likewise.
56579         * modules/vfprintf-posix (Depends-on): Likewise.
56580         * modules/vsnprintf-posix (Depends-on): Likewise.
56581         * modules/vsprintf-posix (Depends-on): Likewise.
56582         * doc/functions/fprintf.texi: Update.
56583         * doc/functions/printf.texi: Update.
56584         * doc/functions/snprintf.texi: Update.
56585         * doc/functions/sprintf.texi: Update.
56586         * doc/functions/vfprintf.texi: Update.
56587         * doc/functions/vprintf.texi: Update.
56588         * doc/functions/vsnprintf.texi: Update.
56589         * doc/functions/vsprintf.texi: Update.
56590
56591 2007-11-03  Bruno Haible  <bruno@clisp.org>
56592
56593         * modules/frexp-nolibm-tests: New file.
56594
56595         * modules/frexp-nolibm: New file.
56596         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
56597
56598 2007-11-03  Bruno Haible  <bruno@clisp.org>
56599
56600         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
56601         value is C99 compliant.
56602         Needed for OSF/1 5.1.
56603
56604 2007-11-03  Bruno Haible  <bruno@clisp.org>
56605
56606         Fix out-of-memory handling of vasnprintf.
56607         * lib/printf-parse.c: Include <errno.h>.
56608         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
56609         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
56610         is already set.
56611
56612 2007-11-02  Eric Blake  <ebb9@byu.net>
56613
56614         Fix tests on cygwin.
56615         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
56616
56617 2007-11-01  Bruno Haible  <bruno@clisp.org>
56618
56619         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
56620         warning.
56621         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
56622         needed for POSIX compatibility.
56623
56624 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
56625
56626         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
56627         for compatibility with GNU.
56628
56629 2007-11-01  Bruno Haible  <bruno@clisp.org>
56630
56631         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
56632         (putenv): Renamed from rpl_putenv. Change argument type from
56633         'const char *' to 'char *'.
56634         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
56635         of defining putenv in config.h, just set REPLACE_PUTENV.
56636         * modules/putenv (Depends-on): Add stdlib.
56637         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
56638         (Include): Use <stdlib.h>.
56639         * lib/stdlib.in.h (putenv): New declaration.
56640         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
56641         REPLACE_PUTENV.
56642         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
56643         REPLACE_PUTENV.
56644         Needed for MacOS X 10.5.0.
56645         Reported by Peter O'Gorman <peter@pogma.com>.
56646
56647 2007-11-01  Jim Meyering  <meyering@redhat.com>
56648
56649         Treat an empty date string exactly like "0".
56650         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
56651         if the remaining date string (to be parsed) is empty, use "0".
56652         Reported by Mischa Molhoek and discussed in this thread:
56653         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
56654
56655 2007-10-31  Bruno Haible  <bruno@clisp.org>
56656
56657         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
56658         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
56659         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
56660         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
56661         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
56662         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
56663
56664 2007-10-31  Bruno Haible  <bruno@clisp.org>
56665
56666         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
56667         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
56668         (AC_TYPE_LONG_LONG_INT): Use it.
56669         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
56670         it as well.
56671         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
56672         to m4/longlong.m4.
56673         * modules/stdint (Files): Remove m4/ulonglong.m4.
56674         * modules/strtoull (Files): Use m4/longlong.m4 instead of
56675         m4/ulonglong.m4.
56676         * modules/strtoumax (Files): Likewise.
56677
56678 2007-10-30  Bruno Haible  <bruno@clisp.org>
56679
56680         * modules/xvasprintf-posix: New file.
56681         Suggested by Eric Blake.
56682
56683 2007-10-30  Bruno Haible  <bruno@clisp.org>
56684
56685         * modules/xprintf-posix-tests: New file.
56686         * tests/test-xprintf-posix.sh: New file.
56687         * tests/test-xprintf-posix.c: New file.
56688         * tests/test-xfprintf-posix.c: New file.
56689
56690         * modules/xprintf-posix: New file.
56691
56692 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56693
56694         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
56695         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
56696         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
56697
56698 2007-10-29  Bruno Haible  <bruno@clisp.org>
56699
56700         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
56701         contain the special marker '_cv_'.
56702         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
56703         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
56704         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
56705         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
56706         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
56707         Reported by Ralf Wildenhues.
56708
56709 2007-10-29  Bruno Haible  <bruno@clisp.org>
56710
56711         * gnulib-tool (func_import): When --lgpl is not specified, set
56712         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
56713         GPLv3.
56714         Reported by Simon Josefsson.
56715
56716 2007-10-28  Bruno Haible  <bruno@clisp.org>
56717
56718         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
56719         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
56720         HAVE_DECL_ISFINITE.
56721         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
56722         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
56723         HAVE_DECL_ISFINITE.
56724
56725 2007-10-28  Bruno Haible  <bruno@clisp.org>
56726
56727         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
56728         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
56729
56730 2007-10-28  Bruno Haible  <bruno@clisp.org>
56731
56732         Fix link errors with Sun C 5.0 on Solaris 10.
56733         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
56734         function is declared but not present in the compiler's libm.
56735         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
56736         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
56737         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
56738         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
56739         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
56740         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
56741         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
56742         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
56743         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
56744         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
56745         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
56746         HAVE_DECL_FLOORL.
56747
56748 2007-10-28  Bruno Haible  <bruno@clisp.org>
56749
56750         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
56751         gl_FUNC_FLOORL. Cache the result.
56752         (gl_FUNC_FLOORL): Use it.
56753         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
56754         gl_FUNC_CEILL. Cache the result.
56755         (gl_FUNC_CEILL): Use it.
56756
56757         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
56758         gl_FUNC_FLOOR. Cache the result.
56759         (gl_FUNC_FLOOR): Use it.
56760         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
56761         gl_FUNC_CEIL. Cache the result.
56762         (gl_FUNC_CEIL): Use it.
56763
56764         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
56765         gl_FUNC_FLOORF. Cache the result.
56766         (gl_FUNC_FLOORF): Use it.
56767         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
56768         gl_FUNC_CEILF. Cache the result.
56769         (gl_FUNC_CEILF): Use it.
56770
56771 2007-10-28  Bruno Haible  <bruno@clisp.org>
56772
56773         * gnulib-tool: Allow specifying the LGPL version number through
56774         --lgpl=2 or --lgpl=3.
56775         (func_usage): Document --lgpl with argument.
56776         Handle --lgpl=... arguments.
56777         (func_import): Recognize also gl_LGPL calls with an argument. When
56778         --lgpl=2 is used and the module's license is just LGPL, report an
56779         error. Set sed_transform_lib_file according to the lgpl variable. In
56780         the generated files, use --lgpl or gl_LGPL invocations with argument,
56781         if necessary.
56782         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
56783         an LGPv2+ license.
56784         * doc/gnulib-tool.texi (Modified imports): Update explanation of
56785         gl_LGPL macro.
56786
56787 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56788             Bruno Haible  <bruno@clisp.org>
56789
56790         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
56791         (u16_uctomb_aux): Likewise.
56792         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
56793         !HAVE_INLINE.
56794         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
56795
56796 2007-10-28  Bruno Haible  <bruno@clisp.org>
56797
56798         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
56799         Invoke AM_GETTEXT_OPTION if it exists.
56800         * modules/vasprintf: Likewise.
56801         * modules/verror: Likewise.
56802         * modules/xprintf: Likewise.
56803         * modules/xvasprintf: Likewise.
56804
56805 2007-10-27  Ben Pfaff  <blp@gnu.org>
56806
56807         * lib/math.in.h: Define isfinite macro and prototypes for
56808         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
56809         implementations.
56810         * m4/math_h.m4: New substitutions for isfinite module.
56811         * lib/isfinite.c: New file.
56812         * m4/isfinite.m4: New file.
56813         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
56814         * modules/isfinite: New file.
56815         * modules/isfinite-tests: New file.
56816         * tests/tests-isfinite.c: New file.
56817         * doc/functions/isfinite.texi: Mention isfinite module.
56818         * MODULES.html.sh: Mention new module.
56819
56820 2007-10-27  Ben Pfaff  <blp@gnu.org>
56821
56822         Ralf Wildenhues reported that Tru64 4.0D declares the round
56823         functions but does not have definitions.
56824         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
56825         cannot be found in any library, set the output variable to
56826         "missing" instead of "".
56827         * m4/round.m4: Also use our substitute if we cannot find round in
56828         any library, even if it is declared.
56829         * m4/roundf.m4: Likewise for roundf.
56830         * m4/roundl.m4: Likewise for roundl.
56831         * lib/math.in.h: Undefine roundf, round, roundl before defining
56832         their replacements, to allow for hypothetical systems where these
56833         may be defined as macros but not available in libraries.
56834
56835 2007-10-27  Bruno Haible  <bruno@clisp.org>
56836
56837         * doc/gnulib.texi: Invoke @firstparagraphindent.
56838         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
56839         changes in gnulib.
56840         (Source changes): New section.
56841
56842 2007-10-26  Bruno Haible  <bruno@clisp.org>
56843
56844         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
56845         borrowed from autoconf.
56846
56847 2007-10-26  Bruno Haible  <bruno@clisp.org>
56848
56849         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
56850         strerror returned the empty string. Needed on HP-UX 11.00.
56851
56852 2007-10-24  Micah Cowan  <micah@cowan.name>
56853
56854         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
56855         * build-aux/bootstrap: Remove support for now-unnecessary option,
56856         --cvs-user, and envvars CVS_USER, CVS_RSH.
56857
56858 2007-10-24  Jim Meyering  <meyering@redhat.com>
56859
56860         Avoid diagnostics from sha1sum when there is no cached checksum.
56861         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
56862         if the po.s1 file hasn't been created yet.
56863
56864         * build-aux/bootstrap: Sync from coreutils:
56865         2007-10-24  Jim Meyering  <meyering@redhat.com>
56866         Get gnulib from the git repository, not from an obsolete cvs one.
56867         * build-aux/bootstrap: Suggestion from Micah Cowan.
56868         2007-10-04  Jim Meyering  <jim@meyering.net>
56869         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
56870         (update_po_files): Work also when there are no .po files in po/.
56871
56872 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
56873
56874         * README: Append ".git" to git and cg examples.
56875         Problem reported by Benoit Sigoure.
56876
56877 2007-10-23  Micah Cowan  <micah@cowan.name>
56878
56879         * users.txt: Add wget.
56880
56881 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56882
56883         Fix linking of some unistdio tests on FreeBSD.
56884         * modules/unistdio/u16-vsnprintf-tests
56885         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
56886         * modules/unistdio/u16-vsprintf-tests
56887         (test_u16_vsnprintf1_LDADD): Likewise.
56888         * modules/unistdio/u32-vsnprintf-tests
56889         (test_u32_vsnprintf1_LDADD): Likewise.
56890         * modules/unistdio/u32-vsprintf-tests
56891         (test_u32_vsprintf1_LDADD): Likewise.
56892         * modules/unistdio/u8-vsnprintf-tests
56893         (test_u8_vsnprintf1_LDADD): Likewise.
56894         * modules/unistdio/u8-vsprintf-tests
56895         (test_u8_vsprintf1_LDADD): Likewise.
56896         * modules/unistdio/ulc-vsnprintf-tests
56897         (test_ulc_vsnprintf1_LDADD): Likewise.
56898         * modules/unistdio/ulc-vsprintf-tests
56899         (test_ulc_vsprintf1_LDADD): Likewise.
56900
56901         Fix linking of some uniconv tests on FreeBSD.
56902         * modules/uniconv/u16-conv-from-enc-tests
56903         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
56904         * modules/uniconv/u16-conv-to-enc-tests
56905         (test_u16_conv_to_enc_LDADD): Likewise.
56906         * modules/uniconv/u16-strconv-from-enc-tests
56907         (test_u16_strconv_from_enc_LDADD): Likewise.
56908         * modules/uniconv/u16-strconv-to-enc-tests
56909         (test_u16_strconv_to_enc_LDADD): Likewise.
56910         * modules/uniconv/u32-conv-from-enc-tests
56911         (test_u32_conv_from_enc_LDADD): Likewise.
56912         * modules/uniconv/u32-conv-to-enc-tests
56913         (test_u32_conv_to_enc_LDADD): Likewise.
56914         * modules/uniconv/u32-strconv-from-enc-tests
56915         (test_u32_strconv_from_enc_LDADD): Likewise.
56916         * modules/uniconv/u32-strconv-to-enc-tests
56917         (test_u32_strconv_to_enc_LDADD): Likewise.
56918         * modules/uniconv/u8-conv-from-enc-tests
56919         (test_u8_conv_from_enc_LDADD): Likewise.
56920         * modules/uniconv/u8-conv-to-enc-tests
56921         (test_u8_conv_to_enc_LDADD): Likewise.
56922         * modules/uniconv/u8-strconv-from-enc-tests
56923         (test_u8_strconv_from_enc_LDADD): Likewise.
56924         * modules/uniconv/u8-strconv-to-enc-tests
56925         (test_u8_strconv_to_enc_LDADD): Likewise.
56926
56927 2007-10-22  Bruno Haible  <bruno@clisp.org>
56928
56929         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
56930         size.
56931
56932 2007-10-22  Eric Blake  <ebb9@byu.net>
56933
56934         Tweak x*printf documentation.
56935         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
56936         variable name and comments.
56937         Suggested by Bruno Haible.
56938
56939 2007-10-22  Bruno Haible  <bruno@clisp.org>
56940
56941         * lib/acl.c (copy_acl): Fix file name in comment.
56942
56943 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56944
56945         Fix Tru64 problem with stdbool.h.
56946         * lib/stdbool.in.h (false, true):
56947         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
56948         Don't declare as an enum in this situation; it runs afoul of Tru64.
56949         Problem reported by Steven M. Schweda in
56950         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
56951
56952 2007-10-22  Eric Blake  <ebb9@byu.net>
56953
56954         Also wrap vf?printf.
56955         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
56956         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
56957         (xvprintf, xvfprintf): New functions.
56958
56959 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56960
56961         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
56962         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
56963
56964         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
56965         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
56966
56967 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
56968
56969         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
56970         by Bruno Haible.
56971
56972 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
56973
56974         * lib/getloadavg.c
56975         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
56976         Undef `sys' after including sys/table.h, for Tru64 4.0D.
56977
56978         * tests/test-i-ring.c: Work for C89.
56979
56980 2007-10-22  Bruno Haible  <bruno@clisp.org>
56981
56982         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
56983         -1u, in preprocessor expression, so that we don't test for the bug
56984         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
56985         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
56986
56987 2007-10-22  Eric Blake  <ebb9@byu.net>
56988
56989         * tests/test-yesno.sh: Silence stderr during test.
56990
56991 2007-10-22  Simon Josefsson  <simon@josefsson.org>
56992
56993         * modules/crypto/gc-camellia: New file.
56994
56995         * m4/gc-camellia.m4: New file.
56996
56997         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
56998
56999         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
57000
57001 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57002
57003         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
57004         --help to stdout.  Reported by sms@antinode.org (Steven
57005         M. Schweda).
57006
57007 2007-10-22  Simon Josefsson  <simon@josefsson.org>
57008
57009         * users.txt: Fix link to libksba.
57010
57011 2007-10-21  Ben Pfaff  <blp@gnu.org>
57012
57013         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
57014         round.c roundf implementation that depends on floorf and ceilf to
57015         be tested unconditionally.
57016
57017 2007-10-21  Ben Pfaff  <blp@gnu.org>
57018
57019         * m4/check-libm-func.m4: Removed.
57020         * m4/check-math-lib.m4: New file.
57021         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
57022         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
57023         definition and lack of AC_LIBOBJ([roundf]).
57024         * m4/roundl.m4: Ditto, and similarly for roundl.
57025         * modules/round: Reference new m4 file.
57026         * modules/roundf: Ditto.
57027         * modules/roundl: Ditto.
57028         * tests/test-round2.c (main): Use ROUND instead of round.
57029         Bug report from Bruno Haible.
57030
57031 2007-10-21  Bruno Haible  <bruno@clisp.org>
57032
57033         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
57034         context.
57035
57036 2007-10-21  Bruno Haible  <bruno@clisp.org>
57037
57038         * tests/test-wcwidth.c (main): Allow negative result for some control
57039         characters.
57040
57041         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
57042         Needed on OSF/1 5.1.
57043
57044 2007-10-21  Bruno Haible  <bruno@clisp.org>
57045
57046         * tests/test-floorf1.c: Include isnanf.h.
57047         (main): Use isnanf() instead of isnan().
57048         * tests/test-ceilf1.c: Include isnanf.h.
57049         (main): Use isnanf() instead of isnan().
57050         * tests/test-truncf1.c: Include isnanf.h.
57051         (main): Use isnanf() instead of isnan().
57052         * tests/test-roundf1.c: Include isnanf.h.
57053         (main): Use isnanf() instead of isnan().
57054
57055 2007-10-21  Eric Blake  <ebb9@byu.net>
57056
57057         * users.txt: Update URL for m4.
57058
57059 2007-10-21  Bruno Haible  <bruno@clisp.org>
57060
57061         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
57062
57063 2007-10-21  Bruno Haible  <bruno@clisp.org>
57064
57065         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
57066         Git's management files if the CVS files are not present.
57067
57068 2007-10-20  Bruno Haible  <bruno@clisp.org>
57069
57070         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
57071         gcc-3.4.x.
57072
57073 2007-10-20  Ben Pfaff  <blp@gnu.org>
57074
57075         * lib/math.in.h: Declare round, roundf, roundl if we are providing
57076         implementations.
57077         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
57078         * lib/round.c: New file.
57079         * lib/roundf.c: New file.
57080         * lib/roundl.c: New file.
57081         * m4/round.m4: New file.
57082         * m4/roundf.m4: New file.
57083         * m4/roundl.m4: New file.
57084         * m4/check-libm-func-m4: New file.
57085         * modules/math: Replace round, roundf, roundl related @VARS@ in
57086         math.in.h.
57087         * modules/round: New file.
57088         * modules/round-tests: New file.
57089         * modules/roundf: New file.
57090         * modules/roundf-tests: New file.
57091         * modules/roundl: New file.
57092         * modules/roundl-tests: New file.
57093         * tests/test-round1.c: New file.
57094         * tests/test-round2.c: New file.
57095         * tests/test-roundf1.c: New file.
57096         * tests/test-roundf2.c: New file.
57097         * tests/test-roundl.c: New file.
57098         * doc/functions/round.texi: Mention round module.
57099         * doc/functions/roundf.texi: Mention roundf module.
57100         * doc/functions/roundl.texi: Mention roundl module.
57101         * MODULES.html.sh: Mention new modules.
57102         Thanks to Bruno Haible for suggestions.
57103
57104 2007-10-20  Jim Meyering  <meyering@redhat.com>
57105
57106         * lib/xprintf.c: Include <config.h> unconditionally.
57107
57108         Change xprintf's license to GPL.
57109         * modules/xprintf (License): s/LGPL/GPL/, since this module
57110         depends on modules (exit and exitfail) which are GPL.
57111         Suggestion from Bruno Haible.
57112
57113         xprintf fixes.
57114         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
57115         Use a clearer diagnostic.
57116         Patch from Bruno Haible.
57117
57118 2007-10-20  Bruno Haible  <bruno@clisp.org>
57119
57120         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
57121         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
57122         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57123
57124 2007-10-20  Bruno Haible  <bruno@clisp.org>
57125
57126         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
57127         precision in the comparison result > x - 1 or similar.
57128         * tests/test-ceilf2.c (correct_result_p): Likewise.
57129         * tests/test-truncf2.c (correct_result_p): Likewise.
57130         * tests/test-trunc2.c (correct_result_p): Likewise.
57131         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57132
57133 2007-10-20  Bruno Haible  <bruno@clisp.org>
57134
57135         * modules/ceil: New file.
57136         * m4/ceil.m4: New file.
57137         * doc/functions/ceil.texi: Mention the 'ceil' module.
57138
57139 2007-10-20  Bruno Haible  <bruno@clisp.org>
57140
57141         * modules/floor: New file.
57142         * m4/floor.m4: New file.
57143         * doc/functions/floor.texi: Mention the 'floor' module.
57144
57145 2007-10-20  Bruno Haible  <bruno@clisp.org>
57146
57147         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
57148         of %a.
57149         * modules/floorf-tests (Depends-on): Likewise.
57150         * modules/truncf-tests (Depends-on): Likewise.
57151         * modules/trunc-tests (Depends-on): Likewise.
57152         Reported by Ben Pfaff.
57153
57154 2007-10-19  Jim Meyering  <meyering@redhat.com>
57155
57156         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
57157         Don't bother testing specific errno values.  Just test ferror.
57158
57159         New module: xprintf
57160         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
57161
57162 2007-10-19  Bruno Haible  <bruno@clisp.org>
57163
57164         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
57165         syntax.
57166         * modules/javaexec (Makefile.am): Likewise.
57167         * modules/relocatable-prog (Makefile.am): Likewise.
57168         Suggested by Jim Meyering.
57169
57170 2007-10-18  Bruno Haible  <bruno@clisp.org>
57171
57172         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
57173         Reported by Jim Meyering.
57174
57175 2007-10-18  Eric Blake  <ebb9@byu.net>
57176
57177         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
57178
57179 2007-10-18  Bruno Haible  <bruno@clisp.org>
57180
57181         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
57182         the format string into writable memory. Needed in Fortify conditions.
57183
57184 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
57185             Bruno Haible  <bruno@clisp.org>
57186
57187         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
57188         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
57189         * modules/trim (Depends-on): Add mbchar.
57190         (configure.ac): Add gl_FUNC_MBRTOWC.
57191         (Makefile.am): Augment lib_SOURCES.
57192
57193 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
57194
57195         Modify glob.c to use fstatat and dirfd, to simplify it.
57196         Suggested by Eric Blake.
57197         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
57198         Don't include <stdbool.h>; not used.
57199         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
57200         (link_exists_p): Simplify implementation, since we can now assume
57201         dirfd and fstatat.
57202         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
57203
57204 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57205
57206         * gnulib-tool (func_get_dependencies): Fix sed script to
57207         match only tests.
57208
57209 2007-10-17  Bruno Haible  <bruno@clisp.org>
57210
57211         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
57212         allow locale names without encoding suffix.
57213         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
57214         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
57215
57216 2007-10-16  Bruno Haible  <bruno@clisp.org>
57217
57218         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
57219         * lib/getgroups.c (getgroups): Likewise.
57220         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
57221
57222 2007-10-16  Bruno Haible  <bruno@clisp.org>
57223
57224         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
57225         * modules/malloc-posix (License): Likewise.
57226         * modules/realloc-posix (License): Likewise.
57227         * modules/calloc-posix (License): Likewise.
57228         * modules/intprops (License): Change from GPL to LGPL, with
57229         Paul Eggert's approval.
57230
57231 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57232
57233         Merge glibc changes into lib/glob.c.
57234
57235         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
57236         2007-10-15 04:59:03 UTC.  Here are the changes:
57237
57238         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
57239
57240         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
57241
57242         * lib/glob.c: Add some branch prediction throughout.
57243
57244         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
57245
57246         [BZ #5103]
57247         * lib/glob.c (glob): Recognize patterns starting \/.
57248
57249         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
57250
57251         [BZ #3996]
57252         * lib/glob.c (attribute_hidden): Define if not defined.
57253         (glob): Unescape dirname, filename or username when needed and not
57254         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
57255         is NULL.  Handle unescaped [ in pattern without closing ].
57256         Don't pass GLOB_CHECK down to recursive glob for directories.
57257         (__glob_pattern_type): New function.
57258         (__glob_pattern_p): Implement using __glob_pattern_type.
57259         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
57260         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
57261         Remove unreachable code.
57262
57263         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
57264
57265         * lib/glob.c (glob_in_dir): Add some comments and asserts to
57266         explain why there are no leaks.
57267
57268         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
57269
57270         [BZ #3253]
57271         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
57272         time, rather allocate increasingly bigger arrays of pointers, if
57273         possible with alloca, if too large with malloc.
57274
57275 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
57276
57277         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
57278         Problem reported by H.Merijn Brand in
57279         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
57280         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
57281         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
57282
57283 2007-10-15  Bruno Haible  <bruno@clisp.org>
57284
57285         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
57286         with explicit rpl_ prefix.
57287         * lib/fopen.c (fopen): Likewise.
57288         * lib/freopen.c (freopen): Likewise.
57289         * lib/iconv.c (iconv): Likewise.
57290         * lib/iconv_close.c (iconv_close): Likewise.
57291
57292 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
57293
57294         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
57295
57296 2007-10-15  Bruno Haible  <bruno@clisp.org>
57297
57298         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
57299         <stddef.h> instead of <stdlib.h> since we only need NULL.
57300         Reported by Ben Pfaff <blp@cs.stanford.edu>.
57301
57302 2007-10-15  Bruno Haible  <bruno@clisp.org>
57303
57304         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
57305         Replace paragraph talking about LIBOBJS.
57306         Reported by Colin Watson <cjwatson@debian.org>.
57307
57308 2007-10-15  Bruno Haible  <bruno@clisp.org>
57309
57310         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
57311         <stdlib.h> before using NULL.
57312
57313 2007-10-15  Simon Josefsson  <simon@josefsson.org>
57314
57315         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
57316         Reported by Albert Chin <china@thewrittenword.com>.
57317
57318 2007-10-14  Bruno Haible  <bruno@clisp.org>
57319
57320         * modules/iconv_open-utf-tests: New file.
57321         * tests/test-iconv-utf.c: New file.
57322
57323         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
57324         * modules/iconv_open-utf: New file.
57325         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
57326         (iconv, iconv_close): New declarations.
57327         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
57328         be defined.
57329         (iconv_open): Add special handling of conversion between UTF-8 and
57330         UTF-{16,32}{BE,LE}.
57331         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
57332         * lib/iconv_close.c: New file.
57333         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
57334         gl_FUNC_ICONV_OPEN.
57335         (gl_FUNC_ICONV_OPEN): Use it.
57336         (gl_FUNC_ICONV_OPEN_UTF): New macro.
57337         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
57338         and REPLACE_ICONV_UTF.
57339         * modules/iconv_open (Depends-on): Add c-strcase.
57340         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
57341         ICONV_CONST.
57342         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
57343
57344 2007-10-13  Albert Chin  <china@thewrittenword.com>
57345             Bruno Haible  <bruno@clisp.org>
57346
57347         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
57348         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
57349
57350 2007-10-13  Bruno Haible  <bruno@clisp.org>
57351
57352         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
57353         defined, use the ISO C99 inline semantics.
57354         * lib/argp.h (ARGP_EI): Likewise.
57355
57356 2007-10-13  Bruno Haible  <bruno@clisp.org>
57357
57358         Handle 'inline' change in gcc 4.3.0.
57359         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
57360         argp_fmtstream_write, argp_fmtstream_set_lmargin,
57361         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
57362         argp_fmtstream_point): Disable 'extern' declaration if the function
57363         definition is going to be provided inline.
57364         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
57365         semantics, not the ISO C99 inline semantics.
57366         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
57367         'extern' declaration if the function definition is going to be provided
57368         inline.
57369         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
57370         the GNU C inline semantics, not the ISO C99 inline semantics. With
57371         GCC 4.2, avoid a warning.
57372
57373 2007-10-13  Bruno Haible  <bruno@clisp.org>
57374
57375         * lib/freading.h (freading): Enable the use of __freading for
57376         glibc >= 2.7.
57377         * lib/freading.c (freading): Likewise.
57378
57379 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
57380
57381         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
57382         "warning: C99 inline functions are not supported; using GNU89".
57383
57384 2007-10-12  Bruno Haible  <bruno@clisp.org>
57385
57386         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
57387         of 2.
57388         * tests/test-ceilf2.c: New file.
57389         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
57390
57391         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
57392         * modules/ceilf-tests: Update.
57393
57394 2007-10-12  Bruno Haible  <bruno@clisp.org>
57395
57396         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
57397         of 2.
57398         * tests/test-floorf2.c: New file.
57399         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
57400
57401         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
57402         * modules/floorf-tests: Update.
57403
57404 2007-10-12  Bruno Haible  <bruno@clisp.org>
57405
57406         * tests/test-trunc2.c: New file.
57407         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
57408
57409         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
57410         * modules/trunc-tests: Update.
57411
57412 2007-10-12  Bruno Haible  <bruno@clisp.org>
57413
57414         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
57415         of 2.
57416         * tests/test-truncf2.c: New file.
57417         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
57418
57419         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
57420         * modules/truncf-tests: Update.
57421
57422 2007-10-11  Eric Blake  <ebb9@byu.net>
57423
57424         Don't claim strerror is broken on Interix.
57425         * doc/functions/strerror.texi (strerror): Known broken systems are
57426         now Solaris 8, and not Interix.
57427         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
57428         Interix on cross-compile.
57429         Reported by Martin Koeppe in
57430         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
57431
57432 2007-10-11  Bruno Haible  <bruno@clisp.org>
57433
57434         * modules/i-ring-tests: New file.
57435         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
57436         instead of assert.
57437
57438 2007-10-11  Bruno Haible  <bruno@clisp.org>
57439
57440         * modules/filenamecat-tests: New file.
57441         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
57442         * lib/filenamecat.c: Remove test code.
57443
57444 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
57445
57446         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
57447
57448         * lib/strerror.c: Include <string.h> always, to test interface,
57449         and to remove the need for the dummy.
57450         Include intprops.h to compute width instead of doing it ourselves
57451         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
57452         (strerror): Define it to return NULL if there's no system strerror.
57453         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
57454         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
57455         ancient pre-strerror Unix systems well any more.  Saying "unknown
57456         system error" is enough.
57457         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
57458         simpler strerror.c implementation.
57459         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
57460         Simplify the tests to reflect the simpler strerror implementation.
57461         * modules/strerror (Depends-on): Add intprops.
57462
57463 2007-10-09  Eric Blake  <ebb9@byu.net>
57464
57465         Silence test-fpending.
57466         * modules/fpending-tests (Files): Add wrapper script.
57467         * tests/test-fpending.sh: New file.
57468
57469 2007-10-09  Bruno Haible  <bruno@clisp.org>
57470
57471         * MODULES.html.sh (func_module): Don't create a hyperlink for
57472         function names like 'printf_frexp'.
57473         (Misc): Add crc, memxor.
57474         (Characteristics of floating types): New section.
57475         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
57476         isnanf-nolibm, signbit, trunc, truncf, truncl.
57477         (Enhancements for ISO C 99 functions): New subsection Input/output.
57478         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
57479         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
57480         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
57481         (Compatibility checks for POSIX:2001 functions): Add clock-time.
57482         (Enhancements for POSIX:2001 functions): Add chdir-long.
57483         (File system functions): Add areadlink, chdir-safer, read-file.
57484         Remove cycle-check.
57485         (File system as inode set): New section.
57486         (Date and time): Add gethrxtime.
57487         (Multithreading): Add openmp.
57488         (Internationalization functions): Add localename.
57489         (Unicode string functions): Add unistr/u*-mbsnlen.
57490         (Support for maintaining and releasing projects): Add git-version-gen.
57491         (Lone files): Remove directories.
57492
57493 2007-10-08  Ben Pfaff  <blp@gnu.org>
57494
57495         * lib/xmalloca.h: Fix typo in comment.
57496
57497 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
57498
57499         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
57500         when avoiding problems with integer overflow.  Use a portable test
57501         instead.
57502
57503 2007-10-08  Simon Josefsson  <simon@josefsson.org>
57504
57505         * modules/dummy (License): Change to LGPLv2+.
57506         * modules/float (License): Likewise
57507         * modules/realloc (License): Likewise
57508         * modules/stdlib (License): Likewise
57509
57510 2007-10-07  Bruno Haible  <bruno@clisp.org>
57511
57512         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
57513         * floor.c (TWO_MANT_DIG): Likewise.
57514         * ceil.c (TWO_MANT_DIG): Likewise.
57515         Reported by Ben Pfaff.
57516
57517 2007-10-07  Bruno Haible  <bruno@clisp.org>
57518
57519         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
57520         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
57521         * lib/frexp.c (FUNC): Likewise.
57522         * lib/printf-frexp.h (printf_frexp): Likewise.
57523         * lib/printf-frexpl.h (printf_frexpl): Likewise.
57524         * lib/printf-frexp.c (FUNC): Likewise.
57525         Suggested by Jim Meyering.
57526
57527 2007-10-07  Jim Meyering  <meyering@redhat.com>
57528
57529         Make xnanosleep's integer overflow test more robust.
57530         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
57531         so that gcc-4.3.0 doesn't optimize away this test for overflow.
57532
57533 2007-10-07  Bruno Haible  <bruno@clisp.org>
57534
57535         * NEWS: Mention the license change.
57536
57537         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
57538         abbreviations in the modules files.
57539
57540         Change copyright notice from GPLv2+ to GPLv3+.
57541         * README: Change copyright notice.
57542         * MODULES.html.sh: Likewise.
57543         * build-aux/bootstrap.conf: Likewise.
57544         * build-aux/config.libpath: Likewise.
57545         * build-aux/csharpcomp.sh.in: Likewise.
57546         * build-aux/csharpexec.sh.in: Likewise.
57547         * build-aux/install-reloc: Likewise.
57548         * build-aux/javacomp.sh.in: Likewise.
57549         * build-aux/javaexec.sh.in: Likewise.
57550         * build-aux/ldd.sh.in: Likewise.
57551         * build-aux/reloc-ldflags: Likewise.
57552         * build-aux/relocatable.sh.in: Likewise.
57553         * build-aux/x-to-1.in: Likewise.
57554         * check-module: Likewise.
57555         * config/srclistvars.sh: Likewise.
57556         * gnulib-tool: Likewise.
57557         * lib/acl-internal.h: Likewise.
57558         * lib/acl.c: Likewise.
57559         * lib/acl.h: Likewise.
57560         * lib/acl_entries.c: Likewise.
57561         * lib/areadlink-with-size.c: Likewise.
57562         * lib/areadlink.c: Likewise.
57563         * lib/areadlink.h: Likewise.
57564         * lib/argmatch.c: Likewise.
57565         * lib/argmatch.h: Likewise.
57566         * lib/argp-ba.c: Likewise.
57567         * lib/argp-eexst.c: Likewise.
57568         * lib/argp-fmtstream.c: Likewise.
57569         * lib/argp-fmtstream.h: Likewise.
57570         * lib/argp-fs-xinl.c: Likewise.
57571         * lib/argp-help.c: Likewise.
57572         * lib/argp-namefrob.h: Likewise.
57573         * lib/argp-parse.c: Likewise.
57574         * lib/argp-pin.c: Likewise.
57575         * lib/argp-pv.c: Likewise.
57576         * lib/argp-pvh.c: Likewise.
57577         * lib/argp-xinl.c: Likewise.
57578         * lib/argp.h: Likewise.
57579         * lib/at-func.c: Likewise.
57580         * lib/atanl.c: Likewise.
57581         * lib/backupfile.c: Likewise.
57582         * lib/backupfile.h: Likewise.
57583         * lib/basename.c: Likewise.
57584         * lib/binary-io.h: Likewise.
57585         * lib/byteswap.in.h: Likewise.
57586         * lib/c-stack.c: Likewise.
57587         * lib/c-stack.h: Likewise.
57588         * lib/c-strcasestr.c: Likewise.
57589         * lib/c-strcasestr.h: Likewise.
57590         * lib/c-strstr.c: Likewise.
57591         * lib/c-strstr.h: Likewise.
57592         * lib/c-strtod.c: Likewise.
57593         * lib/calloc.c: Likewise.
57594         * lib/canon-host.c: Likewise.
57595         * lib/canon-host.h: Likewise.
57596         * lib/canonicalize-lgpl.c: Likewise.
57597         * lib/canonicalize.c: Likewise.
57598         * lib/canonicalize.h: Likewise.
57599         * lib/ceil.c: Likewise.
57600         * lib/ceilf.c: Likewise.
57601         * lib/ceill.c: Likewise.
57602         * lib/chdir-long.c: Likewise.
57603         * lib/chdir-long.h: Likewise.
57604         * lib/chdir-safer.c: Likewise.
57605         * lib/chdir-safer.h: Likewise.
57606         * lib/chown.c: Likewise.
57607         * lib/classpath.c: Likewise.
57608         * lib/classpath.h: Likewise.
57609         * lib/clean-temp.c: Likewise.
57610         * lib/clean-temp.h: Likewise.
57611         * lib/cloexec.c: Likewise.
57612         * lib/close-stream.c: Likewise.
57613         * lib/closein.c: Likewise.
57614         * lib/closein.h: Likewise.
57615         * lib/closeout.c: Likewise.
57616         * lib/closeout.h: Likewise.
57617         * lib/concat-filename.c: Likewise.
57618         * lib/copy-file.c: Likewise.
57619         * lib/copy-file.h: Likewise.
57620         * lib/count-one-bits.h: Likewise.
57621         * lib/crc.c: Likewise.
57622         * lib/crc.h: Likewise.
57623         * lib/creat-safer.c: Likewise.
57624         * lib/csharpcomp.c: Likewise.
57625         * lib/csharpcomp.h: Likewise.
57626         * lib/csharpexec.c: Likewise.
57627         * lib/csharpexec.h: Likewise.
57628         * lib/cycle-check.c: Likewise.
57629         * lib/cycle-check.h: Likewise.
57630         * lib/diacrit.c: Likewise.
57631         * lib/diacrit.h: Likewise.
57632         * lib/diffseq.h: Likewise.
57633         * lib/dirchownmod.c: Likewise.
57634         * lib/dirent.in.h: Likewise.
57635         * lib/dirfd.c: Likewise.
57636         * lib/dirfd.h: Likewise.
57637         * lib/dirname.c: Likewise.
57638         * lib/dirname.h: Likewise.
57639         * lib/dummy.c: Likewise.
57640         * lib/dup-safer.c: Likewise.
57641         * lib/dup2.c: Likewise.
57642         * lib/eealloc.h: Likewise.
57643         * lib/error.c: Likewise.
57644         * lib/error.h: Likewise.
57645         * lib/euidaccess.c: Likewise.
57646         * lib/exclude.c: Likewise.
57647         * lib/exclude.h: Likewise.
57648         * lib/execute.c: Likewise.
57649         * lib/execute.h: Likewise.
57650         * lib/exitfail.c: Likewise.
57651         * lib/exitfail.h: Likewise.
57652         * lib/expl.c: Likewise.
57653         * lib/fatal-signal.c: Likewise.
57654         * lib/fatal-signal.h: Likewise.
57655         * lib/fbufmode.c: Likewise.
57656         * lib/fbufmode.h: Likewise.
57657         * lib/fchdir.c: Likewise.
57658         * lib/fchmodat.c: Likewise.
57659         * lib/fchownat.c: Likewise.
57660         * lib/fcntl--.h: Likewise.
57661         * lib/fcntl-safer.h: Likewise.
57662         * lib/fcntl.in.h: Likewise.
57663         * lib/fd-safer.c: Likewise.
57664         * lib/fflush.c: Likewise.
57665         * lib/file-has-acl.c: Likewise.
57666         * lib/file-set.c: Likewise.
57667         * lib/file-type.c: Likewise.
57668         * lib/file-type.h: Likewise.
57669         * lib/fileblocks.c: Likewise.
57670         * lib/filemode.c: Likewise.
57671         * lib/filemode.h: Likewise.
57672         * lib/filename.h: Likewise.
57673         * lib/filenamecat.c: Likewise.
57674         * lib/filenamecat.h: Likewise.
57675         * lib/findprog.c: Likewise.
57676         * lib/findprog.h: Likewise.
57677         * lib/float.in.h: Likewise.
57678         * lib/floor.c: Likewise.
57679         * lib/floorf.c: Likewise.
57680         * lib/floorl.c: Likewise.
57681         * lib/fopen-safer.c: Likewise.
57682         * lib/fopen.c: Likewise.
57683         * lib/fpending.c: Likewise.
57684         * lib/fpending.h: Likewise.
57685         * lib/fprintf.c: Likewise.
57686         * lib/fprintftime.h: Likewise.
57687         * lib/fpucw.h: Likewise.
57688         * lib/fpurge.c: Likewise.
57689         * lib/fpurge.h: Likewise.
57690         * lib/freadable.c: Likewise.
57691         * lib/freadable.h: Likewise.
57692         * lib/freadahead.c: Likewise.
57693         * lib/freadahead.h: Likewise.
57694         * lib/freading.c: Likewise.
57695         * lib/freading.h: Likewise.
57696         * lib/free.c: Likewise.
57697         * lib/freopen.c: Likewise.
57698         * lib/frexp.c: Likewise.
57699         * lib/frexpl.c: Likewise.
57700         * lib/fseek.c: Likewise.
57701         * lib/fseterr.c: Likewise.
57702         * lib/fseterr.h: Likewise.
57703         * lib/fstatat.c: Likewise.
57704         * lib/fstrcmp.c: Likewise.
57705         * lib/fstrcmp.h: Likewise.
57706         * lib/fsusage.c: Likewise.
57707         * lib/fsusage.h: Likewise.
57708         * lib/ftell.c: Likewise.
57709         * lib/ftello.c: Likewise.
57710         * lib/fts-cycle.c: Likewise.
57711         * lib/fts.c: Likewise.
57712         * lib/fts_.h: Likewise.
57713         * lib/full-read.c: Likewise.
57714         * lib/full-read.h: Likewise.
57715         * lib/full-write.c: Likewise.
57716         * lib/full-write.h: Likewise.
57717         * lib/fwritable.c: Likewise.
57718         * lib/fwritable.h: Likewise.
57719         * lib/fwriteerror.c: Likewise.
57720         * lib/fwriteerror.h: Likewise.
57721         * lib/fwriting.c: Likewise.
57722         * lib/fwriting.h: Likewise.
57723         * lib/gcd.c: Likewise.
57724         * lib/gcd.h: Likewise.
57725         * lib/getcwd.c: Likewise.
57726         * lib/getdate.h: Likewise.
57727         * lib/getdate.y: Likewise.
57728         * lib/getdomainname.c: Likewise.
57729         * lib/getdomainname.h: Likewise.
57730         * lib/getgroups.c: Likewise.
57731         * lib/gethostname.c: Likewise.
57732         * lib/gethrxtime.c: Likewise.
57733         * lib/gethrxtime.h: Likewise.
57734         * lib/getloadavg.c: Likewise.
57735         * lib/getndelim2.c: Likewise.
57736         * lib/getndelim2.h: Likewise.
57737         * lib/getnline.c: Likewise.
57738         * lib/getnline.h: Likewise.
57739         * lib/getopt.c: Likewise.
57740         * lib/getopt.in.h: Likewise.
57741         * lib/getopt1.c: Likewise.
57742         * lib/getopt_int.h: Likewise.
57743         * lib/getpagesize.h: Likewise.
57744         * lib/getsubopt.c: Likewise.
57745         * lib/gettime.c: Likewise.
57746         * lib/getugroups.c: Likewise.
57747         * lib/getugroups.h: Likewise.
57748         * lib/getusershell.c: Likewise.
57749         * lib/gl_anyavltree_list1.h: Likewise.
57750         * lib/gl_anyavltree_list2.h: Likewise.
57751         * lib/gl_anyhash_list1.h: Likewise.
57752         * lib/gl_anyhash_list2.h: Likewise.
57753         * lib/gl_anylinked_list1.h: Likewise.
57754         * lib/gl_anylinked_list2.h: Likewise.
57755         * lib/gl_anyrbtree_list1.h: Likewise.
57756         * lib/gl_anyrbtree_list2.h: Likewise.
57757         * lib/gl_anytree_list1.h: Likewise.
57758         * lib/gl_anytree_list2.h: Likewise.
57759         * lib/gl_anytree_oset.h: Likewise.
57760         * lib/gl_anytreehash_list1.h: Likewise.
57761         * lib/gl_anytreehash_list2.h: Likewise.
57762         * lib/gl_array_list.c: Likewise.
57763         * lib/gl_array_list.h: Likewise.
57764         * lib/gl_array_oset.c: Likewise.
57765         * lib/gl_array_oset.h: Likewise.
57766         * lib/gl_avltree_list.c: Likewise.
57767         * lib/gl_avltree_list.h: Likewise.
57768         * lib/gl_avltree_oset.c: Likewise.
57769         * lib/gl_avltree_oset.h: Likewise.
57770         * lib/gl_avltreehash_list.c: Likewise.
57771         * lib/gl_avltreehash_list.h: Likewise.
57772         * lib/gl_carray_list.c: Likewise.
57773         * lib/gl_carray_list.h: Likewise.
57774         * lib/gl_linked_list.c: Likewise.
57775         * lib/gl_linked_list.h: Likewise.
57776         * lib/gl_linkedhash_list.c: Likewise.
57777         * lib/gl_linkedhash_list.h: Likewise.
57778         * lib/gl_list.c: Likewise.
57779         * lib/gl_list.h: Likewise.
57780         * lib/gl_oset.c: Likewise.
57781         * lib/gl_oset.h: Likewise.
57782         * lib/gl_rbtree_list.c: Likewise.
57783         * lib/gl_rbtree_list.h: Likewise.
57784         * lib/gl_rbtree_oset.c: Likewise.
57785         * lib/gl_rbtree_oset.h: Likewise.
57786         * lib/gl_rbtreehash_list.c: Likewise.
57787         * lib/gl_rbtreehash_list.h: Likewise.
57788         * lib/gl_sublist.c: Likewise.
57789         * lib/gl_sublist.h: Likewise.
57790         * lib/group-member.c: Likewise.
57791         * lib/group-member.h: Likewise.
57792         * lib/hard-locale.c: Likewise.
57793         * lib/hard-locale.h: Likewise.
57794         * lib/hash-pjw.c: Likewise.
57795         * lib/hash-pjw.h: Likewise.
57796         * lib/hash-triple.c: Likewise.
57797         * lib/hash.c: Likewise.
57798         * lib/hash.h: Likewise.
57799         * lib/human.c: Likewise.
57800         * lib/human.h: Likewise.
57801         * lib/i-ring.c: Likewise.
57802         * lib/i-ring.h: Likewise.
57803         * lib/idcache.c: Likewise.
57804         * lib/imaxabs.c: Likewise.
57805         * lib/imaxdiv.c: Likewise.
57806         * lib/inet_pton.c: Likewise.
57807         * lib/inet_pton.h: Likewise.
57808         * lib/intprops.h: Likewise.
57809         * lib/inttostr.c: Likewise.
57810         * lib/inttostr.h: Likewise.
57811         * lib/inttypes.in.h: Likewise.
57812         * lib/isapipe.c: Likewise.
57813         * lib/isdir.c: Likewise.
57814         * lib/isnan.c: Likewise.
57815         * lib/isnan.h: Likewise.
57816         * lib/isnanf.c: Likewise.
57817         * lib/isnanf.h: Likewise.
57818         * lib/isnanl-nolibm.h: Likewise.
57819         * lib/isnanl.c: Likewise.
57820         * lib/isnanl.h: Likewise.
57821         * lib/javacomp.c: Likewise.
57822         * lib/javacomp.h: Likewise.
57823         * lib/javaexec.c: Likewise.
57824         * lib/javaexec.h: Likewise.
57825         * lib/javaversion.c: Likewise.
57826         * lib/javaversion.h: Likewise.
57827         * lib/javaversion.java: Likewise.
57828         * lib/lbrkprop.h: Likewise.
57829         * lib/lchmod.h: Likewise.
57830         * lib/lchown.c: Likewise.
57831         * lib/ldexpl.c: Likewise.
57832         * lib/linebreak.c: Likewise.
57833         * lib/linebreak.h: Likewise.
57834         * lib/linebuffer.c: Likewise.
57835         * lib/linebuffer.h: Likewise.
57836         * lib/locale.in.h: Likewise.
57837         * lib/logl.c: Likewise.
57838         * lib/long-options.c: Likewise.
57839         * lib/long-options.h: Likewise.
57840         * lib/lstat.c: Likewise.
57841         * lib/lstat.h: Likewise.
57842         * lib/math.in.h: Likewise.
57843         * lib/mbchar.c: Likewise.
57844         * lib/mbchar.h: Likewise.
57845         * lib/mbfile.h: Likewise.
57846         * lib/mbiter.h: Likewise.
57847         * lib/mbscasecmp.c: Likewise.
57848         * lib/mbscasestr.c: Likewise.
57849         * lib/mbschr.c: Likewise.
57850         * lib/mbscspn.c: Likewise.
57851         * lib/mbslen.c: Likewise.
57852         * lib/mbsncasecmp.c: Likewise.
57853         * lib/mbsnlen.c: Likewise.
57854         * lib/mbspbrk.c: Likewise.
57855         * lib/mbspcasecmp.c: Likewise.
57856         * lib/mbsrchr.c: Likewise.
57857         * lib/mbssep.c: Likewise.
57858         * lib/mbsspn.c: Likewise.
57859         * lib/mbsstr.c: Likewise.
57860         * lib/mbstok_r.c: Likewise.
57861         * lib/mbswidth.c: Likewise.
57862         * lib/mbswidth.h: Likewise.
57863         * lib/mbuiter.h: Likewise.
57864         * lib/memcasecmp.c: Likewise.
57865         * lib/memcasecmp.h: Likewise.
57866         * lib/memchr.c: Likewise.
57867         * lib/memcmp.c: Likewise.
57868         * lib/memcoll.c: Likewise.
57869         * lib/memcoll.h: Likewise.
57870         * lib/memcpy.c: Likewise.
57871         * lib/memrchr.c: Likewise.
57872         * lib/mkancesdirs.c: Likewise.
57873         * lib/mkdir-p.c: Likewise.
57874         * lib/mkdir-p.h: Likewise.
57875         * lib/mkdir.c: Likewise.
57876         * lib/mkdirat.c: Likewise.
57877         * lib/mkdtemp.c: Likewise.
57878         * lib/mkstemp-safer.c: Likewise.
57879         * lib/mkstemp.c: Likewise.
57880         * lib/modechange.c: Likewise.
57881         * lib/modechange.h: Likewise.
57882         * lib/mountlist.c: Likewise.
57883         * lib/mountlist.h: Likewise.
57884         * lib/mpsort.c: Likewise.
57885         * lib/nanosleep.c: Likewise.
57886         * lib/obstack.c: Likewise.
57887         * lib/obstack.h: Likewise.
57888         * lib/open-safer.c: Likewise.
57889         * lib/open.c: Likewise.
57890         * lib/openat-die.c: Likewise.
57891         * lib/openat-priv.h: Likewise.
57892         * lib/openat-proc.c: Likewise.
57893         * lib/openat.c: Likewise.
57894         * lib/openat.h: Likewise.
57895         * lib/pagealign_alloc.c: Likewise.
57896         * lib/pagealign_alloc.h: Likewise.
57897         * lib/physmem.c: Likewise.
57898         * lib/physmem.h: Likewise.
57899         * lib/pipe-safer.c: Likewise.
57900         * lib/pipe.c: Likewise.
57901         * lib/pipe.h: Likewise.
57902         * lib/posixtm.c: Likewise.
57903         * lib/posixtm.h: Likewise.
57904         * lib/posixver.c: Likewise.
57905         * lib/printf-frexp.c: Likewise.
57906         * lib/printf-frexp.h: Likewise.
57907         * lib/printf-frexpl.c: Likewise.
57908         * lib/printf-frexpl.h: Likewise.
57909         * lib/printf.c: Likewise.
57910         * lib/progname.c: Likewise.
57911         * lib/progname.h: Likewise.
57912         * lib/progreloc.c: Likewise.
57913         * lib/putenv.c: Likewise.
57914         * lib/quote.c: Likewise.
57915         * lib/quote.h: Likewise.
57916         * lib/quotearg.c: Likewise.
57917         * lib/quotearg.h: Likewise.
57918         * lib/raise.c: Likewise.
57919         * lib/readline.c: Likewise.
57920         * lib/readline.h: Likewise.
57921         * lib/readlink.c: Likewise.
57922         * lib/readtokens.c: Likewise.
57923         * lib/readtokens.h: Likewise.
57924         * lib/readtokens0.c: Likewise.
57925         * lib/readtokens0.h: Likewise.
57926         * lib/readutmp.c: Likewise.
57927         * lib/readutmp.h: Likewise.
57928         * lib/realloc.c: Likewise.
57929         * lib/relocwrapper.c: Likewise.
57930         * lib/rename-dest-slash.c: Likewise.
57931         * lib/rename.c: Likewise.
57932         * lib/rmdir.c: Likewise.
57933         * lib/rpmatch.c: Likewise.
57934         * lib/safe-read.c: Likewise.
57935         * lib/safe-read.h: Likewise.
57936         * lib/safe-write.c: Likewise.
57937         * lib/safe-write.h: Likewise.
57938         * lib/same-inode.h: Likewise.
57939         * lib/same.c: Likewise.
57940         * lib/same.h: Likewise.
57941         * lib/save-cwd.c: Likewise.
57942         * lib/save-cwd.h: Likewise.
57943         * lib/savedir.c: Likewise.
57944         * lib/savedir.h: Likewise.
57945         * lib/savewd.c: Likewise.
57946         * lib/savewd.h: Likewise.
57947         * lib/search.in.h: Likewise.
57948         * lib/setenv.c: Likewise.
57949         * lib/setenv.h: Likewise.
57950         * lib/settime.c: Likewise.
57951         * lib/sh-quote.c: Likewise.
57952         * lib/sh-quote.h: Likewise.
57953         * lib/sig2str.c: Likewise.
57954         * lib/sig2str.h: Likewise.
57955         * lib/signal.in.h: Likewise.
57956         * lib/signbitd.c: Likewise.
57957         * lib/signbitf.c: Likewise.
57958         * lib/signbitl.c: Likewise.
57959         * lib/sigprocmask.c: Likewise.
57960         * lib/sincosl.c: Likewise.
57961         * lib/sleep.c: Likewise.
57962         * lib/sprintf.c: Likewise.
57963         * lib/sqrtl.c: Likewise.
57964         * lib/stat-time.h: Likewise.
57965         * lib/stdio--.h: Likewise.
57966         * lib/stdio-safer.h: Likewise.
57967         * lib/stdlib--.h: Likewise.
57968         * lib/stdlib-safer.h: Likewise.
57969         * lib/stdlib.in.h: Likewise.
57970         * lib/stpcpy.c: Likewise.
57971         * lib/stpncpy.c: Likewise.
57972         * lib/strchrnul.c: Likewise.
57973         * lib/strcspn.c: Likewise.
57974         * lib/strerror.c: Likewise.
57975         * lib/strftime.c: Likewise.
57976         * lib/strftime.h: Likewise.
57977         * lib/striconveh.c: Likewise.
57978         * lib/striconveh.h: Likewise.
57979         * lib/striconveha.c: Likewise.
57980         * lib/striconveha.h: Likewise.
57981         * lib/stripslash.c: Likewise.
57982         * lib/strnlen1.c: Likewise.
57983         * lib/strnlen1.h: Likewise.
57984         * lib/strtod.c: Likewise.
57985         * lib/strtoimax.c: Likewise.
57986         * lib/strtok_r.c: Likewise.
57987         * lib/strtol.c: Likewise.
57988         * lib/strtoll.c: Likewise.
57989         * lib/strtoul.c: Likewise.
57990         * lib/strtoull.c: Likewise.
57991         * lib/sysexits.in.h: Likewise.
57992         * lib/tempname.c: Likewise.
57993         * lib/tempname.h: Likewise.
57994         * lib/timespec.h: Likewise.
57995         * lib/tls.c: Likewise.
57996         * lib/tls.h: Likewise.
57997         * lib/tmpdir.c: Likewise.
57998         * lib/tmpdir.h: Likewise.
57999         * lib/tmpfile-safer.c: Likewise.
58000         * lib/tmpfile.c: Likewise.
58001         * lib/trigl.c: Likewise.
58002         * lib/trigl.h: Likewise.
58003         * lib/trim.c: Likewise.
58004         * lib/trim.h: Likewise.
58005         * lib/trunc.c: Likewise.
58006         * lib/truncf.c: Likewise.
58007         * lib/truncl.c: Likewise.
58008         * lib/tsearch.c: Likewise.
58009         * lib/unicodeio.c: Likewise.
58010         * lib/unicodeio.h: Likewise.
58011         * lib/unistd--.h: Likewise.
58012         * lib/unistd-safer.h: Likewise.
58013         * lib/unistdio/ulc-fprintf.c: Likewise.
58014         * lib/unistdio/ulc-vfprintf.c: Likewise.
58015         * lib/unlinkdir.c: Likewise.
58016         * lib/unlinkdir.h: Likewise.
58017         * lib/unlocked-io.h: Likewise.
58018         * lib/unsetenv.c: Likewise.
58019         * lib/userspec.c: Likewise.
58020         * lib/utime.c: Likewise.
58021         * lib/utimecmp.c: Likewise.
58022         * lib/utimecmp.h: Likewise.
58023         * lib/utimens.c: Likewise.
58024         * lib/verify.h: Likewise.
58025         * lib/verror.c: Likewise.
58026         * lib/verror.h: Likewise.
58027         * lib/version-etc-fsf.c: Likewise.
58028         * lib/version-etc.c: Likewise.
58029         * lib/version-etc.h: Likewise.
58030         * lib/vfprintf.c: Likewise.
58031         * lib/vprintf.c: Likewise.
58032         * lib/vsprintf.c: Likewise.
58033         * lib/w32spawn.h: Likewise.
58034         * lib/wait-process.c: Likewise.
58035         * lib/wait-process.h: Likewise.
58036         * lib/wcwidth.c: Likewise.
58037         * lib/write-any-file.c: Likewise.
58038         * lib/xalloc-die.c: Likewise.
58039         * lib/xalloc.h: Likewise.
58040         * lib/xasprintf.c: Likewise.
58041         * lib/xgetcwd.c: Likewise.
58042         * lib/xgetcwd.h: Likewise.
58043         * lib/xgetdomainname.c: Likewise.
58044         * lib/xgetdomainname.h: Likewise.
58045         * lib/xgethostname.c: Likewise.
58046         * lib/xmalloc.c: Likewise.
58047         * lib/xmalloca.c: Likewise.
58048         * lib/xmalloca.h: Likewise.
58049         * lib/xmemcoll.c: Likewise.
58050         * lib/xnanosleep.c: Likewise.
58051         * lib/xreadlink.c: Likewise.
58052         * lib/xreadlink.h: Likewise.
58053         * lib/xsetenv.c: Likewise.
58054         * lib/xsetenv.h: Likewise.
58055         * lib/xstriconv.c: Likewise.
58056         * lib/xstriconv.h: Likewise.
58057         * lib/xstrndup.c: Likewise.
58058         * lib/xstrndup.h: Likewise.
58059         * lib/xstrtod.c: Likewise.
58060         * lib/xstrtod.h: Likewise.
58061         * lib/xstrtol-error.c: Likewise.
58062         * lib/xstrtol.c: Likewise.
58063         * lib/xstrtol.h: Likewise.
58064         * lib/xtime.h: Likewise.
58065         * lib/xvasprintf.c: Likewise.
58066         * lib/xvasprintf.h: Likewise.
58067         * lib/yesno.c: Likewise.
58068         * lib/yesno.h: Likewise.
58069         * posix-modules: Likewise.
58070         * tests/test-alloca-opt.c: Likewise.
58071         * tests/test-arcfour.c: Likewise.
58072         * tests/test-arctwo.c: Likewise.
58073         * tests/test-argmatch.c: Likewise.
58074         * tests/test-argp-2.sh: Likewise.
58075         * tests/test-argp.c: Likewise.
58076         * tests/test-arpa_inet.c: Likewise.
58077         * tests/test-array_list.c: Likewise.
58078         * tests/test-array_oset.c: Likewise.
58079         * tests/test-atexit.c: Likewise.
58080         * tests/test-avltree_list.c: Likewise.
58081         * tests/test-avltree_oset.c: Likewise.
58082         * tests/test-avltreehash_list.c: Likewise.
58083         * tests/test-base64.c: Likewise.
58084         * tests/test-binary-io.c: Likewise.
58085         * tests/test-byteswap.c: Likewise.
58086         * tests/test-c-ctype.c: Likewise.
58087         * tests/test-c-strcasecmp.c: Likewise.
58088         * tests/test-c-strcasestr.c: Likewise.
58089         * tests/test-c-strncasecmp.c: Likewise.
58090         * tests/test-c-strstr.c: Likewise.
58091         * tests/test-canonicalize-lgpl.c: Likewise.
58092         * tests/test-canonicalize.c: Likewise.
58093         * tests/test-carray_list.c: Likewise.
58094         * tests/test-ceilf.c: Likewise.
58095         * tests/test-ceill.c: Likewise.
58096         * tests/test-count-one-bits.c: Likewise.
58097         * tests/test-crc.c: Likewise.
58098         * tests/test-dirname.c: Likewise.
58099         * tests/test-fbufmode.c: Likewise.
58100         * tests/test-fcntl.c: Likewise.
58101         * tests/test-fflush.c: Likewise.
58102         * tests/test-floorf.c: Likewise.
58103         * tests/test-floorl.c: Likewise.
58104         * tests/test-fopen.c: Likewise.
58105         * tests/test-fprintf-posix.c: Likewise.
58106         * tests/test-fprintf-posix.h: Likewise.
58107         * tests/test-fpurge.c: Likewise.
58108         * tests/test-freadable.c: Likewise.
58109         * tests/test-freadahead.c: Likewise.
58110         * tests/test-freading.c: Likewise.
58111         * tests/test-freopen.c: Likewise.
58112         * tests/test-frexp.c: Likewise.
58113         * tests/test-frexpl.c: Likewise.
58114         * tests/test-fseek.c: Likewise.
58115         * tests/test-fseeko.c: Likewise.
58116         * tests/test-fseterr.c: Likewise.
58117         * tests/test-fstrcmp.c: Likewise.
58118         * tests/test-ftell.c: Likewise.
58119         * tests/test-ftello.c: Likewise.
58120         * tests/test-fwritable.c: Likewise.
58121         * tests/test-fwriting.c: Likewise.
58122         * tests/test-getaddrinfo.c: Likewise.
58123         * tests/test-getpass.c: Likewise.
58124         * tests/test-gettimeofday.c: Likewise.
58125         * tests/test-hmac-md5.c: Likewise.
58126         * tests/test-hmac-sha1.c: Likewise.
58127         * tests/test-iconv.c: Likewise.
58128         * tests/test-iconvme.c: Likewise.
58129         * tests/test-inttypes.c: Likewise.
58130         * tests/test-isnan.c: Likewise.
58131         * tests/test-isnanf.c: Likewise.
58132         * tests/test-isnanl-nolibm.c: Likewise.
58133         * tests/test-isnanl.c: Likewise.
58134         * tests/test-isnanl.h: Likewise.
58135         * tests/test-ldexpl.c: Likewise.
58136         * tests/test-linked_list.c: Likewise.
58137         * tests/test-linkedhash_list.c: Likewise.
58138         * tests/test-locale.c: Likewise.
58139         * tests/test-localename.c: Likewise.
58140         * tests/test-lock.c: Likewise.
58141         * tests/test-lseek.c: Likewise.
58142         * tests/test-malloca.c: Likewise.
58143         * tests/test-math.c: Likewise.
58144         * tests/test-mbscasecmp.c: Likewise.
58145         * tests/test-mbscasestr1.c: Likewise.
58146         * tests/test-mbscasestr2.c: Likewise.
58147         * tests/test-mbscasestr3.c: Likewise.
58148         * tests/test-mbscasestr4.c: Likewise.
58149         * tests/test-mbschr.c: Likewise.
58150         * tests/test-mbscspn.c: Likewise.
58151         * tests/test-mbsncasecmp.c: Likewise.
58152         * tests/test-mbspbrk.c: Likewise.
58153         * tests/test-mbspcasecmp.c: Likewise.
58154         * tests/test-mbsrchr.c: Likewise.
58155         * tests/test-mbsspn.c: Likewise.
58156         * tests/test-mbsstr1.c: Likewise.
58157         * tests/test-mbsstr2.c: Likewise.
58158         * tests/test-mbsstr3.c: Likewise.
58159         * tests/test-md5.c: Likewise.
58160         * tests/test-memmem.c: Likewise.
58161         * tests/test-netinet_in.c: Likewise.
58162         * tests/test-open.c: Likewise.
58163         * tests/test-printf-frexp.c: Likewise.
58164         * tests/test-printf-frexpl.c: Likewise.
58165         * tests/test-printf-posix.c: Likewise.
58166         * tests/test-printf-posix.h: Likewise.
58167         * tests/test-rbtree_list.c: Likewise.
58168         * tests/test-rbtree_oset.c: Likewise.
58169         * tests/test-rbtreehash_list.c: Likewise.
58170         * tests/test-read-file.c: Likewise.
58171         * tests/test-rijndael.c: Likewise.
58172         * tests/test-search.c: Likewise.
58173         * tests/test-signbit.c: Likewise.
58174         * tests/test-sleep.c: Likewise.
58175         * tests/test-snprintf-posix.c: Likewise.
58176         * tests/test-snprintf-posix.h: Likewise.
58177         * tests/test-snprintf.c: Likewise.
58178         * tests/test-sprintf-posix.c: Likewise.
58179         * tests/test-sprintf-posix.h: Likewise.
58180         * tests/test-stat-time.c: Likewise.
58181         * tests/test-stdbool.c: Likewise.
58182         * tests/test-stdint.c: Likewise.
58183         * tests/test-stdio.c: Likewise.
58184         * tests/test-stdlib.c: Likewise.
58185         * tests/test-stpncpy.c: Likewise.
58186         * tests/test-strcasestr.c: Likewise.
58187         * tests/test-striconv.c: Likewise.
58188         * tests/test-striconveh.c: Likewise.
58189         * tests/test-striconveha.c: Likewise.
58190         * tests/test-string.c: Likewise.
58191         * tests/test-sys_select.c: Likewise.
58192         * tests/test-sys_socket.c: Likewise.
58193         * tests/test-sys_stat.c: Likewise.
58194         * tests/test-sys_time.c: Likewise.
58195         * tests/test-sysexits.c: Likewise.
58196         * tests/test-time.c: Likewise.
58197         * tests/test-tls.c: Likewise.
58198         * tests/test-trunc.c: Likewise.
58199         * tests/test-truncf.c: Likewise.
58200         * tests/test-truncl.c: Likewise.
58201         * tests/test-unistd.c: Likewise.
58202         * tests/test-vasnprintf-posix.c: Likewise.
58203         * tests/test-vasnprintf-posix2.c: Likewise.
58204         * tests/test-vasnprintf.c: Likewise.
58205         * tests/test-vasprintf-posix.c: Likewise.
58206         * tests/test-vasprintf.c: Likewise.
58207         * tests/test-verify.c: Likewise.
58208         * tests/test-vfprintf-posix.c: Likewise.
58209         * tests/test-vprintf-posix.c: Likewise.
58210         * tests/test-vsnprintf-posix.c: Likewise.
58211         * tests/test-vsnprintf.c: Likewise.
58212         * tests/test-vsprintf-posix.c: Likewise.
58213         * tests/test-wchar.c: Likewise.
58214         * tests/test-wctype.c: Likewise.
58215         * tests/test-wcwidth.c: Likewise.
58216         * tests/test-xstrtol.c: Likewise.
58217         * tests/test-xvasprintf.c: Likewise.
58218         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
58219         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
58220         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
58221         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
58222         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
58223         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
58224         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
58225         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
58226         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
58227         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
58228         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
58229         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
58230         * tests/uniname/test-uninames.c: Likewise.
58231         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
58232         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
58233         * tests/unistdio/test-u16-printf1.h: Likewise.
58234         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
58235         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
58236         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
58237         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
58238         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
58239         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
58240         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
58241         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
58242         * tests/unistdio/test-u32-printf1.h: Likewise.
58243         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
58244         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
58245         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
58246         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
58247         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
58248         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
58249         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
58250         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
58251         * tests/unistdio/test-u8-printf1.h: Likewise.
58252         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
58253         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
58254         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
58255         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
58256         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
58257         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
58258         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
58259         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
58260         * tests/unistdio/test-ulc-printf1.h: Likewise.
58261         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
58262         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
58263         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
58264         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
58265         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
58266         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
58267         * tests/uniwidth/test-u16-strwidth.c: Likewise.
58268         * tests/uniwidth/test-u16-width.c: Likewise.
58269         * tests/uniwidth/test-u32-strwidth.c: Likewise.
58270         * tests/uniwidth/test-u32-width.c: Likewise.
58271         * tests/uniwidth/test-u8-strwidth.c: Likewise.
58272         * tests/uniwidth/test-u8-width.c: Likewise.
58273         * tests/uniwidth/test-uc_width.c: Likewise.
58274         * config/srclist-update: Likewise.
58275         (fixlicense): Update to GPLv3+.
58276
58277         Change copyright notice from LGPLv2.1+ to LGPLv3+.
58278         * tests/test-tsearch.c: Change copyright notice.
58279
58280         Change copyright notice from LGPLv2.0+ to LGPLv3+.
58281         * lib/c-strcaseeq.h: Change copyright notice.
58282         * lib/streq.h: Likewise.
58283         * lib/uniconv.h: Likewise.
58284         * lib/uniconv/u-conv-from-enc.h: Likewise.
58285         * lib/uniconv/u-conv-to-enc.h: Likewise.
58286         * lib/uniconv/u-strconv-from-enc.h: Likewise.
58287         * lib/uniconv/u-strconv-to-enc.h: Likewise.
58288         * lib/uniconv/u16-conv-from-enc.c: Likewise.
58289         * lib/uniconv/u16-conv-to-enc.c: Likewise.
58290         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
58291         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
58292         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
58293         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
58294         * lib/uniconv/u32-conv-from-enc.c: Likewise.
58295         * lib/uniconv/u32-conv-to-enc.c: Likewise.
58296         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
58297         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
58298         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
58299         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
58300         * lib/uniconv/u8-conv-from-enc.c: Likewise.
58301         * lib/uniconv/u8-conv-to-enc.c: Likewise.
58302         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
58303         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
58304         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
58305         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
58306         * lib/uniname.h: Likewise.
58307         * lib/uniname/uniname.c: Likewise.
58308         * lib/unistdio.h: Likewise.
58309         * lib/unistdio/u-asnprintf.h: Likewise.
58310         * lib/unistdio/u-asprintf.h: Likewise.
58311         * lib/unistdio/u-printf-args.c: Likewise.
58312         * lib/unistdio/u-printf-args.h: Likewise.
58313         * lib/unistdio/u-printf-parse.h: Likewise.
58314         * lib/unistdio/u-snprintf.h: Likewise.
58315         * lib/unistdio/u-sprintf.h: Likewise.
58316         * lib/unistdio/u-vasprintf.h: Likewise.
58317         * lib/unistdio/u-vsnprintf.h: Likewise.
58318         * lib/unistdio/u-vsprintf.h: Likewise.
58319         * lib/unistdio/u16-asnprintf.c: Likewise.
58320         * lib/unistdio/u16-asprintf.c: Likewise.
58321         * lib/unistdio/u16-printf-parse.c: Likewise.
58322         * lib/unistdio/u16-snprintf.c: Likewise.
58323         * lib/unistdio/u16-sprintf.c: Likewise.
58324         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
58325         * lib/unistdio/u16-u16-asprintf.c: Likewise.
58326         * lib/unistdio/u16-u16-snprintf.c: Likewise.
58327         * lib/unistdio/u16-u16-sprintf.c: Likewise.
58328         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
58329         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
58330         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
58331         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
58332         * lib/unistdio/u16-vasnprintf.c: Likewise.
58333         * lib/unistdio/u16-vasprintf.c: Likewise.
58334         * lib/unistdio/u16-vsnprintf.c: Likewise.
58335         * lib/unistdio/u16-vsprintf.c: Likewise.
58336         * lib/unistdio/u32-asnprintf.c: Likewise.
58337         * lib/unistdio/u32-asprintf.c: Likewise.
58338         * lib/unistdio/u32-printf-parse.c: Likewise.
58339         * lib/unistdio/u32-snprintf.c: Likewise.
58340         * lib/unistdio/u32-sprintf.c: Likewise.
58341         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
58342         * lib/unistdio/u32-u32-asprintf.c: Likewise.
58343         * lib/unistdio/u32-u32-snprintf.c: Likewise.
58344         * lib/unistdio/u32-u32-sprintf.c: Likewise.
58345         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
58346         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
58347         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
58348         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
58349         * lib/unistdio/u32-vasnprintf.c: Likewise.
58350         * lib/unistdio/u32-vasprintf.c: Likewise.
58351         * lib/unistdio/u32-vsnprintf.c: Likewise.
58352         * lib/unistdio/u32-vsprintf.c: Likewise.
58353         * lib/unistdio/u8-asnprintf.c: Likewise.
58354         * lib/unistdio/u8-asprintf.c: Likewise.
58355         * lib/unistdio/u8-printf-parse.c: Likewise.
58356         * lib/unistdio/u8-snprintf.c: Likewise.
58357         * lib/unistdio/u8-sprintf.c: Likewise.
58358         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
58359         * lib/unistdio/u8-u8-asprintf.c: Likewise.
58360         * lib/unistdio/u8-u8-snprintf.c: Likewise.
58361         * lib/unistdio/u8-u8-sprintf.c: Likewise.
58362         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
58363         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
58364         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
58365         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
58366         * lib/unistdio/u8-vasnprintf.c: Likewise.
58367         * lib/unistdio/u8-vasprintf.c: Likewise.
58368         * lib/unistdio/u8-vsnprintf.c: Likewise.
58369         * lib/unistdio/u8-vsprintf.c: Likewise.
58370         * lib/unistdio/ulc-asnprintf.c: Likewise.
58371         * lib/unistdio/ulc-asprintf.c: Likewise.
58372         * lib/unistdio/ulc-printf-parse.c: Likewise.
58373         * lib/unistdio/ulc-snprintf.c: Likewise.
58374         * lib/unistdio/ulc-sprintf.c: Likewise.
58375         * lib/unistdio/ulc-vasnprintf.c: Likewise.
58376         * lib/unistdio/ulc-vasprintf.c: Likewise.
58377         * lib/unistdio/ulc-vsnprintf.c: Likewise.
58378         * lib/unistdio/ulc-vsprintf.c: Likewise.
58379         * lib/unistr.h: Likewise.
58380         * lib/unistr/u-cpy-alloc.h: Likewise.
58381         * lib/unistr/u-cpy.h: Likewise.
58382         * lib/unistr/u-endswith.h: Likewise.
58383         * lib/unistr/u-move.h: Likewise.
58384         * lib/unistr/u-set.h: Likewise.
58385         * lib/unistr/u-startswith.h: Likewise.
58386         * lib/unistr/u-stpcpy.h: Likewise.
58387         * lib/unistr/u-stpncpy.h: Likewise.
58388         * lib/unistr/u-strcat.h: Likewise.
58389         * lib/unistr/u-strcpy.h: Likewise.
58390         * lib/unistr/u-strcspn.h: Likewise.
58391         * lib/unistr/u-strdup.h: Likewise.
58392         * lib/unistr/u-strlen.h: Likewise.
58393         * lib/unistr/u-strncat.h: Likewise.
58394         * lib/unistr/u-strncpy.h: Likewise.
58395         * lib/unistr/u-strnlen.h: Likewise.
58396         * lib/unistr/u-strpbrk.h: Likewise.
58397         * lib/unistr/u-strspn.h: Likewise.
58398         * lib/unistr/u-strstr.h: Likewise.
58399         * lib/unistr/u-strtok.h: Likewise.
58400         * lib/unistr/u16-check.c: Likewise.
58401         * lib/unistr/u16-chr.c: Likewise.
58402         * lib/unistr/u16-cmp.c: Likewise.
58403         * lib/unistr/u16-cpy-alloc.c: Likewise.
58404         * lib/unistr/u16-cpy.c: Likewise.
58405         * lib/unistr/u16-endswith.c: Likewise.
58406         * lib/unistr/u16-mblen.c: Likewise.
58407         * lib/unistr/u16-mbsnlen.c: Likewise.
58408         * lib/unistr/u16-mbtouc-aux.c: Likewise.
58409         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
58410         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
58411         * lib/unistr/u16-mbtouc.c: Likewise.
58412         * lib/unistr/u16-mbtoucr.c: Likewise.
58413         * lib/unistr/u16-move.c: Likewise.
58414         * lib/unistr/u16-next.c: Likewise.
58415         * lib/unistr/u16-prev.c: Likewise.
58416         * lib/unistr/u16-set.c: Likewise.
58417         * lib/unistr/u16-startswith.c: Likewise.
58418         * lib/unistr/u16-stpcpy.c: Likewise.
58419         * lib/unistr/u16-stpncpy.c: Likewise.
58420         * lib/unistr/u16-strcat.c: Likewise.
58421         * lib/unistr/u16-strchr.c: Likewise.
58422         * lib/unistr/u16-strcmp.c: Likewise.
58423         * lib/unistr/u16-strcpy.c: Likewise.
58424         * lib/unistr/u16-strcspn.c: Likewise.
58425         * lib/unistr/u16-strdup.c: Likewise.
58426         * lib/unistr/u16-strlen.c: Likewise.
58427         * lib/unistr/u16-strmblen.c: Likewise.
58428         * lib/unistr/u16-strmbtouc.c: Likewise.
58429         * lib/unistr/u16-strncat.c: Likewise.
58430         * lib/unistr/u16-strncmp.c: Likewise.
58431         * lib/unistr/u16-strncpy.c: Likewise.
58432         * lib/unistr/u16-strnlen.c: Likewise.
58433         * lib/unistr/u16-strpbrk.c: Likewise.
58434         * lib/unistr/u16-strrchr.c: Likewise.
58435         * lib/unistr/u16-strspn.c: Likewise.
58436         * lib/unistr/u16-strstr.c: Likewise.
58437         * lib/unistr/u16-strtok.c: Likewise.
58438         * lib/unistr/u16-to-u32.c: Likewise.
58439         * lib/unistr/u16-to-u8.c: Likewise.
58440         * lib/unistr/u16-uctomb-aux.c: Likewise.
58441         * lib/unistr/u16-uctomb.c: Likewise.
58442         * lib/unistr/u32-check.c: Likewise.
58443         * lib/unistr/u32-chr.c: Likewise.
58444         * lib/unistr/u32-cmp.c: Likewise.
58445         * lib/unistr/u32-cpy-alloc.c: Likewise.
58446         * lib/unistr/u32-cpy.c: Likewise.
58447         * lib/unistr/u32-endswith.c: Likewise.
58448         * lib/unistr/u32-mblen.c: Likewise.
58449         * lib/unistr/u32-mbsnlen.c: Likewise.
58450         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
58451         * lib/unistr/u32-mbtouc.c: Likewise.
58452         * lib/unistr/u32-mbtoucr.c: Likewise.
58453         * lib/unistr/u32-move.c: Likewise.
58454         * lib/unistr/u32-next.c: Likewise.
58455         * lib/unistr/u32-prev.c: Likewise.
58456         * lib/unistr/u32-set.c: Likewise.
58457         * lib/unistr/u32-startswith.c: Likewise.
58458         * lib/unistr/u32-stpcpy.c: Likewise.
58459         * lib/unistr/u32-stpncpy.c: Likewise.
58460         * lib/unistr/u32-strcat.c: Likewise.
58461         * lib/unistr/u32-strchr.c: Likewise.
58462         * lib/unistr/u32-strcmp.c: Likewise.
58463         * lib/unistr/u32-strcpy.c: Likewise.
58464         * lib/unistr/u32-strcspn.c: Likewise.
58465         * lib/unistr/u32-strdup.c: Likewise.
58466         * lib/unistr/u32-strlen.c: Likewise.
58467         * lib/unistr/u32-strmblen.c: Likewise.
58468         * lib/unistr/u32-strmbtouc.c: Likewise.
58469         * lib/unistr/u32-strncat.c: Likewise.
58470         * lib/unistr/u32-strncmp.c: Likewise.
58471         * lib/unistr/u32-strncpy.c: Likewise.
58472         * lib/unistr/u32-strnlen.c: Likewise.
58473         * lib/unistr/u32-strpbrk.c: Likewise.
58474         * lib/unistr/u32-strrchr.c: Likewise.
58475         * lib/unistr/u32-strspn.c: Likewise.
58476         * lib/unistr/u32-strstr.c: Likewise.
58477         * lib/unistr/u32-strtok.c: Likewise.
58478         * lib/unistr/u32-to-u16.c: Likewise.
58479         * lib/unistr/u32-to-u8.c: Likewise.
58480         * lib/unistr/u32-uctomb.c: Likewise.
58481         * lib/unistr/u8-check.c: Likewise.
58482         * lib/unistr/u8-chr.c: Likewise.
58483         * lib/unistr/u8-cmp.c: Likewise.
58484         * lib/unistr/u8-cpy-alloc.c: Likewise.
58485         * lib/unistr/u8-cpy.c: Likewise.
58486         * lib/unistr/u8-endswith.c: Likewise.
58487         * lib/unistr/u8-mblen.c: Likewise.
58488         * lib/unistr/u8-mbsnlen.c: Likewise.
58489         * lib/unistr/u8-mbtouc-aux.c: Likewise.
58490         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
58491         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
58492         * lib/unistr/u8-mbtouc.c: Likewise.
58493         * lib/unistr/u8-mbtoucr.c: Likewise.
58494         * lib/unistr/u8-move.c: Likewise.
58495         * lib/unistr/u8-next.c: Likewise.
58496         * lib/unistr/u8-prev.c: Likewise.
58497         * lib/unistr/u8-set.c: Likewise.
58498         * lib/unistr/u8-startswith.c: Likewise.
58499         * lib/unistr/u8-stpcpy.c: Likewise.
58500         * lib/unistr/u8-stpncpy.c: Likewise.
58501         * lib/unistr/u8-strcat.c: Likewise.
58502         * lib/unistr/u8-strchr.c: Likewise.
58503         * lib/unistr/u8-strcmp.c: Likewise.
58504         * lib/unistr/u8-strcpy.c: Likewise.
58505         * lib/unistr/u8-strcspn.c: Likewise.
58506         * lib/unistr/u8-strdup.c: Likewise.
58507         * lib/unistr/u8-strlen.c: Likewise.
58508         * lib/unistr/u8-strmblen.c: Likewise.
58509         * lib/unistr/u8-strmbtouc.c: Likewise.
58510         * lib/unistr/u8-strncat.c: Likewise.
58511         * lib/unistr/u8-strncmp.c: Likewise.
58512         * lib/unistr/u8-strncpy.c: Likewise.
58513         * lib/unistr/u8-strnlen.c: Likewise.
58514         * lib/unistr/u8-strpbrk.c: Likewise.
58515         * lib/unistr/u8-strrchr.c: Likewise.
58516         * lib/unistr/u8-strspn.c: Likewise.
58517         * lib/unistr/u8-strstr.c: Likewise.
58518         * lib/unistr/u8-strtok.c: Likewise.
58519         * lib/unistr/u8-to-u16.c: Likewise.
58520         * lib/unistr/u8-to-u32.c: Likewise.
58521         * lib/unistr/u8-uctomb-aux.c: Likewise.
58522         * lib/unistr/u8-uctomb.c: Likewise.
58523         * lib/unitypes.h: Likewise.
58524         * lib/uniwidth.h: Likewise.
58525         * lib/uniwidth/cjk.h: Likewise.
58526         * lib/uniwidth/u16-strwidth.c: Likewise.
58527         * lib/uniwidth/u16-width.c: Likewise.
58528         * lib/uniwidth/u32-strwidth.c: Likewise.
58529         * lib/uniwidth/u32-width.c: Likewise.
58530         * lib/uniwidth/u8-strwidth.c: Likewise.
58531         * lib/uniwidth/u8-width.c: Likewise.
58532         * lib/uniwidth/width.c: Likewise.
58533
58534 2007-10-07  Bruno Haible  <bruno@clisp.org>
58535
58536         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
58537         The file is still under LGPL (see modules/inttypes).
58538
58539 2007-10-06  Bruno Haible  <bruno@clisp.org>
58540
58541         * modules/trunc (Dependencies): Add 'extensions'.
58542         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
58543         Reported by Ben Pfaff <blp@gnu.org>.
58544
58545 2007-10-06  Bruno Haible  <bruno@clisp.org>
58546
58547         * modules/freopen-tests: New file.
58548         * tests/test-freopen.c: New file.
58549
58550         * modules/fopen-tests: New file.
58551         * tests/test-fopen.c: New file.
58552
58553         * modules/fopen: New file.
58554         * lib/fopen.c: New file.
58555         * m4/fopen.m4: New file.
58556         * modules/freopen: New file.
58557         * lib/freopen.c: New file.
58558         * m4/freopen.m4: New file.
58559         * lib/stdio.in.h (fopen, freopen): New declarations.
58560         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
58561         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
58562         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
58563         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
58564         * doc/functions/fopen.texi: Mention the 'fopen' module.
58565         * doc/functions/freopen.texi: Mention the 'freopen' module.
58566
58567 2007-10-06  Bruno Haible  <bruno@clisp.org>
58568
58569         * modules/open-tests: New file.
58570         * tests/test-open.c: New file.
58571
58572         * modules/open: New file.
58573         * lib/open.c: New file.
58574         * m4/open.m4: New file.
58575         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
58576         lib/open.c does.
58577         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
58578         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
58579         macros.
58580         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
58581         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
58582         REPLACE_OPEN.
58583         * doc/functions/open.texi: Mention the 'open' module.
58584
58585 2007-10-04  Bruno Haible  <bruno@clisp.org>
58586
58587         * modules/ceill-tests: New file.
58588         * tests/test-ceill.c: New file.
58589
58590         * modules/ceill: New file.
58591         * lib/ceill.c: Replace entire file.
58592         * m4/ceill.m4: New file.
58593         * lib/math.in.h (ceill): Replace declaration.
58594         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
58595         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
58596         * doc/functions/ceill.texi: Mention the 'ceill' module.
58597         * modules/mathl (Files): Remove lib/ceill.c.
58598         (Depends-on): Add ceill.
58599
58600 2007-10-04  Bruno Haible  <bruno@clisp.org>
58601
58602         * modules/ceilf-tests: New file.
58603         * tests/test-ceilf.c: New file.
58604
58605         * modules/ceilf: New file.
58606         * lib/ceil.c: New file.
58607         * lib/ceilf.c: New file.
58608         * m4/ceilf.m4: New file.
58609         * lib/math.in.h (ceilf): New declaration.
58610         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
58611         HAVE_DECL_CEILF.
58612         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
58613         HAVE_DECL_CEILF.
58614         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
58615
58616 2007-10-04  Bruno Haible  <bruno@clisp.org>
58617
58618         * modules/floorl-tests: New file.
58619         * tests/test-floorl.c: New file.
58620
58621         * modules/floorl: New file.
58622         * lib/floorl.c: Replace entire file.
58623         * m4/floorl.m4: New file.
58624         * lib/math.in.h (floorl): Replace declaration.
58625         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
58626         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
58627         * doc/functions/floorl.texi: Mention the 'floorl' module.
58628         * modules/mathl (Files): Remove lib/floorl.c.
58629         (Depends-on): Add floorl.
58630
58631 2007-10-04  Bruno Haible  <bruno@clisp.org>
58632
58633         * modules/floorf-tests: New file.
58634         * tests/test-floorf.c: New file.
58635
58636         * modules/floorf: New file.
58637         * lib/floor.c: New file.
58638         * lib/floorf.c: New file.
58639         * m4/floorf.m4: New file.
58640         * lib/math.in.h (floorf): New declaration.
58641         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
58642         HAVE_DECL_FLOORF.
58643         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
58644         HAVE_DECL_FLOORF.
58645         * doc/functions/floorf.texi: Mention the 'floorf' module.
58646
58647 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
58648             Bruno Haible  <bruno@clisp.org>
58649
58650         Advertise for the Git server instead of the CVS server.
58651         * doc/gnulib-intro.texi (Steady Development): Mention the Git
58652         repository instead of the CVS one.
58653         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
58654         about all VCS systems generically.
58655         * doc/gnulib.texi (Introduction): Capitalize `Git'.
58656
58657 2007-10-04  Bruno Haible  <bruno@clisp.org>
58658
58659         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
58660         means.
58661         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
58662
58663 2007-10-04  Bruno Haible  <bruno@clisp.org>
58664
58665         * modules/truncl-tests: New file.
58666         * tests/test-truncl.c: New file.
58667
58668         * modules/truncl: New file.
58669         * lib/truncl.c: New file.
58670         * m4/truncl.m4: New file.
58671         * lib/math.in.h (truncl): New declaration.
58672         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
58673         HAVE_DECL_TRUNCL.
58674         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
58675         HAVE_DECL_TRUNCL.
58676         * doc/functions/truncl.texi: Mention the 'truncl' module.
58677
58678 2007-10-04  Bruno Haible  <bruno@clisp.org>
58679
58680         * modules/truncf-tests: New file.
58681         * tests/test-truncf.c: New file.
58682
58683         * modules/truncf: New file.
58684         * lib/trunc.c: Make paramerizable through USE_* macros.
58685         * lib/truncf.c: New file.
58686         * m4/truncf.m4: New file.
58687         * lib/math.in.h (truncf): New declaration.
58688         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
58689         HAVE_DECL_TRUNCF.
58690         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
58691         HAVE_DECL_TRUNCF.
58692         * doc/functions/truncf.texi: Mention the 'truncf' module.
58693
58694 2007-10-03  Bruno Haible  <bruno@clisp.org>
58695
58696         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
58697         augmentation also for tests modules.
58698         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
58699         * modules/atexit-tests (Makefile.am): Likewise.
58700         * modules/binary-io-tests (Makefile.am): Likewise.
58701         * modules/c-strcase-tests (Makefile.am): Likewise.
58702         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
58703         * modules/canonicalize-tests (Makefile.am): Likewise.
58704         * modules/closein-tests (Makefile.am): Likewise.
58705         * modules/fprintf-posix-tests (Makefile.am): Likewise.
58706         * modules/freadahead-tests (Makefile.am): Likewise.
58707         * modules/fseek-tests (Makefile.am): Likewise.
58708         * modules/fseeko-tests (Makefile.am): Likewise.
58709         * modules/ftell-tests (Makefile.am): Likewise.
58710         * modules/ftello-tests (Makefile.am): Likewise.
58711         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
58712         * modules/isnanl-tests (Makefile.am): Likewise.
58713         * modules/lseek-tests (Makefile.am): Likewise.
58714         * modules/mbscasecmp-tests (Makefile.am): Likewise.
58715         * modules/mbscasestr-tests (Makefile.am): Likewise.
58716         * modules/mbschr-tests (Makefile.am): Likewise.
58717         * modules/mbscspn-tests (Makefile.am): Likewise.
58718         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
58719         * modules/mbspbrk-tests (Makefile.am): Likewise.
58720         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
58721         * modules/mbsrchr-tests (Makefile.am): Likewise.
58722         * modules/mbsspn-tests (Makefile.am): Likewise.
58723         * modules/mbsstr-tests (Makefile.am): Likewise.
58724         * modules/printf-posix-tests (Makefile.am): Likewise.
58725         * modules/snprintf-posix-tests (Makefile.am): Likewise.
58726         * modules/sprintf-posix-tests (Makefile.am): Likewise.
58727         * modules/tsearch-tests (Makefile.am): Likewise.
58728         * modules/uniname/uniname-tests (Makefile.am): Likewise.
58729         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
58730         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
58731         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
58732         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
58733         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
58734         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
58735         * modules/vprintf-posix-tests (Makefile.am): Likewise.
58736         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
58737         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
58738         * modules/xstrtoimax-tests (Makefile.am): Likewise.
58739         * modules/xstrtol-tests (Makefile.am): Likewise.
58740         * modules/xstrtoumax-tests (Makefile.am): Likewise.
58741         * modules/yesno-tests (Makefile.am): Likewise.
58742
58743 2007-10-03  Bruno Haible  <bruno@clisp.org>
58744
58745         * modules/trunc-tests: New file.
58746         * tests/test-trunc.c: New file.
58747
58748         * modules/trunc: New file.
58749         * lib/trunc.c: New file.
58750         * m4/trunc.m4: New file.
58751         * lib/math.in.h (trunc): New declaration.
58752         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
58753         HAVE_DECL_TRUNC.
58754         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
58755         HAVE_DECL_TRUNC.
58756         * doc/functions/trunc.texi: Mention the 'trunc' module.
58757
58758 2007-10-03  Bruno Haible  <bruno@clisp.org>
58759
58760         * tests/test-fpending.c: New file, mostly copied
58761         from coreutils/lib/t-fpending.c.
58762         * modules/fpending-tests: New file.
58763
58764 2007-10-03  Bruno Haible  <bruno@clisp.org>
58765
58766         Port the stdio extensions to QNX (untested).
58767         * lib/fseterr.c (fseterr): Add support for QNX.
58768         * lib/fbufmode.c (fbufmode): Likewise.
58769         * lib/freadable.c (freadable): Likewise.
58770         * lib/fwritable.c (fwritable): Likewise.
58771         * lib/freading.c (freading): Likewise.
58772         * lib/fwriting.c (fwriting): Likewise.
58773         * lib/freadahead.c (freadahed): Likewise.
58774         * lib/fpurge.c (fpurge): Likewise.
58775         * lib/fseeko.c (rpl_fseeko): Likewise.
58776
58777 2007-10-03  Bruno Haible  <bruno@clisp.org>
58778             Jim Meyering  <jim@meyering.net>
58779             Eric Blake  <ebb9@byu.net>
58780
58781         * doc/relocatable.texi: Use @command instead of @program.
58782
58783 2007-10-02  Jim Meyering  <jim@meyering.net>
58784
58785         Perform one more "_.h" -> ".in.h" substitution.
58786         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
58787         instead of unistd_.h here, too.
58788
58789 2007-10-01  Bruno Haible  <bruno@clisp.org>
58790
58791         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
58792         Needed for the alloca-opt module.
58793
58794 2007-09-30  Bruno Haible  <bruno@clisp.org>
58795
58796         * lib/alloca.in.h: Renamed from lib/alloca_.h.
58797         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
58798         alloca_.h.
58799         * lib/argz.in.h: Renamed from lib/argz_.h.
58800         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
58801         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
58802         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
58803         byteswap_.h.
58804         * lib/dirent.in.h: Renamed from lib/dirent_.h.
58805         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
58806         dirent_.h.
58807         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
58808         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
58809         fcntl_.h.
58810         * lib/float.in.h: Renamed from lib/float_.h.
58811         * modules/float (Files, Makefile.am): Use float.in.h instead of
58812         float_.h.
58813         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
58814         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
58815         fnmatch_.h.
58816         * lib/getopt.in.h: Renamed from lib/getopt_.h.
58817         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
58818         getopt_.h.
58819         * lib/glob.in.h: Renamed from lib/glob_.h.
58820         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
58821         * lib/iconv.in.h: Renamed from lib/iconv_.h.
58822         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
58823         iconv_.h.
58824         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
58825         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
58826         inttypes_.h.
58827         * lib/locale.in.h: Renamed from lib/locale_.h.
58828         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
58829         locale_.h.
58830         * lib/math.in.h: Renamed from lib/math_.h.
58831         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
58832         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
58833         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
58834         of netinet_in_.h. Add dependency.
58835         * lib/poll.in.h: Renamed from lib/poll_.h.
58836         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
58837         * lib/search.in.h: Renamed from lib/search_.h.
58838         * modules/search (Files, Makefile.am): Use search.in.h instead of
58839         search_.h.
58840         * lib/signal.in.h: Renamed from lib/signal_.h.
58841         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
58842         _signal.h.
58843         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
58844         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
58845         stdbool_.h.
58846         * lib/stdint.in.h: Renamed from lib/stdint_.h.
58847         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
58848         stdint_.h.
58849         * lib/stdio.in.h: Renamed from lib/stdio_.h.
58850         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
58851         stdio_.h.
58852         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
58853         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
58854         stdlib_.h.
58855         * lib/string.in.h: Renamed from lib/string_.h.
58856         * modules/string (Files, Makefile.am): Use string.in.h instead of
58857         string_.h.
58858         * doc/gnulib-tool.texi (Initial import): Update.
58859         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
58860         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
58861         of sys_select_.h. Add dependency.
58862         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
58863         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
58864         of sys_socket_.h.
58865         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
58866         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
58867         sys_stat_.h.
58868         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
58869         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
58870         sys_time_.h.
58871         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
58872         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
58873         sysexits_.h.
58874         * lib/time.in.h: Renamed from lib/time_.h.
58875         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
58876         * lib/unistd.in.h: Renamed from lib/unistd_.h.
58877         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
58878         unistd_.h.
58879         * lib/wchar.in.h: Renamed from lib/wchar_.h.
58880         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
58881         wchar_.h.
58882         * lib/wctype.in.h: Renamed from lib/wctype_.h.
58883         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
58884         wctype_.h.
58885         * build-aux/bootstrap (slurp): Update.
58886         * lib/.cppi-disable: Update.
58887
58888 2007-09-30  Bruno Haible  <bruno@clisp.org>
58889
58890         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
58891         Needed on BeOS.
58892
58893 2007-09-30  Bruno Haible  <bruno@clisp.org>
58894
58895         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
58896
58897 2007-09-29  Bruno Haible  <bruno@clisp.org>
58898
58899         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
58900
58901 2007-09-29  Bruno Haible  <bruno@clisp.org>
58902
58903         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
58904         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
58905         * build-aux/install-reloc: Compile also areadlink.c.
58906         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
58907
58908 2007-09-29  Bruno Haible  <bruno@clisp.org>
58909
58910         * gnulib-tool (func_emit_initmacro_done): Indentation.
58911
58912 2007-09-29  Bruno Haible  <bruno@clisp.org>
58913
58914         * README: Add CVS checkout update instructions.
58915         Info from Bob Proulx <bob@proulx.com>.
58916
58917 2007-09-28  Eric Blake  <ebb9@byu.net>
58918
58919         Provide move-if-change.
58920         * build-aux/move-if-change: New file, based on best practice
58921         rather than any canonical upstream location.
58922
58923 2007-09-28  Jim Meyering  <jim@meyering.net>
58924
58925         Fix canonicalize loop-detection corner case.
58926         Do not attempt to stat the symlink values stored via seen_triple.
58927         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
58928         on linux-2.6.18, (but not 2.6.22).
58929         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
58930         triple_compare.  The former compares dev,ino,filename, while the latter
58931         would actually stat dirname(filename) when dev and ino were equal.
58932         * lib/hash-triple.c: Install <string.h>.
58933         (STREQ): Define.
58934         (triple_compare_ino_str): New function.
58935         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
58936
58937 2007-09-28  Eric Blake  <ebb9@byu.net>
58938
58939         Enforce that AC_REPLACE_FUNCS files exist.
58940         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
58941         override check for typos.
58942
58943         Fix test-closein on Solaris 10.
58944         * tests/test-closein.c (main): Don't assume stdin can be inherited
58945         closed on all systems.
58946         * tests/test-closein.sh: Likewise.
58947         Reported by Piotr Tarnowski.
58948
58949 2007-09-28  Jim Meyering  <jim@meyering.net>
58950
58951         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
58952
58953 2007-09-27  Jim Meyering  <jim@meyering.net>
58954
58955         canonicalize: Avoid a false-positive cycle failure.
58956         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
58957         Sort.  Remove cycle-check.
58958         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
58959         not cycle-check.h.
58960         (seen_triple): New function.
58961         (canonicalize_filename_mode): Use it instead of cycle-check.
58962         * tests/test-canonicalize.c: Add a test for this bug.
58963         * tests/test-canonicalize.sh: Set up and run the test.
58964
58965         New module, file-set, from coreutils.
58966         * modules/file-set: Define it.
58967         * lib/file-set.c, lib/file-set.h: Implement.
58968
58969         New module, hash-triple, from coreutils.
58970         * modules/hash-triple: Define it.
58971         * lib/hash-triple.c, lib/hash-triple.h: Implement.
58972
58973 2007-09-25  Eric Blake  <ebb9@byu.net>
58974
58975         Fix strerror on Interix.
58976         * lib/string_.h (strerror): Declare replacement.
58977         * doc/functions/strerror.texi (strerror): Document the Interix
58978         shortcoming.
58979         * modules/string (Makefile.am): Support new hooks.
58980         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
58981         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
58982         gl_FUNC_STRERROR_SEPARATE.
58983         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
58984         * lib/strerror.c (rpl_strerror): Provide replacement.
58985         * modules/strerror (Depends-on): Add string.
58986         (configure.ac): Detect use of module.
58987         * tests/test-strerror.c: New file.
58988         * modules/strerror-tests: New test module.
58989         * modules/argp (Depends-on): Add strerror.
58990         * modules/error (Depends-on): Likewise.
58991         Reported by Martin Koeppe.
58992
58993 2007-09-24  Bruno Haible  <bruno@clisp.org>
58994
58995         * README: Update git instructions.
58996
58997 2007-09-24  Eric Blake  <ebb9@byu.net>
58998
58999         Revert fpending breakage from 2007-09-08.
59000         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
59001         __fpending.c.
59002
59003 2007-09-24  Jim Meyering  <jim@meyering.net>
59004
59005         filenamecat.c: Add a test.
59006         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
59007         showing how the function works when DIR is the empty string.
59008
59009 2007-09-21  Simon Josefsson  <simon@josefsson.org>
59010
59011         * tests/test-canonicalize.sh: Turn on executable bit.
59012
59013 2007-09-19  Eric Blake  <ebb9@byu.net>
59014
59015         * README: Update CVS instructions.
59016
59017 2007-09-18  Bruno Haible  <bruno@clisp.org>
59018
59019         * modules/areadlink: New file.
59020         * lib/areadlink.h (areadlink): New declaration.
59021         * lib/areadlink.c: New file, based on lib/xreadlink.c.
59022
59023 2007-09-17  Jim Meyering  <jim@meyering.net>
59024
59025         * lib/savewd.c (ESTALE) [!defined]: Define.
59026         Reported to be required on Interix by Martin Koeppe.
59027
59028 2007-09-17  Bruno Haible  <bruno@clisp.org>
59029
59030         * gnulib-tool (func_version): Use $version.
59031
59032 2007-09-16  Bruno Haible  <bruno@clisp.org>
59033
59034         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
59035         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
59036         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
59037         Reported by Greg Schafer <gschafer@zip.com.au>.
59038
59039 2007-09-15  Bruno Haible  <bruno@clisp.org>
59040
59041         * gnulib-tool (sed): Try a little harder to make bash understand the
59042         alias.
59043         Reported by Bruce Korb <bruce.korb@gmail.com>.
59044
59045 2007-09-13  Eric Blake  <ebb9@byu.net>
59046
59047         * ChangeLog: Remove conflict markers.
59048
59049 2007-09-13  Simon Josefsson  <simon@josefsson.org>
59050
59051         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
59052         Reported by Bruno Haible <bruno@clisp.org>.
59053
59054 2007-09-12  Bruno Haible  <bruno@clisp.org>
59055
59056         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
59057         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
59058         is not defined.
59059
59060 2007-09-12  Eric Blake  <ebb9@byu.net>
59061
59062         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
59063         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
59064         Autoconf definition.
59065         * modules/euidaccess (Depends-on): Add extensions, for
59066         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
59067         * modules/fnmatch (Depends-on): Likewise.
59068         * modules/getaddrinfo (Depends-on): Likewise.
59069         * modules/getdelim (Depends-on): Likewise.
59070         * modules/getline (Depends-on): Likewise.
59071         * modules/getsubopt (Depends-on): Likewise.
59072         * modules/gettext (Depends-on): Likewise.
59073         * modules/group-member (Depends-on): Likewise.
59074         * modules/mbchar (Depends-on): Likewise.
59075         * modules/memmem (Depends-on): Likewise.
59076         * modules/mempcpy (Depends-on): Likewise.
59077         * modules/memrchr (Depends-on): Likewise.
59078         * modules/pagealign_alloc (Depends-on): Likewise.
59079         * modules/readutmp (Depends-on): Likewise.
59080         * modules/stpcpy (Depends-on): Likewise.
59081         * modules/stpncpy (Depends-on): Likewise.
59082         * modules/strchrnul (Depends-on): Likewise.
59083         * modules/strndup (Depends-on): Likewise.
59084         * modules/strsep (Depends-on): Likewise.
59085         * modules/strverscmp (Depends-on): Likewise.
59086         * modules/vasprintf (Depends-on): Likewise.
59087         * modules/wcwidth (Depends-on): Likewise.
59088         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
59089         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
59090         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
59091         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
59092         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
59093         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59094         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
59095         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
59096         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
59097         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
59098         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
59099         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
59100         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
59101         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
59102         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
59103         * m4/readutmp.m4 (gl_READUTMP): Likewise.
59104         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
59105         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
59106         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
59107         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
59108         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
59109         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
59110         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
59111         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
59112         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
59113         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
59114         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
59115         so that lock.m4 can be used in gettext without extensions module.
59116
59117 2007-09-11  Bruno Haible  <bruno@clisp.org>
59118
59119         * m4/isc-posix.m4: Remove file.
59120         Suggested by Eric Blake.
59121
59122 2007-09-11  Eric Blake  <ebb9@byu.net>
59123
59124         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
59125
59126 2007-09-10  Bruno Haible  <bruno@clisp.org>
59127
59128         * posix-modules: Fix typo in error message.
59129         Reported by Matt <mkraai@beckman.com>.
59130
59131 2007-09-09  Bruno Haible  <bruno@clisp.org>
59132
59133         * doc/functions/getdelim.texi: Update list of platforms lacking the
59134         function.
59135         * doc/functions/getline.texi: Likewise.
59136
59137 2007-09-09  Jim Meyering  <jim@meyering.net>
59138
59139         * lib/hash.c (hash_initialize): Detect calloc failure.
59140         Reported by Bruno Haible.
59141
59142 2007-09-09  Bruno Haible  <bruno@clisp.org>
59143
59144         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
59145         malloc or realloc fails.
59146
59147 2007-09-09  Bruno Haible  <bruno@clisp.org>
59148
59149         * modules/getcwd (Depends-on): Add malloc-posix.
59150         * modules/glob (Depends-on): Likewise.
59151         * modules/putenv (Depends-on): Likewise.
59152         * modules/strdup (Depends-on): Likewise.
59153         * modules/getdelim (Depends-on): Add realloc-posix.
59154         * modules/read-file (Depends-on): Likewise.
59155
59156 2007-09-09  Bruno Haible  <bruno@clisp.org>
59157
59158         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
59159         (gl_FUNC_MALLOC_POSIX): Require it.
59160         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
59161         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
59162         * modules/realloc (Files): Add m4/malloc.m4.
59163         * modules/calloc (Files): Likewise.
59164
59165 2007-09-09  Bruno Haible  <bruno@clisp.org>
59166
59167         * modules/malloc-posix: New file.
59168         * modules/malloc (Depends-on): Add malloc-posix.
59169         * lib/malloc.c: Include errno.h.
59170         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
59171         and a POSIX-compatible malloc into a single function. Set ENOMEM
59172         when returning NULL.
59173         * m4/malloc.m4: New file.
59174         * doc/functions/malloc.texi: Mention the malloc-posix module.
59175         * lib/stdlib_.h (malloc): New declaration.
59176         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59177         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
59178         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
59179         and HAVE_MALLOC_POSIX.
59180
59181 2007-09-09  Bruno Haible  <bruno@clisp.org>
59182
59183         * modules/realloc-posix: New file.
59184         * modules/realloc (Depends-on): Add realloc-posix.
59185         * lib/realloc.c: Include errno.h.
59186         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
59187         and a POSIX-compatible realloc into a single function. Set ENOMEM
59188         when returning NULL.
59189         * m4/realloc.m4: New file.
59190         * doc/functions/realloc.texi: Mention the realloc-posix module.
59191         * lib/stdlib_.h (realloc): New declaration.
59192         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59193         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
59194         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
59195         and HAVE_REALLOC_POSIX.
59196
59197 2007-09-09  Bruno Haible  <bruno@clisp.org>
59198
59199         * modules/calloc-posix: New file.
59200         * modules/calloc (Depends-on): Add calloc-posix.
59201         * lib/calloc.c: Include errno.h.
59202         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
59203         and a POSIX-compatible calloc into a single function. Set ENOMEM
59204         when returning NULL.
59205         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
59206         * doc/functions/calloc.texi: Mention the calloc-posix module.
59207         * lib/stdlib_.h (calloc): New declaration.
59208         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
59209         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
59210         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
59211         and HAVE_CALLOC_POSIX.
59212
59213 2007-09-09  Bruno Haible  <bruno@clisp.org>
59214
59215         Allow for modules to show an arbitrary notice.
59216         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
59217         * gnulib-tool: New option --extract-notice.
59218         (func_usage): Document it.
59219         (sed_extract_prog): Update.
59220         (func_get_notice): New function.
59221         (func_modules_notice): New function.
59222         (func_import, func_create_testdir): Invoke it.
59223         Suggested by Jim Meyering.
59224
59225 2007-09-09  Bruno Haible  <bruno@clisp.org>
59226
59227         * gnulib-tool: New options --verbose, --quiet.
59228         (func_usage): Document them.
59229         (verbose): New variable.
59230         (func_execute_command): New function.
59231         (func_import): Don't show the module list and the file list if
59232         $verbose < 0.
59233         (func_create_testdir): Likewise. Use func_execute_command.
59234         (func_create_megatestdir): Use func_execute_command.
59235
59236 2007-09-08  Bruno Haible  <bruno@clisp.org>
59237
59238         * gnulib-tool (func_import): Prefer rsync over wget when available,
59239         for fetching the PO files.
59240
59241 2007-09-08  Bruno Haible  <bruno@clisp.org>
59242
59243         * posix-modules: New file. Portions copied from gnulib-tool.
59244         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
59245
59246 2007-09-08  Jim Meyering  <jim@meyering.net>
59247
59248         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
59249         * lib/fpending.h: Rename from __fpending.h.
59250         * lib/fpending.c: Rename from __fpending.c.
59251         Include "fpending.h", not "__fpending.h".
59252         * lib/__fpending.h, lib/__fpending.c: Remove files.
59253         * modules/fpending (Files): Reflect new file names.
59254         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
59255
59256 2007-09-08  Bruno Haible  <bruno@clisp.org>
59257
59258         * m4/inttypes-h.m4: Remove stub file.
59259
59260 2007-09-07  Simon Josefsson  <simon@josefsson.org>
59261
59262         * doc/headers/stdint.texi: Discuss #include_next issue.
59263
59264 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
59265
59266         * build-aux/bootstrap: Remove obsolete comment about wget --help.
59267
59268 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59269
59270         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
59271         in variable name.
59272
59273 2007-09-03  Jim Meyering  <jim@meyering.net>
59274
59275         New module: git-version-gen.
59276         * modules/git-version-gen: New file.
59277
59278         Import changes from coreutils for bootstrap script.
59279
59280         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
59281
59282         bootstrap: uses rsync to download the .po files
59283         * build-aux/bootstrap (po_download_command_format): New global.
59284         (download_po_files): Use rsync.
59285         (update_po_files): Don't remove .po files after download,
59286         so future rsync runs can take advantage of the copies.
59287
59288         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
59289
59290         Solve the unnecessary-.po-file-regeneration problem once and for all.
59291         * build-aux/bootstrap (download_po_files): New function, renamed from
59292         get_translations.  Now, downloads, but doesn't update LINGUAS.
59293         (update_po_files): New function.
59294
59295         bootstrap: Ignore more.
59296         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
59297         uniwidth to e.g., lib/.gitignore.
59298         (slurp): Handle the sys_stat_.h -> sys mapping, too.
59299
59300         * build-aux/bootstrap: New setting: vc_ignore.
59301         (insert_sorted_if_absent): Create $file if absent.
59302         Adapt to new, possibly empty, list: $vc_ignore.
59303
59304         bootstrap: generate more ignorable names
59305         * build-aux/bootstrap (slurp): When generating ignorable names,
59306         also map .sin to .sed, .gperf to .c, and .y to .c.
59307
59308 2007-09-03  Jim Meyering  <jim@meyering.net>
59309
59310         * build-aux/git-version-gen: New file, from coreutils.  For details, see
59311         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
59312
59313 2007-09-02  Bruno Haible  <bruno@clisp.org>
59314
59315         Fix mis-recognition of 'mcs' on QNX 6.
59316         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
59317         output contains the string "Mono".
59318         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
59319         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
59320
59321 2007-09-01  Bruno Haible  <bruno@clisp.org>
59322
59323         Fix collision between uniwidth/* and linebreak modules.
59324         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
59325         u32_width): Remove declarations.
59326         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
59327         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
59328         streq3, streq2, streq1, streq0): Remove functions.
59329         (STREQ): Remove macro.
59330         (is_cjk_encoding): Remove function.
59331         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
59332         (uc_width, u8_width, u16_width, u32_width): Remove functions.
59333         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
59334         * NEWS: Document the change.
59335
59336 2007-09-01  Bruno Haible  <bruno@clisp.org>
59337
59338         * lib/streq.h: Add double-inclusion guard.
59339
59340 2007-09-01  Karl Berry  <karl@gnu.org>
59341
59342         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
59343
59344 2007-08-28  Jim Meyering  <jim@meyering.net>
59345
59346         Rename mreadlink_with_size to areadlink_with_size.
59347         * NEWS: Document the change.
59348         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
59349         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
59350         * lib/mreadlink.h: Rename this to...
59351         * lib/areadlink.h: ...this.
59352         * modules/mreadlink-with-size: Rename this to...
59353         * modules/areadlink-with-size: ...this.
59354         * lib/canonicalize.c: Reflect the renaming.
59355         * modules/canonicalize: Likewise.
59356
59357 2007-08-26  Bruno Haible  <bruno@clisp.org>
59358
59359         * gnulib-tool (func_import): When deciding which files to remove,
59360         consider also dangling symbolic links.
59361         Reported by Eric Blake.
59362
59363 2007-08-26  Bruno Haible  <bruno@clisp.org>
59364
59365         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
59366
59367 2007-08-23  Simon Josefsson  <simon@josefsson.org>
59368
59369         * lib/readline.c: Don't include getline.h, the prototype is now
59370         found in stdio.h.
59371
59372 2007-08-23  Jim Meyering  <jim@meyering.net>
59373
59374         Getdelim touchup.
59375         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
59376         around the funlockfile call, since funlockfile never sets errno.
59377         Don't set errno upon failed realloc.
59378
59379 2007-08-22  Eric Blake  <ebb9@byu.net>
59380
59381         Getline touchups.
59382         * lib/getdelim.c (getdelim): Revert regression that required *n to
59383         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
59384         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
59385         getdelim, rather than whether implementation is missing.
59386         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
59387         * lib/stdio_.h (getline): Also declare if replacement is
59388         required.
59389         * doc/functions/getdelim.texi: New file.
59390         * doc/functions/getline.texi: Likewise.
59391         * doc/gnulib.texi (Function Substitutes): Add new files.
59392         Reported by Bruno Haible.
59393
59394 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
59395
59396         * users.txt: Add Guile.
59397
59398 2007-08-22  Eric Blake  <ebb9@byu.net>
59399
59400         * tests/test-getdelim.c (main): Use remove, not unlink.
59401         * tests/test-getline.c (main): Likewise.
59402
59403         Move getline and getdelim into stdio.h, per POSIX 200x.
59404         * modules/getline (Files): Remove getline.h.
59405         (Depends-on): Add stdio.
59406         (configure.ac): Add module indicator.
59407         * modules/getdelim (Files): Remove getdelim.h.
59408         (Depends-on): Add stdio.
59409         (configure.ac): Add module indicator.
59410         * modules/stdio (Makefile.am): Work with new indicators.
59411         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
59412         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
59413         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
59414         * lib/getdelim.h: Delete.
59415         * lib/getline.h: Delete.
59416         * lib/stdio_.h (getdelim, getline): Declare.
59417         * modules/getdelim-tests: New module.
59418         * modules/getline-tests: Likewise.
59419         * tests/test-getdelim.c: New file.
59420         * tests/test-getline.c: Likewise.
59421         * NEWS: Document the change.
59422         * lib/getline.c: Update choice of header.
59423         * lib/csharpcomp.c: Likewise.
59424         * lib/getpass.c: Likewise.
59425         * lib/javacomp.c: Likewise.
59426         * lib/javaversion.c: Likewise.
59427         * lib/yesno.c: Likewise.
59428         * lib/getdelim.c: Likewise.
59429         (getdelim): Set errno on failure, and avoid memory leak.
59430
59431 2007-08-19  Bruno Haible  <bruno@clisp.org>
59432
59433         * modules/closein (Depends-on): Add freadahead.
59434         * lib/closein.c: Include freadahead.h.
59435         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
59436         is zero.
59437
59438 2007-08-19  Bruno Haible  <bruno@clisp.org>
59439
59440         * modules/freadahead-tests: New file.
59441         * tests/test-freadahead.sh: New file.
59442         * tests/test-freadahead.c: New file.
59443
59444         * modules/freadahead: New file.
59445         * lib/freadahead.h: New file.
59446         * lib/freadahead.c: New file.
59447         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
59448         fbufmode, fpurge, freadable, fwritable.
59449
59450 2007-08-19  Eric Blake  <ebb9@byu.net>
59451
59452         Test yesno in combination with closein.
59453         * lib/yesno.c (yesno): Document use of stdin.
59454         * modules/yesno-tests (Files): New module.
59455         * tests/test-yesno.c (main): New file.
59456         * tests/test-yesno.sh: Likewise.
59457
59458 2007-08-19  Bruno Haible  <bruno@clisp.org>
59459
59460         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
59461         * lib/fseeko.c (rpl_fseeko): Likewise.
59462         * lib/fseterr.c (fseterr): Likewise.
59463
59464 2007-08-19  Bruno Haible  <bruno@clisp.org>
59465
59466         * tests/test-lseek.c (main): Disable a test for BeOS.
59467         * doc/functions/lseek.texi: Document the BeOS bug.
59468
59469 2007-08-19  Bruno Haible  <bruno@clisp.org>
59470             Eric Blake  <ebb9@byu.net>
59471
59472         * lib/lseek.c: Include <sys/stat.h>.
59473         (rpl_lseek): Add workaround code also for Unix platforms.
59474         Needed for BeOS.
59475         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
59476         * doc/functions/lseek.texi: Document BeOS definiency.
59477
59478 2007-08-18  Bruno Haible  <bruno@clisp.org>
59479
59480         * modules/fstrcmp-tests: New file.
59481         * tests/test-fstrcmp.c: New file.
59482
59483 2007-08-18  Bruno Haible  <bruno@clisp.org>
59484
59485         * modules/fstrcmp: New file, from GNU gettext with modifications.
59486         * lib/fstrcmp.h: New file, from GNU gettext.
59487         * lib/fstrcmp.c: New file, from GNU gettext.
59488         * MODULES.html.sh (String handling): Add fstrcmp.
59489
59490 2007-08-18  Bruno Haible  <bruno@clisp.org>
59491
59492         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
59493         'bool'.
59494         (diag, compareseq): Remove const from the ctxt argument.
59495         (USE_HEURISTIC): Undefine at the end.
59496
59497 2007-08-18  Jim Meyering  <jim@meyering.net>
59498
59499         New file: lib/idcache.h
59500         * NEWS: Mention the addition.
59501         * modules/idcache (Files): Add lib/idcache.h
59502         * lib/idcache.c: Include "idcache.h".
59503         Don't include <sys/types.h>.
59504         Add a FIXME comment.
59505         Move file-scoped "static" declarations to the top.
59506         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
59507
59508 2007-08-17  Bruno Haible  <bruno@clisp.org>
59509         and Paul Eggert  <eggert@cs.ucla.edu>
59510
59511         * MODULES.html.sh: Add diffseq.
59512         * modules/diffseq: New file.
59513         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
59514         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
59515
59516 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
59517
59518         Import changes from coreutils for bootstrap script.
59519
59520         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
59521
59522         * build-aux/bootstrap (slurp): Work even in environments where
59523         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
59524         current code does not slurp files whose names start with ".", and
59525         this looks like it might be a troublesome area.
59526
59527         2007-07-11  Jim Meyering  <jim@meyering.net>
59528
59529         If there's a GPL vN copyright comment, require that N == 3.
59530
59531         2007-07-08  Jim Meyering  <jim@meyering.net>
59532
59533         Run the coreutils-specific code only if tests/Makefile.am.in exists.
59534         * build-aux/bootstrap (mam_template): Move definition out of loop.
59535
59536         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
59537
59538         * build-aux/bootstrap (symlink_to_dir): Rename function from
59539         symlink_to_gnulib.  Add a directory parameter.  Update all
59540         callers.
59541         (cp_mark_as_generated): Also check for -- and link to -- files in
59542         gl/.
59543
59544         2007-07-08  Jim Meyering  <jim@meyering.net>
59545
59546         Adapt to deeper hierarchy in gnulib.
59547         * build-aux/bootstrap (symlink_to_dir): If the destination
59548         directory doesn't exist, create it. This is required at least for
59549         "lib/uniwidth/cjk.h".
59550
59551         2007-05-15  Jim Meyering  <jim@meyering.net>
59552
59553         * build-aux/bootstrap: Now that generated Makefile.am files
59554         are no longer under version control, they must be created at
59555         bootstrap time.
59556
59557 2007-08-14  Ben Pfaff  <blp@gnu.org>
59558
59559         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
59560
59561 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
59562
59563         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
59564         given the changes below.
59565         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
59566         even on hosts that have padding bits beyond the supported 64.
59567
59568 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
59569
59570         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
59571         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
59572         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
59573         depends on it.
59574         (xstrtol_error): Remove.
59575         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
59576         but with a different signature.
59577         (ATTRIBUTE_NORETURN, __attribute__): New macros.
59578         * lib/xstrtol-error.c: Include exitfail.h.
59579         (xstrtol_fatal): New function, with a different signature from the
59580         old xstrtol_error, so that the caller need not worry about passing
59581         in an exit status, or about storage management of the option argument.
59582         (xstrtol_error): Now a static function.  Redo signature to
59583         implement xstrtol_fatal.  Output the correct number of hyphens in
59584         front of the option so that the caller need not worry about
59585         storage management.
59586         (N_): New macro.
59587         (_): Remove; not used now.
59588         * modules/xstrtol: Depend on getopt.
59589         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
59590         of old STRTOL_FATAL_ERROR macro.
59591         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
59592         of test program.
59593         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
59594         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
59595
59596 2007-08-08  Eric Blake  <ebb9@byu.net>
59597
59598         * lib/xstrtol-error.c: Add missing include.
59599
59600         Move xstrtol messages into gnulib domain, when --pobase is used.
59601         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
59602         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
59603         * modules/xstrtol (Files): Distribute new file.
59604         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
59605         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
59606         * tests/test-xstrtol.c: ...into new file.
59607         * tests/test-xstrtoul.c: Also test xstrtoul.
59608         * tests/test-xstrtoimax.c: Also test xstrtoimax.
59609         * tests/test-xstrtoumax.c: Also test xstrtoumax.
59610         * tests/test-xstrtol.sh: Drive the tests.
59611         * tests/test-xstrtoimax.sh: Likewise.
59612         * tests/test-xstrtoumax.sh: Likewise.
59613         * modules/xstrtol-tests: New module.
59614         * modules/xstrtoimax-tests: Likewise.
59615         * modules/xstrtoumax-tests: Likewise.
59616
59617 2007-08-08  Jim Meyering  <jim@meyering.net>
59618
59619         New function: mfile_name_concat.
59620         * lib/filenamecat.c (mfile_name_concat): New function, just like
59621         file_name_concat, but return NULL upon failure rather than exiting
59622         with a diagnostic.
59623         * lib/filenamecat.h: Declare it.
59624
59625 2007-08-07  Bruno Haible  <bruno@clisp.org>
59626
59627         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
59628         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
59629         warning from gcc.
59630         Reported by Eric Blake.
59631
59632 2007-08-07  Simon Josefsson  <simon@josefsson.org>
59633
59634         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
59635         * modules/crypto/arcfour (License): Likewise.
59636         * modules/crypto/des-tests (License): Likewise.
59637         * modules/crypto/gc-arctwo-tests (License): Likewise.
59638         * modules/crypto/gc-des-tests (License): Likewise.
59639         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
59640         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
59641         * modules/crypto/gc-md2-tests (License): Likewise.
59642         * modules/crypto/gc-md4-tests (License): Likewise.
59643         * modules/crypto/gc-md5-tests (License): Likewise.
59644         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
59645         * modules/crypto/gc-rijndael-tests (License): Likewise.
59646         * modules/crypto/gc-sha1-tests (License): Likewise.
59647         * modules/crypto/gc-tests (License): Likewise.
59648         * modules/crypto/hmac-md5 (License): Likewise.
59649         * modules/crypto/hmac-sha1 (License): Likewise.
59650         * modules/crypto/md2-tests (License): Likewise.
59651         * modules/crypto/md4-tests (License): Likewise.
59652         * modules/crypto/md5 (License): Likewise.
59653         * modules/crypto/rijndael (License): Likewise.
59654         * modules/crypto/sha1 (License): Likewise.
59655         * modules/memxor (License): Likewise.
59656
59657 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
59658         and Bruno Haible  <bruno@clisp.org>
59659
59660         * NEWS: Describe interface changes to human, xstrtol.
59661         * lib/human.h: Include <xstrtol.h>.
59662         (human_options): Return enum strtol_error, not int.  Remove
59663         bool arg; take int * instead.
59664         * lib/human.c: Don't include "gettext.h".
59665         (_): Remove; no longer used.
59666         Don't include <xstrtol.h>, since human.h does it.
59667         (human_options): Adjust to abovementioned interface changes.
59668         Do not report error to stderr; that's now the caller's
59669         responsibility.
59670         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
59671         interface change.
59672         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
59673         Str, Argument_type_string.  All uses changed.  Put " argument"
59674         in diagnostics to make them clearer.  Change wording of suffix
59675         message for clarity.
59676         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
59677         Argument_type_string.
59678         (STRTOL_FATAL_WARN): Remove; no longer used.
59679         * modules/human (Depends-on): Remove gettext-h.
59680
59681 2007-08-06  Simon Josefsson  <simon@josefsson.org>
59682
59683         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
59684
59685 2007-07-31  Bruno Haible  <bruno@clisp.org>
59686
59687         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
59688         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
59689         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
59690
59691 2007-07-31  Bruno Haible  <bruno@clisp.org>
59692
59693         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
59694         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
59695
59696 2007-07-30  Bruno Haible  <bruno@clisp.org>
59697
59698         * modules/base64 (License): Use the synonymous term "LGPLv2+".
59699         * modules/c-ctype (License): Likewise.
59700         * modules/c-strcase (License): Likewise.
59701         * modules/check-version (License): Likewise.
59702         * modules/iconv (License): Likewise.
59703         * modules/iconv_open (License): Likewise.
59704         * modules/read-file (License): Likewise.
59705         * modules/striconv (License): Likewise.
59706         * modules/strverscmp (License): Likewise.
59707         * modules/vasprintf (License): Likewise.
59708         * modules/crypto/des (License): Likewise.
59709         * modules/crypto/gc (License): Likewise.
59710         * modules/crypto/gc-arcfour (License): Likewise.
59711         * modules/crypto/gc-arctwo (License): Likewise.
59712         * modules/crypto/gc-des (License): Likewise.
59713         * modules/crypto/gc-hmac-md5 (License): Likewise.
59714         * modules/crypto/gc-hmac-sha1 (License): Likewise.
59715         * modules/crypto/gc-md2 (License): Likewise.
59716         * modules/crypto/gc-md4 (License): Likewise.
59717         * modules/crypto/gc-md5 (License): Likewise.
59718         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
59719         * modules/crypto/gc-random (License): Likewise.
59720         * modules/crypto/gc-rijndael (License): Likewise.
59721         * modules/crypto/gc-sha1 (License): Likewise.
59722         * modules/crypto/md2 (License): Likewise.
59723         * modules/crypto/md4 (License): Likewise.
59724
59725 2007-07-30  Jim Meyering  <jim@meyering.net>
59726
59727         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
59728         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
59729         it has valid stat data.  This bug would cause du not to count the
59730         sizes of inaccessible directories.
59731         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
59732         in <http://bugzilla.redhat.com/250077>.
59733
59734 2007-07-25  Peter O'Gorman  <peter@pogma.com>
59735             Bruno Haible  <bruno@clisp.org>
59736
59737         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
59738         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
59739         #include_next, gives a diagnostic about it, but reports no error in
59740         the exit code.
59741         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
59742
59743 2007-07-24  Ben Pfaff  <blp@gnu.org>
59744
59745         Improve name: "count-one-bits" is better than "popcount".
59746         * MODULES.html.sh: Update name.
59747         * lib/popcount.h: Renamed lib/count-one-bits.h.
59748         (popcount): Renamed count_one_bits.
59749         (popcountl): Renamed count_one_bits_l.
59750         (popcountll): Renamed count_one_bits_ll.
59751         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
59752         * modules/popcount: Renamed module/count-one-bits.
59753         * modules/popcount-tests: Renamed module/count-one-bits-tests.
59754         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
59755
59756 2007-07-23  Ben Pfaff  <blp@gnu.org>
59757
59758         * lib/popcount.h (popcount32): Reduce size of constants, to allow
59759         better code generation, and add U to large constants to avoid
59760         warnings, in non-GCC case.
59761         Suggested by Bruno Haible.
59762
59763 2007-07-23  Ben Pfaff  <blp@gnu.org>
59764
59765         * lib/popcount.h: Use verify_true instead of if...abort.
59766         * modules/popcount: Depend on verify module.
59767         Suggested by Jim Meyering.
59768
59769 2007-07-23  Bruno Haible  <bruno@clisp.org>
59770
59771         * gnulib-tool (func_import): Create a .cvsignore file also when the
59772         directory is not yet in CVS but the toplevel directory is. When
59773         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
59774         Reported by Karl Berry.
59775
59776 2007-07-22  Ben Pfaff  <blp@gnu.org>
59777
59778         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
59779         case.
59780         Suggested by Eric Blake.
59781
59782 2007-07-22  Ben Pfaff  <blp@gnu.org>
59783
59784         New module: popcount.
59785         * MODULES.html.sh: Add popcount.
59786         * modules/popcount: New file.
59787         * modules/popcount-tests: New file.
59788         * tests/test-popcount.c: New file.
59789         * lib/popcount.h: New file.
59790         * m4/popcount.m4: New file.
59791
59792 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
59793
59794         * build-aux/announce-gen: Update to GPLv3.
59795
59796         * build-aux/config.guess: Update from config.
59797
59798 2007-07-21  Bruno Haible  <bruno@clisp.org>
59799
59800         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
59801         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
59802
59803 2007-07-20  Jim Meyering  <jim@meyering.net>
59804
59805         * check-module: Diagnose a self-dependency.
59806
59807 2007-07-19  Bruno Haible  <bruno@clisp.org>
59808
59809         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
59810         empty.
59811         Reported by Eric Blake.
59812
59813 2007-07-18  Bruno Haible  <bruno@clisp.org>
59814
59815         * gnulib-tool: New options --po-base, --po-domain.
59816         (func_usage): Document them.
59817         (pobase, po_domain): New variables.
59818         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
59819         DEFAULT_TEXT_DOMAIN.
59820         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
59821         (func_import): Consider pobase and po_domain. Create a po/ directory.
59822         (func_create_testdir): Set pobase and po_domain to empty.
59823         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
59824         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
59825
59826 2007-07-18  Bruno Haible  <bruno@clisp.org>
59827
59828         * gnulib-tool (func_get_automake_snippet): Synthesize also an
59829         EXTRA_DIST augmentation for files in build-aux/.
59830
59831 2007-07-16  Bruno Haible  <bruno@clisp.org>
59832
59833         * modules/lseek (License): Use the synonymous term "LGPLv2+".
59834         * modules/getdelim (License): Likewise.
59835
59836 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
59837
59838         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
59839         * modules/d-type (License): Likewise.
59840         * modules/extensions (License): Likewise.
59841         * modules/fnmatch (License): Likewise.
59842         * modules/fseeko (License): Likewise.
59843         * modules/getaddrinfo (License): Likewise.
59844         * modules/getline (License): Likewise.
59845         * modules/getlogin_r (License): Likewise.
59846         * modules/getpass (License): Likewise.
59847         * modules/gettimeofday (License): Likewise.
59848         * modules/glob (License): Likewise.
59849         * modules/inet_ntop (License): Likewise.
59850         * modules/malloc (License): Likewise.
59851         * modules/malloca (License): Likewise.
59852         * modules/memmem (License): Likewise.
59853         * modules/mempcpy (License): Likewise.
59854         * modules/memset (License): Likewise.
59855         * modules/minmax (License): Likewise.
59856         * modules/mktime (License): Likewise.
59857         * modules/netinet_in (License): Likewise.
59858         * modules/pathmax (License): Likewise.
59859         * modules/poll (License): Likewise.
59860         * modules/regex (License): Likewise.
59861         * modules/snprintf (License): Likewise.
59862         * modules/stdbool (License): Likewise.
59863         * modules/stdint (License): Likewise.
59864         * modules/stdio (License): Likewise.
59865         * modules/strcase (License): Likewise.
59866         * modules/strcasestr (License): Likewise.
59867         * modules/strdup (License): Likewise.
59868         * modules/string (License): Likewise.
59869         * modules/strndup (License): Likewise.
59870         * modules/strnlen (License): Likewise.
59871         * modules/strpbrk (License): Likewise.
59872         * modules/strptime (License): Likewise.
59873         * modules/strsep (License): Likewise.
59874         * modules/sys_select (License): Likewise.
59875         * modules/sys_socket (License): Likewise.
59876         * modules/sys_stat (License): Likewise.
59877         * modules/sys_time (License): Likewise.
59878         * modules/time (License): Likewise.
59879         * modules/time_r (License): Likewise.
59880         * modules/timegm (License): Likewise.
59881         * modules/unistd (License): Likewise.
59882         * modules/vsnprintf (License): Likewise.
59883         * modules/wctype (License): Likewise.
59884
59885 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59886
59887         * modules/argz (License): LGPLv2+.
59888
59889 2007-07-15  Karl Berry  <karl@gnu.org>
59890
59891         * doc/gnulib.texi: revise node structure per new fdl.texi.
59892
59893 2007-07-14  Bruno Haible  <bruno@clisp.org>
59894
59895         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
59896         the output file.
59897         * lib/uniname/uninames.h: Regenerated.
59898
59899 2007-07-14  Karl Berry  <karl@gnu.org>
59900
59901         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
59902         omitting sectioning and index commands.
59903
59904 2007-07-13  Bruno Haible  <bruno@clisp.org>
59905
59906         New gnulib-tool option --more-symlinks.
59907         * gnulib-tool (func_usage): Document --more-symlinks.
59908         (do_copyrights): New variable.
59909         Recognize option --more-symlinks.
59910         (func_import): Don't add a copyright notice transform to
59911         sed_transform_lib_file if do_copyrights is empty.
59912
59913 2007-07-13  Bruno Haible  <bruno@clisp.org>
59914
59915         * lib/vasnprintf.c (decimal_point_char): Define also if
59916         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
59917         && !NEED_PRINTF_DIRECTIVE_A.
59918         Reported by Clemens Koller <clemens.koller@anagramm.de> via
59919         Gary V. Vaughan <gary@gnu.org>.
59920
59921 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
59922
59923         * lib/inttypes_.h: Undo previous change, since it was fixed
59924         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
59925
59926 2007-07-13  Bruno Haible  <bruno@clisp.org>
59927
59928         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
59929         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
59930
59931 2007-07-13  Jim Meyering  <jim@meyering.net>
59932
59933         df: Don't fail for Tru64's "file-on-file mount".
59934         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
59935         so we fall through and use statfs instead.  Details here:
59936         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
59937         Reported by Albert Chin.
59938
59939 2007-07-13  Bruno Haible  <bruno@clisp.org>
59940
59941         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
59942         * modules/configmake (License): Likewise.
59943         * modules/gettext (License): Likewise.
59944         * modules/gettext-h (License): Likewise.
59945         * modules/include_next (License): Likewise.
59946         * modules/link-warning (License): Likewise.
59947         * modules/localcharset (License): Likewise.
59948         * modules/localename (License): Likewise.
59949         * modules/lock (License): Likewise.
59950         * modules/relocatable-lib-lgpl (License): Likewise.
59951         * modules/size_max (License): Likewise.
59952         * modules/vasnprintf (License): Likewise.
59953         * modules/wchar (License): Likewise.
59954         * modules/xsize (License): Likewise.
59955
59956 2007-07-13  Bruno Haible  <bruno@clisp.org>
59957
59958         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
59959         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
59960
59961 2007-07-12  Bruno Haible  <bruno@clisp.org>
59962
59963         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
59964         in the modules files.
59965
59966 2007-07-11  Karl Berry  <karl@gnu.org>
59967
59968         * MODULES.html.sh (func_module): use
59969          sed -e '\|^'"${includefile}"'$|d'
59970          instead of /.../d, to avoid errors on $includefile's containing /.
59971
59972 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
59973
59974         * gnulib-tool (func_import): Avoid duplication of --avoid
59975         statements
59976         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
59977         names to `_' in variable names.
59978
59979 2007-07-10  Eric Blake  <ebb9@byu.net>
59980
59981         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
59982         * NEWS: Document this change.
59983
59984 2007-07-08  Bruno Haible  <bruno@clisp.org>
59985
59986         Update to Unicode 5.0.
59987         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
59988         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
59989         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
59990         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
59991         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
59992         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
59993         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
59994         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
59995         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
59996         U+10A3F, U+1D242..U+1D244.
59997         (nonspacing_table_ind): Update.
59998         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
59999         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
60000
60001 2007-07-08  Bruno Haible  <bruno@clisp.org>
60002
60003         Update to Unicode 5.0.
60004         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
60005         code transform. Extend the name index field of unicode_name_to_code and
60006         unicode_code_to_name from 16 to 24 bits.
60007         * lib/uniname/uniname.c (unicode_character_name,
60008         unicode_name_character): Add the range 0x12xxx to the code transform.
60009         * lib/uniname/uninames.h: Regenerated.
60010         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
60011
60012 2007-07-07  Bruno Haible  <bruno@clisp.org>
60013
60014         * modules/wcwidth-tests: New file.
60015         * tests/test-wcwidth.c: New file.
60016
60017         Work around MacOS X wcwidth() bug.
60018         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
60019         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
60020         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
60021         original wcwidth in non-UTF-8 locales.
60022         * modules/wcwidth (Depends-on): Add localcharset, streq,
60023         uniwidth/width.
60024         * doc/functions/wcwidth.texi: Update.
60025
60026 2007-07-07  Bruno Haible  <bruno@clisp.org>
60027
60028         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
60029         (wcwidth): New declaration.
60030         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
60031         macros.
60032         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
60033         here. Prepare for creating <wchar.h> unconditionally.
60034         * modules/wchar (Depends-on): Add link-warning.
60035         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
60036         REPLACE_WCWIDTH, and GL_LINK_WARNING.
60037         * lib/wcwidth.h: Remove file.
60038         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
60039         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
60040         * modules/wcwidth (Files): Remove lib/wcwidth.h.
60041         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
60042         (Include): Replace wcwidth.h with <wchar.h>.
60043         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
60044         * lib/mbchar.h: Don't include wcwidth.h.
60045         * lib/mbswidth.c: Likewise.
60046         * NEWS: Mention the change.
60047
60048 2007-07-07  Bruno Haible  <bruno@clisp.org>
60049
60050         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
60051         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
60052         definition with an external declaration.
60053         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
60054         defined as a function. Remove AC_C_INLINE requirement.
60055         * modules/wcwidth (Files): Add lib/wcwidth.c.
60056         (Makefile.am): Remove redundant statement.
60057
60058 2007-07-07  Bruno Haible  <bruno@clisp.org>
60059
60060         * MODULES.html.sh (Unicode string functions): Add the new modules.
60061
60062         * tests/uniwidth/test-u32-strwidth.c: New file.
60063         * modules/uniwidth/u32-strwidth-tests: New file.
60064
60065         * lib/uniwidth/u32-strwidth.c: New file.
60066         * modules/uniwidth/u32-strwidth: New file.
60067
60068         * tests/uniwidth/test-u16-strwidth.c: New file.
60069         * modules/uniwidth/u16-strwidth-tests: New file.
60070
60071         * lib/uniwidth/u16-strwidth.c: New file.
60072         * modules/uniwidth/u16-strwidth: New file.
60073
60074         * tests/uniwidth/test-u8-strwidth.c: New file.
60075         * modules/uniwidth/u8-strwidth-tests: New file.
60076
60077         * lib/uniwidth/u8-strwidth.c: New file.
60078         * modules/uniwidth/u8-strwidth: New file.
60079
60080         * tests/uniwidth/test-u32-width.c: New file.
60081         * modules/uniwidth/u32-width-tests: New file.
60082
60083         * lib/uniwidth/u32-width.c: New file.
60084         * modules/uniwidth/u32-width: New file.
60085
60086         * tests/uniwidth/test-u16-width.c: New file.
60087         * modules/uniwidth/u16-width-tests: New file.
60088
60089         * lib/uniwidth/u16-width.c: New file.
60090         * modules/uniwidth/u16-width: New file.
60091
60092         * tests/uniwidth/test-u8-width.c: New file.
60093         * modules/uniwidth/u8-width-tests: New file.
60094
60095         * lib/uniwidth/u8-width.c: New file.
60096         * modules/uniwidth/u8-width: New file.
60097
60098         * tests/uniwidth/test-uc_width.c: New file.
60099         * modules/uniwidth/width-tests: New file.
60100
60101         * lib/uniwidth/width.c: New file, from GNU libiconv.
60102         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
60103         * modules/uniwidth/width: New file.
60104
60105         * lib/uniwidth.h: New file, from GNU libiconv.
60106         * modules/uniwidth/base: New file.
60107
60108 2007-07-07  Bruno Haible  <bruno@clisp.org>
60109
60110         * lib/uniname.h: New file, from GNU gettext.
60111         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
60112         * lib/uniname/uninames.h: New file, from GNU gettext.
60113         * lib/uniname/uniname.c: New file, from GNU gettext.
60114         * tests/uniname/test-uninames.sh: New file.
60115         * tests/uniname/test-uninames.c: New file, from GNU gettext.
60116         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
60117         * modules/uniname/base: New file.
60118         * modules/uniname/uniname: New file.
60119         * modules/uniname/uniname-tests: New file.
60120         * MODULES.html.sh (Unicode string functions): Add the new modules.
60121
60122 2007-07-06  Bruno Haible  <bruno@clisp.org>
60123
60124         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
60125
60126 2007-07-06  Bruno Haible  <bruno@clisp.org>
60127
60128         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
60129         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
60130         includes <cygwin/sys_time.h> which includes <sys/select.h> which
60131         include <sys/time.h>.
60132         Reported by Eric Blake.
60133
60134 2007-07-06  Eric Blake  <ebb9@byu.net>
60135
60136         Fix testing canonicalize on cygwin.
60137         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
60138         Revert patch from 2007-06-19.
60139         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
60140         canonicalize module is also in use.
60141         * tests/test-canonicalize.c: New file.
60142         * tests/test-canonicalize.sh: Likewise.
60143         * modules/canonicalize-tests: Likewise.
60144
60145 2007-07-06  Jim Meyering  <jim@meyering.net>
60146
60147         * lib/getugroups.c (getugroups): Detect getgrent failure.
60148         Adjust comment to reflect reality: this function may return -1.
60149
60150 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
60151
60152         * build-aux/bootstrap (TP_URL,get_translations): Update to use
60153         the new TP address.
60154         (usage): Fix typo
60155         (gnulib_mk): New variable.
60156
60157 2007-07-05  Jim Meyering  <jim@meyering.net>
60158
60159         Don't let endgrent clobber errno, no matter how improbable.
60160         * lib/getugroups.c (getugroups): Save and restore errno around
60161         endgrent call.
60162
60163         Close the group DB even when failing with 2^31 or more members.
60164         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
60165
60166 2007-07-04  Jim Meyering  <jim@meyering.net>
60167
60168         * lib/getugroups.h: New file.
60169         * lib/getugroups.c: Include "getugroups.h".
60170         Remove uses of "register" keyword.
60171         Move local variable, "cp", down into scope where used.
60172         Give "username" parameter the "const" attribute.
60173         * modules/getugroups (Files): Add lib/getugroups.h
60174
60175 2007-07-04  Karl Berry  <karl@gnu.org>
60176
60177         * MODULES.html.sh (func_all_modules): Complete rename of
60178         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
60179
60180 2007-07-02  Bruno Haible  <bruno@clisp.org>
60181
60182         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
60183         mode, when inttypes.h comes from gnulib.
60184         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
60185
60186 2007-07-02  Simon Josefsson  <simon@josefsson.org>
60187
60188         * NEWS: Mention lgpl module name change.
60189
60190         * modules/lgpl-2.1: Renamed from lgpl.
60191
60192         * NEWS: Mention gpl module name change.
60193
60194         * modules/gpl-3.0: New file, based on gpl-2.0.
60195
60196         * modules/gpl-2.0: Renamed from gpl.
60197
60198         * modules/gpl: Fix filename, doc/gpl.texi is now found at
60199         doc/gpl-2.0.texi.
60200
60201 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
60202
60203         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
60204         #define __STDC_LIMIT_MACROS temporarily while including
60205         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
60206         Problem reported by Joel E. Denny in
60207         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
60208
60209 2007-07-01  Bruno Haible  <bruno@clisp.org>
60210
60211         * lib/unistdio.h: New file.
60212         * lib/unistdio/u-asnprintf.h: New file.
60213         * lib/unistdio/u-asprintf.h: New file.
60214         * lib/unistdio/u-printf-args.c: New file.
60215         * lib/unistdio/u-printf-args.h: New file.
60216         * lib/unistdio/u-printf-parse.h: New file.
60217         * lib/unistdio/u-snprintf.h: New file.
60218         * lib/unistdio/u-sprintf.h: New file.
60219         * lib/unistdio/u-vasprintf.h: New file.
60220         * lib/unistdio/u-vsnprintf.h: New file.
60221         * lib/unistdio/u-vsprintf.h: New file.
60222         * lib/unistdio/ulc-asnprintf.c: New file.
60223         * lib/unistdio/ulc-asprintf.c: New file.
60224         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
60225         * lib/unistdio/ulc-printf-parse.c: New file.
60226         * lib/unistdio/ulc-snprintf.c: New file.
60227         * lib/unistdio/ulc-sprintf.c: New file.
60228         * lib/unistdio/ulc-vasnprintf.c: New file.
60229         * lib/unistdio/ulc-vasprintf.c: New file.
60230         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
60231         * lib/unistdio/ulc-vsnprintf.c: New file.
60232         * lib/unistdio/ulc-vsprintf.c: New file.
60233         * lib/unistdio/u8-asnprintf.c: New file.
60234         * lib/unistdio/u8-asprintf.c: New file.
60235         * lib/unistdio/u8-printf-parse.c: New file.
60236         * lib/unistdio/u8-snprintf.c: New file.
60237         * lib/unistdio/u8-sprintf.c: New file.
60238         * lib/unistdio/u8-vasnprintf.c: New file.
60239         * lib/unistdio/u8-vasprintf.c: New file.
60240         * lib/unistdio/u8-vsnprintf.c: New file.
60241         * lib/unistdio/u8-vsprintf.c: New file.
60242         * lib/unistdio/u8-u8-asnprintf.c: New file.
60243         * lib/unistdio/u8-u8-asprintf.c: New file.
60244         * lib/unistdio/u8-u8-snprintf.c: New file.
60245         * lib/unistdio/u8-u8-sprintf.c: New file.
60246         * lib/unistdio/u8-u8-vasnprintf.c: New file.
60247         * lib/unistdio/u8-u8-vasprintf.c: New file.
60248         * lib/unistdio/u8-u8-vsnprintf.c: New file.
60249         * lib/unistdio/u8-u8-vsprintf.c: New file.
60250         * lib/unistdio/u16-asnprintf.c: New file.
60251         * lib/unistdio/u16-asprintf.c: New file.
60252         * lib/unistdio/u16-printf-parse.c: New file.
60253         * lib/unistdio/u16-snprintf.c: New file.
60254         * lib/unistdio/u16-sprintf.c: New file.
60255         * lib/unistdio/u16-vasnprintf.c: New file.
60256         * lib/unistdio/u16-vasprintf.c: New file.
60257         * lib/unistdio/u16-vsnprintf.c: New file.
60258         * lib/unistdio/u16-vsprintf.c: New file.
60259         * lib/unistdio/u16-u16-asnprintf.c: New file.
60260         * lib/unistdio/u16-u16-asprintf.c: New file.
60261         * lib/unistdio/u16-u16-snprintf.c: New file.
60262         * lib/unistdio/u16-u16-sprintf.c: New file.
60263         * lib/unistdio/u16-u16-vasnprintf.c: New file.
60264         * lib/unistdio/u16-u16-vasprintf.c: New file.
60265         * lib/unistdio/u16-u16-vsnprintf.c: New file.
60266         * lib/unistdio/u16-u16-vsprintf.c: New file.
60267         * lib/unistdio/u32-asnprintf.c: New file.
60268         * lib/unistdio/u32-asprintf.c: New file.
60269         * lib/unistdio/u32-printf-parse.c: New file.
60270         * lib/unistdio/u32-snprintf.c: New file.
60271         * lib/unistdio/u32-sprintf.c: New file.
60272         * lib/unistdio/u32-vasnprintf.c: New file.
60273         * lib/unistdio/u32-vasprintf.c: New file.
60274         * lib/unistdio/u32-vsnprintf.c: New file.
60275         * lib/unistdio/u32-vsprintf.c: New file.
60276         * lib/unistdio/u32-u32-asnprintf.c: New file.
60277         * lib/unistdio/u32-u32-asprintf.c: New file.
60278         * lib/unistdio/u32-u32-snprintf.c: New file.
60279         * lib/unistdio/u32-u32-sprintf.c: New file.
60280         * lib/unistdio/u32-u32-vasnprintf.c: New file.
60281         * lib/unistdio/u32-u32-vasprintf.c: New file.
60282         * lib/unistdio/u32-u32-vsnprintf.c: New file.
60283         * lib/unistdio/u32-u32-vsprintf.c: New file.
60284         * tests/unistdio/test-ulc-asnprintf1.c: New file.
60285         * tests/unistdio/test-ulc-asnprintf1.h: New file.
60286         * tests/unistdio/test-ulc-printf1.h: New file.
60287         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
60288         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
60289         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
60290         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
60291         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
60292         * tests/unistdio/test-ulc-vasprintf1.c: New file.
60293         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
60294         * tests/unistdio/test-ulc-vsprintf1.c: New file.
60295         * tests/unistdio/test-u8-asnprintf1.c: New file.
60296         * tests/unistdio/test-u8-asnprintf1.h: New file.
60297         * tests/unistdio/test-u8-printf1.h: New file.
60298         * tests/unistdio/test-u8-vasnprintf1.c: New file.
60299         * tests/unistdio/test-u8-vasnprintf2.c: New file.
60300         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
60301         * tests/unistdio/test-u8-vasnprintf3.c: New file.
60302         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
60303         * tests/unistdio/test-u8-vasprintf1.c: New file.
60304         * tests/unistdio/test-u8-vsnprintf1.c: New file.
60305         * tests/unistdio/test-u8-vsprintf1.c: New file.
60306         * tests/unistdio/test-u16-asnprintf1.c: New file.
60307         * tests/unistdio/test-u16-asnprintf1.h: New file.
60308         * tests/unistdio/test-u16-printf1.h: New file.
60309         * tests/unistdio/test-u16-vasnprintf1.c: New file.
60310         * tests/unistdio/test-u16-vasnprintf2.c: New file.
60311         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
60312         * tests/unistdio/test-u16-vasnprintf3.c: New file.
60313         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
60314         * tests/unistdio/test-u16-vasprintf1.c: New file.
60315         * tests/unistdio/test-u16-vsnprintf1.c: New file.
60316         * tests/unistdio/test-u16-vsprintf1.c: New file.
60317         * tests/unistdio/test-u32-asnprintf1.c: New file.
60318         * tests/unistdio/test-u32-asnprintf1.h: New file.
60319         * tests/unistdio/test-u32-printf1.h: New file.
60320         * tests/unistdio/test-u32-vasnprintf1.c: New file.
60321         * tests/unistdio/test-u32-vasnprintf2.c: New file.
60322         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
60323         * tests/unistdio/test-u32-vasnprintf3.c: New file.
60324         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
60325         * tests/unistdio/test-u32-vasprintf1.c: New file.
60326         * tests/unistdio/test-u32-vsnprintf1.c: New file.
60327         * tests/unistdio/test-u32-vsprintf1.c: New file.
60328         * modules/unistdio/base: New file.
60329         * modules/unistdio/u-printf-args: New file.
60330         * modules/unistdio/ulc-asnprintf: New file.
60331         * modules/unistdio/ulc-asprintf: New file.
60332         * modules/unistdio/ulc-fprintf: New file.
60333         * modules/unistdio/ulc-printf-parse: New file.
60334         * modules/unistdio/ulc-snprintf: New file.
60335         * modules/unistdio/ulc-sprintf: New file.
60336         * modules/unistdio/ulc-vasnprintf: New file.
60337         * modules/unistdio/ulc-vasprintf: New file.
60338         * modules/unistdio/ulc-vfprintf: New file.
60339         * modules/unistdio/ulc-vsnprintf: New file.
60340         * modules/unistdio/ulc-vsprintf: New file.
60341         * modules/unistdio/u8-asnprintf: New file.
60342         * modules/unistdio/u8-asprintf: New file.
60343         * modules/unistdio/u8-printf-parse: New file.
60344         * modules/unistdio/u8-snprintf: New file.
60345         * modules/unistdio/u8-sprintf: New file.
60346         * modules/unistdio/u8-vasnprintf: New file.
60347         * modules/unistdio/u8-vasprintf: New file.
60348         * modules/unistdio/u8-vsnprintf: New file.
60349         * modules/unistdio/u8-vsprintf: New file.
60350         * modules/unistdio/u8-u8-asnprintf: New file.
60351         * modules/unistdio/u8-u8-asprintf: New file.
60352         * modules/unistdio/u8-u8-snprintf: New file.
60353         * modules/unistdio/u8-u8-sprintf: New file.
60354         * modules/unistdio/u8-u8-vasnprintf: New file.
60355         * modules/unistdio/u8-u8-vasprintf: New file.
60356         * modules/unistdio/u8-u8-vsnprintf: New file.
60357         * modules/unistdio/u8-u8-vsprintf: New file.
60358         * modules/unistdio/u16-asnprintf: New file.
60359         * modules/unistdio/u16-asprintf: New file.
60360         * modules/unistdio/u16-printf-parse: New file.
60361         * modules/unistdio/u16-snprintf: New file.
60362         * modules/unistdio/u16-sprintf: New file.
60363         * modules/unistdio/u16-vasnprintf: New file.
60364         * modules/unistdio/u16-vasprintf: New file.
60365         * modules/unistdio/u16-vsnprintf: New file.
60366         * modules/unistdio/u16-vsprintf: New file.
60367         * modules/unistdio/u16-u16-asnprintf: New file.
60368         * modules/unistdio/u16-u16-asprintf: New file.
60369         * modules/unistdio/u16-u16-snprintf: New file.
60370         * modules/unistdio/u16-u16-sprintf: New file.
60371         * modules/unistdio/u16-u16-vasnprintf: New file.
60372         * modules/unistdio/u16-u16-vasprintf: New file.
60373         * modules/unistdio/u16-u16-vsnprintf: New file.
60374         * modules/unistdio/u16-u16-vsprintf: New file.
60375         * modules/unistdio/u32-asnprintf: New file.
60376         * modules/unistdio/u32-asprintf: New file.
60377         * modules/unistdio/u32-printf-parse: New file.
60378         * modules/unistdio/u32-snprintf: New file.
60379         * modules/unistdio/u32-sprintf: New file.
60380         * modules/unistdio/u32-vasnprintf: New file.
60381         * modules/unistdio/u32-vasprintf: New file.
60382         * modules/unistdio/u32-vsnprintf: New file.
60383         * modules/unistdio/u32-vsprintf: New file.
60384         * modules/unistdio/u32-u32-asnprintf: New file.
60385         * modules/unistdio/u32-u32-asprintf: New file.
60386         * modules/unistdio/u32-u32-snprintf: New file.
60387         * modules/unistdio/u32-u32-sprintf: New file.
60388         * modules/unistdio/u32-u32-vasnprintf: New file.
60389         * modules/unistdio/u32-u32-vasprintf: New file.
60390         * modules/unistdio/u32-u32-vsnprintf: New file.
60391         * modules/unistdio/u32-u32-vsprintf: New file.
60392         * modules/unistdio/ulc-asnprintf-tests: New file.
60393         * modules/unistdio/ulc-vasnprintf-tests: New file.
60394         * modules/unistdio/ulc-vasprintf-tests: New file.
60395         * modules/unistdio/ulc-vsnprintf-tests: New file.
60396         * modules/unistdio/ulc-vsprintf-tests: New file.
60397         * modules/unistdio/u8-asnprintf-tests: New file.
60398         * modules/unistdio/u8-vasnprintf-tests: New file.
60399         * modules/unistdio/u8-vasprintf-tests: New file.
60400         * modules/unistdio/u8-vsnprintf-tests: New file.
60401         * modules/unistdio/u8-vsprintf-tests: New file.
60402         * modules/unistdio/u16-asnprintf-tests: New file.
60403         * modules/unistdio/u16-vasnprintf-tests: New file.
60404         * modules/unistdio/u16-vasprintf-tests: New file.
60405         * modules/unistdio/u16-vsnprintf-tests: New file.
60406         * modules/unistdio/u16-vsprintf-tests: New file.
60407         * modules/unistdio/u32-asnprintf-tests: New file.
60408         * modules/unistdio/u32-vasnprintf-tests: New file.
60409         * modules/unistdio/u32-vasprintf-tests: New file.
60410         * modules/unistdio/u32-vsnprintf-tests: New file.
60411         * modules/unistdio/u32-vsprintf-tests: New file.
60412         * MODULES.html.sh (Unicode string functions): Add the new modules.
60413
60414 2007-07-01  Bruno Haible  <bruno@clisp.org>
60415
60416         * lib/sprintf.c (sprintf): Limit the available length estimation,
60417         to avoid address wraparound.
60418         * lib/vsprintf.c (vsprintf): Likewise.
60419         * modules/sprintf-posix (Dependencies): Add stdint.
60420         * modules/vsprintf-posix (Dependencies): Likewise.
60421
60422 2007-07-01  Bruno Haible  <bruno@clisp.org>
60423
60424         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
60425         Windows PATH as well. Conservative double-quoting. Comments.
60426
60427 2007-07-01  Bruno Haible  <bruno@clisp.org>
60428             Eric Blake  <ebb9@byu.net>
60429             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60430
60431         * gnulib-tool (self_abspathname): Fix algorithm to cope with
60432         empty components in $PATH, denoting '.'.
60433
60434 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60435
60436         * gnulib-tool: Fix indentation.
60437         (func_create_megatestdir): Likewise.
60438         Report by Bruno Haible.
60439
60440 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60441
60442         Sync from Automake.
60443         * build-aux/gnupload: Fix shell portability issues with for loops.
60444         Report by Karl Berry.
60445
60446 2007-06-29  Simon Josefsson  <simon@josefsson.org>
60447
60448         * build-aux/maint.mk (POURL): Use translationproject.org.
60449
60450 2007-06-27  Simon Josefsson  <simon@josefsson.org>
60451             Bruno Haible  <bruno@clisp.org>
60452
60453         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
60454         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
60455         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
60456         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
60457         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
60458
60459 2007-06-27  Bruno Haible  <bruno@clisp.org>
60460
60461         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
60462         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
60463
60464 2007-06-26  Karl Berry  <karl@gnu.org>
60465
60466         * MODULES.html.sh: remove xreadlink-with-size.
60467
60468 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
60469
60470         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
60471         method that I hope also handles the double-include problem noted
60472         by Bruno Haible in
60473         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
60474
60475 2007-06-23  Bruno Haible  <bruno@clisp.org>
60476
60477         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
60478         Don't let the 'mostlyclean' target fail if the last subdirectory could
60479         not be removed.
60480         Reported by Karl Berry.
60481
60482 2007-06-23  Bruno Haible  <bruno@clisp.org>
60483
60484         * gnulib-tool (echo): Add a speedier workaround for ksh.
60485         * tests/test-echo.sh: Likewise.
60486
60487 2007-06-23  Bruno Haible  <bruno@clisp.org>
60488
60489         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
60490         * tests/test-echo.sh: Likewise.
60491
60492 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60493
60494         * gnulib-tool (IFS): Initialize early, so we don't set it to
60495         empty later.
60496         (self_abspathname): Rewrite algorithm to set it, reindent.
60497         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
60498         (func_create_megatestdir): Merge some sed scripts.
60499
60500 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
60501
60502         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
60503         exposed by Sun Studio 11 cc on Solaris 8.
60504
60505 2007-06-22  Bruno Haible  <bruno@clisp.org>
60506
60507         * gnulib-tool (echo): Ensure the echo primitive does not interpret
60508         backslashes.
60509         * tests/test-echo.sh: New file.
60510
60511 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60512
60513         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
60514         simplify `sed_replace_build_aux' scripts, they are portable but
60515         echoing them with `echo' is not.
60516         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
60517
60518 2007-06-21  Karl Berry  <karl@gnu.org>
60519
60520         * config/srclist.txt: guess we can't handle the licenses via
60521         srclist at the moment.
60522
60523 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
60524
60525         * MODULES.html.sh: Add include_next.
60526         * modules/include_next: New file.
60527
60528 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
60529
60530         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
60531         INCLUDE_NEXT.
60532         (gl_CHECK_NEXT_HEADERS): New macro.
60533         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
60534         the obsolescent gl_ABSOLUTE_HEADER.
60535         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
60536         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
60537         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
60538         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
60539         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
60540         * m4/math_h.m4 (gl_MATH_H): Likewise.
60541         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
60542         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
60543         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
60544         * m4/stdint.m4 (gl_STDINT_H): Likewise.
60545         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
60546         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
60547         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
60548         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60549         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
60550         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
60551         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
60552         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
60553         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
60554         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
60555         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
60556         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
60557         * m4/inttypes.m4 (gl_INTTYPES_H): Define
60558         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
60559         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
60560         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
60561         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
60562         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
60563         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
60564         * lib/float_.h: Likewise.
60565         * lib/inttypes_.h: Likewise.
60566         * lib/math_.h: Likewise.
60567         * lib/search_.h: Likewise.
60568         * lib/signal_.h: Likewise.
60569         * lib/stdint_.h: Likewise.
60570         * lib/stdio_.h: Likewise.
60571         * lib/stdlib_.h: Likewise.
60572         * lib/string_.h: Likewise.
60573         * lib/sys_stat_.h: Likewise.
60574         * lib/sys_time_.h: Likewise.
60575         * lib/time_.h: Likewise.
60576         * lib/unistd_.h: Likewise.
60577         * lib/wchar_.h: Likewise.
60578         * lib/wctype_.h: Likewise.
60579         * lib/dirent_.h: Likewise.
60580         * lib/iconv_.h: Likewise.
60581         * lib/locale_.h: Likewise.
60582         * lib/netinet_in_.h: Likewise.
60583         * lib/sys_select_.h: Likewise.
60584         * lib/sys_socket_.h: Likewise.
60585         * lib/sysexits_.h: Likewise.
60586         * modules/fcntl (Depends-on): Depend on include_next, not
60587         absolute_header.
60588         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
60589         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
60590         * modules/fchdir: Likewise.
60591         * modules/float: Likewise.
60592         * modules/iconv_open: Likewise.
60593         * modules/inttypes: Likewise.
60594         * modules/locale: Likewise.
60595         * modules/math: Likewise.
60596         * modules/netinet_in: Likewise.
60597         * modules/search: Likewise.
60598         * modules/signal: Likewise.
60599         * modules/stdint: Likewise.
60600         * modules/stdio: Likewise.
60601         * modules/stdlib: Likewise.
60602         * modules/string: Likewise.
60603         * modules/sys_select: Likewise.
60604         * modules/sys_socket: Likewise.
60605         * modules/sys_stat: Likewise.
60606         * modules/sys_time: Likewise.
60607         * modules/sysexits: Likewise.
60608         * modules/time: Likewise.
60609         * modules/unistd: Likewise.
60610         * modules/wchar: Likewise.
60611         * modules/wctype: Likewise.
60612         * modules/sys_stat: Change maintainer to "all".
60613         * modules/unistd: Likewise.
60614
60615 2007-06-20  Karl Berry  <karl@gnu.org>
60616
60617         * config/srclist.txt: track www changes in license files.
60618
60619 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
60620
60621         * build-aux/bootstrap: Remove stray dot.
60622         Make sure build_aux settings are honored when linking
60623         gnulib_extra_files.
60624
60625 2007-06-19  Eric Blake  <ebb9@byu.net>
60626
60627         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
60628         Allow compilation on cygwin.
60629
60630 2007-06-19  Jim Meyering  <jim@meyering.net>
60631
60632         xreadlink-with-size: Remove module.  No longer used.
60633         Ex-callers now use xreadlink or mreadlink-with-size.
60634         * modules/xreadlink-with-size: Remove module.
60635         * lib/xreadlink-with-size.c: Remove file.
60636         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
60637         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
60638         just before the function definition *is* accurate.
60639
60640         Eliminate one way canonicalize_filename_mode could exit.
60641         * lib/canonicalize.c (canonicalize_filename_mode):
60642         Use mreadlink_with_size, not xreadlink_with_size.
60643
60644 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
60645
60646         Detect porting problems to FreeBSD/arm, which has time_t wider than
60647         long int.  Original problem reported for GNU diff by Xin Li in
60648         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
60649         * modules/getdate (Depends-on): Add intprops, verify.
60650         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
60651         is an integer type no wider than long int.
60652
60653 2007-06-18  Jim Meyering  <jim@meyering.net>
60654
60655         New module: mreadlink-with-size.
60656         * MODULES.html.sh: Add mreadlink-with-size.
60657         * modules/mreadlink-with-size: New module
60658         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
60659         not xreadlink-with-size.
60660         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
60661
60662 2007-06-16  Bruno Haible  <bruno@clisp.org>
60663
60664         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
60665         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
60666         Reported by Gary V. Vaughan <gary@gnu.org>.
60667
60668 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
60669
60670         Revamp lchown so that it lives in unistd.h where it belongs.
60671         * lib/lchown.h: Remove.
60672         * lib/dirchownmod.c: Don't include lib/lchown.h.
60673         * lib/fchownat.c: Likewise.
60674         * lib/openat.c: Likewise.
60675         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
60676         does not follow symlinks.
60677         (EOPNOTSUPP): Define if not defined.
60678         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
60679         is defined to 0.
60680         (lchown): New decl.
60681         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
60682         Do not check for lchown decl.
60683         Set REPLACE_LCHOWN.
60684         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
60685         REPLACE_LCHOWN.
60686         * modules/chown: Make it clear it follows symlinks.
60687         * modules/lchown: Make it clear it doesn't follow symlinks.
60688         (Files): Remove lib/lchown.h
60689         (Depends-on): Add unistd.
60690         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
60691         (Include): Include <unistd.h>, not "lchown.h".
60692         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
60693         REPLACE_LCHOWN.
60694
60695 2007-06-15  Jim Meyering  <jim@meyering.net>
60696
60697         Change license (GPL to LGPL) of fsusage and dependents.
60698         * modules/fsusage (License): Change to LGPL.
60699         * modules/full-read (License): Likewise.
60700         * modules/full-write (License): Likewise.
60701         * modules/safe-read (License): Likewise.
60702         * modules/safe-write (License): Likewise.
60703
60704 2007-06-14  Ben Pfaff  <blp@gnu.org>
60705
60706         Missing part of allocsa -> malloca transition.
60707         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
60708         gl_MALLOCA.
60709
60710 2007-06-12  Bruno Haible  <bruno@clisp.org>
60711
60712         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
60713         to ia64, x86_64, i386.
60714         Reported by Eric Blake.
60715
60716 2007-06-12  Bruno Haible  <bruno@clisp.org>
60717
60718         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
60719         cross-compiling to x86_64.
60720
60721 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
60722
60723         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
60724         glitch reported by Ralf Wildenhues in
60725         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
60726
60727         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
60728         Vin Shelton.
60729
60730 2007-06-11  Bruno Haible  <bruno@clisp.org>
60731
60732         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
60733         replacement string.
60734         Reported by Eric Blake.
60735
60736 2007-06-10  Bruno Haible  <bruno@clisp.org>
60737
60738         Prepare vasnprintf code for use with Unicode strings.
60739         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
60740         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
60741         TYPE_U32_STRING.
60742         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
60743         a_u32_string variants.
60744         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
60745         * lib/printf-args.c: Don't include config.h and the specification
60746         header if PRINTF_FETCHARGS is already defined.
60747         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
60748         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
60749         TYPE_U16_STRING, TYPE_U32_STRING.
60750         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
60751         u16_directive, u16_directives, u32_directive, u32_directives): New
60752         types.
60753         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
60754         New declarations.
60755         * lib/printf-parse.c: Don't include config.h and the specification
60756         header if PRINTF_PARSE is already defined. Eliminate the set of
60757         parameters for WIDE_CHAR_VERSION; the user of this file must provide
60758         them now. Include c-ctype.h.
60759         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
60760         directive and CHAR_T_ONLY_ASCII.
60761         * lib/vasnprintf.c: Don't include config.h and the specification header
60762         if VASNPRINTF is already defined.
60763         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
60764         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
60765         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
60766         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
60767         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
60768         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
60769         code accordingly.
60770         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
60771         pad_ourselves also in this case, with the 'c' and 's' directives, and
60772         with a different notion of "width".
60773         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
60774
60775 2007-06-10  Bruno Haible  <bruno@clisp.org>
60776
60777         * modules/unistr/u32-mbsnlen: New file.
60778         * lib/unistr/u32-mbsnlen.c: New file.
60779
60780         * modules/unistr/u16-mbsnlen: New file.
60781         * lib/unistr/u16-mbsnlen.c: New file.
60782
60783         * modules/unistr/u8-mbsnlen: New file.
60784         * lib/unistr/u8-mbsnlen.c: New file.
60785
60786         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
60787         declarations.
60788
60789 2007-06-10  Bruno Haible  <bruno@clisp.org>
60790
60791         * lib/string_.h (mbsnlen): New declaration.
60792         * lib/mbsnlen.c: New file.
60793         * m4/mbsnlen.m4: New file.
60794         * modules/mbsnlen: New file.
60795         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
60796         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
60797         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
60798
60799 2007-06-10  Bruno Haible  <bruno@clisp.org>
60800
60801         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
60802
60803 2007-06-10  Bruno Haible  <bruno@clisp.org>
60804
60805         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
60806         * lib/mbuiter.h: Likewise.
60807
60808 2007-06-10  Bruno Haible  <bruno@clisp.org>
60809
60810         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
60811         declaration.
60812
60813 2007-06-10  Karl Berry  <karl@gnu.org>
60814
60815         * config/srclist.txt: remove gettext entries, Bruno prefers
60816         to update individually.
60817
60818 2007-06-10  Bruno Haible  <bruno@clisp.org>
60819
60820         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
60821         'maxlen'. Ensure only length + width bytes are allocated, not
60822         length + 1 + width.
60823
60824 2007-06-09  Bruno Haible  <bruno@clisp.org>
60825
60826         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
60827         (CHAR_T): Remove macro.
60828         (VASNPRINTF): Update.
60829
60830 2007-06-09  Bruno Haible  <bruno@clisp.org>
60831
60832         * MODULES.html.sh (Unicode string functions): Add the new modules.
60833
60834         * modules/uniconv/u32-conv-to-enc: New file.
60835         * lib/uniconv/u32-conv-to-enc.c: New file.
60836         * modules/uniconv/u32-conv-to-enc-tests: New file.
60837         * tests/uniconv/test-u32-conv-to-enc.c: New file.
60838
60839         * modules/uniconv/u16-conv-to-enc: New file.
60840         * lib/uniconv/u16-conv-to-enc.c: New file.
60841         * lib/uniconv/u-conv-to-enc.h: New file.
60842         * modules/uniconv/u16-conv-to-enc-tests: New file.
60843         * tests/uniconv/test-u16-conv-to-enc.c: New file.
60844
60845         * modules/uniconv/u8-conv-to-enc: New file.
60846         * lib/uniconv/u8-conv-to-enc.c: New file.
60847         * modules/uniconv/u8-conv-to-enc-tests: New file.
60848         * tests/uniconv/test-u8-conv-to-enc.c: New file.
60849
60850         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
60851         u32_conv_to_encoding): New declarations.
60852
60853 2007-06-09  Bruno Haible  <bruno@clisp.org>
60854
60855         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
60856
60857 2007-06-09  Bruno Haible  <bruno@clisp.org>
60858
60859         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
60860         * modules/malloca: Renamed from modules/allocsa, updated.
60861         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
60862         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
60863         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
60864         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
60865         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
60866         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
60867         * modules/xmalloca: Renamed from modules/xallocsa, updated.
60868         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
60869         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
60870         * modules/c-strcasestr (Depends-on): Update.
60871         * lib/c-strcasestr.c: Update.
60872         * modules/c-strstr (Depends-on): Update.
60873         * lib/c-strstr.c: Update.
60874         * modules/canonicalize-lgpl (Depends-on): Update.
60875         * lib/canonicalize-lgpl.c: Update.
60876         * modules/clean-temp (Depends-on): Update.
60877         * lib/clean-temp.c: Update.
60878         * modules/csharpcomp (Depends-on): Update.
60879         * lib/csharpcomp.c: Update.
60880         * modules/csharpexec (Depends-on): Update.
60881         * lib/csharpexec.c: Update.
60882         * modules/javacomp (Depends-on): Update.
60883         * lib/javacomp.c: Update.
60884         * modules/javaexec (Depends-on): Update.
60885         * lib/javaexec.c: Update.
60886         * modules/mbscasestr (Depends-on): Update.
60887         * lib/mbscasestr.c: Update.
60888         * modules/mbsstr (Depends-on): Update.
60889         * lib/mbsstr.c: Update.
60890         * modules/setenv (Depends-on): Update.
60891         * lib/setenv.c: Update.
60892         * modules/strcasestr (Depends-on): Update.
60893         * lib/strcasestr.c: Update.
60894         * modules/striconveha (Depends-on): Update.
60895         * lib/striconveha.c: Update.
60896         * modules/relocatable-prog-wrapper (Files): Update.
60897         * lib/relocwrapper.c: Update.
60898         * build-aux/install-reloc: Update.
60899         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
60900
60901 2007-06-08  Bruno Haible  <bruno@clisp.org>
60902
60903         Port to uClibc.
60904         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
60905         * lib/fpurge.c (fpurge): Likewise.
60906         * lib/freading.c (freading): Likewise.
60907         * lib/fseeko.c (rpl_fseeko): Likewise.
60908         * lib/fseterr.c (fseterr): Likewise.
60909         * lib/fwriting.c (fwriting): Likewise.
60910         * tests/test-fflush.c (main): Avoid a failure on uClibc.
60911
60912 2007-06-08  Bruno Haible  <bruno@clisp.org>
60913
60914         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
60915         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
60916         * modules/gettext (Files): Add m4/intlmacosx.m4.
60917
60918 2007-06-07  Bruno Haible  <bruno@clisp.org>
60919
60920         * modules/localename-tests: New file.
60921         * tests/test-localename.c: New file.
60922
60923         New module 'localename'.
60924         * lib/localename.h: New file.
60925         * lib/localename.c: New file, from GNU gettext.
60926         * m4/localename.m4: New file.
60927         * modules/localename: New file.
60928
60929 2007-06-07  Bruno Haible  <bruno@clisp.org>
60930
60931         Work around the lack of <wchar.h> on some builds of uClibc.
60932         * doc/headers/wchar.texi: Update.
60933         * lib/wchar_.h: Include <wchar.h> only if it exists.
60934         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
60935         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
60936         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
60937         doesn't exist.
60938         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
60939         * modules/mbfile (Depends-on): Add wchar.
60940         * modules/mbiter (Depends-on): Likewise.
60941         * modules/mbuiter (Depends-on): Likewise.
60942         Reported by Simon Josefsson.
60943
60944 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
60945
60946         Work around problem reported by Steven M. Schweda in
60947         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
60948         Tru64 5.1B with the Compaq compiler environment installed declares
60949         an 'isblank' function but does not define it in the C library.
60950         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
60951         * lib/regex_internal.h (isblank): Likewise.
60952         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
60953         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
60954
60955 2007-06-05  Bruno Haible  <bruno@clisp.org>
60956
60957         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
60958         ia64.
60959         * modules/printf-safe: New file.
60960         * modules/fprintf-posix (Depends-on): Add printf-safe.
60961         * modules/printf-posix (Depends-on): Likewise.
60962         * modules/snprintf-posix (Depends-on): Likewise.
60963         * modules/sprintf-posix (Depends-on): Likewise.
60964         * modules/vasnprintf-posix (Depends-on): Likewise.
60965         * modules/vasprintf-posix (Depends-on): Likewise.
60966         * modules/vfprintf-posix (Depends-on): Likewise.
60967         * modules/vprintf-posix (Depends-on): Likewise.
60968         * modules/vsnprintf-posix (Depends-on): Likewise.
60969         * modules/vsprintf-posix (Depends-on): Likewise.
60970         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
60971         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
60972         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
60973         "no" on i386, x86_64, ia64.
60974         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
60975         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60976         on i386, x86_64, ia64.
60977         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
60978         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60979         on i386, x86_64, ia64.
60980         * tests/test-vasnprintf-posix.c: Include float.h.
60981         (LDBL80_WORDS): New macro.
60982         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60983         on i386, x86_64, ia64.
60984         * tests/test-vasprintf-posix.c: Include float.h.
60985         (LDBL80_WORDS): New macro.
60986         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
60987         on i386, x86_64, ia64.
60988         * tests/test-snprintf-posix.c: Include float.h.
60989         * tests/test-sprintf-posix.c: Likewise.
60990         * tests/test-vsnprintf-posix.c: Likewise.
60991         * tests/test-vsprintf-posix.c: Likewise.
60992
60993 2007-06-05  Bruno Haible  <bruno@clisp.org>
60994
60995         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
60996         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
60997         non-IEEE numbers on i386, x86_64, ia64.
60998         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
60999         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
61000         * tests/test-isnanl.h: Include float.h.
61001         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
61002
61003 2007-06-05  Bruno Haible  <bruno@clisp.org>
61004
61005         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
61006         also the %a / %A. Handle the %a / %A code before this extra handling.
61007
61008 2007-06-05  Bruno Haible  <bruno@clisp.org>
61009
61010         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
61011         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
61012
61013 2007-06-05  Bruno Haible  <bruno@clisp.org>
61014
61015         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
61016         typo in variable name.
61017
61018 2007-06-05  Eric Blake  <ebb9@byu.net>
61019
61020         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
61021         Reported by Simon Josefsson.
61022
61023 2007-06-04  Bruno Haible  <bruno@clisp.org>
61024
61025         Avoid test failures on some PowerPC platforms.
61026         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
61027         Define differently for PowerPC.
61028         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
61029         Reported by Gary V. Vaughan <gary@gnu.org>.
61030
61031 2007-06-02  Bruno Haible  <bruno@clisp.org>
61032
61033         Fix test-stdint failure on FreeBSD/ia64.
61034         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
61035         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
61036         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
61037         * doc/headers/stdint.texi: Update.
61038
61039 2007-06-01  Bruno Haible  <bruno@clisp.org>
61040
61041         * tests/test-binary-io.c (main): Pass a third argument to open().
61042         Reported by Gary V. Vaughan <gary@gnu.org>.
61043
61044 2007-06-01  Bruno Haible  <bruno@clisp.org>
61045
61046         * doc/functions/frexpl.texi: Update for mingw.
61047
61048 2007-06-01  Bruno Haible  <bruno@clisp.org>
61049
61050         * tests/test-lseek.c (main): Disable test of errno for invalid third
61051         argument.
61052         * doc/functions/lseek.texi: Update.
61053         Reported by Gary V. Vaughan <gary@gnu.org>.
61054
61055 2007-05-28  Bruno Haible  <bruno@clisp.org>
61056
61057         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
61058
61059 2007-05-31  Eric Blake  <ebb9@byu.net>
61060
61061         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
61062         cross compiling.
61063
61064 2007-05-30  Eric Blake  <ebb9@byu.net>
61065         and Bruno Haible  <bruno@clisp.org>
61066
61067         Work around mingw test failures exposed by m4-1.4.9b.
61068         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
61069         * tests/test-unistd.c: Disable uid_t and git_t tests for the
61070         moment.
61071
61072 2007-05-30  Bruno Haible  <bruno@clisp.org>
61073
61074         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
61075         assuming that they are closed. Needed on HP-UX 11.
61076
61077 2007-05-29  Bruno Haible  <bruno@clisp.org>
61078
61079         Fix a problem with #include_next.
61080         * lib/dirent_.h: Split the double-inclusion guard.
61081         * lib/fcntl_.h: Likewise.
61082         * lib/float_.h: Likewise.
61083         * lib/iconv_.h: Likewise.
61084         * lib/inttypes_.h: Likewise.
61085         * lib/locale_.h: Likewise.
61086         * lib/math_.h: Likewise.
61087         * lib/netinet_in_.h: Likewise.
61088         * lib/search_.h: Likewise.
61089         * lib/signal_.h: Likewise.
61090         * lib/stdint_.h: Likewise.
61091         * lib/stdio_.h: Likewise.
61092         * lib/stdlib_.h: Likewise.
61093         * lib/string_.h: Likewise.
61094         * lib/sys_select_.h: Likewise.
61095         * lib/sys_socket_.h: Likewise.
61096         * lib/sys_stat_.h: Likewise.
61097         * lib/sys_time_.h: Likewise.
61098         * lib/sysexits_.h: Likewise.
61099         * lib/time_.h: Likewise.
61100         * lib/unistd_.h: Likewise.
61101         * lib/wchar_.h: Likewise.
61102         * lib/wctype_.h: Likewise.
61103
61104 2007-05-29  Bruno Haible  <bruno@clisp.org>
61105
61106         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
61107         for the moment.
61108
61109 2007-05-29  Bruno Haible  <bruno@clisp.org>
61110
61111         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
61112         invocation.
61113         Reported by Eric Blake.
61114
61115 2007-05-29  Bruno Haible  <bruno@clisp.org>
61116
61117         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
61118         compiling case.
61119
61120 2007-05-29  Eric Blake  <ebb9@byu.net>
61121             Bruno Haible  <bruno@clisp.org>
61122
61123         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
61124         cross compiles.
61125
61126 2007-05-28  Eric Blake  <ebb9@byu.net>
61127
61128         * modules/closein-tests (test_closein_LDADD): Support test on
61129         cygwin with libtool.
61130
61131 2007-05-28  Bruno Haible  <bruno@clisp.org>
61132
61133         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
61134         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
61135         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
61136         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
61137         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
61138         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
61139         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
61140         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
61141         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
61142
61143 2007-05-28  Eric Blake  <ebb9@byu.net>
61144
61145         Unconditionally include <config.h> in unit tests.
61146         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
61147         * tests/test-allocsa.c, tests/test-arcfour.c,
61148         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
61149         tests/test-array_list.c, tests/test-array_oset.c,
61150         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
61151         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
61152         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
61153         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
61154         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
61155         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
61156         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
61157         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
61158         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
61159         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
61160         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
61161         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
61162         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
61163         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
61164         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
61165         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
61166         test-md5.c, test-memmem.c, test-printf-posix.c,
61167         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
61168         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
61169         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
61170         test-strcasestr.c, test-striconv.c, test-striconveh.c,
61171         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
61172         test-vasnprintf-posix2.c, test-vasnprintf.c,
61173         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
61174         test-vfprintf-posix.c, test-vprintf-posix.c,
61175         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
61176         test-xvasprintf.c: Likewise.
61177
61178 2007-05-28  Bruno Haible  <bruno@clisp.org>
61179
61180         * gnulib-tool (func_import): Remember the --with-tests command-line
61181         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
61182         Reported by Eric Blake.
61183
61184 2007-05-28  Bruno Haible  <bruno@clisp.org>
61185
61186         * modules/ftell-tests: New file.
61187         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
61188         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
61189
61190         * lib/ftell.c: New file.
61191         * modules/ftell: New file.
61192         * m4/ftell.m4: New file.
61193         * doc/functions/ftell.texi: Update.
61194         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
61195         REPLACE_FTELL.
61196         * lib/stdio_.h (rpl_ftell): New declaration.
61197         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
61198         REPLACE_FTELL.
61199
61200 2007-05-28  Eric Blake  <ebb9@byu.net>
61201
61202         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
61203
61204 2007-05-28  Bruno Haible  <bruno@clisp.org>
61205
61206         * modules/fseek-tests: New file.
61207         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
61208         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
61209
61210         * lib/fseek.c: New file.
61211         * modules/fseek: New file.
61212         * m4/fseek.m4: New file.
61213         * doc/functions/fseek.texi: Update.
61214         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
61215         REPLACE_FSEEK.
61216         * lib/stdio_.h (rpl_fseek): New declaration.
61217         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
61218         REPLACE_FSEEK.
61219
61220 2007-05-28  Bruno Haible  <bruno@clisp.org>
61221
61222         * lib/stdio_.h (fflush): More comments.
61223
61224 2007-05-28  Bruno Haible  <bruno@clisp.org>
61225
61226         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
61227         runtime test.
61228
61229 2007-05-28  Eric Blake  <ebb9@byu.net>
61230
61231         Improve lseek module.
61232         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
61233         * lib/unistd_.h (lseek): Scale back link warning message.
61234         * tests/test-lseek.c: Beef up test.
61235         * tests/test-lseek.sh: Exercise more facets of lseek.
61236         Reported by Bruno Haible.
61237
61238 2007-05-28  Bruno Haible  <bruno@clisp.org>
61239
61240         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
61241         to define.
61242
61243 2007-05-27  Bruno Haible  <bruno@clisp.org>
61244
61245         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
61246
61247 2007-05-27  Bruno Haible  <bruno@clisp.org>
61248
61249         * modules/openmp: New file.
61250         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
61251         Noah Misch.
61252
61253 2007-05-26  Bruno Haible  <bruno@clisp.org>
61254
61255         * modules/chdir-long (Depends-on): Add fchdir.
61256         * modules/chdir-safer (Depends-on): Likewise.
61257         * modules/fts (Depends-on): Likewise.
61258         * modules/fts-lgpl (Depends-on): Likewise.
61259         * modules/openat (Depends-on): Likewise.
61260         * modules/savewd (Depends-on): Likewise.
61261
61262 2007-05-24  Eric Blake  <ebb9@byu.net>
61263
61264         Fix lseek on mingw.
61265         * modules/lseek: New module.
61266         * m4/lseek.m4: New file.
61267         * lib/lseek.c: New file.
61268         * modules/lseek-tests: New file.
61269         * tests/test-lseek.c: New file.
61270         * tests/test-lseek.sh: New file.
61271         * MODULES.html.sh: Document lseek module.
61272         * modules/fflush (Depends-on): Add lseek, fseeko.
61273         * modules/fseeko (Depends-on): Likewise.
61274         * modules/ftello (Depends-on): Likewise.
61275         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
61276         broken.
61277         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
61278         broken.
61279         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
61280         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
61281         * lib/ftello.c (rpl_ftello): Likewise.
61282         * tests/test-fseeko.c (main): Test this.
61283         * tests/test-fseeko.sh: Likewise.
61284         * tests/test-ftello.c (main): Likewise.
61285         * tests/test-ftello.sh: Likewise.
61286         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
61287         implies replacing fseek.
61288         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
61289         HAVE_FTELLO.
61290         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
61291         * modules/unistd (Makefile.am): Likewise.
61292         * lib/unistd_.h (lseek): Declare a replacement.
61293         * doc/functions/lseek.texi (lseek): Document this fix.
61294         * doc/functions/fseek.texi (fseek): Likewise.
61295         * doc/functions/ftell.texi (ftell): Likewise.
61296
61297 2007-05-24  Bruno Haible  <bruno@clisp.org>
61298
61299         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
61300         in the printed representation of a NaN.
61301         * tests/test-vasprintf-posix.c (test_function): Likewise.
61302         * tests/test-snprintf-posix.h (test_function): Likewise.
61303         * tests/test-sprintf-posix.h (test_function): Likewise.
61304         Reported by Eric Blake.
61305
61306 2007-05-23  Eric Blake  <ebb9@byu.net>
61307
61308         Fix fseeko/ftello on cygwin 1.5.24.
61309         * doc/functions/fseeko.texi (fseeko): Document the fix.
61310         * doc/functions/ftello.texi (ftello): Document the fix.
61311         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
61312         * doc/functions/stdout.text (stdout): New file.
61313         * doc/functions/stderr.text (stderr): New file.
61314         * doc/gnulib.texi (Function Substitutes): Use new files.
61315         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
61316         prior to 1.7.0.
61317         * tests/test-ftello.c (main): Likewise for ftello.
61318         * tests/test-fseeko.sh: New file.
61319         * tests/test-ftello.sh: New file.
61320         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
61321         with seekable stdin.
61322         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
61323         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
61324         (gl_REPLACE_FSEEKO): New macro.
61325         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
61326         * modules/fseeko (Files): Distribute fseeko.c.
61327         * modules/ftello (Files): Distribute ftello.c.
61328         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
61329         mode.
61330         * lib/ftello.c (rpl_ftello): New file.
61331         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
61332         fseeko, ftello.
61333         (gl_STDIN_LARGE_OFFSET): New macro.
61334         * modules/stdio (Makefile.am): Perform the replacement.
61335         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
61336
61337 2007-05-23  Bruno Haible  <bruno@clisp.org>
61338
61339         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
61340         GNULIB_POSIXCHECK is defined.
61341
61342 2007-05-21  Bruno Haible  <bruno@clisp.org>
61343
61344         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
61345         Check also the output for NaN arguments. When cross-compiling, guess
61346         no on IRIX.
61347         * lib/vasnprintf.c: Update comments.
61348         * tests/test-vasnprintf-posix.c (strisnan): New function.
61349         (test_function): Use it.
61350         * tests/test-vasprintf-posix.c (strisnan): New function.
61351         (test_function): Use it.
61352         * tests/test-snprintf-posix.h (strisnan): New function.
61353         (test_function): Use it.
61354         * tests/test-sprintf-posix.h (strisnan): New function.
61355         (test_function): Use it.
61356         Reported by Eric Blake.
61357
61358 2007-05-20  Bruno Haible  <bruno@clisp.org>
61359
61360         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
61361         numbers that fails on BeOS.
61362         * doc/functions/frexpl.texi: Update.
61363
61364 2007-05-20  Jim Meyering  <jim@meyering.net>
61365
61366         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
61367         forced upon us by glibc-2.6.
61368
61369 2007-05-20  Bruno Haible  <bruno@clisp.org>
61370
61371         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
61372         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
61373         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
61374         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
61375         NEED_PRINTF_INFINITE.
61376         (is_infinitel): New function.
61377         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
61378         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
61379         gl_PREREQ_VASNPRINTF_INFINITE.
61380         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
61381         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61382         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
61383         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
61384         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
61385         gl_PREREQ_VASNPRINTF_INFINITE.
61386         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61387         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61388         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61389         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61390         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61391         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61392         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61393         * doc/functions/fprintf.texi: Update.
61394         * doc/functions/printf.texi: Update.
61395         * doc/functions/snprintf.texi: Update.
61396         * doc/functions/sprintf.texi: Update.
61397         * doc/functions/vfprintf.texi: Update.
61398         * doc/functions/vprintf.texi: Update.
61399         * doc/functions/vsnprintf.texi: Update.
61400         * doc/functions/vsprintf.texi: Update.
61401
61402 2007-05-20  Bruno Haible  <bruno@clisp.org>
61403
61404         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
61405         was not found in libc.
61406         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
61407
61408 2007-05-20  Bruno Haible  <bruno@clisp.org>
61409
61410         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
61411         printed as "-nan" instead of "nan".
61412         * tests/test-vasprintf-posix.c (test_function): Likewise.
61413         * tests/test-snprintf-posix.h (test_function): Likewise.
61414         * tests/test-sprintf-posix.h (test_function): Likewise.
61415         Needed for HP-UX 11.
61416
61417 2007-05-20  Jim Meyering  <jim@meyering.net>
61418
61419         Fix buggy test for the fchownat-deref bug.
61420         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
61421         symlink required for the run-test.  Without it, this test would
61422         always declare that fchownat doesn't work, and client code would
61423         unnecessarily use the replacement function with fixed libc.
61424         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
61425         Reported by Greg Schafer.
61426
61427 2007-05-19  Bruno Haible  <bruno@clisp.org>
61428
61429         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
61430         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
61431         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
61432         Needed for IRIX 6.5 and Solaris 2.5.1.
61433
61434 2007-05-19  Bruno Haible  <bruno@clisp.org>
61435
61436         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
61437         (test_function): Skip tests involving -0.0 on platforms where
61438         -0.0 = 0.0.
61439         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
61440         (test_function): Skip tests involving -0.0 on platforms where
61441         -0.0 = 0.0.
61442         * tests/test-snprintf-posix.h (have_minus_zero): New function.
61443         (test_function): Skip tests involving -0.0 on platforms where
61444         -0.0 = 0.0.
61445         * tests/test-sprintf-posix.h (have_minus_zero): New function.
61446         (test_function): Skip tests involving -0.0 on platforms where
61447         -0.0 = 0.0.
61448         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
61449         tests.
61450         * tests/test-printf-posix.h (test_function): Likewise.
61451         * tests/test-printf-posix.output: Remove all -0.0 related results.
61452         Needed for IRIX 6.5.
61453
61454 2007-05-19  Bruno Haible  <bruno@clisp.org>
61455
61456         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
61457         printed as "nan0x7fffffff" instead of "nan".
61458         * tests/test-vasprintf-posix.c (test_function): Likewise.
61459         * tests/test-snprintf-posix.h (test_function): Likewise.
61460         * tests/test-sprintf-posix.h (test_function): Likewise.
61461         * tests/test-fprintf-posix.h (NaN): Remove macro.
61462         (test_function): Remove all NaN related tests.
61463         * tests/test-printf-posix.h (NaN): Remove macro.
61464         (test_function): Remove all NaN related tests.
61465         * tests/test-printf-posix.output: Remove all NaN related results.
61466         Needed for IRIX 6.5.
61467
61468 2007-05-19  Bruno Haible  <bruno@clisp.org>
61469
61470         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
61471         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
61472
61473 2007-05-19  Bruno Haible  <bruno@clisp.org>
61474
61475         * lib/float_.h: New file.
61476         * m4/float_h.m4: New file.
61477         * modules/float: New file.
61478         * modules/isnanl (Dependencies): Add float.
61479         * modules/isnanl-nolibm (Dependencies): Likewise.
61480         * modules/mathl (Dependencies): Likewise.
61481         * modules/printf-frexpl (Dependencies): Likewise.
61482         * modules/signbit (Dependencies): Likewise.
61483         * modules/vasnprintf (Dependencies): Likewise.
61484         * doc/headers/float.texi: Update.
61485
61486 2007-05-19  Jim Meyering  <jim@meyering.net>
61487
61488         * lib/utimens.c (gl_futimens): Rename from futimens,
61489         now that glibc-2.6 declares futimens.
61490         * lib/utimens.h: Likewise.
61491
61492 2007-05-19  Bruno Haible  <bruno@clisp.org>
61493
61494         Avoid test failures on mingw.
61495         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
61496         * tests/test-printf-posix.sh: Likewise.
61497         * tests/test-vfprintf-posix.sh: Likewise.
61498         * tests/test-vprintf-posix.sh: Likewise.
61499
61500 2007-05-19  Bruno Haible  <bruno@clisp.org>
61501
61502         Fix *printf result for NaN, Inf, -0.0 on mingw.
61503         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
61504         * lib/vasnprintf.c: Include math.h and isnan.h.
61505         (is_infinite_or_zero): New function.
61506         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
61507         values in the %f, %F, %e, %E, %g, %G directives.
61508         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
61509         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61510         gl_PRINTF_INFINITE and test its result. Invoke
61511         gl_PREREQ_VASNPRINTF_INFINITE.
61512         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61513         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61514         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61515         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61516         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61517         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61518         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61519         * doc/functions/fprintf.texi: Update.
61520         * doc/functions/printf.texi: Update.
61521         * doc/functions/snprintf.texi: Update.
61522         * doc/functions/sprintf.texi: Update.
61523         * doc/functions/vfprintf.texi: Update.
61524         * doc/functions/vprintf.texi: Update.
61525         * doc/functions/vsnprintf.texi: Update.
61526         * doc/functions/vsprintf.texi: Update.
61527
61528 2007-05-19  Bruno Haible  <bruno@clisp.org>
61529
61530         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
61531         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
61532         Instead of multiplying with 10^k, set extra_zeroes to k.
61533         (scale10_round_long_double): Remove function.
61534
61535 2007-05-18  Bruno Haible  <bruno@clisp.org>
61536
61537         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
61538         introduced on 2007-05-06.
61539
61540 2007-05-18  Bruno Haible  <bruno@clisp.org>
61541
61542         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
61543         %g directives.
61544         * tests/test-vasprintf-posix.c (test_function): Likewise.
61545         * tests/test-snprintf-posix.h (test_function): Likewise.
61546         * tests/test-sprintf-posix.h (test_function): Likewise.
61547
61548 2007-05-18  Bruno Haible  <bruno@clisp.org>
61549
61550         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
61551         (strmatch): New function.
61552         (test_function): Test the %f directive on numbers of various exponents.
61553         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
61554         (strmatch): New function.
61555         (test_function): Test the %f directive on numbers of various exponents.
61556         * tests/test-snprintf-posix.h (strmatch): New function.
61557         (test_function): Test the %f directive on numbers of various exponents.
61558         * tests/test-sprintf-posix.h (strmatch): New function.
61559         (test_function): Test the %f directive on numbers of various exponents.
61560         * tests/test-snprintf-posix.c (SIZEOF): New macro.
61561         * tests/test-sprintf-posix.c (SIZEOF): New macro.
61562         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
61563         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
61564
61565 2007-05-18  Bruno Haible  <bruno@clisp.org>
61566
61567         Add support for 'long double' number output.
61568         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
61569         * lib/vasnprintf.c: Include math.h and float+.h.
61570         (mp_limb_t): New type.
61571         (GMP_LIMB_BITS): New macro.
61572         (mp_twolimb_t): New type.
61573         (GMP_TWOLIMB_BITS): New macro.
61574         (mpn_t): New type.
61575         (multiply, divide, convert_to_decimal, decode_long_double,
61576         scale10_round_long_double, scale10_round_decimal_long_double,
61577         floorlog10l): New functions.
61578         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
61579         for the %f, %F, %e, %E, %g, %G directives.
61580         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
61581         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61582         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
61583         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
61584         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61585         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61586         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61587         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61588         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61589         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61590         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61591         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
61592         * modules/snprintf-posix (Depends-on): Likewise.
61593         * modules/sprintf-posix (Depends-on): Likewise.
61594         * modules/vasnprintf-posix (Depends-on): Likewise.
61595         * modules/vasprintf-posix (Depends-on): Likewise.
61596         * modules/vfprintf-posix (Depends-on): Likewise.
61597         * modules/vsnprintf-posix (Depends-on): Likewise.
61598         * modules/vsprintf-posix (Depends-on): Likewise.
61599         * modules/vasnprintf (Files): Add lib/float+.h.
61600         * doc/functions/fprintf.texi: Update.
61601         * doc/functions/printf.texi: Update.
61602         * doc/functions/snprintf.texi: Update.
61603         * doc/functions/sprintf.texi: Update.
61604         * doc/functions/vfprintf.texi: Update.
61605         * doc/functions/vprintf.texi: Update.
61606         * doc/functions/vsnprintf.texi: Update.
61607         * doc/functions/vsprintf.texi: Update.
61608
61609 2007-05-18  Bruno Haible  <bruno@clisp.org>
61610
61611         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
61612
61613 2007-05-18  Bruno Haible  <bruno@clisp.org>
61614
61615         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
61616         for printing 64-bit integers. Needed for mingw.
61617
61618 2007-05-18  Bruno Haible  <bruno@clisp.org>
61619
61620         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
61621         gl_FUNC_FREXPL_WORKS.
61622         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
61623
61624 2007-05-18  Bruno Haible  <bruno@clisp.org>
61625
61626         * modules/frexpl-nolibm-tests: New file.
61627
61628         * modules/frexpl-nolibm: New file.
61629         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
61630
61631 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
61632
61633         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
61634         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
61635         GCC 4.2, which otherwise issues a lot of warnings.
61636         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
61637         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
61638         Likewise.
61639         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
61640         * modules/iconv_open (iconv.h): Likewise.
61641         * modules/locale (locale.h): Likewise.
61642         * modules/netinet_in (netinet/in.h): Likewise.
61643         * modules/sys_select (sys_select.h): Likewise.
61644         * modules/sys_socket (sys/socket.h): Likewise.
61645         * modules/sys_stat (sys/stat.h): Likewise.
61646         * modules/sysexits (sysexits.h): Likewise.
61647         * modules/unistd (unistd.h): Likewise.
61648
61649 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61650
61651         * modules/closein-tests (Makefile.am): Distribute
61652         `test-closein.sh'.
61653
61654 2007-05-17  Bruno Haible  <bruno@clisp.org>
61655
61656         * tests/test-printf-posix.output: Renamed from
61657         tests/test-fprintf-posix.out.
61658         * modules/fprintf-posix-tests: Update.
61659         * modules/printf-posix-tests: Update.
61660         * modules/vfprintf-posix-tests: Update.
61661         * modules/vprintf-posix-tests: Update.
61662         * tests/test-fprintf-posix.sh: Update.
61663         * tests/test-printf-posix.sh: Update.
61664         * tests/test-vfprintf-posix.sh: Update.
61665         * tests/test-vprintf-posix.sh: Update.
61666         Reported by Ralf Wildenhues.
61667
61668 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
61669
61670         * lib/fcntl_.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/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
61674         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
61675         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
61676         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
61677         it should no longer be needed.
61678         * lib/string_.h: Likewise.
61679         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
61680         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
61681         * modules/inttypes (inttypes.h): Likewise.
61682         * modules/math (math.h): Likewise.
61683         * modules/search (search.h): Likewise.
61684         * modules/signal (signal.h): Likewise.
61685         * modules/stdint (stdint.h): Likewise.
61686         * modules/stdio (stdio.h): Likewise.
61687         * modules/stdlib (stdlib.h): Likewise.
61688         * modules/string (string.h): Likewise.
61689         * modules/sys_time (sys/time.h): Likewise.
61690         * modules/time (time.h): Likewise.
61691         * modules/wchar (wchar.h): Likewise.
61692         * modules/wctype (wtype.h): Likewise.
61693
61694 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
61695
61696         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
61697
61698 2007-05-13  Bruno Haible  <bruno@clisp.org>
61699
61700         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
61701         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
61702         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
61703         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
61704         (gl_PREREQ_STRTOK_R): Don't require it here.
61705
61706 2007-05-13  Bruno Haible  <bruno@clisp.org>
61707
61708         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
61709         when used in C++ mode.
61710
61711 2007-05-12  Bruno Haible  <bruno@clisp.org>
61712
61713         * lib/linebuffer.h: Tweak doc.
61714         * lib/linebuffer.c: Likewise.
61715
61716 2007-05-12  James Youngman  <jay@gnu.org>
61717
61718         * lib/linebuffer.c (readlinebuffer_delim): New function,
61719         like readlinebuffer, but use a caller-specified delimiter.
61720         (readlinebuffer): Just call readlinebuffer_delim with '\n'
61721         as the delimiter.
61722         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
61723
61724 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
61725
61726         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
61727         * modules/openat (Files): Remove openat-die.c.
61728         (Depends-on): Add openat-die.
61729         * modules/openat-die: New module.
61730
61731 2007-05-06  Bruno Haible  <bruno@clisp.org>
61732
61733         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
61734         Update with info about Cygwin.
61735         * doc/functions/fprintf.texi: Update.
61736         * doc/functions/printf.texi: Update.
61737         * doc/functions/snprintf.texi: Update.
61738         * doc/functions/sprintf.texi: Update.
61739         * doc/functions/vfprintf.texi: Update.
61740         * doc/functions/vprintf.texi: Update.
61741         * doc/functions/vsnprintf.texi: Update.
61742         * doc/functions/vsprintf.texi: Update.
61743         Reported by Eric Blake.
61744
61745 2007-05-06  Bruno Haible  <bruno@clisp.org>
61746
61747         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
61748         padding ourselves for the floating-point directives.
61749         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
61750         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
61751         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61752         gl_PRINTF_FLAG_ZERO and test its result. Invoke
61753         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
61754         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61755         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
61756         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61757         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61758         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61759         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61760         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61761         * tests/test-snprintf-posix.h (test_function): Also check the width
61762         and some flags in the %f directive.
61763         * tests/test-sprintf-posix.h (test_function): Likewise.
61764         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61765         * tests/test-vasprintf-posix.c (test_function): Likewise.
61766         * doc/functions/fprintf.texi: Update.
61767         * doc/functions/printf.texi: Update.
61768         * doc/functions/snprintf.texi: Update.
61769         * doc/functions/sprintf.texi: Update.
61770         * doc/functions/vfprintf.texi: Update.
61771         * doc/functions/vprintf.texi: Update.
61772         * doc/functions/vsnprintf.texi: Update.
61773         * doc/functions/vsprintf.texi: Update.
61774
61775 2007-05-06  Bruno Haible  <bruno@clisp.org>
61776
61777         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
61778         pass the ' flag character to sprintf or snprintf.
61779         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
61780         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
61781         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61782         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
61783         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
61784         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61785         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
61786         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61787         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61788         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61789         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61790         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61791         * tests/test-snprintf-posix.h (test_function): Also check the grouping
61792         flag.
61793         * tests/test-sprintf-posix.h (test_function): Likewise.
61794         * tests/test-vasnprintf-posix.c (test_function): Likewise.
61795         * tests/test-vasprintf-posix.c (test_function): Likewise.
61796         * doc/functions/fprintf.texi: Update.
61797         * doc/functions/printf.texi: Update.
61798         * doc/functions/snprintf.texi: Update.
61799         * doc/functions/sprintf.texi: Update.
61800         * doc/functions/vfprintf.texi: Update.
61801         * doc/functions/vprintf.texi: Update.
61802         * doc/functions/vsnprintf.texi: Update.
61803         * doc/functions/vsprintf.texi: Update.
61804
61805 2007-05-01  Bruno Haible  <bruno@clisp.org>
61806
61807         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
61808
61809 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
61810
61811         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
61812         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
61813
61814 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
61815
61816         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
61817         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
61818         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
61819
61820 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
61821
61822         * lib/argp-help.c (struct hol_entry): New member `ord'.
61823         (HOL_ENTRY_PTRCMP): Use ord for comparison
61824         (hol_sort): Initialize ord.
61825
61826 2007-05-01  Bruno Haible  <bruno@clisp.org>
61827
61828         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
61829         Reported by Eric Blake.
61830         * doc/gnulib.texi (Function Substitutes): Update.
61831
61832 2007-05-01  Bruno Haible  <bruno@clisp.org>
61833
61834         * doc/functions.texi: Remove file, now redundant through
61835         doc/functions/*.texi.
61836
61837 2007-05-01  Bruno Haible  <bruno@clisp.org>
61838
61839         * modules/argp (Depends-on): Add sleep.
61840
61841 2007-05-01  Bruno Haible  <bruno@clisp.org>
61842
61843         * modules/sleep-tests: New file.
61844         * tests/test-sleep.c: New file.
61845
61846         * modules/sleep: New file.
61847         * lib/sleep.c: New file.
61848         * m4/sleep.m4: New file.
61849         * lib/unistd_.h (sleep): New declaration.
61850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
61851         HAVE_SLEEP.
61852         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
61853         * doc/functions/sleep.texi: Document the sleep module.
61854
61855 2007-05-01  Bruno Haible  <bruno@clisp.org>
61856
61857         * lib/sigprocmask.h: Remove file.
61858         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
61859         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
61860         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
61861         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
61862         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
61863         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
61864         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
61865         HAVE_SIGSET_T as a shell variable.
61866         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
61867         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
61868         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
61869         (Depends-on): Add signal. Remove verify.
61870         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
61871         (Include): Mention <signal.h> instead of sigprocmask.h.
61872         * NEWS: Mention the change.
61873         * lib/fatal-signal.c: Don't include sigprocmask.h.
61874
61875 2007-05-01  Bruno Haible  <bruno@clisp.org>
61876
61877         * modules/signal: New file.
61878         * lib/signal_.h: New file.
61879         * m4/signal_h.m4: New file.
61880
61881 2007-05-01  Bruno Haible  <bruno@clisp.org>
61882
61883         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
61884         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
61885         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
61886         HAVE_WCTYPE_CTMP_BUG into wctype.h.
61887
61888 2007-05-01  Bruno Haible  <bruno@clisp.org>
61889
61890         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
61891         configure time.
61892         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
61893         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
61894         * modules/sys_stat (Makefile.am): Substitute their values into
61895         sys/stat.h.
61896
61897 2007-05-01  Bruno Haible  <bruno@clisp.org>
61898
61899         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
61900         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
61901         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
61902
61903 2007-05-01  Bruno Haible  <bruno@clisp.org>
61904
61905         * doc/header/assert.texi: Undo last change: don't mention the gnulib
61906         'assert' module here.
61907
61908 2007-05-01  Bruno Haible  <bruno@clisp.org>
61909
61910         * doc/functions/*.texi: New files.
61911         * doc/functions/google-ranking.txt: New file.
61912         * doc/gnulib.texi (Function Substitutes): New chapter.
61913         (ctime, inet_ntoa): Remove sections.
61914         * doc/ctime.texi: Remove file.
61915         * doc/inet_ntoa.texi: Remove file.
61916         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
61917         dependencies.
61918         (%.info): New rule, specifying a --reference-limit.
61919
61920 2007-05-01  Bruno Haible  <bruno@clisp.org>
61921
61922         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
61923
61924 2007-05-01  Bruno Haible  <bruno@clisp.org>
61925
61926         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
61927         the portability of 'mkdir' to mingw systems.
61928
61929 2007-05-01  Bruno Haible  <bruno@clisp.org>
61930
61931         * doc/headers/google-ranking.txt: New file.
61932
61933 2007-04-30  Eric Blake  <ebb9@byu.net>
61934
61935         Prefer fseeko to fseek.
61936         * modules/getpass (Depends-on): Add fseeko.
61937         * lib/getpass.c (getpass): Use fseeko, not fseek.
61938
61939 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
61940
61941         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
61942         assumes the sorting is stable, while most qsort implementations
61943         are not.  Use argument addresses to ensure they never compare as
61944         equal.
61945
61946         * tests/test-argp-2.sh (usage-indent test): Fix output
61947         (func_compare): Restore diff options
61948         * tests/test-argp.c: Restore #include "progname.h"
61949
61950 2007-04-29  Bruno Haible  <bruno@clisp.org>
61951
61952         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
61953         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
61954         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
61955         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61956         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
61957         (configure.ac): Define CHECK_SNPRINTF_POSIX.
61958         (TESTS, check_PROGRAMS): Add test-snprintf.
61959         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
61960         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
61961         (TESTS, check_PROGRAMS): Add test-vsnprintf.
61962         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
61963         assertions that fail on HP-UX, OSF/1, or IRIX.
61964         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
61965
61966 2007-04-29  Bruno Haible  <bruno@clisp.org>
61967
61968         * MODULES.html.sh (posix_functions): Remove 'contents'.
61969
61970 2007-04-29  Karl Berry  <karl@gnu.org>
61971
61972         * config/srclist.txt (gendocs_template_min): new entry.
61973
61974 2007-04-29  Bruno Haible  <bruno@clisp.org>
61975
61976         Work around fpurge bug on BSD systems.
61977         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
61978         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
61979         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
61980         fpurge to rpl_fpurge if the system already has this function.
61981         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
61982         the case where the system already has this function. Correct invariants
61983         on BSD systems.
61984         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
61985         BSD systems.
61986
61987 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
61988
61989         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
61990         proposed by Sven Verdoolaege.
61991
61992         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
61993         options.
61994         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
61995         (usage and help tests): Update
61996
61997 2007-04-29  Bruno Haible  <bruno@clisp.org>
61998
61999         * tests/test-fflush.c (main): Use a file of size 17, not 10.
62000         Print more information in case of failure. Disable a test on BeOS.
62001
62002 2007-04-29  Bruno Haible  <bruno@clisp.org>
62003
62004         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
62005         This helps debugging on systems on which no gdb is available.
62006
62007 2007-04-29  Bruno Haible  <bruno@clisp.org>
62008
62009         * lib/freading.h: Improve comments.
62010         * lib/fwriting.h: Likewise.
62011         * tests/test-freading.c (main): Don't check freading immediately after
62012         repositioning. Needed for glibc.
62013
62014 2007-04-29  Bruno Haible  <bruno@clisp.org>
62015
62016         * lib/freading.c (freading): Trivial simplification.
62017
62018 2007-04-28  Bruno Haible  <bruno@clisp.org>
62019
62020         * tests/test-fwriting.c (main): Also test the interaction between
62021         fflush and fwriting.
62022         * modules/fwriting-tests (Depends-on): Add fflush.
62023
62024         * tests/test-freading.c (main): Also test the interaction between
62025         fflush and freading.
62026         * modules/freading-tests (Depends-on): Add fflush.
62027
62028 2007-04-28  Bruno Haible  <bruno@clisp.org>
62029
62030         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
62031         fseeko and ftello.
62032         Suggested by Eric Blake.
62033
62034 2007-04-28  Jim Meyering  <jim@meyering.net>
62035
62036         Avoid false-negative in gl_STDINT_H's C99 conformance test.
62037         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
62038         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
62039
62040 2007-04-27  Eric Blake  <ebb9@byu.net>
62041
62042         * doc/headers/assert.texi (assert.h): Document assert module use.
62043
62044 2007-04-27  Bruno Haible  <bruno@clisp.org>
62045
62046         * doc/headers/*.texi: New files.
62047         * doc/gnulib.texi (Header File Substitutes): New chapter.
62048         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
62049         dependencies.
62050         (standards.info ,standards.html, standards.dvi): Update dependencies.
62051         (mostlyclean, clean): New targets.
62052
62053 2007-04-27  Bruno Haible  <bruno@clisp.org>
62054
62055         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
62056         * modules/sysexits (Files, Makefile.am): Update.
62057
62058         * lib/sys_socket_.h: Renamed from lib/socket_.h.
62059         * modules/sys_socket (Files, Makefile.am): Update.
62060
62061         * lib/sys_stat_.h: Renamed from lib/stat_.h.
62062         * modules/sys_stat (Files, Makefile.am): Update.
62063
62064 2007-04-27  Eric Blake  <ebb9@byu.net>
62065
62066         * lib/freading.h: Improve comments.
62067         * lib/fwriting.h: Likewise.
62068         * lib/fflush.c: Likewise.
62069
62070         Fix closein for mingw.
62071         * modules/closein-tests: Add tests for closein.
62072         * tests/test-closein.c: New file.
62073         * tests/test-closein.sh: Likewise.
62074         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
62075         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
62076
62077 2007-04-27  Bruno Haible  <bruno@clisp.org>
62078
62079         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
62080         version is < 6.
62081         * lib/math_.h [__DECC]: Likewise.
62082         * lib/stdio_.h [__DECC]: Likewise.
62083         * lib/stdlib_.h [__DECC]: Likewise.
62084         * lib/string_.h [__DECC]: Likewise.
62085         * lib/time_.h [__DECC]: Likewise.
62086         * lib/wchar_.h [__DECC]: Likewise.
62087         * lib/wctype_.h [__DECC]: Likewise.
62088
62089 2007-04-27  Bruno Haible  <bruno@clisp.org>
62090
62091         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
62092
62093 2007-04-27  Bruno Haible  <bruno@clisp.org>
62094
62095         * lib/fflush.c: Add comments.
62096         * modules/fpurge-tests (Depends-on): Add fflush.
62097         * modules/freadable-tests (Depends-on): Likewise.
62098         * modules/fwritable-tests (Depends-on): Likewise.
62099
62100 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
62101
62102         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
62103         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
62104         Report by Bruno Haible <bruno@clisp.org>.
62105
62106 2007-04-26  Eric Blake  <ebb9@byu.net>
62107
62108         Fix fflush on mingw.
62109         * modules/fflush (Depends-on): Add freading.
62110         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
62111         but unread data.
62112
62113 2007-04-26  Eric Blake  <ebb9@byu.net>
62114         and Bruno Haible  <bruno@clisp.org>
62115
62116         Implement freading and fwriting.
62117         * lib/freading.c: New file.
62118         * lib/freading.h: Likewise.
62119         * m4/freading.m4: Likewise.
62120         * modules/freading: Likewise.
62121         * modules/freading-tests: Likewise.
62122         * tests/test-freading.c: Likewise.
62123         * lib/fwriting.c: New file.
62124         * lib/fwriting.h: Likewise.
62125         * m4/fwriting.m4: Likewise.
62126         * modules/fwriting: Likewise.
62127         * modules/fwriting-tests: Likewise.
62128         * tests/test-fwriting.c: Likewise.
62129         * MODULES.html.sh (File stream based Input/Output): Mention them.
62130
62131 2007-04-26  Bruno Haible  <bruno@clisp.org>
62132
62133         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
62134         'long' when we assume it.
62135         Suggested by Eric Blake.
62136
62137 2007-04-26  Bruno Haible  <bruno@clisp.org>
62138
62139         Ensure fseeko, ftello are declared on glibc systems.
62140         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
62141         * modules/fseeko (configure.ac-early): Likewise.
62142         * modules/ftello (configure.ac-early): Likewise.
62143         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
62144         AC_FUNC_FSEEKO for this.
62145         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
62146         (gl_CHECK_FSEEKO): Remove macro.
62147
62148 2007-04-26  Bruno Haible  <bruno@clisp.org>
62149
62150         * tests/test-fflush.c (main): Also check the ftell result after
62151         fflush and fseek/fseeko.
62152         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
62153         file descriptor position cache in the stream.
62154         * lib/fseeko.c (rpl_fseeko): Likewise.
62155
62156 2007-04-26  Bruno Haible  <bruno@clisp.org>
62157
62158         * modules/fflush-tests (Depends-on): Add fseeko.
62159
62160 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
62161             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62162
62163         * lib/argz_.h: ensure error_t definition is obtained in same
62164         mechanism system argz.h would have.
62165         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
62166         argz facilities are known bad.  Err on the side of caution if
62167         cross-compiling.
62168
62169 2007-04-25  Eric Blake  <ebb9@byu.net>
62170
62171         * lib/fpurge.c (includes): Use stdlib.h for free.
62172         * tests/test-fflush.c (main): Also test fflush-fseeko.
62173
62174 2007-04-25  Bruno Haible  <bruno@clisp.org>
62175
62176         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
62177         * lib/fseeko.c: New file.
62178         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
62179         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
62180         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
62181         gl_FUNC_FSEEKO.
62182         (gl_FUNC_FSEEKO): Invoke it.
62183         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
62184         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
62185         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
62186
62187 2007-04-25  Bruno Haible  <bruno@clisp.org>
62188
62189         * modules/fflush (Depends-on): Add ftello.
62190
62191 2007-04-25  Bruno Haible  <bruno@clisp.org>
62192
62193         * modules/ftello-tests: New file.
62194         * tests/test-ftello.c: New file.
62195
62196         * modules/ftello: New file.
62197         * m4/ftello.m4: New file.
62198         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
62199         HAVE_FTELLO.
62200         * lib/stdio_.h (ftello): New declaration.
62201         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
62202         HAVE_FTELLO.
62203
62204 2007-04-25  Bruno Haible  <bruno@clisp.org>
62205
62206         * modules/fseeko-tests: New file.
62207         * tests/test-fseeko.c: New file.
62208
62209         * modules/fseeko: New file.
62210         * m4/fseeko.m4: New file.
62211         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
62212         HAVE_FSEEKO.
62213         * lib/stdio_.h (fseeko): New declaration.
62214         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
62215         HAVE_FSEEKO.
62216
62217 2007-04-25  Bruno Haible  <bruno@clisp.org>
62218
62219         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
62220
62221 2007-04-25  Bruno Haible  <bruno@clisp.org>
62222
62223         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
62224         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
62225         * tests/test-unistd.c: Likewise.
62226         * tests/test-fcntl.c: Likewise.
62227
62228 2007-04-23  Eric Blake  <ebb9@byu.net>
62229
62230         * lib/fflush.c: Fix missing include.
62231         Reported by Bruno Haible.
62232
62233 2007-04-23  Bruno Haible  <bruno@clisp.org>
62234
62235         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
62236         Reported by Eric Blake.
62237
62238 2007-04-23  Bruno Haible  <bruno@clisp.org>
62239
62240         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
62241
62242 2007-04-23  Bruno Haible  <bruno@clisp.org>
62243
62244         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
62245
62246 2007-04-23  Bruno Haible  <bruno@clisp.org>
62247
62248         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
62249         Needed on HP-UX 11.
62250
62251 2007-04-16  Eric Blake  <ebb9@byu.net>
62252
62253         Make fflush rely on fpurge.
62254         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
62255         open coding all variants.
62256         * modules/fflush (Depends-on): Add fpurge and unistd.
62257         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
62258         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
62259
62260         Fix --with-tests compilation on cygwin.
62261         * modules/argmatch-tests (Makefile.am): List gnulib library first
62262         in LDADD.
62263         * modules/argp-tests (Makefile.am): Likewise.
62264         * modules/array-list-tests (Makefile.am): Likewise.
62265         * modules/array-oset-tests (Makefile.am): Likewise.
62266         * modules/avltree-list-tests (Makefile.am): Likewise.
62267         * modules/avltree-oset-tests (Makefile.am): Likewise.
62268         * modules/avltreehash-list-tests (Makefile.am): Likewise.
62269         * modules/carray-list-tests (Makefile.am): Likewise.
62270         * modules/dirname-tests (Makefile.am): Likewise.
62271         * modules/frexp-tests (Makefile.am): Likewise.
62272         * modules/isnanl-tests (Makefile.am): Likewise.
62273         * modules/linked-list-tests (Makefile.am): Likewise.
62274         * modules/linkedhash-list-tests (Makefile.am): Likewise.
62275         * modules/lock-tests (Makefile.am): Likewise.
62276         * modules/rbtree-list-tests (Makefile.am): Likewise.
62277         * modules/rbtree-oset-tests (Makefile.am): Likewise.
62278         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
62279         * modules/tls-tests (Makefile.am): Likewise.
62280         * modules/tsearch-tests (Makefile.am): Likewise.
62281         * modules/xvasprintf-tests (Makefile.am): Likewise.
62282
62283         Fix fpurge for cygwin.
62284         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
62285         value.
62286         * modules/fpurge-tests (Depends-on): Clean up trash.
62287
62288 2007-04-16  Simon Josefsson  <simon@josefsson.org>
62289
62290         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
62291
62292         * m4/autobuild.m4: Re-indent.
62293
62294 2007-04-13  Bruno Haible  <bruno@clisp.org>
62295
62296         * modules/fpurge-tests: New file.
62297         * tests/test-fpurge.c: New file.
62298
62299         * modules/fpurge: New file.
62300         * lib/fpurge.h: New file.
62301         * lib/fpurge.c: New file.
62302         * m4/fpurge.m4: New file.
62303
62304 2007-04-13  Bruno Haible  <bruno@clisp.org>
62305
62306         * modules/fbufmode-tests: New file.
62307         * tests/test-fbufmode.c: New file.
62308
62309         * modules/fbufmode: New file.
62310         * lib/fbufmode.h: New file.
62311         * lib/fbufmode.c: New file.
62312         * m4/fbufmode.m4: New file.
62313
62314 2007-04-13  Bruno Haible  <bruno@clisp.org>
62315
62316         * modules/fwritable-tests: New file.
62317         * tests/test-fwritable.c: New file.
62318
62319         * modules/fwritable: New file.
62320         * lib/fwritable.h: New file.
62321         * lib/fwritable.c: New file.
62322         * m4/fwritable.m4: New file.
62323
62324 2007-04-13  Bruno Haible  <bruno@clisp.org>
62325
62326         * modules/freadable-tests: New file.
62327         * tests/test-freadable.c: New file.
62328
62329         * modules/freadable: New file.
62330         * lib/freadable.h: New file.
62331         * lib/freadable.c: New file.
62332         * m4/freadable.m4: New file.
62333
62334 2007-04-13  Bruno Haible  <bruno@clisp.org>
62335
62336         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
62337         MOSTLYCLEANFILES.
62338
62339 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
62340
62341         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
62342         gzip bootstrap.conf to avoid dragging in i18n machinery.
62343         (gnulib_tool_option): Use it.
62344
62345 2007-04-13  Bruno Haible  <bruno@clisp.org>
62346
62347         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
62348         %F directives.
62349         * tests/test-vasprintf-posix.c (test_function): Likewise.
62350         * tests/test-snprintf-posix.h (test_function): Likewise.
62351         * tests/test-sprintf-posix.h (test_function): Likewise.
62352         * tests/test-fprintf-posix.h (test_function): Likewise.
62353         * tests/test-printf-posix.h (test_function): Likewise.
62354         * tests/test-fprintf-posix.out: Likewise.
62355
62356 2007-04-13  Bruno Haible  <bruno@clisp.org>
62357
62358         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
62359         * modules/tls-tests (configure.ac): Likewise.
62360         Reported by Arto C. Nirkko <anirkko@insel.ch>.
62361
62362 2007-04-13  Bruno Haible  <bruno@clisp.org>
62363
62364         * lib/tls.c (glthread_tls_get): Fix return type.
62365         Patch by Arto C. Nirkko <anirkko@insel.ch>.
62366
62367 2007-04-12  Eric Blake  <ebb9@byu.net>
62368
62369         * modules/gettime (Depends-on): Remove gettime.
62370         Reported by Dmitry V. Levin.
62371
62372 2007-04-12  Bruno Haible  <bruno@clisp.org>
62373
62374         * modules/fflush (Include): Mention <stdio.h>.
62375         * modules/strtoimax (Include): Mention <inttypes.h>.
62376         * modules/strtoumax (Include): Likewise.
62377
62378 2007-04-12  Eric Blake  <ebb9@byu.net>
62379
62380         * .cvsignore: New file.
62381         * .gitignore: Likewise.
62382
62383 2007-04-12  Bruno Haible  <bruno@clisp.org>
62384
62385         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
62386         not before, since $(LDADD) often contains libgnu.a.
62387         * modules/striconv-tests (test_striconv_LDADD): Likewise.
62388         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
62389         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
62390         Needed on Cygwin.
62391
62392 2007-04-12  Eric Blake  <ebb9@byu.net>
62393
62394         Work around glibc's failure to flush stdin on fclose.
62395         * lib/closein.c (close_stdin): Flush stdin before closing.
62396
62397         Work around glibc's failure to reset seekable stdin on exit.
62398         * modules/closein: New module.
62399         * lib/closein.c: New file.
62400         * lib/closein.h: Likewise.
62401         * m4/closein.m4: Likewise.
62402         * MODULES.html.sh (File stream based Input/Output): Document it.
62403
62404 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62405
62406         * gnulib-tool: Rename generated 'autobuild' script to
62407         'do-autobuild' in --create-megatestdir output.
62408
62409         * doc/gnulib.texi (Build robot for gnulib): Fix.
62410
62411 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62412
62413         * modules/sysexits (Depends-on): Add absolute-header.
62414
62415 2007-04-12  Eric Blake  <ebb9@byu.net>
62416
62417         No need to preserve errno on success.
62418         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
62419         Reported by Bruno Haible.
62420
62421 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62422
62423         * MODULES.html.sh (Support for maintaining and releasing
62424         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
62425
62426 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62427
62428         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
62429
62430 2007-04-12  Simon Josefsson  <simon@josefsson.org>
62431
62432         * modules/autobuild: New module.
62433
62434         * m4/autobuild.m4: New file.
62435
62436 2007-04-11  Bruno Haible  <bruno@clisp.org>
62437
62438         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
62439         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
62440         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
62441         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
62442         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
62443         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62444         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62445         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
62446         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62447         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62448         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
62449         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62450         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62451         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
62452         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62453         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62454         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
62455         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62456         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62457         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
62458         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62459         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62460         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
62461         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62462         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62463         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
62464         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
62465         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
62466         Reported by Eric Blake.
62467
62468 2007-04-11  Bruno Haible  <bruno@clisp.org>
62469
62470         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
62471
62472 2007-04-10  Bruno Haible  <bruno@clisp.org>
62473
62474         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
62475         for NaN and Infinity. Needed on FreeBSD 6.1.
62476         * tests/test-vasnprintf-posix.c (test_function): Undo last change
62477         regarding results for "%010a" of Infinity and NaN.
62478         * tests/test-vasprintf-posix.c (test_function): Likewise.
62479         * tests/test-snprintf-posix.h (test_function): Likewise.
62480         * tests/test-sprintf-posix.h (test_function): Likewise.
62481         * tests/test-fprintf-posix.h (test_function): Likewise.
62482         * tests/test-printf-posix.h (test_function): Likewise.
62483         * tests/test-fprintf-posix.out: Likewise.
62484
62485 2007-04-10  Bruno Haible  <bruno@clisp.org>
62486
62487         * modules/locale-tests: New file.
62488         * tests/test-locale.c: New file.
62489
62490         * modules/locale: New file.
62491         * lib/locale_.h: New file.
62492         * m4/locale_h.m4: New file.
62493
62494 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
62495             Bruno Haible  <bruno@clisp.org>
62496
62497         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
62498         be determined, test for availability of the copysignf, copysign,
62499         copysignl functions.
62500         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
62501         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
62502         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
62503
62504 2007-04-09  Eric Blake  <ebb9@byu.net>
62505
62506         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
62507         * modules/stdio (Makefile.am): Support fflush.
62508         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
62509         * modules/fflush: New file.
62510         * lib/fflush.c: Likewise.
62511         * m4/fflush.m4: Likewise.
62512         * modules/fflush-tests: New test.
62513         * tests/test-fflush.c: Likewise.
62514         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
62515
62516 2007-04-06  Bruno Haible  <bruno@clisp.org>
62517
62518         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
62519         (VASNPRINTF): Use signbit for faster determination whether to print a
62520         minus sign.
62521         * modules/vasnprintf (Files): Remove lib/float+.h.
62522         * modules/fprintf-posix (Depends-on): Add signbit.
62523         * modules/snprintf-posix (Depends-on): Likewise.
62524         * modules/sprintf-posix (Depends-on): Likewise.
62525         * modules/vasnprintf-posix (Depends-on): Likewise.
62526         * modules/vasprintf-posix (Depends-on): Likewise.
62527         * modules/vfprintf-posix (Depends-on): Likewise.
62528         * modules/vsnprintf-posix (Depends-on): Likewise.
62529         * modules/vsprintf-posix (Depends-on): Likewise.
62530
62531 2007-04-06  Bruno Haible  <bruno@clisp.org>
62532
62533         * tests/test-frexp.c (main): Test also the sign bit of zero results.
62534         * tests/test-frexpl.c (main): Likewise.
62535         * tests/test-ldexpl.c (main): Likewise.
62536         * modules/frexp-tests (Depends-on): Add signbit.
62537         * modules/frexpl-tests (Depdends-on): Likewise.
62538         * modules/ldexpl-tests (Depdends-on): Likewise.
62539
62540 2007-04-06  Bruno Haible  <bruno@clisp.org>
62541
62542         * modules/signbit-tests: New file.
62543         * tests/test-signbit.c: New file.
62544
62545         * modules/signbit: New file.
62546         * lib/signbitf.c: New file.
62547         * lib/signbitd.c: New file.
62548         * lib/signbitl.c: New file.
62549         * m4/signbit.m4: New file.
62550         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
62551         (signbit): New macro.
62552         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
62553         REPLACE_SIGNBIT.
62554         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
62555         REPLACE_FREXPL into math.h.
62556
62557 2007-04-06  Bruno Haible  <bruno@clisp.org>
62558
62559         * modules/isnanf-nolibm-tests: New file.
62560         * tests/test-isnanf.c: New file.
62561
62562         * modules/isnanf-nolibm: New file.
62563         * lib/isnanf.h: New file.
62564         * lib/isnanf.c: New file.
62565         * lib/isnan.c: Consider the USE_FLOAT macro.
62566         * m4/isnanf.m4: New file.
62567
62568 2007-04-06  Bruno Haible  <bruno@clisp.org>
62569
62570         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
62571         (Link): New section.
62572
62573         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
62574
62575 2007-04-06  Bruno Haible  <bruno@clisp.org>
62576
62577         Assume the 'long double' type.
62578         * m4/longdouble.m4: Remove file.
62579         * config/srclist.txt: Don't mention longdouble.m4.
62580         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
62581         * lib/float+.h: Likewise.
62582         * lib/frexp.c: Likewise.
62583         * lib/printf-args.h: Likewise.
62584         * lib/printf-args.c: Likewise.
62585         * lib/printf-frexp.c: Likewise.
62586         * lib/printf-parse.c: Likewise.
62587         * lib/vasnprintf.c: Likewise.
62588         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
62589         * m4/intl.m4: Likewise.
62590         * m4/isnanl.m4: Likewise.
62591         * m4/printf.m4: Likewise.
62592         * m4/printf-frexpl.m4: Likewise.
62593         * m4/vasnprintf.m4: Likewise.
62594         * modules/allocsa (Files): Remove m4/longdouble.m4.
62595         * modules/gettext (Files): Likewise.
62596         * modules/relocatable-prog-wrapper (Files): Likewise.
62597         * modules/vasnprintf (Files): Likewise.
62598         * modules/isnanl (Files): Likewise.
62599         (Include): Simplify.
62600         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
62601         (Include): Simplify.
62602         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
62603         (Include): Simplify.
62604         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
62605         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62606         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
62607         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62608         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
62609         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62610         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
62611         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62612         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
62613         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62614         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
62615         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
62616         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
62617         * tests/test-isnanl.c: Likewise.
62618         * tests/test-snprintf-posix.h: Likewise.
62619         * tests/test-sprintf-posix.h: Likewise.
62620         * tests/test-vasnprintf-posix.c: Likewise.
62621         * tests/test-vasnprintf-posix2.c: Likewise.
62622         * tests/test-vasprintf-posix.c: Likewise.
62623
62624 2007-04-06  Bruno Haible  <bruno@clisp.org>
62625
62626         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
62627         * lib/math_.h [__DECC]: Include the overridden include file through
62628         #include_next, outside the double-inclusion guard.
62629         * lib/stdio_.h [__DECC]: Likewise.
62630         * lib/stdlib_.h [__DECC]: Likewise.
62631         * lib/string_.h [__DECC]: Likewise.
62632         * lib/time_.h [__DECC]: Likewise.
62633         * lib/wchar_.h [__DECC]: Likewise.
62634         * lib/wctype_.h [__DECC]: Likewise.
62635         * lib/inttypes_.h [__DECC]: Likewise.
62636         Reported by Albert Chin <china@thewrittenword.com> in
62637         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
62638
62639 2007-04-04  Eric Blake  <ebb9@byu.net>
62640
62641         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
62642         1.5.x.
62643
62644 2007-04-04  Bruno Haible  <bruno@clisp.org>
62645
62646         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
62647         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
62648
62649 2007-04-04  Bruno Haible  <bruno@clisp.org>
62650
62651         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
62652         results for "%010a" of Infinity and NaN.
62653         * tests/test-vasprintf-posix.c (test_function): Likewise.
62654         * tests/test-snprintf-posix.h (test_function): Likewise.
62655         * tests/test-sprintf-posix.h (test_function): Likewise.
62656         * tests/test-fprintf-posix.h (test_function): Remove these tests.
62657         * tests/test-printf-posix.h (test_function): Likewise.
62658         * tests/test-fprintf-posix.out: Update.
62659         Needed for FreeBSD 6.1.
62660
62661 2007-04-04  Bruno Haible  <bruno@clisp.org>
62662
62663         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
62664         directly used by the gnulib modules nor by gnulib-tool.
62665
62666 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
62667
62668         * DEPENDENCIES: Give overall description of version dependency
62669         desirability.  Use more-typical names for apps.
62670         Add shell, coreutils, diffutils, grep, tar, gzip.
62671
62672 2007-04-04  Simon Josefsson  <simon@josefsson.org>
62673
62674         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
62675
62676 2007-04-04  Karl Berry  <karl@gnu.org>
62677
62678         * MODULES.html.sh (func_module): missing '.
62679
62680 2007-04-03  Bruno Haible  <bruno@clisp.org>
62681
62682         * modules/argmatch-tests (Makefile.am): New variable
62683         test_argmatch_LDADD.
62684         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
62685         * modules/array-list-tests (Makefile.am): New variable
62686         test_array_list_LDADD.
62687         * modules/array-oset-tests (Makefile.am): New variable
62688         test_array_oset_LDADD.
62689         * modules/avltree-list-tests (Makefile.am): New variable
62690         test_avltree_list_LDADD.
62691         * modules/avltree-oset-tests (Makefile.am): New variable
62692         test_avltree_oset_LDADD.
62693         * modules/avltreehash-list-tests (Makefile.am): New variable
62694         test_avltreehash_list_LDADD.
62695         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
62696         test_canonicalize_lgpl_LDADD.
62697         * modules/carray-list-tests (Makefile.am): New variable
62698         test_carray_list_LDADD.
62699         * modules/dirname-tests (Makefile.am): New variable
62700         test_dirname_LDADD.
62701         * modules/linked-list-tests (Makefile.am): New variable
62702         test_linked_list_LDADD.
62703         * modules/linkedhash-list-tests (Makefile.am): New variable
62704         test_linkedhash_list_LDADD.
62705         * modules/rbtree-list-tests (Makefile.am): New variable
62706         test_rbtree_list_LDADD.
62707         * modules/rbtree-oset-tests (Makefile.am): New variable
62708         test_rbtree_oset_LDADD.
62709         * modules/rbtreehash-list-tests (Makefile.am): New variable
62710         test_rbtreehash_list_LDADD.
62711         * modules/xvasprintf-tests (Makefile.am): New variable
62712         test_xvasprintf_LDADD.
62713         Reported by Eric Blake.
62714
62715 2007-04-03  Eric Blake  <ebb9@byu.net>
62716
62717         * DEPENDENCIES: Weaken m4 requirements.
62718
62719 2007-04-03  Bruno Haible  <bruno@clisp.org>
62720
62721         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
62722         * modules/isnanl-tests (configure.ac): Likewise.
62723
62724 2007-04-03  Ben Pfaff  <blp@gnu.org>
62725
62726         * modules/iconv_open: Add $(srcdir)/ to source directory
62727         references in Makefile fragments that call gperf, to fix VPATH
62728         builds.
62729
62730 2007-04-03  Bruno Haible  <bruno@clisp.org>
62731
62732         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
62733         * lib/ldexpl.c: Undo last change.
62734
62735 2007-04-03  Bruno Haible  <bruno@clisp.org>
62736
62737         * modules/printf-frexpl (Depends-on): Undo last change.
62738         (Files): Add m4/ldexpl.m4.
62739
62740 2007-04-03  Bruno Haible  <bruno@clisp.org>
62741
62742         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
62743         * modules/isnanl (Link): New section.
62744
62745         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
62746         * modules/frexp (Link): New section.
62747
62748         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
62749         * modules/frexpl (Link): New section.
62750
62751         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
62752         * modules/ldexpl (Link): New section.
62753
62754 2007-04-03  Bruno Haible  <bruno@clisp.org>
62755
62756         * modules/TEMPLATE-EXTENDED: New file.
62757         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
62758
62759 2007-04-03  Bruno Haible  <bruno@clisp.org>
62760
62761         * DEPENDENCIES: New file.
62762         Suggested by Simon Josefsson.
62763
62764 2007-04-03  Bruno Haible  <bruno@clisp.org>
62765
62766         * doc/gnulib.texi: Escape @.
62767
62768 2007-04-03  James Youngman  <jay@gnu.org>
62769         and Paul Eggert  <eggert@cs.ucla.edu>
62770
62771         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
62772         birthtime on all systems that have birthtime, not just those which
62773         use st_birthtimensec rather than st_birthtim.  Putting zero in
62774         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
62775         that the birth time is not available for files on an NFS mount.
62776
62777 2007-04-03  Simon Josefsson  <simon@josefsson.org>
62778
62779         * modules/memxor: Move back from crypto/, suggested by Bruno.
62780         * modules/crypto/hmac-sha1: Fix memxor dependency.
62781
62782         * modules/crypto/gc: Moved from ../.
62783
62784 2007-04-02  Eric Blake  <ebb9@byu.net>
62785
62786         * lib/ldexpl.c (includes): Avoid libm.
62787
62788         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
62789
62790 2007-04-02  Bruno Haible  <bruno@clisp.org>
62791
62792         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
62793         on IRIX.
62794
62795 2007-04-02  Bruno Haible  <bruno@clisp.org>
62796
62797         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
62798         x86 or x86_64 platforms running MacOS X.
62799         Reported by Ryan Schmidt <@ryandesign.com>.
62800
62801 2007-04-02  Bruno Haible  <bruno@clisp.org>
62802
62803         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
62804         i386.
62805
62806 2007-04-01  Simon Josefsson  <simon@josefsson.org>
62807
62808         * modules/crypto/arcfour: Moved from ../.
62809         * modules/crypto/arcfour-tests: Moved from ../.
62810         * modules/crypto/arctwo: Moved from ../.
62811         * modules/crypto/arctwo-tests: Moved from ../.
62812         * modules/crypto/des: Moved from ../.
62813         * modules/crypto/des-tests: Moved from ../.
62814         * modules/crypto/gc-arcfour: Moved from ../.
62815         * modules/crypto/gc-arcfour-tests: Moved from ../.
62816         * modules/crypto/gc-arctwo: Moved from ../.
62817         * modules/crypto/gc-arctwo-tests: Moved from ../.
62818         * modules/crypto/gc-des: Moved from ../.
62819         * modules/crypto/gc-des-tests: Moved from ../.
62820         * modules/crypto/gc-hmac-md5: Moved from ../.
62821         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
62822         * modules/crypto/gc-hmac-sha1: Moved from ../.
62823         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
62824         * modules/crypto/gc-md2: Moved from ../.
62825         * modules/crypto/gc-md2-tests: Moved from ../.
62826         * modules/crypto/gc-md4: Moved from ../.
62827         * modules/crypto/gc-md4-tests: Moved from ../.
62828         * modules/crypto/gc-md5: Moved from ../.
62829         * modules/crypto/gc-md5-tests: Moved from ../.
62830         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
62831         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
62832         * modules/crypto/gc-random: Moved from ../.
62833         * modules/crypto/gc-rijndael: Moved from ../.
62834         * modules/crypto/gc-rijndael-tests: Moved from ../.
62835         * modules/crypto/gc-sha1: Moved from ../.
62836         * modules/crypto/gc-sha1-tests: Moved from ../.
62837         * modules/crypto/gc-tests: Moved from ../.
62838         * modules/crypto/hmac-md5: Moved from ../.
62839         * modules/crypto/hmac-md5-tests: Moved from ../.
62840         * modules/crypto/hmac-sha1: Moved from ../.
62841         * modules/crypto/hmac-sha1-tests: Moved from ../.
62842         * modules/crypto/md2: Moved from ../.
62843         * modules/crypto/md2-tests: Moved from ../.
62844         * modules/crypto/md4: Moved from ../.
62845         * modules/crypto/md4-tests: Moved from ../.
62846         * modules/crypto/md5: Moved from ../.
62847         * modules/crypto/md5-tests: Moved from ../.
62848         * modules/crypto/memxor: Moved from ../.
62849         * modules/crypto/rijndael: Moved from ../.
62850         * modules/crypto/rijndael-tests: Moved from ../.
62851         * modules/crypto/sha1: Moved from ../.
62852
62853 2007-03-30  James Youngman  <jay@gnu.org>
62854
62855         * tests/test-stat-time.c (prepare_test): use chmod() rather than
62856         rename() to change the ctime of a file (because ctime is unaffected
62857         by rename on jfs2 on AIX 5.1).
62858         (main): Start by doing cleanup, in case a previous run failed leaving
62859         test files behind.
62860
62861 2007-03-31  Bruno Haible  <bruno@clisp.org>
62862
62863         Support old proprietary implementations of iconv.
62864         * modules/iconv_open: New file.
62865         * lib/iconv_.h: New file.
62866         * m4/iconv_h.m4: New file.
62867         * lib/iconv_open.c: New file.
62868         * lib/iconv_open-aix.gperf: New file.
62869         * lib/iconv_open-hpux.gperf: New file.
62870         * lib/iconv_open-irix.gperf: New file.
62871         * lib/iconv_open-osf.gperf: New file.
62872         * m4/iconv_open.m4: New file.
62873         * modules/linebreak (Depends-on): Add iconv_open.
62874         * modules/striconv (Depends-on): Likewise.
62875         * modules/striconveh (Depends-on): Likewise.
62876         * modules/unicodeio (Depends-on): Likewise.
62877         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
62878         (iconv_t)(-1).
62879         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
62880         conversion if cd is (iconv_t)(-1).
62881         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
62882         is not possible.
62883
62884 2007-03-31  Bruno Haible  <bruno@clisp.org>
62885
62886         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
62887         work on Solaris either. Protect also second use of "autodetect_jp".
62888
62889 2007-03-31  Bruno Haible  <bruno@clisp.org>
62890
62891         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
62892         the function is not present.
62893
62894 2007-03-31  Bruno Haible  <bruno@clisp.org>
62895
62896         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
62897         the function is not present.
62898
62899 2007-03-31  Bruno Haible  <bruno@clisp.org>
62900
62901         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
62902         a bug in HP-UX iconv_open().
62903
62904 2007-03-31  Bruno Haible  <bruno@clisp.org>
62905
62906         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
62907         (Mathematics <math.h>): New section, add fpieee.
62908         (Input/output <stdio.h>): Add fseterr.
62909         (Mathematics <math.h>): New section, add printf-frexp.
62910         (Container data structures): Add sublist.
62911         (Core language properties): Add fpucw, inline.
62912         (Functions for greatest-width integer types <inttypes.h>): Add
62913         imaxabs, imaxdiv, inttypes.
62914         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
62915         isnanl-nolibm, ldexp.
62916         (Mathematics <math.h>): New section, add printf-frexpl.
62917         (Support for systems lacking POSIX:2001): Add fprintf-posix,
62918         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
62919         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
62920         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
62921         (Unicode string functions): Add unistr/u*-mbtoucr.
62922         (Java): Add javacomp-script, javaexec-script.
62923         (C#): Add csharpcomp-script, csharpexec-script.
62924         (Support for building libraries and executables): Add havelib,
62925         relocatable-*.
62926         (Support for maintaining and releasing projects): Renamed from
62927         'Support for maintaining and release projects'. Add announce-gen.
62928
62929 2007-03-31  Bruno Haible  <bruno@clisp.org>
62930
62931         * README: Talk primarily about git.
62932         (git and CVS): Renamed from CVS.
62933         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
62934         gnulib is available through git.
62935         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
62936
62937 2007-03-30  Bruno Haible  <bruno@clisp.org>
62938
62939         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
62940         * lib/poll_.h: Likewise.
62941         * lib/stat_.h: Likewise.
62942         * lib/sys_time_.h: Likewise.
62943         * lib/sysexit_.h: Likewise.
62944         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
62945         * lib/stdbool_.h: Likewise.
62946         * lib/byteswap_.h: Add double-inclusion guard.
62947
62948 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
62949
62950         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
62951
62952 2007-03-30  Karl Berry  <karl@gnu.org>
62953
62954         * config/srclist-update: double space after USA in the license
62955         substitution, since that's how it's usually (?) written.
62956
62957 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
62958
62959         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
62960         reported by Bruno Haible.
62961
62962 2007-03-29  Bruno Haible  <bruno@clisp.org>
62963
62964         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
62965         a bug in AIX iconv().
62966
62967 2007-03-29  Bruno Haible  <bruno@clisp.org>
62968
62969         * modules/ldexpl-tests: New file.
62970         * tests/test-ldexpl.c: New file.
62971
62972 2007-03-29  Bruno Haible  <bruno@clisp.org>
62973
62974         * lib/ldexpl.c: Include fpucw.h.
62975         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
62976         multiplication.
62977         * modules/ldexpl (Depends-on): Add fpucw.
62978
62979 2007-03-29  Bruno Haible  <bruno@clisp.org>
62980
62981         * modules/ldexpl: New file.
62982         * m4/ldexpl.m4: New file.
62983         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
62984         set.
62985         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
62986         REPLACE_LDEXPL.
62987         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
62988         REPLACE_LDEXPL.
62989         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
62990         gl_FUNC_LDEXPL_WORKS.
62991         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
62992         * modules/mathl (Files): Remove lib/ldexpl.c.
62993         (Depends-on): Add ldexpl.
62994
62995 2007-03-29  Bruno Haible  <bruno@clisp.org>
62996
62997         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
62998
62999 2007-03-29  Bruno Haible  <bruno@clisp.org>
63000
63001         * tests/test-striconveh.c (main): Don't assume that a direct conversion
63002         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
63003         and possibly also HP-UX.
63004         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
63005         work on AIX, IRIX, HP-UX, OSF/1.
63006         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
63007         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
63008         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
63009         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
63010         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
63011         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
63012
63013 2007-03-29  Bruno Haible  <bruno@clisp.org>
63014
63015         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
63016
63017 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
63018
63019         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
63020         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
63021
63022 2007-03-29  Eric Blake  <ebb9@byu.net>
63023
63024         * lib/acl-internal.h: Remove redundant include.
63025         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
63026         Cygwin when a file is locked.
63027
63028 2007-03-29  Bruno Haible  <bruno@clisp.org>
63029
63030         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
63031         file.
63032         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
63033
63034 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
63035
63036         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
63037         try to remove a parent directory if the child couldn't be removed
63038         (except for the first rmdir, which could fail because the child
63039         doesn't exist).  Problem reported by Jeff Blaine in
63040         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
63041
63042 2007-03-28  Bruno Haible  <bruno@clisp.org>
63043
63044         * lib/striconveh.c (utf8conv_carefully): New function.
63045         (mem_cd_iconveh_internal): Invoke it.
63046
63047 2007-03-28  Bruno Haible  <bruno@clisp.org>
63048
63049         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
63050         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
63051         input.
63052         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
63053         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
63054         unistr/u8-uctomb.
63055
63056 2007-03-28  Bruno Haible  <bruno@clisp.org>
63057
63058         * modules/unistr/u8-mbtoucr: New file.
63059         * lib/unistr/u8-mbtoucr.c: New file.
63060         * modules/unistr/u16-mbtoucr: New file.
63061         * lib/unistr/u16-mbtoucr.c: New file.
63062         * modules/unistr/u16-mbtoucr: New file.
63063         * lib/unistr/u16-mbtoucr.c: New file.
63064         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
63065
63066 2007-03-27  Simon Josefsson  <simon@josefsson.org>
63067             Bruno Haible  <bruno@clisp.org>
63068
63069         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
63070         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
63071         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
63072
63073         * m4/stdio_h.m4: Add stubs for vasprintf too.
63074
63075         * modules/stdio: Support vasprintf in sed command.
63076
63077         * modules/vasprintf: Depend on stdio for prototypes.  Remove
63078         vasprintf.h.  Add stdio module indicator.
63079
63080         * lib/stdio_.h: Declare asprintf and vasprintf, based on
63081         vasprintf.h.
63082
63083         * lib/vasprintf.h: File removed.
63084
63085         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
63086         * lib/vasprintf.c: Ditto.
63087         * lib/xvasprintf.c: Ditto.
63088         * tests/test-vasprintf-posix.c: Ditto.
63089         * tests/test-vasprintf.c: Ditto.
63090
63091 2007-03-27  Bruno Haible  <bruno@clisp.org>
63092
63093         Make vasnprintf multithread-safe.
63094         * lib/vasnprintf.c (decimal_point_char): New function.
63095         (VASNPRINTF): Use it.
63096         Suggested by Simon Josefsson.
63097
63098 2007-03-27  Eric Blake  <ebb9@byu.net>
63099
63100         Support sub-second birthtime on cygwin.
63101         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
63102         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
63103         (get_stat_birthtime): Also work with st_birthtim.
63104
63105 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
63106
63107         * lib/stat-time.h (USE_BIRTHTIME): Remove.
63108         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
63109         (get_stat_birthtime_ns): Do not try to use "spare" fields.
63110         (get_stat_birthtime_ns): Simplify compile-time tests.
63111         (get_stat_birthtime): Change the API to look like
63112         get_stat_mtime etc., except return a negative tv_nsec on error.
63113         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
63114         Don't check for "spare" fields.
63115         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
63116         or for struct stat.st_birthtime, as these tests aren't used.
63117         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
63118
63119 2007-03-27  Bruno Haible  <bruno@clisp.org>
63120
63121         * lib/stat-time.h: Include <sys/stat.h>.
63122
63123 2007-03-27  James Youngman  <jay@gnu.org>
63124
63125         * lib/stat-time.h (get_stat_birthtime): New function for
63126           retrieving st_birthtime as provided by UFS2 (hence *BSD).
63127         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
63128           and its variants.
63129         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
63130         * modules/stat-time-test: New file.
63131         * tests/test-stat-time.c: New test, devised by Bruno Haible.
63132
63133 2007-03-26  Bruno Haible  <bruno@clisp.org>
63134
63135         Better support of signalling NaNs.
63136         * lib/atanl.c: Include isnanl.h.
63137         (atanl): Perform test for NaN at the beginning of the function and
63138         through a call to isnanl.
63139         * lib/cosl.c: Include isnanl.h.
63140         (cosl): Perform test for NaN at the beginning of the function and
63141         through a call to isnanl.
63142         * lib/ldexpl.c: Include isnanl.h.
63143         (ldexpl): Perform test for NaN through a call to isnanl.
63144         * lib/logl.c: Include isnanl.h.
63145         (logl): Perform test for NaN at the beginning of the function and
63146         through a call to isnanl.
63147         * lib/sinl.c: Include isnanl.h.
63148         (sinl): Perform test for NaN at the beginning of the function and
63149         through a call to isnanl.
63150         * lib/sqrtl.c: Include isnanl.h.
63151         (sqrtl): Perform test for NaN at the beginning of the function and
63152         through a call to isnanl.
63153         * lib/tanl.c: Include isnanl.h.
63154         (tanl): Perform test for NaN at the beginning of the function and
63155         through a call to isnanl.
63156         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
63157         * modules/mathl (Depends-on): Add isnanl.
63158
63159 2007-03-26  Eric Blake  <ebb9@byu.net>
63160
63161         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
63162         regression in logic sense of previous patch.
63163
63164 2007-03-26  Bruno Haible  <bruno@clisp.org>
63165
63166         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
63167         unportable shell command "if ! ...".
63168         Reported by Ralf Wildenhues.
63169
63170 2007-03-25  Bruno Haible  <bruno@clisp.org>
63171
63172         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
63173         <sysexits.h> file, and only add EX_CONFIG.
63174         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
63175         absolute file name and whether it is sufficient. Substitute also
63176         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
63177         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
63178         ABSOLUTE_SYSEXITS_H into sysexits.h.
63179
63180 2007-03-25  Bruno Haible  <bruno@clisp.org>
63181
63182         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
63183         hints is NULL.
63184
63185 2007-03-25  Bruno Haible  <bruno@clisp.org>
63186
63187         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
63188         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
63189
63190 2007-03-25  Bruno Haible  <bruno@clisp.org>
63191
63192         * lib/vasnprintf.c: Include langinfo.h.
63193         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
63194         multithread-safe.
63195         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
63196         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
63197         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
63198         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
63199         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
63200         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
63201         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
63202         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
63203         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
63204         Reported by Simon Josefsson.
63205
63206 2007-03-25  Bruno Haible  <bruno@clisp.org>
63207
63208         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
63209         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
63210         * modules/vasnprintf (Depends-on): Add stdint.
63211
63212 2007-03-25  Bruno Haible  <bruno@clisp.org>
63213
63214         * modules/fpieee: New file.
63215         * m4/fpieee.m4: New file.
63216         * modules/isnan-nolibm (Depends-on): Add fpieee.
63217         * modules/isnanl-nolibm (Depends-on): Add fpieee.
63218         * modules/isnanl (Depends-on): Add fpieee.
63219
63220 2007-03-25  Bruno Haible  <bruno@clisp.org>
63221
63222         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
63223
63224 2007-03-25  Bruno Haible  <bruno@clisp.org>
63225
63226         Avoid test failures on IRIX 6.5.
63227         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
63228         (main): Use it.
63229         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
63230         macros.
63231         (main): Use them.
63232
63233 2007-03-25  Bruno Haible  <bruno@clisp.org>
63234
63235         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
63236         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
63237         exists but doesn't work.
63238         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
63239         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
63240         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
63241         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
63242         math.h.
63243
63244 2007-03-25  Bruno Haible  <bruno@clisp.org>
63245
63246         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
63247         returns inf. Needed on IRIX 6.5.
63248
63249 2007-03-25  Bruno Haible  <bruno@clisp.org>
63250
63251         * tests/test-frexpl.c: Include isnanl-nolibm.h.
63252         (main): Use isnanl instead of x != x idiom.
63253         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
63254
63255         * tests/test-frexp.c: Include isnan.h.
63256         (main): Use isnan instead of x != x idiom.
63257         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
63258
63259 2007-03-25  Bruno Haible  <bruno@clisp.org>
63260
63261         * tests/test-frexp.c (NaN): New function/macro.
63262         (main): Use it instead of 0.0 / 0.0.
63263         * tests/test-isnan.c (NaN): New function/macro.
63264         (main): Use it instead of 0.0 / 0.0.
63265         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
63266         (test_function): Use it instead of 0.0 / 0.0.
63267         * tests/test-vasprintf-posix.c (NaN): New function/macro.
63268         (test_function): Use it instead of 0.0 / 0.0.
63269         * tests/test-snprintf-posix.h (NaN): New function/macro.
63270         (test_function): Use it instead of 0.0 / 0.0.
63271         * tests/test-sprintf-posix.h (NaN): New function/macro.
63272         (test_function): Use it instead of 0.0 / 0.0.
63273         * tests/test-fprintf-posix.h (NaN): New function/macro.
63274         (test_function): Use it instead of 0.0 / 0.0.
63275         * tests/test-printf-posix.h (NaN): New function/macro.
63276         (test_function): Use it instead of 0.0 / 0.0.
63277
63278         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
63279
63280 2007-03-25  Bruno Haible  <bruno@clisp.org>
63281
63282         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
63283
63284 2007-03-25  Bruno Haible  <bruno@clisp.org>
63285
63286         * lib/regexec.c (merge_state_with_log): Make static.
63287
63288 2007-03-25  Bruno Haible  <bruno@clisp.org>
63289
63290         * lib/trigl.c (kernel_rem_pio2): Make static.
63291
63292 2007-03-25  Bruno Haible  <bruno@clisp.org>
63293
63294         * lib/sincosl.c (sincosl_table): Make static.
63295
63296 2007-03-25  Bruno Haible  <bruno@clisp.org>
63297
63298         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
63299         if the compiler does not support C99.
63300
63301 2007-03-25  Bruno Haible  <bruno@clisp.org>
63302
63303         * modules/time (Makefile.am): Ensure all rule action lines start with a
63304         tab.
63305
63306 2007-03-24  Bruno Haible  <bruno@clisp.org>
63307
63308         * modules/tsearch-tests: New file.
63309         * tests/test-tsearch.sh: New file.
63310         * tests/test-tsearch.c: New file, mostly copied from glibc.
63311
63312         * modules/search-tests: New file.
63313         * tests/test-search.c: New file.
63314
63315         * modules/search: New file.
63316         * lib/search_.h: New file, incorporating lib/tsearch.h.
63317         * m4/search_h.m4: New file.
63318         * lib/tsearch.h: Remove file.
63319         * lib/tsearch.c: Include search.h instead of tsearch.h.
63320         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
63321         HAVE_TSEARCH.
63322         * modules/tsearch (Files): Remove lib/tsearch.h.
63323         (Depends-on): Add search.
63324         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
63325         (Include): Change tsearch.h into search.h.
63326
63327 2007-03-24  Bruno Haible  <bruno@clisp.org>
63328
63329         * modules/fpucw: New file.
63330         * lib/fpucw.h: New file.
63331         * lib/frexp.c: Include fpucw.h.
63332         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
63333         (FUNC): Use them.
63334         * lib/printf-frexp.c: Include fpucw.h.
63335         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
63336         (FUNC): Use them.
63337         * lib/vasnprintf.c: Include fpucw.h.
63338         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
63339         'long double' calculations.
63340         * tests/test-frexpl.c: Include fpucw.h.
63341         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
63342         * tests/test-printf-frexpl.c: Include fpucw.h.
63343         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
63344         * modules/frexpl (Depends-on): Add fpucw.
63345         * modules/printf-frexpl (Depends-on): Likewise.
63346         * modules/fprintf-posix (Depends-on): Likewise.
63347         * modules/snprintf-posix (Depends-on): Likewise.
63348         * modules/sprintf-posix (Depends-on): Likewise.
63349         * modules/vasnprintf-posix (Depends-on): Likewise.
63350         * modules/vasprintf-posix (Depends-on): Likewise.
63351         * modules/vfprintf-posix (Depends-on): Likewise.
63352         * modules/vsnprintf-posix (Depends-on): Likewise.
63353         * modules/vsprintf-posix (Depends-on): Likewise.
63354         * modules/frexpl-tests (Depends-on): Likewise.
63355         * modules/printf-frexpl-tests (Depends-on): Likewise.
63356
63357 2007-03-24  Bruno Haible  <bruno@clisp.org>
63358
63359         * lib/float+.h: New file.
63360         * lib/isnan.c: Include float+.h.
63361         (SIZE): New macro.
63362         (FUNC): Compare only SIZE bytes of the value.
63363         * lib/vasnprintf.c: Include float+.h.
63364         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
63365         SIZEOF_LDBL or SIZEOF_DBL bytes.
63366         * modules/isnan-nolibm (Files): Add lib/float+.h.
63367         * modules/isnanl-nolibm (Files): Add lib/float+.h.
63368         * modules/isnanl (Files): Add lib/float+.h.
63369         * modules/vasnprintf (Files): Add lib/float+.h.
63370
63371 2007-03-24  Bruno Haible  <bruno@clisp.org>
63372
63373         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
63374         include isnanl-nolibm.h.
63375
63376 2007-03-24  Bruno Haible  <bruno@clisp.org>
63377
63378         * tests/test-read-file.c (main): Don't produce spurious output for
63379         expected situations. Make the test fail if it encountered unexpected
63380         results.
63381
63382 2007-03-24  Bruno Haible  <bruno@clisp.org>
63383
63384         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
63385         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
63386
63387 2007-03-24  Bruno Haible  <bruno@clisp.org>
63388
63389         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
63390
63391 2007-03-24  Bruno Haible  <bruno@clisp.org>
63392
63393         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
63394         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
63395
63396         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
63397         * modules/utf8-ucs4: Turn into a symbolic link to module
63398         unistr/u8-mbtouc.
63399
63400         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
63401         utf8-ucs4-unsafe.
63402         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
63403         unistr/u8-mbtouc-unsafe.
63404
63405         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
63406         * modules/utf16-ucs4: Turn into a symbolic link to module
63407         unistr/u16-mbtouc.
63408
63409         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
63410         utf16-ucs4-unsafe.
63411         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
63412         unistr/u16-mbtouc-unsafe.
63413
63414         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
63415         * modules/ucs4-utf8: Turn into a symbolic link to module
63416         unistr/u8-ubtomb.
63417
63418         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
63419         * modules/ucs4-utf16: Turn into a symbolic link to module
63420         unistr/u16-ubtomb.
63421
63422 2007-03-24  Bruno Haible  <bruno@clisp.org>
63423
63424         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
63425         Enable the function only if HAVE_INLINE.
63426         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
63427         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
63428         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
63429         Enable the function only if HAVE_INLINE.
63430         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
63431         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
63432         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
63433         Enable the function only if HAVE_INLINE.
63434         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
63435         Enable the function only if HAVE_INLINE.
63436         * modules/utf8-ucs4: Update.
63437         * modules/utf8-ucs4-unsafe: Update.
63438         * modules/utf16-ucs4: Update.
63439         * modules/utf16-ucs4-unsafe: Update.
63440         * modules/ucs4-utf8: Update.
63441         * modules/ucs4-utf16: Update.
63442
63443 2007-03-24  Bruno Haible  <bruno@clisp.org>
63444
63445         * lib/utf8-ucs4.h: Remove file.
63446         * lib/utf8-ucs4-unsafe.h: Remove file.
63447         * lib/utf16-ucs4.h: Remove file.
63448         * lib/utf16-ucs4-unsafe.h: Remove file.
63449         * lib/ucs4-utf8.h: Remove file.
63450         * lib/ucs4-utf16.h: Remove file.
63451         * lib/unistr.h: Include their previous contents.
63452         * m4/utf-ucs4.m4: Remove file.
63453         * m4/ucs4-utf.m4: Remove file.
63454         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
63455         (Depends-on): Add unistr/base.
63456         (configure.ac): Remove gl_UTF_UCS4.
63457         (Makefile.am): Update.
63458         (Include): Change to unistr.h.
63459         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
63460         (Depends-on): Add unistr/base.
63461         (configure.ac): Remove gl_UTF_UCS4.
63462         (Makefile.am): Update.
63463         (Include): Change to unistr.h.
63464         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
63465         (Depends-on): Add unistr/base.
63466         (configure.ac): Remove gl_UTF_UCS4.
63467         (Makefile.am): Update.
63468         (Include): Change to unistr.h.
63469         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
63470         (Depends-on): Add unistr/base.
63471         (configure.ac): Remove gl_UTF_UCS4.
63472         (Makefile.am): Update.
63473         (Include): Change to unistr.h.
63474         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
63475         (Depends-on): Add unistr/base.
63476         (configure.ac): Remove gl_UCS4_UTF.
63477         (Makefile.am): Update.
63478         (Include): Change to unistr.h.
63479         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
63480         (Depends-on): Add unistr/base.
63481         (configure.ac): Remove gl_UCS4_UTF.
63482         (Makefile.am): Update.
63483         (Include): Change to unistr.h.
63484         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
63485         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
63486         utf8-ucs4-unsafe.h.
63487         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
63488         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
63489         utf16-ucs4-unsafe.h.
63490         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
63491         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
63492         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
63493         * lib/unistr/u8-strchr.c: Likewise.
63494         * lib/unistr/u8-strrchr.c: Likewise.
63495         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
63496         * lib/unistr/u16-strchr.c: Likewise.
63497         * lib/unistr/u16-strrchr.c: Likewise.
63498         * lib/striconveh.c: Update.
63499         * lib/linebreak.c: Update.
63500
63501 2007-03-24  Bruno Haible  <bruno@clisp.org>
63502
63503         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
63504         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
63505
63506 2007-03-22  Bruno Haible  <bruno@clisp.org>
63507
63508         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
63509
63510 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
63511
63512         * MODULES.html.sh (File system functions): New module write-any-file.
63513         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
63514         * m4/write-any-file.m4: New files.
63515
63516 2007-03-23  Eric Blake  <ebb9@byu.net>
63517
63518         * gnulib-tool: Rearrange space-tab sequences, since some editors
63519         like to eat them.
63520
63521 2007-03-23  Eric Blake  <ebb9@byu.net>
63522
63523         * lib/version-etc.c (version_etc_va): Update license wording to
63524         be more concise.  Recommended by Richard Stallman.
63525
63526 2007-03-22  Bruno Haible  <bruno@clisp.org>
63527
63528         * lib/poll.c (MSG_PEEK): New fallback definition.
63529
63530 2007-03-22  Bruno Haible  <bruno@clisp.org>
63531
63532         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
63533         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
63534         (main): Update.
63535         Fixes a compilation error on BeOS.
63536
63537 2007-03-22  Bruno Haible  <bruno@clisp.org>
63538
63539         * modules/frexpl-tests: New file.
63540         * tests/test-frexpl.c: New file.
63541
63542         * modules/frexpl: New file.
63543         * m4/frexpl.m4: New file.
63544         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
63545         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
63546         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
63547         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
63548         (Depends-on): Add frexpl. Remove isnanl-nolibm.
63549         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
63550
63551 2007-03-22  Bruno Haible  <bruno@clisp.org>
63552
63553         * lib/frexpl.c: Share code with lib/frexp.c.
63554         * modules/mathl (Files): Add lib/frexp.c.
63555         (Depends-on): Add isnanl-nolibm.
63556
63557 2007-03-22  Bruno Haible  <bruno@clisp.org>
63558
63559         * modules/printf-frexp (Files): Add m4/frexp.m4.
63560         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
63561         only if the found frexp function actually works.
63562
63563 2007-03-22  Bruno Haible  <bruno@clisp.org>
63564
63565         * lib/frexp.c: Remove older implementation that uses divisions.
63566
63567 2007-03-21  Bruno Haible  <bruno@clisp.org>
63568
63569         * modules/frexp-tests: New file.
63570         * tests/test-frexp.c: New file.
63571
63572         * modules/frexp: New file.
63573         * lib/frexp.c: New file.
63574         * m4/frexp.m4: New file.
63575         * lib/math_.h (frexp): New declaration.
63576         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
63577         REPLACE_FREXP.
63578         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
63579
63580 2007-03-21  Bruno Haible  <bruno@clisp.org>
63581
63582         * modules/isnanl-tests: New file.
63583         * tests/test-isnanl.c: New file.
63584
63585         * modules/isnanl: New file.
63586         * lib/isnanl.h: New file.
63587         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
63588         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
63589         gl_FUNC_ISNANL_WORKS.
63590         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
63591         New macros.
63592
63593 2007-03-21  Bruno Haible  <bruno@clisp.org>
63594
63595         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
63596         lib/isnanl.h.
63597         (Include): Update.
63598         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
63599         * lib/vasnprintf.c: Update.
63600         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
63601         tests/test-isnanl.h, remove tests/test-isnanl.c.
63602         (Makefile.am): Update.
63603         * tests/test-isnanl-nolibm.c: New file.
63604         * tests/test-isnanl.h: New file.
63605         * tests/test-isnanl.c: Remove file.
63606
63607 2007-03-21  Jim Meyering  <jim@meyering.net>
63608
63609         When trying to open ".", treat ESTALE like EACCES.
63610         * lib/savewd.c (savewd_save): Resort to forking not just upon
63611         failure with EACCES, but also when errno is ESTALE.
63612
63613 2007-03-20  Bruno Haible  <bruno@clisp.org>
63614
63615         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
63616         Needed on AIX 5.1. Reported by Matthew Woehlke.
63617
63618 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63619
63620         Suggestions by Bruno Haible:
63621         * lib/acl-internal.h: Include "gettext.h" rather than rolling
63622         our own.
63623         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
63624         * modules/acl (Depends-on): Add gettext.
63625
63626 2007-03-19  Bruno Haible  <bruno@clisp.org>
63627
63628         * modules/iconvme: Remove file.
63629         * lib/iconvme.h: Remove file.
63630         * lib/iconvme.c: Remove file.
63631         * m4/iconvme.m4: Remove file.
63632
63633 2007-03-19  Bruno Haible  <bruno@clisp.org>
63634
63635         * doc/relocatable-maint.texi: Break long shell script line.
63636         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
63637
63638 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63639
63640         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
63641         handle file_has_acl.
63642         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
63643         * lib/acl.c: Move header inclusions and related macro defns into
63644         lib/acl-internal.h.
63645         (S_ISLNK): Remove defn, since that's now done for us.
63646         (file_has_acl): Move to lib/file-has-acl.c.
63647         Call acl_trivial if available.  This is the crucial part of the fix.
63648         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
63649         shared within the library.  Rewrite a bit, partly to make it compatible
63650         with the GNU coding style.
63651         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
63652         Remove unnecessary double-quotes.
63653         Don't test for acl_to_text; the build will catch that.
63654         Replace acl_entries if it doesn't exist and it is needed.
63655         Check for -lsec and acl_trivial (as used on Solaris 10).
63656         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
63657         lib/file-has-acl.c.
63658         (Depends-on): Add sys_stat, for S_ISLNK.
63659
63660 2007-03-19  Ben Pfaff  <blp@gnu.org>
63661
63662         * doc/gnulib.texi: Fix typos.
63663         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
63664
63665 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
63666
63667         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
63668         If size is zero here, buf must be zero.
63669
63670 2007-03-19  Simon Josefsson  <simon@josefsson.org>
63671
63672         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
63673         <bruno@clisp.org>.
63674
63675 2007-03-18  Bruno Haible  <bruno@clisp.org>
63676
63677         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
63678         Suggested by Eric Blake.
63679
63680 2007-03-18  Ben Pfaff  <blp@gnu.org>
63681
63682         * doc/relocatable.texi: Recommend using as prefix a directory
63683         that does not exist and will never be created.  Based on
63684         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
63685         and others.
63686
63687 2007-03-17  Bruno Haible  <bruno@clisp.org>
63688
63689         * lib/fchownat.c: Include lchown.h.
63690
63691 2007-03-17  Bruno Haible  <bruno@clisp.org>
63692
63693         Fix endless loop when the given allocated size was > INT_MAX.
63694         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
63695         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
63696         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
63697         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
63698         * lib/sprintf.c (sprintf): Likewise.
63699
63700 2007-03-17  Bruno Haible  <bruno@clisp.org>
63701
63702         * tests/test-argp-2.sh (func_compare): Output a context diff.
63703
63704 2007-03-17  Bruno Haible  <bruno@clisp.org>
63705
63706         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
63707         locale's decimal-point character.
63708
63709 2007-03-17  Bruno Haible  <bruno@clisp.org>
63710
63711         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
63712         before comparing it. Needed because on some platforms (e.g. x86) a
63713         'long double' occupies less bytes than sizeof (long double).
63714
63715 2007-03-17  Bruno Haible  <bruno@clisp.org>
63716
63717         * tests/test-crc.c (main): Make printf statements 64-bit clean.
63718         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
63719         * tests/test-getaddrinfo.c (simple): Likewise.
63720         * tests/test-read-file.c (main): Likewise.
63721
63722 2007-03-17  Bruno Haible  <bruno@clisp.org>
63723
63724         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
63725
63726 2007-03-17  Bruno Haible  <bruno@clisp.org>
63727
63728         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
63729         unused variable.
63730
63731 2007-03-17  Bruno Haible  <bruno@clisp.org>
63732
63733         * tests/test-c-strcasecmp.c: Include c-strcase.h.
63734         * tests/test-c-strncasecmp.c: Likewise.
63735
63736 2007-03-17  Bruno Haible  <bruno@clisp.org>
63737
63738         * modules/stdlib (Depends-on): Add unistd.
63739         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
63740         Needed for MacOS X 10.3.
63741
63742 2007-03-17  Bruno Haible  <bruno@clisp.org>
63743
63744         * lib/unistr/u-strdup.h: Include <stdlib.h>.
63745
63746 2007-03-17  Bruno Haible  <bruno@clisp.org>
63747
63748         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
63749
63750 2007-03-17  Bruno Haible  <bruno@clisp.org>
63751
63752         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
63753         to reflect files copied from gnulib (with or without modifications).
63754         Suggested by Jim Meyering.
63755
63756 2007-03-17  Eric Blake  <ebb9@byu.net>
63757
63758         * NEWS: Document stdlib change from 2007-02-18.
63759
63760 2007-03-17  Jim Meyering  <jim@meyering.net>
63761
63762         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
63763         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
63764         someone uses a name containing shell meta-characters.
63765         Reported by Alfred M. Szmidt.
63766
63767         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
63768
63769 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
63770
63771         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
63772         and copy gettext configuration files only if configure.ac contains
63773         a use of AM_GNU_GETTEXT_VERSION.
63774
63775 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
63776
63777         * build-aux/bootstrap (gnulib_name): New variable.
63778         (gnulib_tool_options): Use it.
63779
63780 2007-03-13  Simon Josefsson  <simon@josefsson.org>
63781
63782         * tests/test-des.c: Use new namespace.
63783
63784 2007-03-15  Bruno Haible  <bruno@clisp.org>
63785
63786         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
63787         Reported by James Youngman <jay@gnu.org>.
63788
63789 2007-03-15  Bruno Haible  <bruno@clisp.org>
63790
63791         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
63792         declared prototype. Needed with cc on OSF/1 5.1.
63793
63794 2007-03-15  Bruno Haible  <bruno@clisp.org>
63795
63796         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
63797         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
63798         (struct gl_list_implementation): Add dispose_fn argument to the
63799         'create_empty', 'create' methods.
63800         (struct gl_list_impl_base): Add field 'dispose_fn'.
63801         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
63802         argument.
63803         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
63804         dispose_fn argument.
63805         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
63806         dispose_fn on the dropped values.
63807         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
63808         dispose_fn argument.
63809         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
63810         dropped values.
63811         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
63812         (gl_tree_remove_node): Call dispose_fn on the dropped value.
63813         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
63814         (gl_tree_remove_node): Call dispose_fn on the dropped value.
63815         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
63816         argument.
63817         (gl_tree_list_free): Call dispose_fn on the dropped values.
63818         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
63819         the dropped values.
63820         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
63821         Add dispose_fn argument.
63822         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
63823         Call dispose_fn on the dropped values.
63824         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
63825         Add dispose_fn argument.
63826         (gl_sublist_create): Initialize the 'dispose_fn' field.
63827         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
63828         * tests/test-array_list.c (main): Update.
63829         * tests/test-carray_list.c (main): Update.
63830         * tests/test-avltree_list.c (main): Update.
63831         * tests/test-rbtree_list.c (main): Update.
63832         * tests/test-avltreehash_list.c (main): Update.
63833         * tests/test-rbtreehash_list.c (main): Update.
63834         * tests/test-linked_list.c (main): Update.
63835         * tests/test-linkedhash_list.c (main): Update.
63836         * tests/test-array_oset.c (main): Update.
63837
63838 2007-03-15  Bruno Haible  <bruno@clisp.org>
63839
63840         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
63841         (gl_oset_create_empty): Add dispose_fn argument.
63842         (struct gl_oset_implementation): Add dispose_fn argument to
63843         'create_empty' method.
63844         (struct gl_oset_impl_base): Add dispose_fn field.
63845         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
63846         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
63847         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
63848         values.
63849         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
63850         (gl_tree_oset_free): Call dispose_fn on the dropped values.
63851         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
63852         dropped value.
63853         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
63854         dropped value.
63855         * tests/test-array_oset.c (main): Update.
63856         * tests/test-avltree_oset.c (main): Update.
63857         * tests/test-rbtree_oset.c (main): Update.
63858         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
63859
63860 2007-03-13  Bruno Haible  <bruno@clisp.org>
63861
63862         * tests/test-stdbool.c (i): Update after last patch.
63863
63864 2007-03-12  Bruno Haible  <bruno@clisp.org>
63865
63866         * lib/quotearg.c: Include <wctype.h> early, before the definition of
63867         the iswprint macro. Needed on Solaris 2.5.1.
63868
63869 2007-03-12  Bruno Haible  <bruno@clisp.org>
63870
63871         * tests/test-printf-frexp.c (main): Declare x as volatile.
63872
63873 2007-03-12  Simon Josefsson  <simon@josefsson.org>
63874
63875         * doc/gnulib.texi (Build robot for gnulib): New section.
63876
63877 2007-03-12  Jim Meyering  <jim@meyering.net>
63878
63879         * build-aux/bootstrap: New file.
63880         * build-aux/bootstrap.conf: New file, from coreutils.
63881
63882 2007-03-11  Bruno Haible  <bruno@clisp.org>
63883
63884         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
63885
63886 2007-03-12  Simon Josefsson  <simon@josefsson.org>
63887
63888         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
63889         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
63890         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
63891
63892 2007-03-11  Bruno Haible  <bruno@clisp.org>
63893
63894         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
63895         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
63896
63897 2007-03-11  Bruno Haible  <bruno@clisp.org>
63898
63899         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
63900         formula. Needed for SunPRO C 5.0.
63901
63902 2007-03-11  Bruno Haible  <bruno@clisp.org>
63903
63904         * modules/long-options (Depends-on): Add getopt.
63905
63906 2007-03-11  Bruno Haible  <bruno@clisp.org>
63907
63908         * modules/modechange (Depends-on): Add stdbool.
63909
63910 2007-03-11  Bruno Haible  <bruno@clisp.org>
63911
63912         * modules/i-ring (Depends-on): Add stdbool.
63913
63914 2007-03-11  Bruno Haible  <bruno@clisp.org>
63915
63916         * modules/gc-des (Depends-on): Add stdbool.
63917
63918 2007-03-11  Bruno Haible  <bruno@clisp.org>
63919
63920         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
63921
63922 2007-03-11  Bruno Haible  <bruno@clisp.org>
63923
63924         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
63925
63926 2007-03-11  Bruno Haible  <bruno@clisp.org>
63927
63928         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
63929
63930 2007-03-11  Bruno Haible  <bruno@clisp.org>
63931
63932         * lib/vasnprintf.c (sprintf): Undefine.
63933
63934 2007-03-11  Bruno Haible  <bruno@clisp.org>
63935
63936         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
63937         initializers in SunPRO C and Compaq C compilers.
63938
63939 2007-03-11  Bruno Haible  <bruno@clisp.org>
63940
63941         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
63942         decrementing code ANSI C compliant.
63943
63944 2007-03-11  Bruno Haible  <bruno@clisp.org>
63945
63946         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
63947         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
63948
63949 2007-03-11  Bruno Haible  <bruno@clisp.org>
63950
63951         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
63952         <stdbool.h> substitute doesn't pass.
63953
63954 2007-03-11  Bruno Haible  <bruno@clisp.org>
63955
63956         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
63957
63958 2007-03-11  Bruno Haible  <bruno@clisp.org>
63959
63960         * gnulib-tool (func_create_megatestdir): Create also an autobuild
63961         script, for submission to autobuild.josefsson.org.
63962
63963 2007-03-10  Bruno Haible  <bruno@clisp.org>
63964
63965         * modules/canonicalize-lgpl-tests: New file.
63966         * tests/test-canonicalize-lgpl.sh: New file.
63967         * tests/test-canonicalize-lgpl.c: New file.
63968
63969         * modules/c-strcase-tests: New file.
63970         * tests/test-c-strcase.sh: New file.
63971         * tests/test-c-strcasecmp.c: New file.
63972         * tests/test-c-strncasecmp.c: New file.
63973
63974         * modules/atexit-tests: New file.
63975         * tests/test-atexit.sh: New file.
63976         * tests/test-atexit.c: New file.
63977
63978 2007-03-10  Bruno Haible  <bruno@clisp.org>
63979
63980         * tests/test-binary-io.sh: Use temporary filenames that are not so
63981         likely to clash with those of other tests (in a parallel make).
63982         * tests/test-binary-io.c: Likewise.
63983
63984 2007-03-10  Bruno Haible  <bruno@clisp.org>
63985
63986         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
63987         fallback; use #error instead.
63988         Suggested by Simon Josefsson.
63989
63990 2007-03-10  Bruno Haible  <bruno@clisp.org>
63991
63992         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
63993         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
63994         first and the last.
63995
63996 2007-03-10  Bruno Haible  <bruno@clisp.org>
63997
63998         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
63999
64000 2007-03-10  Bruno Haible  <bruno@clisp.org>
64001
64002         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
64003         "make distcheck".
64004         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
64005         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
64006         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
64007
64008 2007-03-10  Bruno Haible  <bruno@clisp.org>
64009
64010         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
64011         variable.
64012         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
64013         variable.
64014
64015 2007-03-09  Eric Blake  <ebb9@byu.net>
64016         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
64017
64018         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
64019         types are not being provided by gnulib.
64020         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
64021         types are supported.
64022
64023 2007-03-10  Bruno Haible  <bruno@clisp.org>
64024
64025         * lib/stdio_.h (__attribute__): New macro.
64026         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
64027         vsprintf): Specify __attribute__ __format__ for GCC.
64028         Suggested by Eric Blake.
64029
64030 2007-03-09  Bruno Haible  <bruno@clisp.org>
64031
64032         * modules/printf-posix-tests: New file.
64033         * tests/test-printf-posix.sh: New file.
64034         * tests/test-printf-posix.c: New file.
64035
64036         * modules/printf-posix: New file.
64037         * lib/printf.c: New file.
64038         * m4/printf-posix-rpl.m4: New file.
64039         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
64040         REPLACE_PRINTF.
64041         * lib/stdio_.h (printf): New declaration.
64042         (format, __format__, ____printf____, ____scanf____, ____strftime____,
64043         ____strfmon____): New macros.
64044         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
64045         REPLACE_PRINTF.
64046
64047 2007-03-09  Bruno Haible  <bruno@clisp.org>
64048
64049         * tests/test-vasnprintf-posix2.sh: New file.
64050         * tests/test-vasnprintf-posix2.c: New file.
64051         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
64052         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
64053         (Makefile.am): Activate test-vasnprintf-posix2.sh.
64054
64055         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
64056         a locale dependent decimal point, rather than always '.'.
64057
64058 2007-03-09  Eric Blake  <ebb9@byu.net>
64059
64060         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
64061         spite of platforms like Tandem/NSK that define it to -1.
64062
64063 2007-03-08  Bruno Haible  <bruno@clisp.org>
64064
64065         * modules/vprintf-posix-tests: New file.
64066         * tests/test-vprintf-posix.sh: New file.
64067         * tests/test-vprintf-posix.c: New file.
64068         * tests/test-printf-posix.h: New file.
64069
64070         * modules/vprintf-posix: New file.
64071         * lib/vprintf.c: New file.
64072         * m4/vprintf-posix.m4: New file.
64073         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
64074         REPLACE_VPRINTF.
64075         * lib/stdio_.h (vprintf): New declaration.
64076         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
64077         REPLACE_VPRINTF.
64078
64079 2007-03-08  Bruno Haible  <bruno@clisp.org>
64080
64081         * modules/fprintf-posix-tests: New file.
64082         * tests/test-fprintf-posix.sh: New file.
64083         * tests/test-fprintf-posix.c: New file.
64084
64085         * modules/fprintf-posix: New file.
64086         * lib/fprintf.c: New file.
64087         * m4/fprintf-posix.m4: New file.
64088         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
64089         REPLACE_FPRINTF.
64090         * lib/stdio_.h (fprintf): New declaration.
64091         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
64092         REPLACE_FPRINTF.
64093
64094 2007-03-08  Bruno Haible  <bruno@clisp.org>
64095
64096         * modules/vfprintf-posix-tests: New file.
64097         * tests/test-vfprintf-posix.sh: New file.
64098         * tests/test-vfprintf-posix.c: New file.
64099         * tests/test-fprintf-posix.h: New file.
64100         * tests/test-fprintf-posix.out: New file.
64101
64102         * modules/vfprintf-posix: New file.
64103         * lib/vfprintf.c: New file.
64104         * m4/vfprintf-posix.m4: New file.
64105         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
64106         REPLACE_VFPRINTF.
64107         * lib/stdio_.h (vfprintf): New declaration.
64108         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
64109         REPLACE_VFPRINTF.
64110
64111 2007-03-08  Bruno Haible  <bruno@clisp.org>
64112
64113         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
64114
64115 2007-03-08  Bruno Haible  <bruno@clisp.org>
64116
64117         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
64118         instead of 'expr' invocations.
64119         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
64120         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64121         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
64122         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
64123         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
64124         Suggested by Paul Eggert.
64125
64126 2007-03-08  Bruno Haible  <bruno@clisp.org>
64127
64128         * modules/fseterr-tests: New file.
64129         * tests/test-fseterr.c: New file.
64130
64131         * modules/fseterr: New file.
64132         * lib/fseterr.h: New file.
64133         * lib/fseterr.c: New file.
64134
64135 2007-03-08  Bruno Haible  <bruno@clisp.org>
64136
64137         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
64138         * lib/getopt_.h: Likewise.
64139         * lib/mbswidth.h: Likewise.
64140         * lib/setenv.h: Likewise.
64141         * lib/vasnprintf.h: Likewise.
64142         * lib/vasprintf.h: Likewise.
64143         * lib/verror.h: Likewise.
64144         * lib/xsetenv.h: Likewise.
64145         * lib/xvasprintf.h: Likewise.
64146
64147 2007-03-08  Jim Meyering  <jim@meyering.net>
64148
64149         * users.txt: Add parted.
64150
64151         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
64152
64153 2007-03-07  Bruno Haible  <bruno@clisp.org>
64154
64155         * m4/printf.m4: Make the shell script snippets copy&pastable.
64156
64157 2007-03-02  Bruno Haible  <bruno@clisp.org>
64158
64159         * lib/netinet_in_.h: New file.
64160         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
64161         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
64162         * modules/netinet_in (Files): Add lib/netinet_in_.h.
64163         (Depends-on): Add absolute-header.
64164         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
64165         into netinet/in.h.
64166
64167 2007-03-03  Bruno Haible  <bruno@clisp.org>
64168
64169         * lib/sys_select_.h: New file.
64170         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
64171         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
64172         * modules/sys_select (Files): Add lib/sys_select_.h.
64173         (Depends-on): Add absolute-header.
64174         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
64175         into sys/select.h.
64176
64177 2007-03-02  Bruno Haible  <bruno@clisp.org>
64178
64179         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
64180         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
64181         values.
64182         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
64183         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
64184         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
64185         * modules/sys_socket (Depends-on): Add absolute-header.
64186         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
64187         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
64188         (Include): Remove requirement of inclusion of <sys/types.h>.
64189
64190 2007-03-02  Bruno Haible  <bruno@clisp.org>
64191
64192         * lib/byteswap_.h (bswap_32): Fix formula.
64193
64194 2007-03-06  Bruno Haible  <bruno@clisp.org>
64195
64196         * modules/sprintf-posix-tests: New file.
64197         * tests/test-sprintf-posix.c: New file.
64198
64199         * modules/sprintf-posix: New file.
64200         * lib/sprintf.c: New file.
64201         * m4/sprintf-posix.m4: New file.
64202         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
64203         REPLACE_SPRINTF.
64204         * lib/stdio_.h (sprintf): New declaration.
64205         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
64206         REPLACE_SPRINTF.
64207
64208 2007-03-06  Bruno Haible  <bruno@clisp.org>
64209
64210         * modules/vsprintf-posix-tests: New file.
64211         * tests/test-vsprintf-posix.c: New file.
64212         * tests/test-sprintf-posix.h: New file.
64213
64214         * modules/vsprintf-posix: New file.
64215         * lib/vsprintf.c: New file.
64216         * m4/vsprintf-posix.m4: New file.
64217         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
64218         REPLACE_VSPRINTF.
64219         * lib/stdio_.h (vsprintf): New declaration.
64220         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
64221         REPLACE_VSPRINTF.
64222
64223 2007-03-06  Bruno Haible  <bruno@clisp.org>
64224
64225         * modules/vsnprintf (Depend-on): Remove minmax.
64226
64227 2007-03-06  Bruno Haible  <bruno@clisp.org>
64228
64229         * modules/snprintf-posix-tests: New file.
64230         * tests/test-snprintf-posix.c: New file.
64231
64232         * modules/snprintf-posix: New file.
64233         * m4/snprintf-posix.m4: New file.
64234         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
64235         gl_FUNC_SNPRINTF.
64236         (gl_FUNC_SNPRINTF): Invoke it.
64237         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
64238         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
64239         is set.
64240         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
64241
64242 2007-03-06  Bruno Haible  <bruno@clisp.org>
64243
64244         * modules/vsnprintf-posix-tests: New file.
64245         * tests/test-vsnprintf-posix.c: New file.
64246         * tests/test-snprintf-posix.h: New file.
64247
64248         * modules/vsnprintf-posix: New file.
64249         * m4/vsnprintf-posix.m4: New file.
64250         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
64251         gl_FUNC_VSNPRINTF.
64252         (gl_FUNC_VSNPRINTF): Invoke it.
64253         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
64254         * lib/stdio_.h (vsnprintf): Define as a replacement if
64255         REPLACE_VSNPRINTF is set.
64256         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
64257
64258 2007-03-06  Bruno Haible  <bruno@clisp.org>
64259
64260         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
64261         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
64262
64263 2007-03-06  Bruno Haible  <bruno@clisp.org>
64264
64265         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
64266         (asinl): Declare also if HAVE_DECL_ASINL is set.
64267         (atanl): Declare also if HAVE_DECL_ATANL is set.
64268         (ceill): Declare also if HAVE_DECL_CEILL is set.
64269         (cosl): Declare also if HAVE_DECL_COSL is set.
64270         (expl): Declare also if HAVE_DECL_EXPL is set.
64271         (floorl): Declare also if HAVE_DECL_FLOORL is set.
64272         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
64273         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
64274         (logl): Declare also if HAVE_DECL_LOGL is set.
64275         (sinl): Declare also if HAVE_DECL_SINL is set.
64276         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
64277         (tanl): Declare also if HAVE_DECL_TANL is set.
64278         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
64279         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
64280         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
64281         declaration of frexpl, ldexpl.
64282         * modules/printf-frexpl (Depends-on): Add math.
64283         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
64284
64285 2007-03-05  Bruno Haible  <bruno@clisp.org>
64286
64287         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
64288         frexpl and ldexpl are declared.
64289         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
64290
64291 2007-03-05  Bruno Haible  <bruno@clisp.org>
64292
64293         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
64294         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
64295
64296 2007-03-05  Bruno Haible  <bruno@clisp.org>
64297
64298         * lib/stdio_.h: Include <stddef.h>.
64299
64300 2007-03-05  Bruno Haible  <bruno@clisp.org>
64301
64302         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
64303
64304 2007-03-05  Bruno Haible  <bruno@clisp.org>
64305
64306         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
64307         NetBSD 4, from Ralf Wildenhues.
64308
64309 2007-03-04  Bruno Haible  <bruno@clisp.org>
64310
64311         * lib/vasprintf.h: Update #if logic for the case when the functions
64312         exist but are overridden.
64313
64314 2007-03-04  Bruno Haible  <bruno@clisp.org>
64315
64316         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
64317         implementations: glibc-2.4 and MacOS X 10.3.
64318         * tests/test-vasnprintf-posix.c (test_function): Test also the case
64319         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
64320         * tests/test-vasprintf-posix.c (test_function): Likewise.
64321
64322 2007-03-04  Bruno Haible  <bruno@clisp.org>
64323
64324         * modules/vasprintf-posix-tests: New file.
64325         * tests/test-vasprintf-posix.c: New file.
64326
64327         * modules/vasprintf-posix: New file.
64328         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
64329         defined.
64330         * m4/vasprintf-posix.m4: New file.
64331         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
64332         gl_FUNC_VASPRINTF.
64333         (gl_FUNC_VASPRINTF): Invoke it.
64334         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
64335         here.
64336         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
64337
64338 2007-03-04  Bruno Haible  <bruno@clisp.org>
64339
64340         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
64341         REPLACE_GETTIMEOFDAY.
64342         * modules/sys_time (Makefile.am): Likewise.
64343         * m4/sys_time_h.m4: Likewise.
64344         * m4/gettimeofday.m4: Likewise.
64345
64346 2007-03-04  Bruno Haible  <bruno@clisp.org>
64347
64348         * modules/vasnprintf-posix-tests: New file.
64349         * tests/test-vasnprintf-posix.c: New file.
64350
64351         * modules/vasnprintf-posix: New file.
64352         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
64353         printf-frexpl.h.
64354         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
64355         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
64356         REPLACE_VASNPRINTF is defined.
64357         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
64358         gl_FUNC_VASNPRINTF.
64359         (gl_FUNC_VASNPRINTF): Invoke it.
64360         * m4/vasnprintf-posix.m4: New file.
64361         * m4/printf.m4: New file.
64362
64363 2007-03-04  Bruno Haible  <bruno@clisp.org>
64364
64365         Compile progreloc.c only if --enable-relocatable is specified.
64366         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
64367         if --enable-relocatable was specified.
64368         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
64369         lib_SOURCES.
64370
64371 2007-03-04  Jim Meyering  <jim@meyering.net>
64372
64373         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
64374         Use it consistently, rather than enumerating errno constants.
64375
64376 2007-03-04  Bruno Haible  <bruno@clisp.org>
64377
64378         * modules/xvasprintf-tests: New file.
64379         * tests/test-xvasprintf.c: New file.
64380
64381         * modules/vasprintf-tests: New file.
64382         * tests/test-vasprintf.c: New file.
64383
64384         * modules/vasnprintf-tests: New file.
64385         * tests/test-vasnprintf.c: New file.
64386
64387         * modules/vsnprintf-tests: New file.
64388         * tests/test-vsnprintf.c: New file.
64389
64390         * modules/snprintf-tests: New file.
64391         * tests/test-snprintf.c: New file.
64392
64393 2007-03-04  Bruno Haible  <bruno@clisp.org>
64394
64395         Compile relocatable.c only if --enable-relocatable is specified.
64396         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
64397         gl_RELOCATABLE_LIBRARY.
64398         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
64399         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
64400         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
64401         gl_RELOCATABLE_LIBRARY.
64402         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
64403         (Makefile.am): Remove lib_SOURCES.
64404         * modules/relocatable-lib-lgpl (configure.ac): Invoke
64405         gl_RELOCATABLE_LIBRARY.
64406         (Makefile.am): Remove lib_SOURCES.
64407         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
64408         always.
64409         * modules/relocatable-prog-wrapper (configure.ac): Invoke
64410         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
64411
64412 2007-03-04  Bruno Haible  <bruno@clisp.org>
64413
64414         * modules/argmatch-tests: New file.
64415         * tests/test-argmatch.c: New file.
64416
64417         * tests/test-allocsa.c (main): Halve the number of loop runs.
64418
64419         * modules/alloca-opt-tests: New file.
64420         * tests/test-alloca-opt.c: New file.
64421
64422 2007-03-04  Jim Meyering  <jim@meyering.net>
64423
64424         Work around difference between Linux ACLs and Solaris 10 ZFS.
64425         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
64426         for EINVAL.
64427
64428 2007-03-03  Bruno Haible  <bruno@clisp.org>
64429
64430         * modules/relocatable-prog (Depends-on): Add back progreloc's
64431         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
64432
64433 2007-03-03  Bruno Haible  <bruno@clisp.org>
64434
64435         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
64436         * modules/relocatable-lib: New file.
64437
64438 2007-03-03  Bruno Haible  <bruno@clisp.org>
64439
64440         * modules/relocatable-prog: Renamed from modules/relocatable.
64441         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
64442
64443 2007-03-03  Bruno Haible  <bruno@clisp.org>
64444
64445         * modules/relocatable-script (Files): Add doc/relocatable.texi,
64446         m4/relocatable-lib.m4.
64447         (Depends-on): Remove 'relocatable'.
64448         (configure.ac): Add gl_RELOCATABLE_NOP.
64449
64450 2007-03-03  Bruno Haible  <bruno@clisp.org>
64451
64452         * modules/relocatable-prog-wrapper: New file.
64453         * modules/relocatable (Depends-on): Add it. Remove all other
64454         dependencies except progname.
64455         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
64456
64457         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
64458         (gl_FUNC_STRERROR): Nop.
64459         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
64460
64461         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
64462         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
64463
64464         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
64465         (gl_FUNC_READLINK): Update.
64466
64467         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
64468
64469 2007-03-03  Bruno Haible  <bruno@clisp.org>
64470
64471         * lib/xreadlink.c: Include <unistd.h> unconditionally.
64472         * modules/xreadlink (Depends-on): Add unistd.
64473         * modules/xreadlink-with-size (Depends-on): Likewise.
64474
64475 2007-03-03  Bruno Haible  <bruno@clisp.org>
64476
64477         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
64478         extracted from gt_FUNC_SETENV.
64479         (gt_FUNC_SETENV): Remove macro.
64480         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
64481         remove gt_FUNC_SETENV.
64482
64483 2007-03-03  Bruno Haible  <bruno@clisp.org>
64484
64485         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
64486         ENABLE_RELOCATABLE here.
64487         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
64488
64489 2007-03-03  Bruno Haible  <bruno@clisp.org>
64490
64491         * modules/rbtreehash-list-tests (Depends-on): Add progname.
64492         * tests/test-rbtreehash_list.c: Include progname.h.
64493         (main): Call set_program_name.
64494
64495         * modules/rbtree-oset-tests (Depends-on): Add progname.
64496         * tests/test-rbtree_oset.c: Include progname.h.
64497         (main): Call set_program_name.
64498
64499         * modules/rbtree-list-tests (Depends-on): Add progname.
64500         * tests/test-rbtree_list.c: Include progname.h.
64501         (main): Call set_program_name.
64502
64503         * modules/linked-list-tests (Depends-on): Add progname.
64504         * tests/test-linked_list.c: Include progname.h.
64505         (main): Call set_program_name.
64506
64507 2007-03-03  Bruno Haible  <bruno@clisp.org>
64508
64509         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
64510         All uses of __restrict changed to _Restrict_.
64511         * lib/glob_.h (__restrict): Remove macro.
64512
64513 2007-03-02  Bruno Haible  <bruno@clisp.org>
64514
64515         * modules/gettext (configure.ac): Require gettext infrastructure
64516         from version 0.16.1.
64517
64518 2007-03-02  Bruno Haible  <bruno@clisp.org>
64519
64520         * modules/linkedhash-list-tests (Depends-on): Add progname.
64521         * tests/test-linkedhash_list.c: Include progname.h.
64522         (main): Call set_program_name.
64523
64524         * modules/carray-list-tests (Depends-on): Add progname.
64525         * tests/test-carray_list.c: Include progname.h.
64526         (main): Call set_program_name.
64527
64528         * modules/avltreehash-list-tests (Depends-on): Add progname.
64529         * tests/test-avltreehash_list.c: Include progname.h.
64530         (main): Call set_program_name.
64531
64532         * modules/avltree-oset-tests (Depends-on): Add progname.
64533         * tests/test-avltree_oset.c: Include progname.h.
64534         (main): Call set_program_name.
64535
64536         * modules/avltree-list-tests (Depends-on): Add progname.
64537         * tests/test-avltree_list.c: Include progname.h.
64538         (main): Call set_program_name.
64539
64540         * modules/array-oset-tests (Depends-on): Add progname.
64541         * tests/test-array_oset.c: Include progname.h.
64542         (main): Call set_program_name.
64543
64544         * modules/array-list-tests (Depends-on): Add progname.
64545         * tests/test-array_list.c: Include progname.h.
64546         (main): Call set_program_name.
64547
64548         * modules/argp-tests (Depends-on): Add progname.
64549         * tests/test-argp.c: Include argp.h first. Include progname.h.
64550         (main): Call set_program_name.
64551
64552 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
64553
64554         * doc/gnulib-tool.texi (Initial import): Reword description of
64555         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
64556         limited effect even if defined after the first system include.
64557
64558 2007-03-01  Bruno Haible  <bruno@clisp.org>
64559
64560         * build-aux/config.libpath: Update to libtool-1.5.22.
64561         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
64562
64563 2007-03-01  Bruno Haible  <bruno@clisp.org>
64564
64565         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
64566         foo_CFLAGS.
64567         Reported by Ralf Wildenhues.
64568
64569 2007-03-01  Bruno Haible  <bruno@clisp.org>
64570
64571         * build-aux/install-reloc: Remove object files left over by some
64572         compilers.
64573         Reported by Ralf Wildenhues.
64574
64575 2007-03-01  Bruno Haible  <bruno@clisp.org>
64576
64577         * build-aux/install-reloc: Break long lines.
64578
64579 2007-03-01  Bruno Haible  <bruno@clisp.org>
64580
64581         * doc/relocatable.texi: Document that it may not work on OpenBSD.
64582         Reported by Ralf Wildenhues.
64583
64584 2007-03-01  Bruno Haible  <bruno@clisp.org>
64585
64586         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
64587         include ordering constraints.
64588
64589 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
64590
64591         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
64592         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
64593         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
64594         as another example.
64595         * lib/time_.h: Fix misspelling.
64596         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
64597         Require gl_HEADER_TIME_H_DEFAULTS.
64598         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
64599         * m4/time_r.m4 (gl_TIME_R): Likewise.
64600         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
64601
64602 2007-03-01  Bruno Haible  <bruno@clisp.org>
64603
64604         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
64605         * m4/utimens.m4 (gl_UTIMENS): Likewise.
64606
64607 2007-03-01  Jim Meyering  <jim@meyering.net>
64608
64609         * modules/xreadlink (Maintainer): Add my name.
64610         * modules/xreadlink-with-size (Depends-on): Alphabetize.
64611
64612 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
64613             Bruno Haible  <bruno@clisp.org>
64614
64615         * build-aux/install-reloc: Compile also c-ctype.c.
64616         * build-aux/relocatable.sh.in: New file.
64617         * doc/relocatable.texi: New file.
64618         * doc/relocatable-maint.texi: New file.
64619         * doc/gnulib.texi: Include relocatable-maint.texi.
64620         * lib/progreloc.c: Include unistd.h unconditionally.
64621         * lib/relocwrapper.c: Include unistd.h unconditionally.
64622         Include c-ctype.h.
64623         (add_dotbin): Use c_tolower.
64624         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
64625         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
64626         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
64627         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
64628         to m4/relocatable-lib.m4.
64629         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
64630         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
64631         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
64632         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
64633         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
64634         * modules/relocatable: New file.
64635         * modules/relocatable-lib: New file.
64636         * modules/relocatable-script: New file.
64637
64638 2007-02-28  Bruno Haible  <bruno@clisp.org>
64639
64640         Import --enable-relocatable infrastructure.
64641         * build-aux/config.libpath: New file, from GNU gettext.
64642         * build-aux/install-reloc: New file, from GNU gettext.
64643         * build-aux/reloc-ldflags: New file, from GNU gettext.
64644         * lib/relocatable.h: New file, from GNU gettext.
64645         * lib/relocatable.c: New file, from GNU gettext.
64646         * lib/relocwrapper.c: New file, from GNU gettext.
64647         * m4/relocatable.m4: New file, from GNU gettext.
64648
64649 2007-02-28  Bruno Haible  <bruno@clisp.org>
64650
64651         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
64652
64653         * modules/xreadlink: New file, from GNU gettext with modifications.
64654         * lib/xreadlink.c: New file, from GNU gettext.
64655         * lib/xreadlink.h: Add comments.
64656         (xreadlink): New declaration.
64657
64658         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
64659         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
64660         lib/xreadlink-with-size.c.
64661         (configure.ac): Remove gl_XREADLINK invocation.
64662         (Makefile.am): Augment lib_SOURCES.
64663         * m4/xreadlink.m4: Remove file.
64664         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
64665         (xreadlink_with_size): Renamed from xreadink.
64666         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
64667         * modules/canonicalize (Depends-on): Replace xreadlink with
64668         xreadlink-with-size.
64669         * lib/canonicalize.c (canonicalize_filename_mode): Update.
64670
64671 2007-02-25  Jim Meyering  <jim@meyering.net>
64672
64673         * build-aux/announce-gen: When complaining about excess arguments,
64674         list them.
64675
64676 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
64677
64678         * README: Document signed integer overflow situation more
64679         accurately.
64680
64681 2007-02-25  Bruno Haible  <bruno@clisp.org>
64682
64683         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
64684         'a' or 'A' conversion.
64685
64686 2007-02-25  Bruno Haible  <bruno@clisp.org>
64687
64688         * modules/filename: Renamed from modules/pathname.
64689         (Files): Replace lib/pathname.h with lib/filename.h. Replace
64690         lib/concatpath.c with lib/concat-filename.c.
64691         (Makefile.am): Update.
64692         (Include): Replace pathname.h with filename.h.
64693         * lib/filename.h: Renamed from lib/pathname.h.
64694         (concatenated_filename): Renamed from concatenated_pathname.
64695         * lib/concat-filename.c: Renamed from lib/concatpath.c.
64696         (concatenated_filename): Renamed from concatenated_pathname.
64697         * lib/findprog.c: Include filename.h instead of pathname.h.
64698         (find_in_path): Update.
64699         * lib/javacomp.c: Include filename.h instead of pathname.h.
64700         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
64701         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
64702         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
64703         is_oldgcj_14_13_usable, is_javac_usable): Update.
64704         * lib/javaexec.c: Include filename.h instead of pathname.h.
64705         (execute_java_class): Update.
64706         * modules/findprog: Update.
64707         * modules/javacomp: Update.
64708         * modules/javaexec: Update.
64709         * MODULES.html.sh (File system functions): Add 'filename', remove
64710         'pathname'.
64711
64712 2007-02-25  Bruno Haible  <bruno@clisp.org>
64713
64714         * modules/printf-frexpl-tests: New file.
64715         * tests/test-printf-frexpl.c: New file.
64716
64717         * modules/printf-frexpl: New file.
64718         * lib/printf-frexpl.h: New file.
64719         * lib/printf-frexpl.c: New file.
64720         * m4/printf-frexpl.m4: New file.
64721
64722 2007-02-25  Bruno Haible  <bruno@clisp.org>
64723
64724         * modules/printf-frexp-tests: New file.
64725         * tests/test-printf-frexp.c: New file.
64726
64727         * modules/printf-frexp: New file.
64728         * lib/printf-frexp.h: New file.
64729         * lib/printf-frexp.c: New file.
64730         * m4/printf-frexp.m4: New file.
64731
64732 2007-02-25  Bruno Haible  <bruno@clisp.org>
64733
64734         Assume automake >= 1.10 for the tests.
64735         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
64736         * modules/arctwo-tests: Likewise.
64737         * modules/argp-tests: Likewise.
64738         * modules/avltree-list-tests: Likewise.
64739         * modules/avltree-oset-tests: Likewise.
64740         * modules/avltreehash-list-tests: Likewise.
64741         * modules/carray-list-tests: Likewise.
64742         * modules/crc-tests: Likewise.
64743         * modules/des-tests: Likewise.
64744         * modules/gc-arcfour-tests: Likewise.
64745         * modules/gc-arctwo-tests: Likewise.
64746         * modules/gc-des-tests: Likewise.
64747         * modules/gc-hmac-md5-tests: Likewise.
64748         * modules/gc-hmac-sha1-tests: Likewise.
64749         * modules/gc-md2-tests: Likewise.
64750         * modules/gc-md4-tests: Likewise.
64751         * modules/gc-md5-tests: Likewise.
64752         * modules/gc-pbkdf2-sha1-tests: Likewise.
64753         * modules/gc-rijndael-tests: Likewise.
64754         * modules/gc-sha1-tests: Likewise.
64755         * modules/gc-tests: Likewise.
64756         * modules/getaddrinfo-tests: Likewise.
64757         * modules/hmac-md5-tests: Likewise.
64758         * modules/hmac-sha1-tests: Likewise.
64759         * modules/linked-list-tests: Likewise.
64760         * modules/linkedhash-list-tests: Likewise.
64761         * modules/lock-tests: Likewise.
64762         * modules/md2-tests: Likewise.
64763         * modules/md4-tests: Likewise.
64764         * modules/md5-tests: Likewise.
64765         * modules/rbtree-list-tests: Likewise.
64766         * modules/rbtree-oset-tests: Likewise.
64767         * modules/rbtreehash-list-tests: Likewise.
64768         * modules/read-file-tests: Likewise.
64769         * modules/rijndael-tests: Likewise.
64770         * modules/stdint-tests: Likewise.
64771         * modules/tls-tests: Likewise.
64772
64773 2007-02-24  Bruno Haible  <bruno@clisp.org>
64774
64775         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
64776         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
64777         function; instead check whether isnan with a double argument links.
64778         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
64779         function; instead check whether isnan with a 'long double' argument
64780         links.
64781         Reported by Eric Blake <ebb9@byu.net>.
64782
64783 2007-02-24  Bruno Haible  <bruno@clisp.org>
64784
64785         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
64786         defined.
64787         * lib/isnanl.c: Remove all code. Just include isnan.c.
64788         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
64789
64790 2007-02-25  Jim Meyering  <jim@meyering.net>
64791
64792         Avoid conflicting types for 'unsetenv' on FreeBSD.
64793         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
64794         conflicting with FreeBSD's (5.0 and 6.1) function declaration
64795         in stdlib.h.
64796
64797 2007-02-24  Bruno Haible  <bruno@clisp.org>
64798
64799         * modules/isnanl-nolibm-tests: New file.
64800         * tests/test-isnanl.c: New file.
64801
64802         * modules/isnanl-nolibm: New file.
64803         * lib/isnanl.h: New file.
64804         * lib/isnanl.c: New file.
64805         * m4/isnanl.m4: New file.
64806
64807 2007-02-24  Bruno Haible  <bruno@clisp.org>
64808
64809         * modules/isnan-nolibm-tests: New file.
64810         * tests/test-isnan.c: New file.
64811
64812         * modules/isnan-nolibm: New file.
64813         * lib/isnan.h: New file.
64814         * lib/isnan.c: New file.
64815         * m4/isnan.m4: New file.
64816
64817 2007-02-24  Bruno Haible  <bruno@clisp.org>
64818
64819         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
64820         assume that an exponent fits in 20 bits.
64821
64822 2007-02-24  Jim Meyering  <jim@meyering.net>
64823
64824         * m4/regex.m4: Update the description of the configure-time option,
64825         --without-included-regex, to state accurately what the defaults are,
64826         and perhaps to give people an idea why using this option is risky.
64827
64828 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
64829
64830         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
64831         loops on small arguments.  This attempts to avoid the problem
64832         Bruno Haible reported for AIX 4.3.2 in
64833         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
64834
64835 2007-02-23  Bruno Haible  <bruno@clisp.org>
64836
64837         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
64838         Needed for help2man.
64839
64840 2007-02-23  Karl Berry  <karl@gnu.org>
64841
64842         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
64843         exists, foo.h should be cvs-ignored, not committed.
64844
64845 2007-02-23  Eric Blake  <ebb9@byu.net>
64846
64847         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
64848         * lib/stat-time.h (includes): Likewise.
64849         * lib/utimecmp.c (includes): Likewise.
64850         * lib/utimens.h (includes): Likewise.
64851         * lib/getdate.y (includes): Also include "timespec.h" for use
64852         internal to the module.
64853         * modules/utimens (Depends-on): Revert yesterday's patch.
64854         * modules/nanosleep (Depends-on): Add missing dependency.
64855
64856 2007-02-22  Bruno Haible  <bruno@clisp.org>
64857
64858         * lib/glob.c: Don't include getlogin_r.h.
64859
64860 2007-02-22  Jim Meyering  <jim@meyering.net>
64861
64862         * modules/utimens (Depends-on): Add timespec, required for
64863         utimens.h's inclusion of timespec.h.
64864
64865 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
64866
64867         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
64868         long unreadable paths in GNU/Linux.  Problem reported by Andreas
64869         Schwab in
64870         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
64871         I'll try to think of a better way to fix the Solaris problem.
64872
64873         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
64874         like glibc; on Solaris 10, it fails with errno == EINVAL.
64875         POSIX says the behavior is unspecified if the first argument is NULL,
64876         so play it safe and never pass NULL to the system getcwd.
64877
64878 2007-02-21  Jim Meyering  <jim@meyering.net>
64879
64880         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
64881         of gettimeofday.  It would conflict with the one now always
64882         provided via sys_time_.h.  Reported by Matthew Woehlke, as
64883         an IRIX 6.5 build failure.
64884
64885 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
64886
64887         Minor fixups to port to Solaris 10 with Sun C 5.8.
64888         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
64889         * modules/getcwd (Depends-on): Add dirfd.
64890         * lib/putenv.c (putenv): #undef it.
64891         (rpl_putenv): New decl.
64892         (malloc, free): Include <stdlib.h> rather than prototyping separately.
64893
64894 2007-02-20  Bruno Haible  <bruno@clisp.org>
64895
64896         * modules/stdio-tests: New file.
64897         * tests/test-stdio.c: New file.
64898
64899         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
64900         (Depends-on): Add stdio.
64901         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
64902         (Include): Use <stdio.h> instead of vsnprintf.h.
64903         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
64904         HAVE_DECL_VSNPRINTF.
64905         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
64906
64907         * modules/snprintf (Files): Remove lib/snprintf.h.
64908         (Depends-on): Add stdio.
64909         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
64910         (Include): Use <stdio.h> instead of snprintf.h.
64911         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
64912         HAVE_DECL_SNPRINTF.
64913         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
64914         * lib/getaddrinfo.c: Likewise.
64915
64916         * modules/stdio: New file.
64917         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
64918         * lib/snprintf.h: Remove file.
64919         * lib/vsnprintf.h: Remove file.
64920         * lib/.cppi-disable: Remove snprintf.h.
64921         * m4/stdio_h.m4: New file.
64922         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
64923
64924 2007-02-20  Jim Meyering  <jim@meyering.net>
64925
64926         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
64927         used by e.g., mingw.  From Bruno Haible.
64928
64929 2007-02-19  Bruno Haible  <bruno@clisp.org>
64930
64931         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
64932         warnings.
64933         Reported by Ben Pfaff <blp@cs.stanford.edu>.
64934
64935 2007-02-19  Bruno Haible  <bruno@clisp.org>
64936
64937         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
64938         from mingw users.
64939
64940 2007-02-19  Bruno Haible  <bruno@clisp.org>
64941
64942         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
64943         warnings.
64944         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
64945
64946 2007-02-19  Jim Meyering  <jim@meyering.net>
64947
64948         Don't use FD after a successful "fdopendir (fd)".
64949         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
64950         Reset it by calling dirfd on the just-obtained DIR*.
64951
64952         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
64953         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
64954
64955 2007-02-18  Bruno Haible  <bruno@clisp.org>
64956
64957         * lib/readlink.c: Include <unistd.h>.
64958         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
64959         HAVE_READLINK.
64960         * modules/readlink (Depends-on): Add unistd.
64961         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64962         (Include): Add <unistd.h>.
64963
64964         * lib/getlogin_r.h: Remove file.
64965         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
64966         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
64967         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
64968         HAVE_DECL_GETLOGIN_R.
64969         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
64970         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64971         (Include): Use <unistd.h> instead of getlogin_r.h.
64972
64973         * lib/getcwd.h: Remove file.
64974         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
64975         * lib/xgetcwd.c: Likewise.
64976         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
64977         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
64978         * modules/getcwd (Files): Remove lib/getcwd.h.
64979         (Depends-on): Add unistd.
64980         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64981         (Include): Use <unistd.h> instad of getcwd.h.
64982
64983         * lib/ftruncate.c: Include <unistd.h> first.
64984         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
64985         Set HAVE_FTRUNCATE.
64986         * modules/ftruncate (Depends-on): Add unistd.
64987         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64988
64989         * lib/fchdir.c: Include <unistd.h> first.
64990         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
64991         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
64992         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
64993         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
64994         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
64995
64996         * lib/dup2.c: Include <unistd.h> first.
64997         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
64998         HAVE_DUP2.
64999         * modules/dup2 (Depends-on): Add unistd.
65000         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65001
65002         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
65003         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
65004         REPLACE_CHOWN. Don't define chown as a macro here.
65005         * modules/chown (Depends-on): Add unistd.
65006         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
65007
65008         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
65009         Add definition for GL_LINK_WARNING.
65010         (chown, dup2): New declarations.
65011         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
65012         link warning.
65013         (ftruncate): New declaration.
65014         (getcwd): New declaration, taken from old getcwd.h.
65015         (getlogin_r): New declaration, taken from old getlogin_r.h.
65016         (readlink): New declaration.
65017         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
65018         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
65019         (gl_PREREQ_UNISTD): Remove macro.
65020         (gl_UNISTD_MODULE_INDICATOR): New macro.
65021         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
65022         many new variables. Don't set UNISTD_H.
65023         * modules/unistd (Description): Change.
65024         (Depends-on): Add link-warning.
65025         (configure.ac): Update.
65026         (Makefile.am): Create unistd.h always. Substitute many new variables
65027         into it.
65028
65029 2007-02-18  Bruno Haible  <bruno@clisp.org>
65030
65031         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
65032         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
65033         HAVE_GETSUBOPT.
65034         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
65035         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
65036         * lib/getsubopt.h: Remove file.
65037         * modules/getsubopt (Files): Remove lib/getsubopt.h.
65038         (Depends-on): Add stdlib.
65039         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65040         (Includes): Use <stdlib.h> instead of getsubopt.h.
65041         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
65042         Set HAVE_GETSUBOPT.
65043         * lib/getsubopt.c: Don't include getsubopt.h.
65044
65045 2007-02-18  Bruno Haible  <bruno@clisp.org>
65046
65047         * modules/fchdir (Depends-on): Add dup2.
65048
65049 2007-02-18  Bruno Haible  <bruno@clisp.org>
65050
65051         * lib/stdlib_.h: Handle glibc's special invocation convention
65052         specially.
65053
65054 2007-02-18  Bruno Haible  <bruno@clisp.org>
65055
65056         * modules/stdlib-tests: New file.
65057         * tests/test-stdlib.c: New file.
65058
65059         * modules/mkstemp (Files): Remove lib/mkstemp.h.
65060         (Depends-on): Add stdlib.
65061         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65062         (Includes): Use <stdlib.h> instead of mkstemp.h.
65063         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
65064         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
65065         * lib/mkstemp.c: Don't include mkstemp.h.
65066         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
65067         * lib/stdlib--.h: Don't include mkstemp.h.
65068
65069         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
65070         (Depends-on): Add stdlib.
65071         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
65072         (Includes): Use <stdlib.h> instead of mkdtemp.h.
65073         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
65074         HAVE_MKDTEMP.
65075         * lib/mkdtemp.c: Don't include mkdtemp.h.
65076         * lib/clean-temp.c: Don't include mkdtemp.h.
65077
65078         * modules/exit (Files): Remove lib/exit.h.
65079         (Depends-on): Add stdlib.
65080         (Makefile.am): Remove lib_SOURCES.
65081         (Include): Use <stdlib.h> instead of exit.h.
65082         * lib/argmatch.c: Don't include exit.h.
65083         * lib/execute.c: Likewise.
65084         * lib/pagealign_alloc.c: Likewise.
65085         * lib/pipe.c: Likewise.
65086         * lib/wait-process.c: Likewise.
65087         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
65088         * lib/exitfail.c: Likewise.
65089         * lib/savewd.c: Likewise.
65090         * lib/xsetenv.c: Likewise.
65091
65092         * modules/stdlib: New file.
65093         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
65094         and extra comments about mkstemp().
65095         * lib/exit.h: Remove file.
65096         * lib/mkdtemp.h: Remove file.
65097         * lib/mkstemp.h: Remove file.
65098         * m4/stdlib_h.m4: New file.
65099         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
65100
65101 2007-02-18  Bruno Haible  <bruno@clisp.org>
65102
65103         * modules/math-tests: New file.
65104         * tests/test-math.c: New file.
65105
65106         * modules/math: New file.
65107         * modules/mathl (Files): Remove lib/mathl.h.
65108         (Depends-on): Add math.
65109         (Makefile.am): Don't mention mathl.h.
65110         (Include): Use <math.h> instead of mathl.h.
65111         * lib/math_.h: New file.
65112         * lib/mathl.h: Remove file.
65113         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
65114         mathl.h.
65115         * lib/asinl.c: Likewise.
65116         * lib/atanl.c: Likewise.
65117         * lib/ceill.c: Likewise.
65118         * lib/cosl.c: Likewise.
65119         * lib/expl.c: Likewise.
65120         * lib/floorl.c: Likewise.
65121         * lib/frexpl.c: Likewise.
65122         * lib/ldexpl.c: Likewise.
65123         * lib/logl.c: Likewise.
65124         * lib/sincosl.c: Likewise.
65125         * lib/sinl.c: Likewise.
65126         * lib/sqrtl.c: Likewise.
65127         * lib/tanl.c: Likewise.
65128         * lib/trigl.c: Likewise.
65129         * m4/math_h.m4: New file.
65130         * MODULES.html.sh (Mathematics): Add math.
65131
65132 2007-02-17  Bruno Haible  <bruno@clisp.org>
65133
65134         * modules/wctype-tests: New file.
65135         * tests/test-wctype.c: New file.
65136
65137         * modules/wchar-tests: New file.
65138         * tests/test-wchar.c: New file.
65139
65140         * modules/unistd-tests: New file.
65141         * tests/test-unistd.c: New file.
65142
65143         * modules/time-tests: New file.
65144         * tests/test-time.c: New file.
65145
65146         * modules/sysexits-tests: New file.
65147         * tests/test-sysexits.c: New file.
65148
65149         * modules/sys_time-tests: New file.
65150         * tests/test-sys_time.c: New file.
65151
65152         * modules/sys_stat-tests: New file.
65153         * tests/test-sys_stat.c: New file.
65154
65155         * modules/sys_socket-tests: New file.
65156         * tests/test-sys_socket.c: New file.
65157
65158         * modules/sys_select-tests: New file.
65159         * tests/test-sys_select.c: New file.
65160
65161         * modules/string-tests: New file.
65162         * tests/test-string.c: New file.
65163
65164         * modules/stdbool-tests: New file.
65165         * tests/test-stdbool.c: New file.
65166
65167         * modules/netinet_in-tests: New file.
65168         * tests/test-netinet_in.c: New file.
65169
65170         * modules/inttypes-tests: New file.
65171         * tests/test-inttypes.c: New file.
65172
65173         * modules/fcntl-tests: New file.
65174         * tests/test-fcntl.c: New file.
65175
65176         * modules/byteswap-tests: New file.
65177         * tests/test-byteswap.c: New file.
65178
65179         * modules/arpa_inet-tests: New file.
65180         * tests/test-arpa_inet.c: New file.
65181
65182 2007-02-17  Bruno Haible  <bruno@clisp.org>
65183
65184         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
65185         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
65186         if the corresponding module is not enabled. Emit link warnings if
65187         the function is used nevertheless.
65188         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
65189         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
65190         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
65191         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
65192         * modules/inttypes (Depends-on): Add link-warning.
65193         (Makefile.am): Copy the contents of build-aux/link-warning.h into
65194         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
65195         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
65196         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
65197         * modules/imaxdiv (configure.ac): Likewise.
65198         * modules/strtoimax (configure.ac): Likewise.
65199         * modules/strtoumax (configure.ac): Likewise.
65200
65201 2007-02-17  Bruno Haible  <bruno@clisp.org>
65202
65203         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
65204         gl_STRING_MODULE_INDICATOR_DEFAULTS.
65205         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
65206         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
65207
65208 2007-02-17  Bruno Haible  <bruno@clisp.org>
65209
65210         * modules/link-warning: New file.
65211         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
65212         * lib/string_.h (GL_LINK_WARNING): Remove definition.
65213         * modules/string (Depends-on): Add link-warning.
65214         (Makefile.am): Copy the contents of build-aux/link-warning.h into
65215         string.h.
65216         * MODULES.html.sh (Support for building libraries and executables): Add
65217         link-warning.
65218
65219 2007-02-17  Bruno Haible  <bruno@clisp.org>
65220
65221         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
65222         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
65223         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
65224         long lines.
65225
65226 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
65227             Bruno Haible  <bruno@clisp.org>
65228
65229         * modules/tmpfile: New file.
65230         * lib/tmpfile.c: New file.
65231         * m4/tmpfile.m4: New file.
65232         * MODULES.html.sh (func_all_modules): New section "Input/output".
65233
65234 2007-02-15  Bruno Haible  <bruno@clisp.org>
65235
65236         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
65237         (supports_delete_on_close): New function.
65238         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
65239
65240 2007-02-14  Bruno Haible  <bruno@clisp.org>
65241
65242         * modules/mbspcasecmp-tests: New file.
65243         * tests/test-mbspcasecmp.sh: New file.
65244         * tests/test-mbspcasecmp.c: New file.
65245
65246         New module mbspcasecmp.
65247         * modules/mbspcasecmp: New file.
65248         * lib/mbspcasecmp.c: New file.
65249         * lib/string_.h (strncasecmp): Change warning message.
65250         (mbspcasecmp): New declaration.
65251         * m4/mbspcasecmp.m4: New file.
65252         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65253         GNULIB_MBSPCASECMP.
65254         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
65255         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
65256
65257 2007-02-14  Bruno Haible  <bruno@clisp.org>
65258
65259         * modules/mbsncasecmp-tests: New file.
65260         * tests/test-mbsncasecmp.sh: New file.
65261         * tests/test-mbsncasecmp.c: New file.
65262
65263         New module mbsncasecmp.
65264         * modules/mbsncasecmp: New file.
65265         * lib/mbsncasecmp.c: New file.
65266         * lib/string_.h (mbsncasecmp): New declaration.
65267         * m4/mbsncasecmp.m4: New file.
65268         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65269         GNULIB_MBSNCASECMP.
65270         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
65271         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
65272
65273 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
65274
65275         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
65276         Verify that it doesn't overlap with our flags.
65277         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
65278         do not have the desired effect in multibyte locales; instead, use
65279         mbscasecmp.
65280         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
65281         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
65282         we don't require GNU fnmatch ourselves (if our users require it, they
65283         should do so explicitly).
65284
65285         Fix regex code so it doesn't rely on strcasecmp.
65286         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
65287         Otherwise, include gnulib's langinfo.h.
65288         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
65289         undesirable behavior in non-C locales.  Instead, rely on localecharset.
65290         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
65291         * modules/regex (FILES): Remove m4/codeset.m4.
65292         (Depends-on): Add localcharset.  Remove strcase.
65293
65294 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65295
65296         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
65297         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
65298
65299 2007-02-13  Bruno Haible  <bruno@clisp.org>
65300
65301         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
65302         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65303
65304 2007-02-12  Bruno Haible  <bruno@clisp.org>
65305
65306         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
65307         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
65308         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
65309         time warning rather than a link error.
65310
65311 2007-02-12  Bruno Haible  <bruno@clisp.org>
65312
65313         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
65314         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
65315         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65316
65317 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
65318
65319         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
65320         args, not 2.
65321
65322 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
65323
65324         New module 'time', so that apps can include <time.h> as per
65325         POSIX and GNU instead of separate include files like time_r.h
65326         and timegm.h.  This implementation tries out a simpler approach
65327         for replacing decls in standard include files (as compared to
65328         the string module), somewhat as an experiment.
65329
65330         * config/srclist.txt: Comment out mktime.c for now.
65331         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
65332         since it doesn't apply any more.  Use generic wording instead.
65333         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
65334         'time'.
65335         * lib/time_.h, m4/time_h.m4, modules/time: New files.
65336         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
65337         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
65338         Don't include <sys/types.h>; no longer needed since we assume C89.
65339         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
65340         * lib/strftime.c: Likewise.
65341         * lib/time_r.c: Likewise.
65342         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
65343         * lib/nanosleep.c: Include <time.h> first, to check interface.
65344         * lib/strptime.c: Likewise.
65345         * lib/time_r.c: Likewise.
65346         * lib/timegm.c: Likewise.
65347         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
65348         needed.
65349         * lib/timegm.c: Don't include timegm.h; no longer needed.
65350         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
65351         time.h now handles any problems in that area.
65352         (struct timespec, nanosleep): Remove; time.h now arranges for these.
65353         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
65354         that time.h defines struct timespec.
65355         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
65356         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
65357         handles that.
65358         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
65359         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
65360         needed.  Set REPLACE_LOCALTIME.
65361         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
65362         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
65363         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
65364         nanosleep; time_h.m4 now does that.  Don't require
65365         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
65366         module handles this now.
65367         * modules/getdate (Depends-on): Remove timespec.  Add time.
65368         * modules/nanosleep (Depends-on): Likewise.
65369         * modules/stat-time (Depends-on): Likewise.
65370         * modules/nanosleep (Include): Include time.h, not timespec.h.
65371         * modules/strptime (Files): Remove lib/strptime.h.
65372         (Depends-on): Add extensions, time.
65373         (Include): Include time.h, not strptime.h.
65374         * modules/time_r (Files): Remove lib/time_r.h.
65375         (Depends-on): Add time.
65376         (Include): Include time.h, not time_r.h.
65377         * modules/timegm: Likewise.
65378         * modules/timespec (Description): Now does timespec-related decls
65379         of our own, instead of struct timespec itself.
65380         (Depends-on): Add time; remove extensions.
65381         (Maintainer): Add self.
65382         * modules/utimecmp (Depends-on): Add time; remove timespec.
65383         * modules/utimens (Depends-on): Likewise.
65384         * modules/xnanosleep (Depends-on): Likewise.
65385
65386 2007-02-11  Bruno Haible  <bruno@clisp.org>
65387
65388         * lib/c-strstr.c: Include allocsa.h.
65389         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65390         * lib/c-strcasestr.c: Include allocsa.h.
65391         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65392         * lib/strcasestr.c: Include allocsa.h.
65393         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
65394         * lib/mbsstr.c: Include allocsa.h.
65395         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
65396         allocsa/freesa instead of malloc/free.
65397         * lib/mbscasestr.c: Include allocsa.h.
65398         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
65399         allocsa/freesa instead of malloc/free.
65400         * modules/c-strstr (Depends-on): Add allocsa.
65401         * modules/c-strcasestr (Depends-on): Likewise.
65402         * modules/strcasestr (Depends-on): Likewise.
65403         * modules/mbsstr (Depends-on): Likewise.
65404         * modules/mbscasestr (Depends-on): Likewise.
65405
65406 2007-02-11  Bruno Haible  <bruno@clisp.org>
65407
65408         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
65409
65410         * modules/mbsspn-tests: New file.
65411         * tests/test-mbsspn.sh: New file.
65412         * tests/test-mbsspn.c: New file.
65413
65414 2007-02-11  Bruno Haible  <bruno@clisp.org>
65415
65416         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
65417
65418         * modules/mbspbrk-tests: New file.
65419         * tests/test-mbspbrk.sh: New file.
65420         * tests/test-mbspbrk.c: New file.
65421
65422 2007-02-11  Bruno Haible  <bruno@clisp.org>
65423
65424         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
65425         unneeded cast.
65426
65427         * modules/mbscspn-tests: New file.
65428         * tests/test-mbscspn.sh: New file.
65429         * tests/test-mbscspn.c: New file.
65430
65431 2007-02-11  Bruno Haible  <bruno@clisp.org>
65432
65433         * modules/mbscasecmp-tests: New file.
65434         * tests/test-mbscasecmp.sh: New file.
65435         * tests/test-mbscasecmp.c: New file.
65436
65437 2007-02-11  Bruno Haible  <bruno@clisp.org>
65438
65439         Ensure O(n) worst-case complexity of mbscasestr.
65440         * lib/mbscasestr.c: Include stdbool.h.
65441         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
65442         functions.
65443         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
65444         the bookkeeping indicates that it's worth it.
65445         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
65446
65447         * modules/mbscasestr-tests: New file.
65448         * tests/test-mbscasestr1.c: New file.
65449         * tests/test-mbscasestr2.sh: New file.
65450         * tests/test-mbscasestr2.c: New file.
65451         * tests/test-mbscasestr3.sh: New file.
65452         * tests/test-mbscasestr3.c: New file.
65453         * tests/test-mbscasestr4.sh: New file.
65454         * tests/test-mbscasestr4.c: New file.
65455         * m4/locale-tr.m4: New file.
65456
65457 2007-02-11  Bruno Haible  <bruno@clisp.org>
65458
65459         Ensure O(n) worst-case complexity of mbsstr.
65460         * lib/mbsstr.c: Include stdbool.h.
65461         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
65462         functions.
65463         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
65464         bookkeeping indicates that it's worth it.
65465         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
65466
65467         * modules/mbsstr-tests: New file.
65468         * tests/test-mbsstr1.c: New file.
65469         * tests/test-mbsstr2.sh: New file.
65470         * tests/test-mbsstr2.c: New file.
65471         * tests/test-mbsstr3.sh: New file.
65472         * tests/test-mbsstr3.c: New file.
65473         * m4/locale-fr.m4: New file.
65474
65475 2007-02-11  Bruno Haible  <bruno@clisp.org>
65476
65477         * lib/mbsrchr.c (mbsrchr): Fix bug.
65478
65479         * modules/mbsrchr-tests: New file.
65480         * tests/test-mbsrchr.sh: New file.
65481         * tests/test-mbsrchr.c: New file.
65482
65483 2007-02-11  Bruno Haible  <bruno@clisp.org>
65484
65485         * lib/mbschr.c (mbschr): Fix bug.
65486
65487         * modules/mbschr-tests: New file.
65488         * tests/test-mbschr.sh: New file.
65489         * tests/test-mbschr.c: New file.
65490         * m4/locale-zh.m4: New file.
65491
65492 2007-02-11  Bruno Haible  <bruno@clisp.org>
65493
65494         Support for copying multibyte string iterators.
65495         * lib/mbiter.h: Include <string.h>.
65496         (mbiter_multi_copy): New function.
65497         (mbi_copy): New macro.
65498         * lib/mbuiter.h: Include <string.h>.
65499         (mbuiter_multi_copy): New function.
65500         (mbui_copy): New macro.
65501
65502 2007-02-11  Bruno Haible  <bruno@clisp.org>
65503
65504         New module mbslen.
65505         * modules/mbslen: New file.
65506         * lib/mbslen.c: New file.
65507         * lib/string_.h (mbslen): New declaration.
65508         * m4/mbslen.m4: New file.
65509         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65510         GNULIB_MBSLEN.
65511         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
65512         * MODULES.html.sh (Internationalization functions): Add mbslen.
65513
65514 2007-02-11  Bruno Haible  <bruno@clisp.org>
65515
65516         Ensure O(n) worst-case complexity of strcasestr substitute.
65517         * lib/strcasestr.c: Include stdbool.h.
65518         (knuth_morris_pratt): New function.
65519         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
65520         bookkeeping indicates that it's worth it.
65521         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
65522
65523         * modules/strcasestr-tests: New file.
65524         * tests/test-strcasestr.c: New file.
65525
65526 2007-02-11  Bruno Haible  <bruno@clisp.org>
65527
65528         Ensure O(n) worst-case complexity of c_strcasestr.
65529         * lib/c-strcasestr.c: Include stdbool.h, string.h.
65530         (knuth_morris_pratt): New function.
65531         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
65532         the bookkeeping indicates that it's worth it.
65533         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
65534
65535         * modules/c-strcasestr-tests: New file.
65536         * tests/test-c-strcasestr.c: New file.
65537
65538 2007-02-11  Bruno Haible  <bruno@clisp.org>
65539
65540         Ensure O(n) worst-case complexity of c_strstr.
65541         * lib/c-strstr.c: Include stdbool.h, string.h.
65542         (knuth_morris_pratt): New function.
65543         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
65544         bookkeeping indicates that it's worth it.
65545         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
65546
65547         * lib/c-strstr.c: Complete rewrite for maintainability.
65548
65549         * modules/c-strstr-tests: New file.
65550         * tests/test-c-strstr.c: New file.
65551
65552 2007-02-11  Bruno Haible  <bruno@clisp.org>
65553
65554         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
65555         5.2.1 and earlier, whereby \055 was treated just like the range
65556         delimiter '-'.
65557         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
65558
65559 2007-02-08  Bruno Haible  <bruno@clisp.org>
65560
65561         * modules/regex (Depends-on): Add stdbool.
65562         Reported by Dalibor Topic <robilad@kaffe.org>.
65563
65564 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
65565
65566         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
65567         Prefer returning from main to exiting from it.
65568         Remove unnecessary parens after sizeof.
65569
65570 2007-02-05  Bruno Haible  <bruno@clisp.org>
65571
65572         New module mbssep.
65573         * modules/mbssep: New file.
65574         * lib/mbssep.c: New file.
65575         * lib/string_.h (strsep): Add a conditional link warning.
65576         (mbssep): New declaration.
65577         * m4/mbssep.m4: New file.
65578         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65579         GNULIB_MBSSEP.
65580         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
65581         * MODULES.html.sh (Internationalization functions): Add mbssep.
65582
65583 2007-02-05  Bruno Haible  <bruno@clisp.org>
65584
65585         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
65586         Optimize search in case of 1 delimiter.
65587
65588 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
65589
65590         * lib/acl.h: Include sys/types.h before sys/acl.h.
65591
65592 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
65593
65594         Merge upstream fix for glibc bugzilla #3957:
65595
65596         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
65597
65598         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
65599         bit for RE_HAT_LISTS_NOT_NEWLINE.
65600         (build_charclass_op): Remove bogus comment.
65601
65602 2007-02-05  Simon Josefsson  <simon@josefsson.org>
65603
65604         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
65605
65606 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
65607
65608         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
65609         * lib/memmem.c [!defined _LIBC]: Include config.h.
65610
65611 2007-02-04  Bruno Haible  <bruno@clisp.org>
65612
65613         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
65614         warning message.
65615
65616 2007-02-04  Bruno Haible  <bruno@clisp.org>
65617
65618         New module mbstok_r.
65619         * modules/mbstok_r: New file.
65620         * lib/mbstok_r.c: New file.
65621         * lib/string_.h (strtok_r): Change argument names to match the
65622         comments. Add a conditional link warning.
65623         (mbstok_r): New declaration.
65624         * m4/mbstok_r.m4: New file.
65625         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65626         GNULIB_MBSTOK_R.
65627         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
65628         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
65629
65630 2007-02-04  Bruno Haible  <bruno@clisp.org>
65631
65632         New module mbsspn.
65633         * modules/mbsspn: New file.
65634         * lib/mbsspn.c: New file.
65635         * lib/string_.h (strspn): Add a conditional link warning.
65636         (mbsspn): New declaration.
65637         * m4/mbsspn.m4: New file.
65638         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65639         GNULIB_MBSSPN.
65640         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
65641         * MODULES.html.sh (Internationalization functions): Add mbsspn.
65642
65643 2007-02-04  Bruno Haible  <bruno@clisp.org>
65644
65645         New module mbspbrk.
65646         * modules/mbspbrk: New file.
65647         * lib/mbspbrk.c: New file.
65648         * lib/string_.h (strpbrk): Add a conditional link warning.
65649         (mbspbrk): New declaration.
65650         * m4/mbspbrk.m4: New file.
65651         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65652         GNULIB_MBSPBRK.
65653         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
65654         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
65655
65656 2007-02-04  Bruno Haible  <bruno@clisp.org>
65657
65658         New module mbscspn.
65659         * modules/mbscspn: New file.
65660         * lib/mbscspn.c: New file.
65661         * lib/string_.h (strcspn): Add a conditional link warning.
65662         (mbscspn): New declaration.
65663         * m4/mbscspn.m4: New file.
65664         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65665         GNULIB_MBSCSPN.
65666         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
65667         * MODULES.html.sh (Internationalization functions): Add mbscspn.
65668
65669 2007-02-04  Bruno Haible  <bruno@clisp.org>
65670
65671         New module mbscasestr, reduced goal of strcasestr.
65672         * modules/mbscasestr: New file.
65673         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
65674         (mbscasestr): Renamed from strcasestr.
65675         * lib/strcasestr.c: Don't include mbuiter.h.
65676         (strcasestr): Remove support for multibyte locales.
65677         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
65678         Change the conditional link warning.
65679         (mbscasestr): New declaration.
65680         * m4/mbscasestr.m4: New file.
65681         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
65682         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
65683         REPLACE_STRCASESTR.
65684         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
65685         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65686         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
65687         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
65688         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
65689         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
65690         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
65691         (Depends-on): Remove mbuiter.
65692         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
65693
65694 2007-02-04  Bruno Haible  <bruno@clisp.org>
65695
65696         Simplify handling of strncasecmp.
65697         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
65698         the conditional link warning.
65699         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
65700         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
65701         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
65702         * modules/strcase (configure.ac): Don't invoke
65703         gl_STRING_MODULE_INDICATOR.
65704         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
65705
65706 2007-02-04  Bruno Haible  <bruno@clisp.org>
65707
65708         New module mbscasecmp, reduced goal of strcasecmp.
65709         * modules/mbscasecmp: New file.
65710         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
65711         (mbscasecmp): Renamed from strcasecmp.
65712         * lib/strcasecmp.c: Don't include mbuiter.h.
65713         (strcasecmp): Remove support for multibyte locales.
65714         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
65715         Change the conditional link warning.
65716         (mbscasecmp): New declaration.
65717         * m4/mbscasecmp.m4: New file.
65718         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
65719         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
65720         REPLACE_STRCASECMP.
65721         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
65722         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65723         GNULIB_MBSCASECMP.
65724         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
65725         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
65726         * modules/strcase (Files): Remove m4/mbrtowc.m4.
65727         (Depends-on): Remove mbuiter.
65728         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
65729
65730 2007-02-04  Bruno Haible  <bruno@clisp.org>
65731
65732         New module mbsstr. Remove module strstr.
65733         * modules/mbsstr: New file.
65734         * modules/strstr: Remove file.
65735         * lib/mbsstr.c: Renamed from lib/strstr.c.
65736         (mbsstr): Renamed from strstr.
65737         * lib/string_.h (strstr): Remove declaration. Change the conditional
65738         link warning.
65739         (mbsstr): New declaration.
65740         * m4/mbsstr.m4: New file.
65741         * m4/strstr.m4: Remove file.
65742         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
65743         REPLACE_STRSTR.
65744         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
65745         Don't initialize GNULIB_STRSTR.
65746         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
65747         substitute GNULIB_STRSTR and REPLACE_STRSTR.
65748         * MODULES.html.sh (Internationalization functions): Add mbsstr.
65749         (Support for systems lacking ANSI C 89): Remove strstr.
65750
65751 2007-02-04  Bruno Haible  <bruno@clisp.org>
65752
65753         New module mbsrchr.
65754         * modules/mbsrchr: New file.
65755         * lib/mbsrchr.c: New file.
65756         * lib/string_.h (strrchr): Add a conditional link warning.
65757         (mbsrchr): New declaration.
65758         * m4/mbsrchr.m4: New file.
65759         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65760         GNULIB_MBSRCHR.
65761         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
65762         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
65763
65764 2007-02-04  Bruno Haible  <bruno@clisp.org>
65765
65766         New module mbschr.
65767         * modules/mbschr: New file.
65768         * lib/mbschr.c: New file.
65769         * lib/string_.h (strchr): Add a conditional link warning.
65770         (mbschr): New declaration.
65771         * m4/mbschr.m4: New file.
65772         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
65773         GNULIB_MBSCHR.
65774         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
65775         * MODULES.html.sh (Internationalization functions): Add mbschr.
65776
65777 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
65778
65779         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
65780
65781         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
65782
65783 2007-02-04  Bruno Haible  <bruno@clisp.org>
65784
65785         New module description section 'configure.ac-early'.
65786         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
65787         (func_get_autoconf_early_snippet): New function.
65788         (func_import, func_create_testdir): Use it. Remove special cases for
65789         modules 'extensions' and 'lock'.
65790         * modules/extensions (configure.ac-early): Require
65791         gl_USE_SYSTEM_EXTENSIONS.
65792         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
65793
65794 2007-02-04  Bruno Haible  <bruno@clisp.org>
65795
65796         Make use of gcj-4.3's -fsource and -ftarget option.
65797         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
65798         and if so try the options -fsource and -ftarget.
65799         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
65800         source_version, ftarget_option, target_version arguments.
65801         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
65802         (is_envjavac_oldgcj_14_14_usable): Renamed from
65803         is_envjavac_gcj_14_14_usable.
65804         (is_envjavac_oldgcj_14_13_usable): Renamed from
65805         is_envjavac_gcj_14_13_usable.
65806         (is_gcj_present): Update.
65807         (is_gcj_43, is_gcj43_usable): New functions.
65808         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
65809         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
65810         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
65811         try the options -fsource and -ftarget.
65812
65813 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
65814
65815         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
65816         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
65817         larger value.
65818
65819 2007-02-03  Jim Meyering  <jim@meyering.net>
65820
65821         Give tools a better chance to allocate space for very large buffers.
65822         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
65823
65824         Make pwd and readlink work also when run with an unreadable parent dir
65825         on systems with openat support.
65826         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
65827         provided getcwd function, even when we have openat support.
65828         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
65829
65830 2007-02-02  Bruno Haible  <bruno@clisp.org>
65831
65832         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
65833         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
65834         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
65835         portability problems if one of these functions is only used on specific
65836         platforms.
65837         Reported by Paul Eggert.
65838
65839 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
65840
65841         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
65842         is causing more trouble than it's curing.
65843         * lib/regex_internal.h (__mempcpy): Remove.
65844         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
65845         (and make the code a tad smaller to boot).
65846         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
65847
65848 2007-02-02  Jim Meyering  <jim@meyering.net>
65849
65850         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
65851         section, not in the Makefile.am: one.
65852
65853 2007-02-02  Eric Blake  <ebb9@byu.net>
65854
65855         * lib/strchrnul.c: Always include config.h first.
65856
65857         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
65858         gnulib strstr is not necessary here.
65859
65860 2007-02-02  Simon Josefsson  <simon@josefsson.org>
65861
65862         * m4/socklen.m4: Fix typo.
65863
65864 2007-02-02  Eric Blake  <ebb9@byu.net>
65865
65866         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
65867         * modules/netinet_in (Makefile.am): Likewise.
65868
65869 2007-02-01  Bruno Haible  <bruno@clisp.org>
65870
65871         * lib/string_.h (GL_LINK_WARNING): New macro.
65872         (strcasecmp, strstr, strcasestr): If provided by the system,
65873         conditionally define as a macro that leads to a warning instead of to
65874         an error.
65875         (strncasecmp): Conditionally define as a macro that leads to a warning.
65876
65877 2007-02-01  Karl Berry  <karl@gnu.org>
65878
65879         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
65880
65881 2007-02-01  Bruno Haible  <bruno@clisp.org>
65882
65883         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
65884         renamings.
65885
65886 2007-02-01  Eric Blake  <ebb9@byu.net>
65887
65888         * modules/regex (Depends-on): Revert dependence on mempcpy.
65889         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
65890         module's definition of mempcpy.
65891         Reported by Paul Eggert.
65892
65893 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
65894
65895         * lib/string_.h: If the gnulib module XYZ is not present, undefine
65896         the symbol XYZ before redefining it.  This fixes a problem with
65897         programs that don't use XYZ, when compiled on systems that define
65898         XYZ to something else.
65899
65900 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
65901
65902         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
65903         occurs when "mkdir -m foo" creates a setgid directory that is (1)
65904         writeable to group or other and (2) is intended to have a special
65905         mode bit that is set or cleared.  In such a case, the directory
65906         should be neither group- nor other-writeable until the special
65907         mode bits are right.
65908
65909 2007-01-31  Eric Blake  <ebb9@byu.net>
65910
65911         * modules/mountlist (Depends-on): Add strstr.
65912
65913         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
65914         bug.
65915         * modules/string (Makefile.am): Remove redundant replacement.
65916         * modules/regex (Depends-on): Add mempcpy.
65917
65918 2007-01-31  Bruno Haible  <bruno@clisp.org>
65919
65920         New module description field 'Link'.
65921         * gnulib-tool (func_usage): Document --extract-link-directive.
65922         (sed_extract_prog): Recognize 'Link' directive.
65923         (func_get_link_directive): New function.
65924         (func_import): Show summary of link directives.
65925         Handle --extract-link-directive option.
65926         * modules/acl (Link): New section.
65927         * modules/clock-time (Link): New section.
65928         * modules/euidaccess (Link): New section.
65929         * modules/gettext (Link): New section.
65930         * modules/iconv (Link): New section.
65931         * modules/lock (Link): New section.
65932         * modules/nanosleep (Link): New section.
65933         * modules/readline (Link): New section.
65934
65935 2007-01-27  Bruno Haible  <bruno@clisp.org>
65936
65937         Enforce the use of gnulib modules for unportable <string.h> functions.
65938         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
65939         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
65940         (gl_HEADER_STRING_H_BODY): Require it.
65941         * lib/string_.h: If the gnulib module XYZ is not present, redefine
65942         the symbol XYZ to one that gives a link error.
65943         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
65944         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
65945         * modules/mempcpy (configure.ac): Likewise.
65946         * modules/memrchr (configure.ac): Likewise.
65947         * modules/stpcpy (configure.ac): Likewise.
65948         * modules/stpncpy (configure.ac): Likewise.
65949         * modules/strcase (configure.ac): Likewise.
65950         * modules/strcasestr (configure.ac): Likewise.
65951         * modules/strchrnul (configure.ac): Likewise.
65952         * modules/strdup (configure.ac): Likewise.
65953         * modules/strndup (configure.ac): Likewise.
65954         * modules/strnlen (configure.ac): Likewise.
65955         * modules/strpbrk (configure.ac): Likewise.
65956         * modules/strsep (configure.ac): Likewise.
65957         * modules/strstr (configure.ac): Likewise.
65958         * modules/strtok_r (configure.ac): Likewise.
65959
65960 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
65961
65962         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
65963
65964 2007-01-30  Jim Meyering  <jim@meyering.net>
65965
65966         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
65967
65968 2007-01-29  Bruno Haible  <bruno@clisp.org>
65969
65970         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
65971         * lib/execute.c: Likewise.
65972         * lib/pipe.c: Likewise.
65973         * lib/printf-args.h: Likewise.
65974         * lib/printf-args.c: Likewise.
65975         * lib/printf-parse.c: Likewise.
65976         * lib/vasnprintf.c: Likewise.
65977
65978 2007-01-29  Eric Blake  <ebb9@byu.net>
65979
65980         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
65981         declaration.
65982
65983 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
65984
65985         * lib/strptime.h (strptime): Use 'restrict' for args where
65986         POSIX requires this.
65987         * lib/strptime.c (strptime): Likewise.
65988         Change license notice from LGPL to GPL, since gnulib-tool will
65989         change this as needed.
65990         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
65991         defined.
65992         Include "strptime.h" first, to check interface.
65993         Do not #undef _LIBC and _NL_CURRENT.
65994         Do not include <stdlib.h>; no longer needed.
65995         Include "time_r.h" and declare ptime_locale_status
65996         only if _LIBC is not defined.
65997         (__P): Remove unused macro.
65998         (match_string): Bring back glibc version, but use it only if _LIBC
65999         is defined.
66000         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
66001         Remove unnecessary assertion and abort() call.
66002         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
66003         * m4/strptime.m4: Fix serial number comment.
66004         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
66005         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
66006         (Depends-on): Add time_r.
66007
66008 2007-01-29  Bruno Haible  <bruno@clisp.org>
66009
66010         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
66011         strptime.
66012         * modules/strptime (Depends-on): Add stdbool.
66013         * lib/strptime.h: Include <time.h> always. Add comments.
66014
66015 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
66016
66017         * modules/strptime: New file.
66018         * lib/strptime.h: New file.
66019         * lib/strptime.c: New file.
66020         * m4/strptime.m4: New file.
66021
66022 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
66023
66024         * MODULES.html.sh: New module mpsort.
66025         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
66026
66027         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
66028         a circularity problem with HP-UX ia64 reported by Bob Proulx in
66029         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
66030         All uses changed.
66031         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
66032         All uses changed.
66033         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
66034         to _Restrict_.
66035         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
66036         the parameter matches the prototype.
66037
66038 2007-01-28  Jim Meyering  <jim@meyering.net>
66039
66040         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
66041         sys/time.h here, reverting that part of the previous patch:
66042         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
66043
66044 2007-01-28  Bruno Haible  <bruno@clisp.org>
66045
66046         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
66047         value of $(SYS_TIME_H).
66048         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
66049         remove it conditionally, too. [added by Jim Meyering]
66050         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
66051         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
66052         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
66053         GETTIMEOFDAY_REPLACEMENT to 1.
66054
66055 2007-01-28  Bruno Haible  <bruno@clisp.org>
66056
66057         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
66058         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
66059         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
66060         Set UNISTD_H instead of UNISTD_H2.
66061         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
66062
66063 2007-01-28  Bruno Haible  <bruno@clisp.org>
66064
66065         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
66066         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
66067
66068 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66069
66070         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
66071         (func_create_testdir): Ensure C locale for `grep' and `tr'
66072         character ranges.
66073         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
66074         ACLOCAL_AMFLAGS parsing state machine.
66075
66076 2007-01-27  Bruno Haible  <bruno@clisp.org>
66077
66078         * modules/unistr/base: Update.
66079
66080 2007-01-27  Bruno Haible  <bruno@clisp.org>
66081
66082         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
66083         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
66084         * modules/unistr/u32-mbtouc-unsafe: Renamed from
66085         modules/unistr/u32-mbtouc.
66086         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
66087         * lib/unistr.h: Update.
66088         * lib/linebreak.c: Update.
66089         * modules/unistr/u32-mbtouc: Renamed from
66090         modules/unistr/u32-mbtouc-safe.
66091         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
66092         * lib/unistr.h: Update.
66093         * lib/unistr/u32-to-u8.c: Update.
66094         * lib/unistr/u32-to-u16.c: Update.
66095
66096 2007-01-27  Bruno Haible  <bruno@clisp.org>
66097
66098         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
66099         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
66100         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
66101         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
66102         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
66103         * modules/unistr/u16-mbtouc-unsafe: Renamed from
66104         modules/unistr/u16-mbtouc.
66105         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
66106         * lib/unistr.h: Update.
66107         * lib/linebreak.c: Update.
66108         * modules/linebreak: Update.
66109         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
66110         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
66111         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
66112         * modules/unistr/u16-mbtouc: Renamed from
66113         modules/unistr/u16-mbtouc-safe.
66114         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
66115         * lib/unistr.h: Update.
66116         * lib/unistr/u16-to-u8.c: Update.
66117         * modules/unistr/u16-to-u8: Update.
66118         * lib/unistr/u16-to-u32.c: Update.
66119         * modules/unistr/u16-to-u32: Update.
66120
66121 2007-01-27  Bruno Haible  <bruno@clisp.org>
66122
66123         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
66124         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
66125         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
66126         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
66127         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
66128         * modules/unistr/u8-mbtouc-unsafe: Renamed from
66129         modules/unistr/u8-mbtouc.
66130         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
66131         * lib/unistr.h: Update.
66132         * lib/striconveh.c: Update.
66133         * modules/striconveh: Update.
66134         * lib/linebreak.c: Update.
66135         * modules/linebreak: Update.
66136         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
66137         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
66138         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
66139         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
66140         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
66141         * lib/unistr.h: Update.
66142         * lib/striconveh.c: Update.
66143         * modules/striconveh: Update.
66144         * lib/unistr/u8-to-u16.c: Update.
66145         * modules/unistr/u8-to-u16: Update.
66146         * lib/unistr/u8-to-u32.c: Update.
66147         * modules/unistr/u8-to-u32: Update.
66148
66149 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66150
66151         Sync from Libtool.
66152         * lib/argz.c: Do not include strings.h nor memory.h, include
66153         string.h unconditionally.  Patch by Simon Josefsson.
66154
66155 2007-01-27  Bruno Haible  <bruno@clisp.org>
66156
66157         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
66158         from gl_HEADER_STRING_H_BODY.
66159         (gl_HEADER_STRING_H_BODY): Require it.
66160         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
66161         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
66162         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
66163         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
66164         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66165         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
66166         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
66167         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
66168         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
66169         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
66170         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
66171         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
66172         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
66173         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
66174         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66175
66176 2007-01-27  Bruno Haible  <bruno@clisp.org>
66177
66178         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
66179         check_PROGRAMS into noinst_PROGRAMS.
66180         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
66181         check_PROGRAMS in this case.
66182         (func_import): Set for_test to false.
66183         (func_create_testdir): Set for_test to true.
66184
66185 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
66186             Bruno Haible  <bruno@clisp.org>
66187
66188         * modules/strcasestr (Files): Remove lib/strcasestr.h.
66189         (Depends-on): Add string.
66190         (Includes): Use <string.h> instead of strcasestr.h.
66191         * modules/string (Makefile.am): Also substitute the value of
66192         REPLACE_STRCASESTR.
66193         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
66194         assume strcasestr is declared in <string.h> not <strings.h>. Also
66195         set REPLACE_STRCASESTR.
66196         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
66197         REPLACE_STRCASESTR.
66198         * lib/strcasestr.h: Remove file.
66199         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
66200         * lib/string_.h (strcasestr): New declaration.
66201
66202 2007-01-27  Bruno Haible  <bruno@clisp.org>
66203
66204         * lib/string_.h: Use 'extern'.
66205
66206 2007-01-27  Jim Meyering  <jim@meyering.net>
66207
66208         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
66209         of set-but-not-used local, "q".
66210
66211         * lib/mempcpy.c: Include <config.h> before <string.h>.
66212         This fixes a compilation error on HP-UX, due to the system's
66213         "restrict"-using mempcpy prototype.
66214
66215 2007-01-26  Bruno Haible  <bruno@clisp.org>
66216
66217         Small optimization.
66218         * lib/javacomp.c: Include c-strstr.h.
66219          (is_envjavac_gcj): Use c_strstr instead of strstr.
66220         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
66221
66222 2007-01-26  Bruno Haible  <bruno@clisp.org>
66223
66224         * MODULES.html.sh (Unicode string functions): Add the new modules.
66225
66226         * modules/uniconv/u32-strconv-to-locale: New file.
66227         * lib/uniconv/u32-strconv-to-locale.c: New file.
66228
66229         * modules/uniconv/u16-strconv-to-locale: New file.
66230         * lib/uniconv/u16-strconv-to-locale.c: New file.
66231
66232         * modules/uniconv/u8-strconv-to-locale: New file.
66233         * lib/uniconv/u8-strconv-to-locale.c: New file.
66234
66235         * modules/uniconv/u32-strconv-from-locale: New file.
66236         * lib/uniconv/u32-strconv-from-locale.c: New file.
66237
66238         * modules/uniconv/u16-strconv-from-locale: New file.
66239         * lib/uniconv/u16-strconv-from-locale.c: New file.
66240
66241         * modules/uniconv/u8-strconv-from-locale: New file.
66242         * lib/uniconv/u8-strconv-from-locale.c: New file.
66243
66244         * modules/uniconv/u32-strconv-to-enc: New file.
66245         * lib/uniconv/u32-strconv-to-enc.c: New file.
66246         * modules/uniconv/u32-strconv-to-enc-tests: New file.
66247         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
66248
66249         * modules/uniconv/u16-strconv-to-enc: New file.
66250         * lib/uniconv/u16-strconv-to-enc.c: New file.
66251         * lib/uniconv/u-strconv-to-enc.h: New file.
66252         * modules/uniconv/u16-strconv-to-enc-tests: New file.
66253         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
66254
66255         * modules/uniconv/u8-strconv-to-enc: New file.
66256         * lib/uniconv/u8-strconv-to-enc.c: New file.
66257         * modules/uniconv/u8-strconv-to-enc-tests: New file.
66258         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
66259
66260         * modules/uniconv/u32-strconv-from-enc: New file.
66261         * lib/uniconv/u32-strconv-from-enc.c: New file.
66262         * modules/uniconv/u32-strconv-from-enc-tests: New file.
66263         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
66264
66265         * modules/uniconv/u16-strconv-from-enc: New file.
66266         * lib/uniconv/u16-strconv-from-enc.c: New file.
66267         * modules/uniconv/u16-strconv-from-enc-tests: New file.
66268         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
66269
66270         * modules/uniconv/u8-strconv-from-enc: New file.
66271         * lib/uniconv/u8-strconv-from-enc.c: New file.
66272         * lib/uniconv/u-strconv-from-enc.h: New file.
66273         * modules/uniconv/u8-strconv-from-enc-tests: New file.
66274         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
66275
66276         * modules/uniconv/u32-conv-from-enc: New file.
66277         * lib/uniconv/u32-conv-from-enc.c: New file.
66278         * modules/uniconv/u32-conv-from-enc-tests: New file.
66279         * tests/uniconv/test-u32-conv-from-enc.c: New file.
66280
66281         * modules/uniconv/u16-conv-from-enc: New file.
66282         * lib/uniconv/u16-conv-from-enc.c: New file.
66283         * lib/uniconv/u-conv-from-enc.h: New file.
66284         * modules/uniconv/u16-conv-from-enc-tests: New file.
66285         * tests/uniconv/test-u16-conv-from-enc.c: New file.
66286
66287         * modules/uniconv/u8-conv-from-enc: New file.
66288         * lib/uniconv/u8-conv-from-enc.c: New file.
66289         * modules/uniconv/u8-conv-from-enc-tests: New file.
66290         * tests/uniconv/test-u8-conv-from-enc.c: New file.
66291
66292         * modules/uniconv/base: New file.
66293         * lib/uniconv.h: New file.
66294
66295 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
66296
66297         * doc/gnulib-tool.texi (Initial import): Update to match current
66298         behavior with strdup module.
66299         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
66300         * lib/memmem.h: Remove; all uses removed.  This is now done
66301         by <string.h>.
66302         * lib/mempcpy.h: Likewise.
66303         * lib/memrchr.h: Likewise.
66304         * lib/stpcpy.h: Likewise.
66305         * lib/stpncpy.h: Likewise.
66306         * lib/strcase.h: Likewise.
66307         * lib/strchrnul.h: Likewise.
66308         * lib/strdup.h: Likewise.
66309         * lib/strndup.h: Likewise.
66310         * lib/strnlen.h: Likewise.
66311         * lib/strpbrk.h: Likewise.
66312         * lib/strsep.h: Likewise.
66313         * lib/strstr.h: Likewise.
66314         * lib/strtok_r.h: Likewise.
66315         * lib/string_.h: New file.
66316         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
66317         Rely on <string.h> instead.
66318         * lib/canon-host.c: Likewise.
66319         * lib/chdir-long.c: Likewise.
66320         * lib/concatpath.c: Likewise.
66321         * lib/exclude.c: Likewise.
66322         * lib/fchdir.c: Likewise.
66323         * lib/getaddrinfo.c: Likewise.
66324         * lib/getcwd.c: Likewise.
66325         * lib/getsubopt.c: Likewise.
66326         * lib/glob.c: Likewise.
66327         * lib/hard-locale.c: Likewise.
66328         * lib/iconvme.c: Likewise.
66329         * lib/javacomp.c: Likewise.
66330         * lib/mempcpy.c: Likewise.
66331         * lib/memrchr.c: Likewise.
66332         * lib/regex_internal.h: Likewise.
66333         * lib/stpncpy.c: Likewise.
66334         * lib/strcasecmp.c: Likewise.
66335         * lib/strchrnul.c: Likewise.
66336         * lib/strdup.c: Likewise.
66337         * lib/striconv.c: Likewise.
66338         * lib/striconveh.c: Likewise.
66339         * lib/striconveha.c: Likewise.
66340         * lib/strncasecmp.c: Likewise.
66341         * lib/strndup.c: Likewise.
66342         * lib/strnlen.c: Likewise.
66343         * lib/strsep.c: Likewise.
66344         * lib/strstr.c: Likewise.
66345         * lib/strtok_r.c: Likewise.
66346         * lib/userspec.c: Likewise.
66347         * lib/w32spawn.h: Likewise.
66348         * lib/xstrndup.c: Likewise.
66349         * lib/mountlist.c (strstr): Remove decl.
66350         * m4/string_h.m4: New file.
66351         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
66352         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
66353         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
66354         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
66355         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
66356         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
66357         Set REPLACE_STRCASECMP if necessary.
66358         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
66359         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
66360         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
66361         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
66362         HAVE_DECL_STRDUP if necessary.
66363         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
66364         since gl_FUNC_STRNDUP does that now.
66365         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
66366         Check for decl here...
66367         (gl_PREREQ_STRNLEN): ... not here.
66368         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
66369         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
66370         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
66371         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
66372         necessary.
66373         * modules/string: New file.
66374         * modules/memmem (Files): Remove special-purpose include file.
66375         (Depends-on): Add string.
66376         (Include): Include <string.h>, not the removed file.
66377         * modules/mempcpy: Likewise.
66378         * modules/memrchr: Likewise.
66379         * modules/stpcpy: Likewise.
66380         * modules/stpncpy: Likewise.
66381         * modules/strcase: Likewise.
66382         * modules/strchrnul: Likewise.
66383         * modules/strdup: Likewise.
66384         * modules/strndup: Likewise.
66385         * modules/strnlen: Likewise.
66386         * modules/strpbrk: Likewise.
66387         * modules/strsep: Likewise.
66388         * modules/strstr: Likewise.
66389         * modules/strtok_r: Likewise.
66390         * tests/test-dirname.c: Don't include "strdup.h", since
66391         <string.h> now suffices.
66392         * tests/test-memmem.c: Don't include "memmem.h", since
66393         <string.h> now suffices.
66394
66395 2007-01-25  Bruno Haible  <bruno@clisp.org>
66396
66397         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
66398         *resultp is 0.
66399
66400         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
66401         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
66402         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
66403         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
66404
66405         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
66406         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
66407         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
66408         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
66409         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
66410         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
66411
66412 2007-01-24  Bruno Haible  <bruno@clisp.org>
66413
66414         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
66415         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
66416         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
66417         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
66418         gl_FUNC_FTS_CORE.
66419         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
66420         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
66421         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
66422         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
66423         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
66424         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
66425         gl_FUNC_FCHOWNAT.
66426         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
66427         gl_FUNC_STRFTIME.
66428         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
66429         Reported by Ralf Wildenhues.
66430
66431 2007-01-24  Bruno Haible  <bruno@clisp.org>
66432
66433         Drop AC_REQUIRE calls that are redundant with the module dependencies.
66434         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
66435         gl_GETADDRINFO.
66436         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
66437         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
66438         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
66439
66440 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
66441
66442         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
66443         Don't use 'exit'; just return from 'main'.
66444         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
66445
66446         * lib/fnmatch_.h: Readjust white space and comments to match
66447         glibc, to avoid spurious diffs.
66448
66449 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66450
66451         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
66452         2004-12-01 change by Jakub Jelinek, since this code won't compile
66453         if !LIBC.  Problem reported by Bob Proulx.
66454
66455 2007-01-23  Bruno Haible  <bruno@clisp.org>
66456
66457         * lib/striconveh.c: Include c-strcaseeq.h.
66458         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
66459         * modules/striconveh (Depends-on): Add c-strcaseeq.
66460
66461 2007-01-23  Bruno Haible  <bruno@clisp.org>
66462
66463         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
66464
66465         * modules/c-strcaseeq: New file.
66466         * lib/c-strcaseeq.h: New file.
66467
66468         * modules/streq: New file.
66469         * lib/streq.h: New file.
66470
66471 2007-01-23  Bruno Haible  <bruno@clisp.org>
66472
66473         * modules/striconveha-tests: New file.
66474         * tests/test-striconveha.c: New file.
66475
66476         * lib/striconveha.h: Include <stdbool.h>.
66477         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
66478         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
66479         (mem_iconveha_notranslit): Renamed from mem_iconveha.
66480         (mem_iconveha): New function.
66481         (str_iconveha_notranslit): Renamed from str_iconveha.
66482         (str_iconveha): New function.
66483         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
66484         c-strcase.
66485
66486 2007-01-23  Bruno Haible  <bruno@clisp.org>
66487
66488         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
66489         encodings without forgiving before trying any encoding with handler.
66490         (str_iconveha): Try all encodings without forgiving before trying any
66491         encoding with handler.
66492
66493 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
66494
66495         Import the following changes from libc.
66496
66497         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
66498
66499         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
66500
66501         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
66502
66503         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
66504         normal_bracket label.
66505
66506         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
66507
66508         [BZ #361]
66509         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
66510         to normal_bracket after fetching the next character.
66511
66512 2007-01-22  Bruno Haible  <bruno@clisp.org>
66513
66514         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
66515         argument.
66516         * lib/striconveh.c (iconv_carefully_1): New function.
66517         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
66518         argument.
66519         (str_cd_iconveh): Update.
66520         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
66521         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
66522         * tests/test-striconveh.c (MAGIC): New macro.
66523         (new_offsets): New function.
66524         (main): Test call with and without offsets.
66525
66526 2007-01-22  Bruno Haible  <bruno@clisp.org>
66527
66528         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
66529         * modules/sys_select (Makefile.am): Likewise.
66530         * modules/sys_socket (Makefile.am): Likewise.
66531         * modules/sys_time (Makefile.am): Likewise.
66532
66533 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
66534
66535         * modules/gettimeofday (License): Change from GPL to LGPL, since
66536         gettimeofday is a library function.
66537
66538 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66539
66540         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
66541
66542 2007-01-21  Bruno Haible  <bruno@clisp.org>
66543
66544         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
66545
66546 2007-01-21  Bruno Haible  <bruno@clisp.org>
66547
66548         * modules/striconveha: New file.
66549         * lib/striconveha.h: New file.
66550         * lib/striconveha.c: New file.
66551         * MODULES.html.sh (Internationalization functions): Add striconveha.
66552         * lib/striconv.c (str_iconv): Optimize the case of an empty input
66553         string.
66554         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
66555
66556 2007-01-21  Bruno Haible  <bruno@clisp.org>
66557
66558         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
66559         * lib/striconveh.c (str_iconveh): Likewise.
66560
66561 2007-01-21  Bruno Haible  <bruno@clisp.org>
66562
66563         * lib/striconveh.h (mem_iconveh): New declaration.
66564         * lib/striconveh.c (mem_iconveh): New function.
66565         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
66566
66567 2007-01-21  Bruno Haible  <bruno@clisp.org>
66568
66569         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
66570
66571         * lib/striconveh.h (mem_cd_iconveh): Change specification.
66572         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
66573         original result buffer.
66574         (str_cd_iconveh): Update.
66575         * tests/test-striconveh.c (main): Update.
66576
66577         * lib/striconv.h (mem_cd_iconv): Change specification.
66578         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
66579         result buffer.
66580         (str_cd_iconv): Update.
66581         * tests/test-striconv.c (main): Update.
66582
66583 2007-01-21  Bruno Haible  <bruno@clisp.org>
66584
66585         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
66586
66587 2007-01-20  Jim Meyering  <jim@meyering.net>
66588
66589         * lib/userspec.c (parse_with_separator): If a user or group string
66590         starts with "+", skip the corresponding name-to-ID look-up, since
66591         such a look-up must fail: user and group names may not include "+".
66592
66593 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
66594
66595         * lib/poll.c: Include sys/time.h and time.h unconditionally,
66596         since we now assume the sys_time module.
66597         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
66598         check for sys/time.h; no longer needed.
66599         * modules/poll (Depends-on): Depend on sys_time.
66600
66601 2007-01-18  Bruno Haible  <bruno@clisp.org>
66602
66603         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
66604         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
66605
66606         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
66607         gettimeofday.
66608
66609         * tests/test-gettimeofday.c: Include <time.h>.
66610         (dummy): Remove variable.
66611
66612         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
66613         gl_HEADER_SYS_TIME_H.
66614         (gl_HEADER_SYS_TIME_H): New macro.
66615
66616         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
66617         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66618         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
66619         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
66620         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66621         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
66622         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
66623         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66624         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
66625         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
66626         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66627
66628         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
66629         last change; it caused a compilation error when cross-compiling to
66630         Cygwin.
66631
66632 2007-01-18  Jim Meyering  <jim@meyering.net>
66633
66634         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
66635         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
66636         than the race-prone "test -d sys || mkdir sys".
66637         (configure.ac): Use AC_PROG_MKDIR_P.
66638         * modules/sys_select: Likewise.
66639         * modules/sys_socket: Likewise.
66640         * modules/sys_time: Likewise.
66641
66642 2007-01-18  Eric Blake  <ebb9@byu.net>
66643
66644         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
66645         replace gettimeofday.
66646         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
66647         name, to avoid infinite recursion.
66648
66649 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
66650
66651         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
66652         module sys_time.
66653         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
66654         assume timespec.h defines struct timeval.
66655         * lib/settime.c: Likewise.
66656         * lib/utimens.c: Likewise.
66657         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
66658         since we now assume the gettimeofday module.
66659         * lib/tempname.c (__gen_tempname): Likewise.
66660         * lib/gettimeofday.h: Remove.
66661         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
66662         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
66663         Include <time.h>, for 'time()'.
66664         (localtime_buffer_addr): Also use this workaround if
66665         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
66666         to simplify the uses.  All uses changed.
66667         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
66668         that #undef is inside {}, and 'const' follows type name consistently.
66669         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
66670         (gettimeofday): Do not use the maximum possible value for
66671         tv->tv_usec, since that might break usages other than ls.c.
66672         Instead, we'll leave ls.c alone.  This undoes today's patch
66673         by Bruno.  Add a compile-time warning for 1s-clock resolution;
66674         we've never observed the problem but might as well keep the
66675         canary.
66676         * lib/nanosleep.c: Include timespec.h first, for interface check.
66677         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
66678         now assume the sys_time module.
66679         * lib/tempname.c: Likewise.
66680         * lib/timespec.h: Likewise.
66681         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
66682         needed.
66683         * lib/strftime.c: Likewise.
66684         * lib/timespec.h: Likewise.
66685         * lib/posixtm.c: Include posixtm.h first, for interface check.
66686         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
66687         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
66688         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
66689         * lib/sys_time_.h: New file.
66690         * lib/timespec.h (struct timespec): Use long int, not long.
66691         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
66692         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
66693         Remove obsolescent call to AC_HEADER_TIME.
66694         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
66695         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
66696         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
66697         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
66698         Likewise.
66699         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
66700         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
66701         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
66702         into the sys_time module.  Check for gettimeofday just once.
66703         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
66704         for gettimeofday signature to just check the signature.  Merely
66705         compile it, since linking doesn't test signature.  Improve test for
66706         whether gettimeofday.o is actually needed.
66707         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
66708         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
66709         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
66710         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66711         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
66712         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
66713         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
66714         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
66715         than worrying about sys/time.h.
66716         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
66717         Don't bother worrying about TIME_WITH_SYS_TIME.
66718         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
66719         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
66720         * m4/sys_time_h.m4: New file.
66721         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
66722         Don't include sys/time.h.  Return from main rather than exiting.
66723         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
66724         all uses changed.
66725         * modules/gethrxtime (Depends-on): Add sys_time.
66726         * modules/gettime (Depends-on): Likewise.
66727         * modules/gettimeofday (Depends-on): Likewise.
66728         * modules/nanosleep (Depends-on): Likewise.
66729         * modules/settime (Depends-on): Likewise.
66730         * modules/tempname (Depends-on): Likewise.
66731         * modules/utimens (Depends-on): Likewise.
66732         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
66733         (Include): Change back to <sys/time.h>.
66734         (Maintainer): Add self.
66735         * modules/sys_time: New file.
66736         * modules/tempname (Depends-on): Add gettimeofday.
66737         * tests/test-gettimeofday.c: Include <sys/time.h>
66738         rather than gettimeofday.h.
66739
66740 2007-01-17  Bruno Haible  <bruno@clisp.org>
66741
66742         * gnulib-tool (func_get_license): Revert last patch. Instead, let
66743         the license default to GPL.
66744         (func_create_testdir): Don't complain if a module is LGPL and its
66745         tests module depends on GPLed modules.
66746
66747 2007-01-17  Bruno Haible  <bruno@clisp.org>
66748
66749         * lib/gettimeofday.c (gettimeofday): Add code for the case
66750         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
66751         maximum possible value for tv->tv_usec, rather than the minimum one.
66752
66753 2005-10-08  Martin Lambers  <marlam@marlam.de>
66754 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
66755 2007-01-16  Bruno Haible  <bruno@clisp.org>
66756
66757         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
66758         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
66759         gl_FUNC_GETTIMEOFDAY.
66760         (Include): Add gettimeofday.h.
66761         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
66762         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
66763         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
66764         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
66765         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
66766         * lib/gettimeofday.h: New file.
66767         * lib/gettimeofday.c: Include <sys/timeb.h>.
66768         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
66769         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
66770         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
66771         fall back on time().
66772
66773         * tests/test-gettimeofday.c: New file.
66774         * modules/gettimeofday-tests: New file.
66775
66776 2007-01-16  Eric Blake  <ebb9@byu.net>
66777
66778         * modules/fnmatch (Depends-on): Depend on wchar.
66779         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
66780         * m4/fnmatch.m4: Likewise.
66781         * modules/mbchar (Makefile.am): Assume <wchar.h>.
66782         * m4/mbchar.m4: Likewise.
66783         * modules/mbswidth (Depends-on): Depend on wchar.
66784         * lib/mbswidth.c: Assume <wchar.h>.
66785         * m4/mbswidth.m4: Likewise.
66786         * modules/quotearg (Depends-on): Depend on wchar.
66787         * lib/quotearg.c: Assume <wchar.h>.
66788         * m4/quotearg.m4: Likewise.
66789         * modules/regex (Depends-on): Depend on wchar.
66790         * lib/regex_internal.h: Assume <wchar.h>.
66791         * m4/regex.m4: Likewise.
66792         * modules/stdint (Depends-on): Depend on wchar.
66793         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
66794         * m4/stdint.m4: Likewise.
66795         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
66796         * modules/strftime (Depends-on): Depend on wchar.
66797         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
66798         * modules/strtol (Depends-on): Depend on wchar.
66799         * lib/strtol.c: Assume <wchar.h>.
66800         * modules/wcwidth (Depends-on): Depend on wchar.
66801         * lib/wcwidth.h: Assume <wchar.h>.
66802         * m4/wcwidth.m4: Likewise.
66803
66804 2007-01-16  Bruno Haible  <bruno@clisp.org>
66805
66806         * modules/csharpexec-script: New, created from...
66807         * modules/csharpexec: ... this.
66808
66809 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
66810
66811         * modules/javaexec-script: New, created from...
66812         * modules/javaexec: ... this.
66813
66814 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
66815
66816         * modules/poll (Dependencies): Add sys_select.
66817
66818 2007-01-15  Jim Meyering  <jim@meyering.net>
66819
66820         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
66821         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
66822         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
66823         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
66824
66825 2007-01-15  Bruno Haible  <bruno@clisp.org>
66826
66827         * modules/striconveh: New file.
66828         * lib/striconveh.h: New file.
66829         * lib/striconveh.c: New file.
66830         * MODULES.html.sh (Internationalization functions): Add striconveh.
66831
66832         * modules/striconveh-tests: New file.
66833         * tests/test-striconveh.c: New file.
66834
66835 2007-01-15  Bruno Haible  <bruno@clisp.org>
66836
66837         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
66838         not from GNU libiconv or GNU libc.
66839
66840 2007-01-15  Bruno Haible  <bruno@clisp.org>
66841
66842         * doc/gnulib-intro.texi (Copyright): Explain the different license
66843         terms for module descriptions, autoconf macros, tests, documentation.
66844
66845 2007-01-14  Bruno Haible  <bruno@clisp.org>
66846
66847         * modules/striconv-tests: New file.
66848         * tests/test-striconv.c: New file.
66849
66850 2007-01-14  Bruno Haible  <bruno@clisp.org>
66851
66852         * modules/iconv-tests: New file.
66853         * tests/test-iconv.c: New file.
66854
66855 2007-01-14  Bruno Haible  <bruno@clisp.org>
66856
66857         * gnulib-tool (func_get_license): For test modules, use the license of
66858         the main module.
66859
66860 2007-01-14  Bruno Haible  <bruno@clisp.org>
66861
66862         * modules/iconv (Include): Clarify that <iconv.h> can only be included
66863         if iconv is found to exist.
66864
66865 2007-01-14  Bruno Haible  <bruno@clisp.org>
66866
66867         * modules/c-ctype-tests: New file.
66868         * tests/test-c-ctype.c: New file.
66869
66870 2007-01-14  Bruno Haible  <bruno@clisp.org>
66871
66872         * modules/binary-io-tests: New file.
66873         * tests/test-binary-io.sh: New file.
66874         * tests/test-binary-io.c: New file.
66875
66876 2007-01-14  Bruno Haible  <bruno@clisp.org>
66877
66878         * modules/array-oset-tests: New file.
66879         * tests/test-array_oset.c: New file.
66880
66881 2007-01-14  Bruno Haible  <bruno@clisp.org>
66882
66883         * modules/array-list-tests: New file.
66884         * tests/test-array_list.c: New file.
66885
66886 2007-01-14  Bruno Haible  <bruno@clisp.org>
66887
66888         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
66889         and make.
66890         Reported by Simon Josefsson in
66891         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
66892
66893 2007-01-14  Bruno Haible  <bruno@clisp.org>
66894
66895         * modules/allocsa-tests: New file.
66896         * tests/test-allocsa.c: New file.
66897
66898 2007-01-14  Bruno Haible  <bruno@clisp.org>
66899
66900         * modules/fchdir (Depends-on): Add absolute-header.
66901         * modules/unistd (Depends-on): Likewise.
66902
66903 2006-12-30  Bruno Haible  <bruno@clisp.org>
66904
66905         * modules/fchdir: New file.
66906         * modules/unistd (Files): Add lib/unistd_.h.
66907         (Makefile.am): Generate unistd.h from unistd_.h.
66908         * lib/fchdir.c: New file.
66909         * lib/dirent_.h: New file.
66910         * lib/unistd_.h: New file.
66911         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
66912         * m4/fchdir.m4: New file.
66913         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
66914         (gl_HEADER_UNISTD): Invoke it.
66915         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
66916         function.
66917         * lib/backupfile.c (opendir, closedir): Undefine.
66918         * lib/chown.c (open, close): Undefine.
66919         * lib/clean-temp.c (open, close): Undefine.
66920         * lib/copy-file.c (open, close): Undefine.
66921         * lib/execute.c (open, close): Undefine.
66922         * lib/fsusage.c (open, close): Undefine.
66923         * lib/gc-gnulib.c (open, close): Undefine.
66924         * lib/getcwd.c (opendir, closedir): Undefine.
66925         * lib/glob.c (opendir, closedir): Undefine.
66926         * lib/javacomp.c (open, close): Undefine.
66927         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
66928         * lib/openat-proc.c (open, close): Undefine.
66929         * lib/pagealign_alloc.c (open, close): Undefine.
66930         * lib/pipe.c (open, close): Undefine.
66931         * lib/progreloc.c (open, close): Undefine.
66932         * lib/savedir.c (opendir, closedir): Undefine.
66933         * lib/utime.c (open, close): Undefine.
66934         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
66935
66936 2007-01-10  Bruno Haible  <bruno@clisp.org>
66937
66938         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
66939
66940 2007-01-12  Eric Blake  <ebb9@byu.net>
66941
66942         Provide a robust <wchar.h>.  Further simplifications are now
66943         possible in other modules, but not included here.
66944         * modules/wchar: New module.
66945         * m4/wchar.m4: New file.
66946         * lib/wchar_.h: Likewise.
66947         * modules/mbchar (Depends-on): Depend on wchar, as the first use
66948         of the new module.
66949         * MODULES.html.sh (Extended multibyte and wide character utilities):
66950         New section.
66951
66952 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
66953
66954         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
66955         to a reasonable default for memory allocation.
66956         (xreadlink): Don't allocate a huge buffer, to work around a buggy
66957         file system that reports garbage st_size values for symlinks.
66958         Problem reported by Liyang Hu.
66959
66960 2007-01-11  Simon Josefsson  <simon@josefsson.org>
66961
66962         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
66963         Emacs .#* auto-save files).
66964
66965 2007-01-11  Bruno Haible  <bruno@clisp.org>
66966
66967         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
66968         directory.
66969
66970 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
66971
66972         Use @...@ consistently in lib/wctype_.h.
66973         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
66974         on it being set to 1 or 0.
66975         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
66976         go back to AC_SUBSTing it.
66977         * modules/wctype (Makefile.am): Undo previous change.
66978
66979 2007-01-10  Eric Blake  <ebb9@byu.net>
66980
66981         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
66982         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
66983         * modules/wctype (Makefile.am): Likewise.
66984         Reported by Chris McGuire.
66985
66986 2007-01-10  Jim Meyering  <jim@meyering.net>
66987
66988         fts.c: a small readability/maintainability improvement
66989         * lib/fts.c (fts_read): Make this code slightly more readable and
66990         maintainable by hoisting the "sp->fts_cur = p" assignments to
66991         immediately follow the statements that set P.  Derived from
66992         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
66993
66994 2007-01-10  Eric Blake  <ebb9@byu.net>
66995
66996         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
66997         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
66998         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66999         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
67000         Reported by Chris McGuire.
67001
67002 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67003
67004         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
67005         in sed script.
67006
67007 2007-01-09  Bruno Haible  <bruno@clisp.org>
67008
67009         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
67010         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
67011         variables.
67012         (func_module): Use them.
67013
67014 2007-01-09  Bruno Haible  <bruno@clisp.org>
67015
67016         * modules/unistr/base: New file.
67017         * lib/unistr.h: New file.
67018
67019         * modules/unistr/u8-to-u16: New file.
67020         * lib/unistr/u8-to-u16.c: New file.
67021
67022         * modules/unistr/u8-to-u32: New file.
67023         * lib/unistr/u8-to-u32.c: New file.
67024
67025         * modules/unistr/u16-to-u8: New file.
67026         * lib/unistr/u16-to-u8.c: New file.
67027
67028         * modules/unistr/u16-to-u32: New file.
67029         * lib/unistr/u16-to-u32.c: New file.
67030
67031         * modules/unistr/u32-to-u8: New file.
67032         * lib/unistr/u32-to-u8.c: New file.
67033
67034         * modules/unistr/u32-to-u16: New file.
67035         * lib/unistr/u32-to-u16.c: New file.
67036
67037         * modules/unistr/u8-check: New file.
67038         * modules/unistr/u16-check: New file.
67039         * modules/unistr/u32-check: New file.
67040         * lib/unistr/u8-check.c: New file.
67041         * lib/unistr/u16-check.c: New file.
67042         * lib/unistr/u32-check.c: New file.
67043
67044         * modules/unistr/u8-chr: New file.
67045         * modules/unistr/u16-chr: New file.
67046         * modules/unistr/u32-chr: New file.
67047         * lib/unistr/u8-chr.c: New file.
67048         * lib/unistr/u16-chr.c: New file.
67049         * lib/unistr/u32-chr.c: New file.
67050
67051         * modules/unistr/u8-cmp: New file.
67052         * modules/unistr/u16-cmp: New file.
67053         * modules/unistr/u32-cmp: New file.
67054         * lib/unistr/u8-cmp.c: New file.
67055         * lib/unistr/u16-cmp.c: New file.
67056         * lib/unistr/u32-cmp.c: New file.
67057
67058         * modules/unistr/u8-cpy: New file.
67059         * modules/unistr/u16-cpy: New file.
67060         * modules/unistr/u32-cpy: New file.
67061         * lib/unistr/u8-cpy.c: New file.
67062         * lib/unistr/u16-cpy.c: New file.
67063         * lib/unistr/u32-cpy.c: New file.
67064         * lib/unistr/u-cpy.h: New file.
67065
67066         * modules/unistr/u8-cpy-alloc: New file.
67067         * modules/unistr/u16-cpy-alloc: New file.
67068         * modules/unistr/u32-cpy-alloc: New file.
67069         * lib/unistr/u8-cpy-alloc.c: New file.
67070         * lib/unistr/u16-cpy-alloc.c: New file.
67071         * lib/unistr/u32-cpy-alloc.c: New file.
67072         * lib/unistr/u-cpy-alloc.h: New file.
67073
67074         * modules/unistr/u8-endswith: New file.
67075         * modules/unistr/u16-endswith: New file.
67076         * modules/unistr/u32-endswith: New file.
67077         * lib/unistr/u8-endswith.c: New file.
67078         * lib/unistr/u16-endswith.c: New file.
67079         * lib/unistr/u32-endswith.c: New file.
67080         * lib/unistr/u-endswith.h: New file.
67081
67082         * modules/unistr/u8-mblen: New file.
67083         * modules/unistr/u16-mblen: New file.
67084         * modules/unistr/u32-mblen: New file.
67085         * lib/unistr/u8-mblen.c: New file.
67086         * lib/unistr/u16-mblen.c: New file.
67087         * lib/unistr/u32-mblen.c: New file.
67088
67089         * modules/unistr/u8-mbtouc: New file.
67090         * modules/unistr/u16-mbtouc: New file.
67091         * modules/unistr/u32-mbtouc: New file.
67092         * lib/unistr/u8-mbtouc.c: New file.
67093         * lib/unistr/u16-mbtouc.c: New file.
67094         * lib/unistr/u32-mbtouc.c: New file.
67095
67096         * modules/unistr/u8-mbtouc-safe: New file.
67097         * modules/unistr/u16-mbtouc-safe: New file.
67098         * modules/unistr/u32-mbtouc-safe: New file.
67099         * lib/unistr/u8-mbtouc-safe.c: New file.
67100         * lib/unistr/u16-mbtouc-safe.c: New file.
67101         * lib/unistr/u32-mbtouc-safe.c: New file.
67102
67103         * modules/unistr/u8-move: New file.
67104         * modules/unistr/u16-move: New file.
67105         * modules/unistr/u32-move: New file.
67106         * lib/unistr/u8-move.c: New file.
67107         * lib/unistr/u16-move.c: New file.
67108         * lib/unistr/u32-move.c: New file.
67109         * lib/unistr/u-move.h: New file.
67110
67111         * modules/unistr/u8-next: New file.
67112         * modules/unistr/u16-next: New file.
67113         * modules/unistr/u32-next: New file.
67114         * lib/unistr/u8-next.c: New file.
67115         * lib/unistr/u16-next.c: New file.
67116         * lib/unistr/u32-next.c: New file.
67117
67118         * modules/unistr/u8-prev: New file.
67119         * modules/unistr/u16-prev: New file.
67120         * modules/unistr/u32-prev: New file.
67121         * lib/unistr/u8-prev.c: New file.
67122         * lib/unistr/u16-prev.c: New file.
67123         * lib/unistr/u32-prev.c: New file.
67124
67125         * modules/unistr/u8-set: New file.
67126         * modules/unistr/u16-set: New file.
67127         * modules/unistr/u32-set: New file.
67128         * lib/unistr/u8-set.c: New file.
67129         * lib/unistr/u16-set.c: New file.
67130         * lib/unistr/u32-set.c: New file.
67131         * lib/unistr/u-set.h: New file.
67132
67133         * modules/unistr/u8-startswith: New file.
67134         * modules/unistr/u16-startswith: New file.
67135         * modules/unistr/u32-startswith: New file.
67136         * lib/unistr/u8-startswith.c: New file.
67137         * lib/unistr/u16-startswith.c: New file.
67138         * lib/unistr/u32-startswith.c: New file.
67139         * lib/unistr/u-startswith.h: New file.
67140
67141         * modules/unistr/u8-stpcpy: New file.
67142         * modules/unistr/u16-stpcpy: New file.
67143         * modules/unistr/u32-stpcpy: New file.
67144         * lib/unistr/u8-stpcpy.c: New file.
67145         * lib/unistr/u16-stpcpy.c: New file.
67146         * lib/unistr/u32-stpcpy.c: New file.
67147         * lib/unistr/u-stpcpy.h: New file.
67148
67149         * modules/unistr/u8-stpncpy: New file.
67150         * modules/unistr/u16-stpncpy: New file.
67151         * modules/unistr/u32-stpncpy: New file.
67152         * lib/unistr/u8-stpncpy.c: New file.
67153         * lib/unistr/u16-stpncpy.c: New file.
67154         * lib/unistr/u32-stpncpy.c: New file.
67155         * lib/unistr/u-stpncpy.h: New file.
67156
67157         * modules/unistr/u8-strcat: New file.
67158         * modules/unistr/u16-strcat: New file.
67159         * modules/unistr/u32-strcat: New file.
67160         * lib/unistr/u8-strcat.c: New file.
67161         * lib/unistr/u16-strcat.c: New file.
67162         * lib/unistr/u32-strcat.c: New file.
67163         * lib/unistr/u-strcat.h: New file.
67164
67165         * modules/unistr/u8-strchr: New file.
67166         * modules/unistr/u16-strchr: New file.
67167         * modules/unistr/u32-strchr: New file.
67168         * lib/unistr/u8-strchr.c: New file.
67169         * lib/unistr/u16-strchr.c: New file.
67170         * lib/unistr/u32-strchr.c: New file.
67171
67172         * modules/unistr/u8-strcmp: New file.
67173         * modules/unistr/u16-strcmp: New file.
67174         * modules/unistr/u32-strcmp: New file.
67175         * lib/unistr/u8-strcmp.c: New file.
67176         * lib/unistr/u16-strcmp.c: New file.
67177         * lib/unistr/u32-strcmp.c: New file.
67178
67179         * modules/unistr/u8-strcpy: New file.
67180         * modules/unistr/u16-strcpy: New file.
67181         * modules/unistr/u32-strcpy: New file.
67182         * lib/unistr/u8-strcpy.c: New file.
67183         * lib/unistr/u16-strcpy.c: New file.
67184         * lib/unistr/u32-strcpy.c: New file.
67185         * lib/unistr/u-strcpy.h: New file.
67186
67187         * modules/unistr/u8-strcspn: New file.
67188         * modules/unistr/u16-strcspn: New file.
67189         * modules/unistr/u32-strcspn: New file.
67190         * lib/unistr/u8-strcspn.c: New file.
67191         * lib/unistr/u16-strcspn.c: New file.
67192         * lib/unistr/u32-strcspn.c: New file.
67193         * lib/unistr/u-strcspn.h: New file.
67194
67195         * modules/unistr/u8-strdup: New file.
67196         * modules/unistr/u16-strdup: New file.
67197         * modules/unistr/u32-strdup: New file.
67198         * lib/unistr/u8-strdup.c: New file.
67199         * lib/unistr/u16-strdup.c: New file.
67200         * lib/unistr/u32-strdup.c: New file.
67201         * lib/unistr/u-strdup.h: New file.
67202
67203         * modules/unistr/u8-strlen: New file.
67204         * modules/unistr/u16-strlen: New file.
67205         * modules/unistr/u32-strlen: New file.
67206         * lib/unistr/u8-strlen.c: New file.
67207         * lib/unistr/u16-strlen.c: New file.
67208         * lib/unistr/u32-strlen.c: New file.
67209         * lib/unistr/u-strlen.h: New file.
67210
67211         * modules/unistr/u8-strmblen: New file.
67212         * modules/unistr/u16-strmblen: New file.
67213         * modules/unistr/u32-strmblen: New file.
67214         * lib/unistr/u8-strmblen.c: New file.
67215         * lib/unistr/u16-strmblen.c: New file.
67216         * lib/unistr/u32-strmblen.c: New file.
67217
67218         * modules/unistr/u8-strmbtouc: New file.
67219         * modules/unistr/u16-strmbtouc: New file.
67220         * modules/unistr/u32-strmbtouc: New file.
67221         * lib/unistr/u8-strmbtouc.c: New file.
67222         * lib/unistr/u16-strmbtouc.c: New file.
67223         * lib/unistr/u32-strmbtouc.c: New file.
67224
67225         * modules/unistr/u8-strncat: New file.
67226         * modules/unistr/u16-strncat: New file.
67227         * modules/unistr/u32-strncat: New file.
67228         * lib/unistr/u8-strncat.c: New file.
67229         * lib/unistr/u16-strncat.c: New file.
67230         * lib/unistr/u32-strncat.c: New file.
67231         * lib/unistr/u-strncat.h: New file.
67232
67233         * modules/unistr/u8-strncmp: New file.
67234         * modules/unistr/u16-strncmp: New file.
67235         * modules/unistr/u32-strncmp: New file.
67236         * lib/unistr/u8-strncmp.c: New file.
67237         * lib/unistr/u16-strncmp.c: New file.
67238         * lib/unistr/u32-strncmp.c: New file.
67239
67240         * modules/unistr/u8-strncpy: New file.
67241         * modules/unistr/u16-strncpy: New file.
67242         * modules/unistr/u32-strncpy: New file.
67243         * lib/unistr/u8-strncpy.c: New file.
67244         * lib/unistr/u16-strncpy.c: New file.
67245         * lib/unistr/u32-strncpy.c: New file.
67246         * lib/unistr/u-strncpy.h: New file.
67247
67248         * modules/unistr/u8-strnlen: New file.
67249         * modules/unistr/u16-strnlen: New file.
67250         * modules/unistr/u32-strnlen: New file.
67251         * lib/unistr/u8-strnlen.c: New file.
67252         * lib/unistr/u16-strnlen.c: New file.
67253         * lib/unistr/u32-strnlen.c: New file.
67254         * lib/unistr/u-strnlen.h: New file.
67255
67256         * modules/unistr/u8-strpbrk: New file.
67257         * modules/unistr/u16-strpbrk: New file.
67258         * modules/unistr/u32-strpbrk: New file.
67259         * lib/unistr/u8-strpbrk.c: New file.
67260         * lib/unistr/u16-strpbrk.c: New file.
67261         * lib/unistr/u32-strpbrk.c: New file.
67262         * lib/unistr/u-strpbrk.h: New file.
67263
67264         * modules/unistr/u8-strrchr: New file.
67265         * modules/unistr/u16-strrchr: New file.
67266         * modules/unistr/u32-strrchr: New file.
67267         * lib/unistr/u8-strrchr.c: New file.
67268         * lib/unistr/u16-strrchr.c: New file.
67269         * lib/unistr/u32-strrchr.c: New file.
67270
67271         * modules/unistr/u8-strspn: New file.
67272         * modules/unistr/u16-strspn: New file.
67273         * modules/unistr/u32-strspn: New file.
67274         * lib/unistr/u8-strspn.c: New file.
67275         * lib/unistr/u16-strspn.c: New file.
67276         * lib/unistr/u32-strspn.c: New file.
67277         * lib/unistr/u-strspn.h: New file.
67278
67279         * modules/unistr/u8-strstr: New file.
67280         * modules/unistr/u16-strstr: New file.
67281         * modules/unistr/u32-strstr: New file.
67282         * lib/unistr/u8-strstr.c: New file.
67283         * lib/unistr/u16-strstr.c: New file.
67284         * lib/unistr/u32-strstr.c: New file.
67285         * lib/unistr/u-strstr.h: New file.
67286
67287         * modules/unistr/u8-strtok: New file.
67288         * modules/unistr/u16-strtok: New file.
67289         * modules/unistr/u32-strtok: New file.
67290         * lib/unistr/u8-strtok.c: New file.
67291         * lib/unistr/u16-strtok.c: New file.
67292         * lib/unistr/u32-strtok.c: New file.
67293         * lib/unistr/u-strtok.h: New file.
67294
67295         * modules/unistr/u8-uctomb: New file.
67296         * modules/unistr/u16-uctomb: New file.
67297         * modules/unistr/u32-uctomb: New file.
67298         * lib/unistr/u8-uctomb.c: New file.
67299         * lib/unistr/u16-uctomb.c: New file.
67300         * lib/unistr/u32-uctomb.c: New file.
67301
67302         * MODULES.html.sh (Unicode string functions): Add the new modules.
67303
67304 2007-01-08  Bruno Haible  <bruno@clisp.org>
67305
67306         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
67307         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
67308         subdirectories.
67309
67310 2007-01-08  Karl Berry  <karl@gnu.org>
67311
67312         * doc/error.texi: mention that main() fns must set program_name
67313         when progname is used.
67314
67315 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
67316
67317         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
67318         WCTYPE_H is empty, for the benefit of builds from non-distclean
67319         directories.  Problem reported by Eric Blake in
67320         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
67321
67322 2007-01-08  Bruno Haible  <bruno@clisp.org>
67323
67324         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
67325         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
67326         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
67327         PROVIDE_CANONICALIZE_FILENAME_MODE.
67328         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
67329
67330 2007-01-08  Bruno Haible  <bruno@clisp.org>
67331
67332         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
67333         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
67334         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
67335         * lib/fts.c: Likewise.
67336         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
67337
67338 2006-12-25  Bruno Haible  <bruno@clisp.org>
67339
67340         * modules/utf8-ucs4-safe: New file.
67341         * lib/utf8-ucs4-safe.h: New file.
67342         * lib/unistr/utf8-ucs4-safe.c: New file.
67343
67344         * modules/utf16-ucs4-safe: New file.
67345         * lib/utf16-ucs4-safe.h: New file.
67346         * lib/unistr/utf16-ucs4-safe.c: New file.
67347
67348         * MODULES.html.sh (Unicode string functions): Add the new modules.
67349
67350 2007-01-08  Bruno Haible  <bruno@clisp.org>
67351
67352         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
67353         (Depends-on): Add unitypes.
67354         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
67355         (u8_mbtouc_aux): Move out to separate file.
67356         (u8_mbtouc): Use ucs4_t, uint8_t types.
67357         * lib/unistr/utf8-ucs4.c: New file.
67358
67359         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
67360         (Depends-on): Add unitypes.
67361         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
67362         (u16_mbtouc_aux): Move out to separate file.
67363         (u16_mbtouc): Use ucs4_t, uint16_t types.
67364         * lib/unistr/utf16-ucs4.c: New file.
67365
67366         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
67367         (Depends-on): Add unitypes.
67368         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
67369         (u8_uctomb_aux): Move out to separate file.
67370         (u8_uctomb): Use ucs4_t, uint8_t types.
67371         * lib/unistr/ucs4-utf8.c: New file.
67372
67373         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
67374         (Depends-on): Add unitypes.
67375         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
67376         (u16_uctomb_aux): Move out to separate file.
67377         (u16_uctomb): Use ucs4_t, uint16_t types.
67378         * lib/unistr/ucs4-utf16.c: New file.
67379
67380 2006-12-25  Bruno Haible  <bruno@clisp.org>
67381
67382         * modules/unitypes: New file.
67383         * lib/unitypes.h: New file.
67384         * MODULES.html.sh (func_all_modules): New section "Unicode string
67385         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
67386         this section. Add unitypes.
67387
67388 2007-01-08  Bruno Haible  <bruno@clisp.org>
67389
67390         Avoid variable names that conflict with those from libtool.
67391         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
67392         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
67393         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
67394         library_names_spec to acl_library_names_spec, hardcode_* to
67395         acl_hardcode_*.
67396         Reported by Ralf Wildenhues.
67397
67398 2007-01-08  Bruno Haible  <bruno@clisp.org>
67399
67400         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
67401         definition.
67402         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
67403         definition.
67404         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
67405         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
67406         definition.
67407         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
67408         definition.
67409         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
67410         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
67411         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
67412         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
67413         definition.
67414         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
67415         definition.
67416         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
67417         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
67418         GC_USE_<algorithm>.
67419         * lib/gc-libgcrypt.c: Likewise.
67420         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
67421         * modules/gc-arctwo (configure.ac): Likewise.
67422         * modules/gc-des (configure.ac): Likewise.
67423         * modules/gc-hmac-md5 (configure.ac): Likewise.
67424         * modules/gc-hmac-sha1 (configure.ac): Likewise.
67425         * modules/gc-md2 (configure.ac): Likewise.
67426         * modules/gc-md4 (configure.ac): Likewise.
67427         * modules/gc-md5 (configure.ac): Likewise.
67428         * modules/gc-random (configure.ac): Likewise.
67429         * modules/gc-rijndael (configure.ac): Likewise.
67430         * modules/gc-sha1 (configure.ac): Likewise.
67431
67432 2007-01-08  Bruno Haible  <bruno@clisp.org>
67433
67434         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
67435         macro definition.
67436         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
67437         definition.
67438         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
67439         definition.
67440         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
67441         * modules/fcntl-safer (configure.ac): Likewise.
67442         * modules/fopen-safer (configure.ac): Likewise.
67443         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
67444         GNULIB_FWRITEERROR macro definition.
67445
67446 2007-01-08  Bruno Haible  <bruno@clisp.org>
67447
67448         * m4/gnulib-common.m4: New file.
67449         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
67450         (func_get_filelist): Add m4/gnulib-common.m4.
67451
67452 2007-01-08  Bruno Haible  <bruno@clisp.org>
67453
67454         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
67455         command.
67456
67457 2007-01-08  Jim Meyering  <jim@meyering.net>
67458
67459         Use a more robust test for a "can't happen" condition.
67460         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
67461         narrowed the st_size value.  Presuming the "can't happen" condition
67462         is true, that narrowing could conceivably convert an invalid st_size
67463         value into a valid one.  Instead, use a change based on Matthew
67464         Woehlke's original patch.
67465
67466         Slight readability improvement: use an assert-like macro
67467         in place of literal "abort ()" uses.
67468         * lib/fts.c (fts_assert): Define.
67469         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
67470         Use this macro instead of a bare 'abort'.
67471
67472 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
67473
67474         Don't worry about using IRIX 5.3's wctype.h broken definitions;
67475         simply work around them.
67476         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
67477         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
67478         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
67479         declaring.
67480         Don't bother to define as macros, since the standard doesn't require it.
67481         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
67482         longer worry about IRIX 5.3.
67483         (HAVE_WCTYPE_CTMP_BUG): Remove.
67484
67485 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
67486
67487         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
67488         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
67489         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
67490         Problems reported by Georg Schwarz for IRIX 5.3.
67491
67492         * gnulib-tool (autoconf_minversion): Take the maximum version number
67493         found, not the minimum.  Problem reported by James Youngman.
67494
67495 2007-01-03  Karl Berry  <karl@gnu.org>
67496
67497         * doc/error.texi: new file, explaining interaction with progname.
67498         * doc/gnulib.texi: include it.  Update copyright.
67499
67500 2007-01-03  Simon Josefsson  <simon@josefsson.org>
67501
67502         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
67503         AC_CANONICAL_HOST, to improve autobuild outputs.
67504
67505 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
67506             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
67507
67508         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
67509         sockets, server sockets, and other file descriptors.  Count errors
67510         to compute the return value.  Reorder the code a bit to be easier
67511         to follow.  Don't set event bits that were not requested (except
67512         POLLERR and POLLHUP).
67513
67514 2007-01-01  Bruno Haible  <bruno@clisp.org>
67515
67516         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
67517
67518 2007-01-03  Jim Meyering  <jim@meyering.net>
67519
67520         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
67521
67522 2007-01-02  Bruno Haible  <bruno@clisp.org>
67523
67524         * modules/settime (Include): Require timespec.h.
67525         * modules/nanosleep (Include): Likewise.
67526
67527 2007-01-01  Bruno Haible  <bruno@clisp.org>
67528
67529         * gnulib-tool (func_emit_copyright_notice): Bump year.
67530         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
67531
67532 2007-01-01  Bruno Haible  <bruno@clisp.org>
67533
67534         Improve support for OpenBSD.
67535         * build-aux/config.rpath (libname_spec): Export.
67536         (library_names_spec): New variable. Export.
67537         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
67538         library_names_spec from the config.rpath output. Locate shared library
67539         through the name pattern in library_names_spec.
67540
67541 2007-01-01  Eric Blake  <ebb9@byu.net>
67542
67543         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
67544
67545 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
67546
67547         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
67548         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
67549         assume the C locale, and avoid an "eval" that could cause trouble.
67550         Problem with SORT reported by Bob Proulx.
67551
67552         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
67553         Define.  Trivial patch from Henning Nielsen Lund, originally
67554         sent to bug-grep@gnu.org today.
67555
67556 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
67557
67558         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
67559         struct stat.  Problem reported by Henning Nielsen Lund.
67560         * lib/acl.c: Include acl.h first, to check interface.  Don't
67561         bother to include sys/types.h and sys/stat.h again.
67562
67563 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
67564
67565         Import the following change from libc; problem reported by
67566         Sven Verdoolaege.
67567
67568         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
67569
67570         [BZ #1373]
67571         * lib/argp.h: Remove __NTH for __argp_usage inline function.
67572
67573 2006-12-28  Jim Meyering  <jim@meyering.net>
67574
67575         * build-aux/announce-gen: Do not assume that the package
67576         builds any of tar.gz, tar.bz2, and .xdelta files.
67577         Suggestion from Simon Josefsson.
67578
67579 2006-12-28  Simon Josefsson  <simon@josefsson.org>
67580
67581         * modules/announce-gen: New file.
67582
67583 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
67584
67585         * lib/mbchar.h: Just include <wctype.h>; the wctype module
67586         handles its gotchas now.
67587         * lib/mbswidth.c: Likewise.
67588         * lib/wcwidth.h: Likewise.
67589         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
67590         and iswcntrl; the wctype module does this stuff now.
67591         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
67592         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
67593         * modules/mbchar (Depends-on): Add wctype.
67594         * modules/mbswidth (Depends-on): Likewise.
67595         * modules/wcwidth (Depends-on): Likewise.
67596
67597 2006-12-27  Eric Blake  <ebb9@byu.net>
67598
67599         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
67600         module uses more than what <wctype.h> is required to provide.
67601
67602 2006-12-26  Eric Blake  <ebb9@byu.net>
67603
67604         * gnulib-tool (sed_extract_prog): Avoid space-tab.
67605
67606 2006-12-26  Eric Blake  <ebb9@byu.net>
67607
67608         * modules/absolute-header: New module.
67609         * modules/fcntl (Depends-on): Depend on it.
67610         * modules/inttypes (Depends-on): Likewise.
67611         * modules/stdint (Depends-on): Likewise.
67612         * modules/sys_stat (Depends-on): Likewise.
67613         * modules/wctype (Depends-on): Likewise.
67614         * MODULES.html.sh (Support for building libraries and
67615         executables): Document it.
67616
67617 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
67618
67619         * gnulib-tool (SED): Remove, undoing previous change.
67620         The problem was that it broke coreutils on Solaris, because
67621         "sed --posix" leaked into a makefile.
67622         (sed): New alias, if 'alias' and GNU sed.
67623
67624 2006-12-24  Jim Meyering  <jim@meyering.net>
67625
67626         Work around an fchownat bug in glibc-2.4:
67627         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
67628         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
67629         in spite of the -P option.
67630         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
67631         New macros.
67632         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
67633         * modules/openat (Files): Add lib/fchownat.c.
67634         * lib/openat.c (fchownat): Don't define here.  Move to...
67635         * lib/fchownat.c: ...this new file.
67636
67637 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
67638
67639         Fix bug reported by Bruno Haible in
67640         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
67641         where quotearg.c didn't compile on Mac OS X 10.2 because it
67642         lacks <wchar.h> and wint_t.
67643         * lib/wctype_.h (__wctype_wint_t): New type.
67644         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
67645         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
67646         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
67647         Arg is now of type __wctype_wint_t, not wint_t.
67648         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
67649         substitute HAVE_WINT_T.
67650         * modules/wctype (Files): Add m4/wint_t.m4.
67651         (wctype.h): Substitute HAVE_WINT_T.
67652
67653 2006-12-23  Bruno Haible  <bruno@clisp.org>
67654
67655         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
67656
67657 2006-12-23  Bruno Haible  <bruno@clisp.org>
67658
67659         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
67660         S_ISLNK.
67661         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
67662         mingw.
67663
67664 2006-12-22  Bruno Haible  <bruno@clisp.org>
67665
67666         * lib/copy-file.c: Include acl.h.
67667         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
67668         Close the file descriptors only after being done with copy_acl.
67669         * modules/copy-file (Depends-on): Add acl.
67670
67671 2006-12-22  Bruno Haible  <bruno@clisp.org>
67672
67673         * gnulib-tool (SED): New variable.
67674         Use $SED instead of sed everywhere.
67675
67676 2006-12-22  Bruno Haible  <bruno@clisp.org>
67677
67678         * modules/no-c++: New file.
67679         * m4/no-c++.m4: New file.
67680         * MODULES.html.sh (Support for building libraries and executables):
67681         Add no-c++.
67682
67683 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
67684
67685         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
67686         Include <limits.h>, and use its INT_MAX to rewrite the
67687         j loop so that it does not overflow 'int'.  Problem reported by
67688         Ralf Wildenhues in
67689         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
67690         Play it safe by shifting left by 1 rather than multiplying by 2,
67691         as GCC is less likely to optimize this away when the value
67692         is signed (when it assumes overflow leads to undefined behavior).
67693         Also, don't assume time_t uses two's complement.
67694
67695 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
67696
67697         * MODULES.html.sh: New module wctype.
67698         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
67699         * lib/fnmatch.c: Don't bother to include <wchar.h> before
67700         <wctype.h>, since the new wctype module should fix this.
67701         * lib/quotearg.c: Include <wctype.h> unconditionally, since
67702         the wctype module should arrange for it.
67703         * lib/regex_internal.h: Likewise.
67704         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
67705         since the wctype module should handle this now.
67706         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
67707         * modules/fnmatch (Depends-on): Add wctype.
67708         * modules/quotearg (Depends-on): Likewise.
67709         * modules/regex (Depends-on): Likewise.
67710
67711 2006-12-19  Bruno Haible  <bruno@clisp.org>
67712
67713         * lib/strdup.h [C++]: Wrap definitions in extern "C".
67714         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
67715
67716 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67717
67718         * modules/savewd (Depends-on): Fix dependency on fcntl.
67719
67720 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
67721
67722         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
67723         conforms to C99, rather than relying on the user's environment
67724         setting of STDINT_H.
67725
67726 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
67727         and Eric Blake  <ebb9@byu.net>
67728
67729         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
67730         This is more consistent with the other defines here.
67731         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
67732         Port to z/OS.  Problem reported by Paul Gilmartin.
67733         Change local vars to use gl_ prefix rather than ac_.
67734         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
67735         with other defines.
67736         * modules/double-slash-root: New module.
67737         * modules/dirname (Files): Remove m4/double-slash-root.m4.
67738         (Depends-on): Add double-slash-root.
67739         * MODULES.html.sh (File system functions): Mention new module.
67740
67741 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
67742
67743         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
67744         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
67745         This is for the benefit of gzip, which doesn't do i18n.
67746
67747 2006-12-12  Jim Meyering  <jim@meyering.net>
67748
67749         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
67750         Reported by Andreas Schwab <schwab@suse.de>.
67751
67752 2006-12-12  Bruno Haible  <bruno@clisp.org>
67753
67754         Merge these changes.
67755         2006-09-05  Bruno Haible  <bruno@clisp.org>
67756         * lib/iconvme.c (iconv_string): No need to save and restore errno when
67757         iconv_alloc succeeded.
67758         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
67759         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
67760         test for " && dest " at the end - dest is always != NULL there. Call
67761         iconv with 4xNULL arguments initially, to reset the state. Call iconv
67762         with 2xNULL arguments, also to flush the state storage. Handle the
67763         IRIX iconv behaviour. Realloc the final result, to throw away unused
67764         memory.
67765
67766 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
67767
67768         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
67769         and fchmodat unconditionally, since glibc 2.4 has them.
67770         Problem reported by Arkadiusz Miskiewicz.
67771
67772 2006-12-10  Bruno Haible  <bruno@clisp.org>
67773
67774         * gnulib-tool (func_import): Show the include files only for those
67775         modules that are copied and specified.
67776         Reported by Karl Berry.
67777
67778 2006-12-08  Jim Meyering  <jim@meyering.net>
67779
67780         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
67781         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
67782
67783         * build-aux/announce-gen: Add two new options, both optional:
67784         --bootstrap-tools=TOOL_LIST
67785               a comma-separated list of tools, e.g.,
67786               autoconf,automake,bison,gnulib
67787         --gnulib-snapshot-date=DATE
67788               if gnulib is in the bootstrap tool list,
67789               then report this as the snapshot date.
67790               If not specified, use the current date/time.
67791               If you specify a date here, be sure it's UTC.
67792
67793 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67794
67795         * tests/test-argp-2.sh: Fix test to match actual output.
67796         (func_compare): Fix sed script to be portable.
67797
67798 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
67799
67800         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
67801         workaround for this case.  It is not autoconfigured now; offhand
67802         it's hard to see how to autoconfigure it.
67803
67804 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
67805
67806         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
67807         a directory that is about to be chowned.  Such a directory's
67808         initial file permissions should permit the owner only and this
67809         should not be changed until after the chown, since the group and
67810         other bits would be incorrect if they granted permission before
67811         the chown.
67812
67813         Fix porting problem for iswctype reported by Georg Schwarz in:
67814         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
67815         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
67816         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
67817         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
67818         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
67819
67820 2006-12-03  Jim Meyering  <jim@meyering.net>
67821
67822         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
67823         p->fts_statp may not yet be defined.
67824         (fts_read): Instead, set it in the caller, once p->fts_statp is
67825         sure to be defined, and corresponds to a top-level directory.
67826         This bug made du -x fail.  Here's the coreutils test case:
67827         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
67828         Reported by Mike Frysinger.
67829
67830 2006-12-01  Jim Meyering  <jim@meyering.net>
67831
67832         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
67833         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
67834         Reported by Simon Josefsson.
67835
67836 2006-11-30  Jim Meyering  <jim@meyering.net>
67837
67838         * m4/warning.m4: Use the all-permissive copyright notice
67839         recommended by RMS (rather than LGPL).
67840         * m4/vararrays.m4: Likewise.
67841         * m4/flexmember.m4: Likewise.
67842
67843 2006-11-29  Bruno Haible  <bruno@clisp.org>
67844
67845         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67846         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
67847         using +=.
67848         Reported by Simon Josefsson <simon@josefsson.org>.
67849
67850 2006-11-28  James Youngman <jay@gnu.org>
67851
67852         * README: Advise users that they might find the bug-gnulib@gnu.org
67853         and autotools-announce@gnu.org mailing lists useful.
67854
67855 2006-11-28  Bruno Haible  <bruno@clisp.org>
67856
67857         * m4/ptrdiff_max.m4: Remove file.
67858
67859 2006-11-21  Bruno Haible  <bruno@clisp.org>
67860
67861         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
67862         _AC_COMPUTE_INT.
67863         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67864         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
67865         _AC_COMPUTE_INT.
67866         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67867         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
67868         _AC_COMPUTE_INT.
67869         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67870
67871 2006-11-28  Jim Meyering  <jim@meyering.net>
67872
67873         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
67874         warning from "gcc -Wshadow" about shadowing the builtin.
67875
67876 2006-11-27  Bruno Haible  <bruno@clisp.org>
67877
67878         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
67879         _AC_COMPUTE_INT.
67880         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
67881
67882 2006-11-27  Bruno Haible  <bruno@clisp.org>
67883             Paul Eggert  <eggert@cs.ucla.edu>
67884
67885         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
67886
67887 2006-11-26  Bruno Haible  <bruno@clisp.org>
67888
67889         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
67890         noinst_LTLIBRARIES.
67891
67892 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
67893             Bruno Haible  <bruno@clisp.org>
67894
67895         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
67896         if compiling with "gcc -ansi".
67897
67898 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
67899
67900         Fix some incompatibilities with gcc -ansi -pedantic.
67901         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
67902         if compiling pedantically with GCC, unless it's C99 or later.
67903         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
67904         it mishandles gcc -ansi -pedantic as well.
67905         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
67906         if gcc -pedantic.
67907         * lib/regexec.c (check_node_accept_bytes): Don't use auto
67908         initializers for struct if -pedantic, unless it's C99 or later.
67909
67910 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
67911
67912         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
67913         Don't close an fd more than once. Identical atimes indicate
67914         success, not failure.
67915
67916 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
67917
67918         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
67919
67920 2006-11-23  Jim Meyering  <jim@meyering.net>
67921
67922         * build-aux/announce-gen: New file.  From coreutils.
67923
67924 2006-11-22  Jim Meyering  <jim@meyering.net>
67925
67926         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
67927         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
67928         (fts_read): Use a temporary to narrow the overused st_size member
67929         before using it in a switch statement.  Reported by Matthew Woehlke.
67930
67931         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
67932         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
67933
67934 2006-11-20  Bruno Haible  <bruno@clisp.org>
67935
67936         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
67937         changequote instead of pairs of brackets.
67938         Reported by Andreas Schwab <schwab@suse.de>.
67939
67940 2006-11-21  Jim Meyering  <jim@meyering.net>
67941
67942         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
67943         so as to remain compatible with older compilers.
67944         Patch from Michael Deutschmann.
67945
67946 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67947
67948         * MODULES.html.sh (File system functions): Add openat.
67949
67950         * lib/openat.h (rpl_fstatat): New macro, if
67951         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
67952         (fstatat): Define to rpl_fstatat under the same conditions,
67953         unless COMPILING_FSTATAT.
67954         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
67955         seems to have the bug.
67956         * lib/fstatat.c: New file.
67957         * modules/openat (Files): Add it.
67958
67959 2006-11-20  Bruno Haible  <bruno@clisp.org>
67960
67961         * Makefile: New file.
67962
67963 2006-11-20  Jim Meyering  <jim@meyering.net>
67964
67965         The beginnings of syntax-related checks for gnulib.
67966         * lib/Makefile: New file.
67967         * lib/t-idcache: New script.  Ensure that the two halves of
67968         idcache.c stay in sync.
67969
67970         * lib/idcache.c: Adjust comments in user- and group- portions to
67971         be more accurate, and to be consistent with one another.
67972
67973 2006-11-20  Jim Meyering  <jim@meyering.net>
67974
67975         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
67976         continue using the flexible array member (thus, this module performs
67977         half as many malloc calls), with the addition that...
67978         (getgroup, getuser): Consistently record a non-match via an empty
67979         "name" string, and map an empty string match to a NULL return value.
67980         * modules/idcache (Depends-on): Re-add flexmember.
67981
67982         * lib/idcache.c (getuser): Remove all uses of the register keyword.
67983         (getuidbyname, getgroup, getgidbyname): Likewise.
67984
67985         Use cleaner syntax: NULL rather than 0.
67986         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
67987
67988 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
67989
67990         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
67991         It mishandled the case where the group was missing.
67992         Problem reported by Greg Schafer.
67993         * modules/idcache: Likewise.
67994
67995 2006-11-18  Jim Meyering  <jim@meyering.net>
67996
67997         * check-module (%exempt_header): Add exception for some
67998         conditionally-included headers.
67999
68000         * modules/i-ring (Depends-on): Add verify.
68001         (License): Change to LGPL.
68002
68003 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
68004
68005         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
68006         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
68007         and inttostr.h.  Use snprintf rather than uinttostr, so that
68008         LGPLed code doesn't depend on GPLed.
68009
68010 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
68011
68012         * modules/inline (License): Change from GPL to LGPL.
68013
68014 2006-11-17  Jim Meyering  <jim@meyering.net>
68015
68016         * modules/d-type (License): Switch to LGPL.
68017
68018 2006-11-15  Bruno Haible  <bruno@clisp.org>
68019
68020         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
68021
68022 2006-11-15  Eric Blake  <ebb9@byu.net>
68023
68024         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
68025         the module dependency.
68026
68027 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
68028             Bruno Haible  <bruno@clisp.org>
68029
68030         * gnulib-tool (func_create_testdir): Add license consistency check.
68031
68032 2006-11-15  Eric Blake  <ebb9@byu.net>
68033
68034         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
68035         random "(cached)" in configure output.
68036
68037 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68038
68039         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
68040         test for conforming inttypes.h is both announced and cached.
68041
68042         * MODULES.html.sh (seen_modules, seen_files): New variables.
68043         (func_module): Rewrite to use a few less gnulib-tool and sed
68044         invocations.  Avoid a couple of quadratic algorithms for ...
68045         (missed_modules, missed_files): ... these, with ...
68046         (func_append, func_tmpdir): ... these new functions, from
68047         gnulib-tool.  Analogously, install traps for cleanup.
68048
68049         * tests/test-gc.c (main): Remove unused variables.
68050         * tests/test-read-file.c: Include stdlib.h, for 'free'.
68051
68052 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
68053
68054         * modules/inttostr (License): Change to LGPL.
68055
68056 2006-11-14  Eric Blake  <ebb9@byu.net>
68057
68058         * modules/tempname (License): Change to LGPL.
68059
68060 2006-11-14  Eric Blake  <ebb9@byu.net>
68061
68062         * doc/functions.texi (Function Portability): *printf functions on
68063         Cygwin now understand all POSIX size specifiers.
68064
68065 2006-11-14  Bruno Haible  <bruno@clisp.org>
68066
68067         * modules/c-ctype (License): Change to LGPL.
68068
68069 2006-11-12  Bruno Haible  <bruno@clisp.org>
68070
68071         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
68072         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
68073         for GNOME libraries, for which the include files are installed in
68074         subdirectories of $prefix/include.
68075
68076 2006-11-12  Bruno Haible  <bruno@clisp.org>
68077
68078         * m4/lib-link.m4: Require at least autoconf-2.54.
68079         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
68080         name to underscores for the --with option.
68081
68082 2006-11-13  Bruno Haible  <bruno@clisp.org>
68083
68084         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
68085         the tests directory.
68086         Reported by Ralf Wildenhues.
68087
68088 2006-11-13  Bruno Haible  <bruno@clisp.org>
68089
68090         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
68091         (func_emit_initmacro_end): Undo the override here.
68092         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
68093         Works around the famous automake error in coreutils.
68094
68095 2006-11-13  Eric Blake  <ebb9@byu.net>
68096
68097         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
68098         element, not its node.
68099
68100 2006-11-12  Bruno Haible  <bruno@clisp.org>
68101
68102         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
68103         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
68104
68105 2006-11-12  Bruno Haible  <bruno@clisp.org>
68106
68107         * gnulib-tool: New option --local-symlink.
68108         (func_usage): Document it.
68109         (lsymbolic): New variable.
68110         (func_import, func_create_testdir): If --symlink was not specified,
68111         test whether --local-symlink was specified and the file comes from
68112         the local_gnulib_dir.
68113
68114 2006-11-12  Bruno Haible  <bruno@clisp.org>
68115
68116         * gnulib-tool (func_ln): New function.
68117         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
68118
68119 2006-11-12  Bruno Haible  <bruno@clisp.org>
68120
68121         Finish support for source files in subdirectories.
68122         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
68123         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
68124         AUTOMAKE_OPTIONS.
68125         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
68126
68127 2006-11-12  Bruno Haible  <bruno@clisp.org>
68128
68129         * gnulib-tool (func_get_automake_snippet): Synthesize also an
68130         EXTRA_lib_SOURCES augmentation.
68131         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
68132
68133 2006-11-12  Jim Meyering  <jim@meyering.net>
68134
68135         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
68136         file descriptors.  This also averts a failure on systems with
68137         native openat support when a traversed directory lacks "x" access.
68138         * lib/fts_.h: Include "i-ring.h"
68139         (struct FTS) [fts_fd_ring]: New member.
68140         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
68141         (FCHDIR): Add parentheses.
68142         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
68143         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
68144         When descending, rather than simply closing the previous
68145         fts_cwd_fd value, push that file descriptor onto the ring.
68146         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
68147         (fts_open): Initialize the new fd_ring member.
68148         (fts_close): Clear the ring.
68149         (fts_safe_changedir): When possible, use our new fd_ring to skip
68150         the diropen and fstat and dev/ino comparison that would normally
68151         accompany a virtual `chdir ("..")'.
68152
68153         * modules/fts (Depends-on): Add i-ring.
68154         * modules/i-ring: New module.
68155         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
68156         * m4/i-ring.m4: New file.
68157
68158 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68159
68160         * gnulib-tool (func_create_testdir): Fix replacement of
68161         `build-aux' in configure.ac.  Run autotools in gltests
68162         subdirectory.
68163         (func_create_testdir, func_create_megatestdir, test): There is
68164         no need for '--force' in most autotool invocations in a new
68165         tree.  Actually fail the whole test if any of the tools, or the
68166         configure or make stages fail.
68167
68168         Sync from Automake.
68169         * build-aux/gnupload: Revert last change.  Add pointer to upload
68170         instructions of the GNU Maintenance Instructions.
68171         Suggestion by Karl Berry.
68172
68173 2006-11-10  Jim Meyering  <jim@meyering.net>
68174
68175         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
68176
68177 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68178
68179         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
68180         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
68181         (bind_textdomain_codeset) [! ENABLE_NLS]:
68182         Evaluate all the arguments.  That way, callers get compatible behavior
68183         if the arguments have side effects.  Also, it avoids some GCC
68184         diagnostics in some cases; Joel E. Denny reported problems when Bison
68185         was configured with --enable-gcc-warnigs.
68186
68187 2006-11-10  Jim Meyering  <jim@meyering.net>
68188
68189         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
68190         relevant options in CFLAGS (like -O, -fno-inline) are taken into
68191         account.
68192
68193 2006-11-10  Jim Meyering  <jim@meyering.net>
68194
68195         * modules/inline: New file/module.
68196         * modules/xalloc (Files): Remove m4/inline.m4.
68197         (Depends-on): Add inline, instead.
68198         * modules/oset: Likewise.
68199         * modules/list: Likewise.
68200
68201 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
68202
68203         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
68204         Problem reported by Matthew Woehlke.
68205
68206 2006-11-09  Bruno Haible  <bruno@clisp.org>
68207
68208         * lib/tempname.c (gen_tempname): Remove variant that invokes
68209         __gen_tempname.
68210         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
68211         __gen_tempname.
68212
68213 2006-11-08  Bruno Haible  <bruno@clisp.org>
68214
68215         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
68216         to 'yes' instead of 'cross-compiling'.
68217
68218 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
68219
68220         * lib/quotearg.h (quotearg_free): New decl.
68221         * lib/quotearg.c (quotearg_free): New function.
68222         (slot0, nslots, slotvec0, slotvec):
68223         Now file-scope so that quotearg_free can get at them.
68224
68225 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68226
68227         Sync from Automake.
68228         * build-aux/gnupload: Add missing 'gnu' to example URL.
68229         Report by Karl Berry.
68230
68231 2006-11-08  Bruno Haible  <bruno@clisp.org>
68232
68233         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
68234         Suggested by Paul Eggert.
68235
68236 2006-11-08  Jim Meyering  <jim@meyering.net>
68237
68238         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
68239         It's already included if !_LIBC.
68240         (fts_safe_changedir): Add a comment.
68241
68242 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
68243
68244         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
68245         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
68246         Matthew Woehlke.
68247
68248         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
68249         definitions up, to avoid colliding with change below.
68250         (static_inline) [HAVE_INLINE]: New macro.
68251         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
68252         Provide extern decls when !HAVE_INLINE.  Do not define unless
68253         static_inline is defined, either by us or by xmalloc.c.  Use
68254         static_inline rather than static inline.
68255         (XCALLOC): Optimize sizeof(T) = 1 case.
68256         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
68257
68258 2006-11-07  Bruno Haible  <bruno@clisp.org>
68259
68260         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
68261         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
68262         AC_C_INLINE.
68263         * modules/xalloc (Files): Add m4/inline.m4.
68264
68265 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68266
68267         * README: Fix typo.
68268         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
68269         (Miscellanous Notes): ...from this.
68270
68271 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
68272
68273         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
68274         Mention that offsetof should be used instead of sizeof.
68275         From Bruno Haible.
68276
68277 2006-11-07  Bruno Haible  <bruno@clisp.org>
68278
68279         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
68280
68281 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
68282
68283         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
68284         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
68285         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
68286         (gl_tree_add_before, gl_tree_add_after):
68287         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
68288         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
68289         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
68290         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
68291         (gl_linked_add_after, gl_linked_add_at): Likewise.
68292         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
68293         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
68294         (gl_tree_add_before, gl_tree_add_after): Likewise.
68295         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
68296         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
68297         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
68298
68299 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68300
68301         * lib/gl_oset.h: Use C comment style, not C++ comment style.
68302
68303 2006-11-06  Bruno Haible  <bruno@clisp.org>
68304
68305         * m4/inline.m4: New file.
68306         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
68307         * modules/list (Files): Add m4/inline.m4.
68308         * modules/oset (Files): Likewise.
68309
68310 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
68311
68312         * lib/idcache.c: Include <stddef.h>, for offsetof.
68313         (struct userid.name): Change from char * to a flexible array member.
68314         All uses changed.
68315         * modules/idcache (Depends-on): Add flexmember.
68316
68317         * MODULES.html.sh (Core language properties): New module flexmember.
68318         * modules/flexmember, m4/flexmember.m4: New files.
68319
68320         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
68321         inline functions that are identical with the old xnmalloc_inline,
68322         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
68323         that we can avoid some unnecessary integer multiplications and
68324         divisions in the common case where the element size is known at
68325         compile time.
68326         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
68327         needed.
68328         (xnboundedmalloc): Remove.
68329         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
68330         arguments, for consistency with rest of this header.
68331         (xcharalloc): Rewrite using XNMALLOC.
68332         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
68333         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
68334         versions have been moved to lib/xalloc.h and renamed to be the
68335         non-*_inline versions.
68336         (xmalloc, xrealloc): Implement without reference to the xnmalloc
68337         and xnrealloc functions, since those functions are now inline and
68338         now call us.
68339         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
68340         renaming described above.
68341         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
68342         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
68343         captures the dependency in AC_C_INLINE.
68344
68345         New module canonicalize-lgpl, proposed by Charles Wilson in
68346         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
68347         with a few small changes afterwards.
68348         * MODULES.html.sh (File system functions): New module
68349         canonicalize-lgpl.
68350         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
68351         and canonicalize_file_name.
68352         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
68353         * modules/canonicalize-lgpl: New files.
68354
68355 2006-11-05  Bruno Haible  <bruno@clisp.org>
68356
68357         * gnulib-tool (func_import, func_create_testdir): Create directories
68358         also for files in subdirectories of lib/.
68359
68360 2006-11-05  Bruno Haible  <bruno@clisp.org>
68361
68362         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
68363         ANSI C compliant.
68364
68365 2006-11-03  Bruno Haible  <bruno@clisp.org>
68366
68367         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
68368         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
68369         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
68370         (xnboundedmalloc): New inline function.
68371         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
68372         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
68373         xmalloc.
68374         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
68375         xmalloc.
68376         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
68377         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
68378         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
68379         xmalloc.
68380         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
68381         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
68382         xmalloc.
68383         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
68384         gl_tree_add_after): Use XMALLOC instead of xmalloc.
68385         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
68386         xmalloc.
68387         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
68388         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
68389         gl_tree_add_after): Use XMALLOC instead of xmalloc.
68390         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
68391         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
68392         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
68393         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
68394
68395 2006-11-03  Bruno Haible  <bruno@clisp.org>
68396
68397         * lib/c-ctype.h [C++]: Define functions without name mangling.
68398         * lib/fwriteerror.h [C++]: Likewise.
68399         * lib/gcd.h [C++]: Likewise.
68400         * lib/linebreak.h [C++]: Likewise.
68401
68402 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
68403
68404         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
68405         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
68406         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
68407         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
68408         Check for functions and headers just once.
68409         Check for declaration of canonicalize_file_name.
68410         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
68411
68412 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68413
68414         * gnulib-tool (func_import): Fix typo in actioncmd.
68415
68416 2006-11-02  Bruno Haible  <bruno@clisp.org>
68417
68418         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
68419         newline sequence in the Makefile.am snippet as a space, like "make"
68420         does.
68421         Reported by Roger Persson <perrog@gmail.com>.
68422
68423 2006-11-01  Bruno Haible  <bruno@clisp.org>
68424
68425         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
68426         already declared in <string.h>.
68427         * lib/strcase.h (strncasecmp): Don't declare it if yes.
68428
68429 2006-11-01  Bruno Haible  <bruno@clisp.org>
68430
68431         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
68432         * lib/strcase.h: Include <string.h>.
68433         (strcasecmp): Define to rpl_strcasecmp here.
68434
68435 2006-11-01  Bruno Haible  <bruno@clisp.org>
68436
68437         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
68438
68439 2006-11-01  Eric Blake  <ebb9@byu.net>
68440
68441         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
68442
68443         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
68444
68445 2006-10-29  Bruno Haible  <bruno@clisp.org>
68446
68447         Make it compile in C++ mode.
68448         * lib/full-write.c (full_rw): Add a cast.
68449
68450 2006-11-01  Bruno Haible  <bruno@clisp.org>
68451
68452         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
68453         be POSIX compliant.
68454         Reported by Roger Persson <perrog@gmail.com>.
68455
68456 2006-11-01  Eric Blake  <ebb9@byu.net>
68457
68458         * lib/getopt_.h: Fix comments.
68459
68460 2006-10-31  Eric Blake  <ebb9@byu.net>
68461
68462         * modules/tmpdir (Depends-on): Add sys_stat.
68463         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
68464         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
68465         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
68466         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
68467         tempname.
68468
68469 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
68470
68471         Avoid some C++ diagnostics reported by Bruno Haible.
68472         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
68473         xmalloc.
68474         (quotearg_alloc): Use xcharalloc rather than xmalloc.
68475         (struct slotvec): Move to top level.
68476         (quotearg_n_options): Rewrite to avoid xmalloc.
68477         * lib/xalloc.h (xcharalloc): New function.
68478         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
68479         [defined __cplusplus]: Add function template that provides result
68480         type propagation.  This part of the change is from Bruno Haible.
68481
68482 2006-10-29  Bruno Haible  <bruno@clisp.org>
68483
68484         Make it compile in C++ mode.
68485         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
68486         * lib/strnlen1.c (strnlen1): Cast memchr result.
68487         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
68488         * lib/clean-temp.c (string_equals, string_hash): Add casts.
68489         (create_temp_dir): Rename local variable 'template'.
68490         (compile_csharp_using_sscli): Add cast.
68491         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
68492         * lib/findprog.c (find_in_path): Likewise.
68493         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
68494         * lib/wait-process.c (register_slave_subprocess): Likewise.
68495
68496 2006-10-22  Bruno Haible  <bruno@clisp.org>
68497
68498         * modules/tsearch: New file.
68499         * lib/tsearch.h: New file.
68500         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
68501         * m4/tsearch.m4: New file.
68502         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
68503
68504 2006-10-29  Eric Blake  <ebb9@byu.net>
68505
68506         * lib/arcfour.c: Assume config.h.
68507         * lib/arctwo.c: Likewise.
68508         * lib/base64.c: Likewise.
68509         * lib/check-version.c: Likewise.
68510         * lib/crc.c: Likewise.
68511         * lib/des.c: Likewise.
68512         * lib/gc-gnulib.c: Likewise.
68513         * lib/gc-libgcrypt.c: Likewise.
68514         * lib/gc-pbkdf2-sha1.c: Likewise.
68515         * lib/getaddrinfo.c: Likewise.
68516         * lib/getdelim.c: Likewise.
68517         * lib/getline.c: Likewise.
68518         * lib/hmac-md5.c: Likewise.
68519         * lib/hmac-sha1.c: Likewise.
68520         * lib/iconvme.c: Likewise.
68521         * lib/md2.c: Likewise.
68522         * lib/md4.c: Likewise.
68523         * lib/memxor.c: Likewise.
68524         * lib/read-file.c: Likewise.
68525         * lib/readline.c: Likewise.
68526         * lib/rijndael-alg-fst.c: Likewise.
68527         * lib/rijndael-api-fst.c: Likewise.
68528         * lib/xgetdomainname.c: Likewise.
68529
68530 2006-10-28  Eric Blake  <ebb9@byu.net>
68531
68532         * lib/xstrndup.c: Assume config.h.
68533
68534 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
68535
68536         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
68537         stat-macros.h is now for our own macros, whereas stat_h is for
68538         macros in the <sys/stat.h> name space.
68539         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
68540         (STAT_MACROS_H): Remove.
68541         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
68542         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
68543         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
68544         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
68545         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
68546         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
68547         Move these macros to ...
68548         * lib/stat_.h: here.  Don't include stat-macros.h.
68549         * lib/canonicalize.c: Don't include stat-macros.h.
68550         * lib/chown.c: Likewise.
68551         * lib/euidaccess.c: Likewise.
68552         * lib/file-type.c: Likewise.
68553         * lib/filemode.c: Likewise.
68554         * lib/glob.c: Likewise.
68555         * lib/isapipe.c: Likewise.
68556         * lib/lchown.c: Likewise.
68557         * lib/lstat.c: Likewise.
68558         * lib/mkdir-p.c: Likewise.
68559         * lib/rmdir.c: Likewise.
68560         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
68561         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
68562         unless mkdir isn't declared, to speed up 'configure'.
68563         Always create sys/stat.h, since it's unlikely any real sys/stat.h
68564         would define all the S_* symbols.
68565         * modules/canonicalize (Depends-on):
68566         Depend on sys_stat, not stat-macros.
68567         * modules/chown: Likewise.
68568         * modules/euidaccess: Likewise.
68569         * modules/filemode: Likewise.
68570         * modules/file-type: Likewise.
68571         * modules/glob: Likewise.
68572         * modules/isapipe: Likewise.
68573         * modules/lchown: Likewise.
68574         * modules/lstat: Likewise.
68575         * modules/mkancesdirs: Likewise.
68576         * modules/rmdir: Likewise.
68577         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
68578         * modules/modechange: Likewise.
68579         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
68580         (configure.ac): Remove gl_STAT_MACROS.
68581         * modules/sys_stat (Depends-on): Remove stat-macros.
68582
68583 2006-10-27  Bruno Haible  <bruno@clisp.org>
68584
68585         * m4/signed.m4: Remove file.
68586         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
68587         invocation.
68588         * modules/vasnprintf (Files): Remove m4/signed.m4.
68589
68590 2006-10-27  Bruno Haible  <bruno@clisp.org>
68591
68592         Update to GNU gettext 0.16.
68593         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
68594         m4/inttypes-h.m4, m4/signed.m4.
68595         * m4/gettext.m4: Update to GNU gettext 0.16.
68596         * m4/intl.m4: New file, from GNU gettext.
68597         * m4/intldir.m4: New file, from GNU gettext.
68598         * config/srclist.txt: Update
68599
68600 2006-10-27  Eric Blake  <ebb9@byu.net>
68601
68602         * MODULES.html.sh: Document tempname.
68603         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
68604         dependencies.
68605         (Files): Move lib/tempname.c...
68606         * modules/tempname: ...to this new module.
68607         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
68608         (gl_PREREQ_TEMPNAME): Move...
68609         * m4/tempname.m4: ...to this new file.
68610         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
68611         * modules/sys_stat (Depends-on): Add stat-macros.
68612         * lib/stat_.h (includes): Pick up stat macros.
68613         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
68614         if stat macros are broken.
68615         * lib/tempname.c (includes): No need to include "stat-macros.h".
68616         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
68617         (direxists, __path_search) [!_LIBC]: Don't compile these in
68618         gnulib; the tmpdir module covers that.
68619         * lib/tempname.h: New file.
68620
68621 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
68622
68623         * COPYING: Explain how gnulib-tool converts licence headers.
68624         Almost all wording by Eric Blake.
68625
68626 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
68627
68628         * lib/mbchar.h (is_basic_table): Make read-only.
68629         * lib/mbchar.c (is_basic_table): Likewise.
68630         Reported by John Darrington.
68631
68632 2006-10-25  Bruno Haible  <bruno@clisp.org>
68633
68634         * lib/progname.h (set_program_name): Undefine before defining.
68635
68636 2006-10-25  Bruno Haible  <bruno@clisp.org>
68637
68638         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
68639         false for non-gcc C++ compilers.
68640         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
68641
68642 2006-10-24  Bruno Haible  <bruno@clisp.org>
68643
68644         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
68645         iconv implementations like Irix iconv.
68646
68647 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68648
68649         * modules/vararrays: New file.
68650         * m4/vararrays.m4: New file, taken from diffutils.
68651         * MODULES.html.sh: New module vararrays.
68652
68653 2006-10-24  Karl Berry  <karl@gnu.org>
68654
68655         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
68656         Don't call GNU Unix.
68657
68658 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68659
68660         * users.txt: Add Libtool.
68661
68662         Sync from Libtool:
68663
68664         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68665
68666         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
68667         to gnulib's policy of including config.h unconditionally.
68668
68669 2006-10-24  Bruno Haible  <bruno@clisp.org>
68670
68671         * modules/wcwidth (Files): Add m4/wint_t.m4.
68672         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
68673         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
68674
68675 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
68676
68677         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
68678         to pacify GCC with some -W flags enabled.  Problem reported by
68679         Bruno Haible.
68680
68681 2006-10-24  Jim Meyering  <jim@meyering.net>
68682
68683         * MODULES.html.sh: Remove uinttostr.  It's not a module.
68684         Reported by Karl Berry.
68685
68686 2006-10-23  Bruno Haible  <bruno@clisp.org>
68687
68688         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
68689
68690 2006-10-24  Bruno Haible  <bruno@clisp.org>
68691
68692         * lib/gl_list.h: Use C comment style, not C++ comment style.
68693
68694 2006-10-23  Eric Blake  <ebb9@byu.net>
68695
68696         * lib/getaddrinfo.c (includes): Add missing include.
68697
68698 2006-10-23  Bruno Haible  <bruno@clisp.org>
68699             Paul Eggert  <eggert@cs.ucla.edu>
68700
68701         Ability to rename obstack_free.
68702         * lib/obstack.h (__obstack_free): New macro. Declare instead of
68703         obstack_free.
68704         (obstack_free): Invoke the __obstack_free macro.
68705         * lib/obstack.c (obstack_free): Use __obstack_free macro.
68706
68707 2006-10-23  Bruno Haible  <bruno@clisp.org>
68708             Paul Eggert  <eggert@cs.ucla.edu>
68709
68710         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
68711         __argc, __argv from the declaration. (They are defined as macros on
68712         mingw.)
68713
68714 2006-10-22  Bruno Haible  <bruno@clisp.org>
68715
68716         * doc/gnulib-intro.texi: New file.
68717         * doc/gnulib.texi: Include it.
68718
68719 2006-10-21  Bruno Haible  <bruno@clisp.org>
68720
68721         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
68722         "Introduction", "Miscellanous Notes", "Particular Modules".
68723
68724 2006-10-21  Bruno Haible  <bruno@clisp.org>
68725
68726         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
68727         Change mostlyclean-local rule to avoid sh syntax error from bash
68728         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
68729
68730 2006-10-23  Jim Meyering  <jim@meyering.net>
68731
68732         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
68733         in place of snprintf.
68734
68735         * modules/inttostr (Files): Add lib/uinttostr.c.
68736         * lib/uinttostr.c (inttostr): New file/function.
68737         * lib/inttostr.h (uinttostr): Declare.
68738         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
68739         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
68740         Add uinttostr.
68741         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
68742
68743 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
68744
68745         * lib/canonicalize.c (ELOOP): Define if not already defined.
68746         Problem reported by Bruno Haible in
68747         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
68748
68749 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
68750
68751         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
68752         Problem reported by Perry Smith and Ville Laurikari.
68753
68754         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
68755         uses.
68756
68757 2006-10-19  Bruno Haible  <bruno@clisp.org>
68758
68759         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
68760         for mingw.
68761
68762 2006-10-19  Bruno Haible  <bruno@clisp.org>
68763
68764         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
68765         Needed for mingw.
68766
68767 2006-10-19  Bruno Haible  <bruno@clisp.org>
68768
68769         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
68770
68771 2006-10-19  Bruno Haible  <bruno@clisp.org>
68772
68773         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
68774         it.
68775
68776 2006-10-19  Bruno Haible  <bruno@clisp.org>
68777
68778         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
68779         invocation.
68780
68781 2006-10-19  Bruno Haible  <bruno@clisp.org>
68782
68783         * gnulib-tool (func_create_testdir): Don't include ftruncate and
68784         mountlist by default.
68785
68786 2006-10-16  Bruno Haible  <bruno@clisp.org>
68787
68788         * lib/c-strstr.c: Include c-strstr.h.
68789
68790 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
68791
68792         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
68793         in a slash.
68794
68795 2006-10-18  Bruno Haible  <bruno@clisp.org>
68796
68797         * lib/lock.h [C++]: Wrap definitions in extern "C".
68798
68799 2006-10-18  Bruno Haible  <bruno@clisp.org>
68800
68801         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
68802         gl_LIBOBJS list.
68803
68804 2006-10-18  Bruno Haible  <bruno@clisp.org>
68805
68806         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
68807
68808 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
68809
68810         * lib/xstrtol.h: Include gettext.h.
68811         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
68812         Problem reported by Eric Blake.
68813         * modules/xstrtol (Depends-on): Add gettext-h.
68814
68815 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
68816
68817         * lib/strftime.c (advance): New macro.
68818         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
68819         incomplete type, so you can't add 0 to it.  Problem and patch
68820         reported by Eelco Dolstra for dietlibc.
68821
68822 2006-10-18  Jim Meyering  <jim@meyering.net>
68823
68824         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
68825         type for a local, and rename it: s/up/user_proc/.
68826
68827 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
68828
68829         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
68830         READ_UTMP_USER_PROCESS.
68831         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
68832
68833 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
68834
68835         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
68836         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
68837
68838 2006-10-17  Eric Blake  <ebb9@byu.net>
68839
68840         * lib/sigprocmask.c (sigprocmask): Fix typo.
68841
68842         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
68843
68844         * modules/clean-temp (Makefile.am): Don't add to make output...
68845         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
68846         config.h.
68847
68848 2006-10-17  Bruno Haible  <bruno@clisp.org>
68849
68850         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
68851         differently if DEFAULT_TEXT_DOMAIN is set.
68852
68853 2006-10-16  Bruno Haible  <bruno@clisp.org>
68854
68855         * lib/clean-temp.c: Include fwriteerror.h.
68856
68857 2006-10-16  Bruno Haible  <bruno@clisp.org>
68858
68859         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
68860
68861 2006-10-16  Bruno Haible  <bruno@clisp.org>
68862
68863         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
68864         * lib/sigprocmask.h: Include <sys/types.h>.
68865         (sigset_t): Use the system's definition if present.
68866
68867 2006-10-17  Eric Blake  <ebb9@byu.net>
68868
68869         * lib/xvasprintf.c (includes): Assume config.h.
68870         * lib/xasprintf.c (includes): Likewise.
68871
68872 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
68873
68874         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
68875         at least as wide as intmax_t.
68876
68877 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
68878
68879         (Imported from Automake.)
68880         * build-aux/gnupload: Update to version 1.1 of directive file.
68881
68882 2006-10-16  Eric Blake  <ebb9@byu.net>
68883
68884         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
68885         match Automake 1.10a.
68886
68887 2006-10-14  Bruno Haible  <bruno@clisp.org>
68888
68889         * modules/sigprocmask: New file.
68890         * lib/sigprocmask.h: New file.
68891         * lib/sigprocmask.c: New file.
68892         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
68893         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
68894         request sigprocmask.o.
68895         (gl_PREREQ_SIGPROCMASK): New macro.
68896         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
68897         (Depends-on): Add sigprocmask.
68898         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
68899         gt_SIGNALBLOCKING. Test for 'raise' only once.
68900         * lib/fatal-signal.c: Include sigprocmask.h.
68901         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
68902         unblock_fatal_signals): Define always.
68903         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
68904         sigprocmask.
68905
68906 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
68907
68908         Sync from Automake.
68909         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
68910         which incorrectly sets the mode of an existing destination
68911         directory.  In some cases the unpatched install-sh could do the
68912         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
68913         system.  We hope this is rare in practice, but it's clearly worth
68914         fixing.  Problem reported by Alex Unleashed in
68915         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
68916         Also, don't bother to check for -m bugs unless we're using -m;
68917         suggested by Stepan Kasal.
68918
68919 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
68920
68921         Sync from Automake.
68922         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
68923         `-c' flag, so they appear at the same position as in %FASTDEP%
68924         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
68925         which ignores unknown options only after the first non-option.
68926         Bug report against M4 by Nelson H. F. Beebe.
68927
68928 2006-10-13  Jim Meyering  <jim@meyering.net>
68929
68930         Fix a bug in yesterday's change.
68931         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
68932         p->fts_statp->st_dev would be used uninitialized.
68933         Ensures that we always call fts_stat on the very first entry.
68934         Miklos Szeredi reported that find -xdev stopped working.
68935
68936 2006-10-12  Bruno Haible  <bruno@clisp.org>
68937
68938         * gnulib-tool (func_get_automake_snippet): Append an automatically
68939         computed EXTRA_DIST augmentation.
68940         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
68941         * modules/alloca-opt (Makefile.am): Likewise.
68942         * modules/allocsa (Makefile.am): Likewise.
68943         * modules/arcfour (Makefile.am): Likewise.
68944         * modules/arctwo (Makefile.am): Likewise.
68945         * modules/argmatch (Makefile.am): Likewise.
68946         * modules/argz (Makefile.am): Likewise.
68947         * modules/atexit (Makefile.am): Likewise.
68948         * modules/backupfile (Makefile.am): Likewise.
68949         * modules/byteswap (Makefile.am): Likewise.
68950         * modules/c-strtod (Makefile.am): Likewise.
68951         * modules/c-strtold (Makefile.am): Likewise.
68952         * modules/calloc (Makefile.am): Likewise.
68953         * modules/canon-host (Makefile.am): Likewise.
68954         * modules/canonicalize (Makefile.am): Likewise.
68955         * modules/chdir-long (Makefile.am): Likewise.
68956         * modules/chdir-safer (Makefile.am): Likewise.
68957         * modules/check-version (Makefile.am): Likewise.
68958         * modules/chown (Makefile.am): Likewise.
68959         * modules/cloexec (Makefile.am): Likewise.
68960         * modules/close-stream (Makefile.am): Likewise.
68961         * modules/closeout (Makefile.am): Likewise.
68962         * modules/crc (Makefile.am): Likewise.
68963         * modules/csharpexec (Makefile.am): Likewise.
68964         * modules/cycle-check (Makefile.am): Likewise.
68965         * modules/des (Makefile.am): Likewise.
68966         * modules/dev-ino (Makefile.am): Likewise.
68967         * modules/dirfd (Makefile.am): Likewise.
68968         * modules/dirname (Makefile.am): Likewise.
68969         * modules/dup2 (Makefile.am): Likewise.
68970         * modules/eealloc (Makefile.am): Likewise.
68971         * modules/error (Makefile.am): Likewise.
68972         * modules/euidaccess (Makefile.am): Likewise.
68973         * modules/exclude (Makefile.am): Likewise.
68974         * modules/exitfail (Makefile.am): Likewise.
68975         * modules/fcntl-safer (Makefile.am): Likewise.
68976         * modules/fcntl (Makefile.am): Likewise.
68977         * modules/file-type (Makefile.am): Likewise.
68978         * modules/fileblocks (Makefile.am): Likewise.
68979         * modules/filemode (Makefile.am): Likewise.
68980         * modules/filenamecat (Makefile.am): Likewise.
68981         * modules/fnmatch (Makefile.am): Likewise.
68982         * modules/fopen-safer (Makefile.am): Likewise.
68983         * modules/fpending (Makefile.am): Likewise.
68984         * modules/fprintftime (Makefile.am): Likewise.
68985         * modules/free (Makefile.am): Likewise.
68986         * modules/fsusage (Makefile.am): Likewise.
68987         * modules/ftruncate (Makefile.am): Likewise.
68988         * modules/fts (Makefile.am): Likewise.
68989         * modules/gc-arcfour (Makefile.am): Likewise.
68990         * modules/gc-des (Makefile.am): Likewise.
68991         * modules/gc-hmac-md5 (Makefile.am): Likewise.
68992         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
68993         * modules/gc-md4 (Makefile.am): Likewise.
68994         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
68995         * modules/gc-sha1 (Makefile.am): Likewise.
68996         * modules/gc (Makefile.am): Likewise.
68997         * modules/getaddrinfo (Makefile.am): Likewise.
68998         * modules/getcwd (Makefile.am): Likewise.
68999         * modules/getdelim (Makefile.am): Likewise.
69000         * modules/getdomainname (Makefile.am): Likewise.
69001         * modules/getgroups (Makefile.am): Likewise.
69002         * modules/gethostname (Makefile.am): Likewise.
69003         * modules/gethrxtime (Makefile.am): Likewise.
69004         * modules/getline (Makefile.am): Likewise.
69005         * modules/getloadavg (Makefile.am): Likewise.
69006         * modules/getlogin_r (Makefile.am): Likewise.
69007         * modules/getndelim2 (Makefile.am): Likewise.
69008         * modules/getopt (Makefile.am): Likewise.
69009         * modules/getpagesize (Makefile.am): Likewise.
69010         * modules/getpass-gnu (Makefile.am): Likewise.
69011         * modules/getpass (Makefile.am): Likewise.
69012         * modules/getsubopt (Makefile.am): Likewise.
69013         * modules/gettime (Makefile.am): Likewise.
69014         * modules/gettimeofday (Makefile.am): Likewise.
69015         * modules/getugroups (Makefile.am): Likewise.
69016         * modules/getusershell (Makefile.am): Likewise.
69017         * modules/glob (Makefile.am): Likewise.
69018         * modules/group-member (Makefile.am): Likewise.
69019         * modules/hard-locale (Makefile.am): Likewise.
69020         * modules/hash (Makefile.am): Likewise.
69021         * modules/hmac-md5 (Makefile.am): Likewise.
69022         * modules/hmac-sha1 (Makefile.am): Likewise.
69023         * modules/human (Makefile.am): Likewise.
69024         * modules/idcache (Makefile.am): Likewise.
69025         * modules/imaxabs (Makefile.am): Likewise.
69026         * modules/imaxdiv (Makefile.am): Likewise.
69027         * modules/inet_ntop (Makefile.am): Likewise.
69028         * modules/inet_pton (Makefile.am): Likewise.
69029         * modules/intprops (Makefile.am): Likewise.
69030         * modules/inttostr (Makefile.am): Likewise.
69031         * modules/inttypes (Makefile.am): Likewise.
69032         * modules/isapipe (Makefile.am): Likewise.
69033         * modules/javaversion (Makefile.am): Likewise.
69034         * modules/lchmod (Makefile.am): Likewise.
69035         * modules/lchown (Makefile.am): Likewise.
69036         * modules/localcharset (Makefile.am): Likewise.
69037         * modules/long-options (Makefile.am): Likewise.
69038         * modules/lstat (Makefile.am): Likewise.
69039         * modules/malloc (Makefile.am): Likewise.
69040         * modules/mathl (Makefile.am): Likewise.
69041         * modules/mbchar (Makefile.am): Likewise.
69042         * modules/md2 (Makefile.am): Likewise.
69043         * modules/md4 (Makefile.am): Likewise.
69044         * modules/md5 (Makefile.am): Likewise.
69045         * modules/memcasecmp (Makefile.am): Likewise.
69046         * modules/memchr (Makefile.am): Likewise.
69047         * modules/memcmp (Makefile.am): Likewise.
69048         * modules/memcoll (Makefile.am): Likewise.
69049         * modules/memcpy (Makefile.am): Likewise.
69050         * modules/memmem (Makefile.am): Likewise.
69051         * modules/memmove (Makefile.am): Likewise.
69052         * modules/mempcpy (Makefile.am): Likewise.
69053         * modules/memrchr (Makefile.am): Likewise.
69054         * modules/memset (Makefile.am): Likewise.
69055         * modules/memxor (Makefile.am): Likewise.
69056         * modules/mkancesdirs (Makefile.am): Likewise.
69057         * modules/mkdir-p (Makefile.am): Likewise.
69058         * modules/mkdir (Makefile.am): Likewise.
69059         * modules/mkdtemp (Makefile.am): Likewise.
69060         * modules/mkstemp (Makefile.am): Likewise.
69061         * modules/mktime (Makefile.am): Likewise.
69062         * modules/modechange (Makefile.am): Likewise.
69063         * modules/mountlist (Makefile.am): Likewise.
69064         * modules/nanosleep (Makefile.am): Likewise.
69065         * modules/obstack (Makefile.am): Likewise.
69066         * modules/openat (Makefile.am): Likewise.
69067         * modules/pagealign_alloc (Makefile.am): Likewise.
69068         * modules/pathmax (Makefile.am): Likewise.
69069         * modules/physmem (Makefile.am): Likewise.
69070         * modules/poll (Makefile.am): Likewise.
69071         * modules/posixtm (Makefile.am): Likewise.
69072         * modules/posixver (Makefile.am): Likewise.
69073         * modules/putenv (Makefile.am): Likewise.
69074         * modules/quote (Makefile.am): Likewise.
69075         * modules/quotearg (Makefile.am): Likewise.
69076         * modules/raise (Makefile.am): Likewise.
69077         * modules/read-file (Makefile.am): Likewise.
69078         * modules/readline (Makefile.am): Likewise.
69079         * modules/readlink (Makefile.am): Likewise.
69080         * modules/readtokens (Makefile.am): Likewise.
69081         * modules/readutmp (Makefile.am): Likewise.
69082         * modules/realloc (Makefile.am): Likewise.
69083         * modules/regex (Makefile.am): Likewise.
69084         * modules/rename-dest-slash (Makefile.am): Likewise.
69085         * modules/rename (Makefile.am): Likewise.
69086         * modules/rijndael (Makefile.am): Likewise.
69087         * modules/rmdir (Makefile.am): Likewise.
69088         * modules/rpmatch (Makefile.am): Likewise.
69089         * modules/safe-read (Makefile.am): Likewise.
69090         * modules/safe-write (Makefile.am): Likewise.
69091         * modules/same-inode (Makefile.am): Likewise.
69092         * modules/same (Makefile.am): Likewise.
69093         * modules/save-cwd (Makefile.am): Likewise.
69094         * modules/savedir (Makefile.am): Likewise.
69095         * modules/setenv (Makefile.am): Likewise.
69096         * modules/settime (Makefile.am): Likewise.
69097         * modules/sha1 (Makefile.am): Likewise.
69098         * modules/sig2str (Makefile.am): Likewise.
69099         * modules/snprintf (Makefile.am): Likewise.
69100         * modules/stat-macros (Makefile.am): Likewise.
69101         * modules/stat-time (Makefile.am): Likewise.
69102         * modules/stdbool (Makefile.am): Likewise.
69103         * modules/stdint (Makefile.am): Likewise.
69104         * modules/stdlib-safer (Makefile.am): Likewise.
69105         * modules/stpcpy (Makefile.am): Likewise.
69106         * modules/stpncpy (Makefile.am): Likewise.
69107         * modules/strcase (Makefile.am): Likewise.
69108         * modules/strcasestr (Makefile.am): Likewise.
69109         * modules/strchrnul (Makefile.am): Likewise.
69110         * modules/strcspn (Makefile.am): Likewise.
69111         * modules/strdup (Makefile.am): Likewise.
69112         * modules/strerror (Makefile.am): Likewise.
69113         * modules/strftime (Makefile.am): Likewise.
69114         * modules/strndup (Makefile.am): Likewise.
69115         * modules/strnlen (Makefile.am): Likewise.
69116         * modules/strpbrk (Makefile.am): Likewise.
69117         * modules/strsep (Makefile.am): Likewise.
69118         * modules/strstr (Makefile.am): Likewise.
69119         * modules/strtod (Makefile.am): Likewise.
69120         * modules/strtoimax (Makefile.am): Likewise.
69121         * modules/strtok_r (Makefile.am): Likewise.
69122         * modules/strtol (Makefile.am): Likewise.
69123         * modules/strtoll (Makefile.am): Likewise.
69124         * modules/strtoul (Makefile.am): Likewise.
69125         * modules/strtoull (Makefile.am): Likewise.
69126         * modules/strtoumax (Makefile.am): Likewise.
69127         * modules/strverscmp (Makefile.am): Likewise.
69128         * modules/sys_socket (Makefile.am): Likewise.
69129         * modules/sys_stat (Makefile.am): Likewise.
69130         * modules/sysexits (Makefile.am): Likewise.
69131         * modules/time_r (Makefile.am): Likewise.
69132         * modules/timegm (Makefile.am): Likewise.
69133         * modules/timespec (Makefile.am): Likewise.
69134         * modules/tmpfile-safer (Makefile.am): Likewise.
69135         * modules/trim (Makefile.am): Likewise.
69136         * modules/unistd-safer (Makefile.am): Likewise.
69137         * modules/unlinkdir (Makefile.am): Likewise.
69138         * modules/unlocked-io (Makefile.am): Likewise.
69139         * modules/userspec (Makefile.am): Likewise.
69140         * modules/utime (Makefile.am): Likewise.
69141         * modules/utimecmp (Makefile.am): Likewise.
69142         * modules/utimens (Makefile.am): Likewise.
69143         * modules/vasnprintf (Makefile.am): Likewise.
69144         * modules/vasprintf (Makefile.am): Likewise.
69145         * modules/vsnprintf (Makefile.am): Likewise.
69146         * modules/xalloc (Makefile.am): Likewise.
69147         * modules/xgetcwd (Makefile.am): Likewise.
69148         * modules/xnanosleep (Makefile.am): Likewise.
69149         * modules/xreadlink (Makefile.am): Likewise.
69150         * modules/xstrtod (Makefile.am): Likewise.
69151         * modules/xstrtol (Makefile.am): Likewise.
69152         * modules/xstrtold (Makefile.am): Likewise.
69153         * modules/yesno (Makefile.am): Likewise.
69154         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
69155
69156 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
69157
69158         * modules/error (Makefile.am): Distribute files through
69159         EXTRA_DIST, not lib_SOURCES.
69160
69161 2006-10-12  Eric Blake  <ebb9@byu.net>
69162
69163         * modules/error (Makefile.am): Distribute files in /lib.
69164         * modules/obstack (Makefile.am): Likewise.
69165
69166 2006-10-12  Bruno Haible  <bruno@clisp.org>
69167
69168         * modules/acl (Makefile.am): Distribute all files in lib/ through
69169         EXTRA_DIST.
69170         * modules/arcfour (Makefile.am): Likewise.
69171         * modules/arctwo (Makefile.am): Likewise.
69172         * modules/argmatch (Makefile.am): Likewise.
69173         * modules/argz (Makefile.am): Likewise.
69174         * modules/atexit (Makefile.am): Likewise.
69175         * modules/backupfile (Makefile.am): Likewise.
69176         * modules/c-strtod (Makefile.am): Likewise.
69177         * modules/c-strtold (Makefile.am): Likewise.
69178         * modules/calloc (Makefile.am): Likewise.
69179         * modules/canon-host (Makefile.am): Likewise.
69180         * modules/canonicalize (Makefile.am): Likewise.
69181         * modules/chdir-long (Makefile.am): Likewise.
69182         * modules/chdir-safer (Makefile.am): Likewise.
69183         * modules/check-version (Makefile.am): Likewise.
69184         * modules/chown (Makefile.am): Likewise.
69185         * modules/cloexec (Makefile.am): Likewise.
69186         * modules/close-stream (Makefile.am): Likewise.
69187         * modules/closeout (Makefile.am): Likewise.
69188         * modules/crc (Makefile.am): Likewise.
69189         * modules/cycle-check (Makefile.am): Likewise.
69190         * modules/des (Makefile.am): Likewise.
69191         * modules/dirfd (Makefile.am): Likewise.
69192         * modules/dirname (Makefile.am): Likewise.
69193         * modules/dup2 (Makefile.am): Likewise.
69194         * modules/euidaccess (Makefile.am): Likewise.
69195         * modules/exclude (Makefile.am): Likewise.
69196         * modules/exitfail (Makefile.am): Likewise.
69197         * modules/fcntl-safer (Makefile.am): Likewise.
69198         * modules/file-type (Makefile.am): Likewise.
69199         * modules/fileblocks (Makefile.am): Likewise.
69200         * modules/filemode (Makefile.am): Likewise.
69201         * modules/filenamecat (Makefile.am): Likewise.
69202         * modules/fnmatch (Makefile.am): Likewise.
69203         * modules/fopen-safer (Makefile.am): Likewise.
69204         * modules/fpending (Makefile.am): Likewise.
69205         * modules/fprintftime (Makefile.am): Likewise.
69206         * modules/free (Makefile.am): Likewise.
69207         * modules/fsusage (Makefile.am): Likewise.
69208         * modules/ftruncate (Makefile.am): Likewise.
69209         * modules/fts (Makefile.am): Likewise.
69210         * modules/gc (Makefile.am): Likewise.
69211         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
69212         * modules/getaddrinfo (Makefile.am): Likewise.
69213         * modules/getcwd (Makefile.am): Likewise.
69214         * modules/getdelim (Makefile.am): Likewise.
69215         * modules/getdomainname (Makefile.am): Likewise.
69216         * modules/getgroups (Makefile.am): Likewise.
69217         * modules/gethostname (Makefile.am): Likewise.
69218         * modules/gethrxtime (Makefile.am): Likewise.
69219         * modules/getline (Makefile.am): Likewise.
69220         * modules/getloadavg (Makefile.am): Likewise.
69221         * modules/getlogin_r (Makefile.am): Likewise.
69222         * modules/getopt (Makefile.am): Likewise.
69223         * modules/getpass (Makefile.am): Likewise.
69224         * modules/getpass-gnu (Makefile.am): Likewise.
69225         * modules/getsubopt (Makefile.am): Likewise.
69226         * modules/gettime (Makefile.am): Likewise.
69227         * modules/gettimeofday (Makefile.am): Likewise.
69228         * modules/getugroups (Makefile.am): Likewise.
69229         * modules/getusershell (Makefile.am): Likewise.
69230         * modules/glob (Makefile.am): Likewise.
69231         * modules/group-member (Makefile.am): Likewise.
69232         * modules/hard-locale (Makefile.am): Likewise.
69233         * modules/hash (Makefile.am): Likewise.
69234         * modules/hmac-md5 (Makefile.am): Likewise.
69235         * modules/hmac-sha1 (Makefile.am): Likewise.
69236         * modules/human (Makefile.am): Likewise.
69237         * modules/idcache (Makefile.am): Likewise.
69238         * modules/imaxabs (Makefile.am): Likewise.
69239         * modules/imaxdiv (Makefile.am): Likewise.
69240         * modules/inet_ntop (Makefile.am): Likewise.
69241         * modules/inet_pton (Makefile.am): Likewise.
69242         * modules/inttostr (Makefile.am): Likewise.
69243         * modules/isapipe (Makefile.am): Likewise.
69244         * modules/lchown (Makefile.am): Likewise.
69245         * modules/long-options (Makefile.am): Likewise.
69246         * modules/lstat (Makefile.am): Likewise.
69247         * modules/malloc (Makefile.am): Likewise.
69248         * modules/mathl (Makefile.am): Likewise.
69249         * modules/mbchar (Makefile.am): Likewise.
69250         * modules/md2 (Makefile.am): Likewise.
69251         * modules/md4 (Makefile.am): Likewise.
69252         * modules/md5 (Makefile.am): Likewise.
69253         * modules/memcasecmp (Makefile.am): Likewise.
69254         * modules/memchr (Makefile.am): Likewise.
69255         * modules/memcmp (Makefile.am): Likewise.
69256         * modules/memcoll (Makefile.am): Likewise.
69257         * modules/memcpy (Makefile.am): Likewise.
69258         * modules/memmem (Makefile.am): Likewise.
69259         * modules/memmove (Makefile.am): Likewise.
69260         * modules/mempcpy (Makefile.am): Likewise.
69261         * modules/memrchr (Makefile.am): Likewise.
69262         * modules/memset (Makefile.am): Likewise.
69263         * modules/memxor (Makefile.am): Likewise.
69264         * modules/mkancesdirs (Makefile.am): Likewise.
69265         * modules/mkdir (Makefile.am): Likewise.
69266         * modules/mkdir-p (Makefile.am): Likewise.
69267         * modules/mkdtemp (Makefile.am): Likewise.
69268         * modules/mkstemp (Makefile.am): Likewise.
69269         * modules/mktime (Makefile.am): Likewise.
69270         * modules/modechange (Makefile.am): Likewise.
69271         * modules/mountlist (Makefile.am): Likewise.
69272         * modules/nanosleep (Makefile.am): Likewise.
69273         * modules/openat (Makefile.am): Likewise.
69274         * modules/pagealign_alloc (Makefile.am): Likewise.
69275         * modules/physmem (Makefile.am): Likewise.
69276         * modules/poll (Makefile.am): Likewise.
69277         * modules/posixtm (Makefile.am): Likewise.
69278         * modules/posixver (Makefile.am): Likewise.
69279         * modules/putenv (Makefile.am): Likewise.
69280         * modules/quote (Makefile.am): Likewise.
69281         * modules/quotearg (Makefile.am): Likewise.
69282         * modules/raise (Makefile.am): Likewise.
69283         * modules/read-file (Makefile.am): Likewise.
69284         * modules/readline (Makefile.am): Likewise.
69285         * modules/readlink (Makefile.am): Likewise.
69286         * modules/readtokens (Makefile.am): Likewise.
69287         * modules/readutmp (Makefile.am): Likewise.
69288         * modules/realloc (Makefile.am): Likewise.
69289         * modules/regex (Makefile.am): Likewise.
69290         * modules/rename (Makefile.am): Likewise.
69291         * modules/rename-dest-slash (Makefile.am): Likewise.
69292         * modules/rijndael (Makefile.am): Likewise.
69293         * modules/rmdir (Makefile.am): Likewise.
69294         * modules/rpmatch (Makefile.am): Likewise.
69295         * modules/safe-read (Makefile.am): Likewise.
69296         * modules/safe-write (Makefile.am): Likewise.
69297         * modules/same (Makefile.am): Likewise.
69298         * modules/save-cwd (Makefile.am): Likewise.
69299         * modules/savedir (Makefile.am): Likewise.
69300         * modules/setenv (Makefile.am): Likewise.
69301         * modules/settime (Makefile.am): Likewise.
69302         * modules/sha1 (Makefile.am): Likewise.
69303         * modules/sig2str (Makefile.am): Likewise.
69304         * modules/snprintf (Makefile.am): Likewise.
69305         * modules/stdlib-safer (Makefile.am): Likewise.
69306         * modules/stpcpy (Makefile.am): Likewise.
69307         * modules/stpncpy (Makefile.am): Likewise.
69308         * modules/strcase (Makefile.am): Likewise.
69309         * modules/strcasestr (Makefile.am): Likewise.
69310         * modules/strchrnul (Makefile.am): Likewise.
69311         * modules/strcspn (Makefile.am): Likewise.
69312         * modules/strdup (Makefile.am): Likewise.
69313         * modules/strerror (Makefile.am): Likewise.
69314         * modules/strftime (Makefile.am): Likewise.
69315         * modules/strndup (Makefile.am): Likewise.
69316         * modules/strnlen (Makefile.am): Likewise.
69317         * modules/strpbrk (Makefile.am): Likewise.
69318         * modules/strsep (Makefile.am): Likewise.
69319         * modules/strstr (Makefile.am): Likewise.
69320         * modules/strtod (Makefile.am): Likewise.
69321         * modules/strtoimax (Makefile.am): Likewise.
69322         * modules/strtok_r (Makefile.am): Likewise.
69323         * modules/strtol (Makefile.am): Likewise.
69324         * modules/strtoll (Makefile.am): Likewise.
69325         * modules/strtoul (Makefile.am): Likewise.
69326         * modules/strtoull (Makefile.am): Likewise.
69327         * modules/strtoumax (Makefile.am): Likewise.
69328         * modules/strverscmp (Makefile.am): Likewise.
69329         * modules/time_r (Makefile.am): Likewise.
69330         * modules/timegm (Makefile.am): Likewise.
69331         * modules/tmpfile-safer (Makefile.am): Likewise.
69332         * modules/unistd-safer (Makefile.am): Likewise.
69333         * modules/unlinkdir (Makefile.am): Likewise.
69334         * modules/userspec (Makefile.am): Likewise.
69335         * modules/utime (Makefile.am): Likewise.
69336         * modules/utimecmp (Makefile.am): Likewise.
69337         * modules/utimens (Makefile.am): Likewise.
69338         * modules/vasnprintf (Makefile.am): Likewise.
69339         * modules/vasprintf (Makefile.am): Likewise.
69340         * modules/vsnprintf (Makefile.am): Likewise.
69341         * modules/xalloc (Makefile.am): Likewise.
69342         * modules/xgetcwd (Makefile.am): Likewise.
69343         * modules/xnanosleep (Makefile.am): Likewise.
69344         * modules/xreadlink (Makefile.am): Likewise.
69345         * modules/xstrtod (Makefile.am): Likewise.
69346         * modules/xstrtol (Makefile.am): Likewise.
69347         * modules/xstrtold (Makefile.am): Likewise.
69348         * modules/yesno (Makefile.am): Likewise.
69349
69350 2006-10-12  Jim Meyering  <jim@meyering.net>
69351
69352         * m4/getloadavg.m4: Revert the change below.
69353
69354         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
69355         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
69356         fail with a symlink, which is what coreutils' ./bootstrap now
69357         creates by default.
69358
69359 2006-10-12  Bruno Haible  <bruno@clisp.org>
69360
69361         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
69362         mingw.
69363         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
69364         MSVC and mingw explicitly.
69365
69366 2006-10-11  Simon Josefsson  <jas@extundo.com>
69367             Bruno Haible  <bruno@clisp.org>
69368
69369         Add support for multiple gnulib-tool invocations in the scope of a
69370         single configure.ac file.
69371         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
69372         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
69373         with the same contents as the _LIBADD variable.
69374         (func_emit_initmacro_start, func_emit_initmacro_end,
69375         func_emit_initmacro_done): New functions.
69376         (func_import, func_create_testdir): Invoke them. Allow the identifiers
69377         gl_LIBOBJS and gl_LTLIBOBJS.
69378
69379 2006-10-11  Bruno Haible  <bruno@clisp.org>
69380
69381         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
69382         (func_create_testdir): Don't create po/Makefile.am, don't invoke
69383         autoreconf. Instead, invoke autopoint explicitly but move back the
69384         *.m4 files from gnulib.
69385
69386 2006-10-11  Bruno Haible  <bruno@clisp.org>
69387
69388         * gnulib-tool (func_usage): Make module names after --create-testdir
69389         optional.
69390         (func_create_testdir): If no module was specified, use nearly all
69391         modules.
69392
69393 2006-10-12  Jim Meyering  <jim@meyering.net>
69394
69395         Big performance improvement for fts-based tools that use FTS_NOSTAT.
69396         Avoid spurious inode-mismatch problems on non-POSIX file systems.
69397         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
69398         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
69399         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
69400         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
69401         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
69402         (fts_set_stat_required): New function.
69403         (fts_open): Defer the calls to fts_stat, if possible or requested.
69404         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
69405         into fts_stat itself.
69406         (fts_read): Perform any required (deferred) fts_stat call.
69407         (fts_build): Likewise, for the directory we're about to open and read.
69408         In the readdir loop, carefully decide whether each entry will require
69409         an eventual call to fts_stat, using dirent.d_type info if available.
69410         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
69411         a command line argument into this function.  Update all callers.
69412         Map a return value of FTS_DOT to FTS_D for a command line argument.
69413         * modules/fts (Depends-on): Add d-type.  Alphabetize.
69414         Thanks to Miklos Szeredi for his tenacity and for the initial
69415         bug report about "find" failing on a FUSE-based file system.
69416
69417         * lib/fts.c (fts_open): Use consistent indentation.
69418
69419 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
69420
69421         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
69422         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
69423         reported by Jim Meyering.  All uses of cache variables renamed
69424         to match Autoconf's.
69425         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
69426         the other one.
69427
69428         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
69429         Fix misspelling in diagnostic.
69430
69431 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
69432
69433         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
69434         defined.  Problem reported by Matthew Woehlke.
69435
69436         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
69437         Add support for Tandem NonStop R series.
69438         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
69439         Use new macro.
69440
69441         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
69442         (has_trailing_slash): Omit size arg; all callers changed.
69443         Omit 'inline', since it doesn't help performance and we'd
69444         need to configure it.
69445         Don't count //, ///, etc. as having a trailing slash.
69446         As a side effect, this removes a C99ism reported by Matthew Woehlke.
69447         (rpl_rename_dest_slash): On failure, use rename's errno rather
69448         than (in some cases) an incorrect or junk errno.
69449         Simplify code by removing need to compute length; this does
69450         cause it to make two passes instead of one over the file name,
69451         but it's worth it.
69452
69453         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
69454         change, since Autoconf's version may no longer be appropriate now
69455         that we are using CVS Autoconf's version.  Add support for Tandem.
69456
69457 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
69458             Bruno Haible  <bruno@clisp.org>
69459
69460         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
69461         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
69462         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
69463         gl_AC_TYPE_LONG_LONG.
69464
69465         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
69466         instead of HAVE_LONG_LONG.
69467         * lib/printf-args.c (printf_fetchargs): Likewise.
69468         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
69469         * lib/vasnprintf.c (VASNPRINTF): Likewise.
69470         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
69471         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
69472         gl_AC_TYPE_LONG_LONG.
69473
69474 2006-10-11  Bruno Haible  <bruno@clisp.org>
69475
69476         * m4/longlong.m4: Add comments.
69477         * m4/ulonglong.m4: Likewise.
69478
69479 2006-10-10  Bruno Haible  <bruno@clisp.org>
69480
69481         Make it possible to #define stpcpy, strdup to aliases.
69482         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
69483         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
69484
69485 2006-10-10  Bruno Haible  <bruno@clisp.org>
69486
69487         Make it possible to #define gcd to an alias.
69488         * lib/gcd.c: Include config.h.
69489
69490 2006-10-10  Bruno Haible  <bruno@clisp.org>
69491
69492         Make it possible to #define c_isascii to an alias.
69493         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
69494         defined. Undefine the macros before defining them, to avoid gcc
69495         warnings.
69496         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
69497         define NO_C_CTYPE_MACROS early.
69498
69499 2006-10-10  Bruno Haible  <bruno@clisp.org>
69500
69501         Make it possible to #define set_program_name to an alias.
69502         * lib/progname.c: Don't undefine set_program_name; instead, undefine
69503         ENABLE_RELOCATABLE early.
69504
69505 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
69506
69507         Port to Tandem NSK OSS, which has 64-bit signed int but at most
69508         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
69509         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
69510         More generally, don't assume that 64-bit signed int is available
69511         if unsigned int is, and vice versa.
69512         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
69513         unsigned symbols, not on their signed counterparts.
69514         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
69515         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
69516         (UINT64_C, UINTMAX_C):
69517         Likewise.
69518         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
69519         unsigned counterparts.
69520         (Have_long_long, Unsigned): New macros.
69521         (Int): Renamed from INT.
69522         (strtoimax): Use the new macros.
69523         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
69524         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
69525         * modules/inttypes (inttypes.h): Substitute
69526         HAVE_UNSIGNED_LONG_LONG_INT.
69527         * modules/stdint (stdint.h): Likewise.
69528         (Files): Add m4/ulonglong.m4.
69529
69530 2006-10-10  Bruno Haible  <bruno@clisp.org>
69531
69532         Fix a gcc -Wshadow warning.
69533         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
69534         to 'bucket'.
69535         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
69536         gl_linked_indexof_from_to): Likewise.
69537         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
69538         Likewise.
69539         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
69540         Likewise.
69541         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
69542         Reported by Eric Blake.
69543
69544 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
69545
69546         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
69547         for NetBSD.  Problem reported by Bruno Haible.
69548
69549 2006-10-09  Jim Meyering  <jim@meyering.net>
69550
69551         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
69552         Patch from Bruno Haible.
69553
69554 2006-10-09  Jim Meyering  <jim@meyering.net>
69555
69556         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
69557         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
69558         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
69559
69560 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
69561
69562         Don't include <config.h> twice; this doesn't work in some cases,
69563         e.g., when config.h has "#define intmax_t long long int" and
69564         we include <config.h>, <inttypes.h>, <config.h> in that order.
69565         Problem reported by Matthew Woehlke in:
69566         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
69567         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
69568         * lib/fts-cycle.c: Don't include config.h.
69569         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
69570         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
69571         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
69572         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
69573         inttypes.h.
69574         * lib/xstrtoumax.c: Likewise.
69575         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
69576         __strtol and the like, so that this module is more like its siblings.
69577         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
69578         Remove; no longer needed now that we assume gnulib inttypes.h.
69579
69580 2006-10-08  Bruno Haible  <bruno@clisp.org>
69581
69582         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
69583         option.
69584
69585 2006-10-07  Jim Meyering  <jim@meyering.net>
69586
69587         * modules/inttypes (inttypes.h): Revert what seems to have been
69588         an inadvertent part of today's change: use "|", not "/" in the
69589         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
69590
69591 2006-10-07  Bruno Haible  <bruno@clisp.org>
69592
69593         * modules/sublist: New file.
69594
69595 2006-10-07  Bruno Haible  <bruno@clisp.org>
69596
69597         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
69598         * modules/argz (argz.h): Likewise.
69599         * modules/arpa_inet (arpa/inet.h): Likewise.
69600         * modules/byteswap (byteswap.h): Likewise.
69601         * modules/configmake (configmake.h): Likewise.
69602         * modules/fcntl (fcntl.h): Likewise.
69603         * modules/fnmatch (fnmatch.h): Likewise.
69604         * modules/getopt (getopt.h): Likewise.
69605         * modules/glob (glob.h): Likewise.
69606         * modules/inttypes (inttypes.h): Likewise.
69607         * modules/netinet_in (netinet/in.h): Likewise.
69608         * modules/poll (poll.h): Likewise.
69609         * modules/stdbool (stdbool.h): Likewise.
69610         * modules/stdint (stdint.h): Likewise.
69611         * modules/sys_select (sys/select.h): Likewise.
69612         * modules/sys_socket (sys/socket.h): Likewise.
69613         * modules/sys_stat (sys/stat.h): Likewise.
69614         * modules/sysexits (sysexits.h): Likewise.
69615         * modules/unistd (unistd.h): Likewise.
69616         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69617         Add a "DO NOT EDIT" comment to the generated file.
69618         (func_import): Likewise for gnulib-comp.m4.
69619
69620 2006-10-07  Bruno Haible  <bruno@clisp.org>
69621
69622         * lib/gl_sublist.h: New file.
69623         * lib/gl_sublist.c: New file.
69624
69625 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
69626
69627         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
69628         name (relative to the original working directory) and the file
69629         name component (relative to the temporary working directory).  All
69630         callers changed.
69631         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
69632         * lib/mkdir-p.c (make_dir_parents): Likewise.
69633         * lib/mkdir-p.h (make_dir_parents): Likewise.
69634
69635 2006-10-06  Eric Blake  <ebb9@byu.net>
69636
69637         Define several macros for use by the clean-temp module.
69638         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
69639         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
69640         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
69641
69642         * lib/clean-temp.h (close_stream_temp): New declaration.
69643         * lib/clean-temp.c (includes): Pull in headers according to what
69644         other modules are in use.
69645         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
69646
69647 2006-10-06  Bruno Haible  <bruno@clisp.org>
69648
69649         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
69650         instead of fopen, fwriteerror.
69651
69652 2006-10-06  Bruno Haible  <bruno@clisp.org>
69653
69654         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
69655         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
69656         int.
69657         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
69658         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
69659         Return an error indicator.
69660         Suggested by Eric Blake.
69661
69662 2006-10-06  Bruno Haible  <bruno@clisp.org>
69663
69664         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
69665         Reported by Eric Blake.
69666
69667 2006-10-06  Bruno Haible  <bruno@clisp.org>
69668
69669         * modules/closeout (Description): Mention stderr too.
69670
69671 2006-10-06  Bruno Haible  <bruno@clisp.org>
69672         and Paul Eggert  <eggert@cs.ucla.edu>
69673
69674         * lib/closeout.c (close_stdout): Also close stderr.
69675         * lib/closeout.h: Update comment.
69676
69677 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
69678
69679         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
69680         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
69681         * lib/dirchownmod.c: Include lchown.h.
69682         * lib/lchown.c: Don't include files that lchown.h now includes.
69683         Don't declare chown, since lchown.h now does that.
69684         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
69685         (lchown): Define to rpl_chown if lchown is declared but
69686         does not exist.  Declare using a prototype if lchown is not
69687         declared.  Add a copyright notice.
69688         * lib/mkstemp.h: Include <unistd.h>.
69689         * lib/openat.c: Include lchown.h.
69690
69691         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
69692         we now test for that separately.
69693         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
69694         rather than O_NOFOLLOW, when testing whether it's possible to
69695         avoid a race condition reliably.
69696         * lib/savewd.c (savewd_chdir): Likewise.
69697
69698         Remove macros that are no longer needed now that stdint.h is
69699         reliable.
69700         * lib/fsusage.c (UINTMAX_MAX): Remove.
69701         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
69702         * lib/utimecmp.c (SIZE_MAX): Remove.
69703
69704         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
69705
69706         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
69707         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
69708         O_NOATIME works.
69709
69710 2006-10-05  Bruno Haible  <bruno@clisp.org>
69711
69712         * lib/gl_list.h (gl_sortedlist_search_from_to,
69713         gl_sortedlist_indexof_from_to): New declarations.
69714         (gl_list_implementation): New fields sortedlist_search_from_to,
69715         sortedlist_indexof_from_to.
69716         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
69717         inline functions.
69718         * lib/gl_list.c (gl_sortedlist_search_from_to,
69719         gl_sortedlist_indexof_from_to): New functions.
69720         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
69721         function.
69722         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
69723         (gl_array_sortedlist_search_from_to): New function.
69724         (gl_array_list_implementation): Update.
69725         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
69726         function.
69727         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
69728         (gl_carray_sortedlist_search_from_to): New function.
69729         (gl_carray_list_implementation): Update.
69730         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
69731         gl_linked_sortedlist_indexof_from_to): New functions.
69732         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
69733         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
69734         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
69735         gl_tree_sortedlist_indexof_from_to): New functions.
69736         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
69737         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
69738         Update.
69739         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
69740         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
69741         Update.
69742
69743 2006-10-05  Bruno Haible  <bruno@clisp.org>
69744
69745         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
69746         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
69747         (struct gl_list_implementation): Add fields search_from_to,
69748         indexof_from_to. Remove fields search, indexof.
69749         (gl_list_search): Use the search_from_to method.
69750         (gl_list_search_from, gl_list_search_from_to): New functions.
69751         (gl_list_indexof): Use the indexof_from_to method.
69752         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
69753         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
69754         (gl_list_search_from, gl_list_search_from_to): New functions.
69755         (gl_list_indexof): Use the indexof_from_to method.
69756         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
69757         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
69758         gl_array_indexof. Add start_index, end_index arguments.
69759         (gl_array_search_from_to): Renamed from gl_array_search. Add
69760         start_index, end_index arguments.
69761         (gl_array_remove, gl_array_list_implementation): Update.
69762         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
69763         gl_carray_indexof. Add start_index, end_index arguments.
69764         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
69765         start_index, end_index arguments.
69766         (gl_carray_remove, gl_carray_list_implementation): Update.
69767         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
69768         gl_linked_search. Add start_index, end_index arguments.
69769         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
69770         start_index, end_index arguments.
69771         (gl_linked_remove): Update.
69772         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
69773         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
69774         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
69775         field to 'size_t'.
69776         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
69777         gl_tree_search. Add start_index, end_index arguments.
69778         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
69779         start_index, end_index arguments.
69780         (gl_tree_remove): Update.
69781         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
69782         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
69783         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
69784         function.
69785         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
69786         gl_tree_search. Add start_index, end_index arguments.
69787         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
69788         start_index, end_index arguments.
69789         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
69790         Update.
69791         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
69792
69793 2006-10-05  Bruno Haible  <bruno@clisp.org>
69794
69795         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
69796
69797         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
69798         fwriteerror_temp): New declarations.
69799         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
69800         (descriptors): New variable.
69801         (cleanup): First, close the descriptors.
69802         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
69803         fclose_temp, fwriteerror_temp): New functions.
69804
69805 2006-10-04  Jim Meyering  <jim@meyering.net>
69806
69807         * lib/fts.c (fts_open): Tiny comment change.
69808
69809 2006-10-04  Bruno Haible  <bruno@clisp.org>
69810
69811         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
69812         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
69813         gl_LOCK_BODY.
69814         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
69815         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
69816         gl_LOCK_EARLY_BODY.
69817         (gl_LOCK): Require gl_LOCK_BODY.
69818
69819 2006-10-04  Bruno Haible  <bruno@clisp.org>
69820
69821         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
69822         (gl_oset_search_atleast): New declaration.
69823         (struct gl_oset_implementation): Add field 'search_atleast'.
69824         (gl_oset_search_atleast): New inline function.
69825         * lib/gl_oset.c (gl_oset_search_atleast): New function.
69826         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
69827         (gl_array_oset_implementation): Update.
69828         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
69829         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
69830         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
69831
69832 2006-10-04  Bruno Haible  <bruno@clisp.org>
69833
69834         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
69835
69836 2006-10-03  Bruno Haible  <bruno@clisp.org>
69837
69838         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
69839         from gl_avltreehash_list_implementation.
69840
69841 2006-10-03  Bruno Haible  <bruno@clisp.org>
69842
69843         * lib/gl_oset.c (gl_oset_add): Fix return type.
69844
69845 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
69846
69847         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
69848
69849 2006-10-02  Eric Blake  <ebb9@byu.net>
69850
69851         * modules/strnlen (Depends-on): Add extensions.
69852
69853 2006-10-02  Eric Blake  <ebb9@byu.net>
69854
69855         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
69856         definition in 2.60+.
69857
69858 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
69859
69860         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
69861         checks.
69862
69863 2006-10-02  Bruno Haible  <bruno@clisp.org>
69864
69865         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
69866         to the AUTOMAKE_OPTIONS.
69867         Reported by Jim Meyering.
69868
69869 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
69870
69871         Work around bug in Solaris 10 /proc file system:
69872         /proc/self/fd/NNN/.. isn't the parent directory of
69873         the directory whose file descriptor is NNN.  This needs to
69874         be worked around at run time, not compile time, since a
69875         program might be built on Solaris 8, where things work, and
69876         run on Solaris 10.
69877         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
69878         to use the following interface instead:
69879         (OPENAT_BUFFER_SIZE): New macro.
69880         (openat_proc_name): New function.
69881         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
69882         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
69883         Likewise.
69884         * lib/openat-proc.c: New file.
69885         * modules/openat (Files): Add lib/openat-proc.c.
69886         (Depends-on): Add same-inode, stdbool.
69887         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
69888
69889 2006-09-29  Bruno Haible  <bruno@clisp.org>
69890
69891         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
69892         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
69893         argument. Set stdout_closed before testing for ferror, not after.
69894         (fwriteerror, fwriteerror_no_ebadf): New functions.
69895
69896 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69897
69898         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
69899
69900 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
69901
69902         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
69903         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
69904
69905 2006-09-28  Jim Meyering  <jim@meyering.net>
69906
69907         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
69908         Include <unistd.h>.
69909
69910 2006-09-28  Bruno Haible  <bruno@clisp.org>
69911
69912         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
69913         * modules/linkedhash-list (Depends-on): Likewise.
69914         * modules/rbtreehash-list (Depends-on): Likewise.
69915
69916 2006-09-28  Bruno Haible  <bruno@clisp.org>
69917
69918         * lib/strndup.h: Simplify the redefinition of strndup.
69919         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
69920         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
69921
69922 2006-09-28  Bruno Haible  <bruno@clisp.org>
69923
69924         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
69925         * lib/gl_linkedhash_list.c: Likewise.
69926         * lib/gl_rbtreehash_list.c: Likewise.
69927
69928 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
69929
69930         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
69931         getaddrinfo.
69932
69933         * lib/__fpending.h: Don't include <stdio_ext.h> unless
69934         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
69935         it causes <stdio_ext.h> to cause a compile-time error.
69936         Problem reported by Nelson H. F. Beebe.
69937         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
69938         of HAVE_DECL___PENDING.
69939
69940         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
69941         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
69942         declaration.
69943
69944 2006-09-27  Jim Meyering  <jim@meyering.net>
69945
69946         This file could end up with a definition for a function
69947         named __strndup, rather than rpl_strndup on a system with
69948         incomplete weak_alias support.
69949         * lib/strndup.c (strndup): Rename from __strndup.
69950         Remove #defines that used to map __strndup to strndup.
69951         Don't use K&R prototypes.
69952         Remove LIBC-related code, since this file is not sync'd with glibc.
69953         * lib/strndup.h: Revamp, accordingly.
69954         * m4/strndup.m4: Modernize.
69955
69956 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
69957
69958         * modules/savewd (Depends-on): Add 'raise'.
69959         * lib/savewd.c: Include <signal.h>, for 'raise'.
69960
69961 2006-09-26  Jim Meyering  <jim@meyering.net>
69962
69963         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
69964         when we detect Darwin 8.7.0's acl_get_file bug.
69965         Rearrange to perform the new (below) run-test while $LIBS
69966         contains any acl-related library.  Set USE_ACL at the end.
69967         (gl_ACL_GET_FILE): New function.
69968
69969 2006-09-26  Eric Blake  <ebb9@byu.net>
69970
69971         * lib/verror.c: Include <config.h> unconditionally.
69972
69973 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
69974
69975         * modules/clock-time (Maintainer): Add self.
69976         * modules/getlogin_r (Depends-on): Add extensions.
69977
69978 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69979
69980         * modules/clock-time: New module.
69981         * modules/nanosleep (Depends-on): Add clock-time.
69982         * modules/gethrxtime (Depends-on): Likewise.
69983         * modules/gettime (Depends-on): Likewise.
69984         * modules/settime (Depends-on): Likewise.
69985
69986         * modules/fts-lgpl: Depend on openat.
69987         * modules/mkancesdirs: Depend on savewd.
69988         * modules/mkdir-p: Likewise.
69989
69990 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
69991
69992         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
69993
69994         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
69995         `gl_have_arbitrary_file_name_length_limit' to
69996         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
69997         actually works between configure runs.
69998
69999 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70000             Bruno Haible  <bruno@clisp.org>
70001
70002         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
70003
70004 2006-09-25  Jim Meyering  <jim@meyering.net>
70005
70006         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
70007         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
70008
70009 2006-09-25  Eric Blake  <ebb9@byu.net>
70010
70011         * gnulib-tool (func_import, func_create_testdir): Fix typos in
70012         exec's in 2006-09-18 patch when shuffling fds.
70013
70014 2006-09-25  Bruno Haible  <bruno@clisp.org>
70015
70016         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
70017         Reported by Jim Meyering.
70018
70019 2006-09-24  Jim Meyering  <jim@meyering.net>
70020
70021         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
70022         compare a pointer against a literal "0".  That caused failures with
70023         at least HP-UX's hpcc.
70024
70025 2006-09-22  Simon Josefsson  <jas@extundo.com>
70026
70027         * modules/gc-sha1:
70028         * modules/gc-md4:
70029         * modules/gc-hmac-sha1:
70030         * modules/gc-hmac-md5:
70031         * modules/gc-des:
70032         * modules/gc-arcfour: Distribute more files.
70033
70034 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70035
70036         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
70037         (gl_linked_iterator_from_to): Initialize struct completely.
70038         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
70039         (gl_tree_iterator_from_to): Likewise
70040         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
70041         * lib/gl_array_list.c [lint] (gl_array_iterator)
70042         (gl_array_iterator_from_to): Likewise.
70043         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
70044         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
70045         (gl_carray_iterator_from_to): Likewise.
70046
70047         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
70048         * lib/md4.c (md4_process_block): Remove unused variable.
70049         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
70050         parentheses for clarity.
70051
70052 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70053
70054         * modules/bison-i18n (Depends-on): Add gettext.
70055
70056 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70057
70058         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
70059         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
70060         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
70061         also add missing comma that caused broken test.
70062         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
70063         stdlib.h, for `abort'.
70064         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
70065         variables.
70066         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
70067         include unistd.h if present, for `rmdir'.
70068         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
70069         variables.
70070         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
70071         in the process include standard headers for prototypes.
70072         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
70073         gets declared on GNU/Linux.
70074         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
70075         unistd.h, for `rmdir'.
70076         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
70077
70078         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
70079         always true.
70080         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
70081
70082         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
70083
70084 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70085
70086         * gnulib-tool (func_version): Create output all at once.  This
70087         may help avoid triggering unnecessary SIGPIPEs, and at any
70088         rate it doesn't hurt.
70089
70090 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70091             Bruno Haible  <bruno@clisp.org>
70092
70093         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
70094         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
70095         * m4/signed.m4 (bh_C_SIGNED): Likewise.
70096
70097         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
70098         (gl_FUNC_VASPRINTF): Invoke it.
70099
70100 2006-09-22  Bruno Haible  <bruno@clisp.org>
70101
70102         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
70103         getloadavg.c as first argument.
70104
70105 2006-09-22  Bruno Haible  <bruno@clisp.org>
70106
70107         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
70108         at the beginning of the gl_INIT macro.
70109         * modules/getloadavg (configure.ac): Pass $gl_source_base to
70110         gl_GETLOADAVG.
70111
70112 2006-09-22  Bruno Haible  <bruno@clisp.org>
70113
70114         * gnulib-tool (func_create_megatestdir): Don't include the config-h
70115         module.
70116         Suggested by Ralf Wildenhues.
70117
70118 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
70119
70120         Import this patch from libc:
70121
70122         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
70123
70124         * lib/regex_internal.c (re_string_reconstruct): Handle
70125         offset < pstr->valid_raw_len && pstr->offsets_needed case.
70126         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
70127         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
70128         re_string_context_at.
70129
70130         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
70131         now requires it.
70132         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
70133         gl_REGEX now does it for us.
70134         (gl_REGEX): Add test taken from
70135         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
70136
70137         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
70138         Check that large offsets work.  Modernize Autoconf usages.
70139         Prefer "yes" to mean a good thing rather than a bad.
70140         Don't put "#define mkstemp" in config.h, as this might interfere
70141         with standard system headers that "#define mkstemp mkstemp64".
70142
70143         * modules/mkstemp (Depends-on): Add extensions, so that
70144         mkstemp is visible on some platforms.
70145         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
70146         (Include): Change to "mkstemp.h" from <stdlib.h>.
70147         (Files): Add mkstemp.h.
70148
70149         * lib/mkstemp.h: New file, since some standard headers
70150         #define mkstemp.
70151         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
70152         Include "mkstemp.h".
70153         Make the _LIBC code resemble glibc original more,
70154         e.g., use K&R style.
70155         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
70156         (mkstemp): Remove, since mkstemp.h does this for us.
70157         * lib/stdlib--.h: Include mkstemp.h.
70158
70159         Import this patch from libc:
70160
70161         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
70162
70163         * lib/tempname.c (__gen_tempname): Change attempts_min
70164         into a macro.  Use preprocessor to decide how to initialize
70165         attempts [Coverity CID 67].
70166
70167 2006-09-20  Bruno Haible  <bruno@clisp.org>
70168
70169         * lib/mkdtemp.c: Import from libc.
70170         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
70171                 * sysdeps/posix/tempname.c (__gen_tempname): Change
70172                 attempts_min into a macro.  Use preprocessor to decide how to
70173                 initialize attempts [Coverity CID 67].
70174         2001-11-27  Paul Eggert  <eggert@twinsun.com>
70175                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
70176                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
70177
70178 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70179
70180         * gnulib-tool (func_exit): New function, to allow to pass the
70181         exit status portably through the trap.  Use everywhere.
70182         (--help, --version): Signal a write error.
70183         (trap): catch SIGPIPE, for write errors.
70184         Exit at the end of the trap, with the correct exit status.
70185
70186 2006-09-19  Karl Berry  <karl@gnu.org>
70187
70188         * doc/gnulib.texi: note about the license texinfo files.
70189
70190 2006-09-19  Eric Blake  <ebb9@byu.net>
70191
70192         * gnulib-tool: Avoid space-tab.
70193
70194 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
70195
70196         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
70197         that prevented coreutils 6.1 from building.  Problem reported
70198         by Petter Reinholdtsen.
70199
70200 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
70201
70202         * gnulib-tool (avoidlist): Fix typo that broke options like
70203         --avoid=lock that are used by coreutils bootstrap.
70204
70205 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
70206
70207         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
70208         more systematically.
70209
70210 2006-09-18  Jim Meyering  <jim@meyering.net>
70211
70212         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
70213
70214 2006-09-18  Bruno Haible  <bruno@clisp.org>
70215
70216         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
70217
70218 2006-09-18  Bruno Haible  <bruno@clisp.org>
70219
70220         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
70221         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
70222         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
70223         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
70224         * m4/gettext.m4: Require autoconf >= 2.52.
70225         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
70226         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
70227         of gl_cv_header_inttypes_h.
70228
70229 2006-09-18  Bruno Haible  <bruno@clisp.org>
70230
70231         * lib/javaversion.c: Include configmake.h.
70232
70233 2006-09-18  Bruno Haible  <bruno@clisp.org>
70234
70235         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
70236         avoid that the while loops be executed in a subshell.
70237
70238 2006-09-18  Bruno Haible  <bruno@clisp.org>
70239
70240         * MODULES.html.sh (func_module): Break long lines.
70241         Suggested by Bruce Korb <bkorb@gnu.org>.
70242
70243 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70244
70245         Speed up by a factor of 1.12.
70246         * gnulib-tool (nl): New variable.
70247         (func_import): Rewrite include directive extraction to only read each
70248         directive once.
70249
70250 2006-09-17  Bruno Haible  <bruno@clisp.org>
70251
70252         * modules/javaversion (Makefile.am): Remove DEFS setting.
70253         (Depends-on): Add configmake, for PKGDATADIR definition.
70254
70255 2006-09-17  Bruno Haible  <bruno@clisp.org>
70256
70257         * gnulib-tool (func_create_testdir): Rewrite all files at once.
70258
70259 2006-09-17  Bruno Haible  <bruno@clisp.org>
70260
70261         * gnulib-tool (func_append): New function, stolen from libtool.m4.
70262         (func_modules_transitive_closure, func_modules_add_dummy,
70263         func_modules_to_filelist, func_import, func_create_testdir,
70264         func_create_megatestdir, ...): Use it wherever possible.
70265         Suggested by Ralf Wildenhues.
70266
70267 2006-09-16  Karl Berry  <karl@gnu.org>
70268
70269         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
70270         to avoid sectioning errors.
70271         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
70272         [ifinfo]: blank line after @center-ed titles.
70273         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
70274         Spell FSF address consistently with others.
70275         (These changes approved by rms.)
70276
70277 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70278
70279         Speed up by a factor of 1.61.
70280         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
70281         already checked module names again.
70282
70283 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70284
70285         Speed up by a factor of 1.13.
70286         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
70287         for new_files, and the input to func_add_or_update.
70288
70289 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70290
70291         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
70292         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
70293
70294 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70295
70296         * modules/mkancesdirs (Depends-on): Add fcntl.
70297         * modules/savewd: New file.
70298         * MODULES.html.sh (File system functions): Add savewd.
70299
70300         * modules/configmake (Makefile.am): Add support for the
70301         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
70302
70303 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70304
70305         * m4/savewd.m4: New file.
70306
70307 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
70308
70309         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
70310         (dirchownmod): New arg FD.  All callers changed.
70311         Use FD rather than opening the directory ourself, as opening is
70312         now the caller's responsibility.
70313         * lib/dirchownmod.h: Likewise.
70314         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
70315         hosts that require <sys/types.h> before <sys/stat.h>.  Include
70316         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
70317         (test_dir): Remove.
70318         (mkancesdirs): Return length of prefix of FILE that has already
70319         been made, or -2 if there is a child doing the work.  Redo
70320         algorithm so that it is O(N) rather than O(N**2).  Optimize away
70321         ".", and treat ".." specially since it might stray back into
70322         already-created areas.  Use a subprocess if necessary.  New arg
70323         WD; all users changed.  MAKE_DIR function should now return 1
70324         if it creates a directory that is not readable.  Return -2 if
70325         a child process is spun off.
70326         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
70327         Adjust signature to match code.
70328         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
70329         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
70330         all users changed.
70331         * lib/savewd.c, lib/savewd.h: New files.
70332
70333 2006-09-15  Jim Meyering  <jim@meyering.net>
70334
70335         * modules/rename-dest-slash: New module.
70336         * MODULES.html.sh (posix_compat): Add it here.
70337
70338         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
70339
70340 2006-09-15  Jim Meyering  <jim@meyering.net>
70341
70342         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
70343         file.
70344
70345         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
70346
70347 2006-09-15  Jim Meyering  <jim@meyering.net>
70348
70349         * lib/rename-dest-slash.c (has_trailing_slash): Use
70350         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
70351         (rpl_rename_dest_slash): Perform the cheaper trailing slash
70352         test before testing whether SRC is a directory.
70353         Suggestions from Bruno Haible.
70354
70355         Avoid a warning about an unused variable.
70356         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
70357         into the #ifdef block where it's used.
70358
70359         * lib/rename-dest-slash.c: New file.
70360
70361 2006-09-14  Bruno Haible  <bruno@clisp.org>
70362
70363         * lib/allocsa.c: Include <config.h> unconditionally.
70364         * lib/asnprintf.c: Likewise.
70365         * lib/asprintf.c: Likewise.
70366         * lib/c-strcasecmp.c: Likewise.
70367         * lib/c-strcasestr.c: Likewise.
70368         * lib/c-strncasecmp.c: Likewise.
70369         * lib/c-strstr.c: Likewise.
70370         * lib/classpath.c: Likewise.
70371         * lib/clean-temp.c: Likewise.
70372         * lib/concatpath.c: Likewise.
70373         * lib/copy-file.c: Likewise.
70374         * lib/csharpcomp.c: Likewise.
70375         * lib/csharpexec.c: Likewise.
70376         * lib/execute.c: Likewise.
70377         * lib/fatal-signal.c: Likewise.
70378         * lib/findprog.c: Likewise.
70379         * lib/fwriteerror.c: Likewise.
70380         * lib/gl_array_list.c: Likewise.
70381         * lib/gl_array_oset.c: Likewise.
70382         * lib/gl_avltree_list.c: Likewise.
70383         * lib/gl_avltree_oset.c: Likewise.
70384         * lib/gl_avltreehash_list.c: Likewise.
70385         * lib/gl_carray_list.c: Likewise.
70386         * lib/gl_linked_list.c: Likewise.
70387         * lib/gl_linkedhash_list.c: Likewise.
70388         * lib/gl_list.c: Likewise.
70389         * lib/gl_oset.c: Likewise.
70390         * lib/gl_rbtree_list.c: Likewise.
70391         * lib/gl_rbtree_oset.c: Likewise.
70392         * lib/gl_rbtreehash_list.c: Likewise.
70393         * lib/imaxabs.c: Likewise.
70394         * lib/imaxdiv.c: Likewise.
70395         * lib/javacomp.c: Likewise.
70396         * lib/javaexec.c: Likewise.
70397         * lib/javaversion.c: Likewise.
70398         * lib/linebreak.c: Likewise.
70399         * lib/localcharset.c: Likewise.
70400         * lib/lock.c: Likewise.
70401         * lib/mbchar.c: Likewise.
70402         * lib/mbswidth.c: Likewise.
70403         * lib/mkdtemp.c: Likewise.
70404         * lib/pipe.c: Likewise.
70405         * lib/printf-args.c: Likewise.
70406         * lib/printf-parse.c: Likewise.
70407         * lib/progname.c: Likewise.
70408         * lib/progreloc.c: Likewise.
70409         * lib/readlink.c: Likewise.
70410         * lib/sh-quote.c: Likewise.
70411         * lib/stpcpy.c: Likewise.
70412         * lib/stpncpy.c: Likewise.
70413         * lib/strcasecmp.c: Likewise.
70414         * lib/strcasestr.c: Likewise.
70415         * lib/strcspn.c: Likewise.
70416         * lib/striconv.c: Likewise.
70417         * lib/strncasecmp.c: Likewise.
70418         * lib/strnlen1.c: Likewise.
70419         * lib/strstr.c: Likewise.
70420         * lib/strtok_r.c: Likewise.
70421         * lib/tls.c: Likewise.
70422         * lib/tmpdir.c: Likewise.
70423         * lib/unicodeio.c: Likewise.
70424         * lib/unsetenv.c: Likewise.
70425         * lib/vasnprintf.c: Likewise.
70426         * lib/vasprintf.c: Likewise.
70427         * lib/wait-process.c: Likewise.
70428         * lib/xallocsa.c: Likewise.
70429         * lib/xsetenv.c: Likewise.
70430         * lib/xstriconv.c: Likewise.
70431
70432 2006-09-13  Simon Josefsson  <jas@extundo.com>
70433
70434         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
70435         that internally, suggested by Ralf Wildenhues
70436         <Ralf.Wildenhues@gmx.de>.
70437
70438 2006-09-13  Simon Josefsson  <jas@extundo.com>
70439
70440         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
70441         @LIBOBJS@.
70442         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70443
70444 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
70445
70446         * lib/_fpending.c: Include <config.h> unconditionally, since we no
70447         longer worry about uses that don't define HAVE_CONFIG_H.
70448         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
70449         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
70450         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
70451         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
70452         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
70453         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
70454         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
70455         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
70456         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
70457         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
70458         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
70459         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
70460         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
70461         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
70462         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
70463         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
70464         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
70465         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
70466         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
70467         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
70468         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
70469         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
70470         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
70471         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
70472         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
70473         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
70474         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
70475         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
70476         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
70477         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
70478         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
70479         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
70480         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
70481         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
70482         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
70483         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
70484         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
70485         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
70486         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
70487         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
70488         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
70489         Likewise.
70490
70491 2006-09-13  Eric Blake  <ebb9@byu.net>
70492
70493         * lib/getopt.c: Fix typo in last commit.
70494
70495 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
70496
70497         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
70498         dgettext.
70499
70500 2006-09-12  Jim Meyering  <jim@meyering.net>
70501
70502         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
70503         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
70504         Reported by Nelson H. F. Beebe.
70505
70506 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
70507
70508         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
70509         program_invocation_name and program_invocation_short_name are
70510         initialized.
70511         * lib/argp-namefrob.h: Move declarations of program_invocation_name
70512         and program_invocation_short_name to argp.h, so they are visible
70513         to user programs.
70514         * lib/argp.h: Likewise
70515
70516 2006-09-10  Bruno Haible  <bruno@clisp.org>
70517
70518         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
70519         m4/inttypes_h.m4, m4/uintmax_t.m4.
70520
70521 2006-09-10  Bruno Haible  <bruno@clisp.org>
70522
70523         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
70524         gl_AC_TYPE_UINTMAX_T.
70525
70526 2006-09-10  Bruno Haible  <bruno@clisp.org>
70527
70528         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
70529
70530 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
70531
70532         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
70533         convention.  Text proposed by Bruno Haible.
70534         (struct argp_option): Document the use of N_() wrappers.
70535
70536         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
70537         '\v', and translate the two parts separately, instead of feeding
70538         the whole string to gettext.  This allows to exclude
70539         '\v' from the strings visible to the translator by writing doc
70540         strings as N_("..") "\v" N_("..").
70541
70542 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
70543
70544         * config/srclist.txt: Undo latest change; the bug was fixed.
70545
70546 2006-09-09  Bruno Haible  <bruno@clisp.org>
70547
70548         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
70549         assignments if building a library without libtool.
70550         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
70551         in func_emit_lib_Makefile_am.
70552         (func_import): When building a static library libfoo.a, arrange to
70553         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
70554         (func_create_testdir): Likewise.
70555         * modules/gc (configure.ac, Makefile.am): If building statically,
70556         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
70557         * modules/iconvme (configure.ac, Makefile.am): Likewise.
70558         * modules/striconv (configure.ac, Makefile.am): Likewise.
70559         Based on a suggestion by Ralf Wildenhues.
70560
70561 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70562
70563         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
70564         Check for unistd.h too, since Autoconf doesn't assume POSIX.
70565         Also:
70566
70567         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70568         Add year_2050_test to catch glibc bug 2821
70569         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
70570
70571         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
70572         Prefer #ifdef to #if.
70573
70574         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
70575         Return from 'main' instead of calling 'exit'.
70576
70577 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70578
70579         * lib/mktime.c (guess_time_tm): Fix bug where mktime
70580         returned the maximum time_t value rather than (time_t) -1.
70581         Problem originally reported by William Bardwell
70582         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
70583
70584         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
70585         Moved to here ...
70586         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
70587         ... from here.
70588
70589 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
70590
70591         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
70592         2821 is fixed.
70593
70594 2006-09-08  Jim Meyering  <jim@meyering.net>
70595
70596         Don't make generated files read-only.  That would bother too many
70597         people.  However, do retain the ability to work when targets are
70598         read-only: remove the destination and temporary files before writing
70599         them (when generated via sed or echo), or by using the -f option for
70600         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
70601         * modules/alloca-opt, modules/argz, modules/arpa_inet:
70602         * modules/byteswap, modules/configmake, modules/fcntl:
70603         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
70604         * modules/localcharset, modules/netinet_in, modules/poll:
70605         * modules/stdbool, modules/stdint, modules/sys_select:
70606         * modules/sys_socket, modules/sys_stat, modules/sysexits:
70607
70608 2006-09-08  Jim Meyering  <jim@meyering.net>
70609
70610         Avoid new build failure on FreeBSD 6.0.
70611         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
70612         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
70613         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
70614
70615 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70616
70617         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
70618
70619 2006-09-07  Jim Meyering  <jim@meyering.net>
70620
70621         Fix global typo in last change: use chmod u-w, not chmod u-x.
70622         Spotted by Paul Eggert and Bruce Korb.
70623         * modules/alloca-opt, modules/argz, modules/arpa_inet:
70624         * modules/byteswap, modules/configmake, modules/fcntl:
70625         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
70626         * modules/localcharset, modules/netinet_in, modules/poll:
70627         * modules/stdbool, modules/stdint, modules/sys_select:
70628         * modules/sys_socket, modules/sys_stat, modules/sysexits:
70629
70630 2006-09-06  Jim Meyering  <jim@meyering.net>
70631
70632         Make generated files be read-only.
70633         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
70634         Ensure that each generated file is now read-only.
70635         * modules/argz: Likewise.
70636         * modules/arpa_inet: Likewise.
70637         * modules/byteswap: Likewise.
70638         * modules/configmake: Likewise.
70639         * modules/fcntl: Likewise.
70640         * modules/fnmatch: Likewise.
70641         * modules/getopt: Likewise.
70642         * modules/glob: Likewise.
70643         * modules/inttypes: Likewise.
70644         * modules/netinet_in: Likewise.
70645         * modules/poll: Likewise.
70646         * modules/stdbool: Likewise.
70647         * modules/stdint: Likewise.
70648         * modules/sys_select: Likewise.
70649         * modules/sys_socket: Likewise.
70650         * modules/sys_stat: Likewise.
70651         * modules/sysexits: Likewise.
70652         * modules/localcharset: Same as above, but continue using temporary
70653         file named "t-$@" (why different?) rather than the "$@-t" used
70654         everywhere else.
70655
70656         * modules/sysexits (Makefile.am): Replace literal occurrences
70657         of "sysexit.h" more readable, and more consistent, "$@".
70658
70659 2006-09-06  Bruno Haible  <bruno@clisp.org>
70660
70661         * modules/striconv: New file.
70662         * modules/xstriconv: New file.
70663         * MODULES.html.sh (Internationalization functions): Add striconv,
70664         xstriconv.
70665
70666 2006-09-06  Bruno Haible  <bruno@clisp.org>
70667
70668         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
70669         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
70670         not using libtool correctly.
70671
70672 2006-09-06  Bruno Haible  <bruno@clisp.org>
70673
70674         * lib/striconv.h: New file.
70675         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
70676         iconvstring.c.
70677         * lib/xstriconv.h: New file.
70678         * lib/xstriconv.c: New file.
70679
70680 2006-09-06  Bruno Haible  <bruno@clisp.org>
70681
70682         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
70683         lib_..._LDFLAGS.
70684
70685 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70686
70687         * lib/argz_.h: Sync from Libtool.
70688
70689         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
70690                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
70691
70692         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
70693
70694 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
70695
70696         * modules/trim: New file.
70697
70698 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
70699
70700         * lib/trim.h: New file.
70701         * lib/trim.c: New file.
70702
70703 2006-09-05  Bruno Haible  <bruno@clisp.org>
70704
70705         * MODULES.html.sh (String handling): Add trim.
70706
70707 2006-09-04  Karl Berry  <karl@gnu.org>
70708
70709         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
70710         until next release.
70711
70712 2006-09-03  Bruno Haible  <bruno@clisp.org>
70713
70714         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
70715         correctly.
70716
70717 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70718
70719         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
70720         not gl_GETLOADAVG.  Omit unneeded semicolons.
70721         Problems reported by Ralf Wildenhues in
70722         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
70723         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
70724         at the end, which is the usual gnulib style.
70725
70726         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
70727         of doing all the work ourselves.
70728         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
70729         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
70730
70731 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70732
70733         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
70734         Problem reported by Ralf Wildenhues in
70735         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
70736
70737         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
70738         HAVE_STRUCT_STATFS_F_FSTYPENAME.
70739
70740 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
70741
70742         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
70743         yesterday's patch by changing test -n to test -z.
70744
70745 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70746
70747         * modules/getloadavg (Files): Add m4/getloadavg.m4.
70748         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
70749         the former is now obsolescent.
70750
70751         * modules/chdir-long (Depends-on): Add fcntl.
70752
70753 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70754
70755         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
70756         obsolescent, and programs should use gnulib instead.
70757         * m4/getloadavg.m4: New file, with contents taken from Autoconf
70758         but with prefixes changed.
70759
70760 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
70761
70762         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
70763         or stdbool.h, because they might not exist while configuring.
70764
70765         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
70766         Don't include unistd.h or limits.h; not needed, since chdir-long.h
70767         does that for us.
70768         (O_DIRECTORY): Remove.
70769
70770 2006-08-31  Eric Blake  <ebb9@byu.net>
70771
70772         * gnulib-tool: Don't let emacs change spaces to TAB.
70773
70774 2006-08-31  Bruno Haible  <bruno@clisp.org>
70775
70776         * gnulib-tool: When calling func_import more than once, do it in a
70777         subshell.
70778         Reported by Eric Blake <ebb9@byu.net>.
70779
70780 2006-08-31  Bruno Haible  <bruno@clisp.org>
70781
70782         * gnulib-tool (nl): Remove variable.
70783         (sed_transform_lib_file): Use more robust test for config-h module.
70784         (func_import): Fix typo in 2006-08-25 patch.
70785
70786 2006-08-31  Bruno Haible  <bruno@clisp.org>
70787
70788         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
70789         specified, augment Makefile.am variables instead of assigning them.
70790
70791 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70792
70793         Work around a bug in both the Linux and SunOS 64-bit kernels:
70794         nanosleep mishandles sleeps for longer than 2**31 seconds.
70795         Problem reported by Frank v Waveren in
70796         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
70797         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
70798         Check for nanosleep bug.
70799         (LIB_NANOSLEEP): Append clock_gettime library if needed.
70800
70801 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70802
70803         Work around a bug in both the Linux and SunOS 64-bit kernels:
70804         nanosleep mishandles sleeps for longer than 2**31 seconds.
70805         Problem reported by Frank v Waveren in
70806         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
70807         * lib/nanosleep.c (BILLION): New constant.
70808         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
70809         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
70810         implementation.
70811
70812 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70813
70814         * modules/nanosleep (Depends-on): Add gettime.
70815
70816 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
70817         and Simon Josefsson  <jas@extundo.com>
70818         and Oskar Liljeblad  <oskar@osk.mine.nu>
70819
70820         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
70821         * gnulib-tool (func_import): New license type 'unmodifiable license
70822         text'.
70823         * modules/fdl: Use it.  Longer description.
70824         * module/gpl, module/lgpl: New files.
70825
70826 2006-08-30  Jim Meyering  <jim@meyering.net>
70827
70828         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
70829         shadowing the parameter.
70830
70831 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70832
70833         Sync from Libtool:
70834
70835         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70836
70837         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
70838         sharing with gnulib.  Report by Eric Blake.
70839
70840 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70841
70842         * modules/isapipe: New file.
70843         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
70844
70845 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70846
70847         * modules/configmake (Makefile.am): Add a comment, and omit
70848         the CONFIGMAKE_ prefix from generated macro names.  Suggested
70849         by Bruno Haible.
70850
70851 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70852
70853         * m4/isapipe.m4: New file.
70854
70855 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
70856
70857         * lib/isapipe.c, lib/isapipe.h: New files.
70858
70859 2006-08-29  Jim Meyering  <jim@meyering.net>
70860
70861         * modules/configmake (Makefile.am): Make configmake.h depend on
70862         Makefile.  Otherwise, a stale configmake.h could hang around.
70863
70864 2006-08-29  Eric Blake  <ebb9@byu.net>
70865
70866         * lib/error.c (error_at_line, print_errno_message): Match libc, after
70867         resolution of upstream bug 3044.
70868
70869 2006-08-29  Bruno Haible  <bruno@clisp.org>
70870
70871         * modules/localcharset (Depends-on): Add configmake.
70872         (Makefile.am): Remove setting of LIBDIR through DEFS.
70873
70874 2006-08-29  Bruno Haible  <bruno@clisp.org>
70875
70876         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
70877         defined.
70878
70879 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70880
70881         * modules/fcntl: New file.
70882         * modules/chdir-safer (Depends-on): Add fcntl.
70883         * modules/fts: Likewise.
70884         * modules/mkdir-p: Likewise.
70885
70886         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
70887         This undoes the most recent change, since we're now addressing the
70888         problem in a different way.
70889
70890         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
70891         into output, since the output might be called Makefile.am even
70892         if $makefile_name is something different.
70893         (func_import): Use $makefile_am rather than
70894         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
70895         empty.
70896
70897         * modules/inttypes (Files): Add m4/inttypes-h.m4.
70898
70899 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70900
70901         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
70902         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
70903         recent change to stdint.m4, since we're now addressing the problem in a
70904         different way.
70905
70906 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70907
70908         * m4/fcntl_h.m4: New file.
70909
70910 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
70911
70912         * lib/fcntl_.h: New file.
70913         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
70914         the fcntl module.
70915         * lib/dirchownmod.c: Likewise.
70916         * lib/fts.c: Likewise.
70917
70918         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
70919         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
70920         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
70921         just before including <inttypes.h>, to avoid circular inclusion.
70922
70923 2006-08-28  Jim Meyering  <jim@meyering.net>
70924
70925         * doc/visibility.texi: Actually read and correct the grammar of the
70926         sentence affected by yesterday's change.
70927
70928 2006-08-28  Eric Blake  <ebb9@byu.net>
70929
70930         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
70931         needs wrapper.
70932
70933 2006-08-28  Eric Blake  <ebb9@byu.net>
70934
70935         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
70936
70937 2006-08-28  Eric Blake  <ebb9@byu.net>
70938
70939         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
70940
70941 2006-08-28  Bruno Haible  <bruno@clisp.org>
70942
70943         * modules/c-strstr: New file, from GNU gettext.
70944         * MODULES.html.sh (String handling): Add c-strstr.
70945
70946 2006-08-28  Bruno Haible  <bruno@clisp.org>
70947
70948         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
70949         macros.
70950         Reported by Eric Blake.
70951
70952 2006-08-28  Bruno Haible  <bruno@clisp.org>
70953
70954         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
70955         (VASNPRINTF): Return a string of length > INT_MAX without failing.
70956         * lib/vasprintf.c: Include errno.h, limits.h.
70957         (EOVERFLOW): New fallback definition.
70958         (vasprintf): Test here whether the string length is > INT_MAX.
70959         * lib/vsnprintf.c: Include errno.h, limits.h.
70960         (EOVERFLOW): New fallback definition.
70961         (vsnprintf): Fix bug when generated string was too long for the buffer.
70962         Test here whether the string length is > INT_MAX.
70963
70964 2006-08-28  Bruno Haible  <bruno@clisp.org>
70965
70966         * lib/inttypes_.h (SCNX*): Remove definitions.
70967         Reported by Eric Blake.
70968
70969 2006-08-28  Bruno Haible  <bruno@clisp.org>
70970
70971         * lib/c-strstr.h: New file, from GNU gettext.
70972         * lib/c-strstr.c: New file, from GNU gettext.
70973
70974 2006-08-28  Bruno Haible  <bruno@clisp.org>
70975
70976         * gnulib-tool: Reorder some statements.
70977
70978 2006-08-28  Bruno Haible  <bruno@clisp.org>
70979
70980         * gnulib-tool: New option --makefile-name.
70981         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
70982         $makefile_name.
70983         (func_import): Write $makefile_name to the cache file, and read it from
70984         there unless explicitly specified. Use $makefile_name as file name
70985         instead of Makefile.am. Adjust the recommendations accordingly.
70986
70987 2006-08-28  Bruno Haible  <bruno@clisp.org>
70988
70989         * gnulib-tool (func_verify_module): Check against misapplying patch.
70990
70991 2006-08-28  Bruno Haible  <bruno@clisp.org>
70992
70993         * gnulib-tool (func_relativize, func_relconcat): New functions.
70994         Give an error if --local-dir is given with --update.
70995         Remove trailing slashes from $local_gnulib_dir.
70996         (func_import): Store the relativized $local_gnulib_dir in
70997         gnulib-cache.m4, and read it from there if not specified explicitly.
70998
70999 2006-08-28  Bruno Haible  <bruno@clisp.org>
71000
71001         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
71002         is the current directory. Respect also $local_gnulib_dir.
71003
71004 2006-08-28  Bruno Haible  <bruno@clisp.org>
71005             Simon Josefsson  <jas@extundo.com>
71006
71007         BeOS portability.
71008         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
71009
71010 2006-08-27  Jim Meyering  <jim@meyering.net>
71011
71012         * doc/visibility.texi: Remove duplicate word: "pointer".
71013
71014 2006-08-26  Bruno Haible  <bruno@clisp.org>
71015
71016         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
71017         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
71018         (Makefile.am): Create inttypes.h from inttypes_.h.
71019         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
71020
71021         * modules/imaxabs: New file.
71022
71023         * modules/imaxdiv: New file.
71024
71025 2006-08-26  Bruno Haible  <bruno@clisp.org>
71026
71027         * m4/inttypes.m4: New file.
71028         * m4/_inttypes_h.m4: Remove file.
71029         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
71030         PRI_MACROS_BROKEN.
71031         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
71032
71033         * m4/imaxabs.m4: New file.
71034
71035         * m4/imaxdiv.m4: New file.
71036
71037 2006-08-26  Bruno Haible  <bruno@clisp.org>
71038
71039         * lib/inttypes_.h: New file.
71040         * lib/inttypes.h: Remove file.
71041         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
71042
71043         * lib/imaxabs.c: New file.
71044
71045         * lib/imaxdiv.c: New file.
71046
71047 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71048
71049         New config-h module, so that "make" output needn't be cluttered
71050         by -DHAVE_CONFIG_H.
71051         * MODULES.html.sh (Support for building libraries and executables):
71052         Add config-h.
71053         * modules/config-h: New file.
71054         * gnulib-tool (nl, sed_transform_lib_file): New vars.
71055         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
71056         the config-h module is used.
71057
71058         New configmake module, so that "make" output needn't be cluttered
71059         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
71060         * MODULES.html.sh (Support for building libraries and executables):
71061         Add configmake.
71062         * modules/configmake: New file.
71063
71064 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
71065
71066         * m4/config-h.m4: New file.
71067
71068 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71069
71070         * config/srclist.txt: Add elisp-comp.
71071
71072 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
71073
71074         * MODULES.html.sh (Support for building libraries and executables):
71075         Add elisp-comp.
71076         * build-aux/elisp-comp: New file.
71077         * modules/elisp-comp: New file.
71078
71079 2006-08-24  Bruno Haible  <bruno@clisp.org>
71080
71081         * gnulib-tool (func_create_testdir): Use non-default values of
71082         sourcebase and m4base.
71083
71084 2006-08-24  Bruno Haible  <bruno@clisp.org>
71085
71086         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
71087         HTML structure.
71088
71089 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
71090
71091         * modules/openat (Depends-on): Add lchown.
71092
71093 2006-08-23  Bruno Haible  <bruno@clisp.org>
71094
71095         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
71096         of gl_LOCK_EARLY instead of gl_LOCK.
71097
71098 2006-08-23  Bruno Haible  <bruno@clisp.org>
71099
71100         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
71101         on OSF/1 to no.
71102         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
71103
71104 2006-08-23  Bruno Haible  <bruno@clisp.org>
71105
71106         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
71107         as unusable.
71108
71109         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
71110         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
71111         (gl_LOCK): New macro.
71112
71113 2006-08-22  Simon Josefsson  <jas@extundo.com>
71114
71115         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
71116         to md5 module.
71117
71118 2006-08-22  Simon Josefsson  <jas@extundo.com>
71119
71120         * MODULES.html.sh: Add "Support for maintaining and release
71121         projects".
71122
71123         * build-aux/gnupload: New file, from coreutils.
71124
71125 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71126
71127         Avoid the need for AC_LIBSOURCES in m4 macros.
71128         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
71129         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
71130         * modules/check-version (EXTRA_DIST): Add check-version.h.
71131         * modules/crc (EXTRA_DIST): Add crc.h.
71132         * modules/des (EXTRA_DIST): Add des.h.
71133         * modules/gc (EXTRA_DIST): Add gc.h.
71134         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
71135         * modules/getline (EXTRA_DIST): Add getline.h.
71136         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
71137         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
71138         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
71139         * modules/md2 (EXTRA_DIST): Add md2.h.
71140         * modules/md4 (EXTRA_DIST): Add md4.h.
71141         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
71142         * modules/read-file (EXTRA_DIST): Add read-file.h.
71143         * modules/readline (EXTRA_DIST): Add readline.h.
71144         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
71145         rijndael-api-fst.h.
71146
71147 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71148
71149         * m4/rijndael.m4 (gl_ARCFOUR):
71150         * m4/arctwo.m4 (gl_ARCTWO):
71151         * m4/check-version.m4 (gl_CHECK_VERSION):
71152         * m4/crc.m4 (gl_CRC):
71153         * m4/des.m4 (gl_DES):
71154         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
71155         * m4/gc.m4 (gl_GC):
71156         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
71157         * m4/getline.m4 (gl_FUNC_GETLINE):
71158         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
71159         * m4/hmac-md5.m4 (gl_HMAC_MD5):
71160         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
71161         * m4/md2.m4 (gl_MD2):
71162         * m4/md4.m4 (gl_MD4):
71163         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
71164         * m4/read-file.m4 (gl_FUNC_READ_FILE):
71165         * m4/readline.m4 (gl_FUNC_READLINE):
71166         * m4/rijndael.m4 (gl_RIJNDAEL):
71167         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
71168         to get the necessary .h files and whatnot.
71169
71170 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
71171
71172         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
71173         gnulib rather than the other way around.
71174         * config/srclistvars.sh (COREUTILS): Remove.
71175
71176 2006-08-22  Jim Meyering  <jim@meyering.net>
71177
71178         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
71179
71180         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
71181
71182 2006-08-22  Eric Blake  <ebb9@byu.net>
71183
71184         * modules/regexprops-generic: New file.
71185         * MODULES.html.sh (Support for building documentation): List it.
71186
71187 2006-08-22  Eric Blake  <ebb9@byu.net>
71188
71189         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
71190         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
71191         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
71192         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
71193
71194 2006-08-22  Bruno Haible  <bruno@clisp.org>
71195
71196         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
71197         and lib_LTLIBRARIES like the other lib_* variables.
71198
71199 2006-08-22  Bruno Haible  <bruno@clisp.org>
71200
71201         * build-aux/x-to-1.in: New file, from GNU gettext.
71202
71203 2006-08-22  Bruno Haible  <bruno@clisp.org>
71204
71205         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
71206         <utmpx.h> exists.
71207
71208 2006-08-22  Bruno Haible  <bruno@clisp.org>
71209
71210         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
71211         <utmpx.h> exists.
71212
71213 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71214
71215         BeOS portability.
71216         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
71217         exist.
71218         Problem reported by Bruno Haible.
71219
71220 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71221
71222         Avoid the need for AC_LIBSOURCES in m4 macros.
71223         * modules/acl (EXTRA_DIST): Add acl.h.
71224         * modules/argmatch (Files): Add m4/argmatch.m4.
71225         (configure.ac): Add gl_ARGMATCH.
71226         (EXTRA_DIST): Renamed from lib_SOURCES, for
71227         consistency with the other modules.  Remove argmatch.c.
71228         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
71229         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
71230         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
71231         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
71232         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
71233         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
71234         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
71235         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
71236         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
71237         * modules/closeout (EXTRA_DIST): Add closeout.h.
71238         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
71239         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
71240         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
71241         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
71242         dirname.h; remove basename.c and stripslash.c.
71243         * modules/exclude (EXTRA_DIST): Add exclude.h.
71244         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
71245         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
71246         * modules/file-type (EXTRA_DIST): Add file-type.h.
71247         * modules/filemode (EXTRA_DIST): Add filemode.h.
71248         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
71249         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
71250         * modules/fpending (EXTRA_DIST): Add __fpending.h.
71251         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
71252         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
71253         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
71254         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
71255         * modules/getdate (EXTRA_DIST): Add getdate.c.
71256         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
71257         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
71258         * modules/getpass (EXTRA_DIST): Add getpass.h.
71259         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
71260         * modules/group-member (EXTRA_DIST): Add group-member.h.
71261         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
71262         * modules/hash (EXTRA_DIST): Add hash.h.
71263         * modules/human (EXTRA_DIST): Add human.h.
71264         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
71265         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
71266         * modules/lchown (EXTRA_DIST): Add lchown.h.
71267         * modules/long-options (EXTRA_DIST): Add long-options.h.
71268         * modules/lstat (EXTRA_DIST): Add lstat.h.
71269         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
71270         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
71271         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
71272         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
71273         * modules/memxor (EXTRA_DIST): Add memxor.h.
71274         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
71275         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
71276         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
71277         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
71278         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
71279         * modules/physmem (EXTRA_DIST): Add physmem.h.
71280         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
71281         * modules/posixver (EXTRA_DIST): Add posixver.h.
71282         * modules/quote (EXTRA_DIST): Add quote.h.
71283         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
71284         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
71285         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
71286         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
71287         regex_internal.h regexec.c.
71288         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
71289         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
71290         * modules/same (EXTRA_DIST): Add same.h.
71291         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
71292         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
71293         * modules/savedir (EXTRA_DIST): Add savedir.h.
71294         * modules/sha1 (EXTRA_DIST): Add sha1.h.
71295         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
71296         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
71297         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
71298         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
71299         * modules/strdup (EXTRA_DIST): Add strdup.h.
71300         * modules/strftime (EXTRA_DIST): Add strftime.h.
71301         * modules/strndup (EXTRA_DIST): Add strndup.h.
71302         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
71303         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
71304         * modules/time_r (EXTRA_DIST): Add time_r.h.
71305         * modules/timespec (EXTRA_DIST): Add timespec.h.
71306         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
71307         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
71308         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
71309         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
71310         * modules/userspec (EXTRA_DIST): Add userspec.h.
71311         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
71312         * modules/utimens (EXTRA_DIST): Add utimens.h.
71313         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
71314         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
71315         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
71316         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
71317         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
71318         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
71319         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
71320         * modules/yesno (EXTRA_DIST): Add yesno.h.
71321
71322 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
71323
71324         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
71325
71326         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
71327         * m4/dev-ino.m4, same-inode.m4: Remove.
71328
71329         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
71330         * m4/acl.m4 (AC_FUNC_ACL):
71331         * m4/backupfile.m4 (gl_BACKUPFILE):
71332         * m4/c-strtod.m4 (gl_C99_STRTOLD):
71333         * m4/canon-host.m4 (gl_CANON_HOST):
71334         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
71335         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
71336         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
71337         * m4/cloexec.m4 (gl_CLOEXEC):
71338         * m4/close-stream.m4 (gl_CLOSE_STREAM):
71339         * m4/closeout.m4 (gl_CLOSEOUT):
71340         * m4/dirfd.m4 (gl_FUNC_DIRFD):
71341         * m4/dirname.m4 (gl_DIRNAME):
71342         * m4/exclude.m4 (gl_EXCLUDE):
71343         * m4/exitfail.m4 (gl_EXITFAIL):
71344         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
71345         * m4/file-type.m4 (gl_FILE_TYPE):
71346         * m4/filemode.m4 (gl_FILEMODE):
71347         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
71348         * m4/fpending.m4 (gl_FUNC_FPENDING):
71349         * m4/fprintftime.m4 (gl_FPRINTFTIME):
71350         * m4/fts.m4 (gl_FUNC_FTS):
71351         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
71352         * m4/getdate.m4 (gl_GETDATE):
71353         * m4/gethrxtime.m4 (gl_GETHRXTIME):
71354         * m4/getpagesize.m4 (gl_GETPAGESIZE):
71355         * m4/getpass.m4 (gl_FUNC_GETPASS):
71356         * m4/gettime.m4 (gl_GETTIME):
71357         * m4/getugroups.m4 (gl_GETUGROUPS):
71358         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
71359         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
71360         * m4/hard-locale.m4 (gl_HARD_LOCALE):
71361         * m4/hash.m4 (gl_HASH):
71362         * m4/idcache.m4 (gl_IDCACHE):
71363         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
71364         * m4/lchown.m4 (gl_FUNC_LCHOWN):
71365         * m4/long-options.m4 (gl_LONG_OPTIONS):
71366         * m4/lstat.m4 (gl_FUNC_LSTAT):
71367         * m4/md5.m4 (gl_MD5):
71368         * m4/memcasecmp.m4 (gl_MEMCASECMP):
71369         * m4/memcoll.m4 (gl_MEMCOLL):
71370         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
71371         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
71372         * m4/memxor.m4 (gl_MEMXOR):
71373         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
71374         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
71375         * m4/modechange.m4 (gl_MODECHANGE):
71376         * m4/mountlist.m4 (gl_MOUNTLIST):
71377         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71378         * m4/openat.m4 (gl_FUNC_OPENAT):
71379         * m4/pathmax.m4 (gl_PATHMAX):
71380         * m4/physmem.m4 (gl_PHYSMEM):
71381         * m4/posixtm.m4 (gl_POSIXTM):
71382         * m4/posixver.m4 (gl_POSIXVER):
71383         * m4/quote.m4 (gl_QUOTE):
71384         * m4/quotearg.m4 (gl_QUOTEARG):
71385         * m4/readtokens.m4 (gl_READTOKENS):
71386         * m4/readutmp.m4 (gl_READUTMP):
71387         * m4/regex.m4 (gl_REGEX):
71388         * m4/safe-read.m4 (gl_SAFE_READ):
71389         * m4/safe-write.m4 (gl_SAFE_WRITE):
71390         * m4/same.m4 (gl_SAME):
71391         * m4/save-cwd.m4 (gl_SAVE_CWD):
71392         * m4/savedir.m4 (gl_SAVEDIR):
71393         * m4/settime.m4 (gl_SETTIME):
71394         * m4/sha1.m4 (gl_SHA1):
71395         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
71396         * m4/stat-macros.m4 (gl_STAT_MACROS):
71397         * m4/stat-time.m4 (gl_STAT_TIME):
71398         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
71399         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
71400         * m4/strdup.m4 (gl_FUNC_STRDUP):
71401         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
71402         * m4/strndup.m4 (gl_FUNC_STRNDUP):
71403         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
71404         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
71405         * m4/time_r.m4 (gl_TIME_R):
71406         * m4/timespec.m4 (gl_TIMESPEC):
71407         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
71408         * m4/unlinkdir.m4 (gl_UNLINKDIR):
71409         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
71410         * m4/userspec.m4 (gl_USERSPEC):
71411         * m4/utimecmp.m4 (gl_UTIMECMP):
71412         * m4/utimens.m4 (gl_UTIMENS):
71413         * m4/xalloc.m4 (gl_XALLOC):
71414         * m4/xgetcwd.m4 (gl_XGETCWD):
71415         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
71416         * m4/xreadlink.m4 (gl_XREADLINK):
71417         * m4/xstrtod.m4 (gl_XSTRTOD):
71418         * m4/yesno.m4 (gl_YESNO):
71419         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
71420         to get the necessary .h files and whatnot.
71421
71422 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
71423             Bruno Haible  <bruno@clisp.org>
71424
71425         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
71426         /bin/sh understanding of '!' conditional negation.
71427
71428 2006-08-21  Jim Meyering  <jim@meyering.net>
71429
71430         * modules/openat (Depends-on): Really alphabetize.
71431
71432         * modules/acl (Depends-on): Add error and quote.
71433
71434         * check-module (find_included_lib_files): Add at-func.c to the
71435         ok-to-include-more-than-once white list.
71436
71437         * modules/openat (Depends-on): Add lstat.  Alphabetize.
71438
71439 2006-08-21  Bruno Haible  <bruno@clisp.org>
71440
71441         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71442         Emit a pkgdata_DATA variable only if some snippets add contents to it.
71443         Reported by Martin Lambers <marlam@marlam.de>.
71444
71445 2006-08-21  Bruno Haible  <bruno@clisp.org>
71446
71447         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
71448         specify an installation location, don't emit a noinst_LIBRARIES or
71449         noinst_LTLIBRARIES assignment.
71450
71451 2006-08-21  Bruno Haible  <bruno@clisp.org>
71452
71453         BeOS portability.
71454         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
71455         BeOS has mbrtowc() but no <wctype.h>.
71456
71457 2006-08-21  Bruno Haible  <bruno@clisp.org>
71458
71459         BeOS portability.
71460         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
71461         exist.
71462
71463 2006-08-21  Bruno Haible  <bruno@clisp.org>
71464
71465         BeOS portability.
71466         * lib/mbchar.h: Include <wctype.h> only if it exists.
71467
71468 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71469
71470         Remove files that are no longer needed by their respective modules.
71471         * m4/obstack.m4: Remove.
71472         * m4/strerror_r.m4: Remove.
71473         * m4/uint32_t.m4: Remove.
71474         * m4/uintptr_t.m4: Remove.
71475         * m4/ullong_max.m4: Remove.
71476         * m4/xstrtoimax.m4: Remove.
71477         * m4/xstrtoumax.m4: Remove.
71478
71479         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
71480         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
71481         dependencies now capture this.
71482
71483         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
71484         Do not use AC_LIBSOURCES, since gnulib modules now do this.
71485         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
71486         * m4/human.m4 (gl_HUMAN): Likewise.
71487         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
71488         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
71489
71490         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
71491
71492         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
71493         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
71494         stdint.
71495         * m4/human.m4 (gl_HUMAN): Likewise.
71496         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
71497         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
71498         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
71499         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
71500         * m4/xstrtol (gl_XSTRTOL): Likewise.
71501
71502         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
71503         AC_TYPE_LONG_LONG_INT.
71504         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
71505         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
71506         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
71507         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
71508
71509         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
71510         on stdbool.
71511
71512         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
71513         (gl_PREREQ_XSTRTOUL): Remove.
71514
71515         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
71516
71517         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
71518         mode.
71519
71520 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71521
71522         Add and change modules to make it easier for coreutils to use
71523         gnulib-tool.
71524         * modules/backupfile (Files): Remove m4/d-ino.m4.
71525         (Depends-on): Add d-ino.
71526         * modules/cycle-check (Depends-on): Add stdint.
71527         (lib_SOURCES): Add cycle-check.h.
71528         * modules/d-ino: New module.
71529         * modules/d-type: New module.
71530         * modules/error (Files): Remove m4/strerror_r.m4.
71531         * modules/filemode (Files): Add m4/st_dm_mode.m4.
71532         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
71533         m4/inttypes_h.m4, m4/uintmax_t.m4.
71534         (Depends-on): Add stdint.
71535         (lib_SOURCES): Add fsusage.h.
71536         * modules/getcwd (Files): Remove d-ino.m4.
71537         (Depends-on): Add d-ino.
71538         * modules/getndelim2 (Depends-on): Add stdint.
71539         * modules/glob (Files): Remove m4/d-type.m4.
71540         (Depends-on): Add d-type.
71541         * modules/host-os: New module.
71542         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
71543         m4/inttypes_h.m4, m4/uintmax_t.m4.
71544         * Depends-on: Add stdint.
71545         (lib_SOURCES): Add human.h.
71546         * modules/inttostr (Files): Remove m4/intmax_t.m4,
71547         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
71548         m4/uintmax_t.m4, m4/ulonglong.m4.
71549         (Depends-on): Add stdint.
71550         (EXTRA_DIST): Add inttostr.h.
71551         * modules/lchmod: New module.
71552         * modules/link-follow: New module.
71553         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
71554         (Depends-on): Add lchmod.
71555         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
71556         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
71557         (Depends-on): Add stdint.
71558         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
71559         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
71560         (Depends-on): Add stdint.
71561         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
71562         * modules/perl: New module.
71563         * modules/regex (Depends-on): Add stdint.
71564         * modules/rmdir-errno: New module.
71565         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
71566         m4/intmax_t.m4.
71567         (Depends-on): Add stdint.
71568         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
71569         m4/uintmax_t.m4.
71570         (Depends-on): Add stdint.
71571         * modules/unlink-busy: New module.
71572         * modules/utimecmp (Depends-on): Add stdint.
71573         * modules/uptime: New module.
71574         * modules/winsz-ioctl: New module.
71575         * modules/winsz-termios: New module.
71576         * modules/xnanosleep (Depends-on): Add nanosleep.
71577         * modules/ullong_max: Remove.
71578         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
71579         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
71580         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
71581         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
71582         (Depends-on): Add inttypes.
71583         (lib_SOURCES): Add xstrtol.h.
71584         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
71585         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
71586         * MODULES.html.sh: Move 'assert' into the assert section.
71587         Move 'dummy' into the linking section.
71588         Remove ullong_max.
71589         Add section for compatibility checks for POSIX:2001 functions,
71590         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
71591         winsz-ioctl, and winsz-termios into it.
71592         Add lchmod.
71593         Add top-level Misc section and put host-os, perl, and uptime
71594         into it.
71595
71596 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
71597
71598         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
71599         now assume the stdint module.  Do not include inttypes.h.
71600         * lib/fsusage.h: Likewise.
71601         * lib/getndelim2.c: Likewise.
71602         * lib/human.h: Likewise.
71603         * lib/inttostr.h: Likewise.
71604         * lib/obstack.c: Likewise.
71605         * lib/regex_internal.h: Likewise.
71606         * lib/tempname.c: Likewise.
71607         * lib/utimecmp.c: Likewise.
71608         * lib/xstrtol.h: Likewise.
71609
71610         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
71611
71612         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
71613         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
71614         * lib/xtime.h: Likewise.
71615
71616 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71617
71618         * modules/openat (Files): Add lib/fchmodat.c.
71619         Fixes problem reported by Jay Youngman.
71620
71621 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
71622
71623         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
71624         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
71625
71626 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
71627             Bruno Haible  <bruno@clisp.org>
71628
71629         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
71630         and is a script that invokes bison. Tighten the code. Add comments.
71631
71632 2006-08-18  Jim Meyering  <jim@meyering.net>
71633
71634         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
71635         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
71636         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
71637         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
71638
71639 2006-08-18  Bruno Haible  <bruno@clisp.org>
71640
71641         * modules/bison-i18n: New file.
71642         * MODULES.html.sh (Internationalization functions): Add it.
71643
71644 2006-08-18  Bruno Haible  <bruno@clisp.org>
71645
71646         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
71647         sys/statvfs.h. When getmntinfo was found, check its declaration and
71648         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
71649
71650 2006-08-18  Bruno Haible  <bruno@clisp.org>
71651
71652         * m4/bison-i18n.m4: New file, from bison.
71653
71654 2006-08-18  Bruno Haible  <bruno@clisp.org>
71655
71656         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
71657         (ME_DUMMY): Treat "kernfs" as a dummy.
71658         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
71659
71660 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71661
71662         Update from coreutils.
71663
71664         2006-08-15  Jim Meyering  <jim@meyering.net>
71665
71666         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
71667
71668         2006-01-17  Jim Meyering  <jim@meyering.net>
71669
71670         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
71671
71672         2006-01-11  Jim Meyering  <jim@meyering.net>
71673
71674         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
71675         Check for the lchmod function.
71676
71677 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
71678
71679         Update from coreutils.
71680
71681         * lib/__fpending.h: Add copyright notice.
71682         * lib/fprintftime.h: Likewise.
71683         * lib/savedir.c: Use (C) in copyright notice.
71684         * lib/savedir.h: Likewise.
71685
71686         2006-08-15  Jim Meyering  <jim@meyering.net>
71687
71688         * lib/at-func.c: New file, with the logic of all emulated at-functions.
71689         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
71690         in support of the EXPECTED_ERRNO macro.
71691         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
71692         definitions.  Instead, define the appropriate symbols and include
71693         "at-func.c".
71694         * lib/mkdirat.c (mkdirat): Likewise.
71695         * lib/fchmodat.c (fchmodat): Likewise.
71696         (ENOSYS): Remove definition.
71697         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
71698         it.  Don't include "unistd--.h" -- it wasn't ever used.
71699
71700         2006-01-17  Jim Meyering  <jim@meyering.net>
71701
71702         Rewrite fts.c not to change the current working directory,
71703         by using openat, fstatat, fdopendir, etc..
71704
71705         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
71706         (HAVE_OPENAT_SUPPORT): Define.
71707         [_LIBC] (fchdir): Don't undef or define; no longer used.
71708         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
71709         Now, this `function' always succeeds, and consumes its file descriptor
71710         parameter -- so callers must not close such FDs.  Update callers.
71711         (diropen_fd, opendirat, cwd_advance_fd): New functions.
71712         (diropen): Add parameter, SP.  Adjust all callers.
71713         Implement using diropen_fd, rather than open.
71714         (fts_open): Initialize new member, fts_cwd_fd.
71715         Remove fts_rft-setting code.
71716         (fts_close): Close fts_cwd_fd, if necessary.
71717         (__opendir2): Define in terms of opendir or opendirat,
71718         depending on whether the FST_NOCHDIR flag is set.
71719         (fts_build): Since fts_safe_changedir consumes its FD, and since
71720         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
71721         and close the dup'd file descriptor upon failure.
71722         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
71723         (fts_safe_changedir): Tweak semantics to reflect that this function
71724         now calls cwd_advance_fd and hence consumes its FD argument.
71725         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
71726         [struct FTS] (fts_rft): Remove now-unused member.
71727         [struct FTS] (fts_cycle.state): Improve comment.
71728
71729         * lib/openat.c (openat_needs_fchdir): New function.
71730         * lib/openat.h (openat_needs_fchdir): Declare it.
71731
71732 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
71733
71734         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
71735         Problem and fix reported by Pádraig Brady in
71736         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
71737
71738 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71739
71740         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
71741
71742 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71743
71744         * lib/memcoll.c (memcoll): Optimize for the common case where the
71745         arguments are bytewise equal.
71746
71747 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
71748
71749         * doc/regexprops-generic.texi: Add a copyright notice.
71750
71751 2006-08-15  Bruno Haible  <bruno@clisp.org>
71752
71753         * modules/tmpdir (License): Change to LGPL.
71754
71755 2006-08-15  Bruno Haible  <bruno@clisp.org>
71756
71757         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
71758         module.
71759
71760 2006-08-14  Simon Josefsson  <jas@extundo.com>
71761
71762         * config/srclist.txt: Add gnupload.
71763
71764 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71765
71766         Change copyright notice from LGPL 2 to GPL 2, since that's the
71767         standard form used in the gnulib repository.
71768         * tests/test-lock.c: Likewise.
71769         * tests/test-stdint.c: Likewise.
71770         * tests/test-tls.c: Likewise.
71771
71772         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
71773         prelude-manager.  User shorter URLs for GNU projects, without '?'.
71774         Add copyright notice.
71775
71776         * check-module: Add copyright notice.  Output a copyright
71777         notice if "--version" is specified.
71778         * modules/COPYING: New file.
71779         * tests/test-getaddrinfo.c: Add copyright notice.
71780         * tests/test-verify.c: Likewise.
71781
71782 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71783
71784         Change copyright notice from LGPL 2 to GPL 2, since that's the
71785         standard form used in the gnulib repository.
71786         * lib/lock.c: LGPL -> GPL.
71787         * lib/lock.h: Likewise.
71788         * lib/strnlen1.c: Likewise.
71789         * lib/strnlen1.h: Likewise.
71790         * lib/tls.c: Likewise.
71791         * lib/tls.h: Likewise.
71792         * lib/tmpdir.c: Likewise.
71793
71794         * lib/TODO: Remove; this belongs only in coreutils.
71795
71796 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71797
71798         Add copyright notices to long-enough files that lack them, since
71799         otherwise the files aren't clearly free.  Use the same notice that
71800         getdate.texi already uses.
71801         * doc/alloca-opt.texi: Add copyright notice.
71802         * doc/alloca.texi: Likewise.
71803         * doc/ctime.texi: Likewise.
71804         * doc/functions.texi: Likewise.
71805         * doc/gcd.texi: Likewise.
71806         * doc/gnulib-tool.texi: Likewise.
71807         * doc/inet_ntoa.texi: Likewise.
71808         * doc/visibility.texi: Likewise.
71809
71810         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
71811         * doc/quote.texi: Add copyright notice.
71812
71813         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
71814         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
71815         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
71816         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
71817         is now obsolete, and give a pointer to the Sun list.
71818         Add copyright notice.
71819
71820 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
71821
71822         * config/srclistvars.sh: Add copyright notice.
71823
71824 2006-08-14  Eric Blake  <ebb9@byu.net>
71825
71826         Import the following change from libc:
71827
71828         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
71829
71830         Upstream bug 2997.
71831         * lib/misc/error.c: Add space between program name and message if file
71832         name is missing.
71833
71834 2006-08-12  Karl Berry  <karl@gnu.org>
71835
71836         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
71837         remove, these originate in gnulib now.
71838
71839 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71840
71841         * doc/Makefile (standards.info standards.html standards.dvi):
71842         Also depend on make-stds.texi.
71843
71844 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
71845
71846         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
71847         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
71848
71849         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
71850         in wchar_t.  Problem reported by Eric Blake.
71851
71852         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
71853         LEN is smaller than SIZE.  Suggested by Bruno Haible.
71854         Also, help the compiler to keep LEN in a register.
71855
71856 2006-08-11  Eric Blake  <ebb9@byu.net>
71857
71858         * users.txt: Sort.  Add tar.
71859
71860 2006-08-11  Bruno Haible  <bruno@clisp.org>
71861
71862         * users.txt: New file.
71863
71864 2006-08-11  Bruno Haible  <bruno@clisp.org>
71865
71866         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
71867         before <wchar.h>. Needed for OSF/1 and BSD/OS.
71868
71869 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
71870
71871         * modules/snprintf (Depends-on): Remove minmax.
71872         (Maintainer): Add self and Bruno.
71873
71874 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
71875
71876         * lib/.cppi-disable: Add snprintf.h, socket_.h.
71877         * lib/snprintf.c: Include <errno.h> and <limits.h>.
71878         (EOVERFLOW): Define if the system does not.
71879         Do not include "minmax.h"; it wasn't used.
71880         (snprintf): Don't assume size_t promotes to an unsigned type.
71881         Fix bug when generated string was too long for the buffer: the
71882         buffer's contents are supposed to be the initial prefix of the
71883         output.  Don't assume vasnprintf returns EOVERFLOW if the size
71884         exceeds INT_MAX; do the check ourselves.
71885
71886         Import the following changes from libc:
71887
71888         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
71889
71890         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
71891         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
71892         set wc to the byte which couldn't be converted.
71893         (re_string_reconstruct): Don't clear valid_raw_len before calling
71894         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
71895         tip_context using re_string_context_at.
71896
71897         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
71898
71899         * lib/posix/regex.h: g++ still cannot handled [restrict].
71900
71901         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
71902
71903         * lib/posix/regex.h: Remove special handling for VMS.
71904
71905 2006-08-10  Jim Meyering  <jim@meyering.net>
71906
71907         * modules/same-inode: New module.
71908         * modules/dev-ino: New module.
71909         * modules/cycle-check: Depend on these modules, rather than simply
71910         including their .h files.
71911         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
71912         required via m4/cycle-check.m4.
71913         * modules/same: Depend on new same-inode module, rather than
71914         including same-inode.h.
71915         * modules/chdir-safer: New file.
71916
71917         * modules/chown (Depends-on): Add stat-macros.
71918
71919 2006-08-10  Jim Meyering  <jim@meyering.net>
71920
71921         * m4/cycle-check.m4: New file.
71922         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
71923         * m4/dev-ino.m4, m4/same-inode.m4: New files.
71924
71925 2006-08-10  Eric Blake  <ebb9@byu.net>
71926
71927         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
71928         in from original proposal.
71929
71930 2006-08-10  Eric Blake  <ebb9@byu.net>
71931         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
71932
71933         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
71934         namespace.
71935
71936 2006-08-10  Bruno Haible  <bruno@clisp.org>
71937
71938         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
71939         as well.
71940
71941 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71942
71943         Sync from coreutils.
71944
71945         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
71946
71947         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
71948         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
71949
71950 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71951
71952         * modules/restrict: Remove; no longer needed now that we assume
71953         Autoconf 2.59 or later.
71954         * MODULES.html.sh: Remove 'restrict'.
71955         * modules/argp (Depends-on): Remove 'restrict'.
71956         * modules/base64 (Depends-on): Likewise.
71957         * modules/gc (Depends-on): Likewise.
71958         * modules/getaddrinfo (Depends-on): Likewise.
71959         * modules/glob (Depends-on): Likewise.
71960         * modules/inet_ntop (Depends-on): Likewise.
71961         * modules/inet_pton (Depends-on): Likewise.
71962         * modules/memxor (Depends-on): Likewise.
71963         * modules/regex (Depends-on): Likewise.
71964         * modules/strtok_r (Depends-on): Likewise.
71965         * modules/time_r (Depends-on): Likewise.
71966
71967 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
71968
71969         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
71970         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
71971         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
71972         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
71973         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
71974         * m4/memxor.m4 (gl_MEMXOR): Likewise.
71975         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
71976         gl_C_RESTRICT replaced by AC_C_RESTRICT.
71977
71978         Merge from coreutils.
71979         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
71980         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
71981         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
71982         * m4/time_r.m4 (gl_TIME_R): Likewise.
71983
71984 2006-08-09  Karl Berry  <karl@gnu.org>
71985
71986         * config/srclist.txt: no more gettext-tools, per Bruno.
71987
71988 2006-08-08  Eric Blake  <ebb9@byu.net>
71989
71990         * modules/verror: New module.
71991         * MODULES.html.sh: Document it.
71992
71993 2006-08-08  Eric Blake  <ebb9@byu.net>
71994
71995         * lib/verror.h, lib/verror.c: New files.
71996
71997 2006-08-08  Eric Blake  <ebb9@byu.net>
71998
71999         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
72000         verror_at_line output complies with GNU Coding Standards even when
72001         file is NULL.
72002
72003 2006-08-07  Bruno Haible  <bruno@clisp.org>
72004
72005         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
72006         versions of AIX.
72007         Reported by Ralf Wildenhues.
72008
72009 2006-08-07  Bruno Haible  <bruno@clisp.org>
72010
72011         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
72012         in an AC_DEFUN. Needed so that the autoconf snippets can use
72013         AC_REQUIRE.
72014
72015 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72016
72017         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72018         Initialize pkgdata_DATA.
72019         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
72020         overriding it.
72021
72022 2006-08-06  Eric Blake  <ebb9@byu.net>
72023
72024         * lib/error.h: Fold in some upstream changes from glibc.
72025         * lib/error.c: Likewise.
72026
72027 2006-08-04  Bruno Haible  <bruno@clisp.org>
72028
72029         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72030         Make the mostlyclean-local rule depend on mostlyclean-generic.
72031         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
72032
72033 2006-07-31  Bruno Haible  <bruno@clisp.org>
72034
72035         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
72036         <stdlib.h>, <string.h>.
72037
72038 2006-07-30  Bruno Haible  <bruno@clisp.org>
72039
72040         * modules/readlink (License): Change to LGPL.
72041
72042 2006-07-30  Bruno Haible  <bruno@clisp.org>
72043
72044         * modules/javaversion (Makefile.am): Distribute javaversion.java and
72045         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
72046         set PKGDATADIR to point to it.
72047
72048 2006-07-30  Bruno Haible  <bruno@clisp.org>
72049
72050         * modules/csharpexec (configure.ac): Comment out macro invocation.
72051         * modules/javaexec (configure.ac): Likewise.
72052         * modules/javacomp-script (configure.ac): Likewise.
72053
72054         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
72055
72056 2006-07-30  Bruno Haible  <bruno@clisp.org>
72057
72058         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
72059         linked-list.
72060
72061 2006-07-30  Bruno Haible  <bruno@clisp.org>
72062
72063         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
72064
72065 2006-07-30  Bruno Haible  <bruno@clisp.org>
72066
72067         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
72068         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
72069         get removed.
72070
72071 2006-07-29  Bruno Haible  <bruno@clisp.org>
72072
72073         Make it possible for gnulib-tool to work with locally modified or
72074         augmented gnulib repositories.
72075         * gnulib-tool (func_usage): Document --local-dir option.
72076         (local_gnulib_dir): New variable.
72077         Handle --local-dir option.
72078         (func_lookup_file): New function.
72079         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
72080         (func_get_description, func_get_filelist, func_get_description,
72081         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
72082         func_get_automake_snippet, func_get_include_directive,
72083         func_get_license, func_get_maintainer): Use func_lookup_file.
72084         (func_import, func_create_testdir): Use func_lookup_file.
72085
72086 2006-07-29  Bruno Haible  <bruno@clisp.org>
72087
72088         * modules/setenv (Depends-on): Add unistd.
72089
72090 2006-07-29  Bruno Haible  <bruno@clisp.org>
72091
72092         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
72093
72094 2006-07-29  Bruno Haible  <bruno@clisp.org>
72095
72096         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
72097
72098 2006-07-29  Bruno Haible  <bruno@clisp.org>
72099
72100         * gnulib-tool (import, update): If there is no Makefile.am, look at
72101         aclocal.m4, instead of bailing out.
72102
72103 2006-07-29  Bruno Haible  <bruno@clisp.org>
72104
72105         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
72106         Categorize the options by when they are useful.
72107
72108 2006-07-29  Bruno Haible  <bruno@clisp.org>
72109
72110         * gnulib-tool (func_usage): Document option --no-libtool.
72111         Handle option --no-libtool.
72112         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
72113         for changed semantics of $libtool variable.
72114         (func_import): Likewise. If libtool is not used, show this through
72115         an option --no-libtool.
72116         (func_create_testdir): Update.
72117
72118 2006-07-29  Bruno Haible  <bruno@clisp.org>
72119
72120         * gnulib-tool (func_import): Extend error message about missing
72121         --doc-base.
72122
72123 2006-07-29  Bruno Haible  <bruno@clisp.org>
72124
72125         * gnulib-tool (func_import): Don't create the $docbase directory if
72126         there is no file to store there.
72127
72128 2006-07-29  Bruno Haible  <bruno@clisp.org>
72129
72130         * gnulib-tool (autoconf_minversion): If a --dir option is given and
72131         relevant, look for configure.ac there, not in the current directory.
72132         Also use a simple search for AC_PREREQ, not "autoconf --trace".
72133
72134 2006-07-29  Bruno Haible  <bruno@clisp.org>
72135
72136         * gnulib-tool (SORT): New variable.
72137         (func_usage): Undocument --assume-autoconf option.
72138         Remove --assume-autoconf option handling.
72139         (autoconf_minversion): Determine from the contents of configure.ac.
72140         (func_import): Remove autoconf_minversion handling.
72141         Suggested by Eric Blake.
72142
72143 2006-07-29  Bruno Haible  <bruno@clisp.org>
72144
72145         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
72146
72147 2006-07-29  Bruno Haible  <bruno@clisp.org>
72148
72149         * config/srclist.txt (*setenv.[ch]): Remove rules.
72150
72151 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72152
72153         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
72154
72155 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72156
72157         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
72158         arpa/inet.h.
72159
72160 2006-07-28  Simon Josefsson  <jas@extundo.com>
72161
72162         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
72163         * modules/inet_pton (Depends-on): Likewise.
72164
72165 2006-07-28  Simon Josefsson  <jas@extundo.com>
72166
72167         * m4/netinet_in_h.m4: New file.
72168
72169 2006-07-28  Simon Josefsson  <jas@extundo.com>
72170
72171         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
72172         #include's.
72173
72174 2006-07-28  Simon Josefsson  <jas@extundo.com>
72175
72176         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
72177         #include's.
72178
72179 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
72180
72181         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
72182         setgid on directories only if they set these bits.
72183         * lib/modechange.h: Remove obsolete comment about masks.
72184
72185 2006-07-28  Eric Blake  <ebb9@byu.net>
72186
72187         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
72188         macro expansion.
72189
72190 2006-07-28  Bruno Haible  <bruno@clisp.org>
72191
72192         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
72193
72194 2006-07-28  Bruno Haible  <bruno@clisp.org>
72195
72196         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
72197
72198 2006-07-28  Bruno Haible  <bruno@clisp.org>
72199
72200         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
72201         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
72202         Define fallbacks.
72203         Avoids link error on FreeBSD 4.x.
72204         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
72205
72206         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
72207         encoding.
72208         * lib/mbswidth.c (iswcntrl): Likewise.
72209
72210 2006-07-27  Bruno Haible  <bruno@clisp.org>
72211
72212         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
72213         test.
72214
72215 2006-07-27  Bruno Haible  <bruno@clisp.org>
72216
72217         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
72218         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
72219         defined.
72220
72221 2006-07-26  Eric Blake  <ebb9@byu.net>
72222
72223         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
72224
72225 2006-07-26  Eric Blake  <ebb9@byu.net>
72226
72227         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
72228         like mingw that lack mkstemp.
72229         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
72230         avoid compilation warning on mingw.
72231
72232 2006-07-26  Bruno Haible  <bruno@clisp.org>
72233
72234         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
72235         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
72236         INT_FAST*_MIN, INTPTR_MIN.
72237
72238 2006-07-25  Bruno Haible  <bruno@clisp.org>
72239
72240         * modules/version-etc (Depends-on): Add stdarg.
72241
72242 2006-07-25  Bruno Haible  <bruno@clisp.org>
72243
72244         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
72245         complex commands.
72246
72247 2006-07-25  Bruno Haible  <bruno@clisp.org>
72248
72249         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
72250         defined in <stdarg.h> or config.h.
72251
72252 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
72253
72254         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
72255         (gl_STDIO_SAFER): Remove.
72256
72257 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
72258
72259         * MODULES.html.sh (File stream based Input/Output):
72260         Add fopen-safer, tmpfile-safer; remove stdio-safer.
72261         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
72262         * modules/fopen-safer, modules/tmpfile-safer: New files.
72263         * modules/stdio-safer: Remove.
72264
72265 2006-07-24  Bruno Haible  <bruno@clisp.org>
72266
72267         * modules/tmpdir: New file.
72268         * MODULES.html.sh (File system functions): Add it.
72269
72270 2006-07-24  Bruno Haible  <bruno@clisp.org>
72271
72272         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
72273         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
72274
72275 2006-07-24  Bruno Haible  <bruno@clisp.org>
72276
72277         * modules/clean-temp: New file.
72278
72279 2006-07-24  Bruno Haible  <bruno@clisp.org>
72280
72281         * m4/tmpdir.m4: New file, from GNU gettext.
72282
72283 2006-07-24  Bruno Haible  <bruno@clisp.org>
72284
72285         * lib/tmpdir.h: New file, from GNU gettext.
72286         * lib/tmpdir.c: New file, from GNU gettext.
72287
72288 2006-07-24  Bruno Haible  <bruno@clisp.org>
72289
72290         * lib/clean-temp.h: New file, from GNU gettext.
72291         * lib/clean-temp.c: New file, from GNU gettext.
72292
72293 2006-07-23  Eric Blake  <ebb9@byu.net>
72294
72295         * modules/stdio-safer (Files): Add tmpfile-safer.c.
72296         (Depends-on): Add binary-io.
72297
72298 2006-07-23  Eric Blake  <ebb9@byu.net>
72299
72300         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
72301
72302 2006-07-23  Eric Blake  <ebb9@byu.net>
72303
72304         * lib/tmpfile-safer.c: New file.
72305         * lib/stdio-safer.h (fopen_safer): Add prototype.
72306         * lib/stdio--.h (tmpfile): Make safer.
72307
72308 2006-07-23  Bruno Haible  <bruno@clisp.org>
72309
72310         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
72311         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
72312         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
72313         gl_linked_remove_at): Use it.
72314
72315 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72316         and Simon Josefsson <jas@extundo.com>
72317
72318         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
72319
72320         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
72321
72322 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72323
72324         * modules/close-stream: New file.
72325         * modules/closeout (Description): Make it clear that it exits
72326         with a diagnostic on error.
72327         (Depends-on): Add close-stream.  Remove fpending, stdbool.
72328         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
72329
72330 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72331
72332         * m4/close-stream.m4: New file.
72333
72334 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
72335
72336         * lib/close-stream.c, lib/close-stream.h: New files.
72337
72338 2006-07-22  Bruno Haible  <bruno@clisp.org>
72339
72340         Merge from GNU gettext 0.15.
72341
72342         2006-05-01  Bruno Haible  <bruno@clisp.org>
72343
72344                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
72345
72346         2006-07-22  Bruno Haible  <bruno@clisp.org>
72347
72348                 * modules/javaversion: New file.
72349                 * MODULES.html.sh (Java): Add javaversion.
72350
72351         2006-03-12  Bruno Haible  <bruno@clisp.org>
72352
72353                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
72354
72355         2005-12-04  Bruno Haible  <bruno@clisp.org>
72356
72357                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
72358                 (untested).
72359
72360         2006-06-21  Bruno Haible  <bruno@clisp.org>
72361
72362                 Avoid warnings from recent versions of mcs.
72363                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
72364                 -o, -L, -r any more. Use options documented since mcs-1.0
72365                 instead. Similarly for -g.
72366
72367         2005-12-04  Bruno Haible  <bruno@clisp.org>
72368
72369                 * build-aux/csharpcomp.sh.in: Suffix for resources is
72370                 .resources, not .resource.
72371
72372         2005-07-09  Bruno Haible  <bruno@clisp.org>
72373
72374                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
72375                 add a .dll suffix.
72376                 Reported by Mark Junker <mjscod@gmx.de>.
72377
72378         2006-07-22  Bruno Haible  <bruno@clisp.org>
72379
72380                 * modules/gettext: Upgrade to gettext-0.15.
72381                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
72382                 m4/visibility.m4.
72383                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
72384
72385 2006-07-22  Bruno Haible  <bruno@clisp.org>
72386
72387         Merge from GNU gettext 0.15.
72388
72389         2006-03-25  Bruno Haible  <bruno@clisp.org>
72390
72391                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
72392
72393         2006-07-21  Bruno Haible  <bruno@clisp.org>
72394
72395                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
72396                 "1.1".
72397
72398         2006-05-09  Bruno Haible  <bruno@clisp.org>
72399
72400                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
72401                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
72402                 for the conftestver execution.
72403
72404         2006-05-01  Bruno Haible  <bruno@clisp.org>
72405
72406                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
72407                 optional target-version argument. Verify that the compiler
72408                 groks source of the specified source-version, or add -source
72409                 option as necessary. Verify that the compiler produces
72410                 bytecode in the specified target-version, or add -target and
72411                 -source options as necessary. Make the result of the test
72412                 available as variable CONF_JAVAC. Also log error output in
72413                 config.log.
72414
72415         2006-03-11  Bruno Haible  <bruno@clisp.org>
72416
72417                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
72418
72419         2006-05-09  Bruno Haible  <bruno@clisp.org>
72420
72421                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
72422                 CLASSPATH_SEPARATOR to a semicolon.
72423
72424         2006-03-12  Bruno Haible  <bruno@clisp.org>
72425
72426                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
72427                 available as variable CONF_JAVA, for subsequent autoconf
72428                 tests. Also log error output in config.log.
72429
72430         2006-07-19  Bruno Haible  <bruno@clisp.org>
72431
72432                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
72433                 that getline works on glibc2 systems. Needed to avoid trouble
72434                 in relocatable.c.
72435                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
72436
72437         2005-12-04  Bruno Haible  <bruno@clisp.org>
72438
72439                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
72440                 launcher (untested).
72441
72442         2005-12-04  Bruno Haible  <bruno@clisp.org>
72443
72444                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
72445
72446         2006-07-22  Bruno Haible  <bruno@clisp.org>
72447
72448                 * gettext.m4: Update from GNU gettext-0.15.
72449                 * nls.m4: Likewise.
72450                 * po.m4: Likewise.
72451                 * inttypes-pri.m4: Likewise.
72452                 * inttypes-h.m4: Renamed from inttypes.m4.
72453                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
72454
72455 2006-07-22  Bruno Haible  <bruno@clisp.org>
72456
72457         Merge from GNU gettext 0.15.
72458
72459         2005-07-05  Bruno Haible  <bruno@clisp.org>
72460
72461                 * printf-args.c (printf_fetchargs): Work around broken
72462                 definition of wint_t on mingw.
72463
72464         2005-02-12  Bruno Haible  <bruno@clisp.org>
72465
72466                 * xallocsa.h: Add extern "C" for C++.
72467
72468         2006-05-17  Bruno Haible  <bruno@clisp.org>
72469
72470                 Cygwin portability.
72471                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
72472
72473         2006-04-30  Bruno Haible  <bruno@clisp.org>
72474
72475                 * progreloc.c: Include <mach-o/dyld.h> if available.
72476                 (find_executable): Use _NSGetExecutablePath when possible.
72477
72478         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
72479
72480                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
72481                 function.
72482
72483         2005-12-29  Bruno Haible  <bruno@clisp.org>
72484
72485                 * progreloc.c (set_program_name_and_installdir): Fix
72486                 compilation error.
72487
72488         2005-12-04  Bruno Haible  <bruno@clisp.org>
72489
72490                 Cygwin portability.
72491                 * progreloc.c: Include <windows.h> also on Cygwin.
72492                 (find_executable): Add support for Cygwin.
72493                 (set_program_name_and_installdir): Handle also platforms with
72494                 nonempty EXEEXT.
72495
72496         2006-07-11  Bruno Haible  <bruno@clisp.org>
72497
72498                 * javacomp.c: Fix a comment.
72499                 Reported by Jim Meyering.
72500
72501         2006-04-30  Bruno Haible  <bruno@clisp.org>
72502
72503                 * javacomp.h (compile_java_class): Add source_version,
72504                 target_version arguments.
72505                 * javacomp.c: Rewritten to choose only a compiler that
72506                 respects the specified source_version and target_version.
72507
72508         2006-06-27  Bruno Haible  <bruno@clisp.org>
72509
72510                 Assume correct S_ISDIR macro.
72511                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
72512
72513         2006-07-22  Bruno Haible  <bruno@clisp.org>
72514
72515                 * javaversion.h: New file, from GNU gettext.
72516                 * javaversion.c: New file, from GNU gettext.
72517                 * javaversion.java: New file, from GNU gettext.
72518                 * javaversion.class: New file, from GNU gettext.
72519
72520         2006-05-17  Bruno Haible  <bruno@clisp.org>
72521
72522                 Cygwin portability.
72523                 * javaexec.c (execute_java_class): Test for jview program
72524                 also on Cygwin.
72525
72526         2006-04-09  Bruno Haible  <bruno@clisp.org>
72527
72528                 * fatal-signal.c: Don't include string.h.
72529                 (at_fatal_signal): Use a copying loop instead of memcpy.
72530
72531         2005-12-04  Bruno Haible  <bruno@clisp.org>
72532
72533                 * csharpexec.c: Add support for 'clix' launcher (untested).
72534                 (execute_csharp_using_sscli): New function.
72535                 (execute_csharp_program): Call it.
72536
72537         2006-06-21  Bruno Haible  <bruno@clisp.org>
72538
72539                 Avoid warnings from recent versions of mcs.
72540                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
72541                 -o, -L, -r any more. Use options documented since mcs-1.0
72542                 instead. Similarly for -g.
72543
72544         2005-07-09  Bruno Haible  <bruno@clisp.org>
72545
72546                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
72547                 add a .dll suffix.
72548                 Reported by Mark Junker <mjscod@gmx.de>.
72549
72550         2006-06-17  Bruno Haible  <bruno@clisp.org>
72551
72552                 * config.charset: Update for NetBSD 3.0.
72553
72554         2006-05-17  Bruno Haible  <bruno@clisp.org>
72555
72556                 Cygwin portability.
72557                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
72558
72559         2006-05-16  Bruno Haible  <bruno@clisp.org>
72560
72561                 * localcharset.c [CYGWIN]: Include <windows.h>.
72562                 (get_charset_aliases): For Cygwin, return the same CPxxx
72563                 aliases list as under WIN32.
72564                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
72565                 the environment variables. Fall back to GetACP().
72566
72567         2006-04-05  Bruno Haible  <bruno@clisp.org>
72568
72569                 * config.charset: Update Juan Manuel Guerrero's address.
72570
72571         2005-02-12  Bruno Haible  <bruno@clisp.org>
72572
72573                 * allocsa.h: Add extern "C" for C++.
72574
72575         2005-02-10  Bruno Haible  <bruno@clisp.org>
72576
72577                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
72578                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
72579
72580         2006-07-22  Bruno Haible  <bruno@clisp.org>
72581
72582                 * gettext.h: Update to GNU gettext-0.15.
72583
72584 2006-07-22  Bruno Haible  <bruno@clisp.org>
72585
72586         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
72587         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
72588         lib-prefix.m4, longdouble.m4, ssize_t.m4.
72589
72590 2006-07-21  Eric Blake  <ebb9@byu.net>
72591
72592         * modules/stdlib-safer: New file.
72593         * MODULES.html.sh (File stream based Input/Output): Add
72594         stdlib-safer.
72595
72596 2006-07-21  Eric Blake  <ebb9@byu.net>
72597
72598         * lib/stdlib-safer.h: New file from coreutils, required by
72599         stdlib--.h.
72600
72601 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
72602
72603         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
72604
72605 2006-07-20  Bruno Haible  <bruno@clisp.org>
72606
72607         * gnulib-tool: Recognize new option --assume-autoconf.
72608         (autoconf_minversion): New variable.
72609         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
72610
72611 2006-07-20  Bruno Haible  <bruno@clisp.org>
72612
72613         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
72614
72615 2006-07-19  Derek R. Price  <derek@ximbiot.com>
72616
72617         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
72618         Reindent and repaginate.
72619
72620 2006-07-19  Derek Price  <derek@ximbiot.com>
72621
72622         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
72623         Correct grammar.
72624
72625 2006-07-17  Bruno Haible  <bruno@clisp.org>
72626
72627         * modules/list: New file.
72628         * modules/array-list: New file.
72629         * modules/carray-list, modules/carray-list-tests: New files.
72630         * modules/linked-list, modules/linked-list-tests: New files.
72631         * modules/avltree-list, modules/avltree-list-tests: New files.
72632         * modules/rbtree-list, modules/rbtree-list-tests: New files.
72633         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
72634         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
72635         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
72636         * modules/oset: New file.
72637         * modules/array-oset: New file.
72638         * modules/avltree-oset, modules/avltree-oset-tests: New files.
72639         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
72640         * tests/test-carray_list.c: New file.
72641         * tests/test-linked_list.c: New file.
72642         * tests/test-avltree_list.c: New file.
72643         * tests/test-rbtree_list.c: New file.
72644         * tests/test-linkedhash_list.c: New file.
72645         * tests/test-avltreehash_list.c: New file.
72646         * tests/test-rbtreehash_list.c: New file.
72647         * tests/test-avltree_oset.c: New file.
72648         * tests/test-rbtree_oset.c: New file.
72649         * MODULES.html.sh (Container data structures): New section.
72650
72651 2006-07-17  Bruno Haible  <bruno@clisp.org>
72652
72653         * m4/gl_list.m4: New file.
72654
72655 2006-07-17  Bruno Haible  <bruno@clisp.org>
72656
72657         * lib/gl_list.h: New file.
72658         * lib/gl_list.c: New file.
72659         * lib/gl_array_list.h: New file.
72660         * lib/gl_array_list.c: New file.
72661         * lib/gl_carray_list.h: New file.
72662         * lib/gl_carray_list.c: New file.
72663         * lib/gl_linked_list.h: New file.
72664         * lib/gl_linked_list.c: New file.
72665         * lib/gl_anylinked_list1.h: New file.
72666         * lib/gl_anylinked_list2.h: New file.
72667         * lib/gl_avltree_list.h: New file.
72668         * lib/gl_avltree_list.c: New file.
72669         * lib/gl_anyavltree_list1.h: New file.
72670         * lib/gl_anyavltree_list2.h: New file.
72671         * lib/gl_rbtree_list.h: New file.
72672         * lib/gl_rbtree_list.c: New file.
72673         * lib/gl_anyrbtree_list1.h: New file.
72674         * lib/gl_anyrbtree_list2.h: New file.
72675         * lib/gl_anytree_list1.h: New file.
72676         * lib/gl_anytree_list2.h: New file.
72677         * lib/gl_linkedhash_list.h: New file.
72678         * lib/gl_linkedhash_list.c: New file.
72679         * lib/gl_anyhash_list1.h: New file.
72680         * lib/gl_anyhash_list2.h: New file.
72681         * lib/gl_avltreehash_list.h: New file.
72682         * lib/gl_avltreehash_list.c: New file.
72683         * lib/gl_rbtreehash_list.h: New file.
72684         * lib/gl_rbtreehash_list.c: New file.
72685         * lib/gl_anytreehash_list1.h: New file.
72686         * lib/gl_anytreehash_list2.h: New file.
72687
72688         * lib/gl_oset.h: New file.
72689         * lib/gl_oset.c: New file.
72690         * lib/gl_array_oset.h: New file.
72691         * lib/gl_array_oset.c: New file.
72692         * lib/gl_avltree_oset.h: New file.
72693         * lib/gl_avltree_oset.c: New file.
72694         * lib/gl_rbtree_oset.h: New file.
72695         * lib/gl_rbtree_oset.c: New file.
72696         * lib/gl_anytree_oset.h: New file.
72697
72698 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72699
72700         * m4/mkancesdirs.m4: New file.
72701         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
72702         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
72703         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
72704         it.
72705
72706 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72707
72708         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
72709         * lib/mkancesdirs.h: New files.
72710         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
72711         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
72712         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
72713         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
72714         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
72715         callers changed.  Revamp internals significantly, by not
72716         attempting to create directories that are temporarily more
72717         permissive than the final results.  Do not attempt to use
72718         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
72719         This removes some race conditions, fixes some bugs, and simplifies
72720         things.  Use new dirchownmod function to do owner and mode changes.
72721         * lib/mkdir-p.h: Likewise.
72722         * lib/modechange.c (octal_to_mode): New function.
72723         (struct mode_change): New member mentioned.
72724         (make_node_op_equals): New arg mentioned.  All callers changed.
72725         (mode_compile): Keep track of which mode bits the user has explicitly
72726         mentioned.
72727         (mode_adjust): New arg DIR, so that we implement the X op correctly.
72728         New arg PMODE_BITS, to keep track of which mode bits the user
72729         mentioned; it treats S_ISUID and S_ISGID speciall.
72730         All callers changed.
72731         * lib/modechange.h: Likewise.
72732
72733 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
72734
72735         * MODULES.html.sh: Add mkancestors.
72736         * modules/mkancesdirs: New module.
72737         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
72738         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
72739         The chdir-safer and afs files are now orphans; I'll remove them
72740         unless someone speaks up.
72741         Add lib/dirchownmod.c, lib/dirchownmod.h.
72742         (Depends-on): Remove alloca, chown, save-cwd, dirname.
72743         Add lchown, mkancesdirs.
72744         (Maintainer): Add self.
72745
72746 2006-07-15  Karl Berry  <karl@gnu.org>
72747
72748         * gnulib-tool: help message wording/arrangement.
72749
72750 2006-07-14  Simon Josefsson  <jas@extundo.com>
72751
72752         * doc/gnulib.texi (Libtool and Windows): New section.
72753
72754 2006-07-12  Simon Josefsson  <jas@extundo.com>
72755
72756         * modules/gendocs (License): Fix license, approved by Karl.
72757
72758 2006-07-12  Eric Blake  <ebb9@byu.net>
72759
72760         * MODULES.html.sh: Add gendocs.
72761
72762 2006-07-11  Eric Blake  <ebb9@byu.net>
72763
72764         * modules/fdl: New module, to install doc/fdl.texi.
72765         * MODULES.html.sh: Add new section for documentation modules.
72766         * gnulib-tool: Avoid space-tab.
72767         (--doc-base): New option, to manage files from doc.
72768
72769 2006-07-11  Eric Blake  <ebb9@byu.net>
72770
72771         * m4/absolute-header.m4: Fix comments to match recent change.
72772
72773 2006-07-11  Eric Blake  <ebb9@byu.net>
72774
72775         * gnulib-tool: List --doc-base before --tests-base.
72776
72777 2006-07-11  Derek R. Price  <derek@ximbiot.com>
72778
72779         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
72780
72781 2006-07-11  Bruno Haible  <bruno@clisp.org>
72782
72783         * README: Mention where to put documentation.
72784
72785 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72786
72787         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
72788
72789 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
72790
72791         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
72792         to stdint.m4.
72793
72794 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
72795
72796         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
72797         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
72798         "no/such/file/stdint.h" when there is no such file, so that
72799         the resulting C code can be parsed by dodgy compilers.
72800         Problems reported by Bob Proulx.
72801
72802 2006-07-10  Derek R. Price  <derek@ximbiot.com>
72803
72804         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
72805         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
72806         macros into the GNU _D_EXACT_NAMLEN.
72807         * lib/savedir.c:  Likewise.
72808         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
72809
72810 2006-07-10  Derek R. Price  <derek@ximbiot.com>
72811         and Paul Eggert  <eggert@cs.ucla.edu>
72812
72813         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
72814         * m4/savedir.m4:
72815         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
72816         macros into the GNU _D_EXACT_NAMLEN.
72817
72818 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72819
72820         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
72821         around the absolute name, to work around a problem with the HP-UX
72822         11.23 native C compiler, reported by Bob Proulx.
72823
72824 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72825
72826         * doc/maintain.texi, make-stds.texi: Sync from
72827         <http://savannah.gnu.org/projects/gnustandards>.
72828
72829 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
72830
72831         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
72832
72833 2006-07-09  Jim Meyering  <jim@meyering.net>
72834
72835         * m4/glob.m4: Remove a doubled word in a comment.
72836
72837 2006-07-09  Jim Meyering  <jim@meyering.net>
72838
72839         * lib/argp-pv.c: Remove a doubled word in a comment.
72840         * lib/check-version.c (check_version): Likewise.
72841         * lib/javacomp.c (compile_java_class): Likewise.
72842
72843 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
72844
72845         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
72846         for the benefit of people using Autoconf 2.60.  If you want to
72847         support older Autoconf versions you can copy m4/onceonly_2_57.m4
72848         (or m4/onceonly.m4, if pre-2.57) manually.
72849
72850 2006-07-08  Jim Meyering  <jim@meyering.net>
72851
72852         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
72853         comment.
72854         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
72855         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
72856         comment.
72857
72858 2006-07-08  Jim Meyering  <jim@meyering.net>
72859
72860         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
72861
72862 2006-07-07  Simon Josefsson  <jas@extundo.com>
72863
72864         * tests/test-crc.c: Change expected crc value, the test vector
72865         were probably computed using the old broken crc.c?
72866
72867 2006-07-06  Simon Josefsson  <jas@extundo.com>
72868
72869         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
72870         now the canonical place for the M4 file).
72871
72872         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
72873         from the sys_socket dependency now.
72874
72875         * modules/inet_pton (Files): Ditto.
72876
72877         * modules/inet_ntop (Files): Ditto.
72878
72879 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
72880
72881         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
72882         not gl_PREREQ_GETUSERSHELL.
72883
72884 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72885
72886         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
72887         with only one argument, for Autoconf 2.60.
72888         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
72889         expand to nothing, so add a shell command to avoid syntax error.
72890         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
72891
72892 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72893
72894         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
72895
72896 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72897
72898         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
72899         no longer needed.  Check for isblank decl.
72900         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
72901         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
72902         of existence.
72903
72904 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72905
72906         * lib/getloadavg.c: Use __VMS, not VMS.
72907         * lib/getopt.c: Likewise.
72908         * lib/getpagesize.h: Likewise.
72909         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
72910         and probably does not work.
72911
72912 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
72913
72914         * lib/.cppi-disable: Add wcwidth.
72915         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
72916         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
72917         (ISGRAPH): Remove.  All uses changed to isgraph.
72918         (FOLD) [!defined _LIBC]: Remove special case.
72919         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
72920         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
72921         HAVE_ISBLANK.
72922         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
72923         case.
72924
72925 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
72926
72927         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
72928         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
72929         brackets.  Other minor changes to suppress some compiler
72930         warnings.
72931
72932 2006-07-06  Derek R. Price  <derek@ximbiot.com>
72933         and Paul Eggert  <eggert@cs.ucla.edu>
72934
72935         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
72936         of invoking obsolescent AC_HEADER_DIRENT macro.
72937         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
72938         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
72939         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
72940         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
72941         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
72942         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
72943         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
72944         * m4/readdir.m4: Remove; no longer needed.
72945
72946 2006-07-06  Derek R. Price  <derek@ximbiot.com>
72947         and Paul Eggert  <eggert@cs.ucla.edu>
72948
72949         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
72950         Don't worry about this obsolete case any more.
72951         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
72952         directories.
72953         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
72954         worry about this obsolete case any more.
72955         * lib/fts.c: Likewise.
72956         * lib/getcwd.c: Likewise.
72957         * lib/glob.h: Likewise.
72958         * lib/savedir.c: Likewise.
72959
72960 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72961
72962         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
72963         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
72964         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
72965         needed.
72966         All uses removed.
72967         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72968         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
72969         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
72970         needed.
72971         * m4/getdate.m4 (gl_GETDATE): Likewise.
72972         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
72973         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
72974         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
72975         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
72976         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
72977         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
72978         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
72979         needed.
72980
72981 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
72982
72983         * lib/memcasecmp.c: Include <limits.h>.
72984         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
72985         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
72986         Don't assume isdigit succeeds only on '0' through '9'.
72987
72988 2006-07-05  Eric Blake  <ebb9@byu.net>
72989
72990         * modules/getaddrinfo (Depends-on): Add snprintf.
72991
72992 2006-07-05  Eric Blake  <ebb9@byu.net>
72993
72994         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
72995         to avoid 'header present but could not be compiled' on cygwin.
72996
72997 2006-07-05  Eric Blake  <ebb9@byu.net>
72998
72999         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
73000         missing from netdb.h.
73001         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
73002
73003 2006-07-05  Derek R. Price  <derek@ximbiot.com>
73004
73005         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
73006         no longer needed.
73007         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
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/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
73014
73015 2006-07-05  Derek R. Price  <derek@ximbiot.com>
73016
73017         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
73018         All uses of is_space replaced by isspace.
73019         * lib/exit.h: Don't talk about STDC_HEADERS.
73020         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
73021         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
73022         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
73023         replaced by isprint etc.
73024         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
73025         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
73026         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
73027         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
73028         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
73029         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
73030
73031 2006-07-05  Bruno Haible  <bruno@clisp.org>
73032
73033         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
73034         the function exists, before testing against AIX.
73035         Reported by Martin Lambers <marlam@marlam.de>.
73036
73037 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
73038
73039         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
73040         From Mark D. Baushke.
73041
73042 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
73043
73044         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
73045         to the absolute name, not just one, to bypass Sun C 5.8's
73046         "warning: #include of /usr/include/... may be non-portable".
73047
73048 2006-07-04  Eric Blake  <ebb9@byu.net>
73049
73050         * modules/dirname-tests: New test module.
73051         * tests/test-dirname.c: New file, replacing dirname.c
73052         TEST_DIRNAME section that was recently deleted.
73053
73054 2006-07-04  Bruno Haible  <bruno@clisp.org>
73055
73056         Assume ANSI C header files and <ctype.h> functions.
73057         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
73058         (mbsnwidth): Use isprint, iscntrl instead.
73059
73060 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73061
73062         Merge from coreutils.
73063         * MODULES.html.sh: Add xstrtold.
73064         * modules/xstrtold: New file.
73065         * modules/cycle-check (Files): Add lib/same-inode.h.
73066         * modules/dirname (Files): Add m4/double-slash-root.m4.
73067         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
73068         * modules/mkdir-p (Files): Add lib/same-inode.h.
73069         * modules/same (Files): Add lib/same-inode.h.
73070
73071 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73072
73073         * m4/absolute-header.m4: Renamed from full-header-path.m4.
73074         This is to keep the terminology clean; POSIX talks about
73075         "absolute pathnames", not "full pathnames", but the GNU
73076         Coding Standards say to use "path" for something else;
73077         so use "absolute" to keep both sides happy.
73078         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
73079         Set gl_absolute_header, not gl_full_header_path.
73080         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
73081         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
73082         All uses changed.
73083
73084         Merge from coreutils.
73085
73086         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
73087
73088         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
73089         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
73090         want to require the building of c-strtod.o.
73091         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
73092         needs -lm directly.
73093         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
73094
73095         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
73096
73097         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
73098         --as-needed option if available.  Problem reported by Albert Chin in
73099         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
73100         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
73101         cc merely issues a bunch of annoying warnings for --as-needed
73102         (this problem was reported by Bob Proulx).  Also, try linking with
73103         -lm to detect a bug in binutils 2.16 (this problem was reported
73104         by Ralf Wildenhues).
73105
73106         2006-06-18  Jim Meyering  <jim@meyering.net>
73107
73108         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
73109         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
73110         macro.
73111         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
73112         also check for glibc-2.4's abort-inducing bug.
73113
73114         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
73115         Low-probability clean-up should be to use rmdir to get rid of
73116         the just-created directory, not unlink.
73117
73118         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
73119         configure fail, and request a bug report to inform us about it.
73120         Add a comment that, barring reports to the contrary, in 2007 we'll
73121         assume ftruncate is universally available.
73122
73123         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
73124
73125         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
73126
73127         2006-03-12  Jim Meyering  <jim@meyering.net>
73128
73129         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
73130         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
73131         * m4/same.m4 (gl_SAME): Likewise.
73132         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
73133
73134         2006-03-11  Eric Blake  <ebb9@byu.net>
73135
73136         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
73137         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
73138         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
73139         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
73140
73141 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
73142
73143         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
73144         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
73145         reported by Mark D. Baushke, one in
73146         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
73147
73148         Merge from coreutils.
73149
73150         * lib/.cppi-disable: Add stdint_.h.
73151         * lib/.cvsignore: Add stdint.h.
73152
73153         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
73154
73155         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
73156         both double and long double versions.
73157         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
73158         * lib/xstrtold.c: New file.
73159         * lib/xstrtod.h (xstrtold): New decl.
73160
73161         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
73162
73163         * lib/filemode.c (setst): Remove.
73164         (strmode): Rewrite to avoid setst.  This makes the code shorter,
73165         (arguably) clearer, and the generated code is a bit smaller on my
73166         Debian GNU/Linux stable x86 host.
73167
73168         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
73169
73170         * lib/filemode.c: Include "filemode.h" first, to test the interface.
73171         Assume that filemode.h includes sys/types.h and sys/stat.h.
73172         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
73173         (ftypelet): Reorder to put common cases first, for efficiency.
73174         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
73175         to do 'M'.
73176         (strmode): Renamed from mode_string, and now stores 12 bytes instead
73177         of 10, for compatibility with FreeBSD.  All callers changed.
73178         (filemodestring): Now stores 12 bytes instead of 10, and sets file
73179         types that can't be deduced solely from st_mode.  First arg is now a
73180         const pointer.
73181         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
73182         (strmode): Renamed from mode_string.
73183         (filemodestring): New decl.
73184         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
73185         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
73186         needed.
73187         (S_ISPORT, S_ISWHT): New macros, if not already defined.
73188
73189         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
73190
73191         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
73192         fsusage.h now does that.  Include fsusage.h first, to test interface.
73193         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
73194         at most one method (the old code could have generated decls that
73195         didn't conform to C89, not that this was ever exercised).
73196         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
73197
73198         2006-03-19  Jim Meyering  <jim@meyering.net>
73199
73200         Work even in a chroot where d_ino values for entries in "/"
73201         don't match the stat.st_ino values for the same names.
73202         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
73203         number, iterate through all entries again, using lstat instead.
73204         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
73205         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
73206
73207         * lib/getcwd.c (__getcwd): Clarify a comment.
73208         Use memcpy in place of a call to strcpy.
73209
73210         2006-03-12  Jim Meyering  <jim@meyering.net>
73211
73212         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
73213         matches that of the current directory (which we're about to chdir ".."
73214         out of), then save the dev-ino of the parent, instead.
73215
73216         * lib/same-inode.h (SAME_INODE): New file/macro.
73217         * lib/chdir-safer.c (SAME_INODE): Remove definition.
73218         Include "same-inode.h", instead.
73219         * lib/same.c: Likewise.
73220         * lib/cycle-check.h: Include "same-inode.h".
73221         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
73222         * lib/cycle-check.c (SAME_INODE): Remove definition.
73223         * lib/root-dev-ino.h: Include "same-inode.h".
73224
73225         2006-03-11  Eric Blake  <ebb9@byu.net>
73226
73227         * lib/same.c (same_name): s/base_name/last_component/
73228         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
73229         * lib/filenamecat.c (file_name_concat): Likewise.
73230
73231         2006-03-11  Eric Blake  <ebb9@byu.net>,
73232                     Paul Eggert  <eggert@cs.ucla.edu>
73233
73234         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
73235         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
73236         drive prefix.
73237         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
73238         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
73239         (last_component): New method.
73240         * lib/dirname.c (dir_len): Determine when drive letters need a
73241         subsequent slash.  Preserve // when it is special.
73242         (dir_name): Don't append dot when drive letter is absolute.
73243         [TEST_DIRNAME]: Move into a full-blown gnulib test.
73244         * lib/basename.c (base_name): New semantics - malloc the result.
73245         Preserve // when it is special.  Preserve relative files that look
73246         like drive letters.
73247         (base_len): Preserve // when it is special.
73248         (last_component): New method, similar to old base_name semantics.
73249         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
73250         base_name.  Strip redundant slashes from ///.
73251
73252 2006-07-03  Jim Meyering  <jim@meyering.net>
73253
73254         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
73255         macro is used before the first cycle_check call.
73256
73257 2006-07-03  Eric Blake  <ebb9@byu.net>
73258
73259         * modules/dirname (Depends-on): Add xstrndup.
73260
73261 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
73262
73263         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
73264         test cases, so that config.log is a bit easier to follow.
73265
73266 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
73267
73268         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
73269         both are 64 bits, since this seems to be the tradition, and this
73270         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
73271         we ever run into a host that prefers long long to long in this
73272         case, we'll need another configure-time test.  Problem reported by
73273         Jim Meyering.
73274
73275 2006-07-02  Eric Blake  <ebb9@byu.net>
73276
73277         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
73278
73279 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73280
73281         * modules/inttypes (Depends-on): No longer depends on stdint.
73282         * modules/stdint (Description): Say more about assumptions.
73283         Say that the fast types might differ.  Say macros are used.
73284         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
73285         (Makefile.am): Revise list of substituted symbols to match
73286         new stdint.m4.
73287         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
73288         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
73289         * tests/test-stdint.c (verify_same_types)
73290         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
73291         the code conforms to C99/C89.
73292         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
73293         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
73294
73295 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73296
73297         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
73298         but fix a bug, by requiring at least 64 bits.
73299         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
73300         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
73301         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
73302         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
73303
73304         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
73305         changes.  Make 2.59 a prerequisite.  Check and substitute for
73306         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
73307         inttypes.h.  Do not use special include files; just use the
73308         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
73309         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
73310         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
73311         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
73312         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
73313         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
73314         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
73315         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
73316         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
73317         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
73318         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
73319         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
73320         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
73321         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
73322         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
73323         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
73324         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
73325         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
73326         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
73327         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
73328         WINT_MAX.  Check for C99 conformance more strictly, by detecting
73329         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
73330         not check for things that C99 does not require, e.g., int8_t.  If
73331         a test isn't needed unless <stdint.h> isn't working, and is
73332         unlikely to be needed for any other reason, then don't do it
73333         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
73334         size_t, since we assume C89 freestanding at least.  Do not check
73335         for sig_atomic_t, wchar_t, or wint_t, since the code now does
73336         the right thing even if the types are not defined.  Instead use:
73337         (gl_STDINT_TYPE_PROPERTIES): New macro.
73338         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
73339         testing whether <sys/types.h> clashes, as Autoconf does this for
73340         us now.  All uses removed.
73341         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
73342         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
73343         (gl_CHECK_TYPE_SAME):
73344         Remove; no longer needed.
73345         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
73346         exists, since we'll return 0 anyway in that case.
73347         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
73348
73349 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
73350
73351         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
73352         possible collision with system files.
73353         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
73354         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
73355         WCHAR_MIN and WCHAR_MAX in this case.
73356         (<stddef.h>): Do not include; no longer needed.
73357         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
73358         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
73359         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
73360         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
73361         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
73362         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
73363         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
73364         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
73365         !defined(__c99))]: Include in this case too, since it's harmless
73366         now.
73367         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
73368         dangerous to do so.
73369         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
73370         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
73371         (_STDINT_MIN, _STDINT_MAX): New macros.
73372         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
73373         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
73374         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
73375         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
73376         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
73377         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
73378         macros, not typedefs; this simplifies things quite a bit.
73379         Use long int for all types narrower than int64_t.
73380         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
73381         Define in terms of long long int or int64_t or long int,
73382         not int64_t or int32_t.  This saves some compile-time testing.
73383         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
73384         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
73385         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
73386         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
73387         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
73388         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
73389         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
73390         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
73391         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
73392         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
73393         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
73394         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
73395         undef any previous version and define our own version, for
73396         simplicity and consistency with the new macros for types.
73397         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
73398         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
73399         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
73400         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
73401         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
73402         @WINT_T_SUFFIX@ to keep things simple here.
73403         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
73404         Simplify by assuming typical 8/16/32/64 host, since we're
73405         already doing that elsewhere anyway.
73406         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
73407         and assume long long int is 64 bits if available.  This
73408         speeds up 'configure'.
73409
73410 2006-07-01  Eric Blake  <ebb9@byu.net>
73411
73412         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
73413         Reported by Andreas Buening.
73414
73415 2006-07-01  Eric Blake  <ebb9@byu.net>
73416
73417         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
73418
73419 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
73420
73421         * lib/getaddrinfo.c: fixed typo
73422
73423 2006-06-29  Jim Meyering  <jim@meyering.net>
73424
73425         * modules/strftime (Maintainer): Add my name, since with the
73426         FPRINTFTIME changes strftime.c has forked from glibc.
73427
73428 2006-06-29  Eric Blake  <ebb9@byu.net>
73429
73430         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
73431
73432 2006-06-29  Eric Blake  <ebb9@byu.net>
73433
73434         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
73435
73436 2006-06-29  Eric Blake  <ebb9@byu.net>
73437
73438         * lib/stat_.h: New file.
73439
73440 2006-06-29  Eric Blake  <ebb9@byu.net>
73441
73442         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
73443         unused static function.
73444
73445 2006-06-29  Eric Blake  <ebb9@byu.net>
73446
73447         * doc/functions.texi (Function Portability): Document missing lstat
73448         on mingw.
73449
73450 2006-06-29  Eric Blake  <ebb9@byu.net>
73451
73452         * MODULES.html.sh: Add sys_stat.
73453         * modules/sys_stat: New module.
73454         * modules/mkstemp (Depends-on): Add sys_stat.
73455
73456 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73457
73458         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
73459
73460 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73461
73462         * m4/c-bs-a.m4: Removed.
73463
73464 2006-06-29  Derek R. Price  <derek@ximbiot.com>
73465
73466         * lib/strftime.c: Assume strftime() exists.
73467
73468 2006-06-29  Derek Price  <derek@ximbiot.com>
73469
73470         * modules/c-bs-a: Removed - \a is C89.
73471         * MODULES.html.sh: Remove c-bs-a.
73472
73473 2006-06-29  Bruno Haible  <bruno@clisp.org>
73474
73475         * modules/wcwidth (License): Change to LGPL.
73476
73477 2006-06-28  Simon Josefsson  <jas@extundo.com>
73478
73479         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
73480         on _WIN32.
73481
73482         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
73483         getnameinfo.
73484
73485 2006-06-28  Simon Josefsson  <jas@extundo.com>
73486
73487         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
73488
73489 2006-06-28  Simon Josefsson  <jas@extundo.com>
73490
73491         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
73492         functions there.  It will succeed on Windows XP, but on Windows
73493         2000 and (presumably) earlier, it will fail, and use the internal
73494         re-implementation.
73495         (use_win32_p): New function.
73496         (getaddrinfo): Use strtoul on servname, to support numeric ports.
73497         Support AI_NUMERICSERV to disable getservbyname.
73498         (getnameinfo): New function, only supports
73499         NI_NUMERICHOST|NI_NUMERICSERV for now.
73500
73501         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
73502         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
73503         getnameinfo.
73504
73505 2006-06-28  Eric Blake  <ebb9@byu.net>
73506
73507         * modules/wcwidth: New file.
73508         * modules/mbchar (Depends-on): Add wcwidth.
73509         * modules/mbswidth (Depends-on): Add wcwidth.
73510         * MODULES.html.sh: Add wcwidth.
73511
73512 2006-06-28  Eric Blake  <ebb9@byu.net>
73513
73514         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
73515         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
73516
73517 2006-06-28  Eric Blake  <ebb9@byu.net>
73518
73519         * lib/xvasprintf.h: Fix comments.
73520
73521 2006-06-28  Eric Blake  <ebb9@byu.net>
73522
73523         * lib/mbchar.h (wcwidth): Include wcwidth.h.
73524         * lib/mbswidth.c (wcwidth): Move from here...
73525         * lib/wcwidth.h: ...to this new file.
73526
73527 2006-06-28  Derek R. Price  <derek@ximbiot.com>
73528
73529         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
73530
73531         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
73532         it's obsolete.
73533         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
73534
73535 2006-06-28  Derek R. Price  <derek@ximbiot.com>
73536
73537         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
73538         Autoconf 2.60 says this stuff was obsolete.
73539
73540 2006-06-28  Bruno Haible  <bruno@clisp.org>
73541
73542         * modules/wcwidth (Files): Add m4/wchar_t.m4.
73543
73544 2006-06-28  Bruno Haible  <bruno@clisp.org>
73545
73546         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
73547         gt_TYPE_WCHAR_T.
73548
73549 2006-06-28  Bruno Haible  <bruno@clisp.org>
73550
73551         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
73552         declaration for wcwidth.
73553         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
73554
73555 2006-06-28  Bruno Haible  <bruno@clisp.org>
73556
73557         * lib/mkdtemp.c [MINGW]: Include <io.h>.
73558         (mkdir): Define using _mkdir.
73559
73560 2006-06-28  Bruno Haible  <bruno@clisp.org>
73561
73562         * lib/getaddrinfo.h: Fix POSIX URL.
73563         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
73564         _WIN32.
73565         (use_win32_p): Make static.
73566         (getaddrinfo): Reject service name if it is empty or does not consist
73567         solely of decimal digits, or if its value is > 65535.
73568         (getnameinfo): Remove useless casts.
73569
73570 2006-06-27  Simon Josefsson  <jas@extundo.com>
73571
73572         * modules/sys_select: New file, suggested by Bruno Haible, Paul
73573         Eggert and Martin Lambers.
73574
73575 2006-06-27  Simon Josefsson  <jas@extundo.com>
73576
73577         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
73578         Eggert and Martin Lambers.
73579
73580 2006-06-27  Bruno Haible  <bruno@clisp.org>
73581
73582         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
73583         result to 0, not to empty.
73584         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
73585
73586 2006-06-27  Bruno Haible  <bruno@clisp.org>
73587
73588         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
73589
73590 2006-06-26  Simon Josefsson  <jas@extundo.com>
73591
73592         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
73593         present.
73594
73595 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
73596
73597         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
73598         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
73599         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
73600
73601 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
73602
73603         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
73604
73605 2006-06-26  Bruno Haible  <bruno@clisp.org>
73606
73607         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
73608
73609 2006-06-26  Bruno Haible  <bruno@clisp.org>
73610
73611         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
73612
73613 2006-06-26  Bruno Haible  <bruno@clisp.org>
73614
73615         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
73616         SGI C compiler in pre-C99 mode.
73617         Suggested by Mark D. Baushke and Larry Jones.
73618
73619 2006-06-26  Bruno Haible  <bruno@clisp.org>
73620
73621         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
73622         WCHAR_MAX.
73623         Reported by Mark D. Baushke and Larry Jones.
73624
73625 2006-06-26  Bruno Haible  <bruno@clisp.org>
73626
73627         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
73628         in pre-C99 mode.
73629         Suggested by Mark D. Baushke and Larry Jones.
73630
73631 2006-06-23  Simon Josefsson  <jas@extundo.com>
73632             Bruno Haible  <bruno@clisp.org>
73633
73634         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
73635         Emit mostlyclean-local rule.
73636         (func_emit_tests_Makefile_am): Likewise.
73637         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
73638
73639 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
73640
73641         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
73642
73643 2006-06-23  Bruno Haible  <bruno@clisp.org>
73644
73645         * tests/test-stdint.c: Update to match ISO C 99 Technical
73646         Corrigendum 1.
73647
73648 2006-06-23  Bruno Haible  <bruno@clisp.org>
73649
73650         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
73651
73652 2006-06-23  Bruno Haible  <bruno@clisp.org>
73653
73654         * lib/stdint_.h: Treat IRIX like OpenBSD.
73655
73656 2006-06-23  Bruno Haible  <bruno@clisp.org>
73657
73658         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
73659         ISO C 99 Technical Corrigendum 1.
73660
73661 2006-06-22  Simon Josefsson  <jas@extundo.com>
73662
73663         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
73664         MinGW.
73665
73666 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
73667
73668         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
73669         needed.  Some compiler complained about some of them.  Problem reported
73670         by Larry Jones in
73671         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
73672
73673 2006-06-21  Simon Josefsson  <jas@extundo.com>
73674
73675         * tests/test-getaddrinfo.c: New file.
73676
73677         * modules/getaddrinfo-tests: New file.
73678
73679         * MODULES.html.sh: Add inet_pton.
73680
73681         * modules/inet_pton: New file.
73682
73683 2006-06-21  Simon Josefsson  <jas@extundo.com>
73684
73685         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
73686         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
73687         of using the (limited) gnulib implementation on Windows XP.
73688
73689         * m4/inet_pton.m4: New file.
73690
73691 2006-06-21  Simon Josefsson  <jas@extundo.com>
73692
73693         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
73694         variable.
73695
73696         * lib/socket_.h: Don't define WINVER.
73697
73698         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
73699         slightly modified to work in gnulib.
73700
73701 2006-06-21  Simon Josefsson  <jas@extundo.com>
73702
73703         * doc/gnulib.texi (Windows sockets): Add.
73704
73705 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
73706
73707         * lib/read-file.c (fread_file): Start with buffer allocation of
73708         0 bytes rather than 1 byte; this simplifies the code.
73709         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
73710         code to free buffer and save/restore errno.
73711         (internal_read_file): Remove unused local.
73712
73713 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
73714
73715         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
73716         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
73717         Problem reported by Denis Excoffier in
73718         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
73719
73720 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73721
73722         * modules/sys_socket, modules/socklen: Include sys/types since
73723         FreeBSD 4.x's sys/socket.h needs it.
73724
73725 2006-06-19  Simon Josefsson  <jas@extundo.com>
73726
73727         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
73728
73729 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
73730
73731         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
73732
73733 2006-06-19  Bruno Haible  <bruno@clisp.org>
73734
73735         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
73736         and FULL_PATH_INTTYPES_H in angle brackets.
73737         Reported by Mark D. Baushke <mdb@gnu.org>.
73738
73739 2006-06-17  Eric Blake  <ebb9@byu.net>
73740
73741         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
73742         errno.
73743
73744 2006-06-17  Bruno Haible  <bruno@clisp.org>
73745
73746         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
73747         <sys/inttypes.h>.
73748
73749 2006-06-17  Bruno Haible  <bruno@clisp.org>
73750
73751         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
73752         whether errno is declared. Assume <errno.h> declares errno.
73753
73754 2006-06-17  Bruno Haible  <bruno@clisp.org>
73755
73756         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
73757
73758 2006-06-17  Bruno Haible  <bruno@clisp.org>
73759
73760         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
73761         problem on Solaris 2.5.1.
73762
73763 2006-06-16  Eric Blake  <ebb9@byu.net>
73764
73765         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
73766         * lib/unicodeio.c [!defined errno]: Likewise.
73767         * lib/strtol.c [!defined errno]: Likewise.
73768         * lib/strtod.c [!defined errno]: Likewise.
73769
73770 2006-06-15  Eric Blake  <ebb9@byu.net>
73771
73772         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
73773
73774 2006-06-15  Eric Blake  <ebb9@byu.net>
73775
73776         * config/srclist.txt (ssize_t.m4): Lose sync.
73777
73778 2006-06-15  Bruno Haible  <bruno@clisp.org>
73779
73780         * modules/stdint (Files): Include m4/full-header-path.m4,
73781         m4/size_max.m4, m4/wchar_t.m4.
73782         (Makefile.am): Many more substitutions.
73783         * modules/stdint-tests: New file.
73784         * tests/test-stdint.c: New file.
73785
73786 2006-06-15  Bruno Haible  <bruno@clisp.org>
73787
73788         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
73789         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
73790         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
73791         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
73792         gl_CHECK_TYPE_SAME): New macros.
73793
73794 2006-06-15  Bruno Haible  <bruno@clisp.org>
73795
73796         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
73797
73798 2006-06-15  Bruno Haible  <bruno@clisp.org>
73799
73800         * lib/stdint_.h: Rewritten to be fully auto-configured.
73801         Fixes bug on HP-UX/IA64.
73802
73803 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
73804
73805         * lib/getdate.y (__attribute__): Don't define if already defined.
73806         Problem reported by Larry Jones.
73807         * lib/utimens.c (__attribute__): Likewise.
73808
73809 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
73810
73811         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
73812         reported by Andreas Schwab.
73813
73814 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73815             Bruno Haible  <bruno@clisp.org>
73816
73817         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
73818         check for the declaration of strnlen and a run test that exposes the
73819         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
73820         rpl_strndup.
73821
73822 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73823             Bruno Haible  <bruno@clisp.org>
73824
73825         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
73826
73827 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73828
73829         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
73830         compile test, for Tru64 4.0D.
73831
73832 2006-05-28  Karl Berry  <karl@gnu.org>
73833
73834         * config/srclist.txt (printf-args.c): lose sync.
73835
73836 2006-05-26  Martin Lambers  <marlam@marlam.de>
73837
73838         * lib/getpass.c: Updates the test for the native W32 API, and adds
73839         missing includes, thus fixing compilation warnings.
73840
73841 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
73842
73843         * lib/exclude.c (exclude_fnmatch): New function.
73844         (excluded_file_name): Call exclude_fnmatch.
73845         * lib/exclude.h (excluded_file_name): New prototype
73846
73847 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
73848
73849         * lib/tempname.c (small_open, large_open): New macros.
73850         (__open, __open64) [!_LIBC]: Remove.
73851         (__gen_tempname): Use small_open and large_open instead of __open
73852         and __open64.  This fixes a portability bug on HP-UX 11.11i
73853         reported by Simon Wing-Tang in
73854         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
73855
73856 2006-05-24  Bruno Haible  <bruno@clisp.org>
73857
73858         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
73859         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
73860         Reported by Thorsten Maerz <torte@netztorte.de> via
73861         Aaron Stone <aaron@serendipity.cx>.
73862
73863 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73864
73865         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
73866         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
73867         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
73868         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
73869         not really conditional on the cache.
73870         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
73871
73872 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
73873
73874         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
73875         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
73876         (my_usleep): Don't mishandle maximum value.
73877
73878 2006-05-19  Jim Meyering  <jim@meyering.net>
73879
73880         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
73881
73882 2006-05-17  Bruno Haible  <bruno@clisp.org>
73883
73884         Cygwin portability.
73885         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
73886
73887 2006-05-17  Bruno Haible  <bruno@clisp.org>
73888
73889         * lib/stdint_.h: Fix recognition of Cygwin.
73890
73891 2006-05-15  Bruno Haible  <bruno@clisp.org>
73892
73893         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
73894         on libtool patch by Ralf Wildenhues.
73895
73896 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
73897
73898         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
73899         test for C99 conformance; (bool) 0.5 is an integer constant
73900         expression, but (bool) -0.5 is not.  Problem reported by Fedor
73901         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
73902
73903 2006-05-11  Simon Josefsson  <jas@extundo.com>
73904
73905         * m4/xvasprintf.m4: Fix obvious typo.
73906
73907 2006-05-11  Jim Meyering  <jim@meyering.net>
73908
73909         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
73910         James Lemley.
73911
73912 2006-05-10  Simon Josefsson  <jas@extundo.com>
73913
73914         * lib/md4.c: Typo fix, update copyright years.
73915         (K1, K2): Don't use L because it turn computations into 64-bit on
73916         64-bit platforms.
73917
73918 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
73919
73920         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
73921         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
73922         unwanted sign propagation, e.g., on hosts with 64-bit int.
73923         There still are some problems with reeelly weird theoretical hosts
73924         (e.g., 33-bit int) but it's not worth worrying about now.
73925         * lib/sha1.c (rol): Likewise.
73926         (K1, K2, K3, K4): Remove unnecessary L suffix.
73927
73928 2006-05-10  Bruno Haible  <bruno@clisp.org>
73929
73930         * lib/des.c: Cast to avoid warnings.
73931
73932 2006-05-09  Bruno Haible  <bruno@clisp.org>
73933
73934         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
73935         (Depends-on): Depend also on xsize, stdarg.
73936         (configure.ac): Add gl_XVASPRINTF.
73937
73938 2006-05-09  Bruno Haible  <bruno@clisp.org>
73939
73940         * m4/xvasprintf.m4: New file.
73941
73942 2006-05-09  Bruno Haible  <bruno@clisp.org>
73943
73944         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
73945         (EOVERFLOW): Define fallback value.
73946         (xstrcat): New function.
73947         (xvasprintf): Recognize the special case of a string concatenation.
73948
73949 2006-05-08  Eric Blake  <ebb9@byu.net>
73950
73951         * gnulib-tool (func_version): Base copyright year on CVS date.
73952         (func_emit_copyright_notice): New function.
73953         (func_emit_lib_Makefile_am): Use it.
73954         (func_emit_tests_Makefile_am): Likewise.
73955         (func_import): Likewise.
73956
73957 2006-05-08  Bruno Haible  <bruno@clisp.org>
73958
73959         * modules/stdarg: New file.
73960         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
73961
73962 2006-05-08  Bruno Haible  <bruno@clisp.org>
73963
73964         * m4/stdarg.m4: New file, from GNU gettext.
73965
73966 2006-05-08  Bruno Haible  <bruno@clisp.org>
73967
73968         * config/srclist.txt (build-aux/config.rpath): different from latest
73969         release.
73970
73971 2006-05-08  Bruno Haible  <bruno@clisp.org>
73972
73973         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
73974
73975 2006-05-05  Jim Meyering  <jim@meyering.net>
73976
73977         * m4/warning.m4: New file, derived from bison's file by the same name.
73978
73979 2006-05-03  Bruno Haible  <bruno@clisp.org>
73980
73981         * lib/stdint_.h: Shorter URL.
73982         * lib/inttypes.h: Likewise.
73983
73984 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73985
73986         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
73987
73988 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73989
73990         * lib/verify.h: Document the internals better.  Most of this change
73991         was written by Bruno Haible.
73992
73993 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
73994
73995         * doc/verify.texi: New file, partly based on a proposal by
73996         Bruno Haible.
73997
73998 2006-05-02  Bruno Haible  <bruno@clisp.org>
73999
74000         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
74001         test from here...
74002         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
74003
74004 2006-04-29  Bruno Haible  <bruno@clisp.org>
74005
74006         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
74007         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
74008
74009 2006-04-29  Bruno Haible  <bruno@clisp.org>
74010
74011         * gnulib-tool: Make --update option actually work.
74012
74013 2006-04-29  Bruno Haible  <bruno@clisp.org>
74014
74015         * doc/gcd.texi: New file.
74016         * doc/gnulib.texi: Include it.
74017
74018 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
74019
74020         * lib/getdate.y (get_date): When adding relative date, start with the
74021         initial time, not with the result of the first mktime call.
74022
74023 2006-04-25  Bruno Haible  <bruno@clisp.org>
74024
74025         * gnulib-tool (func_import): Output the include directives in three
74026         blocks, sorted separately.
74027         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74028
74029 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
74030
74031         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
74032         to define main with arguments, for C++.  Reported by Eric Blake.
74033         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
74034         Prefer 'int main ()' to 'int main (void)', for C++.
74035         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
74036         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
74037         for 'main', for C99 and C++.
74038
74039 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
74040
74041         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
74042         Don't assume that exit status -1 is valid.
74043         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74044         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
74045         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
74046         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
74047         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
74048         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
74049         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
74050         functions can be used without declaring them, or that you can
74051         exit with status -1.
74052         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
74053
74054 2006-04-24  Karl Berry  <karl@gnu.org>
74055
74056         * config/srclist.txt (longdouble.m4): sync lost.
74057
74058 2006-04-24  Eric Blake  <ebb9@byu.net>
74059
74060         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
74061
74062 2006-04-24  Bruno Haible  <bruno@clisp.org>
74063
74064         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
74065         poll() implementation in AIX.
74066         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74067
74068 2006-04-24  Bruno Haible  <bruno@clisp.org>
74069
74070         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
74071         assigned exactly once.
74072
74073 2006-04-23  Claudio Fontana  <claudio@gnu.org>
74074             Bruno Haible  <bruno@clisp.org>
74075
74076         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
74077         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
74078         for AM_CPPFLAGS.
74079
74080 2006-04-23  Bruno Haible  <bruno@clisp.org>
74081
74082         * modules/copy-file: Depend on unistd.
74083         * modules/execute: Likewise.
74084         * modules/fatal-signal: Likewise.
74085         * modules/findprog: Likewise.
74086         * modules/mkdtemp : Likewise.
74087         * modules/pipe: Likewise.
74088         * modules/wait-process: Likewise.
74089
74090 2006-04-23  Bruno Haible  <bruno@clisp.org>
74091
74092         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
74093         condition was already detected.
74094         Reported by Ben Pfaff <blp@cs.stanford.edu>.
74095
74096 2006-04-23  Bruno Haible  <bruno@clisp.org>
74097
74098         * lib/copy-file.c: Include <unistd.h> unconditionally.
74099         * lib/execute.c: Likewise.
74100         * lib/fatal-signal.c: Likewise.
74101         * lib/findprog.c: Likewise.
74102         * lib/mkdtemp.c: Likewise.
74103         * lib/pipe.h: Likewise.
74104         * lib/pipe.c: Likewise.
74105         * lib/wait-process.h: Likewise.
74106
74107 2006-04-23  Bruno Haible  <bruno@clisp.org>
74108
74109         * gnulib-tool (func_usage): Fix --import description. Document
74110         --update.
74111         (func_import): Create temporary file in a temporary directory, if
74112         --dry-run is specified. Silence errors from 'grep' when there are no
74113         m4 files in $m4dir.
74114         (func_create_testdir): Silence errors from 'grep' when there are no
74115         m4 files in $m4dir.
74116         Reported by Karl Berry <karl@freefriends.org>.
74117
74118 2006-04-20  Bruno Haible  <bruno@clisp.org>
74119
74120         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
74121         one argument, so that the code will be portable to Autoconf 2.60.
74122         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
74123         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
74124         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
74125
74126 2006-04-19  Derek Price  <derek@ximbiot.com>
74127             Eric Blake  <ebb9@byu.net>
74128
74129         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
74130         rather than "/full/path.h".  Update comment to match.  Shorten &
74131         generalize m4_translit call via AS_TR_CPP.
74132
74133 2006-04-19  Derek Price  <derek@ximbiot.com>
74134             Eric Blake  <ebb9@byu.net>
74135
74136         * lib/inttypes.h: Correct grammar in comment.
74137
74138 2006-04-18  Derek Price  <derek@ximbiot.com>
74139             Paul Eggert  <eggert@cs.ucla.edu>
74140
74141         * modules/inttypes: New file.
74142         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
74143
74144 2006-04-18  Derek Price  <derek@ximbiot.com>
74145             Paul Eggert  <eggert@cs.ucla.edu>
74146
74147         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
74148         New files.
74149
74150 2006-04-18  Derek Price  <derek@ximbiot.com>
74151             Paul Eggert  <eggert@cs.ucla.edu>
74152
74153         * lib/inttypes.h: New file.
74154         * lib/strtoimax.c: Assume <inttypes.h>.
74155
74156 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
74157
74158         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
74159         isn't mounted.  Problem reported by Kir Kolyshkin.
74160
74161 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
74162
74163         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
74164         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
74165         Derek R. Price.
74166         * lib/regex.h (RE_DUP_MAX): Update comment to match current
74167         implementation.
74168
74169 2006-04-12  Eric Blake  <ebb9@byu.net>
74170
74171         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
74172         is now done automatically by the corresponding Autoconf macro.
74173
74174 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
74175
74176         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
74177         time_r.h.
74178
74179 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74180
74181         Merge regex changes from libc, removing some of our
74182         POSIX-conformance changes that were rejected and redoing them in a
74183         less-intrusive way.
74184
74185         * lib/regcomp.c (re_compile_internal, init_dfa):
74186         Length arg is now size_t, not Idx.  All uses changed.
74187         (peek_token): Forward decl now says internal_function.
74188         (__re_error_msgid, __re_error_msgid_idx):
74189         Now static rather than extern with attribute_hidden.
74190         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
74191         For some reason libc prefers K&R style defns for external functions.
74192         (regerror) [!defined _LIBC]: Likewise.
74193         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
74194         (seek_collating_symbol_entry, lookup_collation_sequence_value):
74195         (build_range_exp, build_collating_symbol):
74196         Use K&R-style defn.
74197         (re_compile_fastmap): Use '\0' to memset, not 0.
74198         (utf8_sb_map): Make the calculations more obvious.
74199         (init_dfa, parse_bracket_exp, build_charclass_op):
74200         Call calloc and cast result, as glibc does.
74201         (init_word_char, fetch_token, peek_token, peek_token_bracket):
74202         (build_range_exp, build_collating_symbol):
74203         Now internal functions.
74204
74205         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
74206
74207         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
74208         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
74209         Don't depend on VMS; depend on __VMS instead, for POSIX
74210         namespace cleanness.
74211         (regoff_t): Define to ssize_t, not long int.
74212
74213         Remove the REG_ macros named below.  Instead, make the old names
74214         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
74215         __USE_GNU_REGEX.
74216         (REG_BACKSLASH_ESCAPE_IN_LISTS):
74217         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
74218         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
74219         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
74220         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
74221         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
74222         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
74223         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
74224         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
74225         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
74226         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
74227         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
74228         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
74229         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
74230         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
74231         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
74232         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
74233         (REG_NREGS):
74234         Remove.  All uses replaced by the old RE_* names.
74235         (RE_BACKSLASH_ESCAPE_IN_LISTS):
74236         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
74237         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
74238         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
74239         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
74240         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
74241         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
74242         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
74243         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
74244         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
74245         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
74246         Don't bother having these macros be independent of each others'
74247         values, since they no longer exist in the POSIX name space.
74248
74249         Rename the following member names back to their old names,
74250         unless !__USE_GNU_REGEX.  All uses changed back.
74251         (buffer): Renamed from re_buffer.
74252         (allocated): Renamed from re_allocated.
74253         (used): Renamed from re_used.
74254         (syntax): Renamed from re_syntax.
74255         (fastmap): Renamed from re_fastmap.
74256         (translate): Renamed from re_translate.
74257         (can_be_null): Renamed from re_can_be_null.
74258         (regs_allocated): Renamed from re_regs_allocated.
74259         (fastmap_accurate): Renamed from re_fastmap_accurate.
74260         (no_sub): Renamed from re_no_sub.
74261         (not_bol): Renamed from re_not_bol.
74262         (not_eol): Renamed from re_not_eol.
74263         (newline_anchor): Renamed from re_newline_anchor.
74264         (num_regs): Renamed from rm_num_regs.
74265         (start): Renamed from rm_start.
74266         (end): Renamed from rm_end.
74267
74268         (free_state): Move up a bit.
74269
74270         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
74271         #define to be empty.
74272         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
74273         when that is what is intended.
74274         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
74275         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
74276         (MAX): New macro.
74277         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
74278         All uses changed back to re_malloc, etc.  It's now the caller's
74279         responsibility to check for overflow; all callers changed.
74280         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
74281         (re_x2nrealloc): Remove.
74282         (free_state): Remove decl.
74283
74284         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
74285         (re_set_registers, re_exec):
74286         Use K&R-style defn.
74287
74288         2006-01-31  Roland McGrath  <roland@redhat.com>
74289
74290         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
74291         Reported by Mike Frysinger <vapier@gentoo.org>.
74292
74293         2006-01-15  Andreas Jaeger  <aj@suse.de>
74294
74295         [BZ #1950]
74296         * lib/regex_internal.c (re_string_reconstruct): Adjust for
74297         build_wcs_upper_buffer change.
74298         (build_wcs_upper_buffer): Change return type.
74299
74300         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
74301
74302         * lib/regex_internal.h: Include <stdint.h> if available.
74303
74304         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
74305
74306         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
74307
74308         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
74309
74310         * lib/regcomp.c: Adjust for changed secondary hash function.
74311
74312         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
74313
74314         * lib/regex.h: Pretty printing.
74315         Clean up namespace a bit.
74316
74317         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
74318
74319         * lib/regexec.c (update_cur_sifted_state, check_arrival,
74320         check_arrival_add_next_nodes): Avoid using uninitialized variable.
74321
74322         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
74323                     Ulrich Drepper  <drepper@redhat.com>
74324
74325         [BZ #1302]
74326         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
74327         changed.
74328         (bitset_word_t): Renamed from bitset_word.  All uses changed.
74329
74330         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
74331
74332         [BZ #281]
74333         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
74334         * lib/regcomp.c: Remove unnecessary uses of
74335         unsigned RE_TRANSLATE_TYPE.
74336         * lib/regex_internal.h: Likewise.
74337         * lib/regex_internal.c: Likewise.
74338         * lib/regexec.c: Likewise.
74339         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
74340
74341         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
74342
74343         * lib/regexec.c (find_recover_state): Remove unnecessary
74344         initialization.
74345         (transit_state_bkref): Make DFA a const pointer.
74346         (get_subexp): Likewise.
74347         (check_arrival): Likewise.
74348         (update_cur_sifted_state): Likewise.
74349         (re_search_internal): Likewise.
74350         (prune_impossible_nodes): Likewise.
74351         (acquire_init_state_context): Likewise.
74352         (proceed_next_node): Likewise.
74353         (set_regs): Likewise.
74354         (free_fail_stack_return): Likewise.
74355         (check_arrival_expand_ecl): Mark DFA parameter as const.
74356         (check_arrival_expand_ecl_sub): Likewise.
74357         (check_subexp_limits): Likewise.
74358         (sub_epsilon_src_nodes):  Likewise.
74359         (add_epsilon_src_nodes):  Likewise.
74360         (merge_state_array): Likewise.
74361         (update_regs): Likewise.
74362         (build_trtable): Likewise.
74363         (sift_states_backward): Mark MCTX parameter as const.
74364         (build_sifted_states): Likewise.
74365         (update_cur_sifted_state): Likewise.
74366         (sift_states_mkref): Likewise.
74367         (check_arrival_expand_ecl): Mark eclosure as const.
74368         (check_dst_limits_calc_pos_1): Likewise.
74369         * lib/regex_internal.h (re_match_context_t): Make dfa a const
74370         pointer.
74371
74372         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
74373
74374         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
74375         (transit_state_sb): Likewise.
74376         (transit_state_mb): Likewise.
74377         (sift_states_iter_mb): Likewise.
74378         (check_arrival_add_next_nodes): Likewise.
74379         (check_node_accept_bytes): Change first parameter to pointer-to-const.
74380         [_LIBC] (re_search_2_stub): Use mempcpy.
74381
74382         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
74383         mbrtowc for very simple UTF-8 case.
74384
74385         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
74386         a pointer-to-const.
74387         (re_acquire_state_context): Likewise.
74388         * lib/regex_internal.h: Adjust prototypes.
74389
74390         * lib/regex.c: Prevent using C++ compilers.
74391
74392         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
74393         (re_acquire_state_context): Likewise.
74394
74395 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74396
74397         * modules/regex (Depends-on): Add ssize_t.
74398
74399 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74400
74401         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
74402         translation table.
74403
74404 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
74405
74406         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
74407
74408 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
74409             Bruno Haible  <bruno@clisp.org>
74410
74411         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
74412         <sys/types.h> and <inttypes.h>.
74413
74414 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74415
74416         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
74417         `__error_t_defined', so argp.h will not typedef the former.
74418
74419 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
74420
74421         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
74422         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
74423         glibc names.  Even if glibc is changed to conform to POSIX, the
74424         traditional names will be available anyway, since regex depends on
74425         the extensions module.  Also, fix a longstanding typo in the
74426         implementation of Spencer ERE test #75 from grep 2.3.  Problems
74427         reported by Emanuele Giaquinta.  Also, change sense of cached
74428         variable, so that the message makes sense.
74429
74430 2006-03-24  Simon Josefsson  <jas@extundo.com>
74431
74432         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
74433         including some doc fixes.
74434         (base64_encode_alloc): Fix +1 bug on allocation failures.
74435
74436 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74437
74438         * lib/base64.c (base64_encode): Do not read past end of array with
74439         unsanitized input on systems with CHAR_BIT > 8.
74440
74441 2006-03-24  Eric Blake  <ebb9@byu.net>
74442
74443         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
74444
74445 2006-03-22  Karl Berry  <karl@gnu.org>
74446
74447         * config/srclist.txt (*setenv.[ch]): get from coreutils.
74448         * config/srclistvars.sh (COREUTILS): new var.
74449
74450 2006-03-17  Jim Meyering  <jim@meyering.net>
74451
74452         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
74453         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
74454
74455 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
74456
74457         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
74458         no longer needs it.  Instead, check that regoff_t is as least
74459         as wide as ptrdiff_t.
74460
74461         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
74462         so that our regex.h stays compatible with the installed regex.
74463         This is helpful for installers who configure --without-included-regex.
74464         Problem reported by Emanuele Giaquinta.
74465
74466 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
74467
74468         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
74469         Typedef to long int, not to off_, as POSIX will likely change
74470         in that direction.
74471
74472 2006-03-15  Eric Blake  <ebb9@byu.net>
74473
74474         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
74475
74476 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
74477
74478         * lib/argp-help.c (validate_uparams): Fix typo
74479         * lib/argp-parse.c (argp_default_options): Consistently begin help
74480         messages with a lowercase letter.
74481
74482 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
74483
74484         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
74485         overrun buffers and shouldn't be used (much as gets shouldn't be
74486         used).
74487         * lib/time_r.c (asctime_r, ctime_r): Likewise.
74488
74489 2006-03-08  Simon Josefsson  <jas@extundo.com>
74490
74491         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
74492         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74493
74494 2006-03-08  Simon Josefsson  <jas@extundo.com>
74495
74496         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
74497         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74498
74499 2006-03-08  Simon Josefsson  <jas@extundo.com>
74500
74501         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
74502         signal that configure disabled the device.
74503
74504 2006-03-08  Simon Josefsson  <jas@extundo.com>
74505
74506         * build-aux/maint.mk: Fix refresh-po, to handle no translated
74507         languages.
74508
74509 2006-03-07  Simon Josefsson  <jas@extundo.com>
74510
74511         * modules/getopt (Depends-on): Add unistd.
74512
74513         * modules/unistd: New file.
74514
74515 2006-03-07  Simon Josefsson  <jas@extundo.com>
74516
74517         * modules/gc-random: New file.
74518
74519 2006-03-07  Simon Josefsson  <jas@extundo.com>
74520
74521         * m4/unistd_h.m4: New file.
74522
74523 2006-03-07  Simon Josefsson  <jas@extundo.com>
74524
74525         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
74526         test to be side-effect free by storing the result in the cache
74527         variable gl_cv_lib_readline, and moving the assignment of
74528         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
74529         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74530
74531 2006-03-07  Simon Josefsson  <jas@extundo.com>
74532
74533         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
74534         error on missing devices (the functions will return an error).
74535
74536         * m4/gc.m4: Move random stuff to gc-random.m4
74537
74538 2006-03-07  Simon Josefsson  <jas@extundo.com>
74539
74540         * lib/unistd_.h: New file.
74541
74542 2006-03-07  Simon Josefsson  <jas@extundo.com>
74543
74544         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
74545
74546 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74547
74548         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
74549         Problem reported by Juan Manuel Guerrero.
74550
74551 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74552
74553         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
74554         the unistd module.
74555         * lib/getlogin_r.c: Likewise.
74556         * lib/getlogin_r.h: Likewise.
74557         * lib/glob.c: Likewise.
74558         * lib/pagealign_alloc.c: Likewise.
74559         * lib/unistd_.h: Remove; no longer needed.
74560
74561 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
74562
74563         * MODULES.html.sh (Support for systems lacking POSIX:2001):
74564         Add unistd.
74565         * modules/c-stack (Depends-on): Add unistd.
74566         * modules/getlogin_r: Likewise.
74567         * modules/glob: Likewise.
74568         * modules/pagealign_alloc: Likewise.
74569         * modules/unistd (Files): Remove lib/unistd_.h.
74570         (EXTRA_DIST): Remove.
74571         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
74572         need unistd_.h.
74573         (MOSTLYCLEANFILES): Remove unistd.h-t.
74574
74575 2006-03-03  Simon Josefsson  <jas@extundo.com>
74576
74577         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
74578
74579 2006-03-03  Simon Josefsson  <jas@extundo.com>
74580
74581         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
74582         libidn and bison.
74583
74584 2006-03-03  Simon Josefsson  <jas@extundo.com>
74585
74586         * build-aux/maint.mk: Add indent target.
74587
74588 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
74589
74590         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
74591         our replacement poll.h in any case, to avoid a differing
74592         declaration from a system header.  Seen on AIX.
74593
74594 2006-03-01  Simon Josefsson  <jas@extundo.com>
74595
74596         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
74597         <kasal@ucw.cz>.
74598
74599 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74600
74601         * modules/gettime (Depends-on): Add extensions module.
74602         * modules/nanosleep (Depends-on): Likewise.
74603         * modules/settime (Depends-on): Likewise.
74604
74605 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
74606
74607         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
74608         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
74609         pedantically.
74610         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
74611         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
74612
74613         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
74614         not "==".  Reported by Ralf Wildenhues.
74615
74616 2006-03-01  Karl Berry  <karl@gnu.org>
74617
74618         * doc/Copyright/request-*: new files, synced from gnuorg.
74619
74620 2006-03-01  Karl Berry  <karl@gnu.org>
74621
74622         * config/srclist.txt (Copyright/*): new entries.
74623
74624 2006-02-28  Simon Josefsson  <jas@extundo.com>
74625
74626         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
74627
74628 2006-02-27  Simon Josefsson  <jas@extundo.com>
74629
74630         * lib/base64.h: Indent #define's.  From Jim Meyering
74631         <jim@meyering.net>.
74632
74633 2006-02-27  Jim Meyering  <jim@meyering.net>
74634
74635         Revert the change of 2006-02-24, so these files can continue
74636         to be sync'd from gettext.
74637         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
74638         of `config.h'.
74639
74640 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
74641
74642         * modules/intprops: New file.
74643         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
74644         Add intprops.
74645         * modules/getloadavg (Files): Remove lib/intprops.h.
74646         (Depends-on): Add intprops.
74647         * modules/human: Likewise.
74648         * modules/inttostr: Likewise.
74649         * modules/openat: Likewise.
74650         * modules/sig2str: Likewise.
74651         * modules/userspec: Likewise.
74652         * modules/utimecmp: Likewise.
74653         * modules/xnanosleep: Likewise.
74654         * modules/xstrtol: Likewise.
74655
74656 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
74657
74658         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
74659         * modules/lock-tests (TESTS): Use $(EXEEXT).
74660         * modules/tls-tests: Likewise.
74661         * modules/argp-tests: Likewise.
74662         (check_PROGRAMS): New var, replacing...
74663         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
74664
74665 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74666
74667         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
74668         `config.h'.
74669
74670 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
74671
74672         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
74673
74674 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74675
74676         Sync from coreutils.
74677         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
74678         gl_CHDIR_SAFER.
74679
74680 2006-02-22  Jim Meyering  <jim@meyering.net>
74681
74682         Sync from coreutils.
74683         * m4/chdir-safer.m4: New file.
74684
74685 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
74686
74687         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
74688         AT_FDCWD exceeds INT_MAX.
74689         * lib/openat.h (AT_FDCWD): Likewise.
74690
74691 2006-02-17  Eric Blake  <address@hidden>
74692
74693         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
74694
74695 2006-02-16  Simon Josefsson  <jas@extundo.com>
74696
74697         * modules/getaddrinfo (Depends-on): Add sys_socket.
74698
74699 2006-02-15  Simon Josefsson  <jas@extundo.com>
74700
74701         * build-aux/maint.mk: Add dsyntax-check rule.
74702
74703 2006-02-15  Eric Blake  <ebb9@byu.net>
74704
74705         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
74706         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
74707         'present but cannot compile' warnings on cygwin.
74708         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
74709         use ws2tcpip.h if sys/socket.h works.
74710         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
74711         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
74712
74713 2006-02-14  Simon Josefsson  <jas@extundo.com>
74714
74715         * modules/maintainer-makefile (Files): Rename.
74716
74717         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
74718         and (the local) Makefile.cfg to maint-cfg.mk.
74719
74720         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
74721         to the latter.
74722
74723         * modules/maintainer-makefile: New module.
74724
74725         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
74726         severaly stripped to make it possible to build it up from scratch
74727         with reliable tests.
74728
74729         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
74730         fixes to permit overriding the default actions when configure and
74731         makefile are not available.
74732
74733 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
74734
74735         Sync from coreutils.
74736         * modules/lstat (Depends-on): Don't depend on xalloc.
74737         (License): Change from GPL to LGPL, since this is now simply a
74738         replacement for a libc function.
74739
74740 2006-02-14  Jim Meyering  <jim@meyering.net>
74741
74742         Sync from coreutils.
74743
74744         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
74745         failure on deficient systems, and simplify gnulib lgpl dependencies.
74746         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
74747         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
74748
74749         * lib/xalloc-die.c: Remove unused definition of N_.
74750
74751 2006-02-14  Jim Meyering  <jim@meyering.net>
74752
74753         Sync from coreutils.
74754         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
74755         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
74756         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
74757         double-quote uses of that variable, to accommodate the rare case in
74758         which getmntent is available in none of the libraries checked.  This
74759         happens at least on FreeBSD 5.0.
74760
74761 2006-02-13  Simon Josefsson  <jas@extundo.com>
74762
74763         * gnulib-tool (Usage): Fix --import, from
74764         karl@freefriends.org (Karl Berry).
74765
74766 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
74767
74768         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
74769
74770 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
74771
74772         * lib/argp-namefrob.h: Restore changes accidentally lost during the
74773         "autoupdate" on 2005-12-12.
74774
74775 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
74776
74777         * modules/closeout (Depends-on): Remove atexit.
74778
74779 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
74780
74781         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
74782         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
74783
74784 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
74785
74786         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
74787         __EXTENSIONS__ if this causes compilation to fail.  Problem
74788         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
74789         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
74790
74791 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
74792
74793         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
74794         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
74795         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
74796         All uses changed.
74797
74798 2006-01-26  Simon Josefsson  <jas@extundo.com>
74799
74800         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
74801         prototype is visible on mingw32.
74802
74803         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
74804         for mingw32.
74805
74806         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
74807         mingw32).
74808
74809 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
74810
74811         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
74812         attempt to open for write; this always fails, at least on POSIX
74813         hosts.  This reinstates the 2006-01-09 change, which was
74814         inadvertently removed.
74815
74816 2006-01-26  Bruno Haible  <bruno@clisp.org>
74817
74818         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
74819         Reported by Paul Eggert.
74820
74821 2006-01-26  Bruno Haible  <bruno@clisp.org>
74822             Paul Eggert  <eggert@cs.ucla.edu>
74823
74824         * lib/stdbool_.h (_Bool)
74825         [(! (defined __cplusplus || defined __BEOS__)
74826           && !defined __GNUC__
74827           && !(defined __HP_cc || defined __xlc__
74828                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
74829                || defined __sgi))]:
74830         #define to signed char in these cases too; this simplifies
74831         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
74832         etc., separately) and makes it more conservative.
74833
74834 2006-01-25  Simon Josefsson  <jas@extundo.com>
74835
74836         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
74837         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
74838         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
74839
74840 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
74841
74842         * lib/argp-namefrob.h: Bugfix. Remove stray #
74843
74844 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
74845
74846         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
74847         so that we test the test.
74848         Check for yet another HP-UX cc bug involving *bool |= bool.
74849
74850 2006-01-25  Karl Berry  <karl@gnu.org>
74851
74852         * config/srclist.txt (vasnprintf.c): sync lost.
74853
74854 2006-01-25  Jim Meyering  <jim@meyering.net>
74855
74856         Sync from the stable (b5) branch of coreutils:
74857
74858         * lib/fts.c (fts_children): Don't let close() clobber errno from
74859         failed fchdir().
74860
74861         * lib/fts.c (fts_stat): When following a symlink-to-directory,
74862         don't necessarily interpret stat-fails+lstat-succeeds as indicating
74863         a dangling symlink.  That can also happen at least for ELOOP.
74864         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
74865         FYI, this bug predates the inclusion of fts.c in coreutils.
74866
74867         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
74868         in their own block, so pre-c99 compilers don't object.
74869
74870         Avoid the double-free (first in fts_read, second in fts_close) that
74871         would occur when an `active' directory is made inaccessible (e.g.,
74872         via chmod a-x) during a traversal.
74873         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
74874         before returning.  Reproduce this failure by
74875         mkdir -p a/b; cd a; chmod a-x . b
74876         Reported by Stavros Passas.
74877
74878 2006-01-25  Jim Meyering  <jim@meyering.net>
74879
74880         * lib/fileblocks.c: Remove more useless parentheses.
74881         * lib/readutmp.h: Likewise.
74882
74883 2006-01-25  Bruno Haible  <bruno@clisp.org>
74884
74885         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
74886         warnings.
74887         Reported by Paul Eggert.
74888
74889 2006-01-25  Bruno Haible  <bruno@clisp.org>
74890
74891         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
74892         rid of a trap command. For Solaris sh.
74893         Reported by Mark D. Baushke <mdb@gnu.org>.
74894
74895 2006-01-24  Simon Josefsson  <jas@extundo.com>
74896
74897         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
74898         Bruno.
74899
74900 2006-01-24  Karl Berry  <karl@gnu.org>
74901
74902         * config/srclist.txt (argp-namefrob.h): sync lost.
74903
74904 2006-01-24  Jim Meyering  <jim@meyering.net>
74905
74906         * modules/openat (Files): Add lib/intprops.h.
74907         From Mark D. Baushke.
74908
74909 2006-01-24  Jim Meyering  <jim@meyering.net>
74910
74911         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
74912         Reported by Mark D. Baushke.
74913
74914 2006-01-24  Jim Meyering  <jim@meyering.net>
74915
74916         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
74917
74918 2006-01-24  Bruno Haible  <bruno@clisp.org>
74919
74920         * modules/strnlen (Maintainer): Change from glibc to all.
74921
74922 2006-01-24  Bruno Haible  <bruno@clisp.org>
74923
74924         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
74925         Patch by Paul Eggert.
74926
74927 2006-01-24  Bruno Haible  <bruno@clisp.org>
74928
74929         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
74930         already has it.
74931         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
74932         2005-11-26.
74933
74934         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
74935         'signed char' to avoid problems with the built-in _Bool type.
74936         Reported by Paul Eggert on 2005-11-26.
74937
74938 2006-01-24  Bruno Haible  <bruno@clisp.org>
74939
74940         * gnulib-tool (func_import): Avoid constructing complicated sed
74941         expressions inside backquote.
74942         Report and solution by Mark D. Baushke <mdb@gnu.org>.
74943
74944 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
74945
74946         These changes imported from libc.
74947         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
74948         test and two separate function calls.
74949         * lib/strndup.c (__strndup): Add libc_hidden_def.
74950
74951 2006-01-23  Simon Josefsson  <jas@extundo.com>
74952
74953         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
74954         Remove the test_*_SOURCES variable: automake infers it by default.
74955         * modules/tls-tests: Likewise.
74956
74957 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74958
74959         Work around porting bugs reported by Dieter in
74960         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
74961         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
74962         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
74963         Include "getopt.h" first, to check interface.
74964         (getenv): Declare only if defined HAVE_DECL_GETENV &&
74965         !HAVE_DECL_GETENV.
74966         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
74967         (__strndup): Revert to K&R-style function dfns, the glibc style.
74968         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
74969         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
74970         Include strnlen.h first, to get prototype properly.
74971         (strnlen): Renamed from __strnlen.
74972         Remove weak alias.
74973
74974 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74975
74976         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
74977
74978 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
74979
74980         * config/srclist.txt: Adjust to reflect glibc reorganization.
74981         This affects only comments.
74982
74983 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
74984
74985          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
74986          Reported by Bruce Korb <bkorb@gnu.org>.
74987
74988 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
74989
74990         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
74991         to pacify gcc -Wswitch-default.
74992
74993 2006-01-22  Bruno Haible  <bruno@clisp.org>
74994
74995         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
74996         temporary buffer for sprintf, take into account the precision also
74997         for 'd', 'i', 'u', 'o', 'x', 'X'.
74998
74999 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
75000
75001         * modules/argp-tests: New module
75002         * tests/test-argp.c: New file
75003         * tests/test-argp-2.sh: New file
75004
75005 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
75006
75007         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
75008         (__argp_base_name): Removed
75009         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
75010         typo.
75011         (__argp_base_name): Provide macro definition or extern declaration
75012         depending on the configuration
75013
75014 2006-01-20  Simon Josefsson  <jas@extundo.com>
75015
75016         * modules/inet_ntop (Depends-on): Depend on sys_socket.
75017
75018 2006-01-20  Simon Josefsson  <jas@extundo.com>
75019
75020         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
75021
75022 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
75023
75024         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
75025         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
75026         Suggested by Bruno Haible.
75027
75028 2006-01-20  Karl Berry  <karl@gnu.org>
75029
75030         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
75031         until changes propagate, I guess.
75032
75033 2006-01-19  Simon Josefsson  <jas@extundo.com>
75034
75035         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
75036
75037 2006-01-19  Simon Josefsson  <jas@extundo.com>
75038
75039         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
75040
75041 2006-01-19  Simon Josefsson  <jas@extundo.com>
75042
75043         * gnulib-tool: Set check_PROGRAMS.
75044
75045         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
75046         modules/des-tests, modules/gc-arcfour-tests,
75047         modules/gc-arctwo-tests, modules/gc-des-tests,
75048         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
75049         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
75050         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
75051         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
75052         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
75053         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
75054         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
75055         test_*_SOURCES.
75056
75057 2006-01-18  Simon Josefsson  <jas@extundo.com>
75058
75059         * modules/socklen (Depends-on): Depend on sys_socket.
75060
75061 2006-01-18  Simon Josefsson  <jas@extundo.com>
75062
75063         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
75064         modules/des-tests, modules/gc-arcfour-tests,
75065         modules/gc-arctwo-tests, modules/gc-des-tests,
75066         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
75067         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
75068         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
75069         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
75070         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
75071         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
75072         $(EXEEXT) to automake TESTS variable, for mingw32.
75073
75074 2006-01-17  Simon Josefsson  <jas@extundo.com>
75075
75076         * modules/socklen (Include): Need sys/socket.h.
75077
75078 2006-01-17  Bruno Haible  <bruno@clisp.org>
75079
75080         * modules/ssize_t (Include): Add <sys/types.h>.
75081
75082 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
75083
75084         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
75085         it's not portable and it doesn't work with cross-compiles.
75086         Problem reported by Bruno Haible.  Fix missing-$ typo in
75087         'test "gl_cv_ignore_unused_libraries" ...' that prevented
75088         -zignore from being used with Sun's C compiler.
75089
75090 2006-01-12  Simon Josefsson  <jas@extundo.com>
75091
75092         * lib/base64.c: Fix warning, reported by Bruno Haible
75093         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
75094
75095 2006-01-12  Bruno Haible  <bruno@clisp.org>
75096
75097         * modules/ldd: New file.
75098         * build-aux/ldd.sh.in: New file.
75099         * MODULES.html.sh (Support for building libraries and executables): Add
75100         ldd.
75101
75102 2006-01-12  Bruno Haible  <bruno@clisp.org>
75103
75104         * m4/ldd.m4: New file.
75105
75106 2006-01-12  Bruno Haible  <bruno@clisp.org>
75107
75108         * gnulib-tool (func_import, func_create_testdir): Don't go into an
75109         endless loop while replacing $auxdir with build-aux.
75110
75111 2006-01-11  Simon Josefsson  <jas@extundo.com>
75112
75113         * lib/stdint_.h (SIZE_MAX): Add missing (.
75114
75115 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
75116
75117         Sync from coreutils.
75118         * lib/md5.c: Fix commentary typos.
75119         (alignof, UNALIGNED_P): No need for a GCC-specific version.
75120         * lib/md5.h (__attribute__): Remove; unused.
75121         * lib/sha1.c: Fix commentary to match md5 better.
75122         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
75123         so that we don't need to worry about alignment.  All uses changed.
75124         This merges the 2005-10-28 md5 change into sha1.
75125
75126 2006-01-11  Jim Meyering  <jim@meyering.net>
75127
75128         Sync from coreutils.
75129         * lib/md5.c (OP): Fix spacing.
75130
75131 2006-01-11  Bruno Haible  <bruno@clisp.org>
75132
75133         Ensure automatic ordering between gl_LOCK and gl_ARGP.
75134         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
75135         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
75136
75137 2006-01-11  Bruno Haible  <bruno@clisp.org>
75138
75139         Ensure automatic ordering between gl_LOCK and gl_ARGP.
75140         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
75141         the "early" section as well.
75142
75143 2006-01-11  Bruno Haible  <bruno@clisp.org>
75144
75145         Avoid "ar: no archive members specified" error on MacOS X.
75146         * gnulib-tool (func_modules_add_dummy): New function.
75147         (func_import, func_create_testdir): Invoke it.
75148
75149 2006-01-11  Bruno Haible  <bruno@clisp.org>
75150
75151         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
75152         with $auxdir in AC_CONFIG_FILES statements.
75153
75154 2006-01-11  Bruno Haible  <bruno@clisp.org>
75155
75156         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
75157         Initialize also noinst_HEADERS to empty.
75158
75159 2006-01-11  Bruno Haible  <bruno@clisp.org>
75160
75161         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
75162         variables.
75163         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
75164         autoreconf.
75165
75166 2006-01-11  Bruno Haible  <bruno@clisp.org>
75167
75168         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
75169         overridable by the user.
75170         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75171
75172 2006-01-10  Simon Josefsson  <jas@extundo.com>
75173
75174         * modules/sys_socket: New file.
75175
75176 2006-01-10  Simon Josefsson  <jas@extundo.com>
75177
75178         * m4/sys_socket_h.m4: New file.
75179
75180 2006-01-10  Simon Josefsson  <jas@extundo.com>
75181
75182         * lib/socket_.h: New file.
75183
75184 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75185
75186         * modules/readutmp (Maintainer): Add myself.
75187
75188 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75189
75190         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
75191         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
75192         People who are still concerned with buggy memcmp implementations
75193         can invoke gl_FUNC_MEMCMP themselves.
75194
75195 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
75196
75197         * lib/regex_internal.h (BITSET_WORD_BITS):
75198         Work around a bug in 64-bit PGC (before version 6.1-2), where the
75199         preprocessor mishandles large unsigned values as if they were signed.
75200         Problem reported by Claudio Fontana in
75201         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
75202
75203 2006-01-10  Jim Meyering  <jim@meyering.net>
75204
75205         Avoid the double-free (first in fts_read, second in fts_close) that
75206         would occur when an `active' directory is made inaccessible (e.g.,
75207         via chmod a-x) during a traversal.
75208         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
75209         before returning.  Reproduce this failure by
75210         mkdir -p a/b; cd a; chmod a-x . b
75211         Reported by Stavros Passas.
75212
75213         Sync from coreutils.
75214         * lib/sha1.c: Tweak grammar in a comment.
75215
75216 2006-01-10  Jim Meyering  <jim@meyering.net>
75217
75218         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
75219         Patch by Joerg Sonnenberger.
75220
75221 2006-01-10  Bruno Haible  <bruno@clisp.org>
75222
75223         * modules/readutmp: Depend on module free.
75224         * modules/strtok_r: Depend on module restrict.
75225
75226 2006-01-10  Bruno Haible  <bruno@clisp.org>
75227
75228         * modules/gettext (configure.ac): Add an invocation of
75229         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
75230
75231 2006-01-10  Bruno Haible  <bruno@clisp.org>
75232
75233         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
75234         Reported by Werner Lemberg <wl@gnu.org>.
75235
75236 2006-01-10  Bruno Haible  <bruno@clisp.org>
75237
75238         * lib/localcharset.c: Update from GNU gettext.
75239
75240 2006-01-10  Bruno Haible  <bruno@clisp.org>
75241
75242         * lib/argp.h (__const): Remove macro. Use const instead.
75243         * lib/argp-fmtstream.h (__const): Likewise.
75244         * lib/glob_.h (__const): Remove macro.
75245         * lib/glob-libc.h: Use const instead of __const.
75246
75247 2006-01-10  Bruno Haible  <bruno@clisp.org>
75248
75249         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
75250         variable.
75251         Needed to avoid an automake error regarding the 'gettext' module.
75252
75253 2006-01-09  Simon Josefsson  <jas@extundo.com>
75254
75255         * modules/inet_ntop (Depends-on): Add restrict.
75256
75257 2006-01-09  Simon Josefsson  <jas@extundo.com>
75258
75259         * modules/gc-rijndael-tests (License): Put under LGPL.
75260
75261         * modules/gc-des-tests (License): Likewise.
75262
75263         * modules/gc-arcfour-tests (License): Likewise.
75264
75265         * modules/gc-arctwo-tests (License): Likewise.
75266
75267         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
75268
75269         * modules/gc-hmac-sha1-tests (Files): Likewise.
75270
75271         * modules/gc-hmac-md5-tests (License): Likewise.
75272
75273         * modules/gc-sha1-tests (License): Likewise.
75274
75275         * modules/gc-md5-tests (License): Likewise.
75276
75277         * modules/gc-md4-tests (License): Likewise.
75278
75279         * modules/gc-md2-tests (License): Likewise.
75280
75281         * modules/gc-tests (License): Likewise.
75282
75283         * modules/des-tests (License): Likewise.
75284
75285         * modules/md4-tests (License): Likewise.
75286
75287         * modules/md2-tests (License): Likewise.
75288
75289 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75290
75291         Sync from coreutils:
75292
75293         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
75294         * modules/lib-ignore: New file.
75295         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
75296         chdir-safer.m4, lchmod.m4.
75297         * modules/openat: Add mkdirat.c, openat-priv.h.
75298
75299 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75300
75301         Sync from coreutils.
75302         * m4/lib-ignore.m4: New file.
75303         * m4/lchmod.m4: New file.
75304
75305 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75306
75307         Sync from coreutils.
75308         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
75309         for write access: POSIX says that must fail.
75310         * lib/fts.c (diropen): Likewise.
75311         * lib/save-cwd.c (save_cwd): Likewise.
75312         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
75313         well, for minor improvements on hosts that lack O_DIRECTORY.
75314         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
75315         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
75316         Fall back on chown if open failed with EACCES.
75317
75318         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
75319         Report an error at compile-time if only a 1-second nominal clock
75320         resolution is found.
75321
75322         * lib/lchmod.h: New file.
75323         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
75324         (make_dir_parents): Use lchown rather than chown, and
75325         lchmod rather than chmod.
75326
75327         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
75328         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
75329         "proc" reported by n0dalus.
75330
75331         * lib/mountlist.c: Include <limits.h>.
75332         (dev_from_mount_options)
75333         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
75334         New function.  It no longer assumes "dev=" has the System V meaning
75335         on Linux (since it doesn't).  It also parses "dev=" more carefully.
75336         (read_file_system_list)
75337         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
75338         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
75339         dev= in that case.
75340
75341         * lib/posixtm.h (PDS_PRE_2000): New macro.
75342         * lib/posixtm.c (year): Arg is now syntax_bits rather than
75343         allow_century.  All usages changed.  Reject dates outside the range
75344         1969-1999 if PDS_PRE_2000 is used.
75345
75346 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
75347
75348         Sync from coreutils.
75349         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
75350         (Time of day items): Mention the possibility of leap seconds.
75351         Problem reported by Dr. David Alan Gilbert.
75352
75353 2006-01-09  Jim Meyering  <jim@meyering.net>
75354
75355         Sync from coreutils.
75356
75357         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
75358
75359         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
75360
75361         * lib/modechange.c (mode_compile): Reject an invalid mode string
75362         that starts with an octal digit.  From Andreas Gruenbacher.
75363
75364         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
75365         and dup to open_safer and dup_safer, respectively.
75366         (openat_permissive): Fix typo in comment.
75367
75368         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
75369         "gettext.h"; either no longer needed or are guaranteed by openat.h.
75370         (_): Remove; no longer needed.
75371         (openat): Renamed from rpl_openat; no need for rpl_openat
75372         since openat.h renames openat for us.
75373         Replace most of the body with a call to openat_permissive,
75374         to avoid duplicate code.
75375         Port to (probably hypothetical) environments were mode_t is
75376         wider than int.
75377         (openat_permissive): Require mode arg, so that we can check
75378         types better.  Put it just after flags.  Change cwd failure
75379         indicator from pointer-to-bool to pointer-to-errno-value.
75380         All callers changed.
75381         Invoke openat_save_fail and/or openat_restore_fail if
75382         cwd_errno is null, so that openat can call us.
75383         (openat_permissive, fdopendir, fstatat, unlinkat):
75384         Simplify errno handling to avoid some duplicate code,
75385         as it's OK to set errno on success.
75386         * lib/openat.h: Revamp code so that function macros depend on
75387         __OPENAT_PREFIX only, not also on AT_FDCWD.
75388         (openat_ro): Remove.  Caller changed to use openat_permissive.
75389         (openat_permissive): Now a macro, if not a function.
75390         (openat_restore_fail, openat_save_fail): Now always functions,
75391         since mkdirat needs them even if __OPENAT_PREFIX is defined.
75392
75393         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
75394         and openat.c.
75395         * lib/mkdirat.c: Include openat-priv.h.
75396         Remove definitions of macros defined therein.
75397         * lib/openat.c: Likewise.
75398
75399         * lib/mkdirat.c (mkdirat): New file and function.
75400         * lib/openat.h (mkdirat): Declare.
75401
75402         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
75403
75404         * lib/openat.h (openat_permissive): Declare.
75405         (openat_ro): Define.
75406
75407         * lib/openat.c (EXPECTED_ERRNO): New macro.
75408         (openat_permissive): New function -- used in remove.c rewrite.
75409         (all functions): Set errno just before returning, only if there
75410         was an actual failure.
75411         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
75412
75413         Emulate openat-family functions using Linux's procfs, if possible.
75414         Idea and some code based on Ulrich Drepper's glibc changes.
75415
75416         * lib/openat.c: (BUILD_PROC_NAME): New macro.
75417         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
75418         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
75419         before falling back on save_cwd and restore_cwd.
75420         (fdopendir, fstatat, unlinkat): Likewise.
75421
75422         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
75423         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
75424
75425         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
75426         as second argument to va_arg.  Otherwise, some versions of gcc
75427         warn that `if this code is reached, the program will abort'.
75428
75429 2006-01-09  Jim Meyering  <jim@meyering.net>
75430
75431         Sync from coreutils.
75432         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
75433         Require openat-priv.h.
75434
75435 2006-01-09  Bruno Haible  <bruno@clisp.org>
75436
75437         * modules/strnlen (Include): Use strnlen.h.
75438
75439 2006-01-09  Bruno Haible  <bruno@clisp.org>
75440
75441         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
75442
75443 2006-01-09  Bruno Haible  <bruno@clisp.org>
75444
75445         * lib/sysexit_.h (EX_OK): New macro.
75446         Suggested by Martin Lambers <marlam@marlam.de>.
75447
75448 2006-01-09  Bruno Haible  <bruno@clisp.org>
75449
75450         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
75451         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
75452
75453 2006-01-09  Bruno Haible  <bruno@clisp.org>
75454
75455         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
75456         numbers.
75457
75458 2006-01-09  Bruno Haible  <bruno@clisp.org>
75459
75460         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
75461         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
75462         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
75463         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
75464
75465 2006-01-09  Bruno Haible  <bruno@clisp.org>
75466
75467         * build-aux/javacomp.sh.in: New file, moved from lib/.
75468         * modules/javacomp-script (Files): Update.
75469         (configure.ac): Add AC_CONFIG_FILES invocation.
75470         (EXTRA_DIST): Remove variable.
75471
75472         * build-aux/javaexec.sh.in: New file, moved from lib/.
75473         * modules/javaexec (Files): Update.
75474         (configure.ac): Add AC_CONFIG_FILES invocation.
75475         (EXTRA_DIST): Remove javaexec.sh.in.
75476
75477         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
75478         * modules/csharpcomp-script (Files): Update.
75479         (configure.ac): Add AC_CONFIG_FILES invocation.
75480         (EXTRA_DIST): Remove variable.
75481
75482         * build-aux/csharpexec.sh.in: New file, moved from lib/.
75483         * modules/csharpexec (Files): Update.
75484         (configure.ac): Add AC_CONFIG_FILES invocation.
75485         (EXTRA_DIST): Remove csharpexec.sh.in.
75486
75487 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
75488
75489         Sync from coreutils.
75490
75491         Add POSIX ACL support
75492         * lib/acl.h (copy_acl, set_acl): Add declarations.
75493         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
75494         systems other than Linux.
75495         (chmod_or_fchmod): New function: use fchmod when possible,
75496         and chmod otherwise.
75497         (file_has_acl): Add a POSIX ACL implementation, with a
75498         Linux-specific subcase.
75499         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
75500         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
75501         acls are unsupported.
75502         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
75503         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
75504         are unsupported.
75505
75506 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
75507
75508         Sync from coreutils.
75509         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
75510
75511 2006-01-07  Bruno Haible  <bruno@clisp.org>
75512
75513         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
75514         gl_EARLY.
75515
75516 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75517
75518         * lib/strftime.c (tzname): Don't declare if it is already #defined.
75519         Problem reported for Mingw by Mark Junker.
75520
75521 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
75522
75523         * README: Gnulib normally doesn't generate a tarball.
75524
75525 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
75526
75527         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
75528         long int, not int, for nanosecond counts, so that people who are
75529         used to POSIX struct timespec won't be surprised.  Reported by Jim
75530         Meyering.
75531
75532 2005-12-28  Bruno Haible  <bruno@clisp.org>
75533
75534         * build-aux/config.rpath: Update from GNU gettext.
75535
75536 2005-12-16  Jim Meyering  <jim@meyering.net>
75537
75538         * modules/fprintftime: New module.
75539         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
75540
75541 2005-12-16  Jim Meyering  <jim@meyering.net>
75542
75543         * m4/fprintftime.m4: New file.
75544
75545 2005-12-16  Jim Meyering  <jim@meyering.net>
75546
75547         * lib/fprintftime.c, lib/fprintftime.h: New files.
75548
75549 2005-12-15  Simon Josefsson  <jas@extundo.com>
75550
75551         * modules/socklen (configure.ac): Fix M4 macro name, to align with
75552         new m4/socklen.m4.
75553
75554 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75555
75556         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
75557         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
75558
75559 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75560
75561         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
75562         * lib/argp-help.c (fill_in_uparams): Check if the constructed
75563         struct uparams is valid. Fall back to the default values if it is
75564         not.
75565
75566 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75567
75568         * modules/argp (Files): Add argp-pin.c
75569         (Depends-on): dirname
75570         (lib_SOURCES): Add argp-pin.c
75571
75572 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75573
75574         * m4/argp.m4:  Check if program_invocation_name and
75575         program_invocation_short_name are declared and define appropriate
75576         macros if they are not.
75577
75578 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75579
75580         * lib/argp-help.c (__argp_base_name): New function
75581         (__argp_short_program_name): Rewrite using __argp_base_name
75582         * lib/argp-namefrob.h: Define program_invocation_name and
75583         program_invocation_short_name if requested
75584         (__argp_base_name): Add prototype
75585         * lib/argp-parse.c (argp_def): Use gettext wrappers
75586         (argp_default_parser): Use __argp_base_name
75587         * lib/argp-pin.c: New file. Defines program_invocation_name and
75588         program_invocation_short_name on systems that lack them.
75589
75590 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75591
75592         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
75593         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
75594         porting problem reported by Georg Schwarz in
75595         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
75596
75597 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
75598
75599         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
75600         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
75601         porting problem reported by Georg Schwarz in
75602         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
75603
75604 2005-12-05  Bruno Haible  <bruno@clisp.org>
75605
75606         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
75607         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
75608         Reported by Mark Junker <mjscod@gmx.de>.
75609
75610 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
75611
75612         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
75613         Use implementation from Albert Chin, with some
75614         comments/corrections by Stepan Kasal and myself.
75615
75616 2005-12-02  Bruno Haible  <bruno@clisp.org>
75617
75618         * gnulib-tool (func_import): Accept GPLed build tool modules when
75619         --lgpl is given.
75620         * modules/csharpcomp-script: New file.
75621         * modules/csharpcomp: Depend on it.
75622         * modules/javacomp-script: New file.
75623         * modules/javacomp: Depend on it.
75624         Suggested by Simon Josefsson.
75625
75626 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
75627
75628         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
75629         statement, to work around an HP-UX 10.20 compiler bug reported by
75630         Peter O'Gorman.
75631
75632 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
75633
75634         * modules/savedir (Depends-on): Add openat.
75635
75636 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
75637
75638         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
75639         (uintmax_t) [defined uintmax_t]: Do not declare.
75640         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
75641         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
75642         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
75643         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
75644         sake of portability to weird hosts that C allows (though we don't
75645         know of any practical examples).
75646
75647         * lib/savedir.h (fdsavedir): New decl.
75648         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
75649         contains most of the former guts of savedir.
75650         (savedir): Use savedirstream.
75651         Include "openat.h".
75652
75653 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
75654
75655         * modules/obstack (Files): Add m4/ulonglong.m4.
75656         Problem reported by Davide Angelocola.
75657
75658 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
75659
75660         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
75661         coreutils no longer futzes with rounding modes.
75662
75663 2005-11-14  Jim Meyering  <jim@meyering.net>
75664
75665         * lib/mkstemp-safer.c: Include <config.h>, required for possible
75666         replacement of mkstemp.
75667
75668 2005-11-10  Simon Josefsson  <jas@extundo.com>
75669
75670         * lib/readline.c: Remove EOL.
75671
75672 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75673
75674         * modules/gethrxtime (Depends-on): Add gettime.
75675
75676 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75677
75678         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
75679         or gettimeofday; no longer needed.
75680
75681 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
75682
75683         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
75684         time business.
75685         (gethrxtime) [! (HAVE_NANOUPTIME
75686         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
75687         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
75688         our own approximation.
75689
75690 2005-11-08  Eric Blake  <ebb9@byu.net>
75691
75692         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
75693
75694 2005-11-08  Eric Blake  <ebb9@byu.net>
75695
75696         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
75697
75698 2005-11-04  Bruno Haible  <bruno@clisp.org>
75699
75700         * gnulib-tool: Implement --update mode.
75701
75702 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75703
75704         Fix porting problem reported by Theodoros V. Kalamatianos.
75705         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
75706         Don't assume that futimes failing means we must fail.
75707
75708 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
75709
75710         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
75711         variables to suggest the intended function of the PATH_MAX check.
75712
75713 2005-10-30  Kean Johnston  <jkj@sco.com>
75714
75715         Trivial changes to support SCO systems.
75716         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
75717         as PATH_MAX.
75718         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
75719         where __ptr is null when no I/O is pending.
75720
75721 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
75722
75723         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
75724         leave errno alone.  Problem reported by Dmitry V. Levin.
75725
75726 2005-10-28  Simon Josefsson  <jas@extundo.com>
75727
75728         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
75729         Test more.
75730
75731         * tests/test-gc-md2.c, tests/test-md2.c: New files.
75732
75733         * modules/md2, modules/md2-tests: New files.
75734
75735 2005-10-28  Simon Josefsson  <jas@extundo.com>
75736
75737         * m4/inet_ntop.m4: More tests.
75738
75739         * m4/gc-md2.m4, md2.m4: New file.
75740
75741 2005-10-28  Simon Josefsson  <jas@extundo.com>
75742
75743         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
75744         "restrict" keywords, as per POSIX.  Protect the function
75745         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
75746         Don't use K&R prototypes.  Check the sprintf return values.
75747         Re-define EAFNOSUPPORT if not present.  Indent.
75748
75749         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
75750         suggested by Bruno Haible <bruno@clisp.org>.
75751
75752         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
75753
75754         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
75755
75756         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
75757         libgcrypt).
75758
75759         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
75760
75761         * lib/md2.h, lib/md2.c: New files.
75762
75763 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
75764
75765         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
75766         errno alone.  Problem reported by Frederic Jolliton.
75767
75768 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
75769
75770         * modules/verify (License): Change from GPL to LGPL.  This is a
75771         tiny module and there are apparently near-equivalents that are
75772         under the BSD license.
75773
75774 2005-10-24  Simon Josefsson  <jas@extundo.com>
75775
75776         * modules/sha1: Relicense to LGPL.
75777
75778 2005-10-24  Simon Josefsson  <jas@extundo.com>
75779
75780         * lib/md4.h: Shrink buffer size, now that we changed the type.
75781
75782 2005-10-23  Simon Josefsson  <jas@extundo.com>
75783
75784         * gnulib-tool (func_import): Fix --tests-base.
75785
75786 2005-10-22  Simon Josefsson  <jas@extundo.com>
75787
75788         * modules/arcfour (Depends-on): Need stdint.
75789
75790 2005-10-22  Simon Josefsson  <jas@extundo.com>
75791
75792         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
75793         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
75794
75795 2005-10-22  Simon Josefsson  <jas@extundo.com>
75796
75797         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
75798         suggested by Bruno Haible <bruno@clisp.org>.
75799
75800 2005-10-22  Simon Josefsson  <jas@extundo.com>
75801
75802         * lib/crc.h: Include stddef.h, for size_t.
75803
75804 2005-10-22  Simon Josefsson  <jas@extundo.com>
75805
75806         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
75807         arcfour_context struct (simplify test vector testing in GNU
75808         Shishi).
75809
75810 2005-10-21  Simon Josefsson  <jas@extundo.com>
75811
75812         * modules/des, modules/des-tests: New files.
75813
75814         * modules/gc-des, modules/gc-des-tests: New files.
75815
75816         * tests/test-des.c, tests/test-gc-des.c: New file.
75817
75818 2005-10-21  Simon Josefsson  <jas@extundo.com>
75819
75820         * modules/arctwo, modules/arctwo-tests: New files.
75821
75822         * tests/test-arctwo.c: New file.
75823
75824         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
75825
75826         * tests/test-gc-arctwo.c: New file.
75827
75828 2005-10-21  Simon Josefsson  <jas@extundo.com>
75829
75830         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
75831         Bruno Haible <bruno@clisp.org>.
75832
75833         * m4/gc-des.m4: New file.
75834
75835 2005-10-21  Simon Josefsson  <jas@extundo.com>
75836
75837         * m4/arctwo.m4: New file.
75838
75839         * m4/gc-arctwo.m4: New file.
75840
75841 2005-10-21  Simon Josefsson  <jas@extundo.com>
75842
75843         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
75844         block.
75845
75846 2005-10-21  Simon Josefsson  <jas@extundo.com>
75847
75848         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
75849         <bruno@clisp.org>.
75850
75851         * lib/hmac-sha1.c (hmac_sha1): Likewise.
75852
75853         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
75854         Bruno Haible <bruno@clisp.org>.
75855
75856         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
75857         <bruno@clisp.org>.
75858
75859 2005-10-21  Simon Josefsson  <jas@extundo.com>
75860
75861         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
75862
75863 2005-10-21  Simon Josefsson  <jas@extundo.com>
75864
75865         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
75866
75867 2005-10-21  Simon Josefsson  <jas@extundo.com>
75868
75869         * lib/des.h, lib/des.c: New files.
75870
75871         * lib/gc-gnulib.c: Support DES.c
75872
75873 2005-10-21  Simon Josefsson  <jas@extundo.com>
75874
75875         * lib/arctwo.h, lib/arctwo.c: New files.
75876
75877         * lib/gc-gnulib.c: Support ARCTWO.
75878
75879 2005-10-21  Simon Josefsson  <jas@extundo.com>
75880
75881         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
75882         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75883
75884 2005-10-21  Simon Josefsson  <jas@extundo.com>
75885
75886         * gnulib-tool (func_import, func_create_testdir): Define automake
75887         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
75888         Makefile.am snippet),
75889         suggested by Bruno Haible <bruno@clisp.org>.
75890
75891         * modules/gc (Makefile.am): Use it.
75892
75893 2005-10-21  Bruno Haible  <bruno@clisp.org>
75894
75895         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
75896         patch.
75897
75898 2005-10-19  Simon Josefsson  <jas@extundo.com>
75899
75900         * tests/test-gc-rijndael.c: New file.
75901
75902         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
75903
75904 2005-10-19  Simon Josefsson  <jas@extundo.com>
75905
75906         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
75907         interface too.
75908
75909 2005-10-19  Simon Josefsson  <jas@extundo.com>
75910
75911         * tests/test-gc-arcfour.c: New file.
75912
75913         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
75914
75915 2005-10-19  Simon Josefsson  <jas@extundo.com>
75916
75917         * modules/gc-md4, modules/gc-md4-tests: New file.
75918
75919         * tests/test-gc-md4.c: New file.
75920
75921 2005-10-19  Simon Josefsson  <jas@extundo.com>
75922
75923         * m4/gc-md4.m4: New file.
75924
75925 2005-10-19  Simon Josefsson  <jas@extundo.com>
75926
75927         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
75928         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
75929         <kasal@ucw.cz>.
75930
75931 2005-10-19  Simon Josefsson  <jas@extundo.com>
75932
75933         * m4/gc-arcfour.m4: New file.
75934
75935         * m4/gc-rijndael.m4: New file.
75936
75937 2005-10-19  Simon Josefsson  <jas@extundo.com>
75938
75939         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
75940
75941 2005-10-19  Simon Josefsson  <jas@extundo.com>
75942
75943         * lib/gc-gnulib.c: Support ARCFOUR.
75944
75945 2005-10-19  Simon Josefsson  <jas@extundo.com>
75946
75947         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
75948         support.
75949
75950         * lib/gc.h: Add ECB enum type.
75951
75952         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
75953
75954 2005-10-18  Simon Josefsson  <jas@extundo.com>
75955
75956         * tests/test-md5.c: New file.
75957
75958         * modules/md5-tests: New file.
75959
75960 2005-10-18  Simon Josefsson  <jas@extundo.com>
75961
75962         * tests/test-md4.c: New file.
75963
75964         * modules/md4, modules/md4-tests: New files.
75965
75966 2005-10-18  Simon Josefsson  <jas@extundo.com>
75967
75968         * m4/md4.m4: New file.
75969
75970 2005-10-18  Simon Josefsson  <jas@extundo.com>
75971
75972         * lib/md4.h, lib/md4.c: New files, based on md5.?.
75973
75974 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
75975
75976         * gnulib-tool (func_create_testdir): Omit the second check whether
75977         BUILT_SOURCES in nonempty.
75978
75979 2005-10-17  Simon Josefsson  <jas@extundo.com>
75980
75981         * tests/test-rijndael.c: New file.
75982
75983 2005-10-17  Simon Josefsson  <jas@extundo.com>
75984
75985         * modules/sha1: Depend on stdint instead of md5.
75986
75987         * modules/md5: Depend on stdint, remove uint32_t.
75988
75989 2005-10-17  Simon Josefsson  <jas@extundo.com>
75990
75991         * modules/gc-sha1-tests: New file.
75992
75993         * tests/test-gc-sha1.c: New file.
75994
75995 2005-10-17  Simon Josefsson  <jas@extundo.com>
75996
75997         * m4/md5.m4: Remove call to uint32_t.m4.
75998
75999 2005-10-17  Simon Josefsson  <jas@extundo.com>
76000
76001         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
76002
76003         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
76004         md5.h.
76005
76006         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
76007
76008         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
76009
76010 2005-10-17  Simon Josefsson  <jas@extundo.com>
76011
76012         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
76013
76014 2005-10-17  Simon Josefsson  <jas@extundo.com>
76015
76016         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
76017
76018 2005-10-17  Simon Josefsson  <jas@extundo.com>
76019
76020         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
76021
76022         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
76023
76024 2005-10-17  Bruno Haible  <bruno@clisp.org>
76025
76026         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
76027         that it can also be used in a test.
76028
76029 2005-10-16  Bruno Haible  <bruno@clisp.org>
76030
76031         * gnulib-tool (func_emit_tests_Makefile_am): Also define
76032         TESTS_ENVIRONMENT, so that individual tests can augment it.
76033
76034         * gnulib-tool (func_create_testdir): Use an intermediate target for
76035         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
76036         macros, like $(ALLOCA_H), which cannot be passed through the command
76037         line.
76038
76039 2005-10-15  Simon Josefsson  <jas@extundo.com>
76040
76041         * modules/rijndael-tests: New file.
76042
76043         * modules/rijndael: New file.
76044
76045 2005-10-15  Simon Josefsson  <jas@extundo.com>
76046
76047         * m4/rijndael.m4: New file.
76048
76049 2005-10-15  Simon Josefsson  <jas@extundo.com>
76050
76051         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
76052
76053         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
76054
76055 2005-10-14  Simon Josefsson  <jas@extundo.com>
76056
76057         * tests/test-arcfour.c: New file.
76058
76059         * modules/arcfour, modules/arcfour-tests: New files.
76060
76061 2005-10-14  Simon Josefsson  <jas@extundo.com>
76062
76063         * m4/arcfour.m4: New file.
76064
76065 2005-10-14  Simon Josefsson  <jas@extundo.com>
76066
76067         * lib/arcfour.h, lib/arcfour.c: New files.
76068
76069 2005-10-14  Roland McGrath  <roland@redhat.com>
76070
76071         Import from libc.  [BZ #1331]
76072         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
76073         macro argument.
76074         Reported by Matej Vela <vela@debian.org>.
76075
76076 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76077
76078         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
76079         include <wchar.h>; no longer needed.
76080
76081 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
76082
76083         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
76084
76085 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
76086         and  Ulrich Drepper  <drepper@redhat.com>
76087
76088         Import from libc.
76089         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
76090         instead of inline stream orientation test and two separate
76091         function calls.  Pay no attention to USE_IN_LIBIO.
76092
76093 2005-10-13  Simon Josefsson  <jas@extundo.com>
76094
76095         * modules/gc-hmac-md5-tests: New file.
76096
76097         * tests/test-gc-hmac-sha1.c: New file.
76098
76099         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
76100
76101         * modules/gc-hmac-md5-tests: New file.
76102
76103         * tests/test-gc-md5.c: New file.
76104
76105         * modules/gc-md5-tests: New file.
76106
76107 2005-10-13  Simon Josefsson  <jas@extundo.com>
76108
76109         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
76110         Move memory allocation outside of loop.
76111
76112 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
76113
76114         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
76115         intermediate directory is in a read-only file system.  Problem
76116         reported by Eric Blake.
76117
76118 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
76119
76120         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
76121
76122 2005-10-12  Simon Josefsson  <jas@extundo.com>
76123
76124         * tests/test-hmac-sha1.c: New file.
76125
76126         * modules/hmac-sha1-tests: New file.
76127
76128         * modules/hmac-sha1: New file.
76129
76130 2005-10-12  Simon Josefsson  <jas@extundo.com>
76131
76132         * modules/gc-sha1: New file.
76133
76134 2005-10-12  Simon Josefsson  <jas@extundo.com>
76135
76136         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
76137
76138         * tests/test-gc-pbkdf2-sha1.c: New file.
76139
76140 2005-10-12  Simon Josefsson  <jas@extundo.com>
76141
76142         * modules/gc-md5, modules/gc-hmac-md5: New files.
76143
76144         * modules/gc (Files): Remove md5, memxor and hmac files.
76145
76146 2005-10-12  Simon Josefsson  <jas@extundo.com>
76147
76148         * m4/gc-pbkdf2-sha1.m4: New file.
76149
76150         * m4/gc-hmac-sha1.m4: New file.
76151
76152         * m4/gc-sha1: New file.
76153
76154         * m4/hmac-sha1.m4: New file.
76155
76156 2005-10-12  Simon Josefsson  <jas@extundo.com>
76157
76158         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
76159
76160         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
76161
76162 2005-10-12  Simon Josefsson  <jas@extundo.com>
76163
76164         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
76165         suggested by Bruno Haible <bruno@clisp.org>.
76166
76167 2005-10-12  Simon Josefsson  <jas@extundo.com>
76168
76169         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
76170
76171 2005-10-12  Simon Josefsson  <jas@extundo.com>
76172
76173         * lib/gc-pbkdf2-sha1.c: New file.
76174
76175         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
76176
76177 2005-10-12  Simon Josefsson  <jas@extundo.com>
76178
76179         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
76180
76181         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
76182
76183 2005-10-12  Simon Josefsson  <jas@extundo.com>
76184
76185         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
76186         GC_USE_HMAC_MD5, respectively.
76187
76188         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
76189         (gc_md5): Fix typo.
76190
76191         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
76192
76193         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
76194
76195         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
76196
76197 2005-10-12  Bruno Haible  <bruno@clisp.org>
76198
76199         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
76200         Reported by Stepan Kasal <kasal@ucw.cz>.
76201
76202 2005-10-11  Simon Josefsson  <jas@extundo.com>
76203
76204         * tests/test-crc.c: New file.
76205
76206         * modules/crc, modules/crc-tests: New files.
76207
76208 2005-10-11  Simon Josefsson  <jas@extundo.com>
76209
76210         * m4/crc.m4: New file.
76211
76212 2005-10-11  Simon Josefsson  <jas@extundo.com>
76213
76214         * lib/gc.h: Add gc_hash and gc_hash_buffer.
76215
76216         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
76217
76218         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
76219
76220 2005-10-11  Simon Josefsson  <jas@extundo.com>
76221
76222         * lib/crc.h, lib/crc.c: New files.
76223
76224         * lib/gc.h (gc_hash_buffer): Add doc.
76225
76226 2005-10-11  Bruno Haible  <bruno@clisp.org>
76227
76228         * modules/c-strcasestr: New file.
76229         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
76230
76231 2005-10-11  Bruno Haible  <bruno@clisp.org>
76232
76233         * modules/c-strcase: New file.
76234         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
76235
76236 2005-10-11  Bruno Haible  <bruno@clisp.org>
76237
76238         * lib/strcasecmp.c: Include limits.h.
76239         (strcasecmp): Avoid integer overflow on exotic platforms.
76240         * lib/strncasecmp.c: Include limits.h.
76241         (strncasecmp): Avoid integer overflow on exotic platforms.
76242         Reported by Paul Eggert.
76243
76244 2005-10-11  Bruno Haible  <bruno@clisp.org>
76245
76246         * lib/c-strcasestr.h: New file, from GNU gettext.
76247         * lib/c-strcasestr.c: New file, from GNU gettext.
76248
76249 2005-10-11  Bruno Haible  <bruno@clisp.org>
76250
76251         * lib/c-strcase.h: New file, from GNU gettext.
76252         * lib/c-strcasecmp.c: New file, from GNU gettext.
76253         * lib/c-strncasecmp.c: New file, from GNU gettext.
76254
76255 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
76256
76257         * modules/mempcpy (License): GPL -> LGPL.
76258         * modules/strchrnul (License): Likewise.
76259         * modules/sysexits (License): Likewise.
76260
76261 2005-10-08  Simon Josefsson  <jas@extundo.com>
76262
76263         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
76264
76265 2005-10-07  Simon Josefsson  <jas@extundo.com>
76266
76267         * m4/memxor.m4: Remove gl_C_RESTRICT call.
76268
76269 2005-10-06  Simon Josefsson  <jas@extundo.com>
76270
76271         * tests/test-hmac-md5.c: New file.
76272
76273         * modules/hmac-md5-tests: New file.
76274
76275         * modules/hmac-md5: New file.
76276
76277 2005-10-06  Simon Josefsson  <jas@extundo.com>
76278
76279         * m4/hmac-md5.m4: New file.
76280
76281         * m4/memxor.m4: Require gl_C_RESTRICT.
76282
76283 2005-10-06  Simon Josefsson  <jas@extundo.com>
76284
76285         * lib/memxor.c (memxor): Avoid casts and warnings.
76286
76287 2005-10-06  Simon Josefsson  <jas@extundo.com>
76288
76289         * lib/hmac-md5.c: New file.
76290
76291         * lib/hmac.h: New file.
76292
76293 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
76294
76295         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
76296         promotes to int, not unsigned int, to catch the AIX 5.3
76297         compiler bug.
76298
76299 2005-10-05  Simon Josefsson  <jas@extundo.com>
76300
76301         * modules/memxor: New file.
76302
76303         * modules/iconv (Files): Move config.rpath to havelib, it is used
76304         there.
76305
76306         * modules/havelib (Files): Add config.rpath.
76307
76308 2005-10-05  Simon Josefsson  <jas@extundo.com>
76309
76310         * m4/memxor.m4: New file.
76311
76312 2005-10-05  Simon Josefsson  <jas@extundo.com>
76313
76314         * lib/memxor.c (memxor): Fix compiler error.
76315
76316         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
76317         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
76318
76319         * lib/memxor.h, lib/memxor.c: New files.
76320
76321         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
76322         we assume all systems have it, suggested by Jim Meyering
76323         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
76324         any systems lack sys/socket.h; mingw32 is known to lack it, but we
76325         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
76326         same reasons.
76327
76328 2005-10-05  Simon Josefsson  <jas@extundo.com>
76329
76330         * config/srclist.txt: Add glibc bug 1423 for md5.h.
76331
76332 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
76333
76334         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
76335         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
76336         needed, since the source code now assumes these .h files.
76337
76338 2005-10-05  Derek Price  <derek@ximbiot.com>
76339
76340         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
76341
76342 2005-10-05  Bruno Haible  <bruno@clisp.org>
76343
76344         * modules/stdint (License): Change to LGPL.
76345
76346 2005-10-04  Simon Josefsson  <jas@extundo.com>
76347
76348         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
76349         D. Baushke" <mdb@gnu.org>.
76350
76351 2005-10-04  Bruno Haible  <bruno@clisp.org>
76352
76353         * lib/verify.h (verify_true): Provide alternative definition for C++.
76354
76355 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
76356
76357         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
76358         (SSIZE_MAX): New macro, if not already defined.
76359         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
76360         than 2 GiB.
76361
76362 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76363
76364         Sync from coreutils.
76365         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
76366         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
76367         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
76368         ULLONG_MAX doesn't work with 2.7.2.1.
76369
76370 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76371
76372         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
76373         From Ben Pfaff.
76374
76375         * modules/exclude (Depends-on): Depend on verify.
76376         * modules/strtoimax (Depends-on): Likewise.
76377         * modules/utimecmp (Depends-on): Likewise.
76378
76379 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
76380
76381         * lib/exclude.c: Include verify.h.
76382         (verify): Remove.  All callers changed to use verify.h's version.
76383         * lib/strtoimax.c: Likewise.
76384         * lib/utimecmp.c: Likewis.e
76385
76386         Sync from coreutils.
76387         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
76388         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
76389         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
76390         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
76391         bother returning ENOSYS if settimeofday or stime fails; just let
76392         them return whatever errno they want to return.
76393         * lib/utimens.c: Include unistd.h, for dup2.
76394         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
76395         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
76396
76397 2005-10-02  Jim Meyering  <jim@meyering.net>
76398
76399         Sync from coreutils.
76400         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
76401         from glibc-2.2.5 that fails for read-only files.
76402
76403 2005-10-02  Jim Meyering  <jim@meyering.net>
76404
76405         Sync from coreutils.
76406         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
76407         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
76408         `#if HAVE_CONFIG_H'.
76409         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
76410         Remove AT_FDCWD test.
76411         Do not consume the fd unless successful.
76412         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
76413         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
76414         block, so that we don't even try to compile it if settimeofday is
76415         available.  This works around a compilation failure on OSF1 V5.1,
76416         due to stime requiring a `long int*' while tv_sec is `int'.
76417
76418 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
76419
76420         Sync from coreutils.
76421         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
76422         against `yes', rather than just testing for nonempty.
76423
76424 2005-10-01  Simon Josefsson  <jas@extundo.com>
76425
76426         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
76427         and Darwin.
76428
76429         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
76430         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
76431         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
76432         freeaddrinfo and gai_strerror are declared by the POSIX headers.
76433         Check if struct addrinfo is declared.
76434
76435 2005-10-01  Simon Josefsson  <jas@extundo.com>
76436
76437         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
76438         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
76439         AI_* and EAI_* definitions.  Protect function declarations.
76440
76441 2005-10-01  Jim Meyering  <jim@meyering.net>
76442
76443         Sync from coreutils.
76444
76445         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
76446         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
76447         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
76448         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
76449         in the inet and nsl libraries.  Required on Solaris 5.7.
76450
76451 2005-10-01  Jim Meyering  <jim@meyering.net>
76452
76453         Sync from coreutils.
76454         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
76455         in the inet and nsl libraries.  Required on Solaris 5.7.
76456
76457 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
76458
76459         * lib/getdelim.c (getdelim): Remove unused variables.
76460
76461 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
76462
76463         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
76464         so that the code works even with ancient cpp.  Portability problem
76465         with GCC 2.7.2.1 reported by Thomas M.Ott.
76466
76467 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
76468
76469         * modules/regex (Depends-on): Add strcase.
76470
76471         * modules/gethostname (Licence): Change from GPL to LGPL, since
76472         gethostname.c is a trivial implementation of a standard library
76473         function.
76474         * modules/poll (License): Change from GPL to LGPL, since it's
76475         derived from LGPL code.
76476
76477 2005-09-27  Jim Meyering  <jim@meyering.net>
76478
76479         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
76480         HAVE_CONFIG_H.
76481
76482         * lib/intprops.h (signed_type_or_expr__): Define.
76483         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
76484         for unsigned types.
76485
76486 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
76487
76488         * lib/verify.h (verify_expr): Remove, replacing with:
76489         (verify_true): New macro that returns true instead of void.
76490         (verify_type__): Remove.
76491         (verify): Use verify_true rather than verify_type__.
76492
76493 2005-09-26  Bruno Haible  <bruno@clisp.org>
76494
76495         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
76496         is necessary.
76497         (lib_SOURCES): Remove mbchar.c.
76498         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
76499         (Files): Add m4/mbrtowc.m4.
76500         * modules/mbiter: Likewise.
76501         * modules/mbuiter: Likewise.
76502
76503 2005-09-26  Bruno Haible  <bruno@clisp.org>
76504
76505         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
76506         compile mbchar.c if they are not both present.
76507         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
76508         * m4/mbiter.m4 (gl_MBITER): Likewise.
76509         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
76510         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
76511         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
76512
76513 2005-09-25  Jim Meyering  <jim@meyering.net>
76514
76515         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
76516         also uses socklen_t.
76517
76518 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
76519
76520         * lib/utimens.c (ENOSYS): Define if not already defined.
76521         (futimens): Support having a null PATH if the file descriptor
76522         is nonnegative.
76523
76524         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
76525         Remove.
76526         (__attribute): Define to empty unless GCC 3.1 or later.
76527         This works around a core dump on OpenBSD 3.4, which has GCC
76528         2.95.3, which dumps core when given __attribute__(()).  It also
76529         simplifies other tests, since we really don't want to bother with
76530         worrying about which ancient version of GCC supported what.
76531         Original problem reported by Yoann Vandoorselaere, with part of
76532         the fix suggested by Derek Price.
76533
76534 2005-09-24  Jim Meyering  <jim@meyering.net>
76535
76536         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
76537         so we can once again use a positive bitfield width of 1 -- now we
76538         don't have to explain why we were using a bitfield width of 2.
76539
76540 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
76541
76542         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
76543         and similarly for the other external symbols.  Problem reported
76544         by James Gallager.
76545
76546         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
76547         bug reported by Jim Meyering.
76548
76549         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
76550         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
76551         not needed, since socklen is a prerequisite module.
76552
76553 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
76554
76555         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
76556         Problem reported by Eric Blake.
76557         (getaddrinfo): Initialize se so that it's not garbage.
76558         Redo internal storage allocation so that it doesn't make unportable
76559         assumptions about alignment.
76560         Fix a memory leak.
76561
76562         * lib/utimens.c (futimens): Use futimesat if available.
76563         Prefer it to futimes since it doesn't have the futimes bug.
76564
76565         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
76566         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
76567         Instead, declare a function that returns a pointer to an array,
76568         and use verify_type__ to declare the size of the array.
76569         Problem and germ of a solution reported by Bruno Haible.
76570         (verify_type__): Use 2, not 1, for bitfield size, to avoid
76571         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
76572
76573 2005-09-23  Jim Meyering  <jim@meyering.net>
76574
76575         Sync from coreutils.
76576         Correct build failure (socklen_t not defined) on at least
76577         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
76578         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
76579
76580 2005-09-23  Jim Meyering  <jim@meyering.net>
76581
76582         * modules/getaddrinfo (Depends-on): Add socklen.
76583
76584 2005-09-23  Bruno Haible  <bruno@clisp.org>
76585
76586         * tests/test-verify.c: New file.
76587
76588 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76589
76590         Sync from coreutils.
76591
76592         * modules/argmatch (Depends-on): Add verify.
76593         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
76594         unistd-safer.
76595         * modules/save-cwd (Depends-on): Likewise.
76596
76597         * modules/openat (Files): Add lib/openat-die.c.
76598         (Depends-on): Remove error, exitfail.
76599         Add dirname.
76600
76601         * modules/verify: New file.
76602         * MODULES.html.sh (Diagnostics <assert.h>): New section,
76603         with "verify" module.
76604
76605 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76606
76607         Sync from coreutils.
76608
76609         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
76610         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
76611         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
76612         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
76613         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
76614         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
76615         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
76616         Don't bother checking for string.h, stdlib.h, unistd.h.
76617         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
76618         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
76619         module's job.
76620         * m4/jm-macros.m4 (gl_MACROS): Likewise.
76621         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
76622
76623         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
76624         (gl_GETDATE): Use it.
76625
76626         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
76627
76628 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76629
76630         Sync from coreutils.
76631
76632         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
76633         stat-time.h.
76634         * lib/argmatch.h: Include verify.h
76635         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
76636         (ARGMATCH_ASSERT): Remove; unused.
76637         * lib/canonicalize.c: Assume STDC_HEADERS.
76638         * lib/exclude.c: Include "strcase.h".
76639         * lib/regex_internal.h [!defined _LIBC]: Likewise.
76640         * lib/getusershell.c: Include stdio--.h rather than stdio.h
76641         and stdio-safer.h.
76642         (getusershell): Call fopen, not fopen_safer.
76643         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
76644         Do not include unistd-safer.h.
76645         (save_cwd): Don't call fd_safer; no longer needed
76646         now that we include fcntl--.h.
76647
76648         * lib/getdate.y (relative_time): New type.
76649         (RELATIVE_TIME_0): New constant.
76650         (parser_control): Use relative_time instead of doing it ourselves.
76651         (%union): Add new relative_time rel member.
76652         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
76653         Now typeless.
76654         (relunit, relunit_snumber): Now of type rel.
76655         (zone, rel, relunit, get_date): Adjust to above changes.
76656
76657         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
76658         Do not include unistd-safer.h.
76659         (getloadavg): Don't call fd_safer; no longer needed
76660         now that we include fcntl--.h.
76661
76662         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
76663         (make_dir_parents): Treat ENOSYS like EEXIST.
76664
76665         Improve quality of diagnostics on restore_cwd failure.
76666         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
76667         (make_dir_parents): Last arg is now int * (for errno), not bool *.
76668         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
76669         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
76670         each time through the loop.  Do not diagnose restore_cwd failure;
76671         that is the caller's job (and perhaps the caller does not care).
76672
76673         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
76674         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
76675         If the file already exists but is not a directory, don't bother
76676         to try to make its parents.
76677         Close potential file descriptor leak if we can't chdir("/") (!).
76678         Don't always return true if chdir($PWD) fails; return true only
76679         if the requested action was done successfully (except for the
76680         chdir($PWD)).
76681         Don't log final directory unless we actually made it.
76682         Refactor to avoid duplicate code to fix up permissions.
76683         Don't attempt to fix up parent permissions if chdir($PWD) fails.
76684
76685         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
76686         to make it a bit faster and (I hope) clearer.
76687         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
76688         Fix bug in formats like %2N.
76689
76690         * lib/verify.h: New file.
76691
76692 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
76693
76694         Sync from coreutils.
76695         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
76696
76697 2005-09-22  Jim Meyering  <jim@meyering.net>
76698
76699         Sync from coreutils.
76700
76701         * m4/lstat.m4 (gl_FUNC_LSTAT):
76702         Use AC_LIBSOURCES to require lstat.c and lstat.h.
76703         Remove obsolete comment.
76704         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
76705         * m4/xstrtod.m4: Likewise.
76706
76707         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
76708
76709 2005-09-22  Jim Meyering  <jim@meyering.net>
76710
76711         Sync from coreutils.
76712
76713         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
76714
76715         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
76716         the .tm_year member, since otherwise gcc-4.0 would now warn about
76717         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
76718
76719         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
76720         order to avoid an unsuppressible warning from gcc on 64-bit systems.
76721
76722         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
76723         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
76724         when run in a time zone for which daylight savings time is in effect
76725         for the starting date.
76726
76727         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
76728         stop us from restricting permissions of just-created absolute-named
76729         directories.
76730         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
76731         to restore initial working directory.
76732         * lib/mkdir-p.c (make_dir_parents): New parameter:
76733         different_working_dir, to tell caller if/when we change the working
76734         directory and are unable to return to the initial one.
76735         * lib/mkdir-p.h (make_dir_parents): Update prototype.
76736         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
76737         `return false'.  This fixes a bug introduced on 2004-07-30.
76738
76739         * lib/openat.c (fdopendir): Be sure to close the supplied
76740         file descriptor before returning.  This makes our replacement
76741         implementation a little closer to Solaris's, where fdopendir
76742         ties the file descriptor to the returned DIR* pointer.
76743         * lib/openat.c (unlinkat): New function.
76744         * lib/openat.h (unlinkat): Add prototype.
76745         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
76746         (openat_restore_fail): Rename from openat_restore_die.
76747         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
76748
76749         Provide an alternative to exiting immediately upon save_cwd or
76750         restore_cwd failure.  Now, an application can arrange e.g.,
76751         to perform a longjump in that case.
76752         * lib/openat.c: Include dirname.h.
76753         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
76754         (rpl_openat, fdopendir, fstatat): Call openat_save_die
76755         and openat_restore_die rather than calling error directly.
76756         Don't include "error.h" or "exitfail.h"; they're no longer needed.
76757
76758         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
76759         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
76760         define.
76761
76762         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
76763         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
76764                             int utc, int nanoseconds);
76765         Background:
76766         date should not have to allocate a megabyte of virtual memory to
76767         handle a format argument like +%1048575T.  When implemented with
76768         strftime, it must allocate such a buffer, use strftime to fill it
76769         in, print it, then free it.
76770         With fprintftime, it simply prints everything and exits.
76771         With no need for memory allocation, that's one fewer way to fail.
76772         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
76773         optional field width, not before, so we accept %9:z, not %:9z.
76774         (my_strftime): Be sure to use L_('x') for literals.
76775
76776         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
76777         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
76778         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
76779         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
76780         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
76781         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
76782         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
76783         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
76784         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
76785         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
76786         * lib/xgethostname.c, lib/xreadlink.c:
76787         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
76788
76789         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
76790         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
76791         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
76792         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
76793         and don't include <sys/file.h>).
76794
76795 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
76796
76797         Sync from coreutils.
76798
76799         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
76800         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
76801         [!LDAV_DONE]: Avoid unused variable warning.
76802
76803 2005-09-21  Bruno Haible  <bruno@clisp.org>
76804
76805         * lib/unicodeio.h (unicode_to_mb): New declaration.
76806
76807 2005-09-20  Derek Price  <derek@ximbiot.com>
76808
76809         * lib/getaddrinfo.c: Don't include <netdb.h> included from
76810         getaddrinfo.h.
76811
76812 2005-09-20  Bruno Haible  <bruno@clisp.org>
76813
76814         * gnulib-tool: Remove trailing slashes from the values specified for
76815         --source-base, --m4-base, --tests-base, --aux-dir.
76816         Suggested by Simon Josefsson <jas@extundo.com>.
76817
76818 2005-09-20  Bruno Haible  <bruno@clisp.org>
76819
76820         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
76821         func_modules_to_filelist, func_import, func_create_testdir): Make all
76822         sorting results locale-independent, so that gnulib-cache.m4 doesn't
76823         change when gnulib-tool is invoked in a different locale.
76824
76825 2005-09-19  Simon Josefsson  <jas@extundo.com>
76826
76827         * m4/socklen.m4: Fix typo.
76828
76829 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76830
76831         Use a consistent style for including <config.h>.
76832         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
76833         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
76834         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
76835         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
76836         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
76837         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
76838         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
76839         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
76840         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
76841         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
76842         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
76843         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
76844         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
76845         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
76846         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
76847         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
76848         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
76849         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
76850         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
76851         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
76852         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
76853         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
76854         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
76855         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
76856         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
76857         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
76858         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
76859         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
76860         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
76861         lib/xstrtoumax.c, lib/yesno.c:
76862         Standardize inclusion of config.h.
76863         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
76864         lib/inttostr.h:  Removed inclusion of config.h from header files.
76865         * lib/inttostr.c:  Adjusted in-tree users.
76866         * lib/timespec.h: Remove superfluous warning to include config.h.
76867         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
76868         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
76869         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
76870         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
76871         config.h with HAVE_CONFIG_H.
76872
76873 2005-09-19  Jim Meyering  <jim@meyering.net>
76874
76875         * modules/pathmax (License): Change to LGPL.
76876
76877 2005-09-19  Derek Price  <derek@ximbiot.com>
76878
76879         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
76880
76881 2005-09-19  Bruno Haible  <bruno@clisp.org>
76882
76883         * gnulib-tool (import): Provide default for --tests-base.
76884
76885 2005-09-19  Bruno Haible  <bruno@clisp.org>
76886
76887         * doc/quote.texi: New file, extracted from gnulib.texi.
76888         * doc/ctime.texi: New file, extracted from gnulib.texi.
76889         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
76890         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
76891         * doc/gnulib.texi: Include them.
76892
76893 2005-09-18  Bruno Haible  <bruno@clisp.org>
76894
76895         Portability fix.
76896         * gnulib-tool (func_readlink): New function.
76897         (func_ln_if_changed): Use it.
76898
76899 2005-09-18  Bruno Haible  <bruno@clisp.org>
76900
76901         * gnulib-tool: Support --with-tests also with --import.
76902         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
76903         (func_import): Use variables $testsbase and $inctests. Emit a
76904         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
76905         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
76906         SUBDIRS += $testsdir.
76907         (func_create_testdir): Update.
76908
76909 2005-09-18  Bruno Haible  <bruno@clisp.org>
76910
76911         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
76912         instead of $dry_run.
76913         (func_cp_if_changed, func_mv_if_changed): Remove functions.
76914         (func_ln_if_changed): Don't handle dry-run here.
76915         (func_import): In dry-run mode, detect more precisely which actions
76916         would be performed, and don't use "...ing" verbs.
76917
76918 2005-09-18  Bruno Haible  <bruno@clisp.org>
76919
76920         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
76921         (func_import): Use join on two temporary files instead of three nested
76922         loops, in order to determine which files are new or old.
76923
76924 2005-09-18  Bruno Haible  <bruno@clisp.org>
76925
76926         * gnulib-tool (func_import): Comment out code that spits out the
76927         new files with --dry-run.
76928
76929 2005-09-18  Bruno Haible  <bruno@clisp.org>
76930
76931         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
76932
76933 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76934
76935         * lib/stat-time.h: New file.
76936         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
76937         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
76938         in a different way.
76939         (timespec_cmp): New function.
76940         * lib/utimecmp.c: Include stat-time.h.
76941         (SYSCALL_RESOLUTION): Depend on whether various struct stat
76942         members exist, not on the obsolescent ST_MTIM_NSEC.
76943         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
76944
76945 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76946
76947         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
76948
76949 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
76950
76951         * MODULES.html.sh (File system functions): Add stat-time.
76952         * modules/stat-time: New file.
76953         * modules/timespec (Files): Remove m4/st_mtim.m4; this
76954         is now done in a different way, by the stat-time module.
76955         * modules/utimecmp (Depends-on): Add stat-time.
76956
76957 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
76958
76959         * m4/st_mtim.m4: Remove.  Superseded by...
76960         * m4/stat-time.m4: New file.
76961         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
76962         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
76963
76964 2005-09-15  Derek Price  <derek@ximbiot.com>
76965
76966         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
76967
76968 2005-09-15  Derek Price  <derek@ximbiot.com>
76969
76970         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
76971         * lib/regex_internal.c: Ditto, using this...
76972         (__GNUC_PREREQ): ...new macro.
76973         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
76974         using...
76975         (__GNUC_PREREQ): ...this new macro.
76976
76977         * lib/strstr.h: Include string.h. Define strstr as a macro here.
76978
76979 2005-09-15  Derek Price  <derek@ximbiot.com>
76980             Paul Eggert  <eggert@cs.ucla.edu>
76981
76982         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
76983         changes, consolidating in...
76984         * lib/regex_internal.h: ...this file.
76985
76986 2005-09-13  Jim Meyering  <jim@meyering.net>
76987
76988         * lib/canon-host.c: Filter through gnu indent and reword comments
76989         slightly.
76990         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
76991
76992 2005-09-13  Derek Price  <derek@ximbiot.com>
76993
76994         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
76995         failure.
76996         Reported by Jim Meyering  <jim@meyering.net>.
76997
76998 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
76999
77000         * lib/base64.c: Typo.
77001         (base64_encode): Put b64str in initialized data section.
77002
77003 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
77004
77005         Merge glibc and coreutils changes into gnulib, plus a few
77006         extra fixes.
77007         * lib/md5.c: Use #error rather than a string.
77008         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
77009         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
77010         (__attribute__): Define to empty for non recent-GCC.
77011         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
77012         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
77013         Renamed from their non-__ counterparts, with new macros replacing
77014         them if not _LIBC.  Add __THROW attribute.
77015         (rol): Remove.
77016         (struct md5_ctx): Align buffer if using GCC.
77017         * lib/sha1.h (struct sha1_ctx): Likewise.
77018         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
77019         The old name was backwards.
77020         (NOTSWAP): Remove; not used.
77021         (rol): New macro, moved here from md5.h.
77022         (sha1_process_block): Remove a FIXME that doesn't make sense.
77023
77024 2005-09-12  Derek Price  <derek@ximbiot.com>
77025
77026         Return usable errors from canon-host.
77027         * lib/canon-host.h: New file.
77028         * lib/canon-host.c (canon_host): Wrap...
77029         (canon_host_r): ...this new function, which now relies exclusively on
77030         getaddrinfo.
77031         (ch_strerror): New function.
77032         (last_cherror): New global.
77033         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
77034         interface.
77035         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
77036         void *.
77037         (freeaddrinfo): Free ai->ai_canonname when set.
77038
77039 2005-09-12  Derek Price  <derek@ximbiot.com>
77040
77041         Make canon-host require getaddrinfo.
77042         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
77043         AC_LIBSOURCE canon-host.h.  Call...
77044         (gl_PREREQ_CANON_HOST): ...this new function, which requires
77045         gl_GETADDRINFO.
77046         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
77047
77048 2005-09-12  Derek Price  <derek@ximbiot.com>
77049
77050         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
77051         LGPL.
77052         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
77053
77054 2005-09-12  Derek Price  <derek@ximbiot.com>
77055
77056         * lib/gai_strerror.c: Include config.h when available.  Include
77057         getaddrinfo.h before other headers to test interface.
77058         Reported by Larry Jones <lawrence.jones@ugs.com>.
77059
77060 2005-09-12  Derek Price  <derek@ximbiot.com>
77061             Paul Eggert  <eggert@cs.ucla.edu>
77062
77063         * modules/glob (Files): Add glob-libc.h.
77064
77065 2005-09-12  Derek Price  <derek@ximbiot.com>
77066             Paul Eggert  <eggert@cs.ucla.edu>
77067
77068         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
77069         glob_.h, glob-libc.h.
77070         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
77071
77072 2005-09-12  Derek Price  <derek@ximbiot.com>
77073             Paul Eggert  <eggert@cs.ucla.edu>
77074
77075         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
77076         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
77077         protecting things that should be done only in gnulib contexts.
77078         * lib/glob_.h: New file, containing only the glob things needed for
77079         gnulib.
77080         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
77081         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
77082         (glob, globfree, glob_pattern_p): Now defined simply in terms of
77083         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
77084         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
77085         and to respect the namespace rules better.
77086
77087 2005-09-08  Simon Josefsson  <jas@extundo.com>
77088
77089         * modules/socklen: New file.
77090
77091 2005-09-08  Simon Josefsson  <jas@extundo.com>
77092
77093         * m4/socklen.m4: New file.
77094
77095 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77096
77097         * modules/utimens (Files): Add m4/utimbuf.m4, since
77098         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
77099         Reported by Sergey Poznyakoff.
77100
77101 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77102
77103         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
77104         definitions, since that's the preferred style in glibc.
77105         Fix a minor spacing issue, and update copyright notice to match
77106         glibc's.
77107
77108 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
77109
77110         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
77111
77112 2005-09-06  Simon Josefsson  <jas@extundo.com>
77113
77114         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
77115         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
77116
77117 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77118
77119         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
77120         warning.
77121
77122 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
77123
77124         * config/srclist.txt: Add glibc bug 1302.
77125
77126 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
77127
77128         Change bitset word type from unsigned int to unsigned long int,
77129         as this has better performance on typical 64-bit hosts.
77130         Port bitset code to hosts with unusual word sizes.
77131         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
77132         (build_collating_symbol):
77133         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
77134         argument is a bitset.  This is merely a style issue, but it makes
77135         it clearer that an entire array is expected.
77136         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
77137         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
77138         Port to the case where bitset_word is not the same as unsigned int.
77139         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
77140         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
77141         Likewise.
77142         * lib/regexec.c (check_dst_limits_calc_pos_1,
77143         check_subexp_matching_top):
77144         (build_trtable, group_nodes_into_DFAstates):
77145         Likewise.
77146         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
77147         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
77148         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
77149         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
77150         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
77151         * lib/regcomp.c (optimize_subexps, lower_subexp):
77152         Work even if bitset_word has holes in its bitwise representation.
77153         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
77154         * lib/regexec.c (check_dst_limits_calc_pos_1,
77155         check_subexp_matching_top):
77156         Likewise.
77157         * lib/regex_internal.c (re_string_reconstruct):
77158         Don't assume UCHAR_MAX == 255.
77159         * lib/regex_internal.h (bitset_set_all): Likewise.
77160         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
77161         All uses changed.
77162         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
77163         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
77164         All uses changed.
77165         (BITSET_WORD_MAX): New macro.
77166         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
77167         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
77168         (bitset_empty, bitset_copy):
77169         Prefer sizeof (bitset) to multiplying it out ourselves.
77170         (bitset_not_merge): Remove; unused.
77171         (bitset_contain): Return bool, not unsigned int with one bit on.
77172         All callers changed.
77173         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
77174         alignment than re_node_set; do this by defining a new internal
77175         type struct dests_alloc and using it to allocate memory.
77176
77177 2005-09-05  Bruno Haible  <bruno@clisp.org>
77178
77179         * gnulib-tool (func_import): Fix comparison in handling of symbolic
77180         links.
77181
77182 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
77183
77184         * modules/size_max (Makefile.am): Add size_max.h
77185
77186 2005-09-04  Derek Price  <derek@ximbiot.com>
77187
77188         * gnulib-tool (func_import): Fix reversed $symbolic logic.
77189
77190 2005-09-03  Simon Josefsson  <jas@extundo.com>
77191
77192         * gnulib-tool: Fix typo.
77193
77194 2005-09-03  Simon Josefsson  <jas@extundo.com>
77195
77196         * config/srclist.txt: Add glibc bug 1293.
77197
77198 2005-09-03  Derek Price  <derek@ximbiot.com>
77199
77200         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
77201         From Larry Jones <lawrence.jones@ugs.com>.
77202
77203 2005-09-02  Simon Josefsson  <jas@extundo.com>
77204
77205         * modules/socklen: New file.
77206
77207 2005-09-02  Simon Josefsson  <jas@extundo.com>
77208
77209         * modules/havelib: New module.
77210
77211         * modules/gettext, modules/iconv, modules/lock, modules/readline:
77212         Use havelib.
77213
77214 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
77215
77216         Check for arithmetic overflow when calculating sizes, to prevent
77217         some buffer-overflow issues.  These patches are conservative, in the
77218         sense that when I couldn't determine whether an overflow was possible,
77219         I inserted a run-time check.
77220         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
77221         macros.
77222         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
77223         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
77224         (re_xnrealloc, re_x2nrealloc): New inline functions.
77225         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
77226         parse_bracket_exp):
77227         (build_equiv_class, build_charclass): Check for arithmetic overflow
77228         in size expression calculations.
77229         * lib/regex_internal.c (re_string_realloc_buffers):
77230         (build_wcs_upper_buffer, re_node_set_add_intersect):
77231         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
77232         (re_dfa_add_node, register_state): Likewise.
77233         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
77234         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
77235         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
77236         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
77237
77238 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
77239
77240         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
77241         m4/ulonglong.m4.  Problem reported by Martin Lambers.
77242
77243 2005-09-02  Bruno Haible  <bruno@clisp.org>
77244
77245         Support for lib vs. lib64 distinction on biarch platforms.
77246         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
77247         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
77248         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
77249
77250 2005-09-02  Bruno Haible  <bruno@clisp.org>
77251
77252         * gnulib-tool (import): In the other first-use case, provide defaults
77253         as well.
77254
77255 2005-09-02  Bruno Haible  <bruno@clisp.org>
77256
77257         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
77258         patches not yet found in the latest gettext release.
77259
77260 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77261
77262         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
77263         to avoid a collision with bits/local_lim.h in glibc.
77264         All uses changed.  Problem reported by Dmitry V. Levin in
77265         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
77266
77267         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
77268         bugs in int versus size_t comparisons.
77269         (re_string_context_at): Fix bug where the code assumed that
77270         Idx is signed.
77271
77272         Use bool where appropriate.
77273         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
77274         All callers changed.
77275         (calc_eclosure_iter): Likewise, for ROOT arg.
77276         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
77277         (build_charclass_op): Likewise, for NON_MATCH arg.
77278         * lib/regex_internal.c (re_string_allocate, re_string_construct):
77279         (re_string_construct_common): Likewise, for ICASE arg.
77280         * lib/regexec.c (re_search_2_stub, re_search_stub):
77281         Likewise, for RET_LEN arg.
77282         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
77283         (set_regs): Likewise, for FL_BACKTRACK arg.
77284         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
77285         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
77286         (calc_eclosure_iter, parse_bracket_exp):
77287         Use bool for internal variables that are booleans.
77288         * lib/regexec.c (re_search_internal, check_matching,
77289         proceed_next_node):
77290         (set_regs, build_sifted_states, sift_states_bkref):
77291         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
77292         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
77293         (find_collation_sequence_value):
77294         Likewise.
77295         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
77296         (re_node_set_compare):
77297         Return bool, not int. All callers changed.
77298         * lib/regexec.c (check_halt_node_context, check_dst_limits):
77299         (build_trtable, check_node_accept): Likewise.
77300         * lib/regex_internal.h: Include stdbool.h.
77301
77302         Fix bugs uncovered when converting to bool.
77303         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
77304         failure instead of charging ahead blindly.
77305         * lib/regex_internal.c (register_state): Likewise.
77306         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
77307         for freeing internal storage.
77308         (group_nodes_into_DFA_states): Use unsigned int, not int, for
77309         bitset pieces used as boolean, to avoid undefined behavior
77310         on hosts that do int overflow checking.
77311
77312 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
77313
77314         * config/srclist.txt: Add glibc bugs 1285-1287.
77315
77316 2005-09-01  Jim Meyering  <jim@meyering.net>
77317
77318         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
77319         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
77320         Require gl_STAT_MACROS, too.
77321
77322 2005-09-01  Bruno Haible  <bruno@clisp.org>
77323
77324         * gnulib-tool (import): In the first-use case, provide defaults.
77325
77326 2005-09-01  Bruno Haible  <bruno@clisp.org>
77327
77328         * gnulib-tool (func_import): Remove the .tmp files.
77329
77330 2005-09-01  Bruno Haible  <bruno@clisp.org>
77331
77332         * gnulib-tool (func_import): Fix handling of symbolic links.
77333
77334 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77335
77336         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
77337         old glibc regex code mishandles strings longer than 2**31 bytes.
77338         This patch fixes this when the regex code is used in gnulib
77339         (i.e., outside glibc).
77340
77341         This patch should not affect the use of the regex code inside
77342         glibc.  No doubt this problem also needs to be handled for glibc
77343         as well, but the result will be an incompatible change to the
77344         glibc ABI, and the old ABI will have to be supported too.  That
77345         can be the the subject for another patch.
77346
77347         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
77348         governing whether the rest of this patch is active.  By default,
77349         the macro is disabled and the patch has no effect.
77350         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
77351         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
77352         (struct re_pattern_buffer, re_search, re_search_2, re_match):
77353         (re_match_2, re_set_registers): Use the new types.
77354         * lib/regex_internal.h (Idx, re_hashval_t): New types.
77355         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
77356         New macros.
77357         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
77358         (re_string_context_at, bin_tree_t, re_dfastate_t):
77359         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
77360         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
77361         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
77362         (re_string_char_size_at, re_string_wchar_at):
77363         (re_string_elem_size_at):
77364         Use the new types and macros to port to 64-bit hosts.
77365         Use unsigned types for internal values, so that the code
77366         mostly works even for arrays larger than SSIZE_MAX.
77367         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
77368         (search_duplicated_node, calc_eclosure_iter, fetch_number):
77369         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
77370         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
77371         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
77372         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
77373         (calc_inveclosure, parse_dup_op, build_range_exp):
77374         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
77375         (fetch_number, create_token_tree, mark_opt_subexp):
77376         Likewise.
77377         * lib/regex_internal.c (re_string_construct_common,
77378         create_ci_newstate):
77379         (create_cd_newstate, re_string_allocate, re_string_construct):
77380         (re_string_realloc_buffers, build_wcs_upper_buffer):
77381         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
77382         (re_string_reconstruct, re_string_peek_byte_case):
77383         (re_string_fetch_byte_case, re_string_context_at):
77384         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
77385         (re_node_set_init_copy, re_node_set_add_intersect):
77386         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77387         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77388         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
77389         (re_acquire_state, re_acquire_state_context, register_state):
77390         Likewise.
77391         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
77392         search_cur_bkref_entry):
77393         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
77394         (re_search_internal, re_search_2_stub, re_search_stub)
77395         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
77396         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
77397         (update_cur_sifted_state, check_dst_limits):
77398         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
77399         (check_subexp_limits, sift_states_bkref, merge_state_array):
77400         (check_subexp_matching_top, get_subexp, get_subexp_sub):
77401         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
77402         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
77403         (expand_bkref_cache, check_node_accept_bytes):
77404         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
77405         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
77406         (acquire_init_state_context, check_halt_node_context):
77407         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
77408         (sift_states_backward, clean_state_log_if_needed):
77409         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
77410         (find_recover_state, transit_state_sb, transit_state_mb):
77411         (transit_state_bkref, build_trtable, match_ctx_clean):
77412         Likewise.
77413         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
77414         to work around an assumption that REG_MISSING is negative.
77415
77416         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
77417         (seek_collating_symbol_entry) [defined _LIBC]:
77418         (lookup_collation_sequence_value) [defined _LIBC]:
77419         (build_range_exp, build_collating_symbol) [defined _LIBC]:
77420         Use prototypes rather than old-style function definitions.
77421         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
77422         (transit_state_sb) [0]:
77423         (find_collation_sequence_value) [defined _LIBC]: Likewise.
77424
77425         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
77426         rm_eo.
77427
77428         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
77429         (optimize_subexps, lower_subexp):
77430         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
77431         since the signed shift might overflow.  Use 1u<<31 instead.
77432         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
77433         Likewise.
77434         * lib/regexec.c (check_dst_limits_calc_pos_1,
77435         check_subexp_matching_top): Likewise.
77436
77437         * lib/regcomp.c (optimize_subexps, lower_subexp):
77438         Use CHAR_BIT rather than 8, for clarity.
77439         * lib/regexec.c (check_dst_limits_calc_pos_1):
77440         (check_subexp_matching_top): Likewise.
77441         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
77442         have to worry about portability issues when shifting it left.
77443         Remove no-longer-needed test for table_size > 0.
77444         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
77445         in a word, as the resulting behavior is undefined.
77446         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
77447         in one case, a <= should have been an <, and in another case the
77448         whole test was missing.
77449         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
77450         the standard name CHAR_BIT.
77451         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
77452         this is not true on one's complement and signed-magnitude hosts.
77453
77454         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
77455         next_last_offset.
77456         (struct re_dfa_t): Remove unused member states_alloc.
77457         * lib/regcomp.c (init_dfa): Don't initialize unused members.
77458
77459 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77460
77461         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
77462         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
77463         and large-file glibc and in 32-bit large-file Solaris.
77464
77465 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77466
77467         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
77468         lengths fit in regoff_t; this isn't true if regoff_t is the same
77469         width as size_t.
77470         * lib/regex.c (re_search_internal): 5th arg is LAST_START
77471         (= START + RANGE) instead of RANGE.  This avoids overflow
77472         problems when regoff_t is the same width as size_t.
77473         All callers changed.
77474         (re_search_2_stub): Check for overflow when adding the
77475         sizes of the two strings.
77476         (re_search_stub): Check for overflow when adding START
77477         to RANGE; if it occurs, substitute the extreme value.
77478
77479 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
77480
77481         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
77482
77483 2005-08-31  Jim Meyering  <jim@meyering.net>
77484
77485         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
77486         a pointer-to-const.
77487         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
77488         (register_state): Likewise.
77489         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
77490         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
77491         (group_nodes_into_DFAstates): Likewise.
77492
77493 2005-08-31  Jim Meyering  <jim@meyering.net>
77494
77495         * check-module: Add a FIXME comment.
77496
77497 2005-08-31  Eric Blake  <ebb9@byu.net>
77498
77499         * modules/unistd-safer (Files): Add unistd--.h.
77500         * modules/stdio-safer (Files): Add stdio--.h.
77501
77502 2005-08-31  Derek Price  <derek@ximbiot.com>
77503
77504         * lib/getdelim.c (getdelim): Return EOF on EOF.
77505         Reported by Larry Jones <lawrence.jones@ugs.com>.
77506
77507 2005-08-31  Bruno Haible  <bruno@clisp.org>
77508
77509         Avoid unnecessary diffs in the generated lib/Makefile.am.
77510         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
77511         the generated files.
77512         (func_import): Don't set cmd.
77513
77514 2005-08-31  Bruno Haible  <bruno@clisp.org>
77515
77516         * lib/strstr.c: Include <stddef.h>, for NULL.
77517         * lib/strcasestr.c: Likewise.
77518         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77519
77520 2005-08-31  Bruno Haible  <bruno@clisp.org>
77521
77522         * gnulib-tool: New option --macro-prefix.
77523         (func_import): Use macro_prefix.
77524         (import): Handle option --macro-prefix.
77525
77526 2005-08-31  Bruno Haible  <bruno@clisp.org>
77527
77528         * gnulib-tool (import): Rename most ac_* variables to cached_*.
77529         Also use new variables cached_lgpl, cached_libtool.
77530
77531 2005-08-31  Bruno Haible  <bruno@clisp.org>
77532
77533         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
77534         always instantiating them.
77535
77536 2005-08-31  Bruno Haible  <bruno@clisp.org>
77537
77538         * gnulib-tool (func_import): Read the previous cached settings
77539         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
77540         earlier added by gnulib but are now dropped. Warn when a gnulib file
77541         overwrites a non-gnulib file.
77542
77543 2005-08-31  Bruno Haible  <bruno@clisp.org>
77544
77545         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
77546         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
77547         projects that don't keep autogenerated files in CVS. Put into
77548         actioncmd only the specified modules, not the transitive closure.
77549
77550 2005-08-31  Bruno Haible  <bruno@clisp.org>
77551
77552         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
77553         Create directories that shall be filled.
77554         (import): Don't look for gl_* macros in configure.ac. Recurse across
77555         all directories containing a gnulib-cache.m4 files, if meaningful.
77556
77557 2005-08-31  Bruno Haible  <bruno@clisp.org>
77558
77559         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
77560         (import): Set seen_libtool when we see gl_LIBTOOL.
77561
77562 2005-08-31  Bruno Haible  <bruno@clisp.org>
77563
77564         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
77565         declaration macro definitions from generated gnulib.m4.
77566
77567 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
77568
77569         * lib/iconvme.h: Add prototype for iconv_alloc.
77570
77571 2005-08-29  Simon Josefsson  <jas@extundo.com>
77572
77573         * lib/iconvme.c: Fix errno.
77574
77575 2005-08-29  Bruno Haible  <bruno@clisp.org>
77576
77577         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
77578         that it works when the directory contains spaces.
77579
77580 2005-08-29  Bruno Haible  <bruno@clisp.org>
77581
77582         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
77583
77584 2005-08-29  Bruno Haible  <bruno@clisp.org>
77585
77586         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
77587         Emit more advice.
77588
77589 2005-08-29  Bruno Haible  <bruno@clisp.org>
77590         and Stepan Kasal  <kasal@ucw.cz>
77591
77592         * check-module: If more parameters are given, check each of them
77593         separately; add more exceptions, as noted by Jim Meyering.
77594         (check_module): New procedure.
77595         (%exempt_header): Now contains all exceptions.
77596
77597 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
77598
77599         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
77600
77601 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
77602
77603         * lib/iconvme.c: Split iconv_string into iconv_alloc.
77604
77605 2005-08-28  Bruno Haible  <bruno@clisp.org>
77606
77607         * m4/gnulib-tool.m4: New file.
77608
77609 2005-08-27  Jim Meyering  <jim@meyering.net>
77610
77611         * modules/unistd-safer (Files): Add pipe-safer.c.
77612         * modules/fcntl-safer (Files): Add creat-safer.c.
77613
77614 2005-08-27  Jim Meyering  <jim@meyering.net>
77615
77616         * m4/stdlib-safer.m4: New file.  From coreutils.
77617         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
77618         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
77619         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
77620         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
77621         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
77622
77623 2005-08-27  Jim Meyering  <jim@meyering.net>
77624
77625         * lib/fopen-safer.c: Merge minor changes from coreutils.
77626         * lib/dup-safer.c: Likewise.
77627         * lib/fd-safer.c: Likewise.
77628
77629         Merge from coreutils.
77630         * lib/stdio--.h: New file.
77631         * lib/stdlib--.h: New file.
77632         * lib/mkstemp-safer.c: New file.
77633
77634         GNU tar needs these.
77635         * lib/pipe-safer.c: New file.
77636         * lib/creat-safer.c: New file.
77637         * lib/fcntl--.h (creat): Define to creat_safer.
77638         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
77639         * lib/unistd--.h (pipe): Define to pipe_safer.
77640         * lib/unistd-safer.h: Declare pipe_safer.
77641
77642 2005-08-26  Simon Josefsson  <jas@extundo.com>
77643
77644         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
77645         Haible <bruno@clisp.org>.
77646
77647 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
77648
77649         * lib/regex_internal.h: Remove all references to
77650         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
77651         or better.
77652         (bitset_not, bitset_merge, bitset_not_merge):
77653         (bitset_mask, re_string_allocate, re_string_construct):
77654         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
77655         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
77656         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
77657         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
77658         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
77659         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
77660         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
77661         (re_acquire_state_context):
77662         Remove unnecessary forward decls.
77663         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
77664         Put __attribute at function definition,
77665         now that the function decl has been removed.
77666         * lib/regex_internal.c (re_string_peek_byte_case):
77667         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
77668         Likewise.
77669
77670 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
77671
77672         * m4/regex.m4: Add AC_PREREQ(2.50).
77673         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
77674
77675 2005-08-25  Simon Josefsson  <jas@extundo.com>
77676
77677         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
77678         __fsetlocking.
77679
77680 2005-08-25  Simon Josefsson  <jas@extundo.com>
77681
77682         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
77683         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
77684         GLIBC specific code.
77685
77686 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77687
77688         Make regex safe for g++.  This fixes one real bug (an "err"
77689         that should have been "*err").  g++ problem reported by
77690         Sam Steingold.
77691         * lib/regex_internal.h (re_calloc): New macro, consistent with
77692         re_malloc etc.  All callers of calloc changed to use re_calloc.
77693         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
77694         not int.  All callers changed.
77695         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
77696         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
77697         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
77698         (find_recover_state): Change "err" to "*err"; this fixes what
77699         appears to be a real bug.
77700         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
77701         versus int.
77702
77703 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77704
77705         * modules/regex (Depends-on): Add malloc, since the code
77706         assumes that !malloc(0) means failure.
77707
77708 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77709
77710         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
77711
77712         alloca modernization/simplification for regex.
77713         * lib/regex.c: Remove portability cruft for alloca.  This no longer
77714         needs to be at the start of the file, and can be moved into
77715         regex_internal.h and simplified.
77716         * lib/regex_internal.h: Include <alloca.h>.
77717         (__libc_use_alloca) [!defined _LIBC]: New macro.
77718         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
77719         now works outside glibc.
77720
77721 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
77722
77723         * config/srclist.txt: Add glibc bugs 1241, 1245.
77724
77725 2005-08-25  Jim Meyering  <jim@meyering.net>
77726
77727         * lib/open-safer.c: Include <config.h>.
77728         Otherwise, we'd lose LARGEFILE support in any file using
77729         e.g. "fcntl--.h"
77730
77731 2005-08-25  Bruno Haible  <bruno@clisp.org>
77732
77733         * m4/minmax.m4: Require autoconf 2.52.
77734         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
77735         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
77736         alternatives of translit over the alphabet.
77737         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
77738
77739 2005-08-24  Simon Josefsson  <jas@extundo.com>
77740
77741         * tests/test-getpass.c: New file.
77742
77743 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77744
77745         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
77746         for GNU regex features.
77747
77748 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77749
77750         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
77751         * lib/regex.h (regerror): Likewise.
77752
77753         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
77754         requires this.  (The code never needed it.)
77755
77756         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
77757         All uses of recently-renamed identifiers changed to use the new,
77758         POSIX-compliant names.  The code will build and run just fine
77759         without these changes, but it's better to eat our own dog food
77760         and use the standard-conforming names.
77761
77762         * lib/regex.h: Fix a multitude of POSIX name space violations.
77763         These changes have an effect only for programs that define
77764         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
77765         do not change anything for programs compiled in the normal way.
77766         Also, there is no effect on the ABI.
77767
77768         (_REGEX_SOURCE): New macro.
77769         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
77770         defined and _GNU_SOURCE is not; this fixes a name space violation.
77771
77772         Rename the following macros to obey POSIX requirements.
77773         The old names are still visible as macros if _REGEX_SOURCE is defined.
77774         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
77775         RE_BACKSLASH_ESCAPE_IN_LISTS.
77776         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
77777         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
77778         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
77779         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
77780         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
77781         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
77782         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
77783         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
77784         (REG_INTERVALS): renamed from RE_INTERVALS.
77785         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
77786         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
77787         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
77788         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
77789         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
77790         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
77791         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
77792         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
77793         RE_UNMATCHED_RIGHT_PAREN_ORD.
77794         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
77795         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
77796         (REG_DEBUG): renamed from RE_DEBUG.
77797         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
77798         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
77799         unusual, since we can't clash with the POSIX REG_ICASE.
77800         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
77801         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
77802         (REG_NO_SUB): renamed from RE_NO_SUB.
77803         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
77804         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
77805         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
77806         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
77807         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
77808         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
77809         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
77810         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
77811         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
77812         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
77813         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
77814         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
77815         RE_SYNTAX_POSIX_MINIMAL_BASIC.
77816         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
77817         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
77818         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
77819         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
77820         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
77821         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
77822         (REG_FIXED): Renamed from REGS_FIXED.
77823         (REG_NREGS): Renamed from RE_NREGS.
77824
77825         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
77826         of other REG_* macros, since POSIX says the user is allowed to
77827         #undef these macros selectively.
77828
77829         (reg_errcode_t): Update comment stating what other tables need
77830         to be consistent.
77831
77832         Rename the following enum values to obey POSIX requirements.
77833         The old names are still visible as macros.
77834         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
77835         is not defined, since GNU is supposed to be a superset of POSIX as
77836         much as possible, and since we want reg_errcode_t to be a signed
77837         type for implementation consistency.
77838         (_REG_NOERROR): Renamed from REG_NOERROR.
77839         (_REG_NOMATCH): Renamed from REG_NOMATCH.
77840         (_REG_BADPAT): Renamed from REG_BADPAT.
77841         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
77842         (_REG_ECTYPE): Renamed from REG_ECTYPE.
77843         (_REG_EESCAPE): Renamed from REG_EESCAPE.
77844         (_REG_ESUBREG): Renamed from REG_ESUBREG.
77845         (_REG_EBRACK): Renamed from REG_EBRACK.
77846         (_REG_EPAREN): Renamed from REG_EPAREN.
77847         (_REG_EBRACE): Renamed from REG_EBRACE.
77848         (_REG_BADBR): Renamed from REG_BADBR.
77849         (_REG_ERANGE): Renamed from REG_ERANGE.
77850         (_REG_ESPACE): Renamed from REG_ESPACE.
77851         (_REG_BADRPT): Renamed from REG_BADRPT.
77852         (_REG_EEND): Renamed from REG_EEND.
77853         (_REG_ESIZE): Renamed from REG_ESIZE.
77854         (_REG_ERPAREN): Renamed from REG_ERPAREN.
77855         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
77856         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
77857         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
77858         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
77859
77860         (_REG_RE_NAME, _REG_RM_NAME): New macros.
77861         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
77862         changed.  But support the old name if the new one is not defined
77863         and if _REGEX_SOURCE.
77864
77865         Change the following member names in struct re_pattern_buffer.
77866         The old names are still supported if !_REGEX_SOURCE.
77867         The new names are always supported, regardless of _REGEX_SOURCE.
77868         (re_buffer): Renamed from buffer.
77869         (re_allocated): Renamed from allocated.
77870         (re_used): Renamed from used.
77871         (re_syntax): Renamed from syntax.
77872         (re_fastmap): Renamed from fastmap.
77873         (re_translate): Renamed from translate.
77874         (re_can_be_null): Renamed from can_be_null.
77875         (re_regs_allocated): Renamed from regs_allocated.
77876         (re_fastmap_accurate): Renamed from fastmap_accurate.
77877         (re_no_sub): Renamed from no_sub.
77878         (re_not_bol): Renamed from not_bol.
77879         (re_not_eol): Renamed from not_eol.
77880         (re_newline_anchor): Renamed from newline_anchor.
77881
77882         Change the following member names in struct re_registers.
77883         The old names are still supported if !_REGEX_SOURCE.
77884         The new names are always supported, regardless of _REGEX_SOURCE.
77885         (rm_num_regs): Renamed from num_regs.
77886         (rm_start): Renamed from start.
77887         (rm_end): Renamed from end.
77888
77889         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
77890         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
77891         Prepend __ to parameter names.
77892
77893         Undo yesterday's changes.
77894
77895 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
77896
77897         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
77898         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
77899         lib/regex.c.
77900
77901 2005-08-24  Jim Meyering  <jim@meyering.net>
77902
77903         Sync from coreutils.
77904         * m4/fcntl-safer.m4: New file.
77905
77906         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
77907         and object files for this module.
77908
77909 2005-08-24  Jim Meyering  <jim@meyering.net>
77910
77911         Sync from coreutils.
77912         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
77913
77914 2005-08-24  Jim Meyering  <jim@meyering.net>
77915
77916         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
77917         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
77918
77919 2005-08-24  Jim Meyering  <jim@meyering.net>
77920
77921         * modules/fcntl-safer: New module.
77922         * modules/fts (Depends-on): Add fcntl-safer.
77923         * MODULES.html.sh (File descriptor based Input/Output):
77924         Add fcntl-safer.
77925
77926 2005-08-24  Bruno Haible  <bruno@clisp.org>
77927
77928         Support for unit test modules.
77929         * modules/README: Mention tests modules.
77930         * modules/TEMPLATE-TESTS: New file.
77931         * gnulib-tool: New options --extract-tests-module, --with-tests and
77932         --tests-base (unused for the moment).
77933         (testsbase, inctests): New variables.
77934         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
77935         (func_verify_module): Exclude TEMPLATE-TESTS.
77936         (func_verify_nontests_module, func_verify_tests_module): New functions.
77937         (func_get_dependencies): Add implicit dependency for tests modules.
77938         (func_get_tests_module): New function.
77939         (func_modules_transitive_closure): When --with-tests was specified,
77940         include the unit tests as well, unless explicitly avoided.
77941         (func_emit_lib_Makefile_am): Ignore the tests modules here.
77942         (func_emit_tests_Makefile_am): New function.
77943         (func_create_testdir): When --with-tests was specified, emit a
77944         tests/ directory.
77945         * MODULES.html.sh (Future developments): Update.
77946
77947 2005-08-24  Bruno Haible  <bruno@clisp.org>
77948
77949         * modules/tls-tests: New file.
77950         * tests/test-tls.c: New file, from GNU gettext.
77951
77952 2005-08-24  Bruno Haible  <bruno@clisp.org>
77953
77954         * modules/lock-tests: New file.
77955         * tests/test-lock.c: New file, from GNU gettext.
77956
77957 2005-08-24  Bruno Haible  <bruno@clisp.org>
77958
77959         * lib/lock.h: Add multiple inclusion guard.
77960         * lib/tls.h: Add multiple inclusion guard.
77961
77962 2005-08-24  Bruno Haible  <bruno@clisp.org>
77963
77964         * gnulib-tool: Add support for the --aux-dir option to
77965         --create-testdir, --create-megatestdir, --test, --megatest.
77966         (func_create_testdir, func_create_megatestdir): Optionally emit a
77967         AC_CONFIG_AUX_DIR directive.
77968         (create-testdir, create-megatestdir, test, megatest): Provide a
77969         default value for $auxdir.
77970
77971 2005-08-24  Bruno Haible  <bruno@clisp.org>
77972
77973         * gnulib-tool (import): Use compound statement instead of subshell
77974         where possible.
77975
77976 2005-08-24  Bruno Haible  <bruno@clisp.org>
77977
77978         * gnulib-tool (import): Change --aux-dir default to "build-aux".
77979
77980 2005-08-24  Bruno Haible  <bruno@clisp.org>
77981
77982         * gnulib-tool (func_version): Update.
77983
77984 2005-08-24  Bruno Haible  <bruno@clisp.org>
77985
77986         * gnulib-tool (func_import, func_create_testdir,
77987         func_create_megatestdir): Quote all autoconf macro arguments.
77988
77989 2005-08-24  Bruno Haible  <bruno@clisp.org>
77990
77991         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
77992         option --force, because --force causes the aclocal.m4 of each
77993         subdirectory to be newer than the corresponding config.h.in.
77994
77995 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
77996
77997         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
77998         All contents moved to gl_REGEX.
77999         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
78000         assume that it does.
78001
78002 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78003
78004         * lib/regex.h (REG_NOSYS)
78005         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
78006         Define, since POSIX requires it as of 2001.
78007         (_REG_ENOSYS)
78008         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
78009         New private symbol, used to keep the enum signed in all cases.
78010         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
78011         Youngman in
78012         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
78013
78014         * lib/regex_internal.c (re_string_skip_chars, register_state):
78015         (calc_state_hash):
78016         Remove forward decls; no longer needed now that we use prototypes.
78017         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
78018         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
78019         (clean_state_log_if_needed): Likewise.
78020
78021 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
78022
78023         * config/srclist.txt: Add glibc bugs 1231-1233.
78024
78025 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78026
78027         Fix problems reported by Sam Steingold in
78028         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
78029         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
78030         assumed that reg_errcode_t is a signed type, which is not
78031         necessarily true if _XOPEN_SOURCE is not defined.
78032         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
78033         since some compilers warn about it otherwise.
78034
78035 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78036
78037         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
78038         (init_word_char, create_initial_state, duplicate_node_closure):
78039         (fetch_token, peek_token_bracket, build_range_exp):
78040         (build_collating_symbol): Remove forward decls; no longer needed
78041         now that we use prototypes.
78042
78043         * lib/regcomp.c:
78044         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
78045         (re_compile_fastmap_iter, regcomp, regerror, regfree):
78046         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
78047         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
78048         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
78049         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
78050         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
78051         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
78052         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
78053         (build_range_exp, build_collating_symbol, parse_bracket_exp):
78054         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
78055         (build_charclass, build_charclass_op, fetch_number, create_tree):
78056         (create_token_tree, mark_opt_subexp, duplicate_tree):
78057         Use prototypes rather than old-style definitions.
78058
78059         * lib/regex_internal.c:
78060         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
78061         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
78062         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
78063         (re_string_reconstruct, re_string_peek_byte_case):
78064         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
78065         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
78066         (re_node_set_init_copy, re_node_set_add_intersect):
78067         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
78068         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
78069         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
78070         (re_acquire_state, re_acquire_state_context, register_state):
78071         (create_ci_newstate, create_cd_newstate, free_state):
78072         Likewise.
78073         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
78074         re_search_2):
78075         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
78076         (re_search_internal, prune_impossible_nodes):
78077         (acquire_init_state_context, check_matching, static):
78078         (check_halt_node_context, check_halt_state_context, proceed_next_node):
78079         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
78080         (update_regs, sift_states_backward, build_sifted_states):
78081         (clean_state_log_if_needed, merge_state_array):
78082         (update_cur_sifted_state, add_epsilon_src_nodes):
78083         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
78084         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
78085         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
78086         (find_recover_state, check_subexp_matching_top, transit_state_mb):
78087         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
78088         (check_arrival, check_arrival_add_next_nodes):
78089         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
78090         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
78091         (check_node_accept_bytes, check_node_accept, extend_buffers):
78092         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
78093         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
78094         (sift_ctx_init):
78095         Likewise.
78096
78097         * lib/regex_internal.h:
78098         (re_string_allocate, re_string_construct, re_string_reconstruct):
78099         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
78100         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
78101         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
78102         (re_string_context_at, re_string_peek_byte_case):
78103         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
78104         is defined, since we now use prototypes always.
78105
78106         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
78107         C89 or better.  All uses removed.
78108
78109 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
78110
78111         * config/srclist.txt: Add glibc bugs 1220-1227.
78112
78113 2005-08-20  Jim Meyering  <jim@meyering.net>
78114
78115         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
78116         of unused local, dfa.
78117
78118 2005-08-20  Bruno Haible  <bruno@clisp.org>
78119
78120         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
78121
78122 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78123
78124         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
78125         (re_node_set_insert_last, re_dfa_add_node):
78126         Rename local variables to avoid GCC shadowing warnings.
78127
78128 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78129
78130         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
78131         [defined lint]: Suppress bogus uninitialized-variable warnings.
78132
78133         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
78134         and let the caller return REG_ESPACE if out of space.  This
78135         removes an uninitialied-variable warning with GCC 4.0.1, and also
78136         avoids taking the address of a local variable.  All callers
78137         changed.
78138
78139 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
78140
78141         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
78142         $LIBCSRC/posix/regexec.c.
78143         Add glibc bug 1217 for regcomp.c.
78144
78145 2005-08-19  Jim Meyering  <jim@meyering.net>
78146
78147         * lib/regexec.c (proceed_next_node): Redo local variables to
78148         avoid GCC shadowing warnings.
78149
78150 2005-08-18  Bruno Haible  <bruno@clisp.org>
78151
78152         * lib/strstr.c (strstr): Fix return value in multibyte case.
78153         * lib/strcasestr.c (strcasestr): Likewise.
78154
78155 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
78156
78157         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
78158
78159 2005-08-17  Jim Meyering  <jim@meyering.net>
78160
78161         Make the %s format (seconds since the epoch) work for a negative
78162         number and when used with a zero-padded field width, e.g. %015s.
78163
78164         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
78165         label so that it precedes the code to set `digits'.  Otherwise,
78166         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
78167         print `00-22'.  Now, it prints `-0022', as it should.
78168
78169 2005-08-17  Bruno Haible  <bruno@clisp.org>
78170
78171         * modules/strstr (Files): Add m4/mbrtowc.m4.
78172         (Depends-on): Add mbuiter.
78173
78174 2005-08-17  Bruno Haible  <bruno@clisp.org>
78175
78176         * modules/strcasestr: New file.
78177         * MODULES.html.sh (String handling, based on ANSI C 89): Add
78178         strcasestr.
78179
78180 2005-08-17  Bruno Haible  <bruno@clisp.org>
78181
78182         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
78183
78184 2005-08-17  Bruno Haible  <bruno@clisp.org>
78185
78186         * modules/mbuiter: New file.
78187         * MODULES.html.sh (Extended multibyte and wide character utilities):
78188         Add mbuiter.
78189
78190 2005-08-17  Bruno Haible  <bruno@clisp.org>
78191
78192         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
78193         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
78194
78195 2005-08-17  Bruno Haible  <bruno@clisp.org>
78196
78197         * m4/strcasestr.m4: New file.
78198
78199 2005-08-17  Bruno Haible  <bruno@clisp.org>
78200
78201         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
78202         * lib/strstr.c: Completely rewritten, with multibyte locale support.
78203
78204 2005-08-17  Bruno Haible  <bruno@clisp.org>
78205
78206         * lib/strcasestr.h: New file.
78207         * lib/strcasestr.c: New file.
78208
78209 2005-08-17  Bruno Haible  <bruno@clisp.org>
78210
78211         * lib/strcasecmp.c: Use mbuiter.h.
78212
78213 2005-08-17  Bruno Haible  <bruno@clisp.org>
78214
78215         * lib/mbuiter.h: New file.
78216
78217 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
78218
78219         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
78220         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
78221         and gl_GETOPT are both invoked via different paths (as happens
78222         with GNU tar CVS because it uses both argp and getopt), the former
78223         wins.
78224
78225 2005-08-16  Bruno Haible  <bruno@clisp.org>
78226
78227         * modules/tls: New file.
78228         * MODULES.html.sh (Multithreading): Add tls.
78229
78230 2005-08-16  Bruno Haible  <bruno@clisp.org>
78231
78232         * modules/strnlen1: New file.
78233         * MODULES.html.sh (String handling): Add strnlen1.
78234
78235 2005-08-16  Bruno Haible  <bruno@clisp.org>
78236
78237         * modules/strcase (Files): Add m4/mbrtowc.m4.
78238         (Depends-on): Add strnlen1, mbchar.
78239
78240 2005-08-16  Bruno Haible  <bruno@clisp.org>
78241
78242         * modules/mbiter: New file.
78243         * MODULES.html.sh (Extended multibyte and wide character utilities):
78244         Add mbiter.
78245
78246 2005-08-16  Bruno Haible  <bruno@clisp.org>
78247
78248         * modules/mbfile: New file.
78249         * MODULES.html.sh (Extended multibyte and wide character utilities):
78250         Add mbfile.
78251
78252 2005-08-16  Bruno Haible  <bruno@clisp.org>
78253
78254         * modules/mbchar: New file.
78255         * MODULES.html.sh (Extended multibyte and wide character utilities):
78256         New section.
78257
78258 2005-08-16  Bruno Haible  <bruno@clisp.org>
78259
78260         * m4/tls.m4: New file, from GNU gettext.
78261
78262 2005-08-16  Bruno Haible  <bruno@clisp.org>
78263
78264         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
78265         always.
78266         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
78267
78268 2005-08-16  Bruno Haible  <bruno@clisp.org>
78269
78270         * m4/mbiter.m4: New file.
78271
78272 2005-08-16  Bruno Haible  <bruno@clisp.org>
78273
78274         * m4/mbfile.m4: New file.
78275
78276 2005-08-16  Bruno Haible  <bruno@clisp.org>
78277
78278         * m4/mbchar.m4: New file.
78279
78280 2005-08-16  Bruno Haible  <bruno@clisp.org>
78281
78282         * lib/tls.h: New file, from GNU gettext.
78283         * lib/tls.c: New file, from GNU gettext.
78284
78285 2005-08-16  Bruno Haible  <bruno@clisp.org>
78286
78287         * lib/strnlen1.h: New file.
78288         * lib/strnlen1.c: New file.
78289
78290 2005-08-16  Bruno Haible  <bruno@clisp.org>
78291
78292         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
78293         (mbi_init): Update.
78294         (mbi_avail, mbi_advance): Let the iteration end before the terminating
78295         NUL byte, not after it.
78296
78297 2005-08-16  Bruno Haible  <bruno@clisp.org>
78298
78299         * lib/strcase.h (strcasecmp): Add note in comments.
78300         * lib/strncasecmp.c: Use code from strcasecmp.c.
78301         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
78302         (strcasecmp): Work correctly in multibyte locales.
78303
78304 2005-08-16  Bruno Haible  <bruno@clisp.org>
78305
78306         * lib/mbiter.h: New file.
78307
78308 2005-08-16  Bruno Haible  <bruno@clisp.org>
78309
78310         * lib/mbfile.h: New file.
78311
78312 2005-08-16  Bruno Haible  <bruno@clisp.org>
78313
78314         * lib/mbchar.h: New file.
78315         * lib/mbchar.c: New file.
78316
78317 2005-08-16  Bruno Haible  <bruno@clisp.org>
78318
78319         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
78320         the valid ones. Makes the comparison operations transitive:
78321         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
78322         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
78323
78324 2005-08-15  Simon Josefsson  <jas@extundo.com>
78325
78326         * modules/ssize_t (License): Change to 'unlimited'.
78327
78328         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
78329
78330 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
78331
78332         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
78333         Add comments for each pending glibc patch.
78334
78335 2005-08-15  Bruno Haible  <bruno@clisp.org>
78336
78337         * lib/regex.h (__restrict_arr): Don't define to __restrict if
78338         __cplusplus is defined.
78339
78340 2005-08-14  Jim Meyering  <jim@meyering.net>
78341
78342         Sync from coreutils.
78343
78344         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
78345         Use the hash-table-based cycle-detection code not just when
78346         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
78347         Reported by James Youngman in
78348         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
78349         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
78350         FTS_TIGHT_CYCLE_CHECK.
78351         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
78352         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
78353         once again.
78354         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
78355         * lib/fts.c (fd_safer): Remove decl.
78356         Include fcntl--.h rather than unistd-safer.h
78357         (fts_safe_changedir): Don't call fd_safer; no longer needed
78358         now that we include fcntl--.h.
78359
78360 2005-08-12  Simon Josefsson  <jas@extundo.com>
78361
78362         * modules/getndelim2: Use ssize_t module.
78363         * modules/getnline: Likewise.
78364         * modules/safe-read: Likewise.
78365         * modules/xreadlink: Likewise.
78366
78367         * modules/ssize_t: New file.
78368
78369 2005-08-12  Simon Josefsson  <jas@extundo.com>
78370
78371         * m4/readline.m4: Look for termcap, curses or ncurses if required.
78372
78373 2005-08-12  Simon Josefsson  <jas@extundo.com>
78374
78375         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
78376         ssize_t.
78377
78378 2005-08-12  Simon Josefsson  <jas@extundo.com>
78379
78380         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
78381         readline, getdelim and check_version.
78382         (Support for systems lacking ISO C 99: Sizes of integer types):
78383         Add size_max.
78384
78385 2005-08-12  Bruno Haible  <bruno@clisp.org>
78386
78387         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
78388
78389 2005-08-11  Simon Josefsson  <jas@extundo.com>
78390
78391         * modules/readline: New file.
78392
78393         * modules/strnlen (Files): Add strnlen.h.
78394
78395 2005-08-11  Simon Josefsson  <jas@extundo.com>
78396
78397         * m4/readline.m4: New file.
78398
78399 2005-08-11  Simon Josefsson  <jas@extundo.com>
78400
78401         * lib/readline.h, readline.c: New file.
78402
78403 2005-08-11  Simon Josefsson  <jas@extundo.com>
78404
78405         * doc/gnulib.texi (Initial import, Finishing touches): Mention
78406         gl_AVOID.
78407
78408 2005-08-11  Bruno Haible  <bruno@clisp.org>
78409
78410         * lib/strnlen.h (strnlen): Change parameter name to match comment.
78411
78412 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
78413
78414         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
78415
78416 2005-08-10  Simon Josefsson  <jas@extundo.com>
78417
78418         * tests/test-iconvme.c: New file.
78419
78420 2005-08-10  Simon Josefsson  <jas@extundo.com>
78421
78422         * m4/strnlen.m4: New file.
78423
78424         * m4/strndup.m4: Don't check for strnlen declaration, done in
78425         strnlen.m4.
78426
78427 2005-08-10  Simon Josefsson  <jas@extundo.com>
78428
78429         * lib/strndup.c: Use strnlen.h.
78430
78431         * lib/strnlen.h: New file.
78432
78433 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78434
78435         * README: Typos.
78436
78437 2005-08-02  Simon Josefsson  <jas@extundo.com>
78438
78439         * modules/readline: New file.
78440
78441 2005-08-02  Simon Josefsson  <jas@extundo.com>
78442
78443         * modules/getdelim: New file.
78444
78445         * modules/getline: Rewrite, don't use getndelim2.
78446
78447 2005-08-02  Simon Josefsson  <jas@extundo.com>
78448
78449         * m4/getline.m4: Separate out getdelim stuff into separate module.
78450
78451         * m4/getdelim.m4: New file.
78452
78453 2005-08-02  Simon Josefsson  <jas@extundo.com>
78454
78455         * lib/getline.h, getline.c: Rewrite.
78456
78457         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
78458
78459 2005-07-31  Bruno Haible  <bruno@clisp.org>
78460
78461         * lib/lock.h (gl_lock_initializer): New macro.
78462         (gl_lock_define_initialized): Use it.
78463         (gl_rwlock_initializer): New macro.
78464         (gl_rwlock_define_initialized): Use it.
78465         (gl_recursive_lock_initializer): New macro.
78466         (gl_recursive_lock_define_initialized): Use it.
78467
78468 2005-07-30  Karl Berry  <karl@gnu.org>
78469
78470         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
78471         Report from Ben Pfaff, regarding getopt.
78472
78473 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
78474
78475         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
78476         normal way.
78477         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
78478         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
78479         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
78480         (gl_GETOPT): Use the new macros.  Most of the implementation
78481         is moved to the new macros.  This is for programs like Emacs
78482         that don't want all the functionality of gl_GETOPT.
78483
78484 2005-07-26  Bruno Haible  <bruno@clisp.org>
78485
78486         * m4/lock.m4: Update from GNU gettext.
78487
78488 2005-07-26  Bruno Haible  <bruno@clisp.org>
78489
78490         * lib/lock.h: Update from GNU gettext.
78491         * lib/lock.c: Update from GNU gettext.
78492
78493 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
78494
78495         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
78496         obsolescent AC_TRY_RUN.  Include the default includes files, for
78497         'exit'.
78498
78499 2005-07-24  Bruno Haible  <bruno@clisp.org>
78500
78501         * modules/visibility: New file.
78502         * MODULES.html.sh (Misc): Add visibility.
78503
78504 2005-07-24  Bruno Haible  <bruno@clisp.org>
78505
78506         * m4/visibility.m4: New file.
78507
78508 2005-07-24  Bruno Haible  <bruno@clisp.org>
78509
78510         * doc/visibility.texi: New file.
78511
78512 2005-07-22  Bruno Haible  <bruno@clisp.org>
78513
78514         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
78515         $(ALLOCA_H), redundant through BUILT_SOURCES.
78516         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
78517         redundant through BUILT_SOURCES.
78518         * modules/byteswap (Makefile.am): Remove explicit dependency on
78519         $(BYTESWAP_H), redundant through BUILT_SOURCES.
78520         * modules/fnmatch (Makefile.am): Remove explicit dependency on
78521         $(FNMATCH_H), redundant through BUILT_SOURCES.
78522         * modules/getopt (Makefile.am): Remove explicit dependency on
78523         $(GETOPT_H), redundant through BUILT_SOURCES.
78524         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
78525         redundant through BUILT_SOURCES.
78526         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
78527         redundant through BUILT_SOURCES.
78528         * modules/stdbool (Makefile.am): Remove explicit dependency on
78529         $(STDBOOL_H), redundant through BUILT_SOURCES.
78530         * modules/stdint (Makefile.am): Remove explicit dependency on
78531         $(STDINT_H), redundant through BUILT_SOURCES.
78532         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
78533         Remove explicit dependency on $(SYSEXITS_H).
78534         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
78535
78536 2005-07-18  Simon Josefsson  <jas@extundo.com>
78537
78538         * lib/check-version.c (check_version): Accept identical versions too.
78539
78540 2005-07-18  Bruno Haible  <bruno@clisp.org>
78541
78542         * modules/lock: New file.
78543         * MODULES.html.sh (Multithreading): New section.
78544
78545 2005-07-18  Bruno Haible  <bruno@clisp.org>
78546
78547         * m4/lock.m4: New file, from GNU gettext.
78548
78549 2005-07-18  Bruno Haible  <bruno@clisp.org>
78550
78551         * lib/lock.h: New file, from GNU gettext.
78552         * lib/lock.c: New file, from GNU gettext.
78553
78554 2005-07-18  Bruno Haible  <bruno@clisp.org>
78555
78556         * lib/lock.h (gl_once_t): New type.
78557         (gl_once_define, gl_once): New macros.
78558         * lib/lock.c (fresh_once): New variable.
78559         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
78560         functions.
78561
78562 2005-07-16  Simon Josefsson  <jas@extundo.com>
78563
78564         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
78565         workaround, suggested by Bruno.
78566
78567 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
78568
78569         * modules/xalloc (Depends-on): Add xalloc-die.
78570         * modules/xvasprintf (Depends-on): Add xalloc-die.
78571
78572 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
78573
78574         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
78575         with a minor change.
78576
78577 2005-07-15  Bruno Haible  <bruno@clisp.org>
78578
78579         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
78580         When using lib/poll.c, define poll as rpl_poll.
78581
78582 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
78583
78584         * modules/argp (Depends-on): Remove unlocked-io.
78585
78586 2005-07-14  Derek Price  <derek@ximbiot.com>
78587
78588         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
78589         for glob symlink bug.
78590
78591 2005-07-14  Bruno Haible  <bruno@clisp.org>
78592
78593         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
78594         Instead, test for *_unlocked function declarations directly.
78595
78596 2005-07-11  Simon Josefsson  <jas@extundo.com>
78597
78598         * modules/size_max: New file.
78599
78600         * modules/xsize: Depend on size_max module for size_max.m4.
78601
78602 2005-07-11  Simon Josefsson  <jas@extundo.com>
78603
78604         * lib/size_max.h: New file.
78605
78606 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
78607
78608         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
78609         copyright symbol and the year.
78610         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
78611         (version_etc_va): Use parameterized copyright notice.
78612         Reword to conform to the current GNU coding standards.
78613
78614 2005-07-11  Karl Berry  <karl@gnu.org>
78615
78616         * doc/gnulib.texi (Quoting): new node.
78617         (Initial import): more info, from Patrice.
78618
78619 2005-07-11  Bruno Haible  <bruno@clisp.org>
78620
78621         * gnulib-tool (func_usage): Document option --avoid.
78622         (Command line options): Handle --avoid.
78623         (func_acceptable): New function.
78624         (func_modules_transitive_closure): Use it.
78625
78626 2005-07-11  Bruno Haible  <bruno@clisp.org>
78627
78628         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
78629         Reported by Jim Meyering.
78630
78631 2005-07-10  Bruno Haible  <bruno@clisp.org>
78632
78633         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
78634         Needed when size_t is smaller than 'unsigned int'.
78635         Reported by Paul Eggert.
78636
78637 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78638
78639         * modules/argp (Depends-on): Add unlocked-io
78640
78641 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
78642
78643         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
78644         block of defines.
78645
78646 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
78647
78648         * config/srclist.txt: Comment out regcomp.c, since we have a porting
78649         fix now.
78650
78651 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
78652         and Paul Eggert  <eggert@cs.ucla.edu>
78653
78654         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
78655         in wint_t, not wchar_t.  Remove now-unnecessary cast.
78656
78657 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78658
78659         * modules/regex (Files): Add lib/regex_internal.c,
78660         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
78661         (Depends-on): Add extensions.
78662         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
78663
78664 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78665
78666         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
78667         pathconf.
78668         * m4/same.m4 (gl_SAME): Likewise.
78669         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
78670
78671         * m4/regex.m4: Adjust to new libc regex implementation.
78672         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
78673         all the .c and .h parts of (the new) regex.
78674         Quote the m4 stuff better.
78675         Check for RE_ICASE bug of old gnulib.
78676         Check for REG_STARTEND of recent libc.
78677         Rename local variables from jm_* to gl_*.
78678         Quote operand of "test -f".
78679         Say "recent enough" version of libc, not "version 2".
78680         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
78681         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
78682         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
78683         Remove check for btowc, isascii.
78684         Require AM_LANGINFO_CODESET.
78685
78686 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78687
78688         * lib/regex.c, regex.h: Sync from libc.
78689         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
78690         * lib/regexec.c:
78691         New files, synced from libc, except that regex_internal.h
78692         currently has a small porting fix.
78693
78694 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
78695
78696         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
78697         regex_internal.c, regexec.c.
78698         Add regex_internal.h too, but as a comment, since the libc version
78699         is currently broken in gnulib mode.
78700
78701 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78702
78703         Support programs like Emacs that use gnulib but not gettext.
78704         * MODULES.html.sh (Internationalization functions): Add gettext-h.
78705         * modules/gettext-h: New file.
78706         * modules/gettext (Files): Remove lib/gettext.h.
78707         (Depends-on): Add gettext-h.
78708         (Makefile.am): Remove lib_SOURCES.
78709         * modules/argmatch, modules/c-stack, modules/closeout:
78710         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
78711         * modules/execute, modules/file-type, modules/getaddrinfo:
78712         * modules/getopt, modules/human, modules/javacomp:
78713         * modules/javaexec, modules/mkdir-p, modules/obstack:
78714         * modules/openat, modules/pagealign_alloc, modules/pipe:
78715         * modules/quotearg, modules/regex, modules/rpmatch:
78716         * modules/unicodeio, modules/userspec, modules/version-etc:
78717         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
78718         * modules/xsetenv:
78719         Depend on gettext-h, not gettext.
78720
78721 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78722
78723         * gnulib-tool (func_import): Add support for 'public domain' license.
78724         * modules/alloca, modules/atexit, modules/memmove:
78725         Now public domain, not GPL.
78726         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
78727         * modules/realloc, modules/strerror, modules/strtod:
78728         Now LGPL, not GPL.
78729
78730 2005-07-05  Bruno Haible  <bruno@clisp.org>
78731
78732         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
78733         autoconf CVS. Needed for mingw.
78734
78735 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78736
78737         Remove the dependency of the strftime module on the tzset module.
78738         * modules/strftime (Depends-on): Remove dependency on tzset.
78739
78740 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78741
78742         Remove the dependency of the strftime module on the tzset module.
78743         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
78744         gl_FUNC_TZSET_CLOBBER.
78745
78746 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78747
78748         Remove the dependency of the strftime module on the tzset module.
78749         * lib/strftime.c (my_strftime)
78750         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
78751         Copy the input structure, to work around some of the bug with
78752         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
78753         Solaris releases, you should also use the tzset module, but we won't
78754         require it as a dependency any more since we don't want LGPLed code
78755         to depend on GPLed code.
78756
78757 2005-07-02  Jim Meyering  <jim@meyering.net>
78758
78759         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
78760         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
78761         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
78762         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
78763
78764 2005-07-02  Jim Meyering  <jim@meyering.net>
78765
78766         * lib/backupfile.c (backup_args): Change a `0' to NULL.
78767
78768 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78769
78770         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
78771         declares only 'struct timespec;' (!).
78772
78773 2005-07-01  Jim Meyering  <jim@meyering.net>
78774
78775         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
78776         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
78777         * lib/save-cwd.c, tempname.c:
78778         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
78779         and don't include <sys/file.h>).
78780
78781 2005-06-29  Jim Meyering  <jim@meyering.net>
78782
78783         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
78784         type name.  Use the variable name instead.
78785         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
78786         Likewise.
78787
78788 2005-06-28  Simon Josefsson  <jas@extundo.com>
78789
78790         * modules/check-version (Files): Add check-version.m4.
78791
78792 2005-06-28  Simon Josefsson  <jas@extundo.com>
78793
78794         * m4/check-version.m4: New file, suggested by Jim Meyering
78795         <jim@meyering.net>.
78796
78797 2005-06-28  Simon Josefsson  <jas@extundo.com>
78798
78799         * lib/check-version.h, lib/check-version.c: New files.
78800
78801 2005-06-28  Simon Josefsson  <jas@extundo.com>
78802
78803         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
78804         collision with global variable.  Better indentation.  Don't
78805         increment buffer pointer beyond buffer end.  Based on comments
78806         from Paul Eggert <eggert@cs.ucla.edu>.
78807
78808         * lib/base64.h: Indent.
78809
78810 2005-06-28  Simon Josefsson  <jas@extundo.com>
78811
78812         * doc/gnulib.texi (Library version handling): New section.
78813
78814 2005-06-28  Jim Meyering  <jim@meyering.net>
78815
78816         * check-module (find_included_lib_files): Hard-code another
78817         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
78818         but modules/fts-lgpl (correctly) does not list those files.
78819
78820         * modules/canonicalize (Files): Add lib/pathmax.h.
78821
78822 2005-06-25  Simon Josefsson  <jas@extundo.com>
78823
78824         * modules/check-version: New file.
78825
78826 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
78827
78828         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
78829         initializer of struct addrinfo, as an indication that we don't
78830         care how many members the structure has.
78831
78832 2005-06-24  Derek Price  <derek@ximbiot.com>
78833         and Bruno Haible  <bruno@clisp.org>
78834
78835         Remove stat module & update lstat.
78836         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
78837         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
78838         * m4/stat.m4: Remove this file.
78839
78840 2005-06-24  Derek Price  <derek@ximbiot.com>
78841         and Bruno Haible  <bruno@clisp.org>
78842
78843         Remove stat module & update lstat.
78844         * lib/stat.c: Remove this file...
78845         (slash_aware_lstat): ...moving this content and its support...
78846         * lib/lstat.c (rpl_lstat): ...into here.
78847         * lib/lstat.h: New file.
78848
78849 2005-06-24  Derek Price  <derek@ximbiot.com>
78850         and Bruno Haible  <bruno@clisp.org>
78851
78852         Remove stat module & update lstat.
78853         * config/srclist.txt (libc sources): Remove stat.
78854
78855 2005-06-24  Derek Price  <derek@ximbiot.com>
78856         and Bruno Haible  <bruno@clisp.org>
78857
78858         Remove stat module & update lstat.
78859         * MODULES.html.sh (stat): Remove.
78860         * MODULES.html: Regenerated.
78861         * modules/lstat (Description): Correct function name.
78862         (Files): Add "lstat.h".
78863         (Depends-on): Remove stat, add xalloc, stat-macros.
78864         * modules/stat: Remove this file.
78865         (Include): Add "lstat.h", remove <sys/stat.h>.
78866
78867 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
78868
78869         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
78870         (ranged_convert): Don't save conversion in a temporary struct.
78871         This causes a warning with GCC 4.0.0, and anyway in the typical
78872         case it's not worth the extra 100 bytes or so of code.
78873         (ranged_convert, __mktime_internal): When calling a function via a
78874         pointer P, use P () rather than (*P) (), as we now assume C89 or
78875         better.
78876
78877 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78878
78879         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
78880         "who -r" failed to give output.  Problem reported by Tim Waugh.
78881
78882         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
78883         (xcalloc): Use it to avoid needless tests.
78884         Problem reported by Jim Meyering.
78885
78886 2005-06-20  Derek Price  <derek@ximbiot.com>
78887
78888         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
78889         unnecessary for Autoconfs > 2.59c.
78890
78891 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
78892
78893         * lib/argp.h (__option_is_short): Check upper limit of
78894         __key. Isprint() requires its argument to have the value
78895         of an unsigned char or EOF.
78896
78897 2005-06-16  Jim Meyering  <jim@meyering.net>
78898
78899         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
78900         when either N or S is zero.
78901
78902 2005-06-16  Derek Price  <derek@ximbiot.com>
78903
78904         * m4/bison.m4: Declare YACC & YFLAGS precious.
78905
78906 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
78907
78908         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
78909         multibyte string or pattern, fall back on unibyte matching.
78910         Problem reported by James Youngman.
78911
78912 2005-06-08  Bruno Haible  <bruno@clisp.org>
78913
78914         * modules/csharpcomp: New file.
78915         * MODULES.html.sh (C#): Add csharpcomp.
78916
78917 2005-06-08  Bruno Haible  <bruno@clisp.org>
78918
78919         * m4/csharpcomp.m4: New file, from GNU gettext.
78920
78921 2005-06-08  Bruno Haible  <bruno@clisp.org>
78922
78923         * lib/csharpcomp.h: New file, from GNU gettext.
78924         * lib/csharpcomp.c: New file, from GNU gettext.
78925         * lib/csharpcomp.sh.in: New file, from GNU gettext.
78926
78927 2005-06-08  Bruno Haible  <bruno@clisp.org>
78928
78929         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
78930         warning on mingw.
78931
78932 2005-06-07  Derek Price  <derek@ximbiot.com>
78933
78934         Sync from CVS.
78935         * lib/glob_.h: Indent nested #ifdef.
78936
78937 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78938
78939         Sync from coreutils.
78940         Use "file name" when talking about file names, instead of "filename"
78941         or "path", as per the GNU coding standards.
78942         * lib/mkdir-p.c: Renamed from makepath.c.
78943         (make_dir_parents): Renamed from make_path.  All callers changed.
78944         * lib/mkdir-p.h: Likewise.  All includers changed.
78945         * lib/filenamecat.c: Renamed from path-concat.c.
78946         (file_name_concat): Renamed from path_concat.  All callers changed.
78947         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
78948         * lib/filenamecat.h: Likewise.  All includers changed.
78949         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
78950         in comments or local variable names.
78951         * lib/basename.c: Likewise.
78952         * lib/canonicalize.c, canonicalize.h: Likewise.
78953         * lib/dirname.c, dirname.h: Likewise.
78954         * lib/euidaccess.c: Likewise.
78955         * lib/exclude.c: Likewise
78956         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
78957         * lib/fsusage.c, fsuage.h: Likewise.
78958         * lib/fts.c, fts_.h: Likewise.
78959         * lib/getcwd.c: Likewise.
78960         * lib/getloadavg.c: Likewise.
78961         * lib/mkstemp.c: Likewise.
78962         * lib/mountlist.c, mountlist.h: Likewise.
78963         * lib/openat.c, openat.h: Likewise.
78964         * lib/readlink-stub.c: Likewise.
78965         * lib/readutmp.c, readutmp.h: Likewise.
78966         * lib/rename.c: Likewise.
78967         * lib/rmdir.c: Likewise.
78968         * lib/same.c: Likewise.
78969         * lib/savedir.c: Likewise.
78970         * lib/stripslash.c: Likewise.
78971         * lib/tempname.c: Likewise.
78972         * lib/xreadlink.c: Likewise.
78973         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
78974         All uses changed.
78975         * lib/exclude.h: Likewise.
78976
78977         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
78978         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78979         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
78980         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78981         * lib/pathmax.h: Include <limits.h> unconditionally, since other
78982         files have been getting away with it for years (MORE/BSD 4.3
78983         is extinct now).
78984         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
78985         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
78986
78987         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
78988         Define to 256, not 255, as per modern POSIX.
78989
78990 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
78991
78992         Sync from coreutils.
78993         Use "file name" when talking about file names, instead of "filename"
78994         or "path", as per the GNU coding standards.
78995         * MODULES.html.sh: mkdir-p renamed from makepath.
78996         filenamecat renamed from path-concat.
78997         * modules/filenamecat: Renamed from modules/path-concat.
78998         (Files): filenamecat.h and filenamecat.c renamed from
78999         path-concat.h and path-concat.c.
79000         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
79001         (Include): filenamecat.h, not path-concat.h.
79002         * modules/mkdir-p: Renamed from modules/makepath.
79003         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
79004         makepath.c.
79005         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
79006         (Include): mkdir-p.h, not makepath.h.
79007
79008 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
79009
79010         Sync from coreutils.
79011         * m4/mkdir-p.m4: Renamed from makepath.m4.
79012         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
79013         Rename files from makepath.c to mkdir-p.c, and from
79014         makepath.h to mkdir-p.h.
79015         * m4/filenamecat.m4: Renamed from path-concat.m4.
79016         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
79017         Rename files from path-concat.c to filenamecat.c,
79018         and from path-concat.h to filenamecat.h.
79019         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
79020         "file name" in local variables or comments.
79021         * m4/rename.m4: Likewise.
79022
79023 2005-06-01  Bruno Haible  <bruno@clisp.org>
79024
79025         * modules/csharpexec: New file.
79026         * MODULES.html.sh (C#): New section.
79027
79028 2005-06-01  Bruno Haible  <bruno@clisp.org>
79029
79030         * m4/csharp.m4: New file, from GNU gettext.
79031         * m4/csharpexec.m4: New file, from GNU gettext.
79032
79033 2005-06-01  Bruno Haible  <bruno@clisp.org>
79034
79035         * lib/csharpexec.h: New file, from GNU gettext.
79036         * lib/csharpexec.c: New file, from GNU gettext.
79037         * lib/csharpexec.sh.in: New file, from GNU gettext.
79038
79039 2005-05-31  Derek Price  <derek@ximbiot.com>
79040             Paul Eggert  <eggert@cs.ucla.edu>
79041
79042         Sync from cvs.
79043         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
79044
79045 2005-05-31  Derek Price  <derek@ximbiot.com>
79046             Paul Eggert  <eggert@cs.ucla.edu>
79047
79048         Sync from cvs.
79049         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
79050
79051 2005-05-29  Derek Price  <derek@ximbiot.com>
79052
79053         * config/srclist.txt (glob_.h, glob.c): Add these files.
79054
79055 2005-05-29  Derek Price  <derek@ximbiot.com>
79056
79057         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
79058         * modules/glob: New file.
79059         * modules/getlogin_r: Add link to POSIX spec in description.
79060
79061 2005-05-29  Derek Price  <derek@ximbiot.com>
79062             Paul Eggert  <eggert@cs.ucla.edu>
79063
79064         * m4/glob.m4: New file.
79065
79066 2005-05-29  Derek Price  <derek@ximbiot.com>
79067             Paul Eggert  <eggert@cs.ucla.edu>
79068
79069         * lib/glob_.h, lib/glob.c: New files.
79070
79071 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79072
79073         * modules/fts (Files): Remove m4/inttypes-pri.m4.
79074         * modules/fts-lgpl (Depends-on): Remove gettext.
79075
79076 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79077
79078         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
79079         and don't require gt_INTTYPES_PRI.
79080
79081 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
79082
79083         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
79084
79085         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
79086         the configuration hassle isn't worth it.
79087         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
79088         (LONGEST_MODIFIER, PRIuMAX): Remove.
79089
79090 2005-05-27  Bruno Haible  <bruno@clisp.org>
79091
79092         * lib/getlogin_r.h: Remove second include of <stddef.h>.
79093
79094 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
79095
79096         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
79097         _POSIX_PTHREAD_SEMANTICS for Solaris.
79098
79099 2005-05-25  Derek Price  <derek@ximbiot.com>
79100
79101         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
79102
79103 2005-05-25  Derek Price  <derek@ximbiot.com>
79104             Paul Eggert  <eggert@cs.ucla.edu>
79105
79106         * modules/getlogin_r, m4/getlogin_r.m4: New files.
79107         * lib/getlogin_r.c, getlogin_r.h: New files.
79108
79109 2005-05-25  Bruno Haible  <bruno@clisp.org>
79110             Derek Price  <derek@ximbiot.com>
79111
79112         * lib/getlogin_r.h: Simplify API documentation.
79113
79114 2005-05-23  Derek Price  <derek@ximbiot.com>
79115
79116         * modules/minmax (Files): Add m4/minmax.m4.
79117         (configure.ac): Add gl_MINMAX.
79118
79119 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
79120
79121         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
79122         so that unistd-safer.h (GPL'ed code) need not be included.
79123
79124 2005-05-22  Bruno Haible  <bruno@clisp.org>
79125
79126         * m4/minmax.m4: New file.
79127         Based on a patch by Derek Price <derek@ximbiot.com>.
79128
79129 2005-05-22  Bruno Haible  <bruno@clisp.org>
79130
79131         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
79132         (INT64_MIN): Fix definition.
79133         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
79134
79135         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
79136         NEED_SIGNED_INT_TYPES.
79137
79138         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
79139         HAVE_SYSTEM_INTTYPES.
79140
79141 2005-05-22  Bruno Haible  <bruno@clisp.org>
79142
79143         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
79144         Also include <sys/param.h> if it defines MIN, MAX.
79145         Based on a patch by Derek Price <derek@ximbiot.com>.
79146
79147 2005-05-21  Jim Meyering  <jim@meyering.net>
79148
79149         * modules/fts (Files): Add m4/inttypes-pri.m4.
79150         (Depends-on): Add lstat and remove gettext.  Alphabetize.
79151
79152 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79153
79154         New fts module.
79155         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
79156         (setup_dir, free_dir): New functions.
79157         (enter_dir, leave_dir): Define trivial
79158         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
79159         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
79160         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
79161         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
79162         Move to fts-cycle.c.
79163         (fts_open): Use setup_dir.
79164         (fts_close): Use free_dir.
79165         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
79166         This adds a label and some gotos, but the alternatives were messier.
79167         Check for memory allocation failure when entering a dir.
79168         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
79169         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
79170         (FTS): New member fts_cycle, that is a union that contains the
79171         old active_dir_ht and cycle_state.  All uses changed to mention
79172         fts_cycle.ht and fts_cycle.state.
79173         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
79174         fts.c, with the following changes:
79175         (setup_dir, free_dir): New functions.
79176         (enter_dir): Now returns bool.  Return true if successful, false
79177         if memory exhausted.  All callers changed.
79178         Do not bother partly cleaning up on
79179         memory allocation failure; that is free_dir's job.
79180         However, free ad if hash_insert fails, to avoid memory leak.
79181         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
79182         fts->fts_options to see which union member to use.
79183
79184 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79185
79186         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
79187         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
79188
79189 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
79190
79191         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
79192
79193 2005-05-20  Jim Meyering  <jim@meyering.net>
79194
79195         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
79196         Now a macro, to pacify GCC.
79197
79198 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
79199
79200         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
79201         of -1.
79202
79203 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
79204
79205         * lib/chown.c (rpl_chown): Return -1 on failure.
79206
79207 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
79208
79209         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
79210         Don't check for stddef.h.
79211         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
79212         don't use its results.
79213         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
79214         since we include them unconditionally.  Don't require
79215         AM_STDBOOL_H, since stdbool is a prerequisite.
79216         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
79217         since we assume C89 or better.
79218         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
79219         as we don't use their results.
79220         Don't check for fchdir, memmove, memset, strrchr, as we use
79221         them unconditionally.
79222         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
79223         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
79224
79225 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
79226
79227         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
79228         Include <stddef.h> unconditionally, since we assume C89 now.
79229         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
79230         * lib/fts.c: Include fts_.h first, to check interface.
79231         Do not include intprops.h; no longer needed.
79232         Include cycle-check.h and hash.h, since fts_.h no longer does.
79233         Remove unnecessary casts of closedir to void.
79234         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
79235         decide whether to decrement nlinks.
79236         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
79237         (FTS): Use struct hash_table * instead of Hash_table, so that
79238         we no longer need to include hash.h here.
79239
79240 2005-05-18  Jim Meyering  <jim@meyering.net>
79241
79242         * modules/dirfd (License): Change to LGPL.  Most of the code
79243         is already in the public domain.
79244
79245 2005-05-18  Jim Meyering  <jim@meyering.net>
79246
79247         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
79248         Reported by Yoann Vandoorselaere.
79249
79250 2005-05-17  Jim Meyering  <jim@meyering.net>
79251
79252         * m4/fts.m4: New file, from coreutils.
79253
79254 2005-05-17  Jim Meyering  <jim@meyering.net>
79255
79256         * lib/fts.c, lib/fts_.h: New files, from coreutils.
79257
79258 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79259
79260         Sync from coreutils.
79261         * m4/unlinkdir.m4: New file.
79262
79263 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79264
79265         Sync from coreutils.
79266         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
79267         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
79268         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
79269         White space changes only.
79270         * lib/makepath.c (make_path): Port to hosts where leading "//" is
79271         special.
79272         * lib/yesno.c: Include getline.h, not ctype.h.
79273         (yesno): Don't remove leading white space; POSIX doesn't allow it.
79274         Use getline to remove arbitrary restriction on response length.
79275
79276 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79277
79278         * config/srclist-update: Spell out "Street" in FSF postal
79279         mail address; this is the style the FSF seems to prefer.
79280
79281         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
79282         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
79283         this updates FSF postal mail address.
79284
79285         Sync from coreutils.
79286         * modules/unlinkdir: New file.
79287         * modules/yesno (Depends-on): Add getline.
79288         * MODULES.html.sh (File system functions): Add unlinkdir.
79289
79290 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79291
79292         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
79293         lib/strsep.h:
79294         Change the initial comment to refer to GPL, not LGPL.
79295         gnulib-tool will change it to LGPL as needed.
79296
79297         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
79298         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
79299         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
79300         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
79301         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
79302         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
79303         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
79304         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
79305         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
79306         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
79307         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
79308         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
79309         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
79310         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
79311         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
79312         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
79313         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
79314         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
79315         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
79316         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
79317         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
79318         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
79319         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
79320         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
79321         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
79322         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
79323         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
79324         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
79325         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
79326         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
79327         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
79328         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
79329         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
79330         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
79331         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
79332         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
79333         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
79334         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
79335         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
79336         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
79337         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
79338         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
79339         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
79340         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
79341         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
79342         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
79343         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
79344         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
79345         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
79346         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
79347         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
79348         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
79349         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
79350         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
79351         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
79352         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
79353         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
79354         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
79355         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
79356         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
79357         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
79358         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
79359         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
79360         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
79361         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
79362         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
79363         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
79364         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
79365         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
79366         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
79367         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
79368         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
79369         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
79370         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
79371         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
79372         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
79373         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
79374         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
79375         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
79376         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
79377         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
79378         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
79379         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
79380         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
79381         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
79382         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
79383         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
79384         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
79385         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
79386         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
79387         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
79388         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
79389         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
79390         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
79391         lib/yesno.c, lib/yesno.h:
79392         Update FSF postal mail address.
79393
79394 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
79395
79396         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
79397         tests/test-memmem.c, tests/test-stpncpy.c:
79398         Update FSF postal mail address.
79399
79400 2005-05-13  Bruno Haible  <bruno@clisp.org>
79401
79402         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
79403         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
79404         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
79405         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
79406         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
79407         Add support for 64-bit integers in the MSVC compiler.
79408
79409 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
79410
79411         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
79412
79413 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
79414
79415         * gnulib-tool (func_import): Sort and uniquify recommended includes.
79416
79417 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
79418
79419         * doc/getdate.texi (General date syntax): Don't say that date
79420         date --iso-8601=ns generates acceptable dates; it doesn't yet.
79421         Problem reported by Nic Ferrier.
79422
79423 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79424
79425         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
79426         specified in ai_socktype. Fix invalid ai_protocol
79427         check. ai_protocol is usually set to 0 or depending on
79428         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
79429         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
79430         ai_socktype / ai_protocol in the returned addrinfo structure.
79431
79432 2005-05-10  Simon Josefsson  <jas@extundo.com>
79433
79434         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
79435         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
79436
79437 2005-05-10  Karl Berry  <karl@gnu.org>
79438
79439         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
79440         (from http://www.gnu.org/licenses).
79441         * doc/COPYING.LIB: also rename to COPYING.LESSER.
79442         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
79443         fdl.texi suffices.
79444
79445 2005-05-10  Karl Berry  <karl@gnu.org>
79446
79447         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
79448         (COPYING.DOC): remove.
79449
79450         * config/srclist-update: new FSF address.
79451
79452 2005-05-10  Derek Price  <derek@ximbiot.com>
79453
79454         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
79455         possible.
79456
79457 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79458             Bruno Haible  <bruno@clisp.org>
79459
79460         * modules/inet_ntop: New file.
79461         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
79462         inet_ntop.
79463
79464 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79465             Bruno Haible  <bruno@clisp.org>
79466
79467         * m4/inet_ntop.m4: New file.
79468
79469 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
79470             Bruno Haible  <bruno@clisp.org>
79471
79472         * lib/inet_ntop.h: New file.
79473         * lib/inet_ntop.c: New file, from glibc with modifications.
79474
79475 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
79476
79477         * modules/time_r (License): Change to LGPL.
79478         * modules/extensions (License): Change to LGPL.  Actually,
79479         the license is more permissive than that, but currently gnulib-tool
79480         doesn't know how to handle more-permissive licenses.
79481
79482         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
79483         Problem reported by Dave Love.
79484
79485 2005-05-08  Jim Meyering  <jim@meyering.net>
79486
79487         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
79488         blank.
79489
79490 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
79491
79492         * modules/argmatch (Depends-on): Add stdbool.
79493         * modules/backupfile (Depends-on): Likewise.
79494         * modules/chdir-long (Depends-on): Likewise.
79495         * modules/closeout (Depends-on): Likewise.
79496         * modules/cycle-check (Depends-on): Likewise.
79497         * modules/dirname (Depends-on): Likewise.
79498         * modules/fnmatch (Depends-on): Likewise.
79499         * modules/fsusage (Depends-on): Likewise.
79500         * modules/fwriteerror (Depends-on): Likewise.
79501         * modules/getcwd (Depends-on): Likewise.
79502         * modules/getloadavg (Depends-on): Likewise.
79503         * modules/hard-locale (Depends-on): Likewise.
79504         * modules/makepath (Depends-on): Likewise.
79505         * modules/mountlist (Depends-on): Likewise.
79506         * modules/nanosleep (Depends-on): Likewise.
79507         * modules/posixtm (Depends-on): Likewise.
79508         * modules/quotearg (Depends-on): Likewise.
79509         * modules/readtokens (Depends-on): Likewise.
79510         * modules/readtokens0 (Depends-on): Likewise.
79511         * modules/readutmp (Depends-on): Likewise.
79512         * modules/save-cwd (Depends-on): Likewise.
79513         * modules/strftime (Depends-on): Likewise.
79514         * modules/userspec (Depends-on): Likewise.
79515         * modules/utimecmp (Depends-on): Likewise.
79516         * modules/xgetcwd (Depends-on): Likewise.
79517         * modules/xnanosleep (Depends-on): Likewise.
79518         * modules/xstrtod (Depends-on): Likewise.
79519         * modules/yesno (Depends-on): Likewise.
79520
79521 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
79522
79523         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
79524         needless checks.
79525
79526 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79527
79528         Merge from coreutils.  Among other things,
79529         add bulletproofing for cases where stdin, stdout, or stderr are closed.
79530         * lib/fd-safer.c: New file.
79531         * lib/fcntl-safer.h, open-safer.c: Remove.
79532         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
79533         * lib/dup-safer.c: Include unistd-safer.h first.
79534         Don't include errno.h.
79535         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
79536         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
79537         * lib/file-type.c: Rely on file-type.h change.
79538         * lib/getloadavg.c: Include unistd-safer.h.
79539         (getloadavg): Use safer open.
79540         * lib/getusershell.c: Include "stdio-safer.h".
79541         (getusershell): Use safer fopen.
79542         * lib/long-options.c (long_options): Use NULL rather than 0.
79543         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
79544         'free'.
79545         * lib/modechange.c: Likewise.
79546         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
79547         (MODE_DONE): New constant.
79548         (struct mode_change): Remove 'next' member.
79549         (make_node_op_equals): New function; like the old one of the
79550         same name, except it allocates an array.
79551         (mode_compile, mode_create_from_ref): Use it.
79552         (mode_compile): Allocate result as an array, not a linked list.
79553         Parse octal string ourself, so that we catch mistakes like "+0".
79554         (mode_adjust): Arg is an array, not a linked list.
79555         * lib/modechange.c: Include stat-macros.h, xalloc.h.
79556         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
79557         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
79558         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
79559         Remove.  This is now stat-macros.h's job.
79560         (talloc): Remove.  All callers replaced by xalloc, so that
79561         our invokers don't have to worry about reporting memory failures.
79562         (make_node_op_equals): Remove.
79563         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
79564         New constants.
79565         (struct mode_change): Moved here from modechange.h.
79566         (mode_append_entry): Remove.
79567         (mode_compile): Remove MASKED_OPS arg, since it encouraged
79568         apps to have incorrect behavior.  Use simpler algorithm for head
79569         and tail.  Don't futz with umask; that's now the job of mode_adjust.
79570         Detect more invalid usages rather than having somewhat-random behavior.
79571         Don't insert an "a=" action, as that leads to incorrect behavior.
79572         (mode_compile, mode_create_from_ref): Return NULL on error instead
79573         of an enum, since now there's only one way to have an error.  All
79574         callers changed.
79575         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
79576         at the correct time.  Simplify calculation of "+u" and its ilk.
79577         Don't mishandle "+X".
79578         (mode_free): Remove "register" and localize decls.
79579         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
79580         (struct mode_change): Move to modechange.c; callers don't
79581         need to see this stuff.
79582         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
79583         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
79584         (mode_change, mode_adjust): Reflect the new signatures noted above.
79585         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
79586         that might redefine system include files.
79587         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
79588         (my_usleep): Use NULL rather than (void *) 0.
79589         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
79590         Use siginterrupt to specify that system calls should be interrupted.
79591         (rpl_nanosleep): Move initialization of suspended closer to call of
79592         my_usleep.
79593         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
79594         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
79595         (desirable_utmp_entry): New function.
79596         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
79597         using x2nrealloc, to simplify logic.
79598         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
79599         size calculation.  Do not assume utmp file is a regular file.
79600         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
79601         (READ_UTMP_CHECK_PIDS): New constant.
79602         * lib/save-cwd.c: Include unistd-safer.h.
79603         (save_cwd): Use fd_safer.
79604         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
79605         [!_LIBC] Include "stat-macros.h" instead.
79606         * lib/unistd-safer.h (fd_safer): New decl.
79607
79608 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79609
79610         * modules/getloadavg (Depends-on): Add unistd-safer.
79611         * modules/getusershell (Depends-on): Add stdio-safer.
79612         * modules/lstat (Depends-on): Remove xalloc.
79613         * modules/mkstemp (Depends-on): Add stat-macros.
79614         * modules/modechange (Depends-on): Remove xstrtol.
79615         Add stat-macros, xalloc.
79616         * modules/save-cwd (Depends-on): Add unistd-safer.
79617         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
79618         * modules/unistd-safer (Files): Add lib/fd-safer.c
79619         (Makefile.am): Remove lib_SOURCES.
79620
79621         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
79622         Remove fcntl-safer; unistd-safer supersedes it.
79623
79624 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79625
79626         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
79627         AC_HEADER_STAT.
79628         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
79629         (gl_PREREQ_CHOWN): Remove.
79630         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
79631         it.  Don't require AC_HEADER_STAT.
79632         (gl_PREREQ_LSTAT): Remove.
79633         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
79634         Don't require AC_HEADER_STAT.
79635         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
79636         (gl_PREREQ_RMDIR): Remove.
79637         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
79638         mention stat-macros.h or AC_HEADER_STAT, since we'll make
79639         the stat-macros module a prerequisite.
79640         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
79641         * m4/filemode.m4 (gl_FILEMODE): Likewise.
79642         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
79643         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
79644         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
79645         variable names.
79646         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
79647         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
79648         variable prefixes.
79649         * m4/fcntl-safer.m4: Remove.
79650         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
79651         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
79652         Invoke gl_PREREQ_FD_SAFER.
79653         (gl_PREREQ_FD_SAFER): New macro.
79654         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
79655         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
79656         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
79657         Remove duplicate call to AC_LIBOBJ(readutmp).
79658         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
79659
79660         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
79661         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
79662
79663 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
79664
79665         * MODULES.html.sh (Misc): Add byteswap.
79666
79667 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79668
79669         * modules/getcwd (Depends-on): Add extensions.
79670         * modules/openat (Depends-on): Likewise.
79671
79672 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79673
79674         * modules/byteswap: New file.
79675
79676 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79677
79678         * m4/byteswap.m4: New file.
79679
79680 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
79681
79682         * lib/byteswap_.h: New file.
79683
79684 2005-04-25  Karl Berry  <karl@gnu.org>
79685
79686         * m4/gettext.m4: Update from GNU gettext 0.14.4.
79687
79688 2005-04-25  Albert Chin  <china@thewrittenword.com>
79689
79690         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
79691         Toolkit C bug.
79692
79693 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
79694
79695         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
79696         (func_ln_if_changed): Remove forcibly for no error message
79697         in case file does not exist.
79698
79699 2005-04-19  Simon Josefsson  <jas@extundo.com>
79700
79701         * gnulib-tool (Options): Make --symlink mean --symbolic.
79702
79703 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
79704
79705         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
79706
79707 2005-04-16  Simon Josefsson  <jas@extundo.com>
79708
79709         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
79710
79711 2005-04-15  Simon Josefsson  <jas@extundo.com>
79712
79713         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
79714
79715 2005-04-15  Simon Josefsson  <jas@extundo.com>
79716
79717         * gnulib-tool: Rename --symlink to --symbolic.
79718
79719 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
79720
79721         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
79722         symbolic links to files instead of copying/moving.  Add --aux-dir,
79723         specifying directory relative --dir where auxiliary build tools
79724         are placed.
79725
79726 2005-04-14  Bruno Haible  <bruno@clisp.org>
79727
79728         * modules/allocsa (License): Change to LGPL.
79729         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
79730
79731 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
79732
79733         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
79734         that "UTC +1 second" continues to work.  Problem reported
79735         by Dmitry V. Levin.
79736         (relunit_snumber): New rule.
79737         (relunit): Use it.
79738
79739 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
79740
79741         * lib/getdate.y (universal_time_zone_table): New constant.
79742         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
79743         universal_time_zone_table.
79744         (lookup_zone): Prefer universal_time_zone_table to
79745         local_time_zone_table, so that "GMT" time stamps are allowed in
79746         London during the summer.  Problem reported by Ian Abbott.
79747
79748 2005-04-12  Jim Meyering  <jim@meyering.net>
79749
79750         * lib/human.c (humblock): Set *options even when returning due to
79751         xstrtoumax conversion failure.  Thanks to a used-uninitialized
79752         warning from gcc-4.
79753
79754 2005-04-09  Jim Meyering  <jim@meyering.net>
79755
79756         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
79757         -Wuninitialized: initialize tm0.tm_year.
79758
79759 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
79760
79761         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
79762         count, since there's no maximum.  All uses changed.
79763         Add member dsts_seen.
79764         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
79765         not being INT_MAX.
79766         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
79767         Use pc_rels_seen to decide whther a date is absolute.
79768
79769         * lib/getdate.y (number): Don't overwrite year.
79770         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
79771         check.
79772
79773 2005-04-02  Simon Josefsson  <jas@extundo.com>
79774
79775         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
79776         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
79777
79778 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
79779
79780         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
79781         where no absolute path name can be longer than PATH_MAX.
79782
79783 2005-03-27  Jim Meyering  <jim@meyering.net>
79784
79785         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
79786
79787 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
79788
79789         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
79790         "one's complement" -> "ones' complement" in comment, as per Knuth.
79791         "value of type" -> "type or expression" in comment.
79792         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
79793
79794 2005-03-26  Jim Meyering  <jim@meyering.net>
79795
79796         Comment nits.
79797         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
79798         Correct typos: s/or/of/.
79799
79800 2005-03-26  Jim Meyering  <jim@meyering.net>
79801
79802         * modules/check-include-files: Move to ../ and rename to...
79803         * check-module: ...this.
79804
79805 2005-03-25  Jim Meyering  <jim@meyering.net>
79806
79807         * modules/xvasprintf (Files): Add xalloc.h.
79808
79809 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
79810
79811         * modules/gettext (Files): config/config.rpath ->
79812         build-aux/config.rpath
79813         * modules/iconv (Files): Likewise.
79814         Problem reported by Oskar Liljeblad.
79815
79816 2005-03-23  Jim Meyering  <jim@meyering.net>
79817
79818         * modules/check-include-files: New script to check for
79819         missing dependencies, multiple includes, etc.
79820
79821         * modules/c-strtold (Depends-on): Add xalloc.
79822         * modules/c-strtod (Depends-on): Add xalloc.
79823         * modules/hash (Depends-on): Add xalloc.
79824         (Files): Remove lib/xalloc.h.
79825
79826         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
79827         * modules/userspec (Files): Add lib/inttostr.h.
79828
79829 2005-03-23  Jim Meyering  <jim@meyering.net>
79830
79831         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
79832
79833 2005-03-22  Jim Meyering  <jim@meyering.net>
79834
79835         * modules/stat-macros: New module.
79836         * modules/canonicalize, modules/euidaccess, modules/file-type,
79837         * modules/filemode, modules/lchown, modules/makepath,
79838         * modules/rmdir, modules/stat: Depend on new stat-macros module
79839         rather than listing lib/stat-macros.h manually.
79840         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
79841
79842 2005-03-22  Jim Meyering  <jim@meyering.net>
79843
79844         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
79845
79846 2005-03-22  Bruno Haible  <bruno@clisp.org>
79847
79848         * config/srclist.txt: Replace target directory 'config' with
79849         'build-aux'.
79850         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
79851         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
79852         ../build-aux/.
79853
79854 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
79855
79856         * modules/chdir-long (Depends-on): Add mempcpy.
79857
79858         * modules/acl, modules/backupfile, modules/c-strtod,
79859         modules/c-strtold, modules/canon-host, modules/canonicalize,
79860         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
79861         modules/exclude, modules/exitfail, modules/file-type,
79862         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
79863         modules/getdate, modules/getline, modules/getpagesize,
79864         modules/getpass, modules/getugroups, modules/group-member,
79865         modules/hard-locale, modules/hash, modules/human, modules/idcache,
79866         modules/inttostr, modules/long-options, modules/makepath,
79867         modules/md5, modules/memcasecmp, modules/memcoll,
79868         modules/modechange, modules/mountlist, modules/path-concat,
79869         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
79870         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
79871         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
79872         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
79873         modules/strftime, modules/strndup, modules/strverscmp,
79874         modules/timespec, modules/unlocked-io, modules/userspec,
79875         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
79876         modules/yesno:
79877         Remove lib_SOURCES line from Makefile.am section, as this is now
79878         done automatically by the corresponding Autoconf macro.
79879
79880 2005-03-21  Jim Meyering  <jim@meyering.net>
79881
79882         Changes imported from coreutils.
79883
79884         * lib/cycle-check.c: Don't include xalloc.h.
79885
79886         * lib/path-concat.c: Don't include assert.h.
79887         (path_concat): Remove assertion that would have triggered
79888         for ABASE starting with more than one slash.
79889         Reported by Andreas Schwab.
79890
79891         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
79892         properly when ABASE is an absolute file name.
79893         Correct the description of this function.
79894         Include <assert.h>.
79895         Add an assertion and a test driver.
79896         This fixes a bug introduced on 2004-07-02.
79897         Andreas Schwab reported the resulting failure of cp --parents:
79898         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
79899
79900 2005-03-21  Jim Meyering  <jim@meyering.net>
79901
79902         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
79903         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
79904
79905 2005-03-21  Jim Meyering  <jim@meyering.net>
79906         and  Paul Eggert  <eggert@cs.ucla.edu>
79907
79908         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
79909         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
79910         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
79911         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
79912         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
79913         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
79914         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
79915         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
79916         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
79917         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
79918         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
79919         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
79920         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
79921         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
79922         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
79923         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
79924         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
79925         for these modules.
79926
79927 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
79928
79929         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
79930         (which shouldn't happen), generate nothing instead of returning 0
79931         immediately, so that nstrftime (NULL, ...) doesn't return 0.
79932
79933 2005-03-16  Bruno Haible  <bruno@clisp.org>
79934
79935         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
79936         HAVE_LONGLONG_64BIT.
79937
79938 2005-03-16  Bruno Haible  <bruno@clisp.org>
79939
79940         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
79941         HAVE_LONGLONG_64BIT.
79942
79943 2005-03-16  Bruno Haible  <bruno@clisp.org>
79944
79945         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
79946         HAVE_LONGLONG_64BIT.
79947
79948 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
79949
79950         * lib/strftime.c (my_strftime): Prepend space to format so that we can
79951         reliably distinguish strftime failure from empty output on POSIX
79952         hosts.
79953
79954 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
79955
79956         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
79957         (iconv_string): Don't guess a size-zero buffer, as that might cause
79958         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
79959         result would be 'too large', where 'too large' is (heuristically)
79960         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
79961         overflow concerns.  This will prevent some unwanted malloc failures
79962         when the inputs are very large.
79963
79964 2005-03-15  Karl Berry  <karl@gnu.org>
79965
79966         * config/srclist.txt (config.rpath): from gettext.
79967         * config/config.rpath: update.
79968
79969 2005-03-15  Bruno Haible  <bruno@clisp.org>
79970
79971         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
79972         to 'negate'.
79973
79974         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
79975         variable.
79976
79977         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
79978         results.
79979
79980 2005-03-14  Simon Josefsson  <jas@extundo.com>
79981
79982         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
79983         <fx@gnu.org>.
79984
79985 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
79986
79987         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
79988         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
79989         intprops.h.
79990         * lib/strtol.c: Likewise.
79991
79992 2005-03-14  Jim Meyering  <jim@meyering.net>
79993
79994         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
79995         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
79996         to be nonzero so that we (and caller) can detect the difference
79997         between a valid zero-length expansion and an error return, even
79998         when the underlying strftime fails before writing anything into
79999         that location.
80000
80001 2005-03-14  Bruno Haible  <bruno@clisp.org>
80002
80003         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
80004         Update from GNU gettext 0.14.3.
80005
80006 2005-03-10  Jim Meyering  <jim@meyering.net>
80007
80008         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
80009
80010 2005-03-10  Jim Meyering  <jim@meyering.net>
80011
80012         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
80013         so that this module works on systems without fchdir.
80014
80015 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
80016
80017         Factor int-properties macros into a single file, except for
80018         glibc-related files.
80019         * lib/intprops.h: New file.
80020         * lib/getloadavg.c: Include it instead of limits.h.
80021         (INT_STRLEN_BOUND): Remove.
80022         * lib/human.c: Include intprops.h.
80023         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
80024         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
80025         302/1000.
80026         * lib/inttostr.h: Include intprops.h instead of limits.h.
80027         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
80028         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
80029         for consistency with intprops.h.
80030         (time_t_is_integer, twos_complement_arithmetic): Use them.
80031         * lib/sig2str.h: Include <signal.h>, intprops.h.
80032         (INT_STRLEN_BOUND): Remove.
80033         * lib/strftime.c (TYPE_SIGNED): Remove.
80034         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
80035         * lib/strtol.c: Adjust comments to match intprops.h.
80036         * lib/userspec.c: Include intprops.h.
80037         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
80038         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
80039         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
80040         instead of rolling our own expressions.
80041         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
80042
80043         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
80044         instead of int.
80045         (my_strftime): Do not mishandle years close to INT_MAX, by doing
80046         the right thing even if adding 1900 would overflow.  Similarly
80047         for tm_mon + 1 and tm_yday + 1.
80048         Make %Y always equivalent to %C%y, and similarly for %G and %g.
80049         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
80050         (DO_SIGNED_NUMBER): New macro.
80051         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
80052
80053 2005-03-07  Bruno Haible  <bruno@clisp.org>
80054
80055         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
80056
80057 2005-03-07  Bruno Haible  <bruno@clisp.org>
80058
80059         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
80060
80061 2005-03-04  Derek R. Price  <derek@ximbiot.com>
80062
80063         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
80064         (func_import): Only replace files via --import when they have actually
80065         changed.
80066
80067 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80068
80069         * m4/mmap-anon.m4: New file.
80070         * m4/pagealign_alloc.m4: New file.
80071
80072 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80073             Bruno Haible  <bruno@clisp.org>
80074
80075         * modules/pagealign_alloc: New file.
80076         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
80077
80078 2005-03-03  Derek R. Price  <derek@ximbiot.com>
80079             Bruno Haible  <bruno@clisp.org>
80080
80081         * lib/pagealign_alloc.h: New file.
80082         * lib/pagealign_alloc.c: New file.
80083
80084 2005-03-03  Bruno Haible  <bruno@clisp.org>
80085
80086         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
80087         Use an all-permissive copyright notice, recommended by RMS.
80088
80089 2005-03-02  Bruno Haible  <bruno@clisp.org>
80090
80091         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
80092         of AIX, the replacement has to be done only after <string.h> is
80093         included, therefore not in config.h. stpncpy.h does the replacement,
80094         and stpncpy.c uses it.
80095
80096 2005-03-02  Bruno Haible  <bruno@clisp.org>
80097
80098         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
80099         stpncpy.c uses it.
80100
80101 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80102
80103         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
80104         The workaround isn't strictly needed for POSIX conformance, and
80105         it's too much of a pain to configure and maintain.  We'll ask
80106         people to fix their kernels instead.
80107         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
80108         (NANOSLEEP_BUG_WORKAROUND): Remove.
80109         (xnanosleep): Remove the workaround.
80110
80111 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80112
80113         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
80114         Reported by Derek Price.
80115         (Include): Add "timespec.h".
80116
80117         * modules/xnanosleep (Depends-on): Remove gethrxtime.
80118
80119 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
80120
80121         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
80122         to detect nanosleep bug.
80123
80124 2005-03-01  Bruno Haible  <bruno@clisp.org>
80125
80126         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
80127
80128 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
80129
80130         * modules/gethrxtime: New file.
80131         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
80132         (Depends-on): Add gethrxtime.
80133         (configure.ac): Add gl_XNANOSLEEP.
80134         (Makefile.am): Remove lib_SOURCES line.
80135
80136 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
80137
80138         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
80139         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
80140
80141 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
80142
80143         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
80144         * lib/timespec.h (gettime): Return void, since it always
80145         succeeds now.  All uses changed.
80146         * lib/gettime.c (gettime): Likewise.
80147         [HAVE_NANOTIME]: Prefer nanotime.
80148         Assume gettimeofday succeeds, as POSIX requires.
80149         Assime time () succeeds, since other code already does.
80150         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
80151         (timespec_subtract): Remove.
80152         (NANOSLEEP_BUG_WORKAROUND): New constant.
80153         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
80154         things considerably.  Use it only on GNU/Linux hosts, since the
80155         workaround shouldn't be needed elsewhere.
80156
80157 2005-02-24  Bruno Haible  <bruno@clisp.org>
80158
80159         * modules/gettext (Files): Add m4/glibc2.m4.
80160
80161 2005-02-24  Bruno Haible  <bruno@clisp.org>
80162
80163         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
80164         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
80165         * m4/progtest.m4:
80166         Update from GNU gettext 0.14.2.
80167         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
80168
80169 2005-02-24  Bruno Haible  <bruno@clisp.org>
80170
80171         * lib/localcharset.c: Update from GNU gettext 0.14.2.
80172         * lib/config.charset: Update from GNU gettext 0.14.2.
80173
80174 2005-02-24  Bruno Haible  <bruno@clisp.org>
80175
80176         * lib/gettext.h: Update from GNU gettext 0.14.2.
80177
80178 2005-02-23  Simon Josefsson  <jas@extundo.com>
80179
80180         * m4/iconvme.m4: New file.
80181
80182 2005-02-23  Jim Meyering  <jim@meyering.net>
80183
80184         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
80185         change.
80186         Thanks to Bruno Haible for catching it.
80187
80188 2005-02-22  Simon Josefsson  <jas@extundo.com>
80189
80190         * modules/iconvme: New file.
80191
80192         * MODULES.html.sh: Add iconvme.
80193
80194 2005-02-22  Simon Josefsson  <jas@extundo.com>
80195
80196         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
80197
80198 2005-02-22  Simon Josefsson  <jas@extundo.com>
80199
80200         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
80201
80202 2005-02-22  Jim Meyering  <jim@meyering.net>
80203
80204         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
80205         s/ifndef/ifdef/.
80206
80207 2005-02-20  Neil Conway  <neilc@samurai.com>
80208
80209         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
80210         returned by OSX/Darwin if the specified buffer is not large
80211         enough for the hostname.
80212
80213 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80214
80215         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
80216         pass it to _help, otherwise the latter coredumps trying to
80217         dereference state.root_argp.
80218
80219 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80220
80221         * modules/chdir-long (Depends-on): Add memrchr.
80222         * modules/memrchr (Files): Add lib/memrchr.h.
80223         (Include): "memrchr.h".
80224
80225 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80226
80227         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
80228
80229 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
80230
80231         * lib/memrchr.h: New file.
80232         * lib/chdir-long.c: Include it.
80233         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
80234         Don't bother including stddef.h.
80235
80236 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
80237
80238         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
80239         inclusion.
80240         Include <sys/types.h>, for dev_t.
80241         (ME_DUMMY, ME_REMOTE): Move from here....
80242         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
80243         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
80244         Dmitry V. Levin.
80245         Include mountlist.h first, to test the interface.
80246
80247 2005-01-29  Bruno Haible  <bruno@clisp.org>
80248
80249         * lib/progname.c (program_name): Initialize.
80250         Needed when linking statically on MacOS X.
80251
80252 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
80253
80254         Sync from coreutils.
80255         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
80256         (Depends-on): Add c-strtod.
80257         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
80258
80259 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
80260
80261         Sync from coreutils.
80262         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
80263
80264         Remove files that are specific to coreutils.
80265         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
80266
80267 2005-01-28  Bruno Haible  <bruno@clisp.org>
80268
80269         * modules/javacomp: New file.
80270         * MODULES.html.sh (Java): Add javacomp.
80271
80272 2005-01-28  Bruno Haible  <bruno@clisp.org>
80273
80274         * m4/javacomp.m4: New file, from GNU gettext.
80275
80276 2005-01-28  Bruno Haible  <bruno@clisp.org>
80277
80278         * lib/javacomp.sh.in: New file, from GNU gettext.
80279         * lib/javacomp.h: New file, from GNU gettext.
80280         * lib/javacomp.c: New file, from GNU gettext.
80281
80282 2005-01-26  Simon Josefsson  <jas@extundo.com>
80283
80284         * lib/gai_strerror.c: Use GPL in header.
80285
80286 2005-01-26  Bruno Haible  <bruno@clisp.org>
80287
80288         * modules/javaexec: New file.
80289         * MODULES.html.sh (Java): Add javaexec.
80290
80291 2005-01-26  Bruno Haible  <bruno@clisp.org>
80292
80293         * m4/javaexec.m4: New file, from GNU gettext.
80294
80295 2005-01-26  Bruno Haible  <bruno@clisp.org>
80296
80297         * lib/javaexec.sh.in: New file, from GNU gettext.
80298         * lib/javaexec.h: New file, from GNU gettext.
80299         * lib/javaexec.c: New file, from GNU gettext.
80300
80301 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80302
80303         * modules/lchown (Depends-on): Remove lchown.h
80304
80305 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80306
80307         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
80308         must be defined if the header file was not found, in order
80309         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
80310
80311 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80312
80313         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
80314         initializers for struct pentry_state.
80315         (__argp_error): Check return value of __asprintf
80316         (__argp_failure): Translate error message
80317
80318         * lib/argp-parse.c: Removed braces around the expansion of N_()
80319
80320 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80321
80322         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
80323         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
80324         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
80325         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
80326         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
80327         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
80328         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
80329         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
80330         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
80331         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
80332         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
80333         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
80334         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
80335         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
80336         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
80337         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
80338         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
80339         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
80340         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
80341         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
80342         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
80343         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
80344         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
80345         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
80346         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
80347         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
80348         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
80349         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
80350         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
80351         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
80352         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
80353         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
80354         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
80355         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
80356         xstrtol.m4, xstrtoumax.m4, yesno.m4:
80357         Use an all-permissive copyright notice, recommended by RMS.
80358
80359 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
80360
80361         * modules/chdir-long (Depends-on): Remove mempcpy.
80362
80363 2005-01-21  Jim Meyering  <jim@meyering.net>
80364
80365         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
80366         same value as for Solaris 9.
80367
80368         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
80369         component length.  This included changing the parameter to be
80370         of type `char *' rather than `char const *'.
80371         * lib/chdir-long.h (chdir_long): Update prototype.
80372
80373         * lib/openat.c (fdopendir, fstatat): New functions.
80374         * lib/openat.h: Include headers required for use of DIR and struct
80375         stat.
80376         [AT_SYMLINK_NOFOLLOW]: Define.
80377         (fdopendir, fstatat): Add prototypes.
80378
80379 2005-01-21  Bruno Haible  <bruno@clisp.org>
80380
80381         * modules/classpath: New file.
80382         * MODULES.html.sh (Java): Add classpath.
80383
80384 2005-01-21  Bruno Haible  <bruno@clisp.org>
80385
80386         * lib/classpath.h: New file, from GNU gettext.
80387         * lib/classpath.c: New file, from GNU gettext.
80388
80389 2005-01-20  Simon Josefsson  <jas@extundo.com>
80390
80391         * modules/version-etc-fsf: New file.
80392
80393 2005-01-20  Simon Josefsson  <jas@extundo.com>
80394
80395         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
80396         * lib/version-etc.c: Remove version_etc_copyright.
80397         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
80398         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
80399
80400 2005-01-20  Simon Josefsson  <jas@extundo.com>
80401
80402         * lib/base64.h (isbase64): Add.
80403
80404         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
80405         using a unsigned prototype, don't inline.
80406         (base64_decode): Use it.
80407
80408 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80409
80410         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
80411         it.
80412
80413 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80414
80415         * lib/save-cwd.c (save_cwd): Remove code to support the case
80416         where fchdir is missing or flaky.
80417
80418 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80419
80420         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
80421
80422 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
80423
80424         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
80425         AC_LIBSOURCES now does this.
80426         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
80427         with new ullong_max module.
80428
80429 2005-01-19  Bruno Haible  <bruno@clisp.org>
80430
80431         * modules/sh-quote: New file.
80432         * MODULES.html.sh (Executing programs): Add sh-quote.
80433
80434 2005-01-19  Bruno Haible  <bruno@clisp.org>
80435
80436         * lib/sh-quote.h: New file, from GNU gettext.
80437         * lib/sh-quote.c: New file, from GNU gettext.
80438
80439 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80440
80441         Merge from coreutils.
80442         * m4/ullong_max.m4: New file.
80443         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
80444         (gl_MACROS): Assume localeconv exists.
80445
80446 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80447
80448         Merge changes from coreutils, as described below in several
80449         changelogs dated today.
80450
80451         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
80452         (O_DIRECTORY): Remove; not needed here, since "." must be
80453         a directory.  All uses removed.
80454         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
80455         universal on Suns, and we also need to test for IRIX.
80456         Revamp code to use 'if' rather than '#if'.
80457         Avoid unnecessary comparison of cwd->desc to 0.
80458
80459         * lib/utimens.c (futimens): Robustify the previous patch, by checking
80460         for known valid error numbers rather than observed invalid ones.
80461
80462 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
80463
80464         * modules/ullong_max: New file.
80465
80466         * modules/chdir-long, modules/openat: New files.
80467         * modules/save-cwd (Depends-on): Depend on chdir-long.
80468         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
80469
80470 2005-01-18  Jim Meyering  <jim@meyering.net>
80471
80472         Merge from coreutils.
80473         * m4/chdir-long.m4, m4/openat.m4: New files.
80474         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
80475         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
80476         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
80477         is sane and DOES follow symlinks.  Besides, testing 20 different
80478         systems found no broken chown implementations.
80479         Prompted by a change in rsync's copy of this macro.
80480         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
80481
80482         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
80483
80484         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
80485         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
80486         NULL-means-set-to-current-time semantics.
80487         Remove temporary file immediately, rather than waiting
80488         for configure's at-exit trap code to do it.
80489
80490 2005-01-18  Jim Meyering  <jim@meyering.net>
80491
80492         * lib/version-etc.c (version_etc_copyright): Update copyright date.
80493
80494         * lib/utimens.c (futimens): Account for the fact that futimes
80495         can also fail with errno == ENOSYS or errno == ENOENT.
80496         Patch from Dmitry V. Levin.
80497
80498         Change the name of the robust chdir function from chdir to chdir_long.
80499         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
80500         (restore_cwd): Use chdir_long, not chdir.
80501         * lib/chdir-long.c: Renamed from chdir.c.
80502         * lib/chdir-long.h: Renamed from chdir.h.
80503         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
80504         Hurd.
80505
80506 2005-01-18  Bruno Haible  <bruno@clisp.org>
80507
80508         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
80509         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
80510         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
80511         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
80512         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
80513         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
80514         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
80515         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
80516         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
80517         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
80518         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
80519         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
80520         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
80521         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
80522         Use an all-permissive copyright notice, recommended by RMS.
80523
80524 2005-01-18  Bob Proulx  <bob@proulx.com>
80525
80526         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
80527         simplify offsetof() macro construct to avoid compile failure with
80528         native HP-UX 11.0 ANSI C compiler.
80529
80530 2005-01-17  Bruno Haible  <bruno@clisp.org>
80531
80532         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
80533         redundant because stpncpy.m4 takes care of it.
80534
80535 2005-01-17  Bruno Haible  <bruno@clisp.org>
80536
80537         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
80538
80539 2005-01-17  Bruno Haible  <bruno@clisp.org>
80540
80541         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
80542         used.
80543
80544 2005-01-17  Bruno Haible  <bruno@clisp.org>
80545
80546         * lib/fwriteerror.h (fwriteerror): Change specification to include
80547         fclose.
80548         * lib/fwriteerror.c: Include <stdbool.h>.
80549         (fwriteerror): At the end, close the file stream. Record whether
80550         stdout was already closed.
80551
80552 2005-01-17  Bruno Haible  <bruno@clisp.org>
80553
80554         * lib/execute.c (environ): Declare if needed.
80555         * lib/pipe.c (environ): Likewise.
80556         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
80557
80558 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80559
80560         * modules/argp: Depend on vsnprintf
80561
80562 2005-01-10  Jim Meyering  <jim@meyering.net>
80563
80564         * modules/closeout (Depends-on): Add atexit.
80565
80566 2005-01-06  Bruno Haible  <bruno@clisp.org>
80567
80568         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
80569
80570 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80571
80572         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
80573         definitions to be after all include files, to avoid collisions.
80574         Problem reported by Bob Proulx.
80575
80576 2005-01-04  Jim Meyering  <jim@meyering.net>
80577
80578         Changes imported from coreutils.
80579         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
80580         as the mkstemp template, use a temporary directory and an
80581         8.3-friendly template to avoid trouble on systems like DJGPP.
80582         Reported by Juan M. Guerrero via Stepan Kasal.
80583         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
80584         close. Remove the temporary directory right away, rather than waiting
80585         for configure's at-exit trap code to do it.
80586         Suggestion from Stepan Kasal.
80587
80588 2005-01-01  Simon Josefsson  <jas@extundo.com>
80589
80590         * gnulib-tool: Print #include directives when --import'ing.
80591
80592 2004-12-28  Simon Josefsson  <jas@extundo.com>
80593
80594         * tests/test-base64.c: Include required header files.  Remove
80595         unused variables.
80596
80597 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
80598
80599         * modules/error (Depends-on): Remove gettext.
80600
80601 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
80602
80603         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
80604         not needed.  This removes a dependency on the gettext module.
80605         [defined _LIBC]: Do not include <libintl.h>; not needed.
80606
80607 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
80608
80609         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
80610         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
80611
80612 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
80613
80614         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
80615         HAVE_DECL_STRTOLD.
80616
80617 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
80618
80619         * modules/getdate (Depends-on): Remove alloca-opt.
80620
80621 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
80622
80623         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
80624
80625 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
80626
80627         * lib/argp-parse.c: Include <stddef.h>.
80628         (alignof, alignto): New macros.
80629         (parser_init): Don't assume that void * is aligned sufficiently
80630         for struct option.
80631
80632         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
80633         need to extend the stack.
80634         (YYINITDEPTH): New macro, so that the initial stack isn't overly
80635         large.
80636
80637 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80638
80639         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
80640
80641 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
80642
80643         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
80644         (2004-10-24) change.  Apparently this was a false alarm.
80645
80646         * modules/getdate: Depend on alloca-opt, not alloca.
80647
80648 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
80649
80650         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
80651         Remove now-obsolete comment about AIX.
80652         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
80653         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
80654         (YYMAXDEPTH): New macro.
80655
80656 2004-12-18  Simon Josefsson  <jas@extundo.com>
80657
80658         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
80659
80660 2004-12-18  Bruno Haible  <bruno@clisp.org>
80661
80662         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
80663
80664 2004-12-18  Bruno Haible  <bruno@clisp.org>
80665
80666         * lib/fatal-signal.c (fatal_signals): Make non-const.
80667         (init_fatal_signals): New function.
80668         (uninstall_handlers, install_handlers): Ignore signals that were set to
80669         SIG_IGN.
80670         (at_fatal_signal): Call init_fatal_signals.
80671         (init_fatal_signal_set): Likewise. Ignore signals that were set to
80672         SIG_IGN.
80673         Reported by Paul Eggert.
80674
80675 2004-12-18  Bruno Haible  <bruno@clisp.org>
80676
80677         * doc/alloca.texi: New file.
80678         * doc/alloca-opt.texi: New file.
80679
80680 2004-12-17  Jim Meyering  <jim@meyering.net>
80681
80682         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
80683         Otherwise, install-sh could exit with improper exit status when
80684         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
80685
80686 2004-12-16  Simon Josefsson  <jas@extundo.com>
80687
80688         * tests/test-base64.c: Add license.
80689
80690 2004-12-15  Stepan Kasal  <address@hidden>
80691
80692         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
80693
80694 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
80695
80696         * modules/getcwd (Files): Add m4/d-ino.m4.
80697         Suggested by Mark D. Baushke.
80698
80699 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
80700
80701         * lib/getdate.y (textint): New member "negative".
80702         (time_zone_hhmm): New function.
80703         Expect 14 shift-reduce conflicts, not 13.
80704         (o_colon_minutes): New rule.
80705         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
80706         (yylex): Set the "negative" member of signed numbers.
80707
80708 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
80709
80710         * doc/getdate.texi (Time of day items, Time zone items):
80711         Describe new formats +00:00, UTC+00:00.
80712
80713 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80714
80715         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
80716         spurious "-l"s.  Problem reported by Stepan Kasal.
80717
80718 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
80719
80720         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
80721         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
80722
80723 2004-12-04  Simon Josefsson  <jas@extundo.com>
80724
80725         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
80726         Vandoorselaere <yoann@prelude-ids.org>.
80727
80728 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80729
80730         Changes imported from coreutils.
80731         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
80732         exist.
80733         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
80734
80735 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80736
80737         Changes imported from coreutils.
80738         * lib/hard-locale.c: Assume <locale.h> exists.
80739         Include "strdup.h".
80740         (GLIBC_VERSION): New macro.
80741         (hard_locale): Assume setlocale exists.
80742         Rewrite to avoid #ifdef.
80743         Use strdup rather than malloc + strcpy.
80744         * lib/human.c: Assume <locale.h> exists.
80745         (human_readable): Assume localeconv exists.
80746
80747 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
80748
80749         * modules/hard-locale (Depends-on): Add strdup.
80750
80751 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
80752
80753         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
80754         convert T2, not T.  (Imported from libc.)
80755
80756 2004-11-30  Simon Josefsson  <jas@extundo.com>
80757
80758         * modules/restrict (License): Change to LGPL.
80759
80760 2004-11-30  Simon Josefsson  <jas@extundo.com>
80761
80762         * m4/restrict.m4: Add copyright and copying conditions.
80763
80764 2004-11-30  Simon Josefsson  <jas@extundo.com>
80765
80766         * m4/base64.m4: New file.
80767
80768 2004-11-30  Simon Josefsson  <jas@extundo.com>
80769
80770         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
80771         base64.
80772
80773         * tests/test-base64.c: New file.
80774
80775         * modules/base64: New file.
80776
80777 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
80778
80779         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
80780         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
80781
80782         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
80783
80784 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
80785
80786         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
80787         (__getcwd.c): Don't restore errno; glibc doesn't.
80788         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
80789         first, falling back to our code only if its results look suspicious.
80790         Ensure that the resulting buffer is only as large as necessary.
80791
80792         * lib/readutmp.c: Include readutmp.h first.
80793         Include <errno.h>, since readutmp.h no longer does that.
80794         * lib/readutmp.h: Don't include <errno.h>,
80795         <sys/param.h>, <time.h>; not needed to establish interface.
80796         (errno): Remove decl.
80797         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
80798         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
80799         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
80800
80801 2004-11-28  Simon Josefsson  <jas@extundo.com>
80802
80803         * lib/base64.h, base64.c: New file.
80804
80805 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
80806
80807         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
80808
80809 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
80810
80811         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
80812         (Depends-on): Remove pathmax, same.  Add mempcpy.
80813         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
80814         (Makefile.am): Append getcwd.h to lib_SOURCES.
80815         (Include): Add getcwd.h.
80816         (Maintainer): Change from Jim Meyering to "all, glibc",
80817         since getdate now uses intended-for-glibc code.
80818         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
80819         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
80820
80821 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80822
80823         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
80824         HP's ANSI C compiler.
80825         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
80826         Declaring int functions causes warnings on some modern systems and
80827         shouldn't be needed to compile on ancient ones.
80828         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
80829         defined.
80830
80831         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
80832         with the following changes.
80833         (__set_errno): Parenthesize properly.
80834         Include <stdbool.h>.
80835         (MIN, MAX, MATCHING_INO): New macros.
80836         (__getcwd): Define with prototype, not K&R form.
80837         Use heuristics to allocate default buffer on stack if possible.
80838         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
80839         behavior, and to avoid the PATH_MAX limit when computing
80840         ../../../../...
80841         Use MATCHING_INO to compare inode number to file.
80842         Check for arithmetic overflow in size calculations.
80843         Fix bug in reallocation of dot array that caused getcwd to fail
80844         on directories nested deeper than 75.
80845         Be more careful about saving errno on error.
80846         Do not use realloc; use only free+malloc, as this is a bit
80847         more flexible and avoids a needless copy operation.
80848         Do not inspect st_dev and st_ino for symbolic links; POSIX
80849         doesn't specify the latter.
80850         Check for closedir errors.
80851         Avoid needless casts.
80852         Use "#ifdef weak_alias" around weak_alias, to be like other
80853         glibc code.
80854         The following changes to getcwd.c have effect only when used in
80855         gnulib; they have no effect inside glibc proper.
80856         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
80857         as alloca isn't used.
80858         (alloca, __alloca): Likewise.
80859         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
80860         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
80861         unconditionally, as gnulib assumes C89 or better.
80862         Do not include <sys/param.h>.
80863         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
80864         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
80865         better.
80866         (NULL) [!defined NULL]: Remove; we assume C89 or better.
80867         Include <dirent.h> in a way that is compatible with modern Autoconf.
80868         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
80869         New macros, if not already defined.
80870         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
80871         Use "_LIBC", not "defined _LIBC", for consistency.
80872         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
80873         a mempcpy module.
80874         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
80875         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
80876         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
80877         credit only to Jim Meyering and adjust the copyright dates.
80878         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
80879         <stdlib.h>, <unistd.h>, "pathmax.h".
80880         Instead, include "xgetcwd.h" (first) and "getcwd.h".
80881         (INITIAL_BUFFER_SIZE): Remove.
80882         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
80883
80884 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80885
80886         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
80887         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
80888         Use the _ONCE methods, for efficiency.
80889         Check for fcntl.h.  In test program, include <errno.h>
80890         and <fcntl.h> if available.  Remove old K&R cruft from
80891         test program.  Check for common errors in GNU/Linux,
80892         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
80893         don't do AC_LIBOBJ, as that's getcwd.m4's job.
80894         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
80895         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
80896         name accordingly.
80897         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
80898         accommodate new getcwd.c.
80899         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
80900         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
80901         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
80902         that's all we need now.
80903
80904 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80905
80906         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
80907         argp-parse.c depends on getopt internals, that means we should
80908         always use our getopt, to be on the safe side.
80909         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
80910         order not to spoil the result of an eventual previous invocation
80911         of gl_GETOPT_SUBSTITUTE.
80912
80913 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
80914
80915         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
80916         redefinition warnings. To avoid them, include the defines
80917         in `#if !defined __need_getopt ... #endif'. The only place
80918         where __getopt_argv_const is used is in definitions
80919         of getopt_long and getopt_long_only below, which are as well
80920         protected by `#ifndef __need_getopt'.
80921         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
80922         __need_getopt after including <stdio.h> and <unistd.h> These
80923         headers might have defined it.
80924
80925 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
80926
80927         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
80928
80929 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
80930
80931         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
80932         (futimens): New function, which uses futimes if available.
80933         (futimens, utimens): Support timespec==NULL, with same semantics
80934         as utime and utimens.
80935         * lib/utimens.h (futimens): New decl.
80936
80937 2004-11-23  Jim Meyering  <jim@meyering.net>
80938
80939         * lib/getopt_.h: Remove trailing blanks.
80940
80941 2004-11-23  Jim Meyering  <jim@meyering.net>
80942
80943         * lib/__fpending.c: Add comment.
80944
80945 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
80946
80947         * modules/canonicalize (Depends-on): Add xreadlink.
80948         Problem reported by James Youngman.
80949
80950 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
80951
80952         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
80953         New macros.
80954         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
80955         optopt): Use them instead of invoking ## directly; otherwise, the
80956         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
80957
80958 2004-11-19  Bruno Haible  <bruno@clisp.org>
80959
80960         * lib/strtok_r.c: Move comments from here...
80961         * lib/strtok_r.h: ... to here.
80962
80963 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
80964
80965         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
80966         implementations that mishandle size_t overflow.
80967
80968 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
80969
80970         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
80971         might fail.  Problem reported by Yoann Vandoorselaere.
80972         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
80973         implementations that mishandle size_t overflow.
80974
80975 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80976
80977         * modules/canon-host (Depends-on): Add strdup.
80978
80979 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80980
80981         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
80982
80983 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
80984
80985         * lib/canon-host.c: Include "strdup.h".
80986         (canon_host): Use getaddrinfo if available, so that IPv6 works.
80987         Use strdup instead of malloc/strcpy to duplicate strings.
80988
80989         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
80990         (human_space_before_unit): New constant.
80991         * lib/human.c (human_readable): Support it.
80992
80993         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
80994         (xgetcwd): Set errno correctly when failing.
80995         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
80996         the failure is actually due to a PATH_MAX problem.
80997
80998         Further getopt changes to make it more likely that glibc will
80999         buy the changes back.
81000         * lib/getopt.c (POSIXLY_CORRECT): New constant.
81001         (getopt): Use it, so to preserve glibc semantic
81002         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
81003         when compiling for libc.
81004         * lib/getopt_.h (__getopt_argv_const): Bring it back.
81005         (getopt_long, getopt_long_only): Use it.
81006
81007         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
81008         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
81009         (getopt): Argv is now char * const *, as per standard.
81010         (_getopt_internal_r, _getopt_internal): Argv is now char **,
81011         not char *__getopt_argv_const *.
81012         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
81013         _getopt_long_only_r): Likewise.
81014         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
81015         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
81016         _getopt_long_r, _getopt_long_only_r): Likewise.
81017         * lib/getopt_.h (__getopt_argv_const): Remove.
81018         (getopt): Argv is now char * const *, as per standard.
81019
81020         * lib/getdate.y (tORDINAL): New token.
81021         (day, relunit): Allow it for relative times.
81022         (relative_time_table): Use tORDINAL for ordinals.
81023
81024 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
81025
81026         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
81027         Document that "second" isn't allowed as an ordinal number.
81028
81029 2004-11-16  Jim Meyering  <jim@meyering.net>
81030
81031         * modules/closeout (Depends-on): Add fpending.
81032
81033 2004-11-15  Jim Meyering  <jim@meyering.net>
81034
81035         * lib/closeout.c: Include "__fpending.h" once again.
81036         Include <stdbool.h>.
81037         (close_stdout): Don't fail just because stdout was closed initially,
81038         since some programs don't write to stdout in the normal course of
81039         operation (other than --version and --help), and we don't want this
81040         function to make e.g. `touch file >&-' fail.
81041         But do fail if it was closed and someone has tried to write to it.
81042         E.g., `printf foo >&-' must fail.
81043
81044 2004-11-13  Jim Meyering  <jim@meyering.net>
81045
81046         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
81047
81048 2004-11-12  Simon Josefsson  <jas@extundo.com>
81049
81050         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
81051         small doc fix is still pending.
81052
81053 2004-11-11  Simon Josefsson  <jas@extundo.com>
81054
81055         * modules/strtok_r: New file.
81056
81057         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81058         strtok_r.
81059
81060 2004-11-11  Simon Josefsson  <jas@extundo.com>
81061
81062         * m4/strtok_r.m4: New file.
81063
81064         * m4/getopt.m4: Replace opterr.
81065
81066 2004-11-11  Simon Josefsson  <jas@extundo.com>
81067
81068         * lib/strtok_r.h, strtok_r.c: New file.
81069
81070 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
81071
81072         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
81073         of replacing opterr, getopt, etc.  This should handle the
81074         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
81075
81076 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
81077
81078         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
81079         we can stop lying to compilers about the constness of argv when we
81080         are compiled outside glibc.
81081         (getopt, getopt_long, getopt_long_only): Use it.
81082         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
81083         _getopt_internal, getopt): Likewise.
81084         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
81085         _getopt_long_only_r): Likewise.
81086         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
81087         _getopt_long_r, _getopt_long_only_r): Likewise.
81088
81089         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
81090         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
81091         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
81092         the other external symbols.
81093         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
81094         declaration, since the above renaming now works around collisions.
81095
81096 2004-11-11  Jim Meyering  <jim@meyering.net>
81097
81098         * lib/linebreak.c: Remove trailing blanks.
81099         * lib/alloca_.h: Likewise.
81100         * lib/acosl.c: Likewise.
81101         * lib/euidaccess.c: Likewise.
81102         * lib/allocsa.h: Likewise.
81103
81104 2004-11-10  Simon Josefsson  <jas@extundo.com>
81105
81106         * m4/getaddrinfo.m4: New file.
81107
81108 2004-11-10  Simon Josefsson  <jas@extundo.com>
81109
81110         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
81111
81112 2004-11-10  Simon Josefsson  <jas@extundo.com>
81113
81114         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81115         getaddrinfo.
81116
81117         * modules/getaddrinfo: New file.
81118
81119 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81120
81121         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
81122
81123 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
81124
81125         * lib/mktime.c (SHR): New macro, which is a portable
81126         substitute for >> that should work even on Crays.
81127         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
81128         Problem reported by Mark D. Baushke in
81129         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
81130         * lib/getdate.y (SHR): Likewise.
81131         (tm_diff): Use it.
81132         * lib/strftime.c (SHR): Likewise.
81133         (tm_diff): Use it.
81134         * lib/quotearg.c (struct quoting_options): Use unsigned int for
81135         quote_these_too, so that right shifts are well defined.  All uses
81136         changed.
81137
81138 2004-11-10  Jim Meyering  <jim@meyering.net>
81139
81140         Ensure that no close failure goes unreported.
81141         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
81142         return early when it seems there's nothing to flush.
81143         Don't include __fpending.h.
81144
81145 2004-11-10  Jim Meyering  <jim@meyering.net>
81146
81147         * modules/closeout (Depends-on): Remove fpending.
81148
81149 2004-11-10  Jim Meyering  <jim@meyering.net>
81150
81151         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
81152
81153 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
81154
81155         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
81156         gl_FUNC_STRFTIME.
81157         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
81158         and AC_REQUIRE when possible, to avoid duplicate checks.
81159         Check for <wchar.h>.
81160
81161 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
81162
81163         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
81164
81165 2004-11-09  Bruno Haible  <bruno@clisp.org>
81166
81167         * m4/sockpfaf.m4: New file.
81168
81169 2004-11-05  Bruno Haible  <bruno@clisp.org>
81170
81171         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
81172         Reported by Mark D. Baushke <mdb@cvshome.org>.
81173
81174 2004-11-04  Bruno Haible  <bruno@clisp.org>
81175
81176         2004-09-11  Bruno Haible  <bruno@clisp.org>
81177                 * allocsa.valgrind: New file.
81178         2004-02-06  Bruno Haible  <bruno@clisp.org>
81179                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
81180                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
81181                 Reported by Christopher Seip <chris.seip@hp.com>.
81182
81183 2004-11-04  Bruno Haible  <bruno@clisp.org>
81184
81185         * modules/allocsa (Files): Add lib/allocsa.valgrind.
81186         (Makefile.am): Distribute it.
81187
81188 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
81189
81190         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
81191         with errno == ERANGE if the buffer is too small.
81192         Problem reported by Mark D. Baushke.
81193
81194 2004-11-03  Albert Chin  <china@thewrittenword.com>
81195             Paul Eggert  <eggert@cs.ucla.edu>
81196
81197         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
81198         equivalent, substitute $ac_type for equivalent type rather than
81199         blindly using uint32_t *always* which won't work if uint32_t is not
81200         available.  Define _UINT32_T to work around typedef of uint32_t if
81201         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
81202         2.5.1.
81203
81204 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81205
81206         * m4/jm-macros.m4: Sync from coreutils.
81207         (gl_MACROS): Check for mbrlen, for pathchk.
81208         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
81209
81210 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81211
81212         * lib/xreadlink.c (MAXSIZE): New macro.
81213         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
81214         size does not exceed MAXSIZE.  Avoid cast.
81215         As suggested by Mark D. Baushke in
81216         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
81217         if readlink fails with buffer size just under MAXSIZE, try again
81218         with MAXSIZE.
81219
81220 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
81221
81222         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
81223
81224 2004-11-02  Derek R. Price  <derek@ximbiot.com>
81225         and  Paul Eggert  <eggert@cs.ucla.edu>
81226
81227         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
81228         (get_date): Overparenthesize to avoid GCC warning.
81229
81230 2004-11-02  Bruno Haible  <bruno@clisp.org>
81231
81232         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
81233         returns void.
81234
81235 2004-11-02  Bruno Haible  <bruno@clisp.org>
81236
81237         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
81238         function returns void.
81239
81240 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
81241
81242         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
81243         fflush_unlocked, flockfile, funlockfile, funlockfile,
81244         fputs_unlocked, putc_unlocked.
81245
81246 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
81247
81248         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
81249         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
81250         already declared.
81251
81252 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81253
81254         * modules/getdate (Files): Add doc/getdate.texi.
81255         (Depends-on): Add setenv, xalloc.
81256
81257 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81258
81259         * lib/getdate.y: Add support for TZ="foo" within a date string.
81260         Fix some bugs near time_t boundaries.  Reject dates with
81261         out-of-range components, e.g., "Sept 31".
81262         Include <stdlib.h>, "setenv.h", "xalloc.h".
81263         (ISDIGIT_LOCALE): Remove; unused.
81264         Note that the TZ and time functions used here are not reentrant.
81265         (mktime_ok, get_tz): New functions.
81266         (TZBUFSIZE): New constant.
81267         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
81268         This requires that we sometimes generate our own TZ="XXX..." setting.
81269
81270 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
81271
81272         * doc/getdate.texi: New file, from coreutils with modifications for
81273         the new TZ parsing.
81274
81275 2004-10-27  Derek R. Price  <derek@ximbiot.com>
81276
81277         * lib/mktime.c (not_equal_tm): Remove redundant check.
81278
81279 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
81280
81281         * modules/regex (lib_SOURCES): Add regex.c.
81282         Reported by James Youngman in
81283         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
81284
81285 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
81286
81287         * lib/getdate.y: Use Bison 1.875 features, and some minor
81288         code cleanups.  This change does not affect semantics.
81289         Don't include <stdlib.h>; no longer needed.
81290         Don't include unlocked-io.h; only the "#if TEST" code uses
81291         stdio, and performance isn't crucial there.
81292         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
81293         Bison 1.875 features as described below.
81294         All uses of "PC." replaced by "pc->".
81295         (YYSTYPE): Add a forward declaration.
81296         (yylex, yyerror): Use full prototypes in forward decls.
81297         Use "%pure-parser" rather than obsolescent "%pure_parser".
81298         Use %parse-param and %lex-param instead of obsolescent
81299         YYPARSE_PARAM and YYLEX_PARAM.
81300         (meridian_table, month_and_day_table, time_units_table,
81301         relative_time_table, time_zone_table, military_table,
81302         lookup_zone, lookup_word, get_date):
81303         Use NULL instead of 0 where appropriate.
81304         (to_hour): Avoid abort (), to avoid a dependency on
81305         stdlib.h.
81306         (yyerror, yylex): Now accepts parser_control * arg.
81307         (main) [TEST]: Use '\0' rather than 0 for char.
81308
81309 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81310
81311         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
81312
81313 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
81314
81315         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
81316         It's now the caller's responsibility to handle the case where
81317         !HAVE_GETPAGESIZE && !defined getpagesize.
81318
81319         * lib/mktime.c (leapyear): Arg is long int, not int.
81320
81321 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
81322
81323         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
81324
81325 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
81326
81327         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
81328         missing.  Problem reported by James Youngman.
81329
81330 2004-10-16  Simon Josefsson  <jas@extundo.com>
81331
81332         * gnulib-tool: Fix comments.  Fix parse problem.
81333         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
81334
81335 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
81336
81337         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
81338         implementation of getopt_long.  Problem reported by Alexander Taler in:
81339         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
81340
81341 2004-10-15  Bruno Haible  <bruno@clisp.org>
81342
81343         * gnulib-tool: Untabify. Initialize supplied_libname.
81344         (func_usage): More homogenous output.
81345         (func_modules_transitive_closure, func_modules_to_filelist,
81346         func_emit_lib_Makefile_am): New functions.
81347         (func_import): New function, extracted from big case statement. Use
81348         func_get_license, func_modules_transitive_closure,
81349         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
81350         opt_lgpl. Don't use test -a, as it's not portable.
81351         (func_create_testdir): Use func_modules_transitive_closure,
81352         func_modules_to_filelist, func_emit_lib_Makefile_am.
81353
81354 2004-10-15  Bruno Haible  <bruno@clisp.org>
81355
81356         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
81357
81358 2004-10-15  Bruno Haible  <bruno@clisp.org>
81359
81360         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
81361         the portions belonging to each module.
81362         Suggested by Derek Robert Price <derek@ximbiot.com>.
81363
81364 2004-10-12  Simon Josefsson  <jas@extundo.com>
81365
81366         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
81367         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
81368         to real functions.
81369
81370 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81371
81372         * modules/vsnprintf: New file.
81373
81374 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81375
81376         * m4/vsnprintf.m4: New file.
81377
81378 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81379
81380         * lib/vsnprintf.h: New file.
81381         * lib/vsnprintf.c: New file.
81382
81383 2004-10-11  Bruno Haible  <bruno@clisp.org>
81384
81385         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
81386         vsnprintf.
81387
81388 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
81389
81390         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
81391
81392 2004-10-07  Bruno Haible  <bruno@clisp.org>
81393
81394         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
81395         fits into the provided buffer.
81396
81397 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
81398
81399         * lib/diacrit.c, diacrit.h: Add GPL notice.
81400
81401         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
81402         notice.
81403         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
81404         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
81405         This avoids a potential constant-folding bug.
81406
81407 2004-10-05  Bruno Haible  <bruno@clisp.org>
81408
81409         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
81410         for the declaration of strsep.
81411
81412 2004-10-05  Bruno Haible  <bruno@clisp.org>
81413
81414         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
81415
81416 2004-10-04  Simon Josefsson  <jas@extundo.com>
81417
81418         * modules/memmem: New file.
81419         * tests/test-memmem.c: New file.
81420         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
81421
81422 2004-10-04  Simon Josefsson  <jas@extundo.com>
81423
81424         * m4/memmem.m4: New file.
81425
81426 2004-10-04  Simon Josefsson  <jas@extundo.com>
81427
81428         * lib/memmem.h: New file.
81429         * lib/memmem.c: New file, taken from glibc.
81430
81431 2004-10-04  Simon Josefsson  <jas@extundo.com>
81432
81433         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
81434         '#ifdef USE_UNLOCKED_IO'.
81435
81436 2004-10-04  Simon Josefsson  <jas@extundo.com>
81437
81438         * config/srclist.txt: Add memmem from glibc.
81439
81440 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81441
81442         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
81443
81444         * modules/argmatch, modules/argp, modules/closeout, modules/error,
81445         modules/exclude, modules/getdate, modules/getline,
81446         modules/getndelim2, modules/getpass, modules/getpass-gnu,
81447         modules/getusershell, modules/linebuffer, modules/md5,
81448         modules/mountlist, modules/posixtm, modules/readtokens,
81449         modules/readutmp, modules/regex, modules/sha1,
81450         modules/version-etc, modules/yesno:
81451         Remove dependency on unlocked-io.
81452
81453 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81454
81455         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
81456
81457         * m4/unlocked-io.m4: Add copyright notice.
81458         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
81459
81460 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81461
81462         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
81463         * lib/xmalloc.c (xmemdup): Likewise.
81464         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
81465         XFREE): Remove these long-obsolescent macros.
81466         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
81467         * lib/xstrdup.c: Remove.
81468
81469         * lib/regex.c (re_comp): Cast gettext return value to char *,
81470         Problem reported by Martin Neitzel via Mark D. Baushke.
81471
81472 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
81473
81474         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
81475         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
81476         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
81477         regex.c, sha1.c, version-etc.c, yesno.c:
81478         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
81479         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
81480         the includer's responsibility.
81481
81482         Sync from coreutils.
81483
81484         * lib/modechange.c (mode_compile): Don't decrement a pointer that
81485         points to the start of a string, as the C Standard says the
81486         resulting behavior is undefined.
81487
81488         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
81489         simple -> simple_backups, numbered_existing ->
81490         numbered_existing_backups, numbered -> numbered_backups
81491         to avoid shadowing problems.  All uses changed.
81492         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
81493         * lib/backupfile.c (check_extension, numbered_backup):
81494         Rename locals to avoid shadowing 'basename'.
81495         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
81496         once.
81497
81498         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
81499         * lib/.cvsignore: Add getopt.h.
81500
81501 2004-10-04  Bruno Haible  <bruno@clisp.org>
81502
81503         * modules/README: New file.
81504         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
81505         not a module.
81506
81507 2004-10-02  Jim Meyering  <jim@meyering.net>
81508
81509         * lib/dirfd.h, getpagesize.h: Add copyright notice.
81510
81511 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81512
81513         * modules/strsep: New file.
81514
81515 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81516
81517         * m4/strsep.m4: New file.
81518
81519 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
81520
81521         * lib/strsep.h: New file.
81522         * lib/strsep.c: New file.
81523
81524 2004-10-01  Simon Josefsson  <jas@extundo.com>
81525
81526         * lib/snprintf.c (snprintf): Handle size==0.
81527
81528 2004-10-01  Simon Josefsson  <jas@extundo.com>
81529             Bruno Haible  <bruno@clisp.org>
81530
81531         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
81532         (snprintf): Declare 'args'.
81533
81534 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
81535
81536         * lib/snprintf.c: Remove comments as to why each header is needed.
81537
81538 2004-10-01  Bruno Haible  <bruno@clisp.org>
81539
81540         * MODULES.html.sh: Add strsep.
81541
81542 2004-09-30  Simon Josefsson  <jas@extundo.com>
81543
81544         * modules/snprintf: New file.
81545
81546 2004-09-30  Simon Josefsson  <jas@extundo.com>
81547
81548         * m4/snprintf.m4: New file.
81549
81550 2004-09-30  Simon Josefsson  <jas@extundo.com>
81551
81552         * lib/snprintf.h, lib/snprintf.c: New files.
81553
81554 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
81555
81556         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
81557         (hol_entry_help): Never translate an empty string.
81558         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
81559         * lib/argp.h (OPTION_NO_TRANS): New option.
81560
81561 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81562
81563         * modules/argp (Maintainer): Replace Simon Josefsson
81564         by Sergey Poznyakoff.
81565
81566 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81567
81568         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
81569         changes merged back into glibc.
81570
81571 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
81572
81573         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
81574
81575 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
81576
81577         * lib/xvasprintf.c: Include xalloc.h.
81578         (xvasprintf): Use xalloc_die, not xmalloc_die.
81579
81580 2004-09-29  Bruno Haible  <bruno@clisp.org>
81581
81582         * modules/alloca-opt: New file, derived from modules/alloca.
81583         * modules/allocsa: Depend on alloca-opt instead of alloca.
81584         * modules/setenv: Likewise.
81585         * modules/vasnprintf: Likewise.
81586         * MODULES.html.sh: Add alloca-opt.
81587
81588 2004-09-28  Simon Josefsson  <jas@extundo.com>
81589
81590         * gnulib-tool: New parameter --lgpl, to asseert that modules are
81591         LGPL, and to replace license template from GPL to LGPL.
81592
81593 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
81594
81595         * modules/dummy: Change license to LGPL.
81596
81597 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
81598
81599         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
81600
81601 2004-09-24  Simon Josefsson  <jas@extundo.com>
81602
81603         * modules/minmax (License): Change from GPL to LGPL.
81604
81605 2004-09-23  Simon Josefsson  <jas@extundo.com>
81606
81607         * gnulib-tool (--import): Typo.
81608
81609 2004-09-23  Simon Josefsson  <jas@extundo.com>
81610
81611         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
81612
81613 2004-09-22  Bruno Haible  <bruno@clisp.org>
81614
81615         * modules/*: Add 'License' field.
81616         * gnulib-tool: Accept --extract-license option.
81617         (func_get_license): New function.
81618
81619 2004-09-21  Bruno Haible  <bruno@clisp.org>
81620
81621         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
81622         Reported by Simon Josefsson.
81623
81624 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
81625
81626         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
81627         gl_AC_TYPE_LONG_LONG.
81628
81629 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
81630
81631         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
81632
81633 2004-09-18  Simon Josefsson  <jas@extundo.com>
81634         and  Paul Eggert  <eggert@cs.ucla.edu>
81635
81636         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
81637         calls with autoreconf.  Define GL_LIB.
81638
81639 2004-09-14  Karl Berry  <karl@gnu.org>
81640
81641         * config/srclist.txt: unsync setenv.c, sigh.
81642
81643 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
81644
81645         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
81646         Problem reported by Bruno Haible in:
81647         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
81648
81649 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
81650
81651         * config/srclist.txt: Comment out argp-pvh.c.
81652
81653 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
81654
81655         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
81656         in case some system header has #define'd it.  Problem reported by
81657         Soeren D. Schulze in
81658         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
81659
81660 2004-09-09  Karl Berry  <karl@gnu.org>
81661
81662         * regex.[ch]: delete from the root.  These were supposed to be
81663                 synced with emacs cvs, but this has not happened for about
81664                 a year, and anyway nothing else uses emacs regex.[ch].
81665                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
81666                 lib/regex[.ch] is untouched.
81667
81668 2004-09-09  Bruno Haible  <bruno@clisp.org>
81669
81670         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
81671
81672 2004-09-09  Bruno Haible  <bruno@clisp.org>
81673
81674         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
81675         modifications.
81676         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
81677
81678 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
81679
81680         * modules/xvasprintf: New file.
81681         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
81682
81683 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
81684
81685         * lib/xvasprintf.h: New file.
81686         * lib/xvasprintf.c: New file.
81687         * lib/xasprintf.c: New file.
81688
81689 2004-09-08  Bruno Haible  <bruno@clisp.org>
81690
81691         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
81692
81693 2004-09-08  Bruno Haible  <bruno@clisp.org>
81694
81695         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
81696         length is > INT_MAX.
81697         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
81698         more.
81699
81700 2004-09-08  Bruno Haible  <bruno@clisp.org>
81701
81702         * lib/stdint_.h: New file, taken from GNU clisp.
81703
81704 2004-09-08  Bruno Haible  <bruno@clisp.org>
81705             Oskar Liljeblad  <oskar@osk.mine.nu>
81706
81707         * modules/stdint: New file.
81708         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
81709
81710 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81711
81712         Import from coreutils.
81713         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
81714         strings on unbounded length.  alloca's performance benefits aren't
81715         that important here.
81716         (V_STRDUP): Remove.
81717         (parse_with_separator): New function, with most of the internals
81718         of the old parse_user_spec.  Allow user to omit both user and group,
81719         for compatibility with FreeBSD.
81720         Clone only the user name, not the entire spec.
81721         Do not set *uid, *gid unless entirely successful.
81722         Avoid memory leak in some failing cases.
81723         Fix regression for USER.GROUP reported by Dmitry V. Levin in
81724         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
81725         (parse_user_spec): Rewrite to use parse_with_separator.
81726
81727 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81728
81729         * modules/userspec: Don't depend on alloca.
81730
81731 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
81732
81733         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
81734
81735 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
81736
81737         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
81738         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
81739         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
81740
81741 2004-08-16  Simon Josefsson  <jas@extundo.com>
81742
81743         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
81744         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
81745         Add --dry-run for --import.
81746         Let user provided command line parameters override configure.ac
81747         settings.
81748
81749 2004-08-12  Simon Josefsson  <jas@extundo.com>
81750
81751         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
81752         as discussed with Paul Eggert in threads rooted at
81753         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
81754         and
81755         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
81756         Before, the test was empty, and relied on ELIDE_CODE in source
81757         code.)
81758         (gl_PREREQ_GETOPT): New macro.
81759         (gl_GETOPT): Use them.
81760
81761 2004-08-12  Simon Josefsson  <jas@extundo.com>
81762
81763         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
81764         * lib/getopt_.h: Renamed from getopt.h.
81765
81766 2004-08-12  Simon Josefsson  <jas@extundo.com>
81767
81768         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
81769         Change default library name from libfoo to libgnu.
81770         Now, if you have a configure.ac that says:
81771                 gl_SOURCE_BASE(gl)
81772                 gl_M4_BASE(gl/m4)
81773                 gl_MODULES(error getopt etcetera)
81774                 gl_INIT
81775         you can import all you need by running:
81776                 ../gnulib/gnulib-tool --import
81777
81778         * modules/getopt (Files): Rename getopt.h to getopt_.h.
81779         (Makefile.am): Rewrite, use logic from argz.
81780         (Include): Use <getopt.h> instead of "getopt.h".
81781
81782 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81783
81784         * modules/argp (Files): Add m4/unlocked-io.m4.
81785         (Depends-on): Add extensions.
81786
81787 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81788
81789         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
81790         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
81791         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
81792         Check for program_invocation_name, program_invocation_short_name,
81793         flockfile, funlockfile, features.h, _getopt_long_only_r.
81794
81795 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81796
81797         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
81798         its complicated substitute.
81799         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
81800         and program_invocation_name.
81801         (__argp_basename) [!_LIBC]: Remove; the only use was
81802         replaced by its body.
81803         (__argp_short_program_name): Change condition from
81804         !defined __argp_short_program_name to
81805         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
81806         to match argp-namefrob.h.
81807         (__argp_failure): Don't assume strerror_r returns char *.
81808         * lib/argp-parse.c (N_): Define unconditionally.
81809         (argp_default_options): Fill out initializers with 0 to avoid
81810         gcc warnings.
81811
81812 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
81813
81814         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
81815         getopt1.c.
81816
81817 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81818
81819         Merge from coreutils.
81820
81821         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
81822
81823         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
81824         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
81825
81826 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81827
81828         Merge from coreutils.
81829
81830         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
81831         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
81832         for Reliant Unix 5.43.
81833
81834         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
81835         (union fooround): Use uintmax_t, not long int.
81836         The rest is a merge from libc:
81837         [defined _LIBC]: Include <shlib-compat.h>.
81838         (_obstack) [defined _LIBC]: Remove after 2.3.4.
81839
81840         * lib/settime.c (settime): Recode to avoid warning with
81841         Sun Forte C 6U2.
81842
81843         * lib/strverscmp.c: Convert to UTF-8.
81844
81845 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
81846
81847         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
81848         m4/uintmax_t.m4.
81849
81850 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81851
81852         * modules/xalloc-die: New file.
81853         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
81854
81855         * modules/md5 (Files): Add m4/uint32_t.m4.
81856         * modules/sha1: Renamed from modules/sha.
81857         (Files):
81858         Rename lib/sha.h to lib/sha1.h.
81859         Rename lib/sha.c to lib/sha1.c.
81860         Rename m4/sha.m4 to m4/sha1.m4.
81861         (lib_SOURCES): Likewise.
81862         (configure.ac): Rename gl_SHA to gl_SHA1.
81863         (Include): sha.h -> sha1.h.
81864
81865 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81866
81867         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
81868         * m4/sha1.m4: Renamed from sha.m4.
81869         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
81870
81871 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
81872
81873         * lib/obstack.h (obstack_empty_p):
81874         Don't assume that chunk->contents is suitably aligned.
81875         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
81876         Likewise. Problem reported by Benno in
81877         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
81878
81879         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
81880         readable.  This could be improved further but it'd take some work.
81881
81882 2004-08-08  Simon Josefsson  <jas@extundo.com>
81883
81884         * modules/xgethostname (Depends-on): Remove exit and error (not
81885         used).
81886
81887         * modules/getpass-gnu: Add getpass.h.
81888         (Depends-on): Add stdbool.
81889         * modules/getpass: Add getpass.h.
81890
81891 2004-08-08  Simon Josefsson  <jas@extundo.com>
81892
81893         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
81894         Check getpass declaration.
81895
81896 2004-08-08  Simon Josefsson  <jas@extundo.com>
81897
81898         * lib/xgethostname.c: Don't include error.h (not used).
81899
81900         * lib/getpass.h: Add.
81901         * lib/getpass.c: Include getpass.h first.
81902
81903 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
81904
81905         * lib/xalloc-die.c: New file.
81906         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
81907         All uses removed.
81908         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
81909         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
81910         xalloc-die.c.
81911         (_, N_, xalloc_die): Move to xalloc-die.c.
81912         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
81913         so that we needn't mess with xalloc_msg_memory_exhausted.
81914
81915         * lib/sha1.h: Renamed from sha.h.
81916         (SHA1_H): Renamed from _SHA_H.
81917         (sha1_ctx): Renamed from sha_ctx.
81918         (sha1_init_ctx): Renamed from sha_init_ctx.
81919         (sha1_process_block): Renamed from sha_process_block.
81920         (sha1_process_bytes): Renamed from sha_process_bytes.
81921         (sha1_finish_ctx): Renamed from sha_finish_ctx.
81922         (sha1_read_ctx): Renamed from sha_read_ctx.
81923         (sha1_stream): Renamed from sha_stream.
81924         (sha1_buffer): Renamed from sha_buffer.
81925         * lib/sha1.c: Likewise; renamed from sha.c.
81926         Do not include <sys/types.h>.
81927         Include <stddef.h> rather than <stdlib.h>.
81928
81929 2004-08-08  Bruno Haible  <bruno@clisp.org>
81930
81931         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
81932         FILESYSTEM_PREFIX_LEN.
81933         * lib/progreloc.c: Likewise.
81934         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
81935
81936 2004-08-06  Simon Josefsson  <jas@extundo.com>
81937
81938         * modules/progname (Depends-on): Don't depend on stdbool.
81939
81940 2004-08-06  Simon Josefsson  <jas@extundo.com>
81941
81942         * modules/getsubopt: New file.
81943         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
81944         getsubopt.
81945
81946 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81947
81948         More merge from coreutils.
81949
81950         * m4/utimens.m4, m4/utimecmp.m4: New files.
81951         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
81952         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
81953         prereq.m4, sha.m4: Import changes from coreutils.
81954
81955 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81956
81957         More merge from coreutils.
81958         * modules/raise, modules/readtokens0, modules/utimens:
81959         * modules/utimecmp, module/xnanosleep: New files.
81960         * modules/strftime: Add lib/strftime.h.
81961         Change include from <time.h> to "strftime.h".
81962         * modules/yesno: Add lib/yesno.h.
81963         * modules/backupfile: Remove lib/addext.c.
81964         * modules/euidaccess: Add stat-macros.h.
81965         * modules/canonicalize, modules/euidaccess,
81966         modules/filemode, modules/lchown, modules/makepath,
81967         modules/rmdir, modules/stat: Likewise.
81968
81969 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
81970
81971         Merge from tar.
81972         * lib/argp-help.c (make_hol, hol_append): Don't assume that
81973         SIZE_MAX is a valid preprocessor constant.
81974         (__argp_basename): Change from "#ifndef _LIBC"
81975         to "#ifndef __argp_short_program_name", so that
81976         we don't compile these functions for tar.
81977
81978         More merges from coreutils.
81979         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
81980         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
81981         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
81982         * lib/addext.c: Remove; no longer needed.
81983         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
81984         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
81985         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
81986         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
81987         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
81988         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
81989         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
81990         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
81991         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
81992         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
81993         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
81994         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
81995         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
81996         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
81997         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
81998         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
81999         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
82000         Import changes from coreutils.
82001
82002 2004-08-05  Simon Josefsson  <jas@extundo.com>
82003
82004         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
82005
82006 2004-08-05  Simon Josefsson  <jas@extundo.com>
82007
82008         * m4/getsubopt.m4: New file.
82009
82010 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82011
82012         Merge from coreutils.
82013
82014         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
82015         * m4/getcwd-path-max.m4: New files.
82016
82017         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
82018         FILESYSTEM_PREFIX_LEN ->
82019         FILE_SYSTEM_PREFIX_LEN.
82020         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
82021         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
82022         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
82023         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
82024
82025         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
82026         prerequisite modules now handle the DOS stuff.
82027         Don't check for unistd.h.
82028
82029 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82030
82031         Merge from coreutils.
82032
82033         * lib/.gdb-history: Remove; this doesn't belong here.
82034
82035         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
82036         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
82037         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
82038         * lib/getcwd.c: New files.
82039
82040         * lib/dirname.h: Include <stdbool.h>.
82041         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
82042         for consistency with POSIX terminology.  All uses changed.
82043         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
82044         (strip_trailing_slashes): Use bool for booleans.
82045         * lib/stripslash.c (strip_trailing_slashes): Likewise.
82046
82047         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
82048         sometimes returns a positive errno value even when it succeeds.
82049         (print_errno_message) [!LIBC]: Fall back on strerror if
82050         __strerror_r fails.
82051
82052         * lib/path-concat.c (mempcpy): Don't define if a system header defines
82053         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
82054         (longest_relative_suffix): New function.
82055         (path_concat): Use it.  Assume first argument is not NULL.
82056         Port to DOS.  Omit redundant separators.
82057         Report an error instead of returning NULL.
82058         Use mempcpy instead of memcpy.
82059         (xpath_concat): Remove: not declared or used.
82060
82061         * lib/same.h: Include <stdbool.h>
82062         (same_name): Return bool, not int.
82063         * lib/same.c (same_name): Likewise.
82064         (errno): Don't declare; we assume C89 or better now.
82065
82066         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
82067         if not already defined.
82068
82069         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
82070         * lib/dup-safer.c (errno): Likewise.
82071
82072 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
82073
82074         Merge from coreutils.
82075         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
82076         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
82077         * modules/path-concat: Don't depend on strdup.
82078
82079 2004-08-03  Simon Josefsson  <jas@extundo.com>
82080
82081         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
82082         * lib/progname.h: Don't include stdbool.h.
82083
82084 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82085
82086         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
82087         * MODULES.html.sh (func_all_modules): Remove fatal.
82088
82089 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82090
82091         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
82092
82093 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
82094
82095         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
82096         working.
82097
82098 2004-08-02  Simon Josefsson  <jas@extundo.com>
82099
82100         * lib/getsubopt.h: New file, with comments from Bruno Haible.
82101         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
82102         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
82103
82104 2004-08-01  Simon Josefsson  <jas@extundo.com>
82105
82106         * lib/xgetdomainname.c: Include stdlib.h, for free().
82107
82108 2004-07-19  Bruno Haible  <bruno@clisp.org>
82109
82110         * MODULES.html.sh (func_all_modules): Add dummy.
82111
82112 2004-07-16  Simon Josefsson  <jas@extundo.com>
82113
82114         * modules/dummy: New file.
82115
82116 2004-07-16  Simon Josefsson  <jas@extundo.com>
82117
82118         * lib/dummy.c: New file.
82119
82120 2004-07-16  Bruno Haible  <bruno@clisp.org>
82121
82122         * lib/backupfile.h: Add extern "C" for C++.
82123         * lib/closeout.h: Likewise.
82124         * lib/copy-file.h: Likewise.
82125         * lib/findprog.h: Likewise.
82126         * lib/full-write.h: Likewise.
82127         * lib/pathname.h: Likewise.
82128         * lib/progname.h: Likewise.
82129         * lib/stpcpy.h: Likewise.
82130         * lib/stpncpy.h: Likewise.
82131         * lib/strcase.h: Likewise.
82132         * lib/strstr.h: Likewise.
82133         * lib/xalloc.h: Likewise.
82134
82135         * lib/mbswidth.h: Add extern "C" for C++.
82136         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
82137
82138 2004-07-13  Robert Millan  <robertmh@gnu.org>
82139
82140         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
82141
82142 2004-07-09  Simon Josefsson  <jas@extundo.com>
82143
82144         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
82145         failed without this.)
82146
82147 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
82148
82149         * modules/chown (Files): Add lib/fchown-stub.c, since
82150         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
82151
82152 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
82153
82154         * lib/fchown-stub.c: New file.
82155
82156 2004-06-24  Jim Meyering  <jim@meyering.net>
82157
82158         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
82159
82160 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82161
82162         * modules/argz: Omit "#include".
82163
82164         * MODULES.html.sh (func_all_modules): Add calloc, to match
82165         2004-06-01 addition of calloc module.
82166
82167 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82168
82169         * m4/argz.m4: New file, which is autoupdated from libtool.
82170
82171 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82172
82173         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
82174         libtool.
82175
82176 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
82177
82178         * config/srclist-update: Don't insist on "USA." before the
82179         close-comment, as libtool omits the period and puts the */ on a
82180         separate line.
82181         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
82182         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
82183
82184 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
82185
82186         * modules/argz: New file.
82187         * MODULES.html.sh (func_all_modules): Add argz.
82188
82189 2004-06-12  Jim Meyering  <jim@meyering.net>
82190         and  Paul Eggert  <eggert@cs.ucla.edu>
82191
82192         * modules/hash (Files): Add lib/xalloc.h.
82193         * modules/pipe (Depends-on): Add wait-process.
82194         * modules/stat (Depends-on): Add xalloc.
82195         * modules/userspec (Files): Add lib/userspec.h.
82196         * modules/xstrto
82197
82198         Upgrade from gettext-0.13.
82199         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
82200         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
82201         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
82202
82203 2004-06-10  Jim Meyering  <jim@meyering.net>
82204
82205         * lib/calloc.c: New file.
82206
82207 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
82208
82209         * lib/getdate.y (yylex): Allow space between sign and number.
82210         Problem reported by Dan Jacobson.
82211
82212 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
82213
82214         Merge from coreutils CVS.
82215
82216         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
82217         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
82218         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
82219         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
82220         xstrtol.m4: Fix copyright date and/or serial number.
82221
82222         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
82223         See if we need an fchown replacement.
82224         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
82225         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
82226         and use the replacement function if we detect either defect.
82227
82228         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
82229         gl_UTIMECMP.
82230
82231 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
82232         and  Jim Meyering  <jim@meyering.net>
82233
82234         Merge from coreutils CVS.
82235
82236         * lib/stat-macros.h: New file, with contents from file-type.h
82237         and coreutils' system.h.
82238         * lib/file-type.c: Include "stat-macros.h".
82239         * lib/file-type.h (file_type): Move all macro definitions to new file,
82240         stat-macros.h.
82241
82242         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
82243         Wrap old code with this conditional.
82244         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
82245         function that does not dereference symlinks.
82246         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
82247
82248         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
82249         dependency problems.
82250         (xreadlink): Accept new arg SIZE, for efficiency.
82251         All decls and uses changed.
82252         * lib/xreadlink.h: Include <stddef.h>, for size_t.
82253
82254         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
82255         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
82256
82257         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
82258         sysexits.h.
82259
82260 2004-06-01  Jim Meyering  <jim@meyering.net>
82261
82262         * m4/calloc.m4: New file.
82263
82264 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
82265
82266         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
82267         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
82268         Also, fix a typo in a diagnostic.
82269
82270 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
82271
82272         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
82273         or AC_FUNC_REALLOC.
82274
82275 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
82276
82277         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
82278         macros to be defined.
82279         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
82280         the allocator returns NULL because the requested size is zero.
82281
82282 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
82283
82284         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
82285         var.  Add comment explaining why libc still defines it.  This
82286         merges the following patch from glibc:
82287         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
82288
82289 2004-05-20  Andreas Schwab  <schwab@suse.de>
82290
82291         * m4/free.m4: Replace free if it not known to work, not the other
82292         way round.
82293
82294 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
82295
82296         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
82297         present in glibc since revision 1.1 of this file.
82298         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
82299         obstack_alignment_mask, obstack_alloc, obstack_base,
82300         obstack_blank, obstack_blank_fast, obstack_chunk_size,
82301         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
82302         obstack_grow0, obstack_init, obstack_int_grow,
82303         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
82304         obstack_next_free, obstack_object_size, obstack_ptr_grow,
82305         obstack_ptr_grow_fast, obstack_room): Remove declarations of
82306         nonexistent functions.
82307
82308 2004-05-18  Karl Berry  <karl@gnu.org>
82309
82310         * config/srclist.txt: break link for vasnprintf.c.
82311
82312 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
82313
82314         Port obstack to the AS/400, where pointers are 16 bytes wide and
82315         you cannot cast an integer to a valid pointer.  This patch is
82316         currently waiting to be integrated into glibc; see
82317         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
82318
82319         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
82320         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
82321         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
82322         (struct obstack): temp member is now a union of a pointer and
82323         an integer, instead of an integer.  All integer uses changed.
82324         This does not affect the physical layout of struct obstack,
82325         except on hosts (like the AS/400) where the size or alignment of
82326         void * is greater than that of ptrdiff_t.
82327         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
82328         __STDC__)]: Store temporary in pointer member of union, not
82329         integer member.
82330         * lib/obstack.c: Include <stddef.h>, for offsetof.
82331         (struct fooalign): Remove; it doesn't need a name.
82332         (union fooround): Change double to long double, and add void *.
82333         (DEFAULT_ALIGNMENT): Use offsetof to compute.
82334         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
82335         not a macro.  Hence the values are always int; so remove all
82336         casts-to-int in uses.
82337
82338 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
82339
82340         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
82341         we can get this patch merged into glibc.
82342
82343 2004-05-17  Derek R. Price  <derek@ximbiot.com>
82344             Paul Eggert  <eggert@cs.ucla.edu>
82345
82346         * m4/argp: Depend on alloca.
82347
82348 2004-05-17  Derek R. Price  <derek@ximbiot.com>
82349             Paul Eggert  <eggert@cs.ucla.edu>
82350
82351         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
82352         freecoding.
82353
82354 2004-05-17  Bruno Haible  <bruno@clisp.org>
82355
82356         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
82357         precision that consists of a '.' followed by an empty digit string.
82358         Patch by Tor Lillqvist <tml@iki.fi>.
82359
82360 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
82361
82362         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
82363         for backward compatibility with older code.  We need our own
82364         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
82365         it under some other name, and our alloca.h will define it.
82366
82367 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
82368             Derek Price  <derek@ximbiot.com>
82369
82370         * lib/alloca.c: Include <alloca.h>, to get our interface.
82371         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
82372         include <alloca.h> first.  Use C89 prototype for alloca; this
82373         requires including <stddef.h> for size_t.  Use extern "C" if C++.
82374         Use #elif for simplicity, since we can assume C89 now.
82375         Don't try to source the system alloca.h since it will not be found
82376         and to prevent recursively including its replacement.
82377         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
82378         * lib/regex.c: Likewise.
82379
82380 2004-05-16  Derek Price  <derek@ximbiot.com>
82381             Paul Eggert  <eggert@cs.ucla.edu>
82382
82383         getline cleanup.  This changes the getndelim2 API: both order of
82384         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
82385         no delimiter).
82386
82387         * lib/getline.c: Don't include stddef.h or stdio.h, since our
82388         interface does that.
82389         (getline): Always use getdelim, so that we don't have two
82390         copies of this code.
82391         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
82392         if available.
82393         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
82394         (GETNDELIM2_MAXIMUM): New macro.
82395         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
82396         instead of the old practice of delim2==0.  All callers changed.
82397         Return -1 on overflow, instead of returning junk.
82398         Do not set *linesize unless allocation succeeds.
82399         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
82400         that we include sys/types.h.
82401         * lib/getnline.h: Likewise.
82402         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
82403         (getndelim2): Reorder arguments.
82404         * lib/getnline.c (getnline, getndelim):
82405         Don't discard the NMAX argument.
82406         (getnline): Invoke getndelim, to avoid code duplication.
82407         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
82408         of (size_t) -1 by callers of the getnline family.
82409
82410 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82411
82412         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
82413         Check for gettimeofday.
82414         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
82415         Check for settimeofday, stime.
82416
82417 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
82418
82419         * lib/nanosleep.c (suspended): Change its type from int to
82420         sig_atomic_t volatile.
82421         (first_call): Make it private to rpl_nanosleep, and have it
82422         be zero initially as that's a bit faster.
82423         (my_usleep): Round up fractional times instead of truncating them,
82424         as this is the usual meaning for 'sleep'.
82425
82426         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
82427         doesn't work.
82428         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
82429         (ENOSYS): Define if not defined.
82430         (settime): Fall back on stime if it exists and settimeofday fails.
82431         But don't bother with fallbacks if a method fails with errno == EPERM.
82432
82433 2004-05-11  Jim Meyering  <jim@meyering.net>
82434
82435         Prior to this change, the save_cwd caller required read access to the
82436         current directory on most systems (ones with the fchdir function).
82437
82438         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
82439         fails, try write-only, and finally, resort to using xgetcwd.
82440
82441 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
82442
82443         * lib/obstack.c, obstack.h: Import changes from libc.
82444
82445 2004-04-28  Bruno Haible  <bruno@clisp.org>
82446
82447         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
82448         also implicitly appends .exe to executables.
82449         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
82450         accepts Windows pathnames.
82451         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
82452         Treat Cygwin like Windows, since it now accepts Windows pathnames.
82453         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
82454         Treat Cygwin like Windows, since it now accepts Windows pathnames.
82455         Reported by Derek Robert Price <derek@ximbiot.com>.
82456
82457 2004-04-21  Karl Berry  <karl@gnu.org>
82458
82459         * config/srclist.txt (localcharset.c): break sync.
82460
82461 2004-04-20  Paul Eggert  <eggert@twinsun.com>
82462
82463         * m4/host-os.m4: Add a copyright notice.
82464
82465 2004-04-20  Jim Meyering  <jim@meyering.net>
82466
82467         Change UTILS_ to gl_ in AC_DEFINE'd names.
82468         Change utils_- and jm_-prefixed variables, too.
82469         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
82470         UTILS_FUNC_MKDIR_TRAILING_SLASH.
82471         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
82472
82473         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
82474         Don't emit trailing blanks.
82475         Also rename jm_-prefixed variables to have gl_ prefix.
82476
82477         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
82478         Also rename jm_-prefixed variables to have gl_ prefix.
82479
82480         * m4/jm-macros.m4: Reflect the renamings.
82481         * m4/prereq.m4: Likewise.
82482
82483 2004-04-20  Jim Meyering  <jim@meyering.net>
82484
82485         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
82486         memory.
82487
82488 2004-04-20  Jim Meyering  <jim@meyering.net>
82489             Bruno Haible  <bruno@clisp.org>
82490
82491         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
82492         memory when realloc fails.
82493
82494 2004-04-19  Jim Meyering  <jim@meyering.net>
82495
82496         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
82497         now that readutmp.c may call `free (0)'.
82498
82499 2004-04-19  Bruno Haible  <bruno@clisp.org>
82500
82501         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
82502         * m4/inttypes_h.m4: Likewise.
82503         * m4/stdint_h.m4: Likewise.
82504         * m4/intmax_t.m4: Likewise.
82505         * m4/uintmax_t.m4: Likewise.
82506
82507 2004-04-18  Jim Meyering  <jim@meyering.net>
82508
82509         * m4/prereq.m4: Don't forbid jm_ prefix.
82510
82511         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
82512         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
82513         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
82514         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
82515         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
82516         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
82517         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
82518         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
82519         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
82520         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
82521         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
82522         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
82523         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
82524         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
82525         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
82526         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
82527         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
82528         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
82529         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
82530
82531 2004-04-18  Jim Meyering  <jim@meyering.net>
82532
82533         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
82534         failure, don't leak memory and do call END_UTMP_ENT.
82535
82536 2004-04-16  Jim Meyering  <jim@meyering.net>
82537
82538         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
82539         coreutils' stat program.
82540         (gl_PREREQ): Don't require jm_PREREQ_STAT.
82541
82542 2004-04-11  Paul Eggert  <eggert@twinsun.com>
82543
82544         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
82545         C89.
82546         (CHAR_BIT): Remove, since we assume C89.
82547         Include <stdint.h> if available, as per current Autoconf CVS advice.
82548
82549 2004-03-31  Jim Meyering  <jim@meyering.net>
82550
82551         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
82552         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
82553         * m4/xalloc.m4: Likewise.
82554
82555 2004-03-30  Paul Eggert  <eggert@twinsun.com>
82556
82557         Merge from coreutils.
82558
82559         * m4/inttostr.m4: New file.
82560         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
82561         Require AM_STDBOOL_H and gl_TIMESPEC instead.
82562         Require gl_CLOCK_TIME.
82563         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
82564
82565 2004-03-30  Paul Eggert  <eggert@twinsun.com>
82566
82567         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
82568         not bool, to be more consistent with Unix conventions.
82569         Suggested by Bruno Haible.
82570
82571         Merge from coreutils.
82572
82573         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
82574         * lib/umaxtostr.c: New files.
82575
82576         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
82577         the usual <time.h> dance.
82578         (get_date): Change signature to support fractional time stamps.
82579         All callers changed.
82580         * lib/getdate.y: Include "getdate.h" first, as we can now
82581         assume C89 and don't need to worry about 'const'.
82582         Similarly, include "unlocked-io.h" near start, not in middle.
82583         Include <limits.h>.
82584         (textint.value): Use long int rather than int.
82585         (textint.digits): Use size_t rather than int.
82586         (BILLION, LOG10_BILLION): New constants.
82587         (parser_control): New member rel_ns.  Members day_ordinal,
82588         time_zone, month, day, hour, minutes, rel_year, rel_month,
82589         rel_day, rel_hour, rel_minutes, rel_seconds
82590         are now long int, not int.  Member seconds is now struct timespec,
82591         not int.  New member timespec_seen.  Members dates_seen, days_seen,
82592         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
82593         not int.
82594         (%union.intval): Now long int, not int.
82595         New member timespec.
82596         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
82597         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
82598         (spec): Now is a timespec or an item list.
82599         (timespec, items): New nonterminals.
82600         (time, rel, relunit, number, get_date):
82601         Add support for fractional seconds.
82602         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
82603         (gmtime, localtime, mktime): Remove decls; not needed with C89.
82604         (to_hour): First arg is now long int, not int.
82605         (to_year): Returns long int, not int.
82606         Don't treat year -70 like 70.
82607         (tm_diff): Returns long int, not int.
82608         (lookup_word): Use bool instead of int when appropriate.
82609         (yylex): Use size_t for count, not int.
82610         Detect overflow when parsing large integer constants.
82611         Add support for fractions.
82612         (get_date): Make pointers 'const' if possible.
82613         Use more-portable code to detect integer overflow.
82614         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
82615         Don't use ctime; it's not reliable if the year has >4 digits.
82616
82617         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
82618         This is for compatibility with BSD.
82619
82620         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
82621         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
82622         From coreutils' system.h.
82623
82624         * lib/userspec.c: Don't include "posixver.h".
82625         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
82626         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
82627         compatible extension.  Simplify code by removing a boolean int
82628         that was always nonzero if a string was nonnull.
82629
82630 2004-03-30  Jim Meyering  <jim@meyering.net>
82631
82632         Merge from coreutils.
82633
82634         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
82635         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
82636         on some systems one must include <grp.h> before it.
82637         Reported by Christian Krackowizer.
82638
82639 2004-03-30  Jim Meyering  <jim@meyering.net>
82640
82641         Merge from coreutils.
82642
82643         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
82644
82645         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
82646         an empty input stream.
82647
82648         * lib/readtokens.c: Include <stdbool.h>.
82649         (readtoken): Use `size_t' rather than int/long.
82650         All callers adjusted.
82651         Use `bool' rather than `int' where appropriate.
82652         Use memset rather than an explicit loop.
82653         Use x2nrealloc rather than xrealloc.
82654         Allow the use of `\0' as a delimiter.
82655         (readtokens): Likewise.
82656         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
82657
82658 2004-03-30  Jim Meyering  <jim@meyering.net>
82659
82660         * m4/realloc.m4: Remove file, since now it does no more than
82661         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
82662         the `configure.ac' section of module/realloc.
82663         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
82664
82665 2004-03-30  Bruno Haible  <bruno@clisp.org>
82666
82667         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
82668         nonnull.
82669
82670 2004-03-29  Paul Eggert  <eggert@twinsun.com>
82671
82672         Merge changes to getloadavg.c from coreutils and Emacs.
82673
82674         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
82675         Define to an expression, not to the empty string.
82676         Include cloexec.h and xalloc.h.
82677         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
82678         Use set_cloexec_flag rather than rolling our own.
82679         * lib/cloexec.c, lib/cloexec.h: New files.
82680
82681 2004-03-29  Paul Eggert  <eggert@twinsun.com>
82682
82683         * m4/cloexec.m4: New file.
82684
82685 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82686
82687         * lib/getopt.h: Sync with libc CVS.
82688
82689 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82690             Bruno Haible  <bruno@clisp.org>
82691
82692         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
82693         mbswidth.
82694
82695 2004-03-18  Paul Eggert  <eggert@twinsun.com>
82696             Bruno Haible  <bruno@clisp.org>
82697
82698         * lib/mbswidth.h: Include <wchar.h> only if
82699         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
82700         <wchar.h>.
82701         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
82702
82703 2004-03-09  Paul Eggert  <eggert@twinsun.com>
82704
82705         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
82706         Sync with libc CVS.
82707         * lib/getopt_int.h: New file, also synced from libc.
82708
82709 2004-03-09  Paul Eggert  <eggert@twinsun.com>
82710
82711         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
82712         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
82713         Bring back getopt.c, getopt.h, getopt1.c.
82714
82715 2004-03-07  Paul Eggert  <eggert@twinsun.com>
82716
82717         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
82718         All uses changed.  Check for sa_sigaction member; this fixes
82719         a bug first reported by Jason Andrade in
82720         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
82721
82722 2004-03-07  Paul Eggert  <eggert@twinsun.com>
82723
82724         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
82725         '#if' expressions.  Unlike the code it replaces, it does not
82726         depend on (defined _SC_PAGESIZE).  However, it does depend on
82727         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
82728         first reported by Jason Andrade in
82729         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
82730
82731 2004-02-25  Simon Josefsson  <jas@extundo.com>
82732
82733         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
82734
82735 2004-02-25  Simon Josefsson  <jas@extundo.com>
82736
82737         * lib/strdup.h: New file.
82738         * lib/strdup.c: Include it.
82739         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
82740         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
82741
82742 2004-02-23  Karl Berry  <karl@gnu.org>
82743
82744         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
82745         (from fencepost.gnu.org:/gd/gnuorg).
82746
82747 2004-02-23  Karl Berry  <karl@gnu.org>
82748
82749         * config/srclistvars.sh (GNUORG) [karl]: redefine.
82750         * config/srclist.txt: add maintain/standards documents.
82751
82752 2004-02-18  Bruno Haible  <bruno@clisp.org>
82753
82754         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
82755         Reported by Derek Robert Price <derek@ximbiot.com>.
82756
82757 2004-02-16  Karl Berry  <karl@gnu.org>
82758
82759         * config/mkinstalldirs, install-sh: update from automake.
82760
82761 2004-02-06  Karl Berry  <karl@gnu.org>
82762
82763         * m4/po.m4: update from gettext 0.14.1.
82764
82765 2004-02-06  Karl Berry  <karl@gnu.org>
82766
82767         * lib/config.charset: update from gettext 0.14.1.
82768
82769 2004-02-05  Paul Eggert  <eggert@twinsun.com>
82770
82771         Add comments and code, prompted by suggestions from Bruno Haible
82772         for sh-quote.
82773         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
82774         describing the enum quoting_style values.
82775         * lib/quotearg.c (quotearg_alloc): New function.
82776         (quotearg_buffer_restyled): Treat lone { and } as special.
82777         Treat = as special.  Work around bug with older shells
82778         that "see" a '\' that is really the 2nd byte of a multibyte char.
82779         Quote empty string with shell_quoting_style.
82780
82781 2004-02-03  Bruno Haible  <bruno@clisp.org>
82782
82783         * m4/pipe.m4: New file, from GNU gettext.
82784
82785 2004-02-03  Bruno Haible  <bruno@clisp.org>
82786
82787         * lib/pipe.h: New file, from GNU gettext.
82788         * lib/pipe.c: New file, from GNU gettext.
82789
82790 2004-01-27  Bruno Haible  <bruno@clisp.org>
82791
82792         * m4/execute.m4: New file, from GNU gettext.
82793
82794 2004-01-27  Bruno Haible  <bruno@clisp.org>
82795
82796         * lib/execute.h: New file, from GNU gettext.
82797         * lib/execute.c: New file, from GNU gettext.
82798         * lib/w32spawn.h: New file, from GNU gettext.
82799
82800 2004-01-24  Paul Eggert  <eggert@twinsun.com>
82801
82802         Merge from diffutils.
82803
82804         * lib/file-type.c (file_type): Add typed memory objects.
82805         * lib/file-type.h (S_TYPEISTMO): New macro.
82806
82807         * lib/c-stack.h (c_stack_action): Remove argv argument.
82808         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
82809         (die): Don't calculate message unless segv_action returns.
82810         (get_stack_location, min_address_from_argv, max_address_from_argv,
82811         volatile stack_base, volatile_stack_size): Remove.
82812         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
82813         that every segmentation violation is a stack overflow.  (Ouch!)
82814         See Debian bug 136249 (still outstanding) for more info about why
82815         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
82816
82817 2004-01-24  Paul Eggert  <eggert@twinsun.com>
82818
82819         Exit-status fix from coreutils.
82820
82821         Use exit_failure consistently in place of EXIT_FAILURE,
82822         so that program exit statuses are consistent on failure.
82823
82824         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
82825         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
82826         * lib/argmatch.h: Comment fix to match the above.
82827         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
82828         Now a macro referring to exit_failure, instead of a separate
82829         variable.  Include "exitfail.h" to get it.
82830         * lib/xstrtol.h: Include "exitfail.h".
82831         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
82832
82833         * lib/long-options.c (parse_long_options): Use prototype
82834         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
82835         for clarity.
82836
82837 2004-01-21  Jim Meyering  <jim@meyering.net>
82838
82839         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
82840         so as not to conflict with a different-sized __mktime_internal
82841         function in GNU libc.
82842         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
82843         Problem building statically-linked `ls' reported by Michael Brunnbauer.
82844
82845 2004-01-20  Karl Berry  <karl@gnu.org>
82846
82847         * config/config.guess: update from config.
82848
82849         * config/srclistvars.sh: GNUWWWLICENSES for karl.
82850
82851 2004-01-20  Bruno Haible  <bruno@clisp.org>
82852
82853         Safer stack allocation.
82854         * lib/setenv.c: Include allocsa.h.
82855         (alloca): Remove fallback definition.
82856         (freea): Remove macro.
82857         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
82858         instead of freea.
82859
82860 2004-01-20  Bruno Haible  <bruno@clisp.org>
82861
82862         * m4/eealloc.m4: New file, from GNU gettext.
82863
82864 2004-01-20  Bruno Haible  <bruno@clisp.org>
82865
82866         * m4/allocsa.m4: New file, from GNU gettext.
82867
82868 2004-01-20  Bruno Haible  <bruno@clisp.org>
82869
82870         * lib/xallocsa.h: New file, from GNU gettext.
82871         * lib/xallocsa.c: New file, from GNU gettext.
82872
82873 2004-01-20  Bruno Haible  <bruno@clisp.org>
82874
82875         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
82876
82877 2004-01-20  Bruno Haible  <bruno@clisp.org>
82878
82879         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
82880         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
82881         specially.
82882
82883 2004-01-20  Bruno Haible  <bruno@clisp.org>
82884
82885         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
82886         patch.
82887
82888 2004-01-20  Bruno Haible  <bruno@clisp.org>
82889
82890         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
82891
82892 2004-01-20  Bruno Haible  <bruno@clisp.org>
82893
82894         * lib/eealloc.h: New file.
82895
82896 2004-01-20  Bruno Haible  <bruno@clisp.org>
82897
82898         * lib/binary-io.h: Avoid warnings on Cygwin.
82899
82900 2004-01-20  Bruno Haible  <bruno@clisp.org>
82901
82902         * lib/allocsa.h: New file, from GNU gettext.
82903         * lib/allocsa.c: New file, from GNU gettext.
82904
82905 2004-01-18  Karl Berry  <karl@gnu.org>
82906
82907         * doc/gpl.texi, doc/lgpl.texi: new files.
82908
82909 2004-01-18  Karl Berry  <karl@gnu.org>
82910
82911         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
82912         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
82913
82914 2004-01-15  Paul Eggert  <eggert@twinsun.com>
82915
82916         Merge from coreutils.
82917
82918         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
82919         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
82920         (gl_DEFAULT_POSIX2_VERSION): Move
82921         the documentation from 'configure' into 'config.hin',
82922         so that 'configure --help' isn't burdened by it and
82923         we don't have to worry about its formatting there.
82924         Reword the documentation so that it's more succinct
82925         and can be run together into a single paragraph.
82926         * m4/same.m4 (gl_SAME): Check for pathconf.
82927
82928 2004-01-15  Paul Eggert  <eggert@twinsun.com>
82929
82930         Merge from coreutils.
82931
82932         * lib/posixver.c: Include posixver.h.
82933
82934         * lib/same.c: Include <stdbool.h>, <limits.h>.
82935         (_POSIX_NAME_MAX): Define if not defined.
82936         (MIN): New macro.
82937         (same_name): If file names are silently truncated, report
82938         that the file names are the same if they are the same after
82939         the silent truncation.
82940
82941         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
82942         conversion function.
82943         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
82944         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
82945         longer needed.
82946
82947 2004-01-15  Jim Meyering  <jim@meyering.net>
82948
82949         Merge from coreutils.
82950
82951         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
82952         if no library is required.
82953         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
82954         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
82955         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
82956         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
82957         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
82958         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
82959         value, $ac_cv_search_crypt, if it's "none required".
82960         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
82961         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
82962         not gl_FUNC_GETLOADAVG.
82963         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
82964         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
82965
82966 2004-01-15  Jim Meyering  <jim@meyering.net>
82967
82968         Merge from coreutils.
82969
82970         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
82971         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
82972         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
82973
82974         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
82975         optional configure-time default.
82976
82977         * lib/version-etc.c (version_etc_copyright): Update copyright date.
82978
82979         * lib/xreadlink.c (xreadlink): Correct outdated comment.
82980
82981 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
82982
82983         Merge from coreutils.
82984
82985         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
82986         value, $ac_cv_search_nanosleep, if it's "none required".
82987
82988 2004-01-14  Paul Eggert  <eggert@twinsun.com>
82989
82990         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
82991         with like-named macro in fnmatch.c.
82992         (EXT): Use an internal constant instead.
82993
82994         Merge fnmatch patches from glibc.
82995         * lib/fnmatch.c (mbsinit): Remove define.
82996         Add libc_hidden_ver (__fnmatch, fnmatch).
82997         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
82998         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
82999
83000 2004-01-14  Karl Berry  <karl@gnu.org>
83001
83002         * config/install-sh: update from automake.
83003
83004 2004-01-13  Karl Berry  <karl@gnu.org>
83005
83006         * config/install-sh: update from automake.
83007
83008 2004-01-09  Karl Berry  <karl@gnu.org>
83009
83010         * config/install-sh: update from automake.
83011
83012 2004-01-05  Karl Berry  <karl@gnu.org>
83013
83014         * config/config.{sub,guess}: update from config.
83015
83016 2003-12-31  Karl Berry  <karl@gnu.org>
83017
83018         * config/depcomp: update from automake.
83019
83020 2003-12-14  Karl Berry  <karl@gnu.org>
83021
83022         * lib/config.charset: update from gettext-runtime.
83023
83024 2003-12-03  Paul Eggert  <eggert@twinsun.com>
83025
83026         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
83027         Bug reported by Alfred M. Szmidt.
83028
83029 2003-12-03  Bruno Haible  <bruno@clisp.org>
83030
83031         * m4/gettext.m4: Upgrade from gettext-0.13.
83032         * m4/po.m4: Upgrade from gettext-0.13.
83033         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
83034         * m4/intmax.m4: New file, from gettext-0.13.
83035         * m4/printf-posix.m4: New file, from gettext-0.13.
83036
83037 2003-11-29  Karl Berry  <karl@gnu.org>
83038
83039         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
83040
83041 2003-11-25  Paul Eggert  <eggert@twinsun.com>
83042             Bruno Haible  <bruno@clisp.org>
83043
83044         * lib/printf-parse.h: Don't include sys/types.h.
83045         (ARG_NONE): New macro.
83046         (char_directive): Change type of *arg_index fields to size_t.
83047         * lib/printf-parse.c: Don't include sys/types.h.
83048         (SSIZE_MAX): Remove macro.
83049         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
83050         Remove unnecessary overflow check.
83051         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
83052         fields.
83053
83054 2003-11-25  Bruno Haible  <bruno@clisp.org>
83055
83056         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
83057
83058 2003-11-25  Bruno Haible  <bruno@clisp.org>
83059
83060         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
83061         gt_TYPE_SSIZE_T.
83062
83063 2003-11-24  Paul Eggert  <eggert@twinsun.com>
83064
83065         * modules/alloca: Remove dependency on xalloc.
83066
83067 2003-11-24  Paul Eggert  <eggert@twinsun.com>
83068
83069         * lib/alloca.c: Remove dependency on xalloc module.
83070         (xalloc_die): Remove.
83071         (memory_full) [!defined emacs]: New macro.
83072         [!defined emacs]: Don't include xalloc.h.
83073         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
83074         address arithmetic overflows.  Change datatypes a bit to avoid
83075         unnecessary casts.
83076
83077 2003-11-22  Jim Meyering  <jim@meyering.net>
83078
83079         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
83080         s/size/size_t/.
83081
83082 2003-11-21  Karl Berry  <karl@gnu.org>
83083
83084         * config/config.{sub,guess}: update from config.
83085
83086 2003-11-18  Karl Berry  <karl@gnu.org>
83087
83088         * config/config.{sub,guess}: update from config.
83089
83090         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
83091
83092 2003-11-17  Paul Eggert  <eggert@twinsun.com>
83093
83094         * README: Mention that S+T cannot overflow if S is the size of
83095         an existing object and T is sufficiently small.
83096
83097 2003-11-17  Jim Meyering  <jim@meyering.net>
83098
83099         On systems without utime and without a utimes function capable of
83100         dealing with a NULL struct utimbuf* argument, this utime replacement
83101         could -- in unusual circumstances -- leak a file descriptor.
83102         * lib/utime.c: Include <unistd.h> and <errno.h>.
83103         (utime_null): Be sure to close `fd' and to preserve errno.
83104         Reported by Geoff Collyer via Arnold Robbins.
83105
83106 2003-11-17  Bruno Haible  <bruno@clisp.org>
83107
83108         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
83109         (Depends-on): Add xsize.
83110
83111 2003-11-17  Bruno Haible  <bruno@clisp.org>
83112
83113         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
83114
83115 2003-11-17  Bruno Haible  <bruno@clisp.org>
83116
83117         * lib/vasnprintf.c (alloca): Remove fallback definition.
83118         (freea): Remove definition.
83119         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
83120         Reported by Paul Eggert.
83121
83122 2003-11-16  Paul Eggert  <eggert@twinsun.com>
83123             Bruno Haible  <bruno@clisp.org>
83124
83125         Protect against address arithmetic overflow.
83126         * lib/printf-args.h: Include stddef.h.
83127         (arguments): Change type of field 'count' to size_t.
83128         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
83129         'unsigned int' where appropriate.
83130         * lib/printf-parse.h: Include sys/types.h.
83131         (char_directive): Change type of *arg_index fields to ssize_t.
83132         (char_directives): Change type of fields 'count', max_*_length to
83133         size_t.
83134         * lib/printf-parse.c: Include sys/types.h and xsize.h.
83135         (SSIZE_MAX): Define fallback value.
83136         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
83137         instead of 'int' where appropriate. Check a_allocated, d_allocated
83138         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
83139         * lib/vasnprintf.c: Include xsize.h.
83140         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
83141         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
83142         overflow. Avoid wraparound when converting a width or precision from
83143         decimal to binary.
83144
83145 2003-11-16  Bruno Haible  <bruno@clisp.org>
83146
83147         Update from GNU gettext.
83148         * lib/printf-parse.c: Generalize to it can be compiled for wide
83149         strings.
83150         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
83151         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
83152         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
83153         SNPRINTF): New macros.
83154         Don't include <alloca.h> if the file is used inside libintl.
83155         (local_wcslen): New function, for Solaris 2.5.1.
83156         (VASNPRINTF): Use it instead of wcslen.
83157
83158 2003-11-16  Bruno Haible  <bruno@clisp.org>
83159
83160         * lib/xsize.h (xmax): New function.
83161         (xsum, xsum3, xsum4): Declare as "pure" functions.
83162
83163 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83164
83165         * modules/xalloc (Files): Undo latest change, since xalloc.h
83166         no longer needs SIZE_MAX or PTRDIFF_MAX.
83167
83168 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83169
83170         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
83171         gl_PTRDIFF_MAX.
83172
83173 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83174
83175         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
83176         "return", to pacify some unknown compiler.  Problem reported
83177         by Joerg Schilling.
83178
83179 2003-11-12  Paul Eggert  <eggert@twinsun.com>
83180
83181         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
83182         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
83183         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
83184         heuristic is just as accurate as far as we know, and it removes a
83185         dependency on size_max.m4 and ptrdiff_max.m4.
83186
83187 2003-11-11  Bruno Haible  <bruno@clisp.org>
83188
83189         * modules/xsize (Files): Add m4/size_max.m4.
83190         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
83191
83192 2003-11-11  Bruno Haible  <bruno@clisp.org>
83193
83194         * m4/size_max.m4: New file.
83195         * m4/ptrdiff_max.m4: New file.
83196         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
83197         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
83198         (gl_XALLOC): Invoke it.
83199
83200 2003-11-11  Bruno Haible  <bruno@clisp.org>
83201
83202         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
83203         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
83204         defined.
83205
83206 2003-11-10  Paul Eggert  <eggert@twinsun.com>
83207
83208         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
83209         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
83210         rejected some allocations of exactly SIZE_MAX - 2 bytes.
83211         From Bruno Haible.
83212         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
83213         not (size_t) -1, since it's defined here.
83214
83215 2003-11-09  Karl Berry  <karl@gnu.org>
83216
83217         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
83218
83219 2003-11-06  Paul Eggert  <eggert@twinsun.com>
83220
83221         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
83222         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
83223         Reject sizes of exactly SIZE_MAX bytes.
83224         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
83225         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
83226
83227 2003-11-05  Bruno Haible  <bruno@clisp.org>
83228
83229         * lib/xsize.h: Include limits.h, to avoid a possible collision with
83230         SIZE_MAX defined in <limits.h> on Solaris.
83231
83232 2003-11-04  Jim Meyering  <jim@meyering.net>
83233
83234         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
83235         variable names, rather than @VAR@.
83236         * modules/poll: Likewise.
83237
83238 2003-11-04  Bruno Haible  <bruno@clisp.org>
83239
83240         * modules/xsize: New file.
83241         * modules/linebreak: Depend on xsize.
83242         * MODULES.html.sh (func_all_modules): Add xsize.
83243
83244 2003-11-04  Bruno Haible  <bruno@clisp.org>
83245
83246         * m4/xsize.m4: New file.
83247
83248 2003-11-04  Bruno Haible  <bruno@clisp.org>
83249
83250         * lib/xsize.h: New file.
83251         * lib/linebreak.c: Include xsize.h.
83252         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
83253         argument for overflow.
83254         Suggested by Paul Eggert.
83255
83256 2003-11-03  Karl Berry  <karl@gnu.org>
83257
83258         * config/config.{guess,sub}: update from config.
83259
83260 2003-11-03  Jim Meyering  <jim@meyering.net>
83261
83262         * modules/userspec (lib_SOURCES): Add userspec.h.
83263         (Include): Add "userspec.h".
83264         Improve description.
83265
83266 2003-11-03  Jim Meyering  <jim@meyering.net>
83267
83268         * lib/userspec.c: Include "userspec.h".
83269         * lib/userspec.h: New file.
83270
83271 2003-11-03  Bruno Haible  <bruno@clisp.org>
83272
83273         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
83274
83275 2003-11-03  Bruno Haible  <bruno@clisp.org>
83276
83277         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
83278         available, to avoid (extremely rare) race condition.
83279         Suggested by Paul Eggert.
83280
83281 2003-11-02  Karl Berry  <karl@gnu.org>
83282
83283         * config/srclist.txt (vasprintf.c): sync broken, sigh.
83284
83285 2003-10-31  Paul Eggert  <eggert@twinsun.com>
83286
83287         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
83288         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
83289         (read_filesystem_list): Set and use me_type_malloced.
83290         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
83291         whatever the type happens to be), for brevity and consistency.
83292         Check for size calculation overflow on Alphas running OSF/1.
83293
83294 2003-10-31  Jim Meyering  <jim@meyering.net>
83295
83296         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
83297
83298         * lib/linebuffer.c: Include <string.h> for declaration of memset.
83299
83300 2003-10-30  Paul Eggert  <eggert@twinsun.com>
83301             Bruno Haible  <bruno@clisp.org>
83302
83303         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
83304         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
83305
83306 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
83307
83308         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
83309         netbsd*-gnu*.  Suggested by Robert Millan.
83310
83311 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83312
83313         * modules/group-member: Depend on stdbool.
83314
83315 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83316
83317         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
83318
83319 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83320
83321         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
83322         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
83323         after the 'gnu' in these cases.  This fixes some bugs in the
83324         previous change, and is based on suggestions by Robert Millan.
83325
83326 2003-10-29  Paul Eggert  <eggert@twinsun.com>
83327
83328         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
83329         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
83330         no longer needed.
83331         * lib/quotearg.c (quotearg_n_options): Use it.
83332         * lib/group-member.c: Include <stdbool.h>.
83333         (free_group_info): Arg is now const *; don't free arg.
83334         (get_group_info): Now returns bool and accepts struct group_info *,
83335         rather than returning a malloc'ed struct group_info *.
83336         All uses changed.  Check for overflow in internal size calculation.
83337
83338         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
83339         rather than xmalloc/xrealloc.
83340         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
83341         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
83342         conformance bug: the old code used a pointer after freeing the
83343         storage that it addressed.
83344         * lib/hash.c (hash_initialize): Simplify the code by using
83345         xalloc_oversized rather than doing it by hand.
83346         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
83347         the buffer preserved.  Use free and xmalloc instead.
83348         * lib/quotearg.c (quotearg_n_options): Likewise.
83349         Use a simpler test for size overflow.  Don't use xalloc_oversized
83350         because unsigned int might be wider than size_t (!); this suggests
83351         that we should switch from unsigned int to size_t for slot numbers.
83352
83353 2003-10-28  Paul Eggert  <eggert@twinsun.com>
83354
83355         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
83356         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
83357         NetBSD kernels.  Requested by Richard Stallman.
83358
83359 2003-10-27  Paul Eggert  <eggert@twinsun.com>
83360
83361         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
83362         to allocate the returned structure.  Do not allocate a subarray,
83363         as x2nrealloc will do that.
83364         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
83365         instead of xnrealloc.
83366         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
83367
83368 2003-10-27  Bruno Haible  <bruno@clisp.org>
83369
83370         * lib/stdbool_.h: Better support for BeOS.
83371
83372 2003-10-26  Paul Eggert  <eggert@twinsun.com>
83373
83374         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
83375         now uses inline.
83376
83377 2003-10-26  Paul Eggert  <eggert@twinsun.com>
83378
83379         * lib/xalloc.h (xalloc_oversized): New static inline function, for
83380         callers that want to do their own size-overflow checking.  Include
83381         <stdbool.h>, since xalloc_oversized returns bool.
83382         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
83383         to use xalloc_oversized.
83384
83385         Add two functions x2realloc, x2nrealloc, for programs that grow
83386         arrays dynamically by doubling their sizes.
83387         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
83388         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
83389         New functions.
83390
83391         Port to C99 semantics for 'inline' of external functions.
83392         Bug reported by Bruno Haible.
83393         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
83394         with the old contents of xnmalloc.
83395         (xnmalloc, xmalloc): Use it.
83396         (xnrealloc_inline): New static inline function,
83397         with the old contents of xnrealloc.
83398         (xnrealloc, xrealloc): Use it.
83399
83400         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
83401         that.
83402
83403 2003-10-26  Karl Berry  <karl@gnu.org>
83404
83405         * config/srclist.txt (COPYING.DOC): no longer available from
83406         /gd/gnuorg; don't know where the ultimate source is.
83407
83408 2003-10-25  Paul Eggert  <eggert@twinsun.com>
83409
83410         Fix several address-calculation bugs in the hash modules,
83411         plus some minor code cleanup.
83412
83413         * lib/hash.h: Include <stdbool.h>, for bool.
83414         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
83415         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
83416         hash_get_n_entries, hash_get_max_bucket_length,
83417         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
83418         hash_rehash): Use size_t rather than unsigned.
83419         * lib/hash.c (struct hash_table, hash_get_n_buckets,
83420         hash_get_n_buckets_used, hash_get_n_entries,
83421         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
83422         hash_get_entries, hash_do_for_each, hash_string, is_prime,
83423         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
83424         Likewise.
83425         (SIZE_MAX): Define if not defined.
83426         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
83427         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
83428         hash_print):
83429         Use const * when possible.
83430         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
83431         (check_tuning): Fix bug: if tuning parameters were very close to
83432         0 or 1, rounding errors could have caused subscript violations.
83433         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
83434         (hash_initialize): Add 'fail:' label
83435         to free table and return NULL, and use it to simplify code.
83436         Use calloc rather than clearing the storage ourself.
83437         (hash_initialize, hash_rehash): Check for arithmetic overflow in
83438         buffer size calculations.
83439         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
83440         Include <stddef.h>, for size_t.
83441         * lib/hash-pjw.c (hash_pjw): Likewise.
83442         Switch to method described by Bruno Haible.
83443         Include <limits.h>, for CHAR_BIT.
83444         (SIZE_BITS): New macro.
83445
83446 2003-10-23  Paul Eggert  <eggert@twinsun.com>
83447
83448         * m4/getline.m4 (AM_FUNC_GETLINE):
83449         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
83450         hosts.  Problem reported by Derek Robert Price in
83451         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
83452         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
83453         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
83454
83455 2003-10-21  Paul Eggert  <eggert@twinsun.com>
83456
83457         * lib/getndelim2.c (getndelim2): When size calculation overflows,
83458         ceiling the allocation at NMAX bytes rather than silently
83459         discarding input bytes before NMAX is reached.  This makes
83460         a difference only if NMAX exceeds SIZE_MAX / 2.
83461
83462         * lib/obstack.c: Merge from glibc.
83463         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
83464         Add libc_hidden_def (_obstack_newchunk).
83465         (_obstack_free) [! defined _LIBC]: Remove.
83466         [defined _LIBC]: Make a strong alias from obstack_free, rather than
83467         a clone of the function body.
83468         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
83469         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
83470
83471         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
83472         glibc.
83473         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
83474         arg to memcpy.
83475
83476         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
83477         (obstack_ptr_grow_fast, obstack_int_grow_fast):
83478         Don't use lvalue casts, as GCC plans to remove support for them
83479         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
83480         was also present in the non-GCC version, indicating that this
83481         code had always been buggy and had never been widely used.
83482         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
83483         Use the fast variant of each macro, rather than copying the
83484         definiens of the fast variant; that way, we'll be more likely to
83485         catch future bugs in the fast variants.
83486
83487 2003-10-20  Bruno Haible  <bruno@clisp.org>
83488
83489         * modules/wait-process: New file.
83490         * MODULES.html.sh (func_all_modules): Add wait-process.
83491
83492 2003-10-20  Bruno Haible  <bruno@clisp.org>
83493
83494         * m4/wait-process.m4: New file.
83495
83496 2003-10-20  Bruno Haible  <bruno@clisp.org>
83497
83498         * lib/wait-process.h: New file, from GNU gettext.
83499         * lib/wait-process.c: New file, from GNU gettext.
83500
83501 2003-10-19  Jim Meyering  <jim@meyering.net>
83502
83503         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
83504         HPUX 10.20.
83505
83506 2003-10-18  Karl Berry  <karl@gnu.org>
83507
83508         * config/config.guess: update from config.
83509
83510 2003-10-16  Paul Eggert  <eggert@twinsun.com>
83511
83512         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
83513         (getgroups): First arg is int, not size_t.
83514         Don't let 'free' mangle errno.
83515
83516 2003-10-16  Paul Eggert  <eggert@twinsun.com>
83517
83518         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
83519
83520 2003-10-16  Karl Berry  <karl@gnu.org>
83521
83522         * config/config.{guess,sub}: update from config.
83523
83524 2003-10-16  Jim Meyering  <jim@meyering.net>
83525
83526         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
83527         memcpy.
83528
83529 2003-10-15  Paul Eggert  <eggert@twinsun.com>
83530
83531         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
83532         (SIZE_MAX): Remove.
83533         (new_exclude, add_exclude_file): Initial size no longer needs to
83534         be a power of 2.
83535         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
83536         our own address arithmetic overflow checking.
83537
83538         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
83539         (fnmatch): Do not alloca more than 2000 wide characters;
83540         instead, use malloc for large buffers.
83541         Check for address arithmetic overflow, and return -1
83542         with errno set to ENOMEM in that case.
83543         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
83544         (NEW_PATTERN): Do not alloca more than 8000 bytes;
83545         instead, return -1.  Check for address arithmetic overflow.
83546
83547 2003-10-14  Paul Eggert  <eggert@twinsun.com>
83548
83549         Handle invalid suffixes and overflow independently, so that
83550         callers can treat them independently as needed.  Fix some bugs in
83551         suffix handling, e.g., "100k@" was not diagnosed as an invalid
83552         suffix for a human-readable blocksize.  The major caller-visible
83553         change is the addition of a new
83554         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
83555         that both overflow and suffix chars were found.
83556
83557         * lib/human.c (humblock): Don't check separately for invalid suffix
83558         char; that is xstrtoumax's job (now that its bug is fixed).
83559         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
83560         INTMAX_MAX]: New macros.
83561         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
83562         TYPE_MAXIMUM): New macros.
83563         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
83564         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
83565         if overflow occurs, as it's what __strtol does and it's more useful
83566         in practice.
83567         (__xstrtol): If __strtol reports some error other than ERANGE,
83568         reflect it to the caller as LONGINT_INVALID.  If it reports
83569         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
83570         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
83571         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
83572         value.
83573         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
83574         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
83575         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
83576         [defined UINTMAX_MAX]: New macros.
83577
83578 2003-10-14  Bruno Haible  <bruno@clisp.org>
83579
83580         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
83581
83582 2003-10-14  Bruno Haible  <bruno@clisp.org>
83583
83584         * m4/sig_atomic_t: New file, from GNU gettext.
83585         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
83586
83587 2003-10-14  Bruno Haible  <bruno@clisp.org>
83588
83589         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
83590         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
83591         Also use volatile where needed.
83592
83593 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83594
83595         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
83596         Change maintainer from Bruno Haible to 'all'.
83597
83598 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83599
83600         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
83601
83602 2003-10-12  Paul Eggert  <eggert@twinsun.com>
83603
83604         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
83605         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
83606         and define in terms of the other primitives.
83607         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
83608         (SIZE_MAX): Define if not already defined.
83609         (array_size_overflow): New function.
83610         (xalloc_die): Abort instead of exiting if 'error' returns.
83611         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
83612         (xmalloc, xrealloc): Use them.
83613         (xcalloc): Check for address arithmetic overflow.
83614         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
83615         a bit faster than strcpy.
83616
83617 2003-10-10  Simon Josefsson  <jas@extundo.com>
83618
83619         * modules/argp (Depends-on): Add restrict and strcase.
83620
83621 2003-10-10  Simon Josefsson  <jas@extundo.com>
83622
83623         * m4/argp.m4: Add AC_C_INLINE.
83624
83625 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83626
83627         Merge getpass from libc, plus a few fixes.
83628
83629         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
83630         Include <stdbool.h>.
83631         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
83632         __fsetlocking to empty.
83633         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
83634         do include <bits/libc-lock.h>.
83635         Do not include <fcntl.h>; not needed.
83636         [_LIBC]: Include <wchar.h>.
83637         (NOTCANCEL_MODE): New macro.
83638         (flockfile, funlockfile) [_LIBC]: New macros.
83639         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
83640         [!_LIBC]: New macros.
83641         (call_fclose): New function.
83642         (getpass): Use it.  Save tty stream separately; this simplifies the
83643         code and makes it more reliable if stdin happens to equal stdout.
83644         Invoke __fsetlocking on tty.
83645         Handle thread cancellation if needed.
83646         Namespace cleanup (use __tcgetattr, __getline).
83647         Use bool for Booleans.
83648         [USE_IN_LIBIO]: Handle wide streams.
83649         [!_LIBC]: Unconditionally do the fseek, since we don't know what
83650         stream might go where.
83651
83652         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
83653         doesn't have to include <stdio.h> before us.
83654         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
83655         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
83656         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
83657         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
83658         if not declared, so that we can use getpass.c code from libc without
83659         rewriting it.
83660         (flockfile, ftrylockfile, funlockfile): New macros.
83661
83662 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83663
83664         * modules/getpass: Depend on stdbool.
83665
83666 2003-10-08  Paul Eggert  <eggert@twinsun.com>
83667
83668         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
83669
83670 2003-10-07  Karl Berry  <karl@gnu.org>
83671
83672         * config/config.{guess,sub}: update from config.
83673
83674 2003-10-06  Jim Meyering  <jim@meyering.net>
83675             Bruno Haible  <bruno@clisp.org>
83676
83677         This lets translators provide better translations for the
83678         "Written by ..." part of --version output.
83679         * lib/version-etc.h: Include stdarg.h.
83680         (version_etc_copyright): Declare as readonly.
83681         (version_etc): Make this function variadic with a NULL-terminated list
83682         of author name strings.
83683         (version_etc_va): New declaration.
83684         * lib/version-etc.c: Include stdarg.h, stdlib.h.
83685         (version_etc_copyright): Declare as readonly.
83686         (version_etc_va): New function. Provide a different translatable string
83687         for each possible number of authors < 10. Abbreviate when there are 10
83688         authors or more.
83689         (version_etc): Make this function variadic. Call version_etc_va.
83690         Suggestion from Gary V. Vaughan.
83691
83692         * lib/long-options.h (parse_long_options): Change prototype: the
83693         authors string is moved to the end and becomes variadic.
83694         * lib/long-options.c: Include stdarg.h.
83695         (parse_long_options): Make this function variadic, too.
83696         Call version_etc_va, not version_etc.
83697
83698 2003-10-06  Bruno Haible  <bruno@clisp.org>
83699
83700         * modules/version-etc-2: Remove file.
83701         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
83702
83703 2003-10-06  Bruno Haible  <bruno@clisp.org>
83704
83705         * modules/fatal-signal: New file.
83706         * MODULES.html.sh (func_all_modules): Add fatal-signal.
83707
83708 2003-10-06  Bruno Haible  <bruno@clisp.org>
83709
83710         * m4/fatal-signal.m4: New file.
83711         * m4/signalblocking.m4: New file, from GNU gettext.
83712
83713 2003-10-06  Bruno Haible  <bruno@clisp.org>
83714
83715         * lib/version-etc-2.h: Remove file.
83716         * lib/version-etc-2.c: Remove file.
83717
83718 2003-10-06  Bruno Haible  <bruno@clisp.org>
83719
83720         * lib/fatal-signal.h: New file, from GNU gettext.
83721         * lib/fatal-signal.c: New file, from GNU gettext.
83722
83723 2003-10-05  Paul Eggert  <eggert@twinsun.com>
83724
83725         * README: Rework advice for preventing empty .o files.
83726         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
83727         not <sys/types.h>.
83728
83729 2003-10-04  Karl Berry  <karl@gnu.org>
83730
83731         * lib/argp*: update from libc.
83732
83733 2003-10-04  Karl Berry  <karl@gnu.org>
83734
83735         * config/config.{guess,sub}: update from config.
83736
83737 2003-10-02  Bruno Haible  <bruno@clisp.org>
83738
83739         * modules/lchown (Include): Add lchown.h.
83740         * modules/time_r (Include): Use "..." syntax.
83741         * modules/xgetdomainname (Include): Add xgetdomainname.h.
83742
83743 2003-10-01  Simon Josefsson  <jas@extundo.com>
83744
83745         * MODULES.html.sh (func_all_modules): Move gethostname from section
83746         'based on' to section 'lacking' POSIX:2001.
83747
83748 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
83749
83750         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
83751         to output mode on the same stream.
83752
83753 2003-09-29  Paul Eggert  <eggert@twinsun.com>
83754
83755         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
83756         Fix arg typo in previous patch.
83757
83758 2003-09-28  Jim Meyering  <jim@meyering.net>
83759
83760         * lib/error.c: Correct cpp indentation.
83761
83762 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83763
83764         * modules/free: New file.
83765
83766 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83767
83768         * m4/free.m4: New file.
83769
83770 2003-09-27  Paul Eggert  <eggert@twinsun.com>
83771
83772         * lib/minmax.h (MIN, MAX)
83773         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
83774         Omit the special code that used __typeof__, since we worry that
83775         it could be more trouble than it's worth.  See:
83776         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
83777         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
83778
83779         * lib/free.c: New file.
83780
83781 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
83782
83783         Trivial fixes to Makefile.am parts of module listings.
83784         * modules/strstr: Append strstr.h to lib_SOURCES.
83785         * modules/strcase: Likewise, for strcase.h.
83786
83787 2003-09-27  Karl Berry  <karl@gnu.org>
83788
83789         * config/mkinstalldirs: update from automake.
83790
83791 2003-09-26  Paul Eggert  <eggert@twinsun.com>
83792
83793         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
83794         (error_tail): Do not loop, reallocating temporary buffer, since
83795         the output cannot contain more wide characters than the input
83796         contains bytes, the size must be big enough already.  This avoids
83797         one potential size overflow calculation.  Check for size overflow
83798         when calculating temporary buffer size.  Free temporary buffer
83799         when done, if it was allocated with malloc; this plugs a memory
83800         leak.  Remove casts from void * to pointers, that are no longer
83801         needed now that we're assuming C89 or better.
83802
83803         Merge error changes from glibc.
83804
83805         * lib/error.c, error.h: Update copyright notice header to match glibc.
83806         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
83807         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
83808         Disable cancellation while printing error.
83809         * lib/error.h: Prepend __ to parameter names.
83810
83811 2003-09-26  Jim Meyering  <jim@meyering.net>
83812
83813         * lib/error.c (error_tail): Move some declarations
83814         into inner scope where the local variables are used.
83815
83816 2003-09-26  Bruno Haible  <bruno@clisp.org>
83817
83818         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
83819         stpncpy().
83820         Don't define stpncpy through config.h; it's now done through stpncpy.h.
83821
83822 2003-09-26  Bruno Haible  <bruno@clisp.org>
83823
83824         * lib/stpncpy.h (gnu_stpncpy): New declaration.
83825         (stpncpy): Define as alias for gnu_stpncpy.
83826         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
83827
83828 2003-09-25  Simon Josefsson  <jas@extundo.com>
83829
83830         * lib/xgetdomainname.h: New file.
83831         * lib/xgetdomainname.c: New file.
83832
83833 2003-09-25  Simon Josefsson  <jas@extundo.com>
83834             Bruno Haible  <bruno@clisp.org>
83835
83836         * modules/getdomainname: New file.
83837         * modules/xgetdomainname: New file.
83838         * MODULES.html.sh (func_all_modules): Add getdomainname,
83839         xgetdomainname.
83840
83841 2003-09-25  Simon Josefsson  <jas@extundo.com>
83842             Bruno Haible  <bruno@clisp.org>
83843
83844         * m4/getdomainname.m4: New file.
83845
83846 2003-09-25  Simon Josefsson  <jas@extundo.com>
83847             Bruno Haible  <bruno@clisp.org>
83848
83849         * lib/getdomainname.h: New file.
83850         * lib/getdomainname.c: New file.
83851
83852 2003-09-25  Karl Berry  <karl@gnu.org>
83853
83854         * lib/argp-fmtstream.c, argp-help.c: update from libc.
83855
83856 2003-09-25  Karl Berry  <karl@gnu.org>
83857
83858         * config/install-sh: update from automake.
83859
83860 2003-09-25  Bruno Haible  <bruno@clisp.org>
83861
83862         * modules/version-etc-2: New file, from modules/version-etc with
83863         modifications.
83864         * MODULES.html.sh (func_all_modules): Add version-etc-2.
83865
83866 2003-09-25  Bruno Haible  <bruno@clisp.org>
83867
83868         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
83869         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
83870
83871 2003-09-24  Simon Josefsson  <jas@extundo.com>
83872
83873         * modules/xgethostname: Add xgethostname.h.
83874
83875 2003-09-24  Paul Eggert  <eggert@twinsun.com>
83876
83877         * lib/linebuffer.c (freebuffer): Don't free the argument, just
83878         the buffer associated with the argument.  Bug reported by
83879         Simon Josefsson.
83880
83881 2003-09-24  Paul Eggert  <eggert@twinsun.com>
83882
83883         * README: Document assumptions that 'int' is at least 32 bits
83884         wide, that integer arithmetic is 2's complement without overflow,
83885         that there are no holes in integer values, that adding sizes of
83886         two nonoverlapping objects can't overflow, and that all-bits-zero
83887         yields scalar zero.  Fix spelling and capitalization typos.
83888
83889 2003-09-19  Karl Berry  <karl@gnu.org>
83890
83891         * lib/argp.h: update from libc.
83892
83893 2003-09-17  Paul Eggert  <eggert@twinsun.com>
83894
83895         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
83896         to avoid spurious warnings like "AC_RUN_IFELSE was called before
83897         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
83898
83899 2003-09-17  Paul Eggert  <eggert@twinsun.com>
83900
83901         * gnulib-tool: Use "test -h", not "test -L", for portability
83902         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
83903         (tags_regexp): Remove, since \| doesn't conform to POSIX.
83904         (sed_extract_prog): Issue s commands one-by-one, rather than
83905         using \| in one s command.
83906
83907 2003-09-16  Paul Eggert  <eggert@twinsun.com>
83908
83909         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
83910         input error, instead of returning NULL the next time we are called
83911         (and therefore losing track of errno).
83912
83913 2003-09-16  Bruno Haible  <bruno@clisp.org>
83914
83915         * gnulib-tool (func_create_testdir): Warn about duplicated
83916         dependencies.
83917
83918 2003-09-15  Paul Eggert  <eggert@twinsun.com>
83919
83920         * modules/argmatch, modules/fatal, modules/obstack,
83921         modules/xalloc, modules/xgethostname: Sort dependencies by
83922         importance, not alphabetically.
83923
83924 2003-09-15  Paul Eggert  <eggert@twinsun.com>
83925
83926         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
83927         fails, so that the caller gets the proper errno.
83928
83929         * lib/readutmp.c (read_utmp): Likewise.
83930         Check for fstat error.  Close stream and free storage
83931         when failing.
83932
83933 2003-09-14  Karl Berry  <karl@gnu.org>
83934
83935         * config/srclist.txt (strdup.c): disable for c89 changes.
83936
83937 2003-09-14  Jim Meyering  <jim@meyering.net>
83938
83939         * lib/getloadavg.c: Correct cpp indentation.
83940         * lib/strdup.c: Likewise.
83941         * lib/vasnprintf.c: Likewise.
83942
83943 2003-09-14  Bruno Haible  <bruno@clisp.org>
83944
83945         * modules/fwriteerror: New file.
83946         * MODULES.html.sh (func_all_modules): Add fwriteerror.
83947
83948 2003-09-14  Bruno Haible  <bruno@clisp.org>
83949
83950         * lib/fwriteerror.h: New file.
83951         * lib/fwriteerror.c: New file.
83952
83953 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83954
83955         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
83956         modules/xgethostname, modules/xalloc: Depend on exit.
83957
83958 2003-09-12  Paul Eggert  <eggert@twinsun.com>
83959
83960         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
83961
83962         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
83963         and AC_MINIX, too, so that their extensions are available.
83964
83965         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
83966         This macro has been superseded by gl_BACKUPFILE.
83967
83968         More patches to assume C89 or better.
83969
83970         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
83971
83972         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
83973         unconditionally.
83974         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
83975         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
83976         Include <string.h>, <stdlib.h> unconditionally.
83977         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
83978         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
83979         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
83980         headers or for string.h.
83981         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
83982         or strtoul.
83983
83984         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
83985         headers.
83986         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
83987         * m4/userspec.m4 (gl_USERSPEC): Likewise.
83988         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
83989         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
83990         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
83991         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
83992         memcpy, memset.
83993         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
83994         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
83995         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
83996         strtol.
83997         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
83998         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
83999         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
84000         strtoul.
84001
84002 2003-09-12  Paul Eggert  <eggert@twinsun.com>
84003
84004         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
84005         * lib/obstack.c [!defined _LIBC]: Likewise.
84006         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
84007         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
84008         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
84009
84010         More changes to assume C89 or better.
84011
84012         * lib/error.c (error_tail): Assume vprintf.
84013
84014         * lib/argmatch.c (getenv): Remove decl.
84015         * lib/progreloc.c (get_full_program_name): Define via prototype.
84016         * lib/setenv.c (clearenv): Likewise.
84017         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
84018         needed.
84019         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
84020         (malloc, memcpy): Remove decls.
84021         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
84022         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
84023         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
84024         (memcpy): Remove macro.
84025         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
84026         (__P): Remove.  All uses removed.
84027         (PTR): Remove.  All uses changed to void *.
84028         (CHAR_BIT, NULL): Remove.
84029         (spaces, zeros, memset_space, memset_zero)
84030         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
84031         Remove.
84032         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
84033         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
84034         Define with prototype.
84035         Remove now-unnecessary prototype decl.
84036         (extra_args_spec): Assume ANSI C.  All uses changed.
84037         (extra_args_spec_iso): Remove.
84038         (my_strftime, emacs_strftimeu): Define via prototype.
84039         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
84040         unconditionally.
84041         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
84042         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
84043         (strtoul, strtol): Remove decls.
84044         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
84045         LONG_MAX): Remove.
84046         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
84047         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
84048         (LOCALE_PARAM_PROTO): New macro.
84049         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
84050         (INTERNAL (strtol), strtol): Define with a prototype.
84051         (PARAMS): Remove.  All uses removed.
84052         * lib/tempname.c: Include <string.h> unconditionally.
84053         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
84054         * lib/xgethostname.c (main): Define with a prototype.
84055         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
84056         Include <stdlib.h> unconditionally.
84057         (calloc, malloc, realloc, free): Remove decls.
84058         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
84059         Include <stdlib.h> unconditionally.  Sort include file names.
84060         (strtod): Remove.
84061         (xstrtod): Define with a prototype.
84062         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
84063         (strtol, strtoul): Remove decls.
84064
84065 2003-09-11  Paul Eggert  <eggert@twinsun.com>
84066
84067         More patches to assume C89 or better.
84068         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
84069         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
84070         string.h, memchr, STDC_HEADERS.
84071
84072 2003-09-11  Paul Eggert  <eggert@twinsun.com>
84073
84074         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
84075         Include <stdlib.h>, <string.h> unconditionally.
84076         Remove now-unnecessary cast to char *.
84077         * lib/strnlen.c: Include <string.h> unconditionally.
84078         * lib/yesno.c (yesno): Define with a prototype.
84079
84080 2003-09-11  Bruno Haible  <bruno@clisp.org>
84081
84082         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
84083
84084 2003-09-10  Jim Meyering  <jim@meyering.net>
84085
84086         * lib/error.c: Correct indentation of cpp directives.
84087
84088 2003-09-10  Bruno Haible  <bruno@clisp.org>
84089
84090         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
84091         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
84092         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
84093         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
84094         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
84095         <stdlib.h> and <string.h> checks.
84096         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
84097         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
84098
84099 2003-09-10  Bruno Haible  <bruno@clisp.org>
84100
84101         * lib/strcspn.c: Include <string.h> unconditionally.
84102         * lib/strpbrk.c: Include <string.h> unconditionally.
84103         * lib/strstr.c: Include <string.h> unconditionally.
84104         * lib/unicodeio.c: Include <string.h> unconditionally.
84105         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
84106         * lib/unsetenv.c: Likewise.
84107         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
84108         * lib/yesno.c: Include <stdlib.h> unconditionally.
84109         (rpmatch): Add prototype.
84110
84111 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84112
84113         More patches to assume C89 or better.
84114         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
84115         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
84116         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
84117         or for string.h.
84118         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
84119         stdlib.h.
84120         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
84121         C headers.
84122         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
84123         string.h.
84124         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
84125         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
84126         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
84127         or for string.h.
84128         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
84129         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
84130         C headers.
84131         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
84132         memcpy.
84133         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
84134         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
84135         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
84136         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
84137         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
84138         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
84139         string.h, free.
84140         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
84141         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
84142         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
84143         C headers, or for string.h.
84144         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
84145         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
84146         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
84147         headers, memory.h, stdlib.h, string.h, strings.h.
84148         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
84149         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
84150         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
84151         strchr.
84152         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
84153         headers, memory.h, string.h.
84154         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
84155         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
84156         free.
84157         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
84158         headers.
84159         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
84160         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
84161         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
84162         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
84163         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
84164
84165 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84166
84167         More K&R removal.
84168
84169         * lib/acosl.c (main): Use a prototype.
84170         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
84171         tanl.c: Likewise.
84172
84173         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
84174
84175         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
84176         (getopt, etopt_long, getopt_long_only, _getopt_internal)
84177         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
84178         with a prototype.
84179         * lib/getopt.c (const): Remove macro.
84180         Include <string.h> unconditionally.
84181         (my_index): Remove; all uses changed to strchr.
84182         (strlen): Remove decl.
84183         (exchange): Remove forward decl; no longer needed.
84184         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
84185         Define with prototype.
84186         * lib/getopt1.c (const): Remove macro.
84187         (getopt_long, getopt_long_only, main): Define with prototype.
84188
84189         * lib/getugroups.c: Include <string.h> unconditionally.
84190
84191         * lib/getusershell.c: Include <stdlib.h> unconditionally.
84192         (getusershell, setusershell, endusershell, readname, main):
84193         Define with prototypes.
84194
84195         * lib/group-member.c: Include group-member.h first.
84196         Include <stdlib.h> unconditionally.
84197
84198         * lib/hard-locale.c: Include hard-locale.h first.
84199         Include <stdlib.h>, <string.h> unconditionally.
84200
84201         * lib/hash.c (free, malloc): Remove decls.
84202         Include <stdlib.h> unconditionally.
84203
84204         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
84205         (getenv): Do not declare.
84206
84207         * lib/idcache.c: Include <string.h> unconditionally.
84208
84209         * lib/long-options.c: Include long-options.h first, to test interface.
84210         Include <stdlib.h> unconditionally.
84211
84212         * lib/makepath.c: Include makepath.h first, to test interface.
84213         Include <stdlib.h> and <string.h> unconditionally.
84214
84215         * lib/linebuffer.c: Include <stdlib.h>.
84216         (free): Remove decl.
84217
84218         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
84219         stddef.h. rpl_malloc returns void *, not char *.
84220         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
84221         prototype.
84222
84223         * lib/md5.h: Include <limits.h> unconditionally.
84224         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
84225         (__P): Remove; all uses removed.
84226         * lib/md5.c: Include "md5.h" first.
84227         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
84228         md5_buffer, md5_process_bytes, md5_process_block):
84229         Define with prototypes.
84230         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
84231         * lib/sha.c: Include "sha.h" first.
84232         Include <stdlib.h>, <string.h> unconditionally.
84233
84234         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
84235         * lib/memcmp.c (__ptr_t): Likewise.
84236         * lib/memrchr.c (__ptr_t): Likewise.
84237         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
84238         Include <string.h> unconditionally.
84239         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
84240         * lib/memchr.c: Include <stdlib.h> unconditionally.
84241         * lib/memchr.c (LONG_MAX): Remove.
84242         * lib/memrchr.c (LONG_MAX): Likewise.
84243         * lib/memchr.c (__memchr): Define via a prototype.
84244         * lib/memrchr.c (__memrchr): Likewise.
84245         * lib/memcmp.c (__P): Remove, and remove all uses.
84246         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
84247         Remove forward decls; no longer needed.
84248         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
84249         Use types required by C89 in prototype.
84250
84251         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
84252         * lib/savedir.c: Likewise.
84253         * lib/mkdir.c (free): Remove decl.
84254         * lib/rmdir.c (rmdir): Define with a prototype.
84255         * lib/savedir.c: Include savedir.h first, to test interface.
84256
84257         * lib/mktime.c (STDC_HEADERS): Remove.
84258         Include <stdlib.h>, <string.h> unconditionally.
84259
84260         * lib/modechange.c: Include <stdlib.h> unconditionally.
84261         (malloc): Remove decl.
84262
84263         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
84264         (free): Remove decl.
84265
84266         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
84267         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
84268         (This type really should be intptr_t, but that's a C99ism.)
84269         (_obstack_memcpy): Remove: all uses changed to memcpy.
84270         Include <string.h> unconditionally.
84271         (struct obstack): Assume __STDC__ for types of members
84272         chunkfun, freefun, extra_arg.
84273         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
84274         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
84275         obstack_begin, obstack_specify_allocation,
84276         obstack_specify_allocation_with_arg, obstack_chunkfun,
84277         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
84278         Remove unprototyped decls and the macros that use them.
84279         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
84280         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
84281         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
84282         (defined __STDC__ && __STDC__)]:
84283         Remove nonprototyped code.
84284         Include <stdlib.h> unconditionally.
84285         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
84286         _obstack_allocated_p, _obstack_free, obstack_free,
84287         _obstack_memory_used, print_and_abort):
84288         Define using prototypes.
84289         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
84290         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
84291         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
84292         obstack_next_free, obstack_object_size, obstack_room) [0]:
84293         Remove unused, unprototyped code.
84294
84295         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
84296
84297         * lib/physmem.c (physmem_total, physmem_available, main): Define
84298         with prototypes.
84299
84300         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
84301         (main): Define with a prototype.
84302
84303         * lib/posixver.c (getenv): Remove decl.
84304
84305         * lib/putenv.c (malloc): Returns void *, not char *.
84306         Include <string.h> unconditionally.
84307         (strchr, memcpy, NULL): Do not define.
84308
84309         * lib/readtokens.c: Include readtokens.h first, to test interface.
84310         Include <stdlib.h>, <string.h> unconditionally.
84311         (init_tokenbuffer): Define with a prototype.
84312
84313         * lib/regex.c (PARAMS): Remove.  All uses removed.
84314         All uses of _RE_ARGS removed, too.
84315         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
84316         unconditionally.
84317         (bzero): Assume memset exists.
84318         (memcmp, memcpy, NULL): Remove.
84319         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
84320         char, or assignments to local vars of type signed char.
84321         (init_syntax_once, PREFIX(extract_number_and_incr),
84322         PREFIX(print_partial_compiled_pattern),
84323         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
84324         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
84325         PREFIX(regex_grow_registers), PREFIX(regex_compile),
84326         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
84327         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
84328         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
84329         wcs_compile_range, byte_compile_range, truncate_wchar,
84330         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
84331         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
84332         count_mbs_length, wcs_re_match_2_internal,
84333         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
84334         PREFIX(alt_match_null_string_p),
84335         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
84336         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
84337         regfree, PREFIX(extract_number)): Define with prototype.  Remove
84338         now-unnecessary declaration, if any.
84339         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
84340         regcomp, regexec):
84341         Remove now-unnecessary casts among pointer types.
84342         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
84343
84344         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
84345         (free): Remove decl.
84346
84347         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
84348
84349         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
84350         (free): Remove decl.
84351
84352         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
84353         * lib/xgetcwd.c: Likewise.
84354
84355         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
84356         (free): Remove decl.
84357
84358         * lib/strchrnul.c (strchrnul): Define with a prototype.
84359         Fix bug: c_in was not converted to char before searching.
84360
84361         The following changes are not K&R related:
84362
84363         * lib/group-member.h: Include <sys/types.h>, so that this file is
84364         self-contained.
84365         * lib/makepath.h: Likewise.
84366
84367         * lib/getusershell.c (readname, default_index, line_size, readname):
84368         Use size_t, not int, for sizes.
84369         (readname): If the size overflows, report an error instead of
84370         looping forever.
84371
84372 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84373
84374         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
84375         libc.
84376
84377 2003-09-09  Paul Eggert  <eggert@twinsun.com>
84378
84379         * README: New section: portability guidelines.
84380
84381 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
84382
84383         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
84384         C89 spec.
84385
84386 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
84387
84388         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
84389
84390 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84391
84392         Assume C89 or better; remove K&R cruft.
84393         A few of these changes were first proposed by Derek Robert Price
84394         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
84395
84396         * lib/addext.c: Include <string.h> unconditionally.
84397         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
84398         Don't declare getenv or malloc.
84399
84400         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
84401         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
84402         (NULL): Remove.
84403         (find_stack_direction, alloca): Use prototypes.
84404
84405         * lib/atexit.c (atexit): Define using a prototype.
84406
84407         * lib/basename.c, dirname.c, stripslash.c:
84408         Include <string.h> unconditionally.
84409
84410         * lib/bcopy.c: Include <stddef.h>.
84411         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
84412
84413         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
84414
84415         * lib/error.h (error, error_at_line, error_print_progname)
84416         [! (defined (__STDC__) && __STDC__)]: Remove decls.
84417         * lib/error.c: Include error.h first, to check interface.
84418         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
84419         (VA_START): Remove; all uses changeed to va_start.
84420         (exit, strerror): Remove decls.
84421         (error_print_progname): Prototype uncondionally.
84422         Don't include <errno.h>; no longer needed.
84423         (private_strerror): Remove.
84424         (error_tail): Always define.
84425         (error, error_at_line): Assume C89 or better; always use prototypes.
84426         * lib/fatal.c: Include "fatal.h" first, to test interface.
84427         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
84428         (VA_START): Remove; all uses changed to va_start.
84429         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
84430         this case.
84431         (exit): Remove decl.
84432         (fatal): Prototype unconditionally.  Assume va_start works.
84433         Abort at end, to pacify gcc.
84434
84435         * lib/euidaccess.c (main): Define with a prototype.
84436
84437         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
84438
84439         * lib/exitfail.c: Include <stdlib.h> unconditionally.
84440
84441         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
84442         prototypes.
84443         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
84444         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
84445         (getenv): Remove decl.
84446         (fnmatch): Define using a prototype.
84447         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
84448         (FCT): Define using a prototype.
84449
84450         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
84451
84452         * lib/gethostname.c: Include <stddef.h>.
84453         (gethostname): Define with prototype.  Length is size_t, not int.
84454
84455 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84456
84457         Assume C89 or better; remove K&R cruft.
84458         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
84459         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
84460         string.h, getenv, malloc.
84461         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
84462         headers.
84463         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
84464         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
84465         do not check for strerror.
84466         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
84467         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
84468         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
84469         do not check for doprnt or vprintf.
84470         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
84471         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
84472
84473 2003-09-08  Paul Eggert  <eggert@twinsun.com>
84474
84475         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
84476         getversion.c should have been removed then, but was accidentally
84477         preserved.
84478
84479         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
84480         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
84481
84482 2003-09-08  Karl Berry  <karl@gnu.org>
84483
84484         * config/config.sub, config.guess, srclistvars.sh: update from savannah
84485                 config, forget about prep.
84486
84487         * config/depcomp, missing: update from automake.
84488
84489 2003-09-07  Paul Eggert  <eggert@twinsun.com>
84490
84491         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
84492         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
84493
84494 2003-09-07  Paul Eggert  <eggert@twinsun.com>
84495
84496         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
84497         copy_tm_result.  Bug reported by Simon Josefsson in
84498         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
84499
84500 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84501
84502         * m4/time_r.m4: New file.
84503         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
84504         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
84505         is. Check for timegm declaration.
84506         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
84507         Do not check for gmtime_r.
84508         Replace mktime if __mktime_internal does not exist and if mktime
84509         hasn't been replaced already.
84510
84511 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84512
84513         * lib/time_r.c, lib/time_r.h: New files.
84514
84515         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
84516         __localtime_r.
84517         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
84518         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
84519
84520         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
84521         __gmtime_r.
84522         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
84523         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
84524         Include <time_r.h>.
84525
84526         * lib/timegm.c: Switch to glibc implementation, with the following
84527         changes:
84528         [defined HAVE_CONFIG_H]: Include <config.h>.
84529         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
84530         (__mktime_internal) [!defined _LIBC]: New decl.
84531         (__gmtime_r) [!defined _LIBC]: New macro and function.
84532         (timegm): Use a prototype, since gnulib assumes C89.
84533         Do not bother declaring tmp to be const, as it's not really usefu.
84534         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
84535         (timegm): Declare only if HAVE_DECL_TIMEGM.
84536
84537 2003-09-06  Paul Eggert  <eggert@twinsun.com>
84538
84539         * MODULES.html.sh (func_all_modules): Add time_r.
84540         * modules/time_r: New file.
84541         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
84542         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
84543
84544 2003-09-03  Paul Eggert  <eggert@twinsun.com>
84545
84546         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
84547         Bug reported by Lute Kamstra in
84548         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
84549
84550         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
84551         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
84552         course with correspondingly smaller numbers for tomorrow and
84553         yesterday.  From Tadayoshi Funaba.  Originally installed into
84554         sh-utils on 1999-08-07, but the patch got lost (I guess during the
84555         coreutils merge?).
84556
84557 2003-08-31  Simon Josefsson  <jas@extundo.com>
84558
84559         * modules/timegm: New file.
84560         * MODULES.html.sh (func_all_modules): Add timegm.
84561
84562 2003-08-31  Simon Josefsson  <jas@extundo.com>
84563
84564         * m4/timegm.m4: New file.
84565
84566 2003-08-31  Simon Josefsson  <jas@extundo.com>
84567
84568         * lib/timegm.h: New file.
84569         * lib/timegm.c: New file.  Based on
84570         wget-1.8.2/src/http.c:mktime_from_utc.
84571
84572 2003-08-31  Karl Berry  <karl@gnu.org>
84573
84574         * lib/argp.h: update from libc.
84575
84576 2003-08-28  Bruno Haible  <bruno@clisp.org>
84577
84578         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
84579         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
84580         followed by '#define fnmatch fnmatch_posix' gives an error.
84581
84582 2003-08-28  Bruno Haible  <bruno@clisp.org>
84583
84584         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
84585         warning on QNX, which defines O_BINARY to 000000.
84586
84587 2003-08-27  Jim Meyering  <jim@meyering.net>
84588
84589         * m4/mkstemp.m4: Require that the system mkstemp be able to create
84590         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
84591         would fail after 32.  Reported by Danny Levinson.  Details here:
84592         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
84593
84594 2003-08-24  Bruno Haible  <bruno@clisp.org>
84595
84596         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
84597         MSVC7 <stdio.h> is included later.
84598
84599 2003-08-22  Simon Josefsson  <jas@extundo.com>
84600
84601         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
84602
84603 2003-08-20  Karl Berry  <karl@gnu.org>
84604
84605         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
84606
84607 2003-08-20  Bruno Haible  <bruno@clisp.org>
84608
84609         * modules/progname: New file.
84610         * MODULES.html.sh (func_all_modules): Add progname.
84611
84612 2003-08-20  Bruno Haible  <bruno@clisp.org>
84613
84614         * lib/progname.h: New file, from GNU gettext.
84615         * lib/progname.c: New file, from GNU gettext.
84616         * lib/progreloc.c: New file, from GNU gettext.
84617
84618 2003-08-19  Jim Meyering  <jim@meyering.net>
84619
84620         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
84621         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
84622
84623 2003-08-19  Bruno Haible  <bruno@clisp.org>
84624
84625         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
84626         more.
84627
84628 2003-08-19  Bruno Haible  <bruno@clisp.org>
84629
84630         * lib/xstrdup.c: Assume <string.h> exists.
84631
84632 2003-08-18  Paul Eggert  <eggert@twinsun.com>
84633
84634         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
84635         in makefile rules.
84636
84637 2003-08-18  Jim Meyering  <jim@meyering.net>
84638
84639         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
84640         * m4/lib-ld.m4: Likewise.
84641
84642 2003-08-18  Jim Meyering  <jim@meyering.net>
84643
84644         * lib/setenv.h: Indent nested cpp directive.
84645         * lib/vasnprintf.c: Remove trailing blanks.
84646
84647 2003-08-17  Simon Josefsson  <jas@extundo.com>
84648
84649         * modules/xstrndup: New file.
84650         * MODULES.html.sh (func_all_modules): Add xstrndup.
84651
84652 2003-08-17  Simon Josefsson  <jas@extundo.com>
84653
84654         * modules/argp: Fix autoconf macro name. Add more dependencies.
84655
84656 2003-08-17  Simon Josefsson  <jas@extundo.com>
84657
84658         * m4/xstrndup.m4: New file.
84659
84660 2003-08-17  Simon Josefsson  <jas@extundo.com>
84661
84662         * m4/argp.m4: New file.
84663
84664 2003-08-17  Simon Josefsson  <jas@extundo.com>
84665             Bruno Haible  <bruno@clisp.org>
84666
84667         * lib/xstrndup.h: New file.
84668         * lib/xstrndup.c: New file.
84669
84670 2003-08-17  Bruno Haible  <bruno@clisp.org>
84671
84672         * modules/strndup (Files, Include): Add lib/strndup.h.
84673
84674 2003-08-17  Bruno Haible  <bruno@clisp.org>
84675
84676         * modules/euidaccess (Files): Add lib/euidaccess.h.
84677
84678 2003-08-17  Bruno Haible  <bruno@clisp.org>
84679
84680         * lib/strndup.h: New file.
84681
84682 2003-08-17  Bruno Haible  <bruno@clisp.org>
84683
84684         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
84685         like AC_GNU_SOURCE.
84686         * modules/extensions (configure.ac): Comment out the invocation of
84687         gl_USE_SYSTEM_EXTENSIONS.
84688
84689 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84690
84691         Merges from coreutils, etc.
84692         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
84693         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
84694         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
84695         fixing a typo.
84696         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
84697         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
84698
84699 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84700
84701         Document merge from coreutils.
84702         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
84703         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
84704         * modules/utime: Add m4/utimes-null.m4.
84705
84706 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84707
84708         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
84709         space, undoing this 2003-08-12 change:
84710         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
84711
84712 2003-08-16  Paul Eggert  <eggert@twinsun.com>
84713
84714         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
84715         strtoul.c from libc, undoing this 2003-08-12 change:
84716         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
84717
84718 2003-08-16  Jim Meyering  <jim@meyering.net>
84719
84720         Merges from coreutils.
84721         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
84722         prefix.  Adjust cache variables similarly.  Create 500 rather than
84723         just 300 files, to exercise bug on Darwin6.5, too.
84724         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
84725         $missing_dir.
84726         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
84727         AM_SYS_POSIX_TERMIOS.
84728         Reported by mkc@mathdogs.com.
84729         Also change use of $am_cv_sys_posix_termios
84730         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
84731         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
84732         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
84733         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
84734         in /proc/mounts until it finds one with matching device number.  This
84735         is unnecessary when the FILE argument *is* a mount point.  No stat call
84736         is necessary in that case.  So, disable the statvfs-testing code on
84737         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
84738         as RedHat bug# 84846.
84739         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
84740         to 1MB, so as not to render systems with no stack size limit (e.g.,
84741         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
84742         Include <unistd.h>.  On some systems,
84743         it is required for the definition of _SC_PAGESIZE.
84744
84745 2003-08-16  Jim Meyering  <jim@meyering.net>
84746
84747         Merge from coreutils.
84748         * lib/xstrtoimax.c: #else #if -> #elif.
84749         * lib/xstrtoumax.c: Likewise.
84750
84751 2003-08-16  Jim Meyering  <jim@meyering.net>
84752
84753         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
84754         * m4/utimes.m4: Removed.
84755         * m4/utimes-null.m4: Renamed from utimes.m4.
84756
84757         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
84758         to 1MB, so as not to render systems with no stack size limit (e.g.,
84759         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
84760         Include <unistd.h>.  On some systems,
84761         it is required for the definition of _SC_PAGESIZE.
84762
84763 2003-08-16  Jim Meyering  <jim@meyering.net>
84764         and Paul Eggert  <eggert@cs.ucla.edu>
84765
84766         Merges from coreutils, etc.
84767
84768         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
84769         using the latest version from cvs.  This avoids problems with #line
84770         directives using a vendor (Sun) compiler.
84771         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
84772         Don't set GETGROUPS_LIB here; now it's
84773         done via getgroups.m4's wrapper function.
84774         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
84775         rather than just in sh-util/configure.in, so that the
84776         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
84777         same.
84778         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
84779         AC_FUNC_GETLOADAVG where to find getloadavg.c.
84780         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
84781         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
84782         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
84783         Remove code that is now done by the newly-required macros.
84784         Append $(EXEEXT) to DF_PROG.
84785         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
84786         Do not invoke or require the following here,
84787         since prereq.m4 or some gnulib .m4 now does this for us:
84788         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
84789         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
84790         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
84791         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
84792         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
84793         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
84794         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
84795         AC_FUNC_OBSTACK.
84796         Do not replace the following functions, as this is now the job
84797         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
84798         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
84799         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
84800         atexit getpass, strdup, getpagesize.
84801         Replace 'raise'.
84802         Do not check for the following functions, as this is now the job
84803         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
84804         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
84805         setregid.
84806         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
84807         Check for sys/sysctl.h.
84808         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
84809         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
84810         of checking for ssize_t ourselves.
84811
84812         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
84813         Require every macro that gnulib/modules/* suggests for us.
84814         (jm_PREREQ_ADDEXT): New macro.
84815         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
84816         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
84817
84818         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
84819         (gl_PHYSMEM): Use it.
84820         Also check for `table' function.
84821         Check for new headers and functions.
84822         Add check for sys/sysmp.h.
84823         With suggestions from Kaveh Ghazi.
84824         Ignore headers that are present but cannot be compiled.  This
84825         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
84826         C 5.4.
84827
84828 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84829
84830         Document merge from coreutils.
84831         * modules/userspec: Depend on posixver.
84832         * modules/strftime: Depend on tzset.
84833
84834 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84835
84836         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
84837         rather than tab, after '#' in shell-script copyright notices.
84838         Suggested by Bruno Haible.
84839
84840 2003-08-15  Paul Eggert  <eggert@twinsun.com>
84841
84842         * config/srclist-update: Use three spaces, rather than tab, after '#'
84843         in shell-script copyright notices.  Suggested by Bruno Haible.
84844         Remove unnecessary parenthesization in regular expression.
84845
84846 2003-08-15  Jim Meyering  <jim@meyering.net>
84847
84848         Merge from coreutils.
84849         * lib/xgethostname.c: Include <stdlib.h>.
84850         (xghostname): Don't exit for anything other than memory-related
84851         failure; just return NULL.
84852         * lib/userspec.c: Include "posixver.h".
84853         (parse_user_spec): Accept `.' as a separator only
84854         in pre-POSIX-200112 mode.
84855         * lib/strtoimax.c: Use #elif rather than #else #if.
84856         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
84857         Remove function, now that we can rely on a working tzset function.
84858         [!_LIBC]: Ensure that the required autoconf test has been run.
84859         [!defined _NL_CURRENT && HAVE_STRFTIME]:
84860         Use underlying_strftime for %r.
84861         * lib/sha.c: Merge in some clean-up and optimization changes from
84862         glibc.
84863         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
84864         Ensure that it is a multiple of 64.
84865         Rearrange loop exit tests so as to avoid performing an
84866         additional fread after encountering an error or EOF.
84867         * lib/realloc.c: Update copyright date.
84868
84869 2003-08-15  Jim Meyering  <jim@meyering.net>
84870         and Paul Eggert  <eggert@twinsun.com>
84871
84872         Merge from coreutils.
84873         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
84874         member but strut utmpx does not.  Needed for AIX 4.3.3.
84875         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
84876
84877 2003-08-15  Jim Meyering  <jim@meyering.net>
84878         and Paul Eggert  <eggert@cs.ucla.edu>
84879
84880         Merges from coreutils, etc.
84881         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
84882         Require gl_FUNC_TZSET_CLOBBER.
84883         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
84884         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
84885         members.
84886
84887 2003-08-14  Paul Eggert  <eggert@twinsun.com>
84888
84889         Help the merge from coreutils.
84890         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
84891         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
84892         * m4/tzset.m4: Use it too.
84893
84894 2003-08-14  Paul Eggert  <eggert@twinsun.com>
84895
84896         * modules/tzset: New file.
84897
84898 2003-08-14  Jim Meyering  <jim@meyering.net>
84899
84900         Merges from coreutils.
84901         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
84902         variable names, rather than @FNMATCH_H@.
84903         * modules/alloca: Likewise for $(ALLOCA_H).
84904
84905         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
84906         the three copies of the literal target, `fnmatch.h'.
84907         * modules/alloca (alloca.h): Likewise.
84908
84909 2003-08-14  Jim Meyering  <jim@meyering.net>
84910
84911         Merge from coreutils.
84912         * m4/tzset.m4: New file.
84913         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
84914         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
84915         otherwise, AIX 5.1 systems would end up using the latter.
84916         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
84917         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
84918         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
84919         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
84920
84921 2003-08-14  Jim Meyering  <jim@meyering.net>
84922
84923         Merge from coreutils.
84924         * lib/obstack.h: Whitespace changes.
84925         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
84926         and xcalloc return values.
84927         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
84928         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
84929         hang on OSF/1 5.1 for DIR on both local and remote file systems.
84930         Reported by (and fix confirmed by) Nelson H. F. Beebe.
84931         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
84932         error from mntctl.
84933         Use mntctl's return value to drive the entry-processing loop, since
84934         we can't rely on the value of the vmt_length member in the last
84935         entry.  On some systems doing so could result in exhausting
84936         virtual memory.  Based in part on a patch from Mike Jetzer.
84937
84938 2003-08-14  Jim Meyering  <jim@meyering.net>
84939         and Paul Eggert  <eggert@twinsun.com>
84940
84941         Merges from coreutils, plus other fixes.
84942         * lib/physmem.c: Merge in portability changes from gcc/libiberty
84943         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
84944         for credits and details.  Thanks to Kaveh Ghazi for helping
84945         to keep these files in sync.
84946         (ARRAY_SIZE): Define it.
84947         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
84948         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
84949         (memcasecmp): Don't assume size_t fits in unsigned int.
84950         Remove casts and duplicate code.
84951         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
84952         (memcpy): Remove definition.
84953         Merge in some clean-up and optimization changes from glibc.
84954         [BLOCKSIZE]: Move definition to top of file.
84955         Ensure that it is a multiple of 64.
84956         Rearrange loop exit tests so as to avoid performing an
84957         additional fread after encountering an error or EOF.
84958         * lib/md5.h (md5_uintptr): Define.
84959         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
84960         return to the initial working directory.  Preserve errno
84961         for caller.
84962         * lib/idcache.c: Include "xalloc.h".
84963         (xmalloc, xrealloc): Remove decls.
84964         (getuser): Remove casts no longer required in C89.
84965         * lib/human.c: Include stdio.h, for sprintf.
84966         * lib/group-member.c: Include "xalloc.h".
84967         (xmalloc, xrealloc): Remove decls.
84968         (get_group_info): Remove casts no longer required in C89.
84969         * lib/getusershell.c (readname): Remove casts no longer required in
84970         C89.
84971         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
84972         * lib/getline.c: Whitespace fix, from coreutils.
84973
84974 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84975
84976         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
84977         Check for isascii.
84978
84979         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
84980         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
84981         Undo previous (whitespace-only) change.
84982
84983 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84984
84985         * lib/exclude.c: Include <ctype.h>
84986         (IN_CTYPE_DOMAIN): New macro.
84987         (is_space): New fn.
84988         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
84989         and empty lines.
84990
84991         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
84992         Undo previous (whitespace-only) change.
84993
84994 2003-08-13  Paul Eggert  <eggert@twinsun.com>
84995
84996         * config/srclist-update: Change update back to the old behavior,
84997         leaving whitespace alone.  Use one 'sed' command rather than a
84998         pipeline.
84999         (fixlicense): Now a variable, not a function.
85000         (remove_trailing_blanks): Remove.
85001         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
85002         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
85003         Undo previous (whitespace-only) change.
85004
85005 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85006
85007         Merge from coreutils.
85008         * modules/euidaccess: Add lib_SOURCES, include for new
85009         file euidaccess.h
85010
85011 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85012
85013         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
85014         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
85015         Normalize leading white space and remove trailing white space.
85016
85017         Merge from coreutils
85018         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
85019
85020         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
85021         0.12.1.  These files are now being upgraded automatically by
85022         ../config/srclist-update.
85023
85024 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85025
85026         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
85027         Normalize leading white space and remove trailing white space.
85028         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
85029         notice, as per ../config/srclist-update.
85030
85031         Merge from coreutils.
85032         * lib/euidaccess.h: New file.
85033         * lib/euidaccess.c: Include it.
85034         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
85035         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
85036         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
85037
85038 2003-08-12  Paul Eggert  <eggert@twinsun.com>
85039
85040         * config/srclist-update: Add copyright notice.
85041         (remove_id_lines, remove_trailing_blanks): New constants.
85042         (fixfile): Use them to normalize spacing a bit in copied files.
85043         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
85044         Normalize leading white space and remove trailing white space.
85045
85046         * config/texinfo.tex: Sync with texinfo.
85047
85048         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
85049         strtoul.c from libc, to merge coreutils whitespace changes.
85050
85051         * config/srclist.txt: Get the following m4 files from gettext:
85052         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
85053         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
85054         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
85055         wint_t.m4.
85056
85057 2003-08-12  Karl Berry  <karl@gnu.org>
85058
85059         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
85060         been made.
85061
85062 2003-08-11  Paul Eggert  <eggert@twinsun.com>
85063
85064         * modules/gnu-source, m4/gnu-source.m4:
85065         Remove; we're assuming Autoconf 2.54 or later now.
85066         Suggested by Bruno Haible.
85067         * MODULES.html.sh (func_all_modules): Remove gnu-source.
85068
85069 2003-08-11  Bruno Haible  <bruno@clisp.org>
85070
85071         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
85072
85073 2003-08-11  Bruno Haible  <bruno@clisp.org>
85074
85075         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
85076         (vasnprintf): Use it instead of wcslen.
85077
85078 2003-08-11  Bruno Haible  <bruno@clisp.org>
85079
85080         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
85081         value to ensure that _Bool promotes to int. Use #define for _Bool when
85082         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
85083
85084 2003-08-10  Karl Berry  <karl@gnu.org>
85085
85086         * lib/regex.h: update from libc (whitespace fix).
85087
85088 2003-08-09  Paul Eggert  <eggert@twinsun.com>
85089
85090         Merge some files from coreutils.  These changes were
85091         originally made by Jim Meyering.
85092         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
85093         many older Unixes require this.
85094         * lib/alloca.c (alloca): Remove cast to argument of free;
85095         no longer needed in C89.
85096         * lib/alloca_.h, regex.h: Fix white space to match
85097         what GNU indent does.
85098
85099 2003-08-09  Paul Eggert  <eggert@twinsun.com>
85100
85101         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
85102         apparently Emacs's Unicode mode got confused before my 2003-08-05
85103         checkin.
85104
85105 2003-08-08  Paul Eggert  <eggert@twinsun.com>
85106
85107         * m4/extensions.m4: New file.
85108         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
85109         Require gl_USE_SYSTEM_EXTENSIONS.
85110         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
85111         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
85112
85113 2003-08-08  Paul Eggert  <eggert@twinsun.com>
85114
85115         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
85116         * modules/extensions, modules/gnu-source: New files.
85117         * modules/timespec, modules/unlocked-io: Depend on extensions.
85118
85119 2003-08-07  Paul Eggert  <eggert@twinsun.com>
85120
85121         * modules/restrict: New file.
85122         * MODULES.html.sh (func_all_modules): Add restrict.
85123         * modules/regex: Depend on restrict.
85124
85125 2003-08-07  Paul Eggert  <eggert@twinsun.com>
85126
85127         * m4/restrict.m4: New file.
85128         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
85129
85130 2003-08-07  Bruno Haible  <bruno@clisp.org>
85131
85132         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
85133         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
85134
85135 2003-08-07  Bruno Haible  <bruno@clisp.org>
85136
85137         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
85138         makes the module 'getndelim2' compatible with the module 'getline'.
85139
85140 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85141
85142         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
85143         byte with "\201" to avoid glitches when editing that source file
85144         with multi-gnome-terminal.
85145
85146 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85147
85148         * lib/bumpalloc.h: Remove.
85149
85150 2003-08-05  Paul Eggert  <eggert@twinsun.com>
85151
85152         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
85153         * modules/bumpalloc: Remove.
85154
85155 2003-08-04  Paul Eggert  <eggert@twinsun.com>
85156
85157         * lib/getloadavg.c: Change copyright notice and spacing to conform to
85158         GNU coding style.
85159
85160         Merge from coreutils.
85161         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
85162         1. From glibc.
85163         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
85164         from Karl Berry, implemented by Jim Meyering.
85165         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
85166         from Dmitry V. Levin.
85167         Remove anachronistic cast of xrealloc.
85168         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
85169         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
85170         type. Otherwise, it wouldn't compile with at least /bin/cc on
85171         ymp-cray-unicos9.0.2.X.
85172         Combine two mostly-identical uses of alloca into one.
85173         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
85174
85175 2003-08-04  Dave Love  <d.love@dl.ac.uk>
85176
85177         [From Emacs.]
85178
85179         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
85180         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
85181         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
85182         obsolete NLIST_NAME_UNION.
85183         [__GNU__]: Undef BSD and FSCALE.
85184         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
85185
85186 2003-08-03  Paul Eggert  <eggert@twinsun.com>
85187
85188         * lib/stdbool_.h (_Bool): Make it signed char, instead of
85189         an enum type, so that it's guaranteed to promote to int.  See:
85190         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
85191
85192 2003-08-03  Karl Berry  <karl@gnu.org>
85193
85194         * config/depcomp: update from automake.
85195
85196 2003-07-31  Paul Eggert  <eggert@twinsun.com>
85197
85198         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
85199         (strerror): Don't assume that a printable int fits in 14 bytes.
85200
85201 2003-07-31  Bruno Haible  <bruno@clisp.org>
85202
85203         * modules/getpass-gnu: New file.
85204         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
85205
85206 2003-07-31  Bruno Haible  <bruno@clisp.org>
85207
85208         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
85209
85210 2003-07-24  Karl Berry  <karl@gnu.org>
85211
85212         * config/missing: update from automake.
85213
85214 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
85215             Bruno Haible  <bruno@clisp.org>
85216
85217         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
85218         * lib/getline.c (getline, getdelim): Likewise.
85219         Remove _GNU_SOURCE define; now it's defined in config.h through
85220         m4/getline.m4.
85221
85222 2003-07-23  Karl Berry  <karl@gnu.org>
85223
85224         * config/config.sub: update from prep.
85225
85226 2003-07-22  Paul Eggert  <eggert@twinsun.com>
85227
85228         * modules/xalloc (Depends-on): Add exitfail.
85229         * modules/xmemcoll: Likewise.
85230
85231 2003-07-22  Paul Eggert  <eggert@twinsun.com>
85232
85233         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
85234         over-parenthesization in macros.
85235
85236         Sync with coreutils.
85237
85238         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
85239         required by C99.
85240
85241         Use `exit_failure' for xalloc and xmemcoll instead of their own
85242         private exit-failure variables.
85243         * lib/xalloc.h (xalloc_exit_failure): Remove.
85244         * lib/xmalloc.c: Likewise.  Include exitfail.h.
85245         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
85246         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
85247         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
85248         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
85249
85250 2003-07-20  Jim Meyering  <jim@meyering.net>
85251
85252         * modules/closeout (Depends-on): Add exitfail.
85253         Suggestion from Bruno Haible.
85254
85255 2003-07-19  Karl Berry  <karl@gnu.org>
85256
85257         * config/config.sub: update from prep.
85258
85259 2003-07-18  Paul Eggert  <eggert@twinsun.com>
85260
85261         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
85262         Remove.
85263         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
85264         to test that it can stand by itself.  Include "exitfail.h".
85265         Clients should set exit_failure instead.
85266         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
85267
85268 2003-07-18  Bruno Haible  <bruno@clisp.org>
85269
85270         * modules/getndelim2: New file.
85271         * modules/getline: Share files with module getndelim2.
85272         * modules/getnline: Depend on getndelim2 instead of sharing files with
85273         it. Add getnline.c to lib_SOURCES.
85274         * MODULES.html.sh (func_all_modules): Add getndelim2.
85275
85276 2003-07-18  Bruno Haible  <bruno@clisp.org>
85277
85278         * m4/getndelim2.m4: New file.
85279         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
85280         invoke gl_PREREQ_GETNDELIM2.
85281         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
85282         gl_PREREQ_GETNDELIM2.
85283         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
85284         gl_GETNDELIM2.
85285
85286 2003-07-18  Bruno Haible  <bruno@clisp.org>
85287
85288         * lib/getndelim2.h: New file.
85289         * lib/getndelim2.c: Make into a module of its own. Include config.h,
85290         getndelim2.h.
85291         (getndelim2): Make non-static. Change return type to ssize_t.
85292         * lib/getline.h: Change argument names.
85293         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
85294         * lib/getnline.c: Include getndelim2.h.
85295
85296 2003-07-18  Andreas Schwab  <schwab@suse.de>
85297
85298         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
85299
85300 2003-07-17  Karl Berry  <karl@gnu.org>
85301
85302         * config/config.sub: update from prep.
85303
85304 2003-07-17  Bruno Haible  <bruno@clisp.org>
85305
85306         * modules/getnline: New file.
85307         * modules/getline: Add lib/getndelim2.c to source file list.
85308         * MODULES.html.sh (func_all_modules): Add getnline.
85309
85310 2003-07-17  Bruno Haible  <bruno@clisp.org>
85311
85312         * m4/getnline.m4: New file.
85313
85314 2003-07-17  Bruno Haible  <bruno@clisp.org>
85315
85316         * m4/Makefile.am.in: Remove file.
85317         * m4/Makefile.am: Remove file.
85318         * m4/Makefile.in: Remove file.
85319
85320 2003-07-17  Bruno Haible  <bruno@clisp.org>
85321
85322         * lib/getnline.h: New file.
85323         * lib/getnline.c: New file.
85324         * lib/getndelim2.c: New file, extracted from getline.c.
85325         (getndelim2): Renamed from getdelim2, with added nmax argument.
85326         * lib/getline.c: Include getndelim2.c.
85327         (getdelim2): Moved out to getndelim2.c.
85328         (getline, getdelim): Update.
85329
85330 2003-07-17  Bruno Haible  <bruno@clisp.org>
85331
85332         * lib/Makefile.am: Remove file.
85333         * lib/Makefile.in: Remove file.
85334
85335 2003-07-17  Bruno Haible  <bruno@clisp.org>
85336
85337         * configure.in: Remove file.
85338         * Makefile.in: Remove file.
85339
85340 2003-07-17  Bruno Haible  <bruno@clisp.org>
85341
85342         * MODULES.html.sh: Put the </BODY> right before </HTML>.
85343
85344 2003-07-16  Karl Berry  <karl@gnu.org>
85345
85346         * config/srclist-update: was running fixlicense twice, which caused
85347                 texinfo.tex to be nullified for some reason.  Simplify,
85348                 $gplsrc is no longer needed as far as I can see?
85349
85350 2003-07-16  Jim Meyering  <jim@meyering.net>
85351
85352         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
85353
85354 2003-07-15  Paul Eggert  <eggert@twinsun.com>
85355
85356         * config/srclist.txt: Get the following files from gettext-runtime/intl
85357         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
85358         ref-del.sin.  From Bruno Haible.
85359         * config/srclist-update (fixfile): Change grep pattern again, since the
85360         previous fix didn't work (there was another trailing $).  Use
85361         '[$]' to escape the $s.
85362
85363 2003-07-15  Karl Berry  <karl@gnu.org>
85364
85365         * lib/vasnprintf.c: update from gettext.
85366
85367 2003-07-15  Karl Berry  <karl@gnu.org>
85368
85369         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
85370         gets expanded when surrounded by '$'.
85371
85372 2003-07-15  Jim Meyering  <jim@meyering.net>
85373
85374         * modules/save-cwd: Don't depend on error.  From Derek Price.
85375
85376 2003-07-15  Jim Meyering  <jim@meyering.net>
85377
85378         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
85379
85380 2003-07-14  Simon Josefsson  <jas@extundo.com>
85381
85382         * modules/mempcpy: New file.
85383         * MODULES.html.sh (func_all_modules): Add mempcpy.
85384
85385 2003-07-14  Simon Josefsson  <jas@extundo.com>
85386
85387         * m4/mempcpy.m4: New file.
85388
85389 2003-07-14  Simon Josefsson  <jas@extundo.com>
85390
85391         * lib/mempcpy.h: New file.
85392         * lib/mempcpy.c: New file.
85393
85394 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85395
85396         * modules/getdate, modules/posixtm: Depend on mktime.
85397
85398 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85399
85400         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
85401         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
85402         unicodeio.c, unicodeio.h, unlocked-io.h:
85403         Switch from LGPL to GPL.
85404
85405 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85406
85407         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
85408         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
85409         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
85410         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
85411         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
85412         updated automatically by ../config/srclist-update.  This changes
85413         their license from LPGL to GPL.
85414
85415 2003-07-14  Paul Eggert  <eggert@twinsun.com>
85416
85417         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
85418         assumed to refer to the root of the most recent stable gettext version.
85419         * config/srclistvars.sh: Add defaults for eggert.
85420         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
85421         Match "This program" as well as "The program".  This is needed
85422         for gettext.
85423
85424 2003-07-14  Jim Meyering  <jim@meyering.net>
85425
85426         Don't emit diagnostics.  Let callers do that.
85427         * lib/save-cwd.c: Don't include "error.h".
85428         (save_cwd): Don't call error.  Ensure that errno is valid
85429         when returning nonzero.
85430
85431         * lib/save-cwd.h (restore_cwd): Update prototype.
85432         * lib/save-cwd.c (restore_cwd): Remove two parameters.
85433         Simplify.  Don't call error upon failure.  Let callers do that.
85434         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
85435         when auditing is enabled.  But don't bother updating the #if.
85436
85437 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
85438
85439         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
85440         it breaks C++ compilation.
85441         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
85442
85443 2003-07-10  Simon Josefsson  <jas@extundo.com>
85444
85445         * modules/strchrnul (Makefile.am): Add strchrnul.h.
85446
85447 2003-07-10  Jim Meyering  <jim@meyering.net>
85448
85449         * m4/clock_time.m4: Remove trailing blank.
85450         * m4/intmax_t.m4: Likewise.
85451
85452 2003-07-10  Jim Meyering  <jim@meyering.net>
85453
85454         * lib/vasnprintf.c: Remove trailing blanks.
85455         Make cpp indentation consistent.
85456
85457 2003-07-09  Paul Eggert  <eggert@twinsun.com>
85458
85459         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
85460         posixver.c, strftime.c, strnlen.c, strverscmp.c:
85461         Switch from LGPL to GPL.
85462
85463 2003-07-09  Paul Eggert  <eggert@twinsun.com>
85464
85465         * config/srclist.txt: Sort sublists.  Add
85466         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
85467         that differ from gnulib for one reason or another; we'd like this list
85468         to be smaller but for now let's document what we have.
85469
85470 2003-07-08  Paul Eggert  <eggert@twinsun.com>
85471
85472         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
85473         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
85474         and sweeter "eval x=$x".
85475         * config/srclist.txt: Get lib/argp* from glibc.
85476
85477 2003-07-07  Paul Eggert  <eggert@twinsun.com>
85478
85479         * lib/mktime.c: Fix some boundary cases and remove need for floating
85480         point.
85481
85482         Issue a compile-time diagnostic if time_t is floating point, or if
85483         two's complement arithmetic is not in effect, or if arithmetic
85484         right shift does not propagate the sign.  These assumptions were
85485         all in the original code but they weren't checked.
85486
85487         (TIME_T_MIDPOINT, verify): New macros.
85488         (__isleap): Remove; it has integer overflow problems.
85489         (leapyear): New function, without those problems.
85490         (ydhms_tm_diff): Remove; splitting into two parts.
85491         (ydhms_diff): New function, containing the arithmetic part of
85492         the old ydhms_tm_diff function.  Issue a compile-time
85493         diagnostic if we are not using C99 integer division.
85494         Avoid casts when possible.
85495         (guess_time_tm): New function, containing the checking part of
85496         the old ydhms_tm_diff function.  Return the new value, rather than
85497         the difference between it and the old.  Accept a new argument T
85498         so that *T specifies the old value.  Check for overflow in the result.
85499
85500         (__mktime_internal): Use a time_t offset, not a long int offset.
85501         This undoes the 2003-06-04 change, which is no longer needed now
85502         that we have better overflow checking.
85503         (localtime_offset): Likewise.
85504
85505         (__mktime_internal): Avoid harmful overflow on hosts where time_t
85506         and long are 64-bit but int is only 32-bit.
85507         (ydhms_diff): Use long int to store year1 and yday1.
85508         Issue a compile-time diagnostic if long int is not wide enough.
85509
85510         (__mktime_internal): Use long int to store adjusted year and yday.
85511         Use plain C rather than preprocessor commands, if that doesn't
85512         affect efficiency.
85513         Check for overflow (and try to repair) after each probe
85514         rather than checking only at the very end.  This avoids some bugs
85515         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
85516         does not equal GMT offset at maximum time).
85517         Use integer to check for overflow rather than floating point; this
85518         is more portable to non-IEEE hosts, and is a tad faster.
85519         When we detect that we are oscillating between two values,
85520         don't check whether tm_isdst has the requested value, since
85521         we already know the answer.  When tm_isdst has the wrong value,
85522         use a different heuristic to find the right one, based on the
85523         extreme values actually observed in practice in tz2003a,
85524         rather than the (overly optimistic) "previous 3 calendar quarters".
85525
85526         (not_equal_tm, print_tm, check_result): Use "const T" rather than
85527         "T const" to accommodate glibc style.
85528         (check_result): Use less-confusing report format.  "long" -> "long int.
85529         (main): Likewise.
85530         Don't loop if the iteration overflows time_t.
85531         Allow a negative step in the iteration.
85532
85533 2003-07-06  Karl Berry  <karl@gnu.org>
85534
85535         * config/depcomp: update from automake.
85536         * config/config.sub: update from prep.
85537
85538 2003-07-03  Karl Berry  <karl@gnu.org>
85539
85540         * config/config.guess: update from prep.
85541
85542 2003-07-01  Paul Eggert  <eggert@twinsun.com>
85543
85544         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
85545         xreadlink.c now includes it unconditionally.
85546
85547 2003-07-01  Paul Eggert  <eggert@twinsun.com>
85548
85549         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
85550         having it depend on HAVE_SYS_TYPES_H.
85551
85552 2003-07-01  Bruno Haible  <bruno@clisp.org>
85553
85554         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
85555         <sys/types.h> should be sufficient.
85556         Reported by Paul Eggert.
85557
85558 2003-06-26  Karl Berry  <karl@gnu.org>
85559
85560         * config/depcomp: update from automake.
85561
85562 2003-06-26  Bruno Haible  <bruno@clisp.org>
85563
85564         * modules/human: Depend on module stdbool.
85565
85566 2003-06-25  Bruno Haible  <bruno@clisp.org>
85567
85568         * modules/readlink: New file.
85569         * modules/xreadlink: Depend on it.
85570         * MODULES.html.sh (func_all_modules): Add readlink.
85571
85572 2003-06-25  Bruno Haible  <bruno@clisp.org>
85573
85574         * m4/readlink.m4: New file.
85575
85576 2003-06-25  Bruno Haible  <bruno@clisp.org>
85577
85578         * lib/readlink.c: New file.
85579
85580 2003-06-22  Karl Berry  <karl@gnu.org>
85581
85582         * config/srclist.txt: update mkinstalldirs from automake.
85583         * config/mkinstalldirs: update.
85584
85585 2003-06-22  Bruno Haible  <bruno@clisp.org>
85586
85587         Portability to mingw32.
85588         * m4/ssize_t.m4: New file, from GNU gettext.
85589         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
85590         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
85591
85592 2003-06-22  Bruno Haible  <bruno@clisp.org>
85593
85594         * modules/safe-read: Add m4/ssize_t.m4.
85595         * modules/xreadlink: Add m4/ssize_t.m4.
85596
85597 2003-06-20  Bruno Haible  <bruno@clisp.org>
85598
85599         Assume C89, so PARAMS isn't needed.
85600         * lib/unicodeio.h (PARAMS): Remove.
85601         * lib/unicodeio.c: Don't use PARAMS.
85602
85603 2003-06-18  Karl Berry  <karl@gnu.org>
85604
85605         * config/config.{guess,sub}: update from prep.
85606
85607 2003-06-18  Jim Meyering  <jim@meyering.net>
85608
85609         Merge changes from coreutils.
85610         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
85611         Remove explicit declarations of xmalloc and realloc.
85612         Include xalloc.h.
85613         (read_utmp): Remove anachronistic cast of xmalloc.
85614
85615 2003-06-17  Paul Eggert  <eggert@twinsun.com>
85616
85617         Assume C89, so PARAMS isn't needed.
85618         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
85619         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
85620         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
85621         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
85622         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
85623         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
85624         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
85625         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
85626         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
85627         lib/xstrtod.h, lib/xstrtol.h: Likewise.
85628         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
85629         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
85630         no longer needed. Anyway, config.h should always be included before any
85631         other file.
85632
85633 2003-06-11  Simon Josefsson  <jas@extundo.com>
85634
85635         * modules/sysexits: New file.
85636         * MODULES.html.sh (func_all_modules): Add sysexits.
85637
85638 2003-06-11  Simon Josefsson  <jas@extundo.com>
85639
85640         * lib/sysexit_.h: New file.
85641
85642 2003-06-11  Derek Price  <derek@ximbiot.com>
85643
85644         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
85645         necessary.
85646
85647 2003-06-11  Bruno Haible  <bruno@clisp.org>
85648
85649         * m4/sysexits.m4: New file.
85650
85651 2003-06-10  Simon Josefsson  <jas@extundo.com>
85652
85653         * lib/argp.h: New file, from glibc.
85654         * lib/argp-ba.c: New file, from glibc.
85655         * lib/argp-eexst.c: New file, from glibc.
85656         * lib/argp-fmtstream.c: New file, from glibc.
85657         * lib/argp-fmtstream.h: New file, from glibc.
85658         * lib/argp-fs-xinl.c: New file, from glibc.
85659         * lib/argp-help.c: New file, from glibc.
85660         * lib/argp-namefrob.h: New file, from glibc.
85661         * lib/argp-parse.c: New file, from glibc.
85662         * lib/argp-pv.c: New file, from glibc.
85663         * lib/argp-pvh.c: New file, from glibc.
85664         * lib/argp-xinl.c: New file, from glibc.
85665
85666 2003-06-10  Simon Josefsson  <jas@extundo.com>
85667
85668         * modules/strchrnul: New file.
85669
85670 2003-06-10  Simon Josefsson  <jas@extundo.com>
85671
85672         * modules/argp: New file.
85673
85674 2003-06-10  Simon Josefsson  <jas@extundo.com>
85675
85676         * m4/strchrnul.m4: New file.
85677
85678 2003-06-10  Simon Josefsson  <jas@extundo.com>
85679
85680         * lib/strchrnul.h: New file.
85681         * lib/strchrnul.c: New file.
85682
85683 2003-06-10  Bruno Haible  <bruno@clisp.org>
85684
85685         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
85686
85687 2003-06-07  Karl Berry  <karl@gnu.org>
85688
85689         * config/config.{guess,sub}: update from prep.
85690
85691 2003-06-07  Jim Meyering  <jim@meyering.net>
85692
85693         * modules/strtod: Use $(...) notation, not @...@ for
85694         AC_REPLACE'd variables.
85695         * modules/localcharset: Likewise.
85696
85697 2003-06-07  Jim Meyering  <jim@meyering.net>
85698
85699         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
85700         in place of my name in the copyright comment.
85701         Remove definition and uses of __P.
85702
85703         From coreutils.
85704         * lib/stat.c: Don't declare xmalloc explicitly.
85705         Instead, include "xalloc.h".
85706         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
85707         xrealloc, and xcalloc return values.
85708         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
85709         Improve comment.
85710         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
85711
85712 2003-06-07  Bruno Haible  <bruno@clisp.org>
85713
85714         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
85715         avoid AC_CONFIG_LINKS.
85716         * modules/fnmatch (Makefile.am): Use explicit creation rule for
85717         fnmatch.h, to avoid AC_CONFIG_LINKS.
85718         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
85719
85720 2003-06-07  Bruno Haible  <bruno@clisp.org>
85721
85722         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
85723         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
85724         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
85725         directory.
85726         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
85727         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
85728         directory.
85729
85730 2003-06-06  Jim Meyering  <jim@meyering.net>
85731
85732         Merge from coreutils.
85733         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
85734         Consolidate declarations and initializations of *_base* locals.
85735
85736         Merge from coreutils.
85737         This avoids a core dump on systems without GNU putenv,
85738         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
85739         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
85740         (unsetenv): New static function, from GNU libc.
85741         (rpl_putenv): Use it.
85742
85743         * lib/modechange.c: Remove trailing blanks.
85744
85745         Merge from coreutils.
85746         * lib/fsusage.c: Remove declaration of statfs.
85747         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
85748
85749         * lib/posixtm.c: Include <stdbool.h> unconditionally.
85750
85751 2003-06-06  Jim Meyering  <jim@meyering.net>
85752
85753         * lib/stdbool_.h: Renamed from stdbool.h.in.
85754
85755 2003-06-06  Jim Meyering  <jim@meyering.net>
85756             Bruno Haible  <bruno@clisp.org>
85757
85758         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
85759         Adjust Makefile.am snippet not to redirect directly to target.
85760         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
85761
85762 2003-06-05  Paul Eggert  <eggert@twinsun.com>
85763
85764         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
85765         mismatch, look in future quarters as well as past.  This fixes a
85766         bug when processing fall-backwards gaps immediately after a long
85767         period of daylight-saving time.
85768
85769         * lib/mktime.c: Assume freestanding C89 or better.
85770         (HAVE_LIMITS_H): Remove.  Assume it's 1.
85771         (__P): Remove; not used.
85772         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
85773         (mktime, not_equal_tm, print_tm, check_result,
85774         main): Use prototypes.  Use const * where appropriate.
85775         (main): Fix typo in testing code that uncovered by above changes.
85776         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
85777
85778 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85779
85780         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
85781         locale.h, localeconv.  This merges changes from coreutils.
85782
85783         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
85784         It can be removed after the next Autoconf is released.
85785         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
85786         needed.
85787
85788 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85789
85790         * lib/mktime.c: Fix Debian bug 177940
85791         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
85792         (localtime_offset): Now long int, not time_t, because we want it
85793         to be guaranteed to be signed.  All uses changed.
85794         (__mktime_internal): If overflow would occur when adding offset,
85795         don't add it.
85796
85797         Merge 'human' changes from coreutils.  Rewrite to support
85798         locale-specific notations like thousands separators.
85799         * lib/human.c: Simplify authorship notice.
85800         Include human.h immediately after config.h.
85801         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
85802         <limits.h>: Do not include, since human.h does.
85803         (SIZE_MAX, UINTMAX_MAX): New macros.
85804         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
85805         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
85806         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
85807         (power_letter): Renamed from suffixes.
85808         (generate_suffix_backwards): Remove.
85809         (adjust_value): Now takes int style (because of human.h changes)
85810         and long double value (for greater precision on some platforms).
85811         (group_number): New function.
85812         (human_readable): Use it.  Use integer options, not enum.
85813         Put the options before the sizes in the arg list.
85814         Support all the new options.
85815         The old human_readable function has been removed;
85816         use inttostr.h instead.
85817         (human_readable, default_block_size, humblock):
85818         Use uintmax_t, not int, for block sizes.
85819         (human_readable_inexact, block_size_types): Remove.
85820         (block_size_opts): New constant.
85821         (human_options): Renamed from human_block_size, with new signature
85822         that allows block sizes up to UINTMAX_MAX.  All callers changed.
85823         * lib/human.h: Add copyright and authorship notice.
85824         Include <limits.h> and <stdbool.h> unconditionally.
85825         (PARAMS): Remove.  All uses removed.
85826         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
85827         (enum human_inexact_style): Remove tag; now a nameless enum.
85828         (human_floor, human_ceiling, human_round_to_even): Now have
85829         values 2, 0, 1 rather than -1, 1, 0.
85830         (human_group_digits, human_suppress_point_zero, human_autoscale,
85831         human_base_1024, human_SI, human_B): New constants.
85832         (human_readable_inexact, human_block_size): Remove.
85833         (human_readable): Size args are now uintmax_t, not int.
85834         (human_options): New decl.
85835
85836         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
85837         unnecessary now that we assume C89 or better.  This change
85838         imported from coreutils.
85839
85840         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
85841         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
85842         in the 2003-05-30 sync from glibc.
85843
85844         .h files should stand alone, but we shouldn't include <sys/types.h>
85845         if we can get away with just <stddef.h>.
85846
85847         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
85848         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
85849         rather than <sys/types.h>, as we merely need size_t.
85850         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
85851         to get size_t.
85852         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
85853         Include <stdio.h>, to get FILE.
85854         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
85855         memcasecmp.h has included <stddef.h> and all we need is size_t.
85856         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
85857         our interface, instead of including <sys/types.h>
85858
85859 2003-06-04  Paul Eggert  <eggert@twinsun.com>
85860
85861         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
85862         now, as glibc mktime is buggy on non-glibc systems.
85863
85864 2003-06-03  Karl Berry  <karl@gnu.org>
85865
85866         * config/config.sub: update from prep.
85867
85868 2003-06-02  Paul Eggert  <eggert@twinsun.com>
85869
85870         [from coreutils]
85871         Fix some minor time-related bugs with POSIX time arguments.
85872         Some valid time stamps were being rejected (notably -1, and
85873         time stamps before 1900 on 64-bit hosts).  And some invalid
85874         time stamps were being accepted, e.g. September 31.
85875
85876         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
85877         that we can return (time_t) -1 successfully.
85878         * lib/posixtm.c: Likewise.
85879         [HAVE_STDBOOL_H]: Include <stdbool.h>.
85880         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
85881         (t): Remove static var.
85882         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
85883         of static var.  All uses changed.
85884         (year): Do not reject years before 1900; they can occur with
85885         64-bit time_t.
85886         (posix_time_parse): Do not check for out-of-range components;
85887         that is now the caller's responsibility, since our checks were
85888         only approximations.
85889         (posixtime): Use mktime to check for out-of-range components,
85890         since it knows them exactly.
85891         If mktime returns (time_t) -1, check whether an error actually occurred
85892         by invoking localtime on -1.
85893         (main) [TEST_POSIXTIME]: Check for input data errors, and report
85894         posixtime failures better.
85895         Improve the test data (in comments only).
85896
85897 2003-06-02  Karl Berry  <karl@gnu.org>
85898
85899         * config/mkinstalldirs (version): new variable.
85900         (--version): new option.
85901         (usage): improve message.
85902
85903 2003-05-30  Karl Berry  <karl@gnu.org>
85904
85905         * lib/mktime.c: update from libc.
85906
85907 2003-05-30  Bruno Haible  <bruno@clisp.org>
85908
85909         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
85910         * config/config.rpath: Upgrade to gettext-0.12.1.
85911
85912 2003-05-30  Bruno Haible  <bruno@clisp.org>
85913
85914         * m4/gettext.m4: Upgrade to gettext-0.12.1.
85915         * m4/nls.m4: New file, from gettext-0.12.1.
85916         * m4/po.m4: New file, from gettext-0.12.1.
85917         * m4/progtest.m4: Upgrade to gettext-0.12.1.
85918
85919 2003-05-30  Bruno Haible  <bruno@clisp.org>
85920
85921         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
85922         * lib/localcharset.h: Likewise.
85923         * lib/localcharset.c: Likewise.
85924
85925 2003-05-29  Karl Berry  <karl@gnu.org>
85926
85927         * config/config.rpath: update from gettext.
85928
85929 2003-05-28  Paul Eggert  <eggert@twinsun.com>
85930
85931         Assume the headers required for C89 freestanding compilers.
85932         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
85933         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
85934         * m4/human.m4 (gl_HUMAN): Likewise.
85935         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
85936         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
85937         * m4/userspec.m4 (gl_USERSPEC): Likewise.
85938         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
85939         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
85940         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
85941
85942 2003-05-28  Paul Eggert  <eggert@twinsun.com>
85943
85944         Assume the headers required for C89 freestanding compilers.
85945         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
85946         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
85947         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
85948         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
85949         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
85950         define, since <limits.h> is guaranteed to do that.
85951         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
85952         * lib/exclude.c: Include <stdbool.h> unconditionally.
85953         * lib/tempname.c: Include <stddef.h> unconditionally.
85954         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
85955         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
85956         <stddef.h> does that.
85957         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
85958         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
85959         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
85960         needed.
85961         * lib/xstrtol.c: Likewise.
85962         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
85963         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
85964
85965         * lib/addext.c (addext): Use assignment rather than cast, to avoid
85966         warnings on some platforms.
85967
85968         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
85969         arbitrarily.
85970
85971 2003-05-26  Jim Meyering  <jim@meyering.net>
85972
85973         Merge in a change from coreutils:
85974         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
85975         that is guaranteed to be `no'.  Use `no_such_member' to indicate
85976         that condition, rather than `-1' which is slightly misleading.
85977         Change the name of the cache variable to have the gl_ prefix.
85978         Prompted by a patch from Richard Dawe for DJGPP.
85979
85980 2003-05-24  Karl Berry  <karl@gnu.org>
85981
85982         * config/config.guess: update from prep.
85983
85984 2003-05-22  Karl Berry  <karl@gnu.org>
85985
85986         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
85987
85988 2003-05-20  Karl Berry  <karl@gnu.org>
85989
85990         * config/config.guess: update from prep.
85991
85992 2003-05-18  Karl Berry  <karl@gnu.org>
85993
85994         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
85995         might actually be set by the user.
85996
85997         * config/depcomp, install-sh, mdate-sh: update from automake.
85998
85999 2003-05-17  Bruno Haible  <bruno@clisp.org>
86000
86001         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
86002         invalid expansion for AC_EGREP_CPP.
86003         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
86004         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
86005         Suggested by Akim Demaille <akim@epita.fr> in
86006         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
86007
86008 2003-05-12  Jim Meyering  <jim@meyering.net>
86009
86010         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
86011         the space-padded-by-default conversion specifiers, %e, %k, %l.
86012
86013 2003-05-12  Bruno Haible  <bruno@clisp.org>
86014
86015         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
86016         the string is longer than 4 KB.
86017
86018 2003-05-11  Karl Berry  <karl@gnu.org>
86019
86020         * config/config.{guess,sub}: update from prep.
86021
86022 2003-05-09  Bruno Haible  <bruno@clisp.org>
86023
86024         * modules/error: Add m4/strerror_r.m4 to file list.
86025
86026 2003-05-03  Bruno Haible  <bruno@clisp.org>
86027
86028         Upgrade to Unicode-4.0.
86029         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
86030         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
86031         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
86032         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
86033         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
86034         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
86035         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
86036         Change width of U+E0100..U+E01EF from 1 to 0.
86037
86038 2003-04-25  Jim Meyering  <jim@meyering.net>
86039
86040         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
86041         of type size_t, not int.
86042
86043 2003-04-25  Bruno Haible  <bruno@clisp.org>
86044
86045         * lib/copy-file.c: Include <stddef.h>, for size_t.
86046
86047 2003-04-21  Paul Eggert  <eggert@twinsun.com>
86048
86049         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
86050         code which expansion is under static control.  Patch imported from
86051         Akim Demaille's patch to Bison; see
86052         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
86053
86054 2003-04-14  Bruno Haible  <bruno@clisp.org>
86055
86056         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
86057
86058 2003-04-11  Jim Meyering  <jim@meyering.net>
86059
86060         Merge changes from Coreutils.
86061
86062         2003-03-22  Jim Meyering  <jim@meyering.net>
86063
86064         * lib/strftime.c (widen): Cast alloca return value to proper type.
86065
86066         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
86067
86068         From GNU libc.
86069         * lib/strftime.c (my_strftime): Handle very large width
86070         specifications for numeric values correctly.  Improve checks for
86071         overflow.
86072
86073         2003-01-19  Jim Meyering  <jim@meyering.net>
86074
86075         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
86076         definitions.
86077         (nl_get_alt_digit) [! defined my_strftime]: Define.
86078         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
86079         _nl_get_alt_digit and _nl_get_walt_digit.
86080
86081         * lib/strftime.c (my_strftime): Merge in locale-related changes from
86082         libc. These changes have no effect outside of _LIBC.
86083
86084 2003-04-10  Bruno Haible  <bruno@clisp.org>
86085
86086         * modules/findprog: New file.
86087         * MODULES.html.sh (func_all_modules): Add it.
86088
86089 2003-04-10  Bruno Haible  <bruno@clisp.org>
86090
86091         * m4/findprog.m4: New file.
86092         * m4/eaccess.m4: New file.
86093
86094 2003-04-10  Bruno Haible  <bruno@clisp.org>
86095
86096         * lib/findprog.h: New file, from GNU gettext.
86097         * lib/findprog.c: New file, from GNU gettext.
86098
86099 2003-04-05  Jim Meyering  <jim@meyering.net>
86100
86101         Merge changes from Coreutils.
86102
86103         * lib/exclude.h (PARAMS): Remove definition and uses.
86104         * lib/exclude.c: Remove uses of `PARAMS'.
86105
86106         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
86107         Add test-cases for DOS filenames. Declare program_name.
86108         (main): Set up program_name.  Patch by Rich Dawe.
86109
86110         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
86111         error from mntctl.
86112         Use mntctl's return value to drive the entry-processing loop, since
86113         we can't rely on the value of the vmt_length member in the last
86114         entry.  On some systems doing so could result in exhausting
86115         virtual memory.  Based in part on a patch from Mike Jetzer.
86116
86117 2003-04-04  Bruno Haible  <bruno@clisp.org>
86118
86119         * modules/linebreak: New file.
86120         * MODULES.html.sh (func_all_modules): Add it.
86121
86122 2003-04-04  Bruno Haible  <bruno@clisp.org>
86123
86124         * m4/linebreak.m4: New file.
86125
86126 2003-04-04  Bruno Haible  <bruno@clisp.org>
86127
86128         * lib/linebreak.h: New file, from GNU gettext.
86129         * lib/linebreak.c: New file, from GNU gettext with slight
86130         modifications.
86131         * lib/lbrkprop.h: New file, from GNU gettext.
86132
86133 2003-04-03  Bruno Haible  <bruno@clisp.org>
86134
86135         * modules/utf8-ucs4: New file.
86136         * modules/utf16-ucs4: New file.
86137         * modules/ucs4-utf8: New file.
86138         * modules/ucs4-utf16: New file.
86139         * MODULES.html.sh (func_all_modules): Add them.
86140
86141 2003-04-03  Bruno Haible  <bruno@clisp.org>
86142
86143         * m4/utf-ucs4.m4: New file.
86144         * m4/ucs4-utf.m4: New file.
86145
86146 2003-04-03  Bruno Haible  <bruno@clisp.org>
86147
86148         * lib/utf8-ucs4.h: New file, from GNU gettext.
86149         * lib/utf16-ucs4.h: New file, from GNU gettext.
86150         * lib/ucs4-utf8.h: New file, from GNU gettext.
86151         * lib/ucs4-utf16.h: New file, from GNU gettext.
86152
86153 2003-04-02  Bruno Haible  <bruno@clisp.org>
86154
86155         * modules/binary-io: New file.
86156         * MODULES.html.sh (func_all_modules): Add it.
86157
86158 2003-04-02  Bruno Haible  <bruno@clisp.org>
86159
86160         * lib/binary-io.h: New file, from GNU gettext.
86161
86162 2003-04-01  Bruno Haible  <bruno@clisp.org>
86163
86164         * modules/pathname: New file.
86165         * MODULES.html.sh (func_all_modules): Add it.
86166
86167 2003-04-01  Bruno Haible  <bruno@clisp.org>
86168
86169         * lib/pathname.h: New file, from GNU gettext.
86170         * lib/concatpath.c: New file, from GNU gettext.
86171
86172 2003-03-30  Bruno Haible  <bruno@clisp.org>
86173
86174         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
86175
86176 2003-03-30  Bruno Haible  <bruno@clisp.org>
86177
86178         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
86179         function chown() doesn't exist.
86180
86181 2003-03-28  Bruno Haible  <bruno@clisp.org>
86182
86183         * modules/copy-file: New file.
86184         * MODULES.html.sh (func_all_modules): Add it.
86185
86186 2003-03-28  Bruno Haible  <bruno@clisp.org>
86187
86188         * m4/copy-file.m4: New file.
86189
86190 2003-03-28  Bruno Haible  <bruno@clisp.org>
86191
86192         * lib/copy-file.h: New file, from GNU gettext.
86193         * lib/copy-file.c: New file, from GNU gettext.
86194
86195 2003-03-18  Jim Meyering  <jim@meyering.net>
86196
86197         * lib/quote.c (quote_n): Fix typo in comment.
86198
86199 2003-03-18  Bruno Haible  <bruno@clisp.org>
86200
86201         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
86202         checking.
86203         * m4/onceonly_2_57.m4: Likewise.
86204
86205 2003-03-17  Bruno Haible  <bruno@clisp.org>
86206
86207         * m4/onceonly.m4: Require autoconf 2.54 or newer.
86208         (m4_quote): Remove macro.
86209         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
86210
86211 2003-03-14  Jim Meyering  <jim@meyering.net>
86212
86213         Merge changes from Coreutils.
86214         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
86215         to be const, in order to avoid warnings.
86216         (obstack_room): Likewise.
86217         (obstack_empty_p): Likewise.
86218
86219 2003-03-14  Bruno Haible  <bruno@clisp.org>
86220
86221         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
86222         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
86223
86224 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86225
86226         Merge changes from Bison.
86227         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
86228         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
86229         when compiling Bison 1.875's `bitset bset = obstack_alloc
86230         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
86231         * lib/hash.c: Include <stdbool.h> unconditionally.
86232
86233 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86234
86235         * m4/onceonly.m4 (m4_quote): New macro.
86236         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
86237         Quote AC_FOREACH variable-expansions properly.
86238
86239 2003-03-13  Paul Eggert  <eggert@twinsun.com>
86240
86241         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
86242
86243 2003-03-09  Paul Eggert  <eggert@twinsun.com>
86244
86245         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
86246         Reported by Bruce Becker; see:
86247         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
86248
86249 2003-03-03  Paul Eggert  <eggert@twinsun.com>
86250             Bruno Haible  <bruno@clisp.org>
86251
86252         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
86253         Reported by John Hughes, see
86254         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
86255
86256 2003-02-20  Bruno Haible  <bruno@clisp.org>
86257
86258         * MODULES.html.sh (func_all_modules): Add poll.
86259
86260 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86261
86262         * modules/poll: New file.
86263
86264 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86265
86266         * lib/poll_.h: New file.
86267         * lib/poll.c: New file.
86268
86269 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
86270
86271         * m4/poll.m4: New file.
86272
86273 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86274
86275         * modules/mathl: New file.
86276
86277 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86278
86279         * lib/mathl.h: New file.
86280         * lib/acosl.c: New file.
86281         * lib/asinl.c: New file.
86282         * lib/atanl.c: New file.
86283         * lib/ceill.c: New file.
86284         * lib/cosl.c: New file.
86285         * lib/expl.c: New file.
86286         * lib/floorl.c: New file.
86287         * lib/frexpl.c: New file.
86288         * lib/ldexpl.c: New file.
86289         * lib/logl.c: New file.
86290         * lib/sincosl.c: New file.
86291         * lib/sinl.c: New file.
86292         * lib/sqrtl.c: New file.
86293         * lib/tanl.c: New file.
86294         * lib/trigl.c: New file.
86295         * lib/trigl.h: New file.
86296
86297 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
86298
86299         * m4/mathl.m4: New file.
86300
86301 2003-02-18  Bruno Haible  <bruno@clisp.org>
86302
86303         * MODULES.html.sh (func_all_modules): Add mathl.
86304
86305 2003-02-17  Bruno Haible  <bruno@clisp.org>
86306
86307         * modules/mkdtemp: New module.
86308         * MODULES.html.sh (func_all_modules): Add it.
86309
86310 2003-02-17  Bruno Haible  <bruno@clisp.org>
86311
86312         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
86313
86314 2003-02-17  Bruno Haible  <bruno@clisp.org>
86315
86316         * lib/mkdtemp.h: New file, from GNU gettext.
86317         * lib/mkdtemp.c: New file, from GNU gettext.
86318
86319 2003-02-02  Jim Meyering  <jim@meyering.net>
86320
86321         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
86322         e.g. glibc-2.2.93.
86323
86324 2003-01-31  Bruno Haible  <bruno@clisp.org>
86325
86326         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
86327         'rpl_rename'.
86328         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
86329         'rpl_strnlen'.
86330         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
86331         'rpl_strtod'.
86332         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
86333         'rpl_utime'.
86334
86335 2003-01-31  Bruno Haible  <bruno@clisp.org>
86336
86337         * lib/rename.c: #undef rename before defining rpl_rename.
86338         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
86339
86340 2003-01-30  Bruno Haible  <bruno@clisp.org>
86341
86342         * modules/vasnprintf, modules/vasprintf: New modules.
86343         * MODULES.html.sh (func_all_modules): Add them.
86344
86345 2003-01-30  Bruno Haible  <bruno@clisp.org>
86346
86347         * m4/signed.m4: New file, from GNU gettext.
86348         * m4/longdouble.m4: New file, from GNU gettext.
86349         * m4/wchar_t.m4: New file, from GNU gettext.
86350         * m4/wint_t.m4: New file, from GNU gettext.
86351         * m4/vasnprintf.m4: New file.
86352         * m4/vasprintf.m4: New file.
86353
86354 2003-01-30  Bruno Haible  <bruno@clisp.org>
86355
86356         * lib/printf-args.h: New file, from GNU gettext.
86357         * lib/printf-args.c: New file, from GNU gettext.
86358         * lib/printf-parse.h: New file, from GNU gettext.
86359         * lib/printf-parse.c: New file, from GNU gettext.
86360         * lib/vasnprintf.h: New file, from GNU gettext.
86361         * lib/vasnprintf.c: New file, from GNU gettext.
86362         * lib/asnprintf.c: New file, from GNU gettext.
86363         * lib/vasprintf.h: New file, from GNU gettext with modifications.
86364         * lib/vasprintf.c: New file, from GNU gettext.
86365         * lib/asprintf.c: New file, from GNU gettext.
86366
86367 2003-01-29  Bruno Haible  <bruno@clisp.org>
86368
86369         * modules/stpncpy: New module.
86370         * MODULES.html.sh (func_all_modules): Add it.
86371
86372 2003-01-29  Bruno Haible  <bruno@clisp.org>
86373
86374         * m4/stpncpy.m4: New file.
86375
86376 2003-01-29  Bruno Haible  <bruno@clisp.org>
86377
86378         * lib/stpncpy.h: New file, from GNU gettext with modifications.
86379         * lib/stpncpy.c: New file, from GNU gettext with modifications.
86380
86381 2003-01-28  Bruno Haible  <bruno@clisp.org>
86382
86383         * modules/c-ctype: New module.
86384         * MODULES.html.sh (func_all_modules): Add it.
86385
86386 2003-01-28  Bruno Haible  <bruno@clisp.org>
86387
86388         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
86389         Paul Eggert.
86390         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
86391         Paul Eggert.
86392
86393 2003-01-27  Bruno Haible  <bruno@clisp.org>
86394
86395         * modules/xsetenv: New module.
86396         * MODULES.html.sh (func_all_modules): Add it.
86397
86398 2003-01-27  Bruno Haible  <bruno@clisp.org>
86399
86400         * lib/xsetenv.h: New file, from GNU gettext.
86401         * lib/xsetenv.c: New file, from GNU gettext.
86402
86403 2003-01-23  Jim Meyering  <jim@meyering.net>
86404
86405         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
86406         from working on systems without dirfd (at least Irix and OSF1/Tru64).
86407
86408 2003-01-23  Bruno Haible  <bruno@clisp.org>
86409
86410         * modules/minmax: New module.
86411         * MODULES.html.sh (func_all_modules): Add it.
86412
86413 2003-01-23  Bruno Haible  <bruno@clisp.org>
86414
86415         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
86416         Eggert.
86417
86418 2003-01-22  Bruno Haible  <bruno@clisp.org>
86419
86420         * modules/exit: New module.
86421         * MODULES.html.sh (func_all_modules): Add it.
86422
86423 2003-01-22  Bruno Haible  <bruno@clisp.org>
86424
86425         * lib/exit.h: New file, from GNU gettext.
86426
86427 2003-01-19  Bruno Haible  <bruno@clisp.org>
86428
86429         * gnulib-tool: Recognize option --extract-maintainer.
86430         (func_get_maintainer): New function.
86431         * modules/*: Add Maintainer entry.
86432
86433 2003-01-16  Jim Meyering  <jim@meyering.net>
86434
86435         * m4/regex.m4: The `regex' struct is both input and output.
86436         Initialize it before each use.  Patch by Tim Waugh.
86437
86438 2003-01-16  Bruno Haible  <bruno@clisp.org>
86439
86440         * MODULES.html.sh: Add a table of contents. Add the module name as
86441         leftmost column. Add hyperlinks.
86442
86443 2003-01-15  Bruno Haible  <bruno@clisp.org>
86444
86445         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
86446
86447 2003-01-15  Bruno Haible  <bruno@clisp.org>
86448
86449         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
86450         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
86451         suffix.
86452
86453 2003-01-15  Bruno Haible  <bruno@clisp.org>
86454
86455         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
86456
86457 2003-01-15  Bruno Haible  <bruno@clisp.org>
86458
86459         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
86460         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
86461
86462 2003-01-14  Jim Meyering  <jim@meyering.net>
86463
86464         * lib/same.c (same_name): Tweak a comment.
86465
86466 2003-01-14  Bruno Haible  <bruno@clisp.org>
86467
86468         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
86469         when a string comparison is sufficient.
86470
86471 2003-01-14  Bruno Haible  <bruno@clisp.org>
86472
86473         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
86474         'unsigned int'.
86475
86476 2003-01-14  Bruno Haible  <bruno@clisp.org>
86477
86478         * lib/hash-pjw.c: Add comment about low quality of this function.
86479
86480 2003-01-13  Bruno Haible  <bruno@clisp.org>
86481
86482         * modules/stpcpy: Distribute lib/stpcpy.h.
86483         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
86484
86485 2003-01-13  Bruno Haible  <bruno@clisp.org>
86486
86487         * modules/*: Add a description.
86488         * modules/strpbrk: Fix Makefile.am snippet.
86489         * modules/strtoimax: Fix dependencies.
86490         * modules/strtoumax: Likewise.
86491
86492 2003-01-13  Bruno Haible  <bruno@clisp.org>
86493
86494         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
86495         * modules/alloca (Makefile.am): All object files depend on alloca.h.
86496         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
86497
86498 2003-01-13  Bruno Haible  <bruno@clisp.org>
86499
86500         * gnulib-tool (func_create_testdir): Store config/* files in the main
86501         directory.
86502         * config.rpath: Move to ...
86503         * config/config.rpath: ... here.
86504         * modules/gettext: Contains config/config.rpath, not config.rpath.
86505         * modules/iconv: Likewise.
86506
86507 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86508
86509         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86510         to avoid collisions with libcurses and libreadline.
86511
86512         * m4/getstr.m4: Remove.
86513         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
86514
86515 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86516
86517         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86518         to avoid collisions with libcurses and libreadline.
86519
86520         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
86521         * lib/getstr.h, getstr.c: Remove.
86522         * lib/getline.c: Include "getline.h", to check interface.
86523         Move body of old getstr.c here: this defines MIN_CHUNK and
86524         declares getdelim2, which is renamed from getstr.
86525         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
86526
86527         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
86528         All uses changed.
86529         * lib/linebuffer.h: Likewise.
86530         (readline): Remove backward-compatibility macro.
86531
86532 2003-01-12  Paul Eggert  <eggert@twinsun.com>
86533
86534         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
86535         to avoid collisions with libcurses and libreadline.
86536         * getstr: Remove.
86537         * MODULES.html.sh: Remove getstr.
86538         * modules/getline: Depend on unlocked-io, not getstr.
86539
86540 2003-01-12  Jim Meyering  <jim@meyering.net>
86541
86542         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
86543
86544 2003-01-10  Bruno Haible  <bruno@clisp.org>
86545
86546         * modules/alloca: Change Makefile.am requirements. Simplify Include
86547         requirements. Add lib/alloca_.h to file list.
86548
86549 2003-01-10  Bruno Haible  <bruno@clisp.org>
86550
86551         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
86552
86553 2003-01-10  Bruno Haible  <bruno@clisp.org>
86554
86555         * lib/alloca_.h: New file.
86556         * lib/getdate.y: Unconditionally include alloca.h.
86557         * lib/makepath.c: Likewise.
86558         * lib/setenv.c: Likewise.
86559         * lib/userspec.c: Likewise.
86560
86561 2003-01-09  Karl Berry  <karl@gnu.org>
86562
86563         * MODULES.html.sh: include `dirname $0` in PATH, to find
86564         gnulib-tool.
86565
86566 2003-01-09  Bruno Haible  <bruno@clisp.org>
86567
86568         * modules/stdbool: Change configure.ac, Makefile.am requirements.
86569         Simplify Include requirements. Add lib/stdbool.h.in to file list.
86570
86571 2003-01-09  Bruno Haible  <bruno@clisp.org>
86572
86573         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
86574
86575 2003-01-09  Bruno Haible  <bruno@clisp.org>
86576
86577         * lib/stdbool.h.in: New file.
86578
86579 2003-01-09  Bruno Haible  <bruno@clisp.org>
86580
86581         * gnulib-tool (func_all_modules): Ignore files ending in ~.
86582         * MODULES.html.sh: Likewise.
86583
86584 2003-01-08  Jim Meyering  <jim@meyering.net>
86585
86586         * lib/full-write.c: Undefine and define-away `const' after inclusion
86587         of errno.h, not before.  Suggestion from Bruno Haible.
86588
86589 2003-01-08  Bruno Haible  <bruno@clisp.org>
86590
86591         * modules/full-read: Depend on full-write.
86592
86593 2003-01-08  Bruno Haible  <bruno@clisp.org>
86594
86595         * lib/safe-read.c: Include specification header first, to ensure its
86596         selfcontainedness.
86597         * lib/full-write.c: Likewise.
86598
86599 2003-01-07  Jim Meyering  <jim@meyering.net>
86600
86601         * lib/full-write.c: Rework so that it may serve to define full_read,
86602         too.
86603         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
86604
86605 2003-01-07  Bruno Haible  <bruno@clisp.org>
86606
86607         * lib/strtoimax.c: Include <stdint.h> as an alternative to
86608         <inttypes.h>.
86609         * lib/xstrtol.h: Likewise.
86610         * lib/xstrtoimax.c: Likewise.
86611         * lib/xstrtoumax.c: Likewise.
86612         * lib/human.h: Likewise.
86613
86614         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
86615         on systems that have <inttypes.h> but not <stdint.h>.
86616
86617 2003-01-07  Bruno Haible  <bruno@clisp.org>
86618
86619         * MODULES.html.sh: Add copyright notice.
86620         (missed_files): Omit CVS directory entries.
86621         (func_module): Make it work with sed-3.02.
86622         * MODULES.txt: Remove file.
86623
86624 2003-01-06  Jim Meyering  <jim@meyering.net>
86625
86626         * lib/version-etc.c: Update year in translatable copyright string.
86627
86628 2003-01-03  Karl Berry  <karl@gnu.org>
86629
86630         * config/config.{guess,sub}: update from prep.
86631
86632 2003-01-02  Karl Berry  <karl@gnu.org>
86633
86634         * doc/COPYING.DOC: belatedly updated to 1.2.
86635
86636 2003-01-01  Karl Berry  <karl@gnu.org>
86637
86638         * gnulib-tool (func_verify_module): report module name $module in
86639         error message, not $1.
86640         * gnulib-tool (create-testdir): don't complain if destdir couldn't
86641         be created, only if it doesn't exist.
86642         * gnulib-tool (last_checkin_date): don't expand the $Date here.
86643
86644 2002-12-31  Paul Eggert  <eggert@twinsun.com>
86645
86646         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
86647
86648 2002-12-31  Paul Eggert  <eggert@twinsun.com>
86649
86650         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
86651         memcmp if strcoll doesn't work.
86652
86653 2002-12-31  Bruno Haible  <bruno@clisp.org>
86654
86655         * lib/utime.c (utime_null): No need to call ftruncate if the file was
86656         nonempty.
86657
86658 2002-12-31  Bruno Haible  <bruno@clisp.org>
86659
86660         * lib/memcoll.c (STRCOLL): New macro.
86661         (memcoll): Use it.
86662
86663 2002-12-31  Bruno Haible  <bruno@clisp.org>
86664
86665         * lib/localcharset.h: New file.
86666         * lib/localcharset.c: Include it.
86667         * lib/unicodeio.c: Likewise.
86668
86669 2002-12-31  Bruno Haible  <bruno@clisp.org>
86670
86671         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
86672         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
86673
86674 2002-12-31  Bruno Haible  <bruno@clisp.org>
86675
86676         * lib/getline.h: Include <stddef.h>, for size_t.
86677
86678         * lib/unicodeio.h: Include <stddef.h>, for size_t.
86679         * lib/unicodeio.c: Don't include <stddef.h>.
86680
86681 2002-12-31  Bruno Haible  <bruno@clisp.org>
86682
86683         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
86684         HAVE_TM_ZONE.
86685
86686 2002-12-24  Karl Berry  <karl@gnu.org>
86687
86688         * config/config.guess: update from prep.
86689
86690 2002-12-24  Bruno Haible  <bruno@clisp.org>
86691
86692         General infrasructure.
86693         * m4/README: Rewritten.
86694         * m4/onceonly.m4: New file.
86695         * m4/onceonly_2_57.m4: New file.
86696
86697         Module atexit.
86698         * m4/atexit.m4: New file.
86699
86700         Module strtod.
86701         * m4/strtod.m4: New file.
86702
86703         Module strtol.
86704         * m4/strtol.m4: New file.
86705
86706         Module strtoul.
86707         * m4/strtoul.m4: New file.
86708
86709         Module memchr.
86710         * m4/memchr.m4: New file.
86711
86712         Module memcmp.
86713         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
86714         (jm_FUNC_MEMCMP): Invoke it.
86715
86716         Module memcpy.
86717         * m4/memcpy.m4: New file.
86718
86719         Module memmove.
86720         * m4/memmove.m4: New file.
86721
86722         Module memset.
86723         * m4/memset.m4: New file.
86724
86725         Module strcspn.
86726         * m4/strcspn.m4: New file.
86727
86728         Module strpbrk.
86729         * m4/strpbrk.m4: New file.
86730
86731         Module strstr.
86732         * m4/strstr.m4: New file.
86733
86734         Module strerror.
86735         * m4/strerror.m4: New file.
86736
86737         Module mktime.
86738         * m4/mktime.m4: Renamed from jm-mktime.m4.
86739         (gl_PREREQ_MKTIME): New macro.
86740         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
86741
86742         Module malloc.
86743         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
86744         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
86745         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
86746
86747         Module realloc.
86748         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
86749         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
86750         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
86751
86752         Module strftime.
86753         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
86754         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
86755         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
86756         gl_TM_GMTOFF.
86757         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
86758
86759         Module xalloc.
86760         * m4/xalloc.m4: New file.
86761
86762         Module alloca.
86763         * m4/alloca.m4: New file.
86764
86765         Module putenv.
86766         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
86767         (jm_FUNC_PUTENV): Invoke it.
86768
86769         Module setenv.
86770         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
86771         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
86772         when invoked twice.
86773         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
86774         gt_FUNC_SETENV.
86775
86776         Module memrchr.
86777         * m4/memrchr.m4: New file.
86778
86779         Module stpcpy.
86780         * m4/stpcpy.m4: New file.
86781
86782         Module strcase.
86783         * m4/strcase.m4: New file.
86784
86785         Module strdup.
86786         * m4/strdup.m4: New file.
86787
86788         Module strnlen.
86789         * m4/strnlen.m4: New file.
86790
86791         Module strndup.
86792         * m4/strndup.m4: New file.
86793
86794         Module xstrtod.
86795         * m4/xstrtod.m4: New file.
86796
86797         Module xstrtol.
86798         * m4/xstrtol.m4: New file.
86799
86800         Module getdate.
86801         * m4/getdate.m4: New file.
86802
86803         Module unlocked-io.
86804         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
86805         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
86806         * m4/jm-glibc-io.m4n: Remove file.
86807
86808         Module long-options.
86809         * m4/long-options.m4: New file.
86810
86811         Module md5.
86812         * m4/md5.m4: New file.
86813
86814         Module sha.
86815         * m4/sha.m4: New file.
86816
86817         Module getstr.
86818         * m4/getstr.m4: New file.
86819
86820         Module getline.
86821         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
86822         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
86823         <sys/types.h>, for size_t. Use the function name gnu_getline, not
86824         simply getline. Infoke gl_PREREQ_GETLINE.
86825
86826         Module obstack.
86827         * m4/obstack.m4: New file.
86828
86829         Module hash.
86830         * m4/hash.m4: New file.
86831
86832         Module readtokens.
86833         * m4/readtokens.m4: New file.
86834
86835         Module strverscmp.
86836         * m4/strverscmp.m4: New file.
86837
86838         Module stdbool.
86839         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
86840         OSF/1.
86841
86842         Module strtoll.
86843         * m4/strtoll.m4: New file.
86844
86845         Module strtoull.
86846         * m4/strtoull.m4: New file.
86847
86848         Module strtoimax.
86849         * m4/strtoimax.m4: New file.
86850
86851         Module strtoumax.
86852         * m4/strtoumax.m4: New file.
86853
86854         Module xstrtoimax.
86855         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
86856         jm_AC_PREREQ_XSTRTOIMAX.
86857         Moved the strtol prerequisites to strtol.m4.
86858         Moved the strtoll prerequisites to strtoll.m4.
86859         Moved the strtoimax prerequisites to strtoimax.m4.
86860
86861         Module xstrtoumax.
86862         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
86863         jm_AC_PREREQ_XSTRTOUMAX.
86864         Moved the strtoul prerequisites to strtoul.m4.
86865         Moved the strtoull prerequisites to strtoull.m4.
86866         Moved the strtoumax prerequisites to strtoumax.m4.
86867
86868         Module chown.
86869         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
86870         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
86871
86872         Module dup2.
86873         * m4/dup2.m4: New file.
86874
86875         Module ftruncate.
86876         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
86877         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
86878
86879         Module getgroups.
86880         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
86881         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
86882
86883         Module gettimeofday.
86884         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
86885         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
86886         gl_PREREQ_GETTIMEOFDAY.
86887
86888         Module mkdir.
86889         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
86890         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
86891
86892         Module mkstemp.
86893         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
86894         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
86895         jm_AC_TYPE_UINTMAX_T.
86896         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
86897
86898         Module stat.
86899         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
86900         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
86901
86902         Module lstat.
86903         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
86904         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
86905
86906         Module timespec.
86907         * m4/timespec.m4 (gl_TIMESPEC): New macro.
86908         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
86909         * m4/st_mtim.m4: Indentation.
86910
86911         Module nanosleep.
86912         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
86913         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
86914         gl_PREREQ_NANOSLEEP.
86915
86916         Module regex.
86917         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
86918         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
86919         (gl_REGEX): New macro.
86920
86921         Module rename.
86922         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
86923         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
86924
86925         Module rmdir.
86926         * m4/rmdir.m4: New file.
86927
86928         Module utime.
86929         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
86930         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
86931         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
86932
86933         Module dirname.
86934         * m4/dirname.m4: New file.
86935
86936         Module getopt.
86937         * m4/getopt.m4: New file.
86938
86939         Module unistd-safer.
86940         * m4/unistd-safer.m4: New file.
86941
86942         Module fnmatch.
86943         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
86944         declaration.
86945         (gl_PREREQ_FNMATCH_EXTRA): New macro.
86946         (gl_FUNC_FNMATCH_POSIX): New macro.
86947         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
86948         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
86949         simply fnmatch.
86950
86951         Module exclude.
86952         * m4/exclude.m4: New file.
86953
86954         Module human.
86955         * m4/human.m4: New file.
86956
86957         Module acl.
86958         * m4/acl.m4: Nop.
86959
86960         Module backupfile.
86961         * m4/backupfile.m4: New file.
86962         * m4/d-ino.m4: Indentation.
86963
86964         Module fsusage.
86965         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
86966         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
86967         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
86968
86969         Module dirfd.
86970         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
86971         requirements.
86972
86973         Module euidaccess.
86974         * m4/euidaccess.m4: New file.
86975
86976         Module file-type.
86977         * m4/file-type.m4: New file.
86978
86979         Module fileblocks.
86980         * m4/fileblocks.m4: New file.
86981
86982         Module filemode.
86983         * m4/filemode.m4: New file.
86984
86985         Module isdir.
86986         * m4/isdir.m4: New file.
86987
86988         Module lchown.
86989         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
86990         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
86991
86992         Module makepath.
86993         * m4/makepath.m4: New file.
86994
86995         Module modechange.
86996         * m4/modechange.m4: New file.
86997
86998         Module mountlist.
86999         * m4/mountlist.m4: New file.
87000         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
87001         Indentation.
87002
87003         Module path-concat.
87004         * m4/path-concat.m4: New file.
87005
87006         Module pathmax.
87007         * m4/pathmax.m4: New file.
87008
87009         Module same.
87010         * m4/same.m4: New file.
87011
87012         Module save-cwd.
87013         * m4/save-cwd.m4: New file.
87014
87015         Module savedir.
87016         * m4/savedir.m4: New file.
87017
87018         Module xgetcwd.
87019         * m4/xgetcwd.m4: New file.
87020         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
87021
87022         Module xreadlink.
87023         * m4/xreadlink.m4: New file.
87024
87025         Module safe-read.
87026         * m4/safe-read.m4: New file.
87027
87028         Module safe-write.
87029         * m4/safe-write.m4: New file.
87030
87031         Module closeout.
87032         * m4/closeout.m4: New file.
87033
87034         Module stdio-safer.
87035         * m4/stdio-safer.m4: New file.
87036
87037         Module getpass.
87038         * m4/getpass.m4: New file.
87039
87040         Module getugroups.
87041         * m4/getugroups.m4: New file.
87042
87043         Module group-member.
87044         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
87045         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
87046
87047         Module idcache.
87048         * m4/idcache.m4: New file.
87049
87050         Module userspec.
87051         * m4/userspec.m4: New file.
87052
87053         Module gettime.
87054         * m4/clock_time.m4: New file.
87055         * m4/gettime.m4: New file.
87056
87057         Module settime.
87058         * m4/settime.m4: New file.
87059
87060         Module posixtm.
87061         * m4/posixtm.m4: New file.
87062
87063         Module gethostname.
87064         * m4/gethostname.m4: New file.
87065
87066         Module canon-host.
87067         * m4/canon-host.m4: New file.
87068
87069         Module gettext.
87070         * m4/codeset.m4: New file, from gettext-0.11.5.
87071         * m4/gettext.m4: New file, from gettext-0.11.5.
87072         * m4/glibc21.m4: New file, from gettext-0.11.5.
87073         * m4/iconv.m4: New file, from gettext-0.11.5.
87074         * m4/intdiv0.m4: New file, from gettext-0.11.5.
87075         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
87076         * m4/inttypes.m4: New file, from gettext-0.11.5.
87077         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
87078         * m4/isc-posix.m4: New file, from gettext-0.11.5.
87079         * m4/lcmessage.m4: New file, from gettext-0.11.5.
87080         * m4/lib-ld.m4: New file, from gettext-0.11.5.
87081         * m4/lib-link.m4: New file, from gettext-0.11.5.
87082         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
87083         * m4/progtest.m4: New file, from gettext-0.11.5.
87084         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
87085         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
87086         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
87087
87088         Module localcharset.
87089         * m4/localcharset.m4: New file.
87090
87091         Module hard-locale.
87092         * m4/hard-locale.m4: New file.
87093
87094         Module mbswidth.
87095         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
87096         onceonly macros.
87097         * m4/mbrtowc.m4: Add comment.
87098
87099         Module memcasecmp.
87100         * m4/memcasecmp.m4: New file.
87101
87102         Module memcoll.
87103         * m4/memcoll.m4: New file.
87104
87105         Module unicodeio.
87106         * m4/unicodeio.m4: New file.
87107
87108         Module rpmatch.
87109         * m4/rpmatch.m4: New file.
87110
87111         Module yesno.
87112         * m4/yesno.m4: New file.
87113
87114         Module exitfail.
87115         * m4/exitfail.m4: New file.
87116
87117         Module c-stack.
87118         * m4/c-stack.m4 (gl_C_STACK): New macro.
87119         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
87120
87121         Module error.
87122         * m4/error.m4 (gl_ERROR): New macro.
87123         (jm_PREREQ_ERROR): Use onceonly macros.
87124
87125         Module fatal.
87126         * m4/fatal.m4: New file.
87127
87128         Module getloadavg.
87129         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
87130         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
87131
87132         Module getpagesize.
87133         * m4/getpagesize.m4: New file.
87134
87135         Module getusershell.
87136         * m4/getusershell.m4: New file.
87137
87138         Module physmem.
87139         * m4/physmem.m4: New file.
87140
87141         Module posixver.
87142         * m4/posixver.m4: New file.
87143
87144         Module quotearg.
87145         * m4/quotearg.m4: New file.
87146
87147         Module quote.
87148         * m4/quote.m4: New file.
87149
87150         Module readutmp.
87151         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
87152
87153         Module sig2str.
87154         * m4/sig2str.m4: New file.
87155
87156         Other.
87157         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
87158         ulonglong.m4.
87159         * m4/intmax_t.m4: New file.
87160         * m4/d-type.m4: Indentation.
87161         * m4/jm-macros.m4: Update.
87162         * m4/prereq.m4 (jm_PREREQ): Update.
87163         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
87164         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
87165         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
87166         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
87167         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
87168         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
87169         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
87170         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
87171         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
87172         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
87173         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
87174         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
87175         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
87176         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
87177         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
87178         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
87179         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
87180         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
87181         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
87182
87183 2002-12-24  Bruno Haible  <bruno@clisp.org>
87184
87185         * MODULES.txt: Update according to m4/ changes.
87186
87187         Module gettext.
87188         * config.rpath: New file, from gettext-0.11.5.
87189
87190         * modules/*: New module descriptions.
87191         * gnulib-tool: New file.
87192         * MODULES.html.sh: New file.
87193
87194 2002-12-21  Karl Berry  <karl@gnu.org>
87195
87196         * doc/fdl.texi: update to version 1.2.
87197
87198 2002-12-19  Karl Berry  <karl@gnu.org>
87199
87200         * config/config.guess: update from prep.
87201
87202 2002-12-18  Bruno Haible  <bruno@clisp.org>
87203
87204         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
87205         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
87206
87207 2002-12-17  Bruno Haible  <bruno@clisp.org>
87208
87209         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
87210         stdlib.h, string.h.
87211
87212 2002-12-17  Bruno Haible  <bruno@clisp.org>
87213
87214         * lib/canon-host.c (strdup): Remove unused declaration.
87215
87216         * lib/fsusage.c: Include full_read.h.
87217         (get_fs_usage): Use full_read instead of safe_read.
87218
87219         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
87220
87221 2002-12-12  Karl Berry  <karl@gnu.org>
87222
87223         * config/config.guess: update from prep.
87224
87225 2002-12-11  Bruno Haible  <bruno@clisp.org>
87226
87227         * m4/setenv.m4: New file, from gettext-0.11.5.
87228
87229 2002-12-11  Bruno Haible  <bruno@clisp.org>
87230
87231         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
87232         not unsetenv().
87233         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
87234         modifications:
87235
87236         2002-12-11  Bruno Haible  <bruno@clisp.org>
87237
87238                 * setenv.c (alloca): Fall back to malloc.
87239                 (freea): New macro.
87240                 (setenv): Use freea() to free memory allocated with alloca().
87241
87242         2002-11-13  Bruno Haible  <bruno@clisp.org>
87243
87244                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
87245                 function declarations.
87246                 * unsetenv.c (unsetenv): Likewise.
87247
87248         2002-03-04  Bruno Haible  <bruno@clisp.org>
87249
87250                 Portability to AIX 4.3.3.
87251                 * unsetenv.c: New file, extracted from setenv.c.
87252                 * setenv.c: Move the unsetenv() function to unsetenv.c.
87253
87254         2001-12-20  Bruno Haible  <bruno@clisp.org>
87255
87256                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
87257                 use malloc instead. For SunOS 4.
87258
87259         2001-12-11  Bruno Haible  <bruno@clisp.org>
87260
87261                 * setenv.c: Declare alloca.
87262                 (compar_fn_t): New typedef.
87263                 (KNOWN_VALUE, STORE_VALUE): Use it.
87264
87265         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
87266         setenv.h.
87267
87268 2002-12-10  Paul Eggert  <eggert@twinsun.com>
87269
87270         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
87271         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
87272         Choose values that are less likely to collide with system fnmatch
87273         options.
87274         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
87275         defined (e.g., a pure POSIX system).
87276         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
87277         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
87278
87279 2002-12-06  Paul Eggert  <eggert@twinsun.com>
87280
87281         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
87282         a pain in practice to deal with generated m4 files.  This change
87283         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
87284
87285         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
87286         and jm-glibc-io.m4, as they are no longer a special case.
87287         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
87288         kludge and the auto-generation stuff.  Check only whether the
87289         functions are declared, not whether they exist, since older hosts
87290         that don't declare the functions can't use the optimization anyway.
87291
87292 2002-12-06  Jim Meyering  <jim@meyering.net>
87293
87294         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
87295
87296         Merge in changes from libc's misc/error.c, in preparation
87297         for the merge of gnulib's changes back into libc.
87298
87299         * lib/error.c (_): Define only if not already defined.
87300         Move definition to follow all #include directives.
87301         Include unlocked-io.h only if !_LIBC.
87302         [_LIBC]: Include <libio/libioP.h>.
87303         [USE_IN_LIBIO]: Include <libio/iolibio.h>
87304         (fflush): Tweak definition to use INTUSE.
87305         (putc): Define.
87306
87307 2002-12-05  Paul Eggert  <eggert@twinsun.com>
87308
87309         * lib/alloca.c [defined emacs]: Include "lisp.h".
87310         (xalloc_die) [defined emacs]: New macro.
87311         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
87312         [! defined emacs]: Include <xalloc.h>.
87313         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
87314         (pointer): Typedef to POINTER_TYPE *.
87315         (malloc): Remove decl; we now always use xmalloc.
87316         (alloca): Use old-style definition, since Emacs needs this.
87317         Check for arithmetic overflow when computing combined size.
87318
87319 2002-12-04  Paul Eggert  <eggert@twinsun.com>
87320
87321         Do not generate unlocked-io.h automatically, since it's easier to
87322         maintain it by hand.
87323
87324         * lib/unlocked-io.h: New file, from GNU diffutils,
87325         but with proper copyright notice and attribution.
87326         * lib/gen-uio: Remove.
87327         * lib/Makefile.am: Add copyright notice.
87328         (libfetish_a_SOURCES): Add unlocked-io.h.
87329         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
87330         (DISTCLEANFILES, io_functions): Remove macros.
87331         (EXTRA_DIST): Remove gen_uio.
87332         (unlocked-io.h): Remove rule.
87333
87334 2002-12-04  Jim Meyering  <jim@meyering.net>
87335
87336         Reflect the fact that stat.c and lstat.c are no longer generated.
87337         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
87338         (DISTCLEANFILES): Likewise.
87339         (EXTRA_DIST): Likewise.
87340         (all_local): Don't depend on stat.c or lstat.c.
87341         (stat.c, lstat.c): Remove rules.
87342         (EXTRA_DIST): Remove xstat.in.
87343
87344         * lib/xstat.in: Remove file.  Contents moved into stat.c.
87345         * lib/stat.c: New file.  Contents mostly from xstat.in.
87346         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
87347         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
87348
87349         * lib/safe-read.c: Rework so that it may serve to define safe_write,
87350         too.
87351         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
87352
87353 2002-12-03  Jim Meyering  <jim@meyering.net>
87354
87355         * lib/safe-read.c, safe-write.c: Change variable names and comments,
87356         but not semantics, to minimize the differences between these two files.
87357         (safe_read): Change comment to mention SAFE_READ_ERROR.
87358
87359         * lib/safe-read.c (IS_EINTR): Define.
87360         (safe_read): Use IS_EINTR in place of in-function cpp directives.
87361
87362 2002-12-02  Jim Meyering  <jim@meyering.net>
87363
87364         * lib/safe-read.c (EINTR): Define.
87365         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
87366         (INT_MAX): Provide fallback.
87367         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
87368
87369         * lib/safe-read.h (SAFE_READ_ERROR): Define.
87370
87371 2002-12-02  Bruno Haible  <bruno@clisp.org>
87372
87373         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
87374         Define, taken from safe-read.c.
87375         (INT_MAX): Provide fallback.
87376         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
87377         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
87378
87379         * lib/safe-read.c (EINTR): Remove definition.
87380         (safe_read): Don't use EINTR if it is absent.
87381
87382 2002-12-01  Jim Meyering  <jim@meyering.net>
87383
87384         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
87385         zero.
87386         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
87387
87388 2002-11-27  Paul Eggert  <eggert@twinsun.com>
87389
87390         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
87391         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
87392         with `if (! (value < limit)) abort ();', for readability.
87393
87394 2002-11-26  Karl Berry  <karl@gnu.org>
87395
87396         * lib/strdup.c: copy from libc again, with jim's ok.
87397         * lib/.cppi-disable: re-add strdup.c
87398
87399 2002-11-25  Karl Berry  <karl@gnu.org>
87400
87401         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
87402         instead of "strtol.c".
87403
87404 2002-11-25  Karl Berry  <karl@gnu.org>
87405
87406         * config/install-sh: update from automake for variable quoting, $0 in
87407         error msgs, etc.
87408
87409         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
87410         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
87411         entry.
87412
87413 2002-11-25  Jim Meyering  <jim@meyering.net>
87414
87415         * lib/mktime.c: Sync from libc, now that it has the latest fix.
87416
87417 2002-11-24  Karl Berry  <karl@gnu.org>
87418
87419         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
87420         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
87421
87422 2002-11-24  Jim Meyering  <jim@meyering.net>
87423
87424         Update from coreutils:
87425
87426         * lib/mktime.c: Merge in changes from libc.
87427
87428         Avoid a link-time failure on some Linux systems.
87429         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
87430         (otherwise).
87431         (__mon_yday): Declare with the STATIC attribute.
87432         (__mktime_internal): Likewise.
87433         Based on a report from Greg Schafer.
87434
87435 2002-11-23  Jim Meyering  <jim@meyering.net>
87436
87437         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
87438         Use `unsigned', not `int', as type of index.
87439
87440         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
87441
87442         * lib/fsusage.c: Remove unneeded parentheses around operands of
87443         `defined'.
87444
87445 2002-11-22  Paul Eggert  <eggert@twinsun.com>
87446
87447         * lib/quotearg.h: Allow multiple inclusion by surrounding with
87448         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
87449         so that we can be included first.
87450         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
87451         * lib/quotearg.c: Include quotearg.h immediately after config.h.
87452         No need to include stddef.h or sys/types.h any more.
87453         Surround local include files with "", not "<>".
87454         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
87455         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
87456         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
87457         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
87458         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
87459         (ISPRINT): Remove; no longer needed now that we assume C89.
87460
87461         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
87462         Preserve errno.
87463
87464         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
87465         quotearg_char): Use SIZE_MAX rather than
87466         (size_t) -1 when we are talking about "infinity".
87467
87468         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
87469
87470 2002-11-22  Paul Eggert  <eggert@twinsun.com>
87471
87472         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
87473         hint that one should use `if (! x) abort ();' rather than `assert
87474         (x);', and anyway it's one less thing to worry about configuring.
87475         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
87476         hash_rehash, hash_insert): Use abort rather than assert.
87477
87478 2002-11-22  Bruno Haible  <bruno@clisp.org>
87479
87480         * lib/safe-read.h: Assume C89. Add comments.
87481         (safe_read): Change return type to size_t.
87482         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
87483         byte counts > SSIZE_MAX correctly.
87484         * lib/safe-write.h: New file.
87485         * lib/safe-write.c: New file.
87486         * lib/full-read.h: New file.
87487         * lib/full-read.c: New file.
87488         * lib/full-write.h: Assume C89. Add comments.
87489         * lib/full-write.c: Include safe-write.h.
87490         (full_write): Rewritten to use safe_write.
87491         Suggested by Jim Meyering and Paul Eggert.
87492
87493 2002-11-21  Jim Meyering  <jim@meyering.net>
87494
87495         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
87496
87497         Merge in changes from the coreutils.
87498
87499         2002-09-25  Paul Eggert  <eggert@twinsun.com>
87500         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
87501         <stdint.h>.
87502         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
87503         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
87504         int.  Work more efficiently if X is the same width as uintmax_t.
87505         Do not compare X to -1, to avoid bogus compiler warning.
87506         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
87507         Don't assume that f_frsize and f_bsize are the same type.
87508
87509         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
87510         warning on FreeBSD.
87511
87512         * lib/makepath.c (make_path): Restore umask *before* creating the final
87513         component.
87514         (make_path): Minor reformatting.
87515
87516         * lib/xmalloc.c: Adjust to work with new autoconf macros,
87517         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
87518         HAVE_MALLOC/HAVE_REALLOC.
87519
87520         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
87521         dummy ones.  At least on GNU/Linux systems, `auto' means something
87522         else.
87523         From Michael Stone.
87524
87525 2002-11-21  Bruno Haible  <bruno@clisp.org>
87526
87527         Remove case insensitive option matching.
87528         * lib/argmatch.h (argcasematch): Remove declaration.
87529         (ARGCASEMATCH): Remove macro.
87530         (__xargmatch_internal): Remove case_sensitive argument.
87531         (XARGMATCH): Update.
87532         (XARGCASEMATCH): Remove macro.
87533         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
87534         case_sensitive argument.
87535         (argcasematch): Remove function.
87536         (__xargmatch_internal): Remove case_sensitive argument.
87537         (main): Use XARGMATCH instead of XARGCASEMATCH.
87538
87539         * lib/xmalloc.c: Change compile-time error message. Add comment about
87540         required autoconf version.
87541
87542 2002-11-20  Paul Eggert  <eggert@twinsun.com>
87543
87544         Merge argmatch cleanups from Bison.  Assume C89.
87545
87546         * lib/argmatch.c: Include config.h here, not in argmatch.h.
87547         Include stdlib.h, for EXIT_FAILURE.
87548         Always include <string.h>, since we assume C89.
87549         (EXIT_FAILURE): Remove pre-C89 bug workaround.
87550         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
87551         Include <stddef.h> instead, since it's all we need for size_t.
87552         (PARAMS): Remove.  All uses removed.
87553         (ARRAY_CARDINALITY): Do not bother to #undef.
87554         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
87555         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
87556         Remove unnecessary parentheses.
87557         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
87558         Insert necessary parentheses.
87559         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
87560         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
87561
87562 2002-11-19  Bruno Haible  <bruno@clisp.org>
87563
87564         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
87565         * lib/mbswidth.h: Include <stddef.h>, for size_t.
87566
87567         * lib/mbswidth.h (PARAMS): Remove macro.
87568         (mbswidth, mbsnwidth): Use ANSI C function declarations.
87569         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
87570
87571         * lib/gcd.h (PARAMS): Remove macro.
87572         (gcd): Use ANSI C function declarations.
87573         * lib/gcd.c (gcd): Likewise.
87574
87575 2002-11-15  Bruno Haible  <bruno@clisp.org>
87576
87577         * lib/strcspn.c: Include <stddef.h>.
87578         (strcspn): Use ANSI C function declaration. Change return type to
87579         size_t. Use NULL.
87580         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
87581         (strpbrk): Use NULL.
87582         * lib/strpbrk.h (PARAMS): Remove macro.
87583         (strpbrk): Use ANSI C function declaration.
87584         * lib/strstr.c: Don't include <sys/types.h>.
87585         * lib/strstr.h (PARAMS): Remove macro.
87586         (strstr): Use ANSI C function declarations.
87587
87588 2002-11-14  Karl Berry  <karl@gnu.org>
87589
87590         * config/mkinstalldirs: `do' on separate line, instead of
87591         `for var; do'.
87592
87593 2002-11-06  Bruno Haible  <bruno@clisp.org>
87594
87595         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
87596         * lib/gcd.c (gcd): Likewise.
87597
87598 2002-11-05  Bruno Haible  <bruno@clisp.org>
87599
87600         * lib/gcd.h: New file, from gettext-0.11.5.
87601         * lib/gcd.c: New file, from gettext-0.11.5.
87602
87603 2002-11-05  Bruno Haible  <bruno@clisp.org>
87604
87605         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87606         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87607         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87608         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
87609
87610         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
87611         <libintl.h>.
87612         * lib/makepath.c: Include gettext.h instead of <locale.h> and
87613         <libintl.h>.
87614
87615         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
87616         * lib/human.c: Include gettext.h instead of <libintl.h>.
87617         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
87618         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
87619         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
87620         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
87621         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
87622         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
87623         (textdomain): Remove definition.
87624         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
87625
87626         * lib/long-options.c: Remove include of <libintl.h> and definition of
87627         _.
87628         * lib/same.c: Remove include of <libintl.h> and definition of _.
87629
87630 2002-11-04  Owen Taylor  <otaylor@redhat.com>
87631
87632         * lib/config.charset: A few additions for Solaris.
87633
87634 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
87635
87636         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
87637         * lib/localcharset.c (locale_charset): Declare as extern "C".
87638
87639 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
87640
87641         * lib/config.charset: msdos in uk_UA uses CP1125.
87642
87643 2002-11-04  Bruno Haible  <bruno@clisp.org>
87644
87645         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
87646         * lib/strcase.h: New file, from GNU gettext-0.11.5.
87647         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
87648         * lib/strstr.h: New file, from GNU gettext-0.11.5.
87649         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
87650
87651 2002-11-04  Bruno Haible  <bruno@clisp.org>
87652
87653         * lib/localcharset.c (locale_charset): Don't return an empty string.
87654
87655 2002-11-04  Bruno Haible  <bruno@clisp.org>
87656
87657         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
87658         aliases.
87659
87660 2002-11-04  Bruno Haible  <bruno@clisp.org>
87661
87662         * lib/config.charset: Update for newest glibc. Add canonical names
87663         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
87664
87665 2002-11-04  Bruno Haible  <bruno@clisp.org>
87666
87667         * lib/config.charset: Add support for NetBSD.
87668
87669 2002-11-04  Bruno Haible  <bruno@clisp.org>
87670
87671         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
87672
87673 2002-11-01  Bruno Haible  <bruno@clisp.org>
87674
87675         * configure.in: Add AC_CONFIG_AUX_DIR call.
87676         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
87677         test/Makefile.
87678         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
87679
87680 2002-09-28  Karl Berry  <karl@gnu.org>
87681
87682         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
87683         installed automake until the next release, since changes have been
87684         made.
87685
87686 2002-09-25  Karl Berry  <karl@gnu.org>
87687
87688         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
87689         * lib/getopt*: copy from libc/posix.
87690         * lib/gettext.h: copy from gettext.
87691         * lib/.cppi-disable: add strdup.c, gettext.h.
87692
87693 2002-09-25  Karl Berry  <karl@gnu.org>
87694
87695         * config/srclist.txt: enable gettext.h check.
87696         * config/config.{guess,sub}: update from prep.
87697         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
87698                 from automake 1.6.3.
87699         See srclist*.
87700
87701 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
87702
87703         * regex.c (PATFETCH): Remove the translating fetch.
87704         (PATFETCH_RAW): Rename to PATFETCH.
87705         (set_image_of_range): New fun.
87706         (SET_RANGE_TABLE_WORK_AREA): Use it.
87707         (regex_compile): Don't translate the pattern chars so eagerly.
87708         Only do it when inserting an `exactn' bytecode or when handling
87709         a char-range.
87710         (mutually_exclusive_p): Avoid empty statement.
87711
87712 2002-07-06  Jim Meyering  <meyering@lucent.com>
87713
87714         * m4/README: Don't mention Makefile.am.in.
87715         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
87716
87717 2002-07-01  Jim Meyering  <meyering@lucent.com>
87718
87719         * lib/c-stack.c: Include sys/time.h.
87720         From Volker Borchert.
87721
87722 2002-06-26  Paul Eggert  <eggert@twinsun.com>
87723
87724         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
87725
87726 2002-06-26  Paul Eggert  <eggert@twinsun.com>
87727
87728         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
87729         New macro.  Use it uniformly instead of
87730         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
87731         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
87732         reported by Vin Shelton.
87733
87734 2002-06-22  Paul Eggert  <eggert@twinsun.com>
87735
87736         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
87737         Do not assume SA_SIGINFO behavior.
87738         Bug reported by Jim Meyering on NetBSD 1.5.2.
87739
87740 2002-06-22  Jim Meyering  <meyering@lucent.com>
87741
87742         * m4/c-stack.m4: New file, from diffutils-2.8.2.
87743         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
87744
87745         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
87746         now that configure.ac uses AC_GNU_SOURCE.
87747         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
87748         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
87749
87750         Update to latest tools.  Suggestions from Paul Eggert.
87751         * m4/stdbool.m4: New file, from diffutils-2.8.2.
87752         * m4/gnu-source.m4: Update from diffutils-2.8.2.
87753         * m4/fnmatch.m4: Likewise.
87754         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
87755         to AC_HEADER_STDBOOL
87756
87757 2002-06-22  Jim Meyering  <meyering@lucent.com>
87758
87759         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
87760         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
87761
87762 2002-06-22  Jim Meyering  <meyering@lucent.com>
87763
87764         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
87765
87766         * lib/exitfail.c, exitfail.h: Likewise.
87767         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
87768
87769         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
87770         of fnmatch.h.
87771         (EXTRA_DIST): Add fnmatch_loop.c.
87772         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
87773
87774         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
87775         * lib/fnmatch.c: Update from diffutils-2.8.2.
87776         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
87777         * lib/fnmatch.h: Remove file.
87778
87779 2002-06-21  Jim Meyering  <meyering@lucent.com>
87780
87781         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
87782         * m4/mbrtowc.m4: Likewise.
87783
87784         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
87785         * m4/mbswidth.m4: Reflect name change:
87786         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
87787         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
87788
87789         * m4/lib-link.m4: Update from gettext-0.11.2.
87790         * m4/gettext.m4: Likewise.
87791
87792         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
87793         From Alfred M. Szmidt.
87794
87795 2002-06-18  Paul Eggert  <eggert@twinsun.com>
87796
87797         * lib/file-type.h: Report an error if neither S_ISREG nor
87798         S_IFREG is defined, instead of using a test specific to glibc
87799         2.2.  This should be safe, since POSIX requires S_ISREG and
87800         Unix Version 7 had S_IFREG.  We don't need to check for
87801         <sys/types.h> since we don't use any symbols that it defines.
87802
87803 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
87804
87805         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
87806         $@-t, so that each temporary file name is unique and valid in the first
87807         8 characters, for operation under DOS.
87808
87809 2002-06-15  Paul Eggert  <eggert@twinsun.com>
87810
87811         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
87812
87813 2002-06-15  Jim Meyering  <meyering@lucent.com>
87814
87815         Work even with DJGPP 2.03, which lacks support for symlinks.
87816         From Richard Dawe.
87817         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
87818         is defined.
87819         * lib/lchown.c (S_ISLNK): Likewise.
87820
87821 2002-06-15  Jim Meyering  <meyering@lucent.com>
87822
87823         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
87824         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
87825         have been included before this file.
87826
87827 2002-06-14  Jim Meyering  <meyering@lucent.com>
87828
87829         * lib/file-type.h: Use the version from diffutils-2.8.2.
87830         * lib/file-type.c: Likewise.
87831
87832 2002-06-07  Jim Meyering  <meyering@lucent.com>
87833
87834         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
87835         They're needed at least for NetBSD 1.5.2.
87836         ($statxfs_includes): Include those same headers.
87837         ($statxfs_includes): Include sys/vfs.h if available.
87838         ($statxfs_includes): Likewise for sys/statvfs.h.
87839         Check for the following members in both structs statfs and statvfs:
87840         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
87841
87842 2002-06-01  Jim Meyering  <meyering@lucent.com>
87843
87844         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
87845         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
87846
87847 2002-05-28  Jim Meyering  <meyering@lucent.com>
87848
87849         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
87850         Reported by Volker Borchert.
87851
87852 2002-05-27  Jim Meyering  <meyering@lucent.com>
87853
87854         Fix a problem seen only on nonconforming systems whereby ls.c's
87855         use of localtime, and then of gettimeofday would cause trouble:
87856         the localtime call used to initialize rpl_gettimeofday's save
87857         mechanism would clobber ls's current local time information so
87858         that in any long listing the first file would always be listed
87859         with date 1970-01-01.  Analysis by Volker Borchert.
87860
87861         * lib/gettimeofday.c (localtime): Undefine.
87862         (rpl_localtime): New function.
87863
87864 2002-05-27  Jim Meyering  <meyering@lucent.com>
87865
87866         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
87867         localtime.
87868
87869         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
87870         use the replacement function; it wouldn't resolve at link time.
87871         Reported by Volker Borchert.
87872
87873 2002-05-22  Jim Meyering  <meyering@lucent.com>
87874
87875         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
87876         file-type.h.
87877         * lib/file-type.h: New file.
87878         * lib/file-type.c (file_type): New file/function.  Extracted from
87879         diffutils.
87880
87881 2002-04-30  Jim Meyering  <meyering@lucent.com>
87882
87883         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
87884
87885 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87886
87887         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
87888
87889 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87890
87891         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
87892         Do not check for alloca.h (no longer used) or stdbool.h (was never
87893         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
87894
87895 2002-04-29  Paul Eggert  <eggert@twinsun.com>
87896
87897         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
87898
87899 2002-04-29  Jim Meyering  <meyering@lucent.com>
87900
87901         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
87902         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
87903         Use AC_FUNC_STRNLEN here instead.
87904
87905         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
87906         With autoconf-2.53a, it's part of AC_PROG_CC.
87907
87908 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87909
87910         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
87911         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
87912
87913 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87914
87915         * lib/sig2str.h, lib/sig2str.c: New files.
87916         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
87917
87918 2002-04-28  Paul Eggert  <eggert@twinsun.com>
87919
87920         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
87921         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
87922         of 127, since 64 is the largest conceivable number for ancient
87923         nonstandard hosts.
87924         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
87925
87926 2002-04-28  Jim Meyering  <meyering@lucent.com>
87927
87928         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
87929
87930 2002-04-24  Jim Meyering  <meyering@lucent.com>
87931
87932         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
87933         (jm_PREREQ): Use it.
87934
87935         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
87936         mach/mach.h fcntl.h.
87937         Check for this function: setlocale.
87938
87939 2002-04-24  Jim Meyering  <meyering@lucent.com>
87940
87941         * lib/gettext.h: New file, from Gettext.
87942         * lib/Makefile.am (INCLUDES): Remove -I../intl.
87943         (libfetish_a_SOURCES): Add gettext.h.
87944
87945 2002-04-16  Jim Meyering  <meyering@lucent.com>
87946
87947         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
87948         ut_pid, ut_id, ut_exit.
87949
87950 2002-04-16  Jim Meyering  <meyering@lucent.com>
87951
87952         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
87953         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
87954         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
87955
87956 2002-04-12  Jim Meyering  <meyering@lucent.com>
87957
87958         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
87959         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
87960         existence of the getmntinfo function.  Needed for Darwin 5.3.
87961
87962         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
87963         This is necessary at least on Darwin 5.3.
87964
87965         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
87966         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
87967         strnlen.o in the library, and that makes some versions of ranlib
87968         object.
87969
87970 2002-04-12  Jim Meyering  <meyering@lucent.com>
87971
87972         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
87973
87974 2002-04-09  Jim Meyering  <meyering@lucent.com>
87975
87976         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
87977         to be more precise.  Rather than saying we're checking whether the
87978         function `works', say what we're testing.
87979         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
87980         Reported by Bruno Haible.
87981
87982 2002-03-10  Jim Meyering  <meyering@lucent.com>
87983
87984         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
87985         Suggestion from Santiago Vila.
87986
87987 2002-03-08  Jim Meyering  <meyering@lucent.com>
87988
87989         * lib/rename.c: Mention that this wrapper is needed also on
87990         mips-dec-ultrix4.4 systems.
87991
87992 2002-03-02  Jim Meyering  <meyering@lucent.com>
87993
87994         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
87995         not HAVE_CLOCK_SETTIME.
87996
87997 2002-02-27  Paul Eggert  <eggert@twinsun.com>
87998
87999         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
88000         Check for clock_settime.
88001
88002 2002-02-27  Paul Eggert  <eggert@twinsun.com>
88003
88004         * lib/nanosleep.h: Rename to....
88005         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
88006
88007         * lib/gettime.c: New file.
88008         * lib/settime.c: New file.
88009         * lib/stime.c: Remove.
88010
88011         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
88012         timespec.h.  Remove nanosleep.h.
88013
88014 2002-02-25  Paul Eggert  <eggert@twinsun.com>
88015
88016         * m4/acl.m4: New file.
88017         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
88018         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
88019
88020 2002-02-25  Paul Eggert  <eggert@twinsun.com>
88021
88022         * lib/acl.c, lib/acl.h: New files.
88023         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
88024
88025 2002-02-24  Jim Meyering  <meyering@lucent.com>
88026
88027         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
88028         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
88029         cause trouble.  Reported by Nelson Beebe.
88030
88031 2002-02-23  Paul Eggert  <eggert@twinsun.com>
88032
88033         * lib/path-concat.c (xpath_concat): Reorder code to pacify
88034         compilers that don't know that xalloc_die never returns.
88035
88036 2002-02-20  Jim Meyering  <meyering@lucent.com>
88037
88038         * lib/getdate.c: Regenerate using bison-1.33.
88039
88040 2002-02-17  Jim Meyering  <meyering@lucent.com>
88041
88042         * config/config.guess (main): Don't use `head -1'; it's no longer
88043         portable. Use `sed 1q' instead.
88044
88045 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
88046
88047         * m4/codeset.m4: Upgrade to gettext-0.11.
88048         * m4/gettext.m4: Upgrade to gettext-0.11.
88049         * m4/glibc21.m4: Upgrade to gettext-0.11.
88050         * m4/iconv.m4: Upgrade to gettext-0.11.
88051         * m4/isc-posix.m4: Upgrade to gettext-0.11.
88052         * m4/lcmessage.m4: Upgrade to gettext-0.11.
88053         * m4/lib-ld.m4: New file, from gettext-0.11.
88054         * m4/lib-link.m4: New file, from gettext-0.11.
88055         * m4/lib-prefix.m4: New file, from gettext-0.11.
88056         * m4/progtest.m4: Upgrade to gettext-0.11.
88057
88058 2002-02-15  Paul Eggert  <eggert@twinsun.com>
88059
88060         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
88061         (jm_PREREQ): Use it.
88062
88063 2002-02-15  Paul Eggert  <eggert@twinsun.com>
88064
88065         * lib/posixver.c, lib/posixver.h: New files.
88066         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
88067
88068 2002-02-02  Paul Eggert  <eggert@twinsun.com>
88069             Bruno Haible  <bruno@clisp.org>
88070
88071         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
88072         (fwrite_success_callback): New declaration.
88073         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
88074         print_unicode_char. Call failure callback instead of error.
88075         (fwrite_success_callback): New function.
88076         (exit_failure_callback): New function.
88077         (fallback_failure_callback): New function.
88078         (print_unicode_char): Call unicode_to_mb.
88079
88080 2002-01-26  Jim Meyering  <meyering@lucent.com>
88081
88082         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
88083         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
88084
88085 2002-01-26  Jim Meyering  <meyering@lucent.com>
88086
88087         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
88088
88089 2002-01-22  Paul Eggert  <eggert@twinsun.com>
88090
88091         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
88092
88093 2002-01-22  Jim Meyering  <meyering@lucent.com>
88094
88095         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
88096         Otherwise, some versions of automake would omit the rule that makes
88097         Makefile from Makefile.in.
88098
88099 2002-01-21  Paul Eggert  <eggert@twinsun.com>
88100
88101         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
88102         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
88103         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
88104         (memcoll): Set errno to zero if there is no error.
88105
88106         * lib/quotearg.c (quotearg_buffer_restyled):
88107         Fix bug with quoting buffers containing NUL when backslashing escapes.
88108         This bug was exposed by the other changes in this patch.
88109         (quotearg_n_options): New arg ARGSIZE.
88110         All callers changed.
88111         (quoting_options_from_style): New function.
88112         (quotearg_n_style): Use it.
88113         (quotearg_n_style_mem): New function.
88114
88115         * lib/quotearg.h (quotearg_n_style_mem): New function.
88116
88117 2002-01-19  Jim Meyering  <meyering@lucent.com>
88118
88119         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
88120         Remove useless quotes: DF_PROG="df".
88121         * m4/strnlen.m4: New file.
88122
88123 2002-01-16  Paul Eggert  <eggert@twinsun.com>
88124
88125         * lib/backupfile.c (ISDIGIT): Comment fix.
88126         * lib/getdate.y (ISDIGIT): Likewise.
88127         * lib/posixtm.c (ISDIGIT, year): Likewise.
88128         * lib/strverscmp.c (ISDIGIT): Likewise.
88129         * lib/userspec.c (ISDIGIT): Likewise.
88130
88131 2002-01-16  Jim Meyering  <meyering@lucent.com>
88132
88133         * lib/getdate.y: Add three semicolons, each just before a closing
88134         brace. Bison (as of version 1.31) no longer papers over that mistake.
88135
88136 2002-01-05  Jim Meyering  <meyering@lucent.com>
88137
88138         * lib/version-etc.c (version_etc_copyright): Update copyright year.
88139
88140 2001-12-19  Paul Eggert  <eggert@twinsun.com>
88141
88142         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
88143         not silently exit merely because the output buffer happens to
88144         have nothing pending.
88145
88146 2001-12-18  Paul Eggert  <eggert@twinsun.com>
88147
88148         See the big note in ../ChangeLog.
88149         * lib/human.c (suffixes): Prefer K to k for 1024.
88150         (generate_suffix_backwards): New function.
88151         (human_readable_inexact): Use it.
88152         * lib/xstrtol.c (__xstrtol): If there is no number but there
88153         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
88154         Accept 'K' as well as 'k'.
88155
88156 2001-12-15  Jim Meyering  <meyering@lucent.com>
88157
88158         * lib/regex.h (__restrict_arr): Update from libc.
88159
88160         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
88161         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
88162         (STREQ): Define.
88163
88164 2001-12-14  Jim Meyering  <meyering@lucent.com>
88165
88166         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
88167         Suggestion from Bruno Haible.
88168
88169 2001-12-10  Jim Meyering  <meyering@lucent.com>
88170
88171         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
88172         xrealloc, Instead, include "xalloc.h".
88173         (initbuffer): Don't cast xmalloc return value to char*.
88174         (readline): Reword comment.
88175         Don't cast xrealloc return value to char*
88176         Return NULL, not 0.
88177
88178 2001-12-09  Jim Meyering  <meyering@lucent.com>
88179
88180         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
88181         about `signed and unsigned type in conditional expression'.
88182         * lib/posixtm.c (posix_time_parse): Likewise.
88183
88184         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
88185
88186         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
88187         to avoid a pedantic warning.
88188
88189         * lib/getstr.c: Don't include assert.h.
88190         (getstr): Remove warning-evoking assertions.
88191         Return -1 if offset parameter is out of bounds.
88192         Change the type of a local from int to size_t.
88193
88194         * lib/strftime.c (my_strftime_localtime_r): Include this function
88195         definition in the `#if ! HAVE_TM_GMTOFF' block.
88196
88197         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
88198         Include xalloc.h instead.
88199
88200 2001-12-02  Jim Meyering  <meyering@lucent.com>
88201
88202         * lib/tempname.c: Don't declare getenv, thus reverting the change of
88203         2001-11-18.  It's no longer necessary, now that stdlib.h is always
88204         included.
88205
88206         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
88207         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
88208
88209 2001-11-30  Akim Demaille  <akim@epita.fr>
88210
88211         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
88212         before being defined.
88213
88214 2001-11-27  Paul Eggert  <eggert@twinsun.com>
88215
88216         * lib/quotearg.h (quotearg_n, quotearg_n_style):
88217         First arg is int, not unsigned.
88218         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
88219         (SIZE_MAX, UINT_MAX): New macros.
88220         (quotearg_n_options): Abort if N is negative.
88221         Avoid overflow check on hosts where size_t is 64 bits and int
88222         is 32 bits, as overflow is impossible there.
88223         Fix off-by-one typo that caused unnecessary reallocation.
88224
88225 2001-11-27  Jim Meyering  <meyering@lucent.com>
88226
88227         * lib/tempname.c: Merge with version from libc.
88228         * lib/regex.c: Likewise.
88229
88230         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
88231         systems for which STDC_HEADERS is 0, it was not included, resulting in
88232         a warning about an integer-to-pointer conversion problem with getenv.
88233         Reported by Volker Borchert.
88234
88235 2001-11-26  Jim Meyering  <meyering@lucent.com>
88236
88237         * lib/gtod.h: Remove file.
88238         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
88239         * lib/gettimeofday.c: Don't include gtod.h.
88240         (GTOD_init): Remove function.
88241         (rpl_gettimeofday): Do its job here instead, rather than aborting.
88242         Suggestion from Volker Borchert.
88243
88244 2001-11-23  Jim Meyering  <meyering@lucent.com>
88245
88246         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
88247         it.
88248         * lib/hash.c (struct hash_table): Define it here instead.
88249
88250 2001-11-22  Jim Meyering  <meyering@lucent.com>
88251
88252         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
88253
88254 2001-11-20  Jim Meyering  <meyering@lucent.com>
88255
88256         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
88257         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
88258
88259 2001-11-19  Jim Meyering  <meyering@lucent.com>
88260
88261         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
88262         directory.  Use "conftestXXXXXX" as the template.
88263         Suggestion from Paul Eggert.
88264
88265         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
88266         immediately, so the test doesn't mistakenly hit the max-open-files
88267         limit.
88268
88269 2001-11-18  Paul Eggert  <eggert@twinsun.com>
88270
88271         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
88272         (TEMPORARIES): New macro.
88273         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
88274         removes an artificial limitation (e.g. HP-UX 10.20, where
88275         TMP_MAX is 17576).
88276
88277 2001-11-18  Jim Meyering  <meyering@lucent.com>
88278
88279         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
88280
88281 2001-11-18  Jim Meyering  <meyering@lucent.com>
88282
88283         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
88284         on SunOS 4.
88285
88286         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
88287         files will be created before anything else.
88288
88289 2001-11-17  Paul Eggert  <eggert@twinsun.com>
88290
88291         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
88292         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
88293
88294 2001-11-17  Jim Meyering  <meyering@lucent.com>
88295
88296         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
88297         Prompted by a report from Bob Proulx.
88298
88299         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
88300         Instead, require UTILS_FUNC_MKSTEMP.
88301
88302 2001-11-17  Jim Meyering  <meyering@lucent.com>
88303
88304         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
88305         Now, that's done as part of AC_FUNC_STRTOD.
88306
88307 2001-11-17  Jim Meyering  <meyering@lucent.com>
88308
88309         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
88310         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
88311         rather than group writable.  Patch by Juan F. Codagnone.
88312
88313         * lib/readtokens.c: Remove explicit declarations of xmalloc and
88314         xrealloc, Instead, include "xalloc.h".
88315
88316         * lib/mountlist.c: Include unlocked-io.h after all system headers.
88317         Remove explicit declarations of xmalloc, xrealloc,
88318         and xstrdup.  Instead, include "xalloc.h".
88319
88320         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
88321         unlocked-io.h.
88322         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
88323         Likewise.
88324         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
88325
88326         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
88327         Reported by Padraig Brady.
88328
88329         * lib/mkstemp.c: #undef mkstemp.
88330         Include config.h.
88331         (rpl_mkstemp): Rename from mkstemp.
88332         Protoize.
88333
88334 2001-11-16  Jim Meyering  <meyering@lucent.com>
88335
88336         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
88337         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
88338         determine the amount of total physical memory, use pstat_getstatic.
88339         HPUX-11 doesn't define _SC_PHYS_PAGES.
88340         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
88341         If sysconf couldn't be used to determine the amount of available
88342         physical memory, use both pstat_getstatic and pstat_getdynamic.
88343         Based on a patch from Bob Proulx.
88344
88345 2001-11-10  Jim Meyering  <meyering@lucent.com>
88346
88347         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
88348         (jm_PREREQ): Use it.
88349
88350 2001-11-09  Jim Meyering  <meyering@lucent.com>
88351
88352         * m4/jm-macros.m4: Require autoconf-2.52f.
88353         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
88354         Use these AC_-prefixed names, not the AM_-prefixed ones.
88355
88356         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
88357
88358 2001-11-05  Jim Meyering  <meyering@lucent.com>
88359
88360         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
88361
88362 2001-11-04  Jim Meyering  <meyering@lucent.com>
88363
88364         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
88365         $DEFS.
88366
88367 2001-11-03  Jim Meyering  <meyering@lucent.com>
88368
88369         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
88370         of AC_DEFUN.
88371
88372         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
88373         know the name of the variable in the macro definition.
88374
88375 2001-11-03  Jim Meyering  <meyering@lucent.com>
88376
88377         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
88378         in argmatch_to_argument call.
88379
88380         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
88381         argument.
88382
88383         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
88384         e.g., a fault due to an attempt to free a NULL pointer.
88385
88386 2001-11-01  Jim Meyering  <meyering@lucent.com>
88387
88388         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
88389         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
88390
88391 2001-11-01  Jim Meyering  <meyering@lucent.com>
88392
88393         * lib/dirfd.c, lib/dirfd.h: New files.
88394         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
88395
88396         * lib/hash.c (hash_print) [TESTING]: Clean up.
88397
88398 2001-10-22  Paul Eggert  <eggert@twinsun.com>
88399
88400         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
88401         to avoid a warning if -Wall.
88402
88403 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
88404
88405         * README: New file
88406         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
88407         (per RMS's instructions, this is now the canonical source)
88408         * lgpl/, gpl/: New directories.
88409
88410 2001-10-21  Paul Eggert  <eggert@twinsun.com>
88411
88412         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
88413
88414 2001-10-21  Jim Meyering  <meyering@lucent.com>
88415
88416         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
88417         this code would end up calling gettext even in packages built
88418         with --disable-nls.
88419         * lib/getopt.c (_): Likewise.
88420         * lib/regex.c (_): Likewise.
88421
88422 2001-10-20  Paul Eggert  <eggert@twinsun.com>
88423
88424         * m4/error.m4 (jm_PREREQ_ERROR):
88425         Do not invoke AC_CHECK_FUNCS with strerror_r, as
88426         AC_FUNC_STRERROR_R does that.
88427         Check for strerror declaration.
88428
88429         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
88430         are supposed to have them these days.
88431         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
88432         Merge changes from latest Autoconf CVS.
88433         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
88434         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
88435         POSIX decided to standardize on the int flavor of strerror_r.
88436
88437 2001-10-20  Paul Eggert  <eggert@twinsun.com>
88438
88439         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
88440         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
88441         Use strerror_r that is only a macro, even if it is not a function.
88442         (strerror): Check for HAVE_DECL_STRERROR before declaring.
88443         (private_strerror): Use prototypes, not old-style function definition.
88444         (print_errno_message): New function.
88445         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
88446         char*-flavored one.
88447         (error_tail, error, error_at_line): Use it.
88448
88449 2001-10-11  Jim Meyering  <meyering@lucent.com>
88450
88451         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
88452         and quote_n (1, ... to avoid clobbering a buffer.
88453
88454 2001-10-05  Jim Meyering  <meyering@lucent.com>
88455
88456         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
88457         hash-pjw.h.
88458         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
88459         * lib/hash-pjw.h: New file.
88460
88461 2001-09-30  Jim Meyering  <meyering@lucent.com>
88462
88463         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
88464         `struct fsstat' has the `f_fstypename' member.
88465         Use that to define FS_TYPE, which is now used to make
88466         the getfsstat link test tighter.
88467
88468 2001-09-30  Jim Meyering  <meyering@lucent.com>
88469
88470         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
88471         Include <sys/ucred.h>, for Apple Darwin.
88472         Include sys/mount.h and sys/fs_types.h only if available.
88473         (FS_TYPE): Define.
88474         (read_filesystem_list): Use FS_TYPE.
88475
88476 2001-09-29  Paul Eggert  <eggert@twinsun.com>
88477
88478         * lib/exclude.c (excluded_filename): 0 -> false, since it's
88479         a boolean context.
88480
88481 2001-09-29  Jim Meyering  <meyering@lucent.com>
88482
88483         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
88484         [one-argument getmntent function]): Include stdio.h before mntent.h.
88485         SunOS 4.1.x needs it for the declaration of `FILE'.
88486         Patch by Volker Borchert.
88487
88488         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
88489         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
88490         sys/fs_types.h, and make the link-test for getfsstat guard #include
88491         directives with appropriate #if HAVE_*_H tests so that we can
88492         detect getfsstat on Apple Darwin1.3.7 systems.
88493         Reported by Nelson Beebe.
88494         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
88495
88496 2001-09-28  Paul Eggert  <eggert@twinsun.com>
88497
88498         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
88499         #defines strtoimax.  Also treat the other strto* functions
88500         like strtoimax.
88501
88502         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
88503         Check for strtoul and strtoumax,
88504         as those declarations are made even in the signed case.
88505         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
88506         Likewise, for strtol and strtoimax.
88507
88508 2001-09-28  Paul Eggert  <eggert@twinsun.com>
88509
88510         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
88511         #defines strtoimax.  Also treat the other strto* functions
88512         like strtoimax.
88513
88514         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
88515         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
88516         (strtoimax, strtoumax): Do not declare if already defined as a macro.
88517
88518 2001-09-26  Jim Meyering  <meyering@lucent.com>
88519
88520         Most macros in unlocked-io.h had the wrong number of arguments.
88521         * lib/gen-uio: New script.
88522         (USE_UNLOCKED_IO): Define to 1 if not already defined.
88523         * lib/unlocked-io.hin: Remove file.
88524         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
88525         rather than trying to embed it here.
88526         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
88527         Reported by Padraig Brady.
88528
88529 2001-09-25  Volker Borchert  <bt@teknon.de>
88530
88531         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
88532         `result'.
88533
88534 2001-09-24  Jim Meyering  <meyering@lucent.com>
88535
88536         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
88537
88538 2001-09-23  Jim Meyering  <meyering@lucent.com>
88539
88540         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
88541         instead of the mere test for existence of mntent.h.  The latter
88542         would get a false-positive on AIX 3.4 systems.
88543         In the outer getmntent if-block, don't die if neither of the getmntent
88544         tests succeeds.  Instead, just fall through and continue with the
88545         remaining tests.
88546
88547 2001-09-23  Jim Meyering  <meyering@lucent.com>
88548
88549         * lib/mountlist.c: Remove useless parentheses in #if directives.
88550         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
88551         the deprecated MOUNTED symbol is no longer defined in mntent.h.
88552
88553 2001-09-22  Jim Meyering  <meyering@lucent.com>
88554
88555         * m4/gettext.m4: New file.  From gettext.
88556         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
88557         * m4/progtest.m4: Likewise
88558         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
88559         * m4/glibc21.m4: Likewise.
88560
88561         * m4/libintl.m4: Remove.  No longer used.
88562
88563 2001-09-22  Jim Meyering  <meyering@lucent.com>
88564
88565         * lib/localcharset.c: Update from latest gettext.
88566         * lib/config.charset: Likewise.
88567
88568 2001-09-20  Jim Meyering  <meyering@lucent.com>
88569
88570         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
88571         strtoimax.
88572         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
88573         strtoumax.
88574
88575 2001-09-20  Jim Meyering  <meyering@lucent.com>
88576
88577         * lib/xstrtol.c (strtoimax): Guard declaration with
88578         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
88579         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
88580         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
88581         (strtoumax): Likewise, for completeness (it wasn't necessary).
88582
88583 2001-09-17  Paul Eggert  <eggert@twinsun.com>
88584
88585         * lib/strtoimax.c (HAVE_LONG_LONG):
88586         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
88587         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
88588         to work around bug in IBM C compiler.
88589
88590 2001-09-17  Jim Meyering  <meyering@lucent.com>
88591
88592         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
88593         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
88594         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
88595         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
88596         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
88597         whenever the right hand side need not be expanded by the shell.
88598
88599 2001-09-16  Paul Eggert  <eggert@twinsun.com>
88600
88601         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
88602         library.  It's not correct, as some older glibcs are buggy.
88603         fnmatch wasn't fixed until glibc 2.2.
88604
88605         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
88606         special shell magic here.
88607
88608 2001-09-16  Jim Meyering  <meyering@lucent.com>
88609
88610         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
88611         * m4/jm-macros.m4: Require it.
88612
88613 2001-09-16  Jim Meyering  <meyering@lucent.com>
88614
88615         * lib/mkdir.c: New file.
88616
88617 2001-09-15  Jim Meyering  <meyering@lucent.com>
88618
88619         * m4/jm-macros.m4: Check for help2man.
88620
88621 2001-09-11  Jim Meyering  <meyering@lucent.com>
88622
88623         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
88624         The body, by Paul Eggert, was moved here from configure.in.
88625         * m4/jm-macros.m4: Require UTILS_HOST_OS.
88626
88627 2001-09-04  Paul Eggert  <eggert@twinsun.com>
88628
88629         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
88630         (jm_PREREQ): Use it.
88631
88632 2001-09-04  Paul Eggert  <eggert@twinsun.com>
88633
88634         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
88635         Use ssize_t, not int, to store result of readlink.
88636         Check for ssize_t overflow as well as size_t overflow,
88637         as POSIX says the result of readlink is implementation-defined
88638         when ssize_t overflows.
88639         Remove unnecessary cast to char*.
88640         Use free+malloc instead of realloc, as the storage doesn't need
88641         to be preserved and it's clearer and can be more efficient that way.
88642         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
88643         * lib/xreadlink.h (xreadlink): Update prototype.
88644
88645 2001-09-04  Paul Eggert  <eggert@twinsun.com>
88646
88647         * lib/xgetcwd.c: Revert some of the previous change; intead,
88648         fix the HAVE_GETCWD_NULL code to behave more like the
88649         !HAVE_GETCWD_NULL code used to.
88650
88651         Include "xalloc.h".
88652         (xgetcwd): Do not return NULL when memory is exhausted; instead,
88653         invoke xalloc_die.
88654
88655 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88656
88657         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
88658         sys/param.h, as pathmax.h includes them.
88659
88660 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88661
88662         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
88663         (jm_PREREQ_XGETCWD): New macro.
88664
88665         * m4/getcwd.m4: New file.
88666
88667 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88668
88669         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
88670         like the HAVE_GETCWD_NULL code.
88671         Include pathmax.h if not HAVE_GETCWD.
88672         Do not include xalloc.h.
88673         (INITIAL_BUFFER_SIZE): New symbol.
88674         Do not use xmalloc / xrealloc, since the caller is responsible for
88675         handling errors.  Preserve errno around `free' during failure.
88676         Do not overrun buffer when using getwd.
88677
88678 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88679
88680         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
88681         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
88682         getcwd (NULL, 0).
88683
88684 2001-09-03  Paul Eggert  <eggert@twinsun.com>
88685
88686         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
88687         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
88688         spotted by Jim Meyering.
88689
88690 2001-09-03  Jim Meyering  <meyering@lucent.com>
88691
88692         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
88693         failure.
88694
88695 2001-09-02  Jim Meyering  <meyering@lucent.com>
88696
88697         * lib/error.c: Update from GNU libc.
88698
88699 2001-09-01  Jim Meyering  <meyering@lucent.com>
88700
88701         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
88702         Used by df.
88703
88704 2001-09-01  Jim Meyering  <meyering@lucent.com>
88705
88706         * lib/xreadlink.c: New file.
88707         * lib/xreadlink.h: New file.
88708         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
88709         xreadlink.h.
88710
88711         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
88712         doesn't conflict with sparc Solaris 7's definition in
88713         /usr/include/sys/int_types.h.
88714
88715         * lib/exclude.c: Use `""', not `<>' to #include non-system header
88716         files.
88717         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
88718         and strncasecmp as r-values.  Unixware didn't have declarations.
88719
88720 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88721
88722         * lib/xstrtol.h: Add copyright notice.
88723         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
88724         LONGINT_INVALID_SUFFIX_CHAR.
88725
88726 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88727
88728         * lib/xstrtol.c (strtoimax): New decl.
88729
88730 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88731
88732         * lib/xgetcwd.c: Don't include pathmax.h.
88733         Include stdlib.h and unistd.h if available.
88734         Include xalloc.h.
88735         (xmalloc, xstrdup, free): Remove decls.
88736         (xgetcwd): Don't assume sizes fit in unsigned.
88737         Check for overflow when computing sizes.
88738         Simplify reallocation code.
88739
88740 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88741
88742         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
88743         a directory's st_size can have an arbitrary value, so the old
88744         usage could waste an arbitrary amount of memory.  All uses
88745         changed.
88746         * lib/savedir.h: Update prototype.
88747
88748 2001-08-31  Paul Eggert  <eggert@twinsun.com>
88749
88750         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
88751
88752         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
88753         old strtoimax.c.
88754
88755         Also, make the following further changes to make this file's
88756         configuration more similar to that of strtol.c:
88757         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
88758         (strtoumax, uintmax_t, strtoull, strtol): Remove.
88759         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
88760         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
88761         changed to signed values.
88762
88763         And make the following changes as well:
88764         Fix copyright notice, as 1999 was missing.
88765         (verify): New macro.
88766         (strtoimax): Check sizes at compile-time, not run-time.
88767         Prefer strtol to strtoll if both work.
88768         (main): Remove; it was not that useful and was a pain to maintain.
88769
88770         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
88771
88772 2001-08-31  Jim Meyering  <meyering@lucent.com>
88773
88774         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
88775         Use an initial, malloc'd, buffer of length 128 rather than
88776         a statically allocated one of length 1024.
88777
88778 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88779
88780         Simplify code, partly by assuming autoconf 2.52 semantics.
88781
88782         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
88783
88784         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
88785         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
88786         All uses removed.
88787         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
88788         Move AC_REQUIRE to next-to-top level, to avoid confusion.
88789         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
88790         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
88791         jm_AC_HEADER_INTTYPES_H.
88792         * m4/jm-macros.m4 (jm_MACROS): Likewise.
88793
88794         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
88795
88796         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
88797         Quote first arg of AC_DEFUN.
88798         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
88799         since they are needed to parse the include file even if we need
88800         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
88801         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
88802         but with opposite signedness.
88803
88804 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88805
88806         Merge 'exclude' changes from tar 1.13.22.
88807         This fixes one or two unlikely storage allocation overflow bugs,
88808         but doesn't change user-visible behavior otherwise.
88809
88810 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88811
88812         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
88813         (jm_PREREQ_EXCLUDE): New macro.
88814
88815 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88816
88817         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
88818         tm to be declared.
88819
88820 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88821
88822         * lib/hash.c: Remove '2001' from copyright notice.
88823
88824 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88825
88826         * lib/full-write.h: New file.
88827         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
88828         * lib/full-write.c: Correct credits, as cccp.c no longer
88829         exists and anyway it was so heavily changed from the old cccp
88830         code as to be unrecognizable.  Include full-write.h.
88831         (full_write): Return size_t, with short writes meaning failure.
88832         All callers changed.  This fixes a bug with large buffers
88833         on 64-bit hosts.
88834         * lib/utime.c: Include full-write.h.
88835
88836 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88837
88838         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
88839         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
88840         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
88841         Include if available.
88842         (<xalloc.h>): Include
88843         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
88844         (verify): New macro.  Use it to verify that EXCLUDE macros do not
88845         collide with FNM macros.
88846         (struct patopts): New struct.
88847         (struct exclude): Use it, as exclude patterns now come with options.
88848         (new_exclude): Support above changes.
88849         (new_exclude, add_exclude_file):
88850         Initial size must now be a power of two to simplify overflow checking.
88851         (free_exclude, fnmatch_no_wildcards): New function.
88852         (excluded_filename): No longer requires options arg, as the options
88853         are determined by add_exclude.  Now returns bool, not int.
88854         (excluded_filename, add_exclude):
88855         Add support for the fancy new exclusion options.
88856         (add_exclude, add_exclude_file): Now takes int options arg.
88857         Check for arithmetic overflow when computing sizes.
88858         (add_exclude_file): xrealloc might modify errno, so don't
88859         realloc until after errno might be used.
88860
88861         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
88862         New macros.
88863         (free_exclude): New decl.
88864         (add_exclude, add_exclude_file): Now takes int options arg.
88865         (excluded_filename): No longer requires options arg, as the options
88866         are determined by add_exclude.  Now returns bool, not int.
88867
88868 2001-08-30  Paul Eggert  <eggert@twinsun.com>
88869
88870         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
88871
88872 2001-08-27  Jim Meyering  <meyering@lucent.com>
88873
88874         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
88875
88876         * lib/version-etc.c (N_): Remove definition.
88877         Revert most of last change.
88878         Instead, simply don't mark the `Copyright...' string for translation.
88879         Based on advice from Paul Eggert.
88880
88881         * lib/strtoxmax.c: Tweak comment.
88882
88883 2001-08-26  Jim Meyering  <meyering@lucent.com>
88884
88885         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
88886
88887         * m4/xstrtoimax.m4: New file.
88888         * m4/xstrtoumax.m4: Add comments explaining why we
88889         AC_REPLACE_FUNCS(strtol).
88890
88891 2001-08-26  Jim Meyering  <meyering@lucent.com>
88892
88893         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
88894         of copyright with `%s' so translators don't get an untranslated
88895         message in 2002.
88896         (COPYRIGHT_YEAR): Define.
88897         (version_etc): Use fprintf rather than fputs.
88898         Suggestion from Ulrich Drepper.
88899
88900         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
88901
88902         * lib/strtoll.c: New file, from GNU libc.
88903         * lib/xstrtoimax.c: New file.
88904
88905         * lib/xstrtol.h: Add xstrtoimax.
88906         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
88907         * lib/strtoimax.c: New file.  Likewise, but first define
88908         STRTOUXMAX_SIGNED.
88909
88910         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
88911         ...
88912         * lib/strtoxmax.c: ... then renamed to this.
88913
88914 2001-08-18  Paul Eggert  <eggert@twinsun.com>
88915
88916         * m4/inttypes.m4: Add AC_PREREQ(2.13).
88917         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
88918         (jm_AC_TYPE_INTMAX_T): New macro.
88919         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
88920
88921         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
88922
88923         * m4/longlong.m4: Renamed from ulonglong.m4.
88924         * m4/inttypes.m4: Renamed from inttypes_h.m4.
88925         * m4/uintmax_t.m4: Removed.
88926
88927 2001-08-13  Paul Eggert  <eggert@twinsun.com>
88928
88929         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
88930         Port to Solaris 8, where 'sed' requires a space after the 'r'
88931         command, and where sh dislikes "$/".  Clean up the spacing a bit.
88932         Redirect output to $tmp just once.
88933
88934 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
88935
88936         * lib/addext.c (<errno.h>): Include.
88937         (errno): Declare if not defined.
88938         (addext): Work correctly when pathconf returns -1 and leaves
88939         errno alone because there is no limit.  Also, work even if
88940         pathconf returns a value greater than SIZE_MAX.
88941
88942 2001-08-12  Jim Meyering  <meyering@lucent.com>
88943
88944         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
88945         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
88946         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
88947         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
88948         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
88949         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
88950         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
88951         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
88952         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
88953         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
88954         utime.m4, utimes.m4, xstrtoumax.m4:
88955         Quote the first argument in each use of AC_DEFUN.
88956
88957 2001-08-12  Jim Meyering  <meyering@lucent.com>
88958
88959         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
88960         Simply `return getcwd (NULL, 0);'.
88961         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
88962         Use 1300 as initial value for length, not PATH_MAX.
88963
88964         * lib/pathmax.h: Clean up cpp syntax.
88965
88966 2001-08-12  Jim Meyering  <meyering@lucent.com>
88967
88968         * lib/gettimeofday.c: New file.
88969         * lib/gtod.h: New file.
88970         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
88971
88972 2001-08-05  Jim Meyering  <meyering@lucent.com>
88973
88974         * m4/jm-macros.m4: Require autoconf-2.52.
88975
88976 2001-08-04  Jim Meyering  <meyering@lucent.com>
88977
88978         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
88979         stmt, to get in sync with glibc.
88980
88981 2001-08-03  Paul Eggert  <eggert@twinsun.com>
88982
88983         The following changes are from gettext 0.10.39 as maintained by
88984         Bruno Haible.
88985
88986         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
88987         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
88988         with inverted sense.  All uses changed.
88989
88990         * lib/mbswidth.c: Don't include <limits.h>.
88991         Include <stdlib.h> and <string.h> unconditionally.
88992         (iswcntrl, mbsinit, ISCNTRL): New macros.
88993         (mbsnwidth): Use K&R style function declarations.
88994         Don't bother checking for MB_LEN_MAX == 1, since the compiler
88995         can optimize it when MB_CUR_MAX == 1.
88996         The width of control characters is zero, not 1.
88997
88998 2001-08-03  Paul Eggert  <eggert@twinsun.com>
88999
89000         The following changes are from gettext 0.10.39 as maintained by
89001         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
89002
89003         * m4/codeset.m4: Upgrade to serial AM1.
89004         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
89005         all uses changed.  Quote first arg of AC_DEFUN.
89006         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
89007
89008         * m4/iconv.m4: Upgrade to serial AM2.
89009         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
89010         Add --with-libconv-prefix.
89011         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
89012         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
89013         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
89014         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
89015         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
89016
89017         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
89018         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
89019         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
89020         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
89021         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
89022         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
89023         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
89024         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
89025         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
89026
89027         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
89028         string.h any more.
89029
89030         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
89031         not the default value.
89032
89033         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
89034         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
89035         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
89036         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
89037         Also check for iswcntrl, used for wcwidth fallback.
89038         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
89039         to Autoconf 2.13.
89040
89041 2001-08-03  Jim Meyering  <meyering@lucent.com>
89042
89043         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
89044         as it was in the original.  Reported by Paul Eggert.
89045
89046 2001-07-16  Jim Meyering  <meyering@lucent.com>
89047
89048         * m4/gettimeofday.m4: New file.
89049         Prompted by a report from Bernhard Baehr.
89050
89051 2001-07-15  Jim Meyering  <meyering@lucent.com>
89052
89053         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
89054         stuff. Now it's in ../Makefile.cfg.
89055
89056 2001-07-15  Jim Meyering  <meyering@lucent.com>
89057
89058         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
89059         (BUILT_SOURCES): Add unlocked-io.h.
89060         (io_functions): Define.
89061         (unlocked-io.h): New rule.
89062         (DISTCLEANFILES): Add unlocked-io.h.
89063         (all-local): Depend on unlocked-io.h, to ensure it is created.
89064
89065         * lib/unlocked-io.hin: New file
89066
89067         * lib/regex.c: Update from glibc.
89068
89069 2001-07-05  Jim Meyering  <meyering@lucent.com>
89070
89071         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
89072         recommendation.
89073         (libfetish_a_SOURCES): Put all .h files here instead.
89074         Remove a thus-exposed (better checks in automake) duplicate and
89075         two unnecessary .h files.
89076
89077 2001-07-04  Jim Meyering  <meyering@lucent.com>
89078
89079         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
89080         that generates jm-glibc-io.m4 so that it doesn't trigger any make
89081         distcheck failure.
89082
89083 2001-07-02  Jim Meyering  <meyering@lucent.com>
89084
89085         The following changes were prompted by suggestions from Bruno Haible.
89086
89087         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
89088         is now generated.
89089         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
89090         definition of EXTRA_DIST.
89091         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
89092         ensure that the generated file is created/updated whenever the list
89093         of $(unlocked_functions) is changed.
89094         (jm-glibc-io.m4): New rule.
89095         (unlocked-io.h): New rule -- currently unused.
89096
89097 2001-06-24  Jim Meyering  <meyering@lucent.com>
89098
89099         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
89100         unmatched right bracket, rather than kludging it with an extra,
89101         falsely-matching quote in a comment.  Patch by Akim Demaille.
89102
89103 2001-06-11  Jim Meyering  <meyering@lucent.com>
89104
89105         * lib/regex.c: Update from GNU libc.
89106
89107 2001-05-27  Jim Meyering  <meyering@lucent.com>
89108
89109         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
89110         Check for ut_type in struct utmp.
89111
89112 2001-05-27  Jim Meyering  <meyering@lucent.com>
89113
89114         * lib/readutmp.h (UT_TYPE): Define.
89115
89116 2001-05-24  Jim Meyering  <meyering@lucent.com>
89117
89118         * lib/argmatch.c: Include "quote.h".
89119         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
89120         quote function.  Reported by Göran Uddeborg.
89121
89122 2001-05-22  Jim Meyering  <meyering@lucent.com>
89123
89124         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
89125         now that we use the package-supplied version unconditionally.
89126         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
89127
89128 2001-05-21  Jim Meyering  <meyering@lucent.com>
89129
89130         * m4/regex.m4: Change a couple backticks to single quotes to avoid
89131         shell syntax errors.
89132
89133 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
89134
89135         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
89136
89137 2001-05-20  Paul Eggert  <eggert@twinsun.com>
89138
89139         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
89140         Don't bother to check library strftime, since
89141         we'll be using our own my_strftime function anyway.
89142         Define my_strftime instead of strftime.
89143
89144 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
89145
89146         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
89147         which is not yet declared.
89148
89149 2001-05-15  Jim Meyering  <meyering@lucent.com>
89150
89151         * m4/regex.m4: Use proper quoting so brackets appear in the test
89152         program.
89153         Reported by, and with help from, Bruno Haible.
89154
89155 2001-05-13  Jim Meyering  <meyering@lucent.com>
89156
89157         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
89158         undefined.
89159
89160 2001-05-11  Paul Eggert  <eggert@twinsun.com>
89161
89162         dirname code cleanup.  base_name now behaves more compatibly
89163         with POSIX basename when given file names that have trailing
89164         slashes, and similarly for dir_name.  Add new primitives
89165         base_len and dir_len.  Put the directory-name-related decls
89166         into dirname.h.
89167
89168         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
89169         * lib/backupfile.c (base_name): Likewise.
89170         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
89171         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
89172         * lib/makepath.c (strip_trailing_slashes): Likewise.
89173         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
89174         ISSLASH): Likewise.
89175         * lib/rename.c (strip_trailing_slashes): Likewise.
89176         * lib/same.c (base_name): Likewise.
89177         * lib/stripslash.c (ISSLASH): Likewise.
89178
89179         * lib/addext.c: Include <dirname.h> after size_t is defined.
89180         * lib/backupfile.c: Likewise.
89181
89182         * lib/addext.c (addext): Use base_len to trim redundant
89183         trailing slashes instead of doing it ourselves.
89184         But do not trim the last slash if it is not redundant.
89185
89186         * lib/backupfile.c (find_backup_file_name,
89187         max_backup_version): Use base_len instead of rolling it ourselves.
89188         Handle the case of "" and (on DOS) "C:" correctly.
89189
89190         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
89191         needed. Include <string.h>, <dirname.h>.
89192         (base_name): Allow file names ending in slashes, other than names
89193         that are all slashes.  In this case, return the basename followed
89194         by the slashes.  This is more general, and can be used in places
89195         where the original base_name purposely had an assertion failure.
89196         (base_len): New function.
89197
89198         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
89199         Do not include <assert.h>; no longer needed.
89200         Include xalloc.h.
89201         (memrchr): Remove decl.
89202         (dir_name_r): Remove.
89203         (dir_len): Renamed from dirlen.  All callers changed.
89204         Rewrite in terms of base_name, for simplicity and consistency.
89205         (dir_name): Never return NULL.  All callers changed.
89206         Do not include <stdlib.h> in test program; no longer needed.
89207         return 0; is fine for test program.
89208
89209         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
89210         New macros.
89211         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
89212
89213         * lib/path-concat.c (path_concat): Use base_len to compute
89214         base length, not strlen; this means we cannot rely on memcpy
89215         to null-terminate.
89216
89217         * lib/same.c (STREQ): Remove.
89218         (same_name): Handle the case where the basename ends in trailing '/'.
89219
89220         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
89221         a slash was stripped.  Do not strip the last slash after a
89222         file system prefix.
89223
89224 2001-05-11  Paul Eggert  <eggert@twinsun.com>
89225
89226         * lib/Makefile.am (libfetish_a_SOURCES):
89227         Add strftime.c, since we now compile it on all hosts.
89228
89229         * lib/strftime.c (my_strftime):
89230         Define to nstrftime if emacs, but only if my_strftime is not defined.
89231         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
89232         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
89233         Add one more extra argument: a nanoseconds value.
89234         All uses changed.
89235         (ns): New macro.
89236         (my_strftime function): Add %N format.
89237         (emacs_strftimeu): Renamed from emacs_strftime,
89238         with extra ut argument.
89239
89240 2001-05-09  Paul Eggert  <eggert@twinsun.com>
89241
89242         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
89243
89244 2001-04-21  Jim Meyering  <meyering@lucent.com>
89245
89246         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
89247         doesn't interfere.
89248
89249 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
89250
89251         * m4/ftruncate.m4: Check for chsize.
89252         Link with ftruncate.o unconditionally if ftruncate is missing.
89253         This was required when cross-compiling to i586-mingw32msvc.
89254
89255 2001-04-08  Jim Meyering  <meyering@lucent.com>
89256
89257         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
89258         recomputed; that's necessary when the offset spans a DST transition.
89259         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
89260
89261 2001-04-02  Jim Meyering  <meyering@lucent.com>
89262
89263         * lib/regex.h, regex.c: Update from GNU libc.
89264
89265 2001-03-24  Jim Meyering  <meyering@lucent.com>
89266
89267         * m4/jm-macros.m4: Require autoconf-2.49d.
89268
89269 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
89270
89271         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
89272
89273 2001-03-19  Paul Eggert  <eggert@twinsun.com>
89274
89275         * lib/version-etc.c (version_etc_copyright): Update to 2001.
89276
89277 2001-03-17  Jim Meyering  <meyering@lucent.com>
89278
89279         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
89280         now that the version in autoconf is equivalent.
89281         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
89282
89283         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
89284         Suggestion from Akim Demaille.
89285
89286         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
89287         (jm_PREREQ_TEMPNAME): New function.
89288
89289 2001-03-16  Paul Eggert  <eggert@twinsun.com>
89290
89291         * lib/tempname.c (uint64_t): Define to uintmax_t if
89292         not defined, and if UINT64_MAX is not defined.
89293         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
89294         Reported by John David Anglin.
89295
89296 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
89297
89298         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
89299         resolve alias if codeset is empty.
89300         * lib/config.charset (BeOS): Use wildcard syntax.
89301
89302 2001-03-13  Jim Meyering  <meyering@lucent.com>
89303
89304         * lib/path-concat.c (path_concat)
89305         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
89306         concatenating e.g., `C:' and `foo'.
89307         From Bruno Haible.
89308
89309 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
89310
89311         * lib/localcharset.c (locale_charset): Don't use
89312         setlocale(LC_CTYPE,NULL). Don't return NULL.
89313         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
89314
89315 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
89316
89317         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
89318         support for DOS/DJGPP.
89319
89320 2001-03-01  Paul Eggert  <eggert@twinsun.com>
89321
89322         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
89323         lacks mkstemp.  Compile our own tempname.c if we compile our own
89324         mkstemp.c, as mkstemp relies on tempname.
89325
89326 2001-03-01  Jim Meyering  <meyering@lucent.com>
89327
89328         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
89329         AH_VERBATIM really does output its argument verbatim.
89330
89331 2001-02-28  Paul Eggert  <eggert@twinsun.com>
89332
89333         * lib/Makefile.am (libfetish_a_SOURCES):
89334         Add dup-safer.c, fopen-safer.c.
89335         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
89336
89337         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
89338         * lib/unistd-safer.h: New files.
89339
89340 2001-02-25  Paul Eggert  <eggert@twinsun.com>
89341
89342         The mkstemp replacement is taken from glibc 2.2.2, with some
89343         portability fixes for use outside glibc, as follows:
89344
89345         * lib/tempname.c (struct_stat64): New macro.
89346         (direxists, __gen_tempname): Use it.
89347         This avoids a portability problem with Solaris 8.
89348
89349         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
89350         (<stddef.h>, <stdint.h>, <string.h>):
89351         Include only if STDC_HEADERS || _LIBC.
89352         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
89353         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
89354         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
89355         (__set_errno): Define this macro if <errno.h> doesn't.
89356         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
89357         Define these macros if <stdio.h> doesn't.
89358         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
89359         Define these macros if <sys/stat.h>
89360         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
89361         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
89362         __xstat64): Define if not _LIBC.
89363         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
89364         (__gen_tempname): Invoke gettimeofday only if
89365         HAVE_GETTIMEOFDAY || _LIBC;
89366         otherwise, fall back on plain "time".
89367         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
89368
89369         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
89370
89371         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
89372
89373 2001-02-18  Paul Eggert  <eggert@twinsun.com>
89374
89375         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
89376
89377 2001-02-17  Paul Eggert  <eggert@twinsun.com>
89378
89379         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
89380         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
89381         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
89382         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
89383
89384 2001-02-17  Paul Eggert  <eggert@twinsun.com>
89385
89386         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
89387         Remove workaround macros for hosts that have mbrtowc but not
89388         mbstate_t, as we now insist on proper declarations for both
89389         before using mbrtowc.
89390
89391 2001-02-17  Jim Meyering  <meyering@lucent.com>
89392
89393         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
89394         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
89395         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
89396         UnixWare 7.1.1.
89397
89398         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
89399         rather than AC_CACHE_VAL.
89400
89401 2001-02-17  Jim Meyering  <meyering@lucent.com>
89402
89403         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
89404         around included file name.
89405
89406         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
89407
89408         * lib/strftime.c: Update from GNU libc (the only changes were to
89409         comments).
89410
89411 2001-02-17  Jim Meyering  <meyering@lucent.com>
89412
89413         * lib/regex.c: Update from libc.
89414
89415 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
89416
89417         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
89418         clash.
89419
89420 2001-02-16  Paul Eggert  <eggert@twinsun.com>
89421
89422         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
89423         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
89424         Reported by Mark Hounschell via Paul Eggert.
89425
89426 2001-02-07  Jim Meyering  <meyering@lucent.com>
89427
89428         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
89429
89430 2001-02-05  Jim Meyering  <meyering@lucent.com>
89431
89432         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
89433         it includes the patch required for `large file' support with at least
89434         HP-UX's 10.20 /bin/cc.
89435
89436 2001-02-03  Jim Meyering  <meyering@lucent.com>
89437
89438         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
89439         AS_IF, now that it works once again (mysteriously).
89440         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
89441
89442 2001-01-30  Jim Meyering  <meyering@lucent.com>
89443
89444         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
89445         * m4/chown.m4: Rename conftestchown to conftest.chown.
89446         * m4/rename.m4: s/conftestdir/conftest.d1/ and
89447         s/conftestdir2/conftest.d2/.
89448         * m4/utimes.m4: s/conftestdata/conftest.data/
89449         Inspired by Pavel Roskin's change in autoconf.
89450
89451 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
89452
89453         * lib/config.charset: Update for FreeBSD 4.2.
89454
89455 2001-01-27  Jim Meyering  <meyering@lucent.com>
89456
89457         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
89458         a use of AS_IF.
89459         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
89460
89461 2001-01-26  Jim Meyering  <meyering@lucent.com>
89462
89463         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
89464         quotearg.c includes it.
89465
89466 2001-01-26  Jim Meyering  <meyering@lucent.com>
89467
89468         * lib/quotearg.c: Include stddef.h.
89469         * lib/quote.c: Include stddef.h.
89470         Reported by Axel Kittenberger.
89471
89472         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
89473         line in double quotes so that it evokes a better diagnostic.
89474         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
89475         Reported by Axel Kittenberger.
89476
89477 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
89478
89479         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
89480         as if it was a `charset'.
89481
89482 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
89483
89484         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
89485         has const.
89486
89487 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
89488
89489         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
89490         to avoid a warning.  Add back 'const' to inptr.
89491
89492 2001-01-20  Jim Meyering  <meyering@lucent.com>
89493
89494         Be sure that headers are checked before used in code compiled
89495         for the type checks.
89496         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
89497         In place of that, invoke jm_CHECK_ALL_TYPES.
89498         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
89499         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
89500         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
89501         The check for ssize_t was mistakenly run before the test for unistd.h.
89502
89503         The configure-time check for stdbool.h was missing.
89504         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
89505         (jm_PREREQ_HASH): New function.
89506
89507 2001-01-17  Jim Meyering  <meyering@lucent.com>
89508
89509         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
89510         for autoconf-2.49c.
89511         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
89512
89513 2001-01-16  Jim Meyering  <meyering@lucent.com>
89514
89515         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
89516         From Bruno Haible.
89517
89518 2001-01-14  Jim Meyering  <meyering@lucent.com>
89519
89520         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
89521         foo and bar.  Create conftestdir/ in the script, not in the C code.
89522         Remove directories in the script, not in the C code.
89523         Remove conftestdir{,2} before trying to create the directory.
89524         Make the entire configure script fail if the mkdir fails.
89525
89526 2001-01-14  Jim Meyering  <meyering@lucent.com>
89527
89528         * lib/rename.c: New file.  From Volker Borchert.
89529         Include stdlib.h, string.h or strings.h, and xalloc.h.
89530         Use strip_trailing_slashes rather than open-coding it.
89531
89532 2001-01-03  Paul Eggert  <eggert@twinsun.com>
89533
89534         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
89535
89536 2001-01-03  Jim Meyering  <meyering@lucent.com>
89537
89538         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
89539         of local `inptr' to avoid warning with some system declarations of
89540         iconv.
89541
89542 2001-01-02  Volker Borchert  <bt@teknon.de>
89543
89544         * m4/rename.m4: New file.
89545         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
89546
89547 2001-01-01  Jim Meyering  <meyering@lucent.com>
89548
89549         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
89550         even on systems with utmpx.h.  It's necessary for the declaration of
89551         utmp's ut_user member.  Reported by Andreas Jaeger.
89552
89553         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
89554         available. They are required for the declarations of getgrgid and
89555         getpwuid resp.
89556         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
89557         Reported by Andreas Jaeger.
89558
89559 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
89560
89561         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
89562         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
89563         so `make install' also works in VPATH builds.
89564
89565 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
89566
89567         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
89568         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
89569         can be used in subdirectories.
89570
89571 2000-12-29  Paul Eggert  <eggert@twinsun.com>
89572
89573         * lib/modechange.c: Do not assume that mode_t uses the
89574         traditional octal encoding.  E.g. "chmod 1 FOO" should set
89575         the other-execute bit of FOO even if S_IXOTH != 1.
89576
89577         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
89578         WOTH, XOTH, ALLM): New macros.
89579         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
89580          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
89581         Use them.
89582         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
89583         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
89584         (mode_compile):
89585         No need to use uintmax_t; unsigned long is long enough.
89586         Don't bother to get suffix since we don't use it.
89587
89588 2000-12-26  Jim Meyering  <meyering@lucent.com>
89589
89590         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
89591         better with autoheader.
89592
89593 2000-12-24  Jim Meyering  <meyering@lucent.com>
89594
89595         * lib/hash.c (is_prime): Return explicit boolean values.
89596         (hash_get_first): Return NULL to appease Irix5.6's 89.
89597         Reported by Nelson Beebe.
89598
89599 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
89600
89601         * lib/localcharset.c (locale_charset): Add support for Win32.
89602
89603 2000-12-18  Paul Eggert  <eggert@twinsun.com>
89604
89605         * lib/physmem.h, lib/physmem.c: New files.
89606
89607         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
89608         (noinst_HEADERS): Add physmem.h.
89609
89610         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
89611         't' for compatibility with Solaris 8 sort.
89612
89613 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
89614
89615         * lib/config.charset: Add support for BeOS.
89616
89617 2000-12-17  Jim Meyering  <meyering@lucent.com>
89618
89619         * m4/dos.m4 (jm_AC_DOS): New file and macro.
89620         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
89621
89622 2000-12-16  Jim Meyering  <meyering@lucent.com>
89623
89624         This bug had a serious impact on chown: `chown N:M FILE' (for integer
89625         N and M) would have treated it like `chown N:N FILE'.
89626
89627         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
89628
89629 2000-12-16  Jim Meyering  <meyering@lucent.com>
89630
89631         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
89632         SHELLS_FILE to a file name that's useful on djgpp systems.
89633         Include stdlib.h.
89634         (ADDITIONAL_DEFAULT_SHELLS): Define.
89635         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
89636         Based mostly on a patch from Prashant TR.
89637
89638 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
89639
89640         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
89641         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
89642         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
89643
89644 2000-12-08  Andreas Schwab  <schwab@suse.de>
89645
89646         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
89647         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
89648
89649 2000-12-07  Jim Meyering  <meyering@lucent.com>
89650
89651         * lib/stripslash.c (ISSLASH): Define.
89652         (strip_trailing_slashes): Use ISSLASH rather than comparing against
89653         `/'.
89654         From Prashant TR.
89655
89656         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
89657         (dir_name_r): Declare this function as static.
89658         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
89659         manifest itself on a name containing a mix of slashes and
89660         backslashes.
89661         Make this function work with names starting with a DOS-style
89662         drive letter and colon prefix.
89663         (dir_name): Append `.' if necessary.
89664         Based mostly on patches from Prashant TR and Eli Zaretskii.
89665
89666         * lib/dirname.h (dir_name_r): Remove prototype.
89667
89668 2000-12-06  Paul Eggert  <eggert@twinsun.com>
89669
89670         * m4/off_t-format.m4: Remove this file.
89671         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
89672
89673 2000-12-06  Jim Meyering  <meyering@lucent.com>
89674
89675         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
89676         replacement strtoull, we may well need the replacement strtoul, too.
89677         Check for declarations of strtoul and strtoull.
89678         Check for strtol.  Mainly as a cue to cause automake to include
89679         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
89680         Check for limits.h -- strtol.c needs it.
89681
89682 2000-12-05  Jim Meyering  <meyering@lucent.com>
89683
89684         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
89685
89686 2000-12-04  Jim Meyering  <meyering@lucent.com>
89687
89688         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
89689         Also include memory.h, stdlib.h, unistd.h if appropriate.
89690         Reported by Andreas Jaeger (conflicting declaration of malloc).
89691
89692 2000-12-02  Jim Meyering  <meyering@lucent.com>
89693
89694         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
89695         * m4/jm-macros.m4 (jm_MACROS): require it.
89696
89697 2000-12-02  Jim Meyering  <meyering@lucent.com>
89698
89699         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
89700
89701 2000-12-01  Paul Eggert  <eggert@twinsun.com>
89702
89703         * lib/memrchr.c: Include <config.h> before any system include file.
89704
89705 2000-11-30  Jim Meyering  <meyering@lucent.com>
89706
89707         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
89708
89709 2000-11-30  Jim Meyering  <meyering@lucent.com>
89710
89711         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
89712
89713 2000-11-29  Paul Eggert  <eggert@twinsun.com>
89714
89715         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
89716
89717 2000-11-26  Jim Meyering  <meyering@lucent.com>
89718
89719         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
89720
89721 2000-11-22  Paul Eggert  <eggert@twinsun.com>
89722
89723         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
89724         size of (size_t) -1; it's not portable.
89725
89726 2000-11-17  Jim Meyering  <meyering@lucent.com>
89727
89728         * lib/strstr.c: Update from GNU libc.
89729
89730 2000-11-17  Akim Demaille  <akim@epita.fr>
89731
89732         * lib/obstack.h: Formatting changes.
89733         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
89734         prevent type checking.
89735         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
89736         cast the value to (void *): assigning a `foo *' to a `void *'
89737         variable is valid.
89738         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
89739
89740 2000-11-16  Jim Meyering  <meyering@lucent.com>
89741
89742         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
89743
89744 2000-11-11  Jim Meyering  <meyering@lucent.com>
89745
89746         * lib/error.c: Add a couple #includes, merging from GNU libc version.
89747
89748 2000-11-10  Jim Meyering  <meyering@lucent.com>
89749
89750         * lib/obstack.h: Update from GNU libc.
89751         * lib/obstack.c: Likewise.
89752
89753 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
89754
89755         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
89756
89757 2000-11-06  Paul Eggert  <eggert@twinsun.com>
89758
89759         * lib/getusershell.c (setusershell): Use rewind rather than
89760         fseek/fseeko, to avoid configuration hassles with fseeko.
89761         Don't bother opening SHELLS_FILE if shellstream is NULL;
89762         it's not necessary.
89763
89764 2000-11-05  Jim Meyering  <meyering@lucent.com>
89765
89766         * lib/makepath.h (make_dir): Declare.
89767         * lib/makepath.c (make_dir): Remove `static' attribute.
89768         Tweak a comment.
89769
89770 2000-11-04  Jim Meyering  <meyering@lucent.com>
89771
89772         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
89773
89774 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
89775
89776         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
89777         last one in a bucket, advance to the next bucket.
89778
89779 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
89780
89781         * lib/fnmatch.c: Do not comment out all the code if we are using
89782         the GNU C library, because in some cases we are replacing buggy
89783         code in the GNU C library itself.
89784
89785 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
89786
89787         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
89788         (regex_compile): Catch bogus \(\1\).
89789
89790 2000-10-30  Paul Eggert  <eggert@twinsun.com>
89791
89792         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
89793         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
89794         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
89795
89796 2000-10-30  Paul Eggert  <eggert@twinsun.com>
89797
89798         * lib/error.h, getline.h, modechange.h:
89799         Remove "2000" from Copyright line, as the file hasn't been
89800         changed this year other than in the copyright notice.
89801
89802         * lib/xalloc.h: Add "2000" to Copyright line, as this file
89803         was changed this year.
89804
89805 2000-10-29  Jim Meyering  <meyering@lucent.com>
89806
89807         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
89808         renaming.
89809         * m4/ls-mntd-fs.m4: Likewise
89810
89811 2000-10-29  Jim Meyering  <meyering@lucent.com>
89812
89813         * lib/xstat.in: Fix grammar in comment.
89814
89815 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
89816
89817         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
89818         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
89819         doesn't define __restrict_arr.
89820
89821 2000-10-28  Jim Meyering  <meyering@lucent.com>
89822
89823         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
89824         (jm_PREREQ_MEMCHR): New function.
89825
89826 2000-10-28  Jim Meyering  <meyering@lucent.com>
89827
89828         * lib/memchr.c: Update from libc.
89829         Adjust for portability:
89830         [HAVE_STDLIB_H]: Include stdlib.h.
89831         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
89832         Undef __memchr, too.
89833         [!weak_alias]: Define __memchr to memchr.
89834
89835         * lib/regex.c: Update from libc.
89836         * lib/regex.h: Likewise.
89837         * lib/getopt1.c: Likewise.
89838         * lib/memcmp.c: Likewise.
89839
89840         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
89841         Avoid using fseek, when possible -- it's broken by design.
89842         Patch by Ulrich Drepper.
89843
89844 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
89845
89846         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
89847         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
89848         Giving in to popular pressure to shut up the compiler with casts.
89849
89850 2000-10-26  Jim Meyering  <meyering@lucent.com>
89851
89852         * lib/strftime.c: Update from libc.
89853
89854 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
89855
89856         * regex.c: More `unsigned char' -> `re_char' changes.
89857         Also change several `int' into `re_wchar_t'.
89858         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
89859         (PUSH_FAILURE_POINTER): Don't cast any more.
89860         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
89861         We want GCC to complain, since this piece of code makes
89862         re_match non-reentrant, which *should* be fixed.
89863         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
89864         (EXTEND_BUFFER): Use RETALLOC.
89865         (SET_LIST_BIT): Don't cast.
89866         (re_wchar_t): New type.
89867         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
89868         that those two functions will always properly return.
89869         (IMMEDIATE_QUIT_CHECK): Cast to void.
89870         (analyse_first): Use recursion rather than an explicit stack.
89871         (re_compile_fastmap): Can't fail anymore.
89872         (re_search_2): Don't check re_compile_fastmap for failure.
89873         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
89874         Now also sets the new value (passed in a new argument).
89875         (re_match_2_internal): Use it.
89876         Also, use a new var `reg' of type size_t when looping through regs
89877         rather than reuse the inappropriate `mcnt'.
89878
89879 2000-10-25  Jim Meyering  <meyering@lucent.com>
89880
89881         * lib/obstack.c: Update from libc.
89882
89883 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
89884
89885         * regex.c (regex_compile): Change the way of handling a range from
89886         a char less than 256 to a char not less than 256.
89887
89888 2000-10-24  Andrew Innes  <andrewi@gnu.org>
89889
89890         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
89891         NT-Emacs only.
89892         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
89893         so that re_search functions only quit when callers expect them to.
89894
89895 2000-10-23  Jim Meyering  <meyering@lucent.com>
89896
89897         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
89898         wrong.  That set_locale call must not have any side effects.
89899         From Paul Eggert.
89900
89901 2000-10-22  Jim Meyering  <meyering@lucent.com>
89902
89903         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
89904         [CYCLIC]: Remove now-unused definition.
89905
89906         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
89907         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
89908         Suggestion from Ulrich Drepper.
89909
89910 2000-10-21  Jim Meyering  <meyering@lucent.com>
89911
89912         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
89913         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
89914         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
89915
89916 2000-10-21  Jim Meyering  <meyering@lucent.com>
89917
89918         * lib/dirname.c (memrchr): Declare if necessary.
89919         (dir_name): Remove the restriction that there be no
89920         trailing slashes.  Now, this code skips past them, effectively
89921         ignoring them.
89922         [TEST_DIRNAME] (main): New unit tests.
89923
89924         * lib/memrchr.c: New file from GNU libc.
89925         Undef __memrchr, too.
89926         [!weak_alias]: Define __memrchr to memrchr.
89927         Guard weak_alias use with `#ifdef weak_alias'.
89928
89929 2000-10-21  Jim Meyering  <meyering@lucent.com>
89930
89931         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
89932         (dir_name): Use dir_name_r.
89933         * lib/dirname.h (dir_name_r): Declare it.
89934
89935 2000-10-17  Jim Meyering  <meyering@lucent.com>
89936
89937         * lib/quote.h (PARAMS): Define and use.
89938         Reported by Akim Demaille.
89939
89940         * lib/getopt.c: Update from libc.
89941
89942 2000-10-16  Jim Meyering  <meyering@lucent.com>
89943
89944         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
89945         setlocale.
89946         From Jan Fedak.
89947
89948 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
89949
89950         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
89951
89952 2000-09-25  Jim Meyering  <meyering@lucent.com>
89953
89954         * lib/md5.h (rol): Define (from GnuPG).
89955
89956         * lib/sha.c: Give credit (GnuPG) where due.
89957         (M): Use rol rather than open-coding it.
89958         Add a FIXME comment.
89959
89960 2000-09-21  Jim Meyering  <meyering@lucent.com>
89961
89962         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
89963         Reported by Michael Stone.
89964
89965 2000-09-20  Jim Meyering  <meyering@lucent.com>
89966
89967         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
89968         (noinst_HEADERS): Add sha.h.
89969         Based on code from Scott G. Miller and from GnuPG.
89970
89971 2000-09-18  Jim Meyering  <meyering@lucent.com>
89972
89973         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
89974         LIBS. Otherwise, everyone ends up linking with -lelf for some
89975         configurations.
89976         Reported by Mike Stone.
89977
89978 2000-09-15  Jim Meyering  <meyering@lucent.com>
89979
89980         * lib/regex.c: Update from libc.
89981
89982 2000-09-10  Jim Meyering  <meyering@lucent.com>
89983
89984         * lib/getopt.c (_getopt_internal): Update from glibc.
89985
89986 2000-09-09  Jim Meyering  <meyering@lucent.com>
89987
89988         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
89989         think it should be used as a general replacement for isascii.
89990         * lib/fnmatch.c: Likewise.
89991         * lib/mbswidth.c: Likewise
89992         * lib/regex.c: Likewise.
89993
89994         Don't use atoi.
89995         * lib/userspec.c: Include sys/param.h and limits.h.
89996         Include xstrtol.h.
89997         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
89998         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
89999         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
90000         UID, GID.  Check range.
90001
90002 2000-09-06  Jim Meyering  <meyering@lucent.com>
90003
90004         * lib/getopt.c (_getopt_internal): Update from glibc.
90005
90006 2000-08-30  Jim Meyering  <meyering@lucent.com>
90007
90008         * lib/strftime.c: Merge in changes from GNU libc.
90009
90010 2000-08-26  Jim Meyering  <meyering@lucent.com>
90011
90012         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
90013         * m4/fpending.m4: New file.
90014
90015 2000-08-26  Jim Meyering  <meyering@lucent.com>
90016
90017         * lib/closeout.c: Include "__fpending.h".
90018         (close_stdout_status): Return right away if there's nothing to flush.
90019
90020         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
90021         * lib/__fpending.c: New file.
90022         * lib/__fpending.h: New file.
90023
90024 2000-08-20  Jim Meyering  <meyering@lucent.com>
90025
90026         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
90027         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
90028         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
90029
90030 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
90031
90032         Improve fileutils installation on systems where running
90033         programs (like install) can't be unlinked.
90034         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
90035         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
90036
90037 2000-08-07  Paul Eggert  <eggert@twinsun.com>
90038
90039         Standardize on "memory exhausted" instead of "Memory exhausted"
90040         or "virtual memory exhausted".
90041         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
90042         "virtual memory exhausted".
90043         * lib/same.c (same_name): Invoke xalloc_die instead of printing
90044         our own message.
90045         * lib/userspec.c (parse_user_spec): Likewise.
90046         * lib/bumpalloc.h: comment fix
90047         * lib/same.c, userspec.c: Include xalloc.h.
90048
90049         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
90050         not char *const and pointing to a constant array.
90051         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
90052         (xrealloc): Comment fix.
90053
90054         * lib/userspec.c (parse_user_spec):
90055         Don't translate a message until just before returning,
90056         to avoid unnecessary translation.
90057
90058 2000-08-07  Jim Meyering  <meyering@lucent.com>
90059
90060         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
90061         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
90062         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
90063         getgroups.c, gethostname.c, getopt.h, group-member.c,
90064         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
90065         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
90066         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
90067         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
90068         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
90069         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
90070         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
90071         yesno.c: Back out Copyright date changes for each file with no change
90072         this year.  This eases coordination with other programs using the same
90073         source code modules.  From Paul Eggert.
90074
90075 2000-08-06  Paul Eggert  <eggert@twinsun.com>
90076
90077         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
90078         not char, for compatibility with glibc 2.1.3 strftime.c.
90079
90080 2000-08-03  Greg McGary  <greg@mcgary.org>
90081
90082         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
90083         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
90084         (EXTEND_BUFFER): Use them.
90085
90086 2000-08-01  Jim Meyering  <meyering@lucent.com>
90087
90088         * lib/dirname.c (ISSLASH): Define.
90089         (BACKSLASH_IS_PATH_SEPARATOR): Define.
90090         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
90091         both `\' and `/' may be use as path separators.
90092         Based on a patch from Prashant TR.
90093
90094 2000-07-31  Paul Eggert  <eggert@twinsun.com>
90095
90096         * lib/quotearg.c (quotearg_n_options): Don't make the initial
90097         slot vector a constant, since it might get modified.
90098
90099 2000-07-31  Jim Meyering  <meyering@lucent.com>
90100
90101         * lib/xmalloc.c: Use `virtual memory exhausted', not
90102         `Memory exhausted'.
90103         * lib/obstack.c (print_and_abort): Likewise.
90104
90105 2000-07-30  Paul Eggert  <eggert@twinsun.com>
90106
90107         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
90108         buffer, so that the caller can always quote one small
90109         component of a "memory exhausted" message in slot 0.
90110         From a suggestion by Jim Meyering.
90111
90112 2000-07-30  Jim Meyering  <meyering@lucent.com>
90113
90114         * lib/makepath.c (make_path): Quote the other instance, too.
90115
90116         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
90117         (STATIC_BUF_SIZE): Define.
90118         (quotearg_n_options): Use only statically allocated storage when
90119         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
90120         than STATIC_BUF_SIZE.
90121
90122 2000-07-29  Jim Meyering  <meyering@lucent.com>
90123
90124         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
90125         * lib/dirname.c (dir_name): Likewise.
90126
90127         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
90128         `/'.
90129
90130         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
90131         (dir_name): Assert that there are no trailing slashes.
90132
90133 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
90134
90135         * lib/mbswidth.h (mbswidth): Add a flags argument.
90136         (mbswidth): New declaration.
90137         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
90138         * lib/mbswidth.c (mbswidth): Add a flags argument.
90139         (mbsnwidth): New function.
90140
90141 2000-07-24  Jim Meyering  <meyering@lucent.com>
90142
90143         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
90144
90145 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90146
90147         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
90148
90149 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90150
90151         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
90152         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
90153         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
90154         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
90155         invoke multibyte primitives.
90156
90157 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90158
90159         * lib/quotearg.c:
90160         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
90161         so that mbstate_t is always defined.
90162
90163         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
90164         be 1 in at least one GCC installation, and this configuration
90165         error is likely to be common.  Ignoring MB_LEN_MAX hurts
90166         performance on hosts that have mbrtowc but have only unibyte
90167         locales, but I assume these hosts are rare.
90168
90169 2000-07-23  Paul Eggert  <eggert@twinsun.com>
90170
90171         * lib/mbswidth.c (_XOPEN_SOURCE):
90172         Don't define; this causes problems on Solaris 7.
90173         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
90174
90175 2000-07-23  Jim Meyering  <meyering@lucent.com>
90176
90177         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
90178         too: getgrgid, getpwuid, getuid.
90179
90180 2000-07-23  Jim Meyering  <meyering@lucent.com>
90181
90182         * lib/basename.c (base_name): Add an assertion.
90183
90184 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
90185
90186         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
90187         shadow its mbsinit function.
90188
90189 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
90190
90191         * lib/mbswidth.h: New file.
90192         * lib/mbswidth.c: New file.
90193         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
90194         (noinst_HEADERS): Add mbswidth.h.
90195
90196 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
90197
90198         * lib/config.charset: Add support for FreeBSD. Improve support for
90199         HP-UX and IRIX 6.
90200
90201 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
90202
90203         * m4/mbswidth.m4: New file.
90204         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
90205
90206 2000-07-15  Jim Meyering  <meyering@lucent.com>
90207
90208         * lib/makepath.c: Include quote.h.
90209         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
90210         corresponding argument in a `quote (...)' call.
90211         Give better diagnostics.
90212
90213         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
90214         (noinst_HEADERS): Add quote.h.
90215
90216         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
90217         from tar's src/misc.c.
90218         * lib/quote.h: New file.  Prototypes for same.
90219
90220 2000-07-14  Paul Eggert  <eggert@twinsun.com>
90221
90222         From a suggestion by Bruno Haible.
90223         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
90224         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
90225         to decide whether to define the BeOS workaround macro;
90226         this adjusts to the change to AC_MBSTATE_T.
90227
90228 2000-07-14  Jim Meyering  <meyering@lucent.com>
90229
90230         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
90231         jm_AC_TYPE_UINTMAX_T.
90232
90233 2000-07-13  Paul Eggert  <eggert@twinsun.com>
90234
90235         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
90236
90237         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
90238         quotearg_buffer_restyled): Add support for
90239         clocale_quoting_style.  Undo previous change to
90240         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
90241         and "{RIGHT QUOTATION MARK}" msgids.
90242
90243 2000-07-10  Paul Eggert  <eggert@twinsun.com>
90244
90245         From a suggestion by Bruno Haible.
90246         * m4/mbstate_t.m4 (AC_MBSTATE_T):
90247         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
90248         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
90249         and mbstate_t, to a single-part test that simply defines mbstate_t.
90250         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
90251         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
90252
90253 2000-07-10  Jim Meyering  <meyering@lucent.com>
90254
90255         * m4/strerror_r.m4: Mirror the correction made in autoconf.
90256
90257         * m4/gnu-source.m4: Output to confdefs.h directly.
90258         Suggestion from Akim Demaille.
90259
90260 2000-07-09  Paul Eggert  <eggert@twinsun.com>
90261
90262         The old behavior of quoting `like this' doesn't look good with
90263         newer, ISO-style fonts.  See:
90264         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
90265
90266         Instead, quote "like this" by default.  Let the translator
90267         tailor the locale-specific quoting behavior by providing
90268         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
90269
90270         * lib/quotearg.c (N_): New macro.
90271         (gettext_default): New function.
90272         (quotearg_buffer_restyled): Use
90273         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
90274         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
90275
90276 2000-07-09  Jim Meyering  <meyering@lucent.com>
90277
90278         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
90279         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
90280
90281         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
90282         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
90283
90284 2000-07-09  Jim Meyering  <meyering@lucent.com>
90285
90286         * lib/Most files: Update copyright dates to include 2000.
90287
90288 2000-07-08  Jim Meyering  <meyering@lucent.com>
90289
90290         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
90291         if not defined.
90292         (xgethostname): Remove now-unnecessary #ifdef.
90293         Move declaration of `err' into loop where it's used.
90294
90295 2000-07-05  Paul Eggert  <eggert@twinsun.com>
90296         and Bruno Haible  <haible@clisp.cons.org>
90297
90298         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
90299         only if the test for an object-type mbstate_t fails.  This
90300         prevents us from mistakenly reporting that mbstate_t is a
90301         system object type after we "#define mbstate_t int" to work
90302         around its lack.
90303
90304 2000-07-05  Paul Eggert  <eggert@twinsun.com>
90305         and Bruno Haible  <haible@clisp.cons.org>
90306
90307         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
90308
90309 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90310
90311         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
90312         to strerror_r.
90313         Include <ctype.h> for use of isalpha.
90314
90315 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90316
90317         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
90318         by allocating a larger buffer. Test the gethostname return value for
90319         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
90320         returns an error and ENAMETOOLONG isn't defined.
90321
90322 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
90323
90324         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
90325         dimension.
90326
90327 2000-07-04  Jim Meyering  <meyering@lucent.com>
90328
90329         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
90330         of the deprecated AC_CHECKING.
90331
90332 2000-07-04  Jim Meyering  <meyering@lucent.com>
90333
90334         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
90335         Reported by Bruno Haible.
90336
90337 2000-07-04  Jim Meyering  <meyering@lucent.com>
90338
90339         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
90340         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
90341         lacks mbrtowc.
90342
90343 2000-07-03  Paul Eggert  <eggert@twinsun.com>
90344
90345         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
90346         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
90347
90348 2000-07-03  Paul Eggert  <eggert@twinsun.com>
90349         and Bruno Haible  <haible@clisp.cons.org>
90350
90351         * lib/quotearg.c (mbrtowc):
90352         Assign to *pwc, and return 1 only if result is nonzero.
90353         (iswprint): Use ISPRINT when substituting our own mbrtowc.
90354
90355 2000-07-03  Jim Meyering  <meyering@lucent.com>
90356
90357         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
90358
90359 2000-07-03  Jim Meyering  <meyering@lucent.com>
90360
90361         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
90362         This is necessary to get a definition of e.g., UTMP_FILE on
90363         HP-UX 10.20.
90364         From Bob Proulx.
90365
90366 2000-07-02  Jim Meyering  <meyering@lucent.com>
90367
90368         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
90369
90370         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
90371         AC_LIBOBJ(function_name).
90372         * m4/chown.m4: Likewise.
90373         * m4/fnmatch.m4: Likewise.
90374         * m4/ftruncate.m4: Likewise.
90375         * m4/getgroups.m4: Likewise.
90376         * m4/getline.m4: Likewise.
90377         * m4/group-member.m4: Likewise.
90378         * m4/jm-macros.m4: Likewise.
90379         * m4/lstat.m4: Likewise.
90380         * m4/malloc.m4: Likewise.
90381         * m4/memcmp.m4: Likewise.
90382         * m4/nanosleep.m4: Likewise.
90383         * m4/putenv.m4: Likewise.
90384         * m4/realloc.m4: Likewise.
90385         * m4/regex.m4: Likewise.
90386         * m4/stat.m4: Likewise.
90387         * m4/strftime.m4: Likewise.
90388
90389 2000-07-02  Jim Meyering  <meyering@lucent.com>
90390
90391         * lib/quotearg.c (mbstate_t): Don't define here.
90392
90393 2000-07-02  Jim Meyering  <meyering@lucent.com>
90394
90395         * lib/nanosleep.c (SIGCONT): Define if not already defined.
90396
90397 2000-07-01  Jim Meyering  <meyering@lucent.com>
90398
90399         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
90400
90401 2000-07-01  Jim Meyering  <meyering@lucent.com>
90402
90403         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
90404         problem.
90405
90406 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
90407
90408         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
90409         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
90410
90411 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
90412
90413         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
90414         per change in ../m4/ls-mntd-fs.m4.
90415         (read_filesystem_list): Ignore symbolic links.
90416
90417 2000-06-29  Jim Meyering  <meyering@lucent.com>
90418
90419         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
90420         for declaration of strcmp.
90421
90422         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
90423
90424         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
90425         Avoid warning by casting result to `char *' to remove `const'.
90426
90427 2000-06-28  Jim Meyering  <meyering@lucent.com>
90428
90429         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
90430         included by quotearg.c, for which we perform this test.  From
90431         Bruno Haible.
90432
90433 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
90434
90435         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
90436         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
90437         <utmpx.h> exists, put readutmp.o into LIBOBJS.
90438
90439 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
90440
90441         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
90442
90443 2000-06-26  Paul Eggert  <eggert@twinsun.com>
90444
90445         savedir now sets errno on failure and invokes xmalloc to get memory.
90446         Fix a couple of other minor bugs while we're at it.
90447
90448         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
90449         (NAMLEN): Remove macro.
90450         (malloc, realloc): Remove decls.
90451         (stpcpy): Likewise.
90452         ("xalloc.h"): Include.
90453         (NAME_SIZE_DEFAULT): New macro.
90454         (savedir): Use xmalloc / xrealloc to allocate memory.
90455         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
90456         Skip "" directory entries.
90457         Use strlen to calculate directory entry length, since the old method
90458         is rarely used these days and isn't worth supporting.
90459         Don't use a pointer after freeing it.
90460         Check for integer overflow when calculating allocation size.
90461         Use memcpy to copy entries, instead of stpcpy.
90462         Set errno properly when returning NULL.
90463         Check for readdir error.
90464
90465 2000-06-26  Jim Meyering  <meyering@lucent.com>
90466
90467         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
90468
90469 2000-06-25  Jim Meyering  <meyering@lucent.com>
90470
90471         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
90472         Linux header bug when _XOPEN_SOURCE is defined to 500.
90473
90474 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
90475
90476         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
90477         deficiency.
90478
90479 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
90480
90481         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
90482         Include xalloc.h.
90483         Don't include <stdlib.h>.  Don't declare malloc, realloc.
90484
90485 2000-06-24  Jim Meyering  <meyering@lucent.com>
90486
90487         * m4/strerror_r.m4: Revive this file -- to try out an experimental
90488         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
90489         for which strerror does return char*, but which lacks a conveniently
90490         accessible declaration of the function.  If the compile-test says
90491         strerror_r doesn't work, then resort to a `run'-test that works on
90492         BeOS and segfaults on DEC Unix.
90493
90494 2000-06-24  Jim Meyering  <meyering@lucent.com>
90495
90496         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
90497
90498 2000-06-23  Paul Eggert  <eggert@twinsun.com>
90499
90500         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
90501         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
90502
90503 2000-06-23  Paul Eggert  <eggert@twinsun.com>
90504
90505         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
90506         (mbrtowc, mbstate_t): Define substitutes if
90507         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
90508         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
90509         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
90510
90511 2000-06-23  Jim Meyering  <meyering@lucent.com>
90512
90513         * m4/afs.m4: Add missing AC_MSG_RESULT.
90514         Reported by Bruno Haible.
90515
90516         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
90517         Suggestion from Bruno Haible.
90518
90519 2000-06-23  Jim Meyering  <meyering@lucent.com>
90520
90521         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
90522
90523 2000-06-21  Jim Meyering  <meyering@lucent.com>
90524
90525         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
90526
90527 2000-06-21  Jim Meyering  <meyering@lucent.com>
90528
90529         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
90530         (noinst_HEADERS): Add getstr.h.
90531
90532         * lib/getline.c (getstr): Move into a separate file.
90533         * lib/getstr.c (getstr): New file, extracted from getline.c, with
90534         the following changes: new parameter, delim2; both delim[12]
90535         parameters have type `int', not `char'.  The latter would lose
90536         with 8-bit delimiters.
90537         * lib/getstr.h: New file.
90538
90539 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90540
90541         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
90542         than 1024, return a memory chunk of least possible size, instead
90543         of size PATH_MAX + 2. In the loop, increment the size proportionally.
90544         Use free/xmalloc instead of xrealloc to avoid copying for very long
90545         paths.
90546
90547 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90548
90549         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
90550         the empty string.
90551
90552 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
90553
90554         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
90555         address, not strdup.  Include <stdlib.h> and don't declare free().
90556
90557 2000-06-19  Jim Meyering  <meyering@lucent.com>
90558
90559         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
90560
90561 2000-06-18  Jim Meyering  <meyering@lucent.com>
90562
90563         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
90564
90565         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
90566         `checking whether...' message to be consistent with that of the
90567         lstat test.
90568
90569 2000-06-18  Jim Meyering  <meyering@lucent.com>
90570
90571         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
90572         Besides, these days every porting target provides a mkdir function.
90573
90574         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
90575         needed. (this snippet comes from src/system.h).
90576
90577 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
90578
90579         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
90580
90581 2000-06-15  Paul Eggert  <eggert@twinsun.com>
90582
90583         * lib/human.c (adjust_value): New function.
90584         (human_readable_inexact): Apply rounding style even when
90585         printing approximate values.
90586
90587 2000-06-14  Paul Eggert  <eggert@twinsun.com>
90588
90589         * lib/human.c (human_readable_inexact): Allow an input block
90590         size that is not a multiple of the output block size, and vice versa.
90591         Reported by Piergiorgio Sartor.
90592
90593 2000-06-14  Paul Eggert  <eggert@twinsun.com>
90594
90595         * lib/getdate.y (get_date): Apply relative times after time
90596         zone indicator, not before.  Reported by Todd A. Jacobs.
90597
90598 2000-06-13  Jim Meyering  <meyering@lucent.com>
90599
90600         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
90601
90602         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
90603
90604 2000-06-12  Paul Eggert  <eggert@twinsun.com>
90605
90606         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
90607
90608 2000-06-12  Jim Meyering  <meyering@lucent.com>
90609
90610         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
90611         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
90612         optional argument.
90613         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
90614         the optional argument, `lib'.
90615
90616 2000-06-08  Jim Meyering  <meyering@lucent.com>
90617
90618         * m4/largefile.m4: Remove file (now that it's part of autoconf).
90619
90620 2000-06-04  Paul Eggert  <eggert@twinsun.com>
90621
90622         Rewrite largefile configuration so that we don't need to run
90623         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
90624         AC_CANONICAL_HOST in configure.in -- jmm]
90625
90626         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
90627         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
90628         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
90629         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
90630         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
90631         All uses changed.
90632         Instead of inspecting the output of getconf, try to compile the
90633         test program without and with the macro definition.
90634         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
90635         for getconf.  Instead, check for the needed flags by compiling
90636         test programs.
90637
90638 2000-06-04  Paul Eggert  <eggert@twinsun.com>
90639
90640         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
90641
90642 2000-06-04  Jim Meyering  <meyering@lucent.com>
90643
90644         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
90645         SunOS 4.1.4 for which gid_t is an unsigned type.
90646
90647 2000-06-03  Jim Meyering  <meyering@lucent.com>
90648
90649         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
90650         now that autoconf requires that.
90651
90652         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
90653         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
90654         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
90655
90656 2000-06-03  Jim Meyering  <meyering@lucent.com>
90657
90658         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
90659
90660 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
90661
90662         * m4/glibc21.m4: New file.
90663         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
90664
90665 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
90666
90667         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
90668         newer, don't install charset.alias.
90669         * lib/config.charset: Change the Linux/glibc rules so they become empty
90670         on glibc-2.1 or newer.
90671
90672 2000-06-02  Jim Meyering  <meyering@lucent.com>
90673
90674         * lib/mountlist.c: Back out last change.  Instead, do this...
90675         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
90676         me_dummy member using the same `ignore'-testing code.
90677         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
90678         fs_type strings.
90679         From Mark D. Roth.
90680
90681 2000-05-29  Jim Meyering  <meyering@lucent.com>
90682
90683         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
90684         mounts with the `ignore' attribute.  Based on a patch from
90685         Mark D. Roth.
90686
90687 2000-05-28  Jim Meyering  <meyering@lucent.com>
90688
90689         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
90690         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90691         * m4/stat.m4: Likewise.
90692         * m4/lstat.m4: Likewise.
90693         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
90694
90695         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
90696         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
90697
90698 2000-05-26  Jim Meyering  <meyering@lucent.com>
90699
90700         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
90701
90702 2000-05-24  Jim Meyering  <meyering@lucent.com>
90703
90704         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
90705         autoconf requires that.
90706         * m4/lib-check.m4: Likewise.
90707         * m4/jm-macros.m4: Likewise.
90708         * m4/strftime.m4: Likewise.
90709
90710         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
90711         AC_CHECK_DECLS, now that autoconf requires that.
90712
90713 2000-05-22  Jim Meyering  <meyering@lucent.com>
90714
90715         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
90716         * m4/lstat.m4: Likewise.
90717
90718 2000-05-22  Jim Meyering  <meyering@lucent.com>
90719
90720         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
90721
90722 2000-05-20  Jim Meyering  <meyering@lucent.com>
90723
90724         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
90725         (jm_PREREQ): Use it.
90726
90727 2000-05-18  Jim Meyering  <meyering@lucent.com>
90728
90729         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
90730         back, too, since it may have been modified by allocate_entry.
90731         (hash_delete): Rewrite to use neither the assignment operator
90732         nor the comma operator in an if-expression.
90733
90734 2000-05-15  Paul Eggert  <eggert@twinsun.com>
90735
90736         * lib/closeout.c:
90737         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
90738         Remove; no longer needed.
90739         "quotearg.h": Add include.
90740         (file_name): Do not bother to explicitly initialize to NULL; it's less
90741         efficient on some hosts.
90742         (close_stdout_status): Remove test as to whether stdout was already
90743         closed; it breaks for the case "echo x | sort >&-".
90744         Quote file name colons.
90745         Do not assume that _("write error") lacks format strings.
90746
90747 2000-05-15  Jim Meyering  <meyering@lucent.com>
90748
90749         * lib/version-etc.c (version_etc_copyright): Update the copyright
90750         string used in all --version output.
90751
90752 2000-05-14  Jim Meyering  <meyering@lucent.com>
90753
90754         * lib/closeout.c (close_stdout_set_file_name): New function.
90755         (close_stdout_status): Use new file-scoped global.
90756         Return right away if fstat says the stdout file descriptor is invalid.
90757         * lib/closeout.h (close_stdout_set_file_name): Declare.
90758
90759 2000-05-10  Jim Meyering  <meyering@lucent.com>
90760
90761         * lib/closeout.c [default_exit_status]: New file-scoped variable.
90762         (close_stdout_set_status): New function.
90763         * lib/closeout.h (close_stdout_set_status): Declare.
90764
90765 2000-05-09  Jim Meyering  <meyering@lucent.com>
90766
90767         * m4/gettext.m4: Rename this...
90768         * m4/libintl.m4: ...to this.
90769
90770 2000-05-08  Jim Meyering  <meyering@lucent.com>
90771
90772         * lib/long-options.c: Don't include closeout.h.
90773         (parse_long_options): Don't call close_stdout for --version.
90774
90775 2000-05-06  Paul Eggert  <eggert@twinsun.com>
90776
90777         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
90778         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
90779         2.1.3 bug.  This avoids a clash when files like regex.c define
90780         _GNU_SOURCE.
90781
90782 2000-05-06  Jim Meyering  <meyering@lucent.com>
90783
90784         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
90785         (AC_REPLACE_FUNCS): Add strnlen.
90786
90787         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
90788         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
90789
90790         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
90791         AC_SEARCH_LIBS call for nanosleep.
90792         (LIB_NANOSLEEP): Set and AC_SUBST.
90793
90794 2000-05-06  Jim Meyering  <meyering@lucent.com>
90795
90796         * lib/strnlen.c: Undefine __strnlen and strnlen.
90797         [!weak_alias]: Define __strnlen to strnlen.
90798
90799         * lib/atexit.c: New file, from libiberty.
90800
90801 2000-05-06  Jim Meyering  <meyering@lucent.com>
90802
90803         * lib/closeout.c (close_stdout_status): Also check for errors on the
90804         stderr stream.
90805
90806 2000-05-05  Jim Meyering  <meyering@lucent.com>
90807
90808         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
90809         AC_SEARCH_LIBS call for clock_gettime.
90810         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
90811
90812         * m4/search-libs.m4: Update from autoconf.
90813
90814         su doesn't work on Solaris 2.6.
90815         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
90816         <shadow.h>.  Reported by Dragos Harabor.
90817
90818 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
90819
90820         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
90821         memcpy instead of xmalloc, xrealloc, path_concat.
90822         (locale_charset): Treat empty environment variables as absent.
90823         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
90824
90825 2000-05-04  Jim Meyering  <meyering@lucent.com>
90826
90827         * lib/getopt.c: Update from glibc.
90828         * lib/obstack.c: Likewise.
90829         * lib/obstack.h: Likewise.
90830         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
90831         file
90832
90833         * lib/regex.h: Likewise.
90834         * lib/strndup.c: Likewise.
90835         * lib/strnlen.c: New file, from glibc.
90836
90837 2000-05-03  Jim Meyering  <meyering@lucent.com>
90838
90839         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
90840
90841 2000-05-02  Paul Eggert  <eggert@twinsun.com>
90842
90843         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
90844         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
90845         compile-time test, rather than inspecting host and OS, to
90846         decide whether to define _LARGEFILE_SOURCE.
90847
90848 2000-05-01  Jim Meyering  <meyering@lucent.com>
90849
90850         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
90851
90852         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
90853         Based on a patch from Bruno Haible.
90854
90855 2000-05-01  Jim Meyering  <meyering@lucent.com>
90856
90857         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
90858
90859 2000-04-29  Jim Meyering  <meyering@lucent.com>
90860
90861         * lib/path-concat.c: Declare strdup only if it's not defined.
90862         * lib/canon-host.c: Likewise.
90863
90864 2000-04-28  Jim Meyering  <meyering@lucent.com>
90865
90866         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
90867         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
90868         is included first, then limits.h is included by locale.h by libintl.h.
90869         From John David Anglin.
90870
90871 2000-04-25  Jim Meyering  <meyering@lucent.com>
90872
90873         * lib/makepath.c (S_IRWXUGO): Define.
90874         (make_path): Always perform explicit chmod if MODE specifies any
90875         of the `special' permission bits.  Prompted by a bug report against
90876         install from Mate Wierdl and Joost van Baal.
90877
90878 2000-04-18  Jim Meyering  <meyering@lucent.com>
90879
90880         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
90881         (jm_PREREQ): Use it.
90882
90883 2000-04-18  Jim Meyering  <meyering@lucent.com>
90884
90885         * lib/README: New file.
90886
90887         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
90888         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
90889
90890 2000-04-17  Jim Meyering  <meyering@lucent.com>
90891
90892         Get it right :-)
90893         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
90894         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
90895         Suggestion from Akim Demaille.
90896
90897 2000-04-17  Jim Meyering  <meyering@lucent.com>
90898
90899         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
90900         the definition of it to rpl_strftime also defined-away the system's
90901         declaration.
90902
90903 2000-04-15  Jim Meyering  <meyering@lucent.com>
90904
90905         Use `C' to denote so-called `contiguous' files, the same way
90906         that tar does.
90907         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
90908         (ftypelet): Use S_ISCTG.
90909         From Michael Deutschmann.
90910
90911 2000-04-14  Jim Meyering  <meyering@lucent.com>
90912
90913         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
90914         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
90915         clobbered.
90916
90917 2000-04-14  Jim Meyering  <meyering@lucent.com>
90918
90919         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
90920
90921 2000-04-13  Jim Meyering  <meyering@lucent.com>
90922
90923         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
90924         AH_VERBATIM to insert required #ifndef into config.h.in.
90925         Suggestion from Akim Demaille.
90926
90927 2000-04-12  Jim Meyering  <meyering@lucent.com>
90928
90929         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
90930         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
90931         Christian Krackowizer.
90932
90933         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
90934         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
90935         (AC_SYS_LARGEFILE): Require.
90936         (AM_C_PROTOTYPES): Require.
90937
90938 2000-04-08  Jim Meyering  <meyering@lucent.com>
90939
90940         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
90941         names don't conflict.  Reported by Eli Zaretskii.
90942
90943 2000-04-07  Jim Meyering  <meyering@lucent.com>
90944
90945         * lib/putenv.c: Move inclusion of errno.h so it follows that of
90946         sys/types.h, to work around system header problems on AIX 3.2.5.
90947         From Bruno Haible.
90948
90949 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
90950
90951         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
90952         bug.  Deal with the different error behavior of Irix iconv.
90953
90954 2000-04-05  Paul Eggert  <eggert@twinsun.com>
90955
90956         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
90957         IRIX if the installer said otherwise.
90958
90959 2000-04-05  Jim Meyering  <meyering@lucent.com>
90960
90961         Portability tweaks required for ultrix4.3.
90962         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
90963         (jm_CHECK_DECLS): Add getutent to the list of functions.
90964         (_jm_DECL_HEADERS): Add utmpx.h.
90965         From John David Anglin.
90966
90967         * m4/strftime.m4: Back out the 2000-04-02 change.
90968         Instead of that change, simply undefine putenv in the test program.
90969
90970 2000-04-05  Jim Meyering  <meyering@lucent.com>
90971
90972         Portability tweaks required for ultrix4.3.
90973         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
90974         getutent.
90975         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
90976         * lib/canon-host.c: Declare strdup.
90977         * lib/path-concat.c: Likewise.
90978         From John David Anglin.
90979
90980 2000-04-04  Jim Meyering  <meyering@lucent.com>
90981
90982         Be more DOS 8.3-friendly.
90983         * lib/ref-add.sin: Renamed from ref-add.sed.in.
90984         * lib/ref-del.sin: Renamed from ref-del.sed.in.
90985         * lib/Makefile.am: Reflect renaming.
90986         Reported by Eli Zaretskii.
90987
90988         Use a temporary file name that won't clash with `charset.alias'
90989         in the DOS 8.3 name space.
90990         * lib/Makefile.am (charset_tmp): Define.
90991         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
90992         (uninstall-local): Likewise.
90993         Reported by Eli Zaretskii.
90994
90995 2000-04-03  Jim Meyering  <meyering@lucent.com>
90996
90997         * m4/gettext.m4: Fix typo in comment.
90998
90999         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
91000         textutils/configure.in).  Suggestion from Paul Eggert.
91001         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
91002
91003 2000-04-02  Paul Eggert  <eggert@twinsun.com>
91004
91005         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
91006         variable in the shell rather than using putenv, which isn't
91007         portable.  This avoids the configure-time inter-test dependency
91008         on the potentially-renamed putenv function.
91009
91010 2000-03-30  Paul Eggert  <eggert@twinsun.com>
91011
91012         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
91013         before checking struct stat.st_blksize, so that
91014         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
91015
91016 2000-03-29  Paul Eggert  <eggert@twinsun.com>
91017
91018         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
91019         since strftime.c uses HAVE_STRFTIME to decide whether to use
91020         the underlying strftime.
91021
91022 2000-03-29  Paul Eggert  <eggert@twinsun.com>
91023
91024         * lib/time/strftime.c (my_strftime): Make sure we call the system
91025         strftime, not ourselves, when invoking the underlying strftime.
91026
91027 2000-03-24  Jim Meyering  <meyering@lucent.com>
91028
91029         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
91030         (charset_alias): Define.
91031         (install-exec-local): Factor out common code.
91032         (uninstall-local): Split lines longer than 80.
91033         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
91034         (SUFFIXES): Define.
91035         (.sed.in.sed): New rule.  Don't redirect directly to $@.
91036         (CLEANFILES): Add ref-add.sed and ref-del.sed.
91037
91038 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
91039
91040         * lib/config.charset: Output a line containing "Packages using this
91041         file".
91042         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
91043         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
91044         ref-del.sed): New rules.
91045
91046 2000-03-17  Jim Meyering  <meyering@lucent.com>
91047
91048         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
91049         Otherwise, include <strings.h>
91050
91051 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
91052
91053         * lib/unicodeio.c (utf8_wctomb): New function.
91054         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
91055         format instead of in UCS-4 with platform dependent endianness.
91056
91057 2000-03-10  Jim Meyering  <meyering@lucent.com>
91058
91059         * m4/lib-check.m4: Look for getspnam in -lgen, too.
91060         From Marco Franzen.
91061
91062 2000-03-07  Paul Eggert  <eggert@twinsun.com>
91063
91064         * lib/savedir.c (savedir): Work even if directory size is
91065         negative; this can happen with some screwy NFS configurations.
91066
91067 2000-03-06  Jim Meyering  <meyering@lucent.com>
91068
91069         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
91070         if it's NULL (because we ran out of memory).  From Bruno Haible.
91071
91072 2000-03-05  Jim Meyering  <meyering@lucent.com>
91073
91074         * lib/localcharset.c ("path-concat.h"): Include.
91075         (get_charset_aliases): Use path_concat instead of ANSI string
91076         concatenation.
91077
91078         * lib/unicodeio.h (PARAMS): Define.
91079         Use it to guard prototype.
91080
91081 2000-03-04  Jim Meyering  <meyering@lucent.com>
91082
91083         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
91084         for lib/localcharset.c.
91085
91086 2000-03-04  Jim Meyering  <meyering@lucent.com>
91087
91088         * lib/Makefile.am (install-exec-local): Create $(libdir) before
91089         installing into it.
91090         (uninstall-local): Uncomment this rule so `make distcheck' works
91091         once again.
91092
91093         * lib/unicodeio.c (<errno.h>): Include it.
91094         (errno): Declare if not defined.
91095
91096         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
91097
91098         * lib/config.charset: New version, incorporating remarks from a linux
91099         i18n mailing list.  From Bruno Haible.
91100
91101 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
91102
91103         * m4/codeset.m4: New file.
91104         * m4/iconv.m4: New file.
91105         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
91106
91107 2000-03-03  Jim Meyering  <meyering@lucent.com>
91108
91109         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
91110
91111 2000-03-02  Jim Meyering  <meyering@lucent.com>
91112
91113         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
91114         the messages come out on separate lines.
91115
91116         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
91117         rather than jm_CHECK_DECLARATIONS.
91118         * m4/decl.m4: Remove now-unused file.
91119
91120         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
91121         geteuid.
91122
91123 2000-03-02  Jim Meyering  <meyering@lucent.com>
91124
91125         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
91126
91127 2000-03-01  Jim Meyering  <meyering@lucent.com>
91128
91129         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
91130         * lib/unicodeio.c: Likewise.
91131
91132 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
91133
91134         * lib/config.charset: New file.
91135         * lib/localcharset.c: New file.
91136         * lib/unicodeio.h, lib/unicodeio.c: New files.
91137         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
91138         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
91139         (noinst_HEADERS): Add unicodeio.h.
91140         (all-local, install-exec-local, charset.alias): New targets.
91141
91142 2000-02-28  Paul Eggert  <eggert@twinsun.com>
91143
91144         * lib/quotearg.c (ALERT_CHAR): New macro.
91145         (quotearg_buffer_restyled): Use it.
91146
91147 2000-02-27  Jim Meyering  <meyering@lucent.com>
91148
91149         * m4/check-decl.m4: Add getenv to the list.
91150
91151 2000-02-27  Jim Meyering  <meyering@lucent.com>
91152
91153         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
91154         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
91155
91156         * lib/backupfile.c: Guard inclusion of stdlib.h with
91157         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
91158         Declare malloc if needed.
91159
91160         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
91161         `#ifndef HAVE_DECL..'
91162         now that autoconf always defines the HAVE_DECL_ symbols.
91163         * lib/human.c: Likewise.
91164         * lib/same.c: Likewise.
91165         * lib/strtoumax.c: Likewise.
91166
91167         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
91168         declaration check was not run.
91169         * lib/hash.c: Likewise.
91170         * lib/human.c: Likewise.
91171         * lib/same.c: Likewise.
91172         * lib/strtoumax.c: Likewise.
91173
91174         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
91175         `.', then first look up the entire `.'-containing string as a login
91176         name.
91177
91178 2000-02-23  Jim Meyering  <meyering@lucent.com>
91179
91180         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
91181         in place of my hack.
91182
91183 2000-02-18  Paul Eggert  <eggert@twinsun.com>
91184
91185         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
91186         (textint): New typedef.
91187         (parser_control): Member year changed from int to textint.
91188         All uses changed.
91189         (YYSTYPE): Removed; replaced by %union with int and textint members.
91190         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
91191         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
91192         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
91193         (tSNUMBER, tUNUMBER): Now of type <textintval>.
91194         (date, number, to_year): Use width of number in digits, not its value,
91195         to determine whether it's a 2-digit year, or a 2-digit time.
91196         (yylex): Store number of digits of numeric tokens.
91197         Reported by John Kendall.
91198
91199         (parser_control): Changed from struct parser_control to typedef (for
91200         consistency).  All uses changed.
91201
91202         (tID): Removed; not used.
91203         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
91204
91205 2000-02-14  Paul Eggert  <eggert@twinsun.com>
91206
91207         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
91208         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
91209
91210 2000-02-12  Jim Meyering  <meyering@lucent.com>
91211
91212         * lib/userspec.c (ISDIGIT): Define it.
91213         (isdigit): Remove definition.
91214         (is_number): Use ISDIGIT, not isdigit.
91215         <libintl.h>: Include.
91216         (_ and N_): Define.
91217         (parse_user_spec): Mark translatable strings.
91218
91219 2000-02-10  Jim Meyering  <meyering@lucent.com>
91220
91221         With these changes, nanosleep.[ch] are finally enough like the other
91222         lib/* replacement files to compile on a few more losing systems.
91223
91224         * lib/nanosleep.h: Don't include config.h.
91225         Remove prototype from declaration of nanosleep.
91226         (PARAMS): Remove now-unneeded definition.
91227         * lib/nanosleep.c: #undef nanosleep.
91228         (rpl_nanosleep): Rename from nanosleep.
91229
91230 2000-02-10  Jim Meyering  <meyering@lucent.com>
91231
91232         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
91233         gnu_nanosleep to rpl_nanosleep.
91234
91235 2000-02-09  Jim Meyering  <meyering@lucent.com>
91236
91237         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
91238         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
91239
91240 2000-02-08  Akim Demaille  <akim@epita.fr>
91241
91242         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
91243         `[' and `]' and remove uses of `changequote'.
91244         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
91245         (AC_SYS_LARGEFILE): Likewise.
91246         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
91247         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
91248         of changequote.
91249         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
91250         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
91251         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
91252         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
91253
91254 2000-02-05  Jim Meyering  <meyering@lucent.com>
91255
91256         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
91257         Remove explicit use of AC_HEADER_TIME.  It is required by
91258         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
91259         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
91260         in autoconf whereby the expansion of the latter ended up preceding
91261         the expansion of its prerequisite, AC_HEADER_TIME.
91262         Reported by Volker Borchert.
91263
91264 2000-02-03  Jim Meyering  <meyering@lucent.com>
91265
91266         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
91267
91268 2000-02-03  Jim Meyering  <meyering@lucent.com>
91269
91270         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
91271         rather than with `#if HAVE_UTMPNAME'.
91272
91273 2000-02-02  Jim Meyering  <meyering@lucent.com>
91274
91275         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
91276         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
91277         Reported by Eli Zaretskii.
91278
91279 2000-02-01  Jim Meyering  <meyering@lucent.com>
91280
91281         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
91282
91283 2000-01-31  Jim Meyering  <meyering@lucent.com>
91284
91285         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
91286         functions.  Add the time.h and sys/time.h headers along with the
91287         AC_REQUIRE'ment of AC_HEADER_TIME.
91288
91289 2000-01-31  Jim Meyering  <meyering@lucent.com>
91290
91291         * lib/nanosleep.h (nanosleep): Guard declaration with
91292         `#if ! HAVE_DECL_NANOSLEEP'.
91293         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
91294         the declaration in that vendor's sys/timers.h.
91295         Reported by Christian Krackowizer.
91296
91297         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
91298         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
91299         (ISPRINT): Likewise.
91300         Reported by Tom Tromey.
91301
91302 2000-01-30  Jim Meyering  <meyering@lucent.com>
91303
91304         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
91305
91306         * m4/prereq.m4 (utmp_includes): Define.
91307         Check for ut_user and ut_name members in both struct utmpx
91308         and struct utmp.
91309
91310 2000-01-30  Jim Meyering  <meyering@lucent.com>
91311
91312         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
91313         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
91314         header files where only utmpx.ut_user is declared.
91315
91316         * lib/readutmp.h (UT_USER): Define.
91317
91318 2000-01-29  Jim Meyering  <meyering@lucent.com>
91319
91320         * m4/lib-check.m4: New file containing library-related checks from
91321         fileutils and sh-utils (textutils had none).
91322
91323 2000-01-28  Jim Meyering  <meyering@lucent.com>
91324
91325         * m4/perl.m4: Change format of warning message to look more like that
91326         from the missing script.  Suggestion from François Pinard.
91327
91328 2000-01-25  Jim Meyering  <meyering@lucent.com>
91329
91330         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
91331         well as time.h in the compile check.
91332         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
91333         Fix typo in cross-compiling case: s/yes/no/.
91334
91335 2000-01-23  Jim Meyering  <meyering@lucent.com>
91336
91337         * m4/jm-macros.m4: Move df-related tests here from
91338         fileutils/configure.in
91339
91340         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
91341         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
91342
91343         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
91344         s/space/ac_fsusage_space/.
91345         (jm_FILE_SYSTEM_USAGE): Take two parameters.
91346
91347         * m4/ftruncate.m4: New file (derived from part of
91348         fileutils/configure.in).
91349         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
91350         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
91351
91352         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
91353         AC_SUBST these here, rather than just in sh-util/configure.in, so
91354         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
91355         all the same.
91356         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
91357         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
91358         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
91359         (AC_SUBST(POW_LIBM)): Likewise.
91360         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
91361
91362 2000-01-23  Jim Meyering  <meyering@lucent.com>
91363
91364         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
91365         obstack.c.
91366
91367 2000-01-22  Jim Meyering  <meyering@lucent.com>
91368
91369         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
91370
91371         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
91372
91373         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
91374         configure.in
91375         (AC_CHECK_HEADERS): Likewise for sh-utils.
91376         (AC_CHECK_HEADERS): Likewise for textutils.
91377         Merge the three lists of headers.
91378
91379         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
91380         from fileutils' configure.in.
91381
91382         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
91383         code. Moved tests into their own function (_jm_DECL_HEADERS) in
91384         check-decl.m4.
91385
91386         * m4/check-decl.m4: Use #if rather than #ifdef.
91387         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
91388         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
91389         (_jm_DECL_HEADERS): Define new function.
91390         (jm_CHECK_DECLARATIONS): Require it.
91391
91392 2000-01-22  Jim Meyering  <meyering@lucent.com>
91393
91394         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
91395         [! HAVE_DECL_STRTOULL]: Declare strtoull.
91396         Required for some AIX systems.  Reported by Christian Krackowizer.
91397         [TESTING] (main): New function.
91398
91399         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
91400         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
91401         letters.
91402
91403         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
91404         iswprint.
91405
91406         * lib/strverscmp.c (ISDIGIT): Define.
91407         (strverscmp): Use ISDIGIT, not isdigit.
91408
91409 2000-01-19  Jim Meyering  <meyering@lucent.com>
91410
91411         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
91412         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
91413         defines `struct timespec' in <sys/time.h>
91414
91415         * m4/c-bs-a.m4: Remove uses of changequote altogether.
91416         Thanks to Akim for explaining.
91417
91418 2000-01-17  Paul Eggert  <eggert@twinsun.com>
91419
91420         * lib/nanosleep.c (nanosleep):
91421         Don't use SA_INTERRUPT to decide whether to call sigaction, as
91422         POSIX.1 doesn't require SA_INTERRUPT and some systems
91423         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
91424         it's been part of POSIX.1 since day 1 (in 1988).
91425
91426 2000-01-17  Jim Meyering  <meyering@lucent.com>
91427
91428         * lib/interlock: Remove unused file.  Reported by François Pinard.
91429
91430 2000-01-16  Paul Eggert  <eggert@twinsun.com>
91431
91432         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
91433         alert, backslash, formfeed, and vertical tab unnecessarily in
91434         shell quoting style.
91435
91436 2000-01-16  Jim Meyering  <meyering@lucent.com>
91437
91438         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
91439         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
91440         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
91441         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
91442
91443 2000-01-16  Jim Meyering  <meyering@lucent.com>
91444
91445         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
91446         because the latter didn't work.
91447
91448 2000-01-15  Jim Meyering  <meyering@lucent.com>
91449
91450         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
91451         (AC_REPLACE_FUNCS): Add memcpy and memset.
91452         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
91453         Add strpbrk.
91454         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
91455
91456 2000-01-12  Jim Meyering  <meyering@lucent.com>
91457
91458         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
91459         (jm_PREREQ): Use it.
91460         (jm_PREREQ_READUTMP): New macro.
91461         (jm_PREREQ): Use it.
91462
91463 2000-01-11  Paul Eggert  <eggert@twinsun.com>
91464
91465         Quote multibyte characters correctly.
91466         * m4/c-bs-a.m4: New file.
91467         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
91468         (jm_PREREQ): Use it.
91469
91470 2000-01-11  Paul Eggert  <eggert@twinsun.com>
91471
91472         * m4/uintmax_t.m4: Port to autoconf 2.13.
91473
91474 2000-01-08  Jim Meyering  <meyering@ascend.com>
91475
91476         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
91477         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
91478
91479 2000-01-04  Jim Meyering  <meyering@ascend.com>
91480
91481         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
91482         jm_STRUCT_DIRENT_D_TYPE.
91483         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
91484         jm_STRUCT_DIRENT_D_INO.
91485         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
91486         jm_STRUCT_UTIMBUF.
91487         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
91488         renamings.
91489         * m4/utime.m4: Likewise.
91490
91491         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
91492         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
91493
91494 2000-01-03  Paul Eggert  <eggert@twinsun.com>
91495
91496         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
91497         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
91498
91499 2000-01-02  Jim Meyering  <meyering@ascend.com>
91500
91501         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
91502         remember if this is necessary.
91503
91504 1999-12-26  Jim Meyering  <meyering@ascend.com>
91505
91506         * m4/jm-macros.m4: Use it here.
91507         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
91508
91509 1999-12-23  Jim Meyering  <meyering@ascend.com>
91510
91511         * m4/jm-macros.m4: Check for clock_gettime (moved from
91512         fileutils/configure.in)
91513         Check for gettimeofday.
91514
91515 1999-12-20  Jim Meyering  <meyering@ascend.com>
91516
91517         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
91518         autoconf-2.14a-1999-12-20.
91519
91520 1999-12-19  Jim Meyering  <meyering@ascend.com>
91521
91522         * m4/lstat-slash.m4: New file.
91523         * m4/jm-macros.m4: Use the new macro:
91524         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
91525
91526 1999-12-07  Jim Meyering  <meyering@ascend.com>
91527
91528         * m4/perl.m4: Require that File::Compare be available, too.
91529         Too many systems seem to lack it.
91530
91531         * m4/strftime.m4: Add checks for most of the cpp macros tested in
91532         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
91533
91534 1999-11-18  Paul Eggert  <eggert@twinsun.com>
91535
91536         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
91537         problem with the QNX 4.25 shell, which doesn't propagate exit
91538         status of failed commands inside shell assignments.
91539
91540 1999-11-17  Jim Meyering  <meyering@ascend.com>
91541
91542         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
91543
91544 1999-11-07  Jim Meyering  <meyering@ascend.com>
91545
91546         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
91547
91548 1999-11-06  Jim Meyering  <meyering@ascend.com>
91549
91550         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
91551         * m4/jm-macros.m4 (jm_MACROS): Use it here.
91552
91553 1999-11-05  Jim Meyering  <meyering@ascend.com>
91554
91555         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
91556         configure.in of textutils, fileutils, and sh-utils into this one
91557         (shared between those packages) file.
91558         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
91559         AC_STRUCT_ST_BLKSIZE.
91560
91561 1999-11-03  Jim Meyering  <meyering@ascend.com>
91562
91563         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
91564         of AC_CHECK_TYPE checks includes unistd.h.
91565         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
91566         Suggestion from Akim Demaille.
91567
91568 1999-10-30  Jim Meyering  <meyering@ascend.com>
91569
91570         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
91571         m4-quoted string.
91572         * m4/ls-mntd-fs.m4: Likewise.
91573         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
91574         * m4/jm-winsz1.m4: Likewise.
91575
91576         * m4/const.m4: Remove file, since the fix made it into the experimental
91577         version of autoconf.
91578         * m4/mktime.m4: Likewise.
91579
91580         * m4/check-type.m4: Remove file, now that the latest version of
91581         AC_CHECK_TYPE takes a third arg to specify additional #includes.
91582
91583         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
91584         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
91585         AC_CHECK_TYPE.
91586
91587 1999-10-04  Jim Meyering  <meyering@ascend.com>
91588
91589         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
91590
91591 1999-09-22  Paul Eggert  <eggert@twinsun.com>
91592
91593         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
91594         2.95.1 bug with HP-UX 10.20.
91595
91596 1999-09-17  Jim Meyering  <meyering@ascend.com>
91597
91598         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
91599         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
91600         due to missing strdup (against sh-utils-2.0).
91601
91602 1999-08-29  Jim Meyering  <meyering@ascend.com>
91603
91604         * m4/jm-macros.m4: Require jm_BISON.
91605         * m4/bison.m4: New file.
91606
91607 1999-08-17  Paul Eggert  <eggert@twinsun.com>
91608
91609         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
91610         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
91611
91612 1999-08-05  Jim Meyering  <meyering@ascend.com>
91613
91614         * m4/getline.m4: Rename test file from conftestdata to conftest.data
91615         to avoid conflicts with `conftest' on 8+3 filesystems.
91616         Suggestion from Eli Zaretskii.
91617
91618 1999-08-04  Jim Meyering  <meyering@ascend.com>
91619
91620         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
91621         fileutils and sh-utils (textutils's getline test was inadequate).
91622         (AM_FUNC_GETLINE): Run this test.
91623         (AC_CHECK_FUNCS): Check for getdelim.
91624         Reported by Bob Proulx.
91625
91626 1999-08-02  Jim Meyering  <meyering@ascend.com>
91627
91628         * m4/jm-macros.m4: Add a comment.
91629
91630 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91631
91632         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
91633         <inttypes.h> defines strtoumax as a macro (and not as a
91634         function).
91635
91636 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91637
91638         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
91639         that we can shift, multiply and divide unsigned long long
91640         values; Ultrix cc can't do it.
91641
91642 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91643
91644         * m4/mktime.m4: New file, which is a preview of what should appear
91645         in the next public autoconf release.
91646
91647 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91648
91649         * m4/lfs.m4: Remove this file.
91650         * m4/largefile.m4: New file.  It contains the old contents of
91651         lfs.m4, except that all names with prefix AC_LFS have been
91652         changed to use the prefix AC_SYS_LARGEFILE instead, to be
91653         compatible with future autoconf versions.  Also, some minor m4
91654         quoting problems have been fixed.
91655
91656 1999-08-01  Paul Eggert  <eggert@twinsun.com>
91657
91658         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
91659         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
91660         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
91661         and simplify the shell code.
91662
91663 1999-08-01  Jim Meyering  <meyering@ascend.com>
91664
91665         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
91666         m4.
91667
91668 1999-07-20  Jim Meyering  <meyering@ascend.com>
91669
91670         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
91671
91672 1999-07-15  Jim Meyering  <meyering@ascend.com>
91673
91674         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
91675
91676 1999-05-22  Jim Meyering  <meyering@ascend.com>
91677
91678         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
91679
91680 1999-05-20  Jim Meyering  <meyering@ascend.com>
91681
91682         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
91683         Add a colon after each `then' in case $4 is empty.
91684
91685 1999-05-16  Jim Meyering  <meyering@ascend.com>
91686
91687         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
91688
91689 1999-05-10  Jim Meyering  <meyering@ascend.com>
91690
91691         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
91692
91693         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
91694         AC_FUNC_MKTIME.
91695
91696 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
91697
91698         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
91699
91700 1999-05-04  Paul Eggert  <eggert@twinsun.com>
91701
91702         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
91703         not CPPFLAGS, so that linking works correctly in IRIX.
91704
91705 1999-04-30  Paul Eggert  <eggert@twinsun.com>
91706
91707         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
91708
91709 1999-04-20  Paul Eggert  <eggert@twinsun.com>
91710
91711         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
91712         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
91713         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
91714         jm_AC_TYPE_UNSIGNED_LONG_LONG.
91715         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
91716
91717         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
91718
91719 1999-04-20  Jim Meyering  <meyering@ascend.com>
91720
91721         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
91722         AC_REPLACE xstroull if necessary.  From Paul Eggert.
91723         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
91724
91725 1999-04-18  Jim Meyering  <meyering@ascend.com>
91726
91727         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
91728         * m4/jm-macros.m4: Use it.
91729
91730 1999-04-06  Jim Meyering  <meyering@ascend.com>
91731
91732         * m4/strftime.m4: Remove test for %f.
91733
91734 1999-03-29  Jim Meyering  <meyering@ascend.com>
91735
91736         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
91737         superset of the AC_TYPE_* checks in the textutils, fileutils,
91738         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
91739         AC_TYPE_PID_T.
91740
91741 1999-03-28  Jim Meyering  <meyering@ascend.com>
91742
91743         * m4/jm-macros.m4: Define GNU_PACKAGE here.
91744         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
91745         replaced e.g., in the *.sh files of the sh-utils.
91746
91747 1999-03-20  Jim Meyering  <meyering@ascend.com>
91748
91749         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
91750         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
91751         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
91752
91753 1999-03-19  Jim Meyering  <meyering@ascend.com>
91754
91755         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
91756
91757 1999-03-12  Jim Meyering  <meyering@ascend.com>
91758
91759         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
91760
91761 1999-03-07  Jim Meyering  <meyering@ascend.com>
91762
91763         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
91764         declared.
91765
91766 1999-02-17  Jim Meyering  <meyering@ascend.com>
91767
91768         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
91769         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
91770
91771 1999-02-07  Jim Meyering  <meyering@ascend.com>
91772
91773         * m4/group-member.m4: New file -- extracted from sh-utils'
91774         configure.in.
91775
91776         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
91777         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
91778
91779 1999-02-06  Jim Meyering  <meyering@ascend.com>
91780
91781         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
91782         * m4/fnmatch.m4: Likewise.
91783         * m4/getgroups.m4: Likewise.
91784         * m4/lstat.m4: Likewise.
91785         * m4/malloc.m4: Likewise.
91786         * m4/putenv.m4: Likewise.
91787         * m4/realloc.m4: Likewise.
91788         * m4/regex.m4: Likewise.
91789         * m4/stat.m4: Likewise.
91790         * m4/strftime.m4: Likewise.
91791         Suggestion from Alain Magloire.
91792
91793         * m4/chown.m4: Use `.$ac_objext', not `.o'.
91794         * m4/fnmatch.m4: Likewise.
91795         * m4/getgroups.m4: Likewise.
91796         * m4/getline.m4: Likewise.
91797         * m4/lstat.m4: Likewise.
91798         * m4/malloc.m4: Likewise.
91799         * m4/memcmp.m4: Likewise.
91800         * m4/putenv.m4: Likewise.
91801         * m4/realloc.m4: Likewise.
91802         * m4/regex.m4: Likewise.
91803         * m4/stat.m4: Likewise.
91804         * m4/strftime.m4: Likewise.
91805         Suggestion from Alain Magloire.
91806
91807         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
91808         an argument.
91809
91810         * m4/regex.m4: Add a run-time Test for proper operation of
91811         re_compile_pattern.
91812
91813 1999-01-31  Jim Meyering  <meyering@ascend.com>
91814
91815         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
91816
91817 1999-01-30  Jim Meyering  <meyering@ascend.com>
91818
91819         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
91820
91821         * m4/jm-mktime.m4: Make this a wrapper around the official
91822         AM_FUNC_MKTIME rather than my private copy, now that the official one
91823         is up to date.
91824         * m4/mktime.m4: Remove file.
91825
91826         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
91827         * m4/uptime.m4: Likewise.
91828         * m4/uintmax_t.m4: Likewise.
91829
91830 1999-01-28  Jim Meyering  <meyering@ascend.com>
91831
91832         * m4/jm-macros.m4: Use jm_AFS.
91833         * m4/afs.m4: New file (from fileutils' configure.in).
91834
91835         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
91836         * m4/chown.m4: Likewise.
91837         * m4/d-ino.m4: Likewise.
91838         * m4/d-type.m4: Likewise.
91839         * m4/fnmatch.m4: Likewise.
91840         * m4/getgroups.m4: Likewise.
91841         * m4/gettext.m4: Likewise.
91842         * m4/jm-mktime.m4: Likewise.
91843         * m4/jm-winsz2.m4: Likewise.
91844         * m4/lcmessage.m4: Likewise.
91845         * m4/ls-mntd-fs.m4: Likewise.
91846         * m4/malloc.m4: Likewise.
91847         * m4/memcmp.m4: Likewise.
91848         * m4/putenv.m4: Likewise.
91849         * m4/realloc.m4: Likewise.
91850         * m4/st_mtim.m4: Likewise.
91851         * m4/strftime.m4: Likewise.
91852
91853 1999-01-16  Jim Meyering  <meyering@ascend.com>
91854
91855         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
91856         (ARGMATCH_DIE_DECL): Define.
91857
91858 1999-01-12  Jim Meyering  <meyering@ascend.com>
91859
91860         * m4/Makefile.am.in: Rewrite to avoid using fmt.
91861         Reported by Lars Hecking.
91862
91863 1999-01-10  Jim Meyering  <meyering@ascend.com>
91864
91865         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
91866         gross kludge.
91867         * m4/inttypes_h.m4: Likewise.
91868         * m4/lstat.m4: Likewise.
91869         * m4/malloc.m4: Likewise.
91870         * m4/readdir.m4: Likewise.
91871         * m4/realloc.m4: Likewise.
91872         * m4/st_dm_mode.m4: Likewise.
91873         * m4/stat.m4: Likewise.
91874         * m4/utimbuf.m4: Likewise.
91875         * m4/utimes.m4: Likewise.
91876
91877         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
91878         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
91879         comments in config.h.in are meaningful.
91880
91881         * m4/jm-macros.m4: Require autoconf-2.13 here.
91882
91883         * m4/regex.m4: By default, don't use the included regex.c on systems
91884         with glibc 2.  Suggestion from Uli Drepper.
91885
91886 1999-01-02  Jim Meyering  <meyering@ascend.com>
91887
91888         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
91889
91890 1998-12-18  Jim Meyering  <meyering@ascend.com>
91891
91892         * m4/Makefile.am.in (Makefile.am): Simplify rule.
91893         Based on a suggestion from Lars Hecking.
91894
91895 1998-11-16  Paul Eggert  <eggert@twinsun.com>
91896
91897         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
91898
91899 1998-11-16  Jim Meyering  <meyering@ascend.com>
91900
91901         * m4/lfs.m4: Double-quote the `uname...` expression.
91902
91903 1998-11-14  Jim Meyering  <meyering@ascend.com>
91904
91905         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
91906         * m4/stat.m4: Likewise.
91907
91908 1998-11-03  Jim Meyering  <meyering@ascend.com>
91909
91910         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
91911         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
91912
91913 1998-10-18  Jim Meyering  <meyering@ascend.com>
91914
91915         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
91916
91917 1998-10-17  Jim Meyering  <meyering@ascend.com>
91918
91919         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
91920         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
91921         calls for those previously hard-coded headers.  Instead, take a new
91922         parameter.
91923         (jm_CHECK_DECLARATIONS): Reflect interface change.
91924         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
91925         (jm_CHECK_DECL_LOCALTIME_R): New macro.
91926
91927         * m4/mktime.m4: Test for spring-forward gap before long-running test.
91928
91929 1998-10-14  Jim Meyering  <meyering@ascend.com>
91930
91931         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
91932         instead of "TZ=America/Vancouver".  From Paul Eggert.
91933
91934 1998-10-11  Jim Meyering  <meyering@ascend.com>
91935
91936         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
91937         This adds a test for a recently added compatibility fix for mktime.c.
91938         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
91939
91940 1998-09-27  Jim Meyering  <meyering@ascend.com>
91941
91942         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
91943
91944         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
91945         ../configure.in, including a change from Gordon Matzigkeit to allow
91946         cross-compiling for the Hurd.
91947
91948         * m4/glibc.m4: New file/macro to test for the GNU C Library
91949         versions 1 and 2.  From Gordon Matzigkeit.
91950         Indent.
91951
91952 1998-09-21  Jim Meyering  <meyering@ascend.com>
91953
91954         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
91955
91956 1998-08-18  Paul Eggert  <eggert@twinsun.com>
91957
91958         Port nanosecond-resolution times to UnixWare 2.1.2 and
91959         pedantic Solaris 2.6.
91960
91961         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
91962         AC_STRUCT_ST_MTIM.
91963         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
91964         Generate name of ns member, instead of just 1 or undef.
91965         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
91966
91967 1998-08-15  Jim Meyering  <meyering@ascend.com>
91968
91969         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
91970         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
91971         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
91972         instead of jm_TYPE_SSIZE_T.
91973
91974 1998-08-12  Jim Meyering  <meyering@ascend.com>
91975
91976         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
91977
91978 1998-08-02  Jim Meyering  <meyering@ascend.com>
91979
91980         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
91981         in acconfig.h manually.
91982
91983 1998-07-31  Paul Eggert  <eggert@twinsun.com>
91984
91985         * m4/st_mtim.m4: New file.
91986
91987 1998-07-28  Jim Meyering  <meyering@ascend.com>
91988
91989         * m4/utimes.m4: Undef stat.
91990
91991 1998-07-25  Jim Meyering  <meyering@ascend.com>
91992
91993         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
91994         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
91995
91996 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
91997
91998         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
91999         uid and gid actually remain unchanged.
92000
92001 1998-07-07  Jim Meyering  <meyering@ascend.com>
92002
92003         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
92004
92005 1998-07-04  Jim Meyering  <meyering@ascend.com>
92006
92007         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
92008         to prove that this macro can be used in packages without regex.c.
92009
92010 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
92011
92012         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
92013         is to be used.
92014
92015 1998-07-03  Jim Meyering  <meyering@ascend.com>
92016
92017         * m4/gettext.m4: Add -lintl if it's found to be necessary.
92018
92019         * m4/gettext.m4: New file -- from gettext-0.10.35.
92020         * m4/lcmessage.m4: Likewise.
92021         * m4/progtest.m4: Likewise.
92022
92023         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
92024         * m4/jm-macros.m4: Require the new macro.
92025
92026 1998-06-29  Jim Meyering  <meyering@ascend.com>
92027
92028         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
92029         for the definition of NGROUPS (used in a system header included
92030         by sys/mount.h).
92031
92032 1998-06-28  Jim Meyering  <meyering@ascend.com>
92033
92034         * m4/ls-mntd-fs.m4: New file.
92035         * m4/fstypename.m4: New file.
92036
92037         * m4/jm-macros.m4: Require the new macro.
92038         * m4/jm-glibc-io.m4: New file.
92039
92040 1998-05-19  Jim Meyering  <meyering@ascend.com>
92041
92042         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
92043         * m4/lchown.m4: New file.
92044
92045         * m4/Makefile.am.in: New file.
92046         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
92047
92048 1998-05-14  Jim Meyering  <meyering@ascend.com>
92049
92050         * m4/Makefile.am (EXTRA_DIST): Add them.
92051         * m4/jm-macros.m4: New file.
92052         * m4/utimbuf.m4: New file.
92053
92054 1998-05-12  Jim Meyering  <meyering@ascend.com>
92055
92056         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
92057
92058 1998-05-11  Jim Meyering  <meyering@ascend.com>
92059
92060         * m4/isc-posix.m4: New file.
92061
92062 1998-05-10  Jim Meyering  <meyering@ascend.com>
92063
92064         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
92065
92066 1998-05-09  Jim Meyering  <meyering@ascend.com>
92067
92068         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
92069         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
92070         with automake.
92071
92072         * m4/ssize_t.m4: New file.
92073         * m4/mktime.m4: Remove file -- the new automake has this now.
92074
92075 1998-04-26  Jim Meyering  <meyering@ascend.com>
92076
92077         * m4/assert.m4: New file.
92078         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
92079
92080 1998-04-05  Jim Meyering  <meyering@ascend.com>
92081
92082         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
92083         (jm_PREREQ): Use it here.
92084
92085 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
92086
92087         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
92088         in acconfig.h.
92089
92090 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
92091
92092         * m4/prereq.m4: New file.
92093         * m4/error.m4: New file.
92094         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
92095
92096 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
92097
92098         * m4/getline.m4: Don't set am_cv_func_working_getline before the
92099         cache-check for the same variable -- that defeated the purpose of
92100         the test; the test program was never run.  This was a problem only
92101         on systems with losing getline functions -- HP-UX 10.20 is one.
92102         Reported by Bjorn Helgaas.
92103
92104 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
92105
92106         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
92107
92108 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
92109
92110         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
92111
92112         * m4/const.m4: New file.  Use an initializer in this declaration
92113         typedef int charset[2]; const charset x;
92114         Reported by Bob Glickstein.
92115
92116 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
92117
92118         * m4/chown.m4: Fix reversed types on -1 args to chown.
92119         From Kaveh Ghazi.
92120
92121 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
92122
92123         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
92124         Add lseek and memchr.
92125
92126         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
92127         T.E.Dickey <dickey@clark.net> said that some older preprocessors
92128         have a 20-character limit on names.
92129
92130 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
92131
92132         * m4/inttypes_h.m4: New file.
92133         * m4/uintmax_t.m4: New file.
92134         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
92135
92136
92137         -----
92138
92139         Local Variables:
92140         coding: utf-8
92141         End:
92142
92143         Copyright (C) 1997-2012 Free Software Foundation, Inc.
92144
92145         Copying and distribution of this file, with or without
92146         modification, are permitted provided the copyright notice
92147         and this notice are preserved.