23f193e8cf76590d7fa829e8c7d1a129bd8d9500
[gnulib.git] / ChangeLog
1 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2
3         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
4         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
5         don't pass arguments to AC_OUTPUT.
6
7 2009-09-02  Bruno Haible  <bruno@clisp.org>
8
9         * modules/mkdtemp (License): Relicense under LGPLv2+.
10         Reported by Paolo Bonzini.
11
12 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13
14         Replace uses of obsolete autoconf macros in Jim's modules.
15         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
16         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
17         can evoke a warning from autoconf when run with -Wobsolete
18         enabled.  They were declared obsolete for good reasons (see
19         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
20         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
21         should not continue using the deprecated macros.
22         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
23         obsolete Autoconf macros with modern counterparts.
24         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25         * m4/dos.m4 (gl_AC_DOS): Likewise.
26         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
27         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
28         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
29         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
30         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
31         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
32         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
33         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
34         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
35         Likewise.
36         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
37         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
38         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
39         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
40         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
41         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
42
43 2009-09-01  Eric Blake  <ebb9@byu.net>
44
45         fchdir: fix off-by-one bug in previous patch
46         * lib/fchdir.c (rpl_fstat): Use correct bounds.
47         (_gl_unregister_fd): Delete useless if.
48
49 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
50
51         maint.mk: sort the list of syntax-check rules
52         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
53         easier to get a sense of progress when the rules are run sequentially
54         and take a long time.
55
56 2009-09-01  Simon Josefsson  <simon@josefsson.org>
57
58         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
59         * modules/netinet_in: Likewise.
60         * modules/sys_file: Likewise.
61         * modules/sys_ioctl: Likewise.
62         * modules/sys_select: Likewise.
63         * modules/sys_socket: Likewise.
64         * modules/sys_stat: Likewise.
65         * modules/sys_time: Likewise.
66         * modules/sys_times: Likewise.
67         * modules/sys_utsname: Likewise.
68         * modules/sys_wait: Likewise.
69
70 2009-09-01  Jim Meyering  <meyering@redhat.com>
71
72         fts: help ensure that return values are not ignored
73         * lib/fts_.h (__GNUC_PREREQ): Define.
74         (__attribute_warn_unused_result__): Define.
75         (fts_children, fts_close, fts_open, fts_read): Declare with
76         __attribute_warn_unused_result__.
77
78         fts: fts_close now fails also when closing a dir file descriptor fails
79         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
80         and propagate to caller, along with errno.
81
82         announce-gen: correct formatting in --help output
83         * build-aux/announce-gen (usage): Move the one-line description in
84         --help output "up", to where it belongs, just after Usage:.
85
86 2009-08-31  Eric Blake  <ebb9@byu.net>
87
88         fchdir: port to mingw
89         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
90         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
91         opened, then use a substitute.
92         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
93         replacement.
94         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
95         (_gl_register_fd): No need to check stat if open already filters
96         all directories.
97         (fchdir): Fix error condition to match POSIX.
98         * modules/fchdir (Depends-on): Add sys_stat.
99         * doc/posix-functions/open.texi (open): Document the limitation.
100         * modules/fchdir-tests: New file.
101         * tests/test-fchdir.c: Likewise.
102
103         canonicalize: allow cross-testing from cygwin to mingw
104         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
105         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
106         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
107         Likewise.
108         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
109         target does not support symlinks.
110         * tests/test-canonicalize-lgpl.sh: Likewise.
111
112         chown: avoid compilation warning on mingw
113         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
114         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
115         mingw.
116         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
117         * modules/chown (Depends-on): Add errno.
118
119 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
120
121         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
122         command.
123
124 2009-08-31  Jim Meyering  <meyering@redhat.com>
125
126         canonicalize: remove useless initialization
127         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
128         initialization of local, "end".
129
130 2009-08-30  Bruno Haible  <bruno@clisp.org>
131
132         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
133         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
134         ENOSYS.
135
136 2009-08-30  Bruno Haible  <bruno@clisp.org>
137
138         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
139         /usr/xpg4/bin/tr when it exists.
140         * tests/test-pipe-filter-gi1.sh: Likewise.
141
142 2009-08-30  Bruno Haible  <bruno@clisp.org>
143
144         Work around deficient /usr/bin/id program on Solaris.
145         * tests/test-file-has-acl.sh (ID): New variable.
146         * tests/test-set-mode-acl.sh (ID): Likewise.
147         * tests/test-copy-acl.sh (ID): Likewise.
148         * tests/test-copy-file.sh (ID): Likewise.
149
150 2009-08-30  Bruno Haible  <bruno@clisp.org>
151
152         New module 'xstriconveh'.
153         * lib/xstriconveh.h: New file.
154         * lib/xstriconveh.c: New file.
155         * modules/xstriconveh: New file.
156
157 2009-08-30  Bruno Haible  <bruno@clisp.org>
158
159         Make it easier to use mem_cd_iconveh.
160         * lib/striconveh.h (iconveh_t): New type.
161         (iconveh_open, iconveh_close): New declarations.
162         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
163         with a single 'const iconveh_t *' argument.
164         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
165         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
166         with a single 'const iconveh_t *' argument.
167         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
168         * tests/test-striconveh.c (main): Update.
169         * NEWS: Mention the change.
170
171 2009-08-30  Bruno Haible  <bruno@clisp.org>
172
173         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
174         problem.
175
176 2009-08-30  Bruno Haible  <bruno@clisp.org>
177
178         Work around iconv_open problem on Solaris.
179         * lib/iconv_open-solaris.gperf: New file.
180         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
181         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
182         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
183         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
184         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
185         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
186
187 2009-08-29  Jim Meyering  <meyering@redhat.com>
188
189         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
190         * top/maint.mk (cvs-check): Remove target; it was just an alias
191         to the better-named vc-diff-check.
192         (maintainer-distcheck): Remove rule.  It was used only from
193         the (alpha/beta/major) target, and all of its commands but one
194         were coreutils-specific.
195         (vc-dist): Remove rule.
196         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
197         Run vc-diff-check, not vc-dist.
198         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
199
200 2009-08-27  Bruno Haible  <bruno@clisp.org>
201
202         * tests/test-bitrotate.c (main): Remove test that uses a shift count
203         of 0.
204
205 2009-08-27  Bruno Haible  <bruno@clisp.org>
206
207         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
208         compilers.
209         * doc/func.texi: Document the SunPRO C bug.
210
211 2009-08-27  Bruno Haible  <bruno@clisp.org>
212
213         Fix link error on Solaris.
214         * tests/test-parse-duration.c (xstrdup): Remove function.
215
216 2009-08-26  Pádraig Brady  <P@draigbrady.com>
217
218         ignore-value: handle pointer types, too
219         * lib/ignore-value.h (__attribute__): Remove definition.
220         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
221         of a more concise and more-often effective "(void) i" statement.
222         (ignore_ptr): New function to suppress warnings from functions that
223         return pointers, and to make it explicit that one function doesn't
224         handle all cases.
225
226 2009-08-25  Bruno Haible  <bruno@clisp.org>
227
228         dup2: work around a Linux bug.
229         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
230         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
231         * doc/posix-functions/dup2.texi: Mention the Linux bug.
232         Reported by Simon Josefsson.
233
234 2009-08-25  Jim Meyering  <meyering@redhat.com>
235
236         libguestfs uses gnulib
237         * users.txt: Add libguestfs.
238
239 2009-08-24  Eric Blake  <ebb9@byu.net>
240
241         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
242         * lib/pipe2.c (includes): Add binary-io.h.
243         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
244
245 2009-08-24  Bruno Haible  <bruno@clisp.org>
246
247         Tolerate declared but missing accept4 syscall.
248         * lib/accept4.c (accept4): Invoke original accept4 function first, if
249         available.
250         * lib/sys_socket.in.h (accept4): If the function is already present,
251         override it.
252         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
253         * modules/accept4 (Makefile.am): Compile accept4.c always.
254         Reported by Paolo Bonzini and Eric Blake.
255
256 2009-08-23  Bruno Haible  <bruno@clisp.org>
257
258         New module 'accept4'.
259         * lib/sys_socket.in.h (accept4): New declaration.
260         * lib/accept4.c: New file.
261         * m4/accept4.m4: New file.
262         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
263         GNULIB_ACCEPT4, HAVE_ACCEPT4.
264         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
265         HAVE_ACCEPT4.
266         * modules/accept4: New file.
267         * doc/glibc-functions/accept4.texi: Mention the new module.
268
269 2009-08-24  Jim Meyering  <meyering@redhat.com>
270
271         progname: also set global program_invocation_name, when possible
272         Before this change, a libtool-enabled program that calls glibc's
273         error function would report the program name as
274         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
275         * modules/progname (configure.ac): Check for a declaration of
276         program_invocation_name.
277         * lib/progname.c:  Include <errno.h>.
278         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
279         Set program_invocation_name.
280
281 2009-08-23  Bruno Haible  <bruno@clisp.org>
282
283         * lib/dup3.c: Include <string.h>.
284
285 2009-08-23  Bruno Haible  <bruno@clisp.org>
286
287         * lib/dup3.c (dup3): Test only once whether the system actually exists.
288         * lib/pipe2.c (pipe2): Likewise.
289         Suggested by Eric Blake.
290
291 2009-08-23  Bruno Haible  <bruno@clisp.org>
292
293         Tolerate declared but missing dup3 syscall.
294         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
295         * lib/unistd.in.h (dup3): If the function is already present,
296         override it.
297         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
298         * modules/dup3 (Makefile.am): Compile dup3.c always.
299         Reported by Paolo Bonzini.
300
301 2009-08-23  Bruno Haible  <bruno@clisp.org>
302
303         Tolerate declared but missing pipe2 syscall.
304         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
305         available.
306         * lib/unistd.in.h (pipe2): If the function is already present,
307         override it.
308         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
309         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
310         Reported by Paolo Bonzini.
311
312 2009-08-23  Bruno Haible  <bruno@clisp.org>
313
314         * lib/pipe2.c (pipe2): Move #ifs inside function.
315
316 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
317
318         quotearg: document limitations of quote_these_too
319         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
320         those limitations are created.
321         * lib/quotearg.h (set_char_quoting): Document that digits and
322         letters that are special after backslash are not permitted.
323         (quotearg_char): Cross-reference set_char_quoting documentation.
324
325 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
326
327         quotearg: implement custom_quoting_style
328         * lib/quotearg.c: (struct quoting_options): Add left_quote and
329         right_quote fields.
330         (set_custom_quoting): New public function.
331         (quotearg_buffer_restyled): Add left_quote and right_quote
332         arguments, handle them very much like locale quoting, and update
333         all uses.
334         (quotearg_n_custom): New public function.
335         (quotearg_n_custom_mem): New public function.
336         (quotearg_custom): New public function.
337         (quotearg_custom_mem): New public function.
338         * lib/quotearg.h: Prototype and document new public functions.
339         (enum quoting_style): For escape_quoting_style and
340         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
341         ignored even though they're otherwise like c_quoting_style.
342         Add custom_quoting_style member and document with comparison to
343         clocale_quoting_style.
344         * tests/test-quotearg.c (custom_quotes): New array.
345         (custom_results): New array.
346         (main): Extend to test custom quoting.
347
348 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
349
350         quotearg: fix right quote escaping when it's in quote_these_too
351         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
352         quote, be sure to prepend only one backslash.
353         * tests/test-quotearg.c (use_quote_double_quotes): New function.
354         (main): Test it.
355
356 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
357
358         quotearg-tests: test escaping of embedded locale quotes
359         * tests/test-quotearg.c (struct result_strings): Add member for
360         new input.
361         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
362         (inputs): Add new input.
363         (results_g): Add expected results.
364         (flag_results): Likewise.
365         (locale_results): Likewise.
366         (compare_strings): Check those.
367
368 2009-08-23  Bruno Haible  <bruno@clisp.org>
369
370         Tests for module 'dup3'.
371         * modules/dup3-tests: New file.
372         * tests/test-dup3.c: New file.
373
374         New module 'dup3'.
375         * lib/unistd.in.h (dup3): New declaration.
376         * lib/dup3.c: New file.
377         * m4/dup3.m4: New file.
378         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
379         HAVE_DUP3.
380         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
381         * modules/dup3: New file.
382         * doc/glibc-functions/dup3.texi: Mention the new module.
383
384 2009-08-23  Bruno Haible  <bruno@clisp.org>
385
386         Tweak the dup2 test.
387         * tests/test-dup2.c (main): Create the test file empty. Verify that an
388         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
389         the test file is still empty. Fix argument order of lseek.
390
391 2009-08-23  Bruno Haible  <bruno@clisp.org>
392
393         Avoid test link errors when the modules getopt-gnu, gettext are used.
394         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
395         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
396
397 2009-08-23  Bruno Haible  <bruno@clisp.org>
398
399         Fix getdtablesize() on mingw.
400         * lib/getdtablesize.c (getdtablesize): Implement differently.
401         * lib/unistd.in.h (getdtablesize): Improve comment.
402
403 2009-08-23  Bruno Haible  <bruno@clisp.org>
404
405         New module 'mkostemp'.
406         Based on Ulrich Drepper's 2007-08-10 change in glibc.
407         * lib/stdlib.in.h (mksotemp): New declaration.
408         * lib/mkostemp.c: New file, from glibc with modifications.
409         * lib/tempname.h (GT_FILE): Remove outdated comment.
410         (gen_tempname): Add flags argument.
411         * lib/tempname.c (__GT_BIGFILE): Remove macro.
412         (__GT_FILE): Map to 1.
413         (small_open, large_open): Remove macros.
414         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
415         * lib/mkstemp.c (mkstemp): Update.
416         * lib/mkdtemp.c (mkdtemp): Likewise.
417         * m4/mkostemp.m4: New file.
418         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
419         HAVE_MKOSTEMP.
420         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
421         HAVE_MKOSTEMP.
422         * modules/mkostemp: New file, based on modules/mkstemp.
423         * doc/glibc-functions/mkostemp.texi: Mention the new module.
424         * NEWS: Mention the change.
425
426 2009-08-23  Bruno Haible  <bruno@clisp.org>
427
428         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
429         Reported by Eric Blake.
430
431 2009-08-23  Bruno Haible  <bruno@clisp.org>
432
433         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
434         Reported by Eric Blake.
435
436 2009-08-23  Bruno Haible  <bruno@clisp.org>
437
438         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
439         * modules/pipe2 (Depends-on): Likewise.
440
441 2009-08-23  Eric Blake  <ebb9@byu.net>
442
443         fcntl-h: add O_TTY_INIT support
444         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
445         * tests/test-fcntl-h.c (o): Test it.
446         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
447
448         fcntl-h: rename from fcntl, in preparation for fcntl(2)
449         * modules/fcntl: Move <fcntl.h> header replacement...
450         * modules/fcntl-h: ...to new name, so as not to collide with
451         like-named function.
452         * tests/test-fcntl.c: Rename...
453         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
454         * modules/fcntl-tests: Rename...
455         * modules/fcntl-h-tests: ...to this.  Update test file name.
456         * modules/chdir-long (Depends-on): Update clients.
457         * modules/chdir-safer (Depends-on): Likewise.
458         * modules/fcntl-safer (Depends-on): Likewise.
459         * modules/fts (Depends-on): Likewise.
460         * modules/mkancesdirs (Depends-on): Likewise.
461         * modules/mkdir-p (Depends-on): Likewise.
462         * modules/open (Depends-on): Likewise.
463         * modules/savewd (Depends-on): Likewise.
464         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
465         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
466
467 2009-08-22  Bruno Haible  <bruno@clisp.org>
468
469         * modules/binary-io (License): Relicense under LGPL.
470         * modules/pipe2 (License): Likewise.
471
472 2009-08-22  Bruno Haible  <bruno@clisp.org>
473
474         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
475         return value.
476         * lib/pipe-filter-gi.c (filter_init): Likewise.
477         Reported by Eric Blake.
478
479 2009-08-22  Bruno Haible  <bruno@clisp.org>
480
481         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
482         * modules/pipe (Depends-on): Add pipe2.
483
484 2009-08-22  Bruno Haible  <bruno@clisp.org>
485
486         Tests for module 'pipe2'.
487         * modules/pipe2-tests: New file.
488         * tests/test-pipe2.c: New file.
489
490         New module 'pipe2'.
491         * lib/unistd.in.h (pipe2): New declaration.
492         * lib/pipe2.c: New file.
493         * m4/pipe2.m4: New file.
494         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
495         HAVE_PIPE2.
496         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
497         * modules/pipe2: New file.
498         * doc/glibc-functions/pipe2.texi: Mention the new module.
499
500 2009-08-22  Bruno Haible  <bruno@clisp.org>
501
502         Reference some new glibc functions.
503         * doc/glibc-functions/accept4.texi: New file.
504         * doc/glibc-functions/dup3.texi: New file.
505         * doc/glibc-functions/mkostemp.texi: New file.
506         * doc/glibc-functions/pipe2.texi: New file.
507         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
508         (Glibc sys/socket.h): Refer to accept4.
509         (Glibc unistd.h): Refer to dup3, pipe2.
510         Reported by Eric Blake.
511
512 2009-08-22  Jim Meyering  <meyering@redhat.com>
513             Bruno Haible  <bruno@clisp.org>
514
515         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
516         This makes it so packages using automake-1.11's silent-rules option
517         can print e.g., a single "GEN    configmake.h" line, rather than
518         the 30+ statements that perform the job.  If you want to see the
519         actual commands, you can still run "make V=1".
520         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
521         so that make output is abbreviated when those variables are defined
522         appropriately.
523         * modules/argz: Likewise.
524         * modules/arpa_inet: Likewise.
525         * modules/byteswap: Likewise.
526         * modules/configmake: Likewise.
527         * modules/dirent: Likewise.
528         * modules/errno: Likewise.
529         * modules/fcntl: Likewise.
530         * modules/float: Likewise.
531         * modules/fnmatch: Likewise.
532         * modules/getopt-posix: Likewise.
533         * modules/glob: Likewise.
534         * modules/iconv_open: Likewise.
535         * modules/inttypes: Likewise.
536         * modules/localcharset: Likewise.
537         * modules/locale: Likewise.
538         * modules/math: Likewise.
539         * modules/netdb: Likewise.
540         * modules/netinet_in: Likewise.
541         * modules/poll: Likewise.
542         * modules/posix_spawnp-tests: Likewise.
543         * modules/sched: Likewise.
544         * modules/search: Likewise.
545         * modules/selinux-h: Likewise.
546         * modules/signal: Likewise.
547         * modules/spawn: Likewise.
548         * modules/stdarg: Likewise.
549         * modules/stdbool: Likewise.
550         * modules/stddef: Likewise.
551         * modules/stdint: Likewise.
552         * modules/stdio: Likewise.
553         * modules/stdlib: Likewise.
554         * modules/string: Likewise.
555         * modules/strings: Likewise.
556         * modules/sys_file: Likewise.
557         * modules/sys_ioctl: Likewise.
558         * modules/sys_select: Likewise.
559         * modules/sys_socket: Likewise.
560         * modules/sys_stat: Likewise.
561         * modules/sys_time: Likewise.
562         * modules/sys_times: Likewise.
563         * modules/sys_utsname: Likewise.
564         * modules/sys_wait: Likewise.
565         * modules/sysexits: Likewise.
566         * modules/time: Likewise.
567         * modules/unistd: Likewise.
568         * modules/wchar: Likewise.
569         * modules/wctype: Likewise.
570
571 2009-08-22  Jim Meyering  <meyering@redhat.com>
572
573         announce-gen: detect write failure
574         * build-aux/announce-gen: Add Coda at end.
575         Remove equivalent-but-more-verbose block at top.
576
577 2009-08-19  Akim Demaille  <demaille@gostai.com>
578
579         bootstrap: --help to stdout.
580         * bootstrap (usage): Don't send --help to stderr.
581         Use a here doc instead of a long string.
582
583 2009-08-21  Eric Blake  <ebb9@byu.net>
584
585         test-popen-safer: split from test-popen
586         * tests/test-popen.c (main): Move...
587         * tests/test-popen.h: ...into new file.
588         * tests/test-popen-safer2.c: New file.
589         * modules/popen-tests (Files): Add test-popen.h.
590         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
591         Suggested by Bruno Haible.
592
593         test-fcntl-safer: split from test-open
594         * tests/test-open.c (main): Move...
595         * tests/test-open.h: ...into new file.
596         * tests/test-fcntl-safer.c: New file.
597         * modules/open-tests (Files): Add test-open.h.
598         * modules/fcntl-safer-tests: New file.
599         Suggested by Bruno Haible.
600
601         test-fopen-safer: split from test-fopen
602         * tests/test-fopen.c (main): Move...
603         * tests/test-fopen.h: ...into new file.
604         * tests/test-fopen-safer.c: New file.
605         * modules/fopen-tests (Files): Add test-fopen.h.
606         * modules/fopen-safer-tests: New file.
607         Suggested by Bruno Haible.
608
609 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
610
611         popen-safer: test O_CLOEXEC at run-time.
612         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
613
614 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
615
616         fcntl: move more flags to the header
617         * lib/cloexec.c: Do not define FD_CLOEXEC here.
618         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
619         * lib/fcntl.in.h: Do both things here.
620
621 2009-08-21  Jim Meyering  <meyering@redhat.com>
622
623         consistently remove $@-t before redirecting to it
624         * modules/argz: Remove $@-t and $@ before redirecting to the former.
625         * modules/alloca-opt: Likewise.
626         * modules/byteswap: Likewise.
627         * modules/fnmatch: Likewise.
628         * modules/getopt-posix: Likewise.
629         * modules/glob: Likewise.
630         * modules/poll: Likewise.
631         * modules/posix_spawnp-tests: Likewise.
632         * modules/sys_socket: Likewise.
633         * modules/sysexits: Likewise.
634
635 2009-08-21  Eric Blake  <ebb9@byu.net>
636
637         popen: simplify access to original popen
638         * lib/popen.c (rpl_popen): No need to worry about popen being a
639         macro.
640         Reported by Bruno Haible.
641
642 2009-08-20  Eric Blake  <ebb9@byu.net>
643
644         build: avoid some compiler warnings
645         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
646         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
647         type.
648         (new_exclude_segment, excluded_file_pattern_p)
649         (excluded_file_name_p): Reduce scope.
650         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
651         old-style declaration.
652
653 2009-08-20  Simon Josefsson  <simon@josefsson.org>
654
655         * tests/test-exclude1.sh: Handle Windows EOL.
656         * tests/test-exclude2.sh: Likewise.
657         * tests/test-exclude3.sh: Likewise.
658         * tests/test-exclude4.sh: Likewise.
659         * tests/test-exclude5.sh: Likewise.
660         * tests/test-exclude6.sh: Likewise.
661         * tests/test-exclude7.sh: Likewise.
662
663 2009-08-19  Akim Demaille  <demaille@gostai.com>
664
665         bootstrap: find sha1sum when named gsha1sum.
666         * bootstrap (find_tool): New.
667         ($SHA1SUM): New.
668         Use it.
669
670 2009-08-20  Jim Meyering  <meyering@redhat.com>
671
672         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
673         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
674         expression that converts "." in a file name to "\." in the resulting
675         regexp.  Start with a dummy statement, so that prior shell variable
676         definitions are expanded portably.  Reported by Simon Josefsson.
677
678 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
679
680         Fix polling for writeability of a screen buffer.
681         * lib/poll.c: Distinguish input and screen buffers for the
682         Win32 implementation.
683         * lib/select.c: Likewise.
684
685 2009-08-19  Eric Blake  <ebb9@byu.net>
686
687         popen-safer: prevent popen from clobbering std descriptors
688         * modules/popen-safer: New file.
689         * lib/popen-safer.c: Likewise.
690         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
691         * lib/stdio--.h (popen): Provide override.
692         * lib/stdio-safer.h (popen_safer): Provide declaration.
693         * tests/test-popen.c (includes): Partially test this.
694         * modules/popen-safer-tests: New file, for more tests.
695         * tests/test-popen-safer.c: Likewise.
696         * MODULES.html.sh (file stream based Input/Output): Mention it.
697
698         tests: test some of the *-safer modules
699         * modules/fopen-safer (Depends-on): Add fopen.
700         * modules/fcntl-safer (Depends-on): Add fcntl.
701         * modules/stdlib-safer (Depends-on): Add stdlib.
702         (configure.ac): Set indicator.
703         * modules/unistd-safer (configure.ac): Likewise.
704         * modules/tmpfile-safer (configure.ac): Likewise.
705         (Depends-on): Add tmpfile.
706         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
707         active.
708         * tests/test-fopen.c (includes): Test safer versions when they are
709         in use.
710         * tests/test-open.c (includes): Likewise.
711
712         popen: fix cygwin 1.5 bug when stdin closed
713         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
714         * modules/popen: New file.
715         * modules/popen-tests: Likewise.
716         * tests/test-popen.c: Likewise.
717         * m4/popen.m4: Likewise.
718         * lib/popen.c: Likewise.
719         * lib/stdio.in.h (popen): New declaration.
720         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
721         * modules/stdio (Makefile.am): Likewise.
722         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
723
724 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
725
726         maint.mk: give full control over update-copyright exclusions
727         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
728         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
729         (update-copyright): Don't force inclusion of top-level
730         ChangeLog.  Don't force exclusion of all COPYING files, but make
731         them the default exclusion instead.
732
733 2009-08-16  Bruno Haible  <bruno@clisp.org>
734
735         Fix test failures on Solaris 10.
736         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
737         tests when Solaris iconv() is used.
738         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
739         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
740         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
741         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
742         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
743
744 2009-08-16  Bruno Haible  <bruno@clisp.org>
745
746         Fix test failures on Solaris 10.
747         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
748         'tr' program and pass it as first argument.
749         * tests/test-pipe-filter-gi1.sh: Likewise.
750         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
751         program as first argument.
752         * tests/test-pipe-filter-gi1.c (main): Likewise.
753
754 2009-08-16  Eric Blake  <ebb9@byu.net>
755
756         fpurge: fix previous commits
757         * modules/fpurge (Makefile.am): Make replacement conditional,
758         partially reverting 2007-04-29 change; missed in previous
759         attempt.
760         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
761         is missing.
762
763 2009-08-16  Bruno Haible  <bruno@clisp.org>
764
765         Clarify fpurge's effect on the file position.
766         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
767         * tests/test-fpurge.c (main): Make a second pass for checking the file
768         position.
769
770 2009-08-16  Bruno Haible  <bruno@clisp.org>
771
772         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
773         declaration of fpurge is missing.
774         * tests/test-fpurge.c (main): Check that the file has not more contents
775         than expected. Close the file before removing it.
776
777 2009-08-15  Eric Blake  <ebb9@byu.net>
778
779         fpurge: don't wrap working cygwin implementation
780         * lib/fpurge.c (fpurge): Fix comment typo.
781         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
782         1.7 to avoid replacement.
783         * tests/test-fpurge.c (main): Enhance test.
784
785 2009-08-15  Eric Blake  <ebb9@byu.net>
786         and Jim Meyering  <meyering@redhat.com>
787
788         test-update-copyright: skip if perl is insufficient
789         * tests/test-update-copyright.sh: Failure to run maintainer tool
790         should not cause testsuite failure on cygwin 1.5.
791
792 2009-08-14  Eric Blake  <ebb9@byu.net>
793
794         doc: mention more functions added in cygwin 1.7.0
795         * doc/posix-headers/limits.texi (limits.h): Update for recent
796         cygwin additions.
797         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
798         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
799         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
800         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
801         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
802
803 2009-08-14  Eric Blake  <ebb9@byu.net>
804
805         maint.mk: simplify update-copyright rule
806         * top/maint.mk (update-copyright-local): Delete, and document how
807         to do it in cfg.mk instead.
808         (update-copyright-exclude-regexp): Delete, and document how to do
809         it in .x-update-copyright instead.
810         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
811         exclude ChangeLog.
812
813 2009-08-14  Bruno Haible  <bruno@clisp.org>
814
815         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
816
817 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
818
819         maint.mk: support update-copyright-env
820         * top/maint.mk (update-copyright-env): Define place-holder.
821         (update-copyright): Expand $(update-copyright-env) before
822         invoking update-copyright.
823
824 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
825
826         update-copyright: implement forced reformatting
827         * build-aux/update-copyright: Implement and document
828         UPDATE_COPYRIGHT_FORCE.
829         * tests/test-update-copyright.sh: Test it.
830
831 2009-08-14  Eric Blake  <ebb9@byu.net>
832         and Bruno Haible  <bruno@clisp.org>
833
834         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
835         * tests/test-locale.c: Revert previous patch related to NULL.
836         * tests/test-stdio.c: Likewise.
837         * tests/test-stdlib.c: Likewise.
838         * tests/test-string.c: Likewise.
839         * tests/test-unistd.c: Likewise.
840         * modules/time-tests (Depends-on): Add verify.
841         * modules/wchar-tests (Depends-on): Likewise.
842         * tests/test-time.c: Test for NULL compliance.
843         * tests/test-wchar.c: Likewise.
844         * modules/locale (Depends-on): Add stddef.
845         * modules/stdio (Depends-on): Likewise.
846         * modules/stdlib (Depends-on): Likewise.
847         * modules/string (Depends-on): Likewise.
848         * modules/time (Depends-on): Likewise.
849         * modules/unistd (Depends-on): Likewise.
850         * modules/wchar (Depends-on): Likewise.
851         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
852         * lib/stdlib.in.h (includes): Likewise.
853         * lib/string.in.h (includes): Likewise.
854         * lib/time.in.h (includes): Likewise.
855         * lib/unistd.in.h (includes): Likewise.
856         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
857         replaced.
858         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
859         * m4/stddef_h.m4: New file.
860         * modules/stddef: Likewise.
861         * lib/stddef.in.h: Likewise.
862         * modules/stddef-tests: Likewise.
863         * tests/test-stddef.c: Likewise.
864         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
865         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
866         * doc/posix-headers/locale.texi (locale.h): Likewise.
867         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
868         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
869         * doc/posix-headers/string.texi (string.h): Likewise.
870         * doc/posix-headers/time.texi (time.h): Likewise.
871         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
872         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
873
874 2009-08-14  Eric Blake  <ebb9@byu.net>
875
876         doc: improve git diff of texinfo files
877         * .gitattributes: Add rule for *.texi files, with hint on how to
878         use it.
879         Copied from m4, and based on a report by Bruno Haible.
880
881 2009-08-14  Bruno Haible  <bruno@clisp.org>
882
883         Disable multithread support by default on Cygwin 1.5.x for real.
884         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
885
886 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
887
888         update-copyright: much ado about intervals
889         * build-aux/update-copyright: Implement and document
890         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
891         of copyright year intervals.
892         Also, document UPDATE_COPYRIGHT_YEAR.
893         * tests/test-update-copyright.sh: Test it.
894
895         update-copyright: convert 2-digit to 4-digit years
896         * build-aux/update-copyright: Implement and document.
897         * tests/test-update-copyright.sh: Update.
898
899 2009-08-14  Jim Meyering  <meyering@redhat.com>
900
901         test-exclude: avoid coreutils "make check" failure
902         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
903         just as in test-argmatch.c.
904
905 2009-08-13  Eric Blake  <ebb9@byu.net>
906
907         test-dup2: fix bad assumption
908         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
909         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
910
911         test-version-etc: fix CRLF portability issue
912         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
913         recognize \r.
914         * tests/test-argp-version-etc-1.sh: Likewise.
915
916         getopt: update client modules
917         * modules/argp (Depends-on): Use getopt-gnu.
918         * modules/git-merge-changelog (Depends-on): Likewise.
919         * modules/long-options (Depends-on): Likewise.
920         * modules/xstrtol (Depends-on): Likewise.
921
922 2009-08-13  Simon Josefsson  <simon@josefsson.org>
923
924         * tests/test-version-etc.sh: Don't fail on different
925         project/version.  Don't fail on CRLF differences.  Rewrite to use
926         multiple -e instead of multiple sed forks, suggested by Eric Blake
927         <ebb9@byu.net>.
928         * tests/test-argp-version-etc-1.sh: Likewise.
929
930 2009-08-13  Simon Josefsson  <simon@josefsson.org>
931
932         * tests/test-version-etc.sh: Don't fail on different
933         project/version.
934
935 2009-08-12  Bruno Haible  <bruno@clisp.org>
936
937         Tests for modules 'getopt-posix', 'getopt-gnu'.
938         * modules/getopt-posix-tests: New file.
939         * tests/test-getopt.c: New file.
940         * tests/test-getopt.h: New file.
941         * tests/test-getopt_long.h: New file.
942
943         New modules 'getopt-posix', 'getopt-gnu'.
944         * modules/getopt-gnu: New file, renamed from modules/getopt.
945         * modules/getopt-posix: New file.
946         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
947         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
948         (gl_GETOPT): Remove macro.
949         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
950         Disable the test against BSD systems that declare optreset. Test
951         against mingw bug. Test against lack of support of optional arguments
952         on many platforms.
953         * doc/glibc-headers/getopt.texi: Update module name and list of
954         relevant platforms.
955         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
956         'getopt-gnu' and more portability problems.
957         * NEWS: Mention the changes.
958
959 2009-08-12  Bruno Haible  <bruno@clisp.org>
960
961         Ensure that optarg etc. get declared by <unistd.h>.
962         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
963         AC_USE_SYSTEM_EXTENSIONS.
964         * modules/getopt (Depends-on): Add 'extensions'.
965
966 2009-08-12  Bruno Haible  <bruno@clisp.org>
967
968         Avoid test link errors.
969         * modules/pipe-filter-ii-tests (Makefile.am): Define
970         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
971         * modules/pipe-filter-gi-tests (Makefile.am): Define
972         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
973         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
974
975 2009-08-12  Bruno Haible  <bruno@clisp.org>
976
977         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
978         gl_GETOPT_SUBSTITUTE before.
979         (gl_GETOPT): Use it.
980         * m4/argp.m4 (gl_ARGP): Update.
981         Reported by Sergey Poznyakoff.
982
983         * m4/getopt.m4: Reorder macros.
984         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
985         (gl_GETOPT_SUBSTITUTE): Remove macro.
986
987 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
988
989         Minor improvement in gitlog-to-changelog
990
991         * build-aux/gitlog-to-changelog: New option `--format' makes
992         output format string configurable.
993
994 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
995
996         Optimize exclude: use hash tables for non-wildcard patterns.
997
998         * lib/exclude.c: Include hash.h and mbuiter.h
999         (struct exclude_pattern, exclude_segment): New data types.
1000         (struct exclude): Rewrite.
1001         (fnmatch_pattern_has_wildcards): New function.
1002         (new_exclude_segment, free_exclude_segment): New functions.
1003         (excluded_file_pattern_p, excluded_file_name_p): New functions.
1004         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
1005         * lib/exclude.h (is_fnmatch_pattern): New prototype.
1006         * modules/exclude: Depend on hash and mbuiter.
1007
1008         * modules/exclude-tests: New file.
1009         * tests/test-exclude.c: New file.
1010         * tests/test-exclude1.sh: New file.
1011         * tests/test-exclude2.sh: New file.
1012         * tests/test-exclude3.sh: New file.
1013         * tests/test-exclude4.sh: New file.
1014         * tests/test-exclude5.sh: New file.
1015         * tests/test-exclude6.sh: New file.
1016         * tests/test-exclude7.sh: New file.
1017
1018 2009-08-12  Bruno Haible  <bruno@clisp.org>
1019
1020         Ensure that getopt() gets declared by <unistd.h>.
1021         * lib/unistd.in.h: Conditionally include getopt.h.
1022         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
1023         Set GNULIB_UNISTD_H_GETOPT.
1024         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1025         GNULIB_UNISTD_H_GETOPT.
1026         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
1027
1028 2009-08-12  Bruno Haible  <bruno@clisp.org>
1029
1030         Clarify logic.
1031         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
1032         gl_replace_getopt instead of GETOPT_H.
1033
1034 2009-08-12  Bruno Haible  <bruno@clisp.org>
1035
1036         * m4/getopt.m4: Add comments.
1037
1038 2009-08-12  Bruno Haible  <bruno@clisp.org>
1039
1040         Disable multithread support by default on Cygwin 1.5.x.
1041         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
1042         set gl_use_threads=no if not specified otherwise.
1043
1044 2009-08-11  Bruno Haible  <bruno@clisp.org>
1045
1046         Avoid compilation error on NetBSD 5.0.
1047         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
1048         * tests/test-stdio.c: Likewise.
1049         * tests/test-stdlib.c: Likewise.
1050         * tests/test-string.c: Likewise.
1051         * tests/test-unistd.c: Likewise.
1052         Reported by Greg Troxel <gdt@ir.bbn.com>
1053         at <https://savannah.gnu.org/support/?106973>.
1054
1055 2009-08-11  Bruno Haible  <bruno@clisp.org>
1056
1057         * modules/dup2-tests (Depends-on): Remove close.
1058
1059         Undo 2009-07-19 commit.
1060         * modules/acl-tests (Depends-on): Remove close.
1061         * modules/binary-io-tests (Depends-on): Likewise.
1062         * modules/closein-tests (Depends-on): Likewise.
1063         * modules/flock-tests (Depends-on): Likewise.
1064         * modules/fsync-tests (Depends-on): Likewise.
1065         * modules/lseek-tests (Depends-on): Likewise.
1066         * modules/pipe-tests (Depends-on): Likewise.
1067         * modules/posix_spawn-tests (Depends-on): Likewise.
1068         * modules/posix_spawnp-tests (Depends-on): Likewise.
1069         * modules/stat-time-tests (Depends-on): Likewise.
1070         * modules/yesno-tests (Depends-on): Likewise.
1071
1072 2009-08-10  Bruno Haible  <bruno@clisp.org>
1073
1074         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
1075
1076 2009-08-10  Bruno Haible  <bruno@clisp.org>
1077
1078         Fix a gcc warning.
1079         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
1080
1081 2009-08-10  Bruno Haible  <bruno@clisp.org>
1082
1083         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
1084         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
1085         not only the first time.
1086         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
1087         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
1088         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
1089         is 1, not only the the first time.
1090
1091 2009-08-10  Bruno Haible  <bruno@clisp.org>
1092
1093         Make it possible to use module 'gethostname' without module 'close'.
1094         * lib/unistd.in.h (close): Evoke a link error only if
1095         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
1096         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1097         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
1098         * modules/unistd (Makefile.am): Substitute
1099         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
1100         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
1101         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
1102         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
1103         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
1104         * modules/sys_ioctl (Makefile.am): Substitute
1105         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
1106         * modules/socket (configure.ac): On native Windows, set
1107         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
1108         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
1109         Reported by Sam Steingold <sds@gnu.org>.
1110
1111 2009-08-10  Bruno Haible  <bruno@clisp.org>
1112
1113         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
1114         * modules/ioctl (configure.ac): Likewise.
1115
1116 2009-08-10  Bruno Haible  <bruno@clisp.org>
1117
1118         Avoid collision between gnulib wrapper and libintl wrapper.
1119         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
1120         already defined in intl/printf.c.
1121         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
1122         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
1123
1124 2009-08-09  Bruno Haible  <bruno@clisp.org>
1125
1126         Make <sys/select.h> really self-contained, also on Solaris 10.
1127         * lib/sys_select.in.h: Include <string.h>.
1128         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
1129         Solaris 10 problem.
1130         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
1131         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
1132         Reported by Jim Meyering.
1133
1134 2009-08-09  Bruno Haible  <bruno@clisp.org>
1135
1136         Avoid warnings from 'aclocal' that are due to a use of macro name
1137         AM_XGETTEXT_OPTION that is not defined in automake.
1138         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
1139         automake.
1140         * modules/error (configure.ac): Likewise.
1141         * modules/propername (configure.ac): Likewise.
1142         * modules/vasprintf (configure.ac): Likewise.
1143         * modules/verror (configure.ac): Likewise.
1144         * modules/xprintf (configure.ac): Likewise.
1145         * modules/xvasprintf (configure.ac): Likewise.
1146
1147 2009-08-08  Bruno Haible  <bruno@clisp.org>
1148
1149         Avoid compilation error in C++ mode.
1150         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
1151         Reported by Sam Steingold <sds@gnu.org>.
1152
1153 2009-08-08  Bruno Haible  <bruno@clisp.org>
1154
1155         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
1156         for the various Unix platforms.
1157         * doc/posix-headers/limits.texi: Update platforms list regarding
1158         HOST_NAME_MAX.
1159         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
1160
1161 2009-08-07  Jim Meyering  <meyering@redhat.com>
1162
1163         selinux-at: fix typo in a comment
1164         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
1165         Spotted by Paolo Bonzini.
1166
1167         selinux-at: remove redundant m4 code, add documentation
1168         * modules/selinux-at (configure.ac): Remove redundant code.
1169         LIB_SELINUX is already set via the dependent module, selinux-h.
1170         (Include): Add quotes around selinux-at.h.
1171         * lib/selinux-at.h: Add documentation.
1172         Reported by Bruno Haible in
1173         http://marc.info/?l=gnulib-bug&m=124958988300749
1174
1175 2009-08-07  Bruno Haible  <bruno@clisp.org>
1176
1177         Avoid link error on MacOS X 10.3 and 10.4.
1178         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
1179         on non-ELF systems.
1180         * lib/argp-pv.c (argp_program_version): Likewise.
1181         Reported by Simon Josefsson.
1182
1183 2009-08-07  Simon Josefsson  <simon@josefsson.org>
1184
1185         * tests/test-version-etc.sh: Use $EXEEXT.
1186
1187 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
1188
1189         update-copyright: update documentation to point to maint.mk
1190         * build-aux/update-copyright: Here.
1191
1192 2009-08-06  Jim Meyering  <meyering@redhat.com>
1193
1194         maint.mk: support update-copyright-local
1195         * top/maint.mk (update-copyright-local): Define place-holder.
1196         (update-copyright): Depend on $(update-copyright-local).
1197
1198 2009-08-06  Jim Meyering  <meyering@redhat.com>
1199
1200         selinux-at: new module
1201         Initially written for coreutils, this module will soon be
1202         used by findutils, too.
1203         * MODULES.html.sh [Misc]: Add selinux-at.
1204         * lib/selinux-at.h: New file, from coreutils.
1205         * lib/selinux-at.c: Likewise.
1206         * modules/selinux-at: Likewise.
1207         (License): Change from LGPL to GPL, since it depends
1208         on the GPL'd openat module.
1209
1210         doc: update README
1211         * README: Remove references to cogito.
1212         Remove cvs-repo-updating instructions from 2007.
1213         Don't imply that CVS is better if you have limited disk space.
1214
1215 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
1216
1217         update-copyright: support C-style comments
1218         * build-aux/update-copyright: Implement and document.
1219         * tests/test-update-copyright.sh: Test.
1220
1221 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
1222
1223         update-copyright: support omitted "(C)"
1224         * build-aux/update-copyright: Implement and document.  Also,
1225         allow variable whitespace before "(C)".
1226         * tests/test-update-copyright.sh: Test.
1227
1228 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
1229
1230         update-copyright: don't trip on non-FSF copyright statements
1231         * build-aux/update-copyright: Fix so that the first correctly
1232         formatted FSF copyright statement is recognized no matter what
1233         appears before it.  Update documentation.
1234         * tests/test-update-copyright.sh: Test that.
1235
1236 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
1237
1238         update-copyright: clean up code a little
1239         * build-aux/update-copyright: Append "_re" to the name of any
1240         variable holding a regular expression.
1241         Replace "old" and "new" with "stmt" in variable names.
1242         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
1243         handled correctly.
1244         Format code more consistently.
1245
1246 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
1247
1248         update-copyright-tests: improve portability
1249         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
1250         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
1251
1252 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
1253
1254         update-copyright: support @copyright{} and &copy;
1255         * build-aux/update-copyright: Implement and document.
1256         * tests/test-update-copyright.sh: Test.
1257
1258 2009-08-04  Jim Meyering  <meyering@redhat.com>
1259
1260         update-copyright-tests: correctly test EOL=\r\n handling
1261         * tests/test-update-copyright.sh: Put \r at the end of some lines
1262         for the dos-eol tests.  Based on a patch by Joel E. Denny.
1263
1264         maint.mk: make update-copyright exclusion list more configurable
1265         * top/maint.mk (update-copyright): Default to excluding COPYING,
1266         but allow an override, in case someone does want to update that file.
1267
1268         maint.mk: don't update copyright date in COPYING
1269         * top/maint.mk (update-copyright): Exclude COPYING.
1270
1271         maint.mk: add a copyright-updating rule
1272         * top/maint.mk (update-copyright): New rule.
1273         Derived from coreutils/Makefile.am.
1274
1275         update-copyright: rename some variables
1276         * build-aux/update-copyright: Rename a few variables for clarity.
1277         Tweak syntax.  List Joel E. Denny as coauthor.
1278
1279 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
1280
1281         update-copyright: fix bug for 2-digit last year and add tests
1282         * build-aux/update-copyright: Fix bug.
1283         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
1284         specified.
1285         * modules/update-copyright-tests: New
1286         * tests/test-update-copyright.sh: New.
1287
1288 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
1289
1290         update-copyright: handle leading tabs in line prefix
1291         * build-aux/update-copyright: Count leading tabs as 8 spaces
1292         when computing margin.  This helps with the formatting of
1293         ChangeLogs, for example.
1294         Fix documentation a little.
1295
1296 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
1297
1298         update-copyright: support EOL=\r\n
1299         * build-aux/update-copyright: Implement that.
1300
1301 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
1302
1303         update-copyright: automatically format copyright statements
1304         * build-aux/update-copyright: Implement that.
1305         Also, be a little more predictable and safer by always failing
1306         when the full copyright format is not perfectly recognized as an
1307         unbroken whole.  Discussed at
1308         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
1309         Rewrite documentation.
1310
1311 2009-08-03  Bruno Haible  <bruno@clisp.org>
1312
1313         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
1314
1315 2009-08-02  Bruno Haible  <bruno@clisp.org>
1316
1317         Tests for module 'uname'.
1318         * modules/uname-tests: New file.
1319         * tests/test-uname.c: New file.
1320
1321         New module 'uname'.
1322         * lib/uname.c: New file.
1323         * m4/uname.m4: New file.
1324         * modules/uname: New file.
1325         * doc/posix-functions/uname.texi: Mention the new module.
1326
1327 2009-08-02  Bruno Haible  <bruno@clisp.org>
1328
1329         Tests for module 'sys_utsname'.
1330         * modules/sys_utsname-tests: New file.
1331         * tests/test-sys_utsname.c: New file.
1332
1333         New module 'sys_utsname'.
1334         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
1335         * m4/sys_utsname_h.m4: New file.
1336         * modules/sys_utsname: New file.
1337         * doc/posix-headers/sys_utsname.texi: Mention the new module.
1338
1339 2009-08-02  Bruno Haible  <bruno@clisp.org>
1340
1341         Implicitly initialize the sockets library.
1342         * lib/gethostname.c: Include sockets.h.
1343         (rpl_gethostname): Invoke gl_sockets_startup.
1344         * lib/socket.c: Include sockets.h.
1345         (rpl_socket): Invoke gl_sockets_startup.
1346         * modules/gethostname (Depends-on): Add sockets.
1347         * modules/socket (Depends-on): Likewise.
1348         * tests/test-poll.c: Don't include sockets.h.
1349         (main): Don't invoke gl_sockets_startup.
1350         * tests/test-select.c: Don't include sockets.h.
1351         (main): Don't invoke gl_sockets_startup.
1352
1353 2009-08-02  Bruno Haible  <bruno@clisp.org>
1354
1355         Allow multiple calls to gl_sockets_startup.
1356         * lib/sockets.c (initialized_sockets_version): New variable.
1357         (gl_sockets_startup): Do nothing if already called for this or a higher
1358         version.
1359         (gl_sockets_cleanup): Reset initialized_sockets_version.
1360
1361 2009-08-03  Simon Josefsson  <simon@josefsson.org>
1362
1363         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
1364         different project/version.
1365
1366 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
1367             Bruno Haible  <bruno@clisp.org>
1368
1369         Tests for module 'pipe-filter-gi'.
1370         * modules/pipe-filter-gi-tests: New file.
1371         * tests/test-pipe-filter-gi1.sh: New file.
1372         * tests/test-pipe-filter-gi1.c: New file.
1373         * tests/test-pipe-filter-gi2.sh: New file.
1374         * tests/test-pipe-filter-gi2-main.c: New file.
1375         * tests/test-pipe-filter-gi2-child.c: New file.
1376
1377         New module 'pipe-filter-gi'.
1378         * lib/pipe-filter-gi.c: New file.
1379         * modules/pipe-filter-gi: New file.
1380
1381 2009-08-02  Bruno Haible  <bruno@clisp.org>
1382             Paolo Bonzini  <bonzini@gnu.org>
1383
1384         Tests for module 'pipe-filter-ii'.
1385         * modules/pipe-filter-ii-tests: New file.
1386         * tests/test-pipe-filter-ii1.sh: New file.
1387         * tests/test-pipe-filter-ii1.c: New file.
1388         * tests/test-pipe-filter-ii2.sh: New file.
1389         * tests/test-pipe-filter-ii2-main.c: New file.
1390         * tests/test-pipe-filter-ii2-child.c: New file.
1391
1392         New module 'pipe-filter-ii'.
1393         * lib/pipe-filter.h: New file.
1394         * lib/pipe-filter-ii.c: New file.
1395         * lib/pipe-filter-aux.h: New file.
1396         * modules/pipe-filter-ii: New file.
1397
1398 2009-08-02  Simon Josefsson  <simon@josefsson.org>
1399
1400         * lib/gc-libgcrypt.c: Change copyright to FSF.
1401         * lib/gc-gnulib.c: Likewise.
1402
1403 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
1404
1405         * lib/gethostname.c: Include limits.h.
1406
1407 2009-08-02  Simon Josefsson  <simon@josefsson.org>
1408             Bruno Haible  <bruno@clisp.org>
1409
1410         Ensure HOST_NAME_MAX as part of the gethostname module.
1411         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
1412         define also HOST_NAME_MAX.
1413         * tests/test-gethostname.c: Include <limits.h>.
1414         (main): Check also HOST_NAME_MAX.
1415         * doc/posix-headers/limits.texi: Document the mingw problem.
1416
1417 2009-08-02  Bruno Haible  <bruno@clisp.org>
1418
1419         * lib/gethostname.c (gethostname): Fix handling of large len argument.
1420         Add comments.
1421
1422 2009-03-31  Simon Josefsson  <simon@josefsson.org>
1423
1424         * lib/gethostname.c: Add Windows wrapper.
1425         * m4/gethostname.m4: Look for gethostname in -lws2_32.
1426         * modules/gethostname: Depend on sys_socket & errno, for also
1427         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
1428         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
1429
1430 2009-07-31  Jim Meyering  <meyering@redhat.com>
1431
1432         getloadavg: fix symbol name in comment
1433         * lib/getloadavg.c: Correct a typo I introduced when adding
1434         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
1435         Matt Kraai spotted the problem.
1436
1437 2009-07-29  Matt Kraai  <mkraai@beckman.com>
1438
1439         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
1440         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
1441         code also if ! defined N_NAME_POINTER.
1442         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
1443         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
1444         but the n_name member is a 12-byte array.
1445
1446 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
1447
1448         update-copyright: generalize comment handling
1449         * build-aux/update-copyright: Handle copyright statements
1450         within more comment styles.
1451         Document usage.
1452         Report any file with an external copyright holder or parse failure.
1453
1454 2009-07-29  Jim Meyering  <meyering@redhat.com>
1455
1456         mktime: correct setting of REPLACE_MKTIME
1457         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
1458
1459         update-copyright: new module
1460         * modules/update-copyright: New file.
1461         * build-aux/update-copyright: New file.
1462         * MODULES.html.sh (maint+release support): Add update-copyright.
1463
1464 2009-07-27  Bruno Haible  <bruno@clisp.org>
1465
1466         Fix compilation error when <ctime> is used and mktime is replaced.
1467         * lib/time.in.h (mktime): New declaration.
1468         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
1469         REPLACE_MKTIME instead of defining mktime in config.h.
1470         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
1471         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
1472         Reported by Ross McFarland <rwmcfa1@neces.com>.
1473
1474 2009-07-27  Bruno Haible  <bruno@clisp.org>
1475
1476         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
1477         Reported by Matt Kraai <mkraai@beckman.com>.
1478
1479 2009-07-25  Jim Meyering  <meyering@redhat.com>
1480
1481         maint.mk: avoid warnings about missing files
1482         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
1483         diagnostic when .prev-version does not exist.
1484         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
1485         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
1486         nonexistent cfg.mk.
1487         Suggestions from Simon Josefsson.
1488
1489 2009-07-25  Bruno Haible  <bruno@clisp.org>
1490
1491         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
1492         defined as macros. Needed on QNX 6.4.1.
1493         Reported by Matt Kraai <mkraai@beckman.com>.
1494
1495 2009-07-23  Jim Meyering  <meyering@redhat.com>
1496
1497         maint.mk: invoke "make dist" with a working value of XZ_OPT
1498         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
1499
1500 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
1501
1502         Make fseeko.c compile on QNX.
1503         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
1504
1505 2009-07-22  Peter Simons  <simons@cryp.to>
1506
1507         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
1508         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
1509         * lib/md4.h: Likewise.
1510         * lib/md5.h: Likewise.
1511         * lib/sha1.h: Likewise.
1512         * lib/sha256.h: Likewise.
1513         * lib/sha512.h: Likewise.
1514
1515         tests-sha1: don't assign literal string to 'char *' variable
1516         * tests/test-sha1.c (main): Declare locals with "const" to match
1517         attributes of the right hand side.
1518
1519 2009-07-21  Eric Blake  <ebb9@byu.net>
1520
1521         dup2: fix more mingw problems
1522         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
1523         fd to itself.
1524         * doc/posix-functions/dup2.texi (dup2): Document the bug.
1525         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
1526         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
1527         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
1528         care of mingw bugs.
1529
1530 2009-07-21  Jim Meyering  <meyering@redhat.com>
1531
1532         vc-list-files: avoid failure when /bin/sh is dash
1533         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
1534         On some Debian based systems, /bin/sh is a symlink to dash, and running
1535         this command would omit the "/" following each 'tests' prefix:
1536           dash -x build-aux/vc-list-files -C . tests
1537         That is because bash and dash work differently:
1538           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
1539           bash ok
1540           dash odd
1541
1542 2009-07-21  Eric Blake  <ebb9@byu.net>
1543
1544         dup2-tests: test previous patch
1545         * modules/dup2-tests: New file.
1546         * tests/test-dup2.c: Likewise.
1547         * tests/test-open.c (main): Avoid unspecified behavior.
1548         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
1549         test.
1550
1551         dup2: work around mingw and cygwin 1.5 bug
1552         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
1553         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
1554         * modules/unistd (Makefile.am): Substitute it.
1555         * lib/unistd.in.h (dup2): Declare the replacement.
1556         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
1557         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
1558         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
1559         * modules/execute (Depends-on): Add dup2.
1560         * modules/fseterr (Depends-on): Likewise.
1561         * modules/pipe (Depends-on): Likewise.
1562         * modules/posix_spawn-internal (Depends-on): Likewise.
1563
1564 2009-07-21  Bruno Haible  <bruno@clisp.org>
1565
1566         * modules/.gitattributes: New file.
1567
1568 2009-07-20  Bruno Haible  <bruno@clisp.org>
1569
1570         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
1571         (main): Use it.
1572
1573 2009-07-20  Eric Blake  <ebb9@byu.net>
1574
1575         test-pipe: make a bit more robust.
1576         * tests/test-pipe.c (myerr): Allow error messages regardless of
1577         what we do to stderr.
1578         (test_pipe): Rearrange to avoid deadlock.
1579         (child_main): Try a larger read, to ensure we avoided deadlock.
1580         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
1581         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
1582         if misused.
1583
1584 2009-07-19  Jim Meyering  <meyering@redhat.com>
1585
1586         fts: avoid false-positive cycle-detection
1587         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
1588         for each new command line argument.
1589
1590 2009-07-19  Bruno Haible  <bruno@clisp.org>
1591
1592         Fix build error on mingw with the modules sys_select and unistd.
1593         * modules/acl-tests (Depends-on): Add close.
1594         * modules/binary-io-tests (Depends-on): Likewise.
1595         * modules/closein-tests (Depends-on): Likewise.
1596         * modules/flock-tests (Depends-on): Likewise.
1597         * modules/fsync-tests (Depends-on): Likewise.
1598         * modules/lseek-tests (Depends-on): Likewise.
1599         * modules/pipe-tests (Depends-on): Likewise.
1600         * modules/posix_spawn-tests (Depends-on): Likewise.
1601         * modules/posix_spawnp-tests (Depends-on): Likewise.
1602         * modules/stat-time-tests (Depends-on): Likewise.
1603         * modules/yesno-tests (Depends-on): Likewise.
1604
1605 2009-07-19  Bruno Haible  <bruno@clisp.org>
1606
1607         Unify conditionals.
1608         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
1609         macros, not at the compiler macros.
1610         * lib/pipe.c: Likewise.
1611         * lib/execute.c: Likewise.
1612         * lib/spawni.c: Likewise.
1613
1614 2009-07-19  Bruno Haible  <bruno@clisp.org>
1615
1616         Fix handling of closed stdin/stdout/stderr on mingw.
1617         * lib/w32spawn.h: Include unistd.h.
1618         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
1619         file descriptor with O_NOINHERIT flag.
1620         (fd_safer_noinherit): New function, based on fd-safer.c.
1621         (dup_safer_noinherit): New function, based on dup-safer.c.
1622         (undup_safer_noinherit): New function.
1623         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
1624         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
1625         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
1626         instead of fd_safer.
1627         * tests/test-pipe.c: Include <windows.h>.
1628         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
1629
1630         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
1631         from main.
1632         (test_pipe): Pass an extra argument for disambiguation.
1633         (main): Invoke parent_main or child_main.
1634
1635         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
1636         consistently.
1637
1638 2009-07-18  Eric Blake  <ebb9@byu.net>
1639
1640         test-pipe: fix mingw build
1641         * tests/test-pipe.c (main): Avoid fcntl on mingw.
1642
1643 2009-07-18  Bruno Haible  <bruno@clisp.org>
1644
1645         * modules/pipe-tests (Makefile.am): Fix typo.
1646
1647 2009-07-18  Eric Blake  <ebb9@byu.net>
1648
1649         error: fix mingw build
1650         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
1651         Reported by Bruno Haible.
1652
1653         error: avoid undefined use of stdout
1654         * lib/error.c (error, error_at_line): Check that fd 1 is open
1655         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
1656         is handling faults and the close_stdout module wants to report the
1657         detection of closed stdout as an error.
1658
1659 2009-07-17  Eric Blake  <ebb9@byu.net>
1660
1661         pipe: be robust in face of closed fds
1662         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
1663         should cause child to misbehave.
1664         * modules/pipe-tests: New module.
1665         * tests/test-pipe.c: New file.
1666         * tests/test-pipe.sh: New file.
1667         Reported by Akim Demaille.
1668
1669 2009-07-14  Bruno Haible  <bruno@clisp.org>
1670
1671         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
1672         Reported by anonymous kc.
1673
1674 2009-07-07  Jim Meyering  <meyering@redhat.com>
1675
1676         maint.mk: don't look for translatable strings in *.m4 or *.mk
1677         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
1678         when searching for translatable strings.
1679
1680 2009-07-05  Jim Meyering  <meyering@redhat.com>
1681
1682         remove superfluous parentheses in STREQ definition
1683         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
1684         * lib/getugroups.c (STREQ): Likewise.
1685         * lib/fnmatch.c (STREQ): Likewise.
1686         Spotted by Bruno Haible.
1687
1688 2009-07-04  Jim Meyering  <meyering@redhat.com>
1689
1690         argv-iter: new module
1691         * MODULES.html.sh: Add argv-iter.
1692         * lib/argv-iter.c, lib/argv-iter.h: New files.
1693         * modules/argv-iter: New file.
1694         * modules/argv-iter-tests: New file.
1695         * tests/test-argv-iter.c: Test it.
1696
1697 2009-07-04  Bruno Haible  <bruno@clisp.org>
1698
1699         Fix assertion.
1700         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
1701         contains more exact copies of a given entry than file2, leave the extra
1702         copies unpaired rather than aborting.
1703         Reported by Eric Blake.
1704
1705 2009-07-02  Bruno Haible  <bruno@clisp.org>
1706
1707         Speedup git-merge-changelog for git cherry-pick.
1708         * lib/git-merge-changelog.c (struct entries_mapping): New type.
1709         (entries_mapping_get): New function, extracted from compute_mapping.
1710         (entries_mapping_reverse_get): New function.
1711         (compute_mapping): Add a 'full' argument. Return the result in a
1712         'struct entries_mapping'.
1713         (main): Update. Access the mappings through entries_mapping_get.
1714         Reported by Eric Blake.
1715
1716 2009-07-02  Bruno Haible  <bruno@clisp.org>
1717
1718         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
1719         best_i.
1720
1721 2009-07-02  Bruno Haible  <bruno@clisp.org>
1722
1723         Speed up approximate search for matching ChangeLog entries.
1724         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
1725         argument. Call fstrcmp_bounded instead of fstrcmp.
1726         (compute_mapping, try_split_merged_entry, main): Update callers.
1727
1728 2009-07-02  Bruno Haible  <bruno@clisp.org>
1729
1730         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
1731
1732 2009-06-30  Bruno Haible  <bruno@clisp.org>
1733
1734         Reduce the number of uc_is_cased calls.
1735         * lib/unicase.h (casing_suffix_context_t): Add
1736         'first_char_except_ignorable' field.
1737         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
1738         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
1739         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
1740         Update initializer.
1741         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
1742         case-ignorable characters.
1743         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
1744         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
1745         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
1746         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
1747         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
1748
1749 2009-06-30  Bruno Haible  <bruno@clisp.org>
1750
1751         Tests for module 'unicase/ignorable'.
1752         * modules/unicase/ignorable-tests: New file.
1753         * tests/unicase/test-ignorable.c: New file, generated by
1754         gen-uni-tables.
1755
1756         Tests for module 'unicase/cased'.
1757         * modules/unicase/cased-tests: New file.
1758         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
1759         * tests/unicase/test-predicate-part1.h: New file, derived from
1760         tests/unictype/test-predicate-part1.h.
1761         * tests/unicase/test-predicate-part2.h: New file, same as
1762         tests/unictype/test-predicate-part2.h.
1763
1764         Fix evaluation of "Before C" condition of FINAL_SIGMA.
1765         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
1766         (output_casing_properties): New function.
1767         (main): Call it.
1768         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
1769         * lib/unicase/cased.c: Include unictype/bitmap.h.
1770         (uc_is_cased): Define through a bitmap lookup.
1771         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
1772         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
1773         (uc_is_case_ignorable): Define through a bitmap lookup.
1774         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
1775         lib/unictype/bitmap.h.
1776         (Depends-on): Add inline. Clean up.
1777         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
1778         lib/unictype/bitmap.h.
1779         (Depends-on): Add inline. Clean up.
1780         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
1781         recognition.
1782         * tests/unicase/test-u16-tolower.c (main): Likewise.
1783         * tests/unicase/test-u32-tolower.c (main): Likewise.
1784
1785 2009-06-30  Bruno Haible  <bruno@clisp.org>
1786
1787         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
1788         * lib/unicase/u16-casemap.c: Likewise.
1789         * lib/unicase/u32-casemap.c: Likewise.
1790
1791 2009-06-29  Bruno Haible  <bruno@clisp.org>
1792
1793         Define u32_casefold as a wrapper around u32_ct_casefold.
1794         * lib/unicase/u32-casefold.c: Update.
1795         * modules/unicase/u32-casefold (Depends-on): Add
1796         unicase/u32-ct-casefold, unicase/empty-prefix-context,
1797         unicase/empty-suffix-context. Clean up.
1798
1799         Define u16_casefold as a wrapper around u16_ct_casefold.
1800         * lib/unicase/u16-casefold.c: Update.
1801         * modules/unicase/u16-casefold (Depends-on): Add
1802         unicase/u16-ct-casefold, unicase/empty-prefix-context,
1803         unicase/empty-suffix-context. Clean up.
1804
1805         Define u8_casefold as a wrapper around u8_ct_casefold.
1806         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
1807         * lib/unicase/u8-casefold.c: Update.
1808         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
1809         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
1810
1811         Define u32_totitle as a wrapper around u32_ct_totitle.
1812         * lib/unicase/u32-totitle.c: Update.
1813         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
1814         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
1815
1816         Define u16_totitle as a wrapper around u16_ct_totitle.
1817         * lib/unicase/u16-totitle.c: Update.
1818         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
1819         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
1820
1821         Define u8_totitle as a wrapper around u8_ct_totitle.
1822         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
1823         functions.
1824         (FUNC): Delegate to U_CT_TOTITLE.
1825         * lib/unicase/u8-totitle.c: Update.
1826         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
1827         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
1828
1829         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
1830         invocation.
1831         * modules/unicase/u32-tolower (Depends-on): Add
1832         unicase/empty-prefix-context, unicase/empty-suffix-context.
1833
1834         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
1835         invocation.
1836         * modules/unicase/u16-tolower (Depends-on): Add
1837         unicase/empty-prefix-context, unicase/empty-suffix-context.
1838
1839         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
1840         * modules/unicase/u8-tolower (Depends-on): Add
1841         unicase/empty-prefix-context, unicase/empty-suffix-context.
1842
1843         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
1844         invocation.
1845         * modules/unicase/u32-toupper (Depends-on): Add
1846         unicase/empty-prefix-context, unicase/empty-suffix-context.
1847
1848         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
1849         invocation.
1850         * modules/unicase/u16-toupper (Depends-on): Add
1851         unicase/empty-prefix-context, unicase/empty-suffix-context.
1852
1853         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
1854         * modules/unicase/u8-toupper (Depends-on): Add
1855         unicase/empty-prefix-context, unicase/empty-suffix-context.
1856
1857         New module 'unicase/u32-ct-casefold'.
1858         * lib/unicase/u32-ct-casefold.c: New file.
1859         * modules/unicase/u32-ct-casefold: New file.
1860
1861         New module 'unicase/u16-ct-casefold'.
1862         * lib/unicase/u16-ct-casefold.c: New file.
1863         * modules/unicase/u16-ct-casefold: New file.
1864
1865         New module 'unicase/u8-ct-casefold'.
1866         * lib/unicase/u8-ct-casefold.c: New file.
1867         * lib/unicase/u-ct-casefold.h: New file, derived from
1868         lib/unicase/u-casefold.h.
1869         * modules/unicase/u8-ct-casefold: New file.
1870
1871         New module 'unicase/u32-ct-totitle'.
1872         * lib/unicase/u32-ct-totitle.c: New file.
1873         * modules/unicase/u32-ct-totitle: New file.
1874
1875         New module 'unicase/u16-ct-totitle'.
1876         * lib/unicase/u16-ct-totitle.c: New file.
1877         * modules/unicase/u16-ct-totitle: New file.
1878
1879         New module 'unicase/u8-ct-totitle'.
1880         * lib/unicase/u8-ct-totitle.c: New file.
1881         * lib/unicase/u-ct-totitle.h: New file, derived from
1882         lib/unicase/u-totitle.h.
1883         * modules/unicase/u8-ct-totitle: New file.
1884
1885         New module 'unicase/u32-ct-tolower'.
1886         * lib/unicase/u32-ct-tolower.c: New file.
1887         * modules/unicase/u32-ct-tolower: New file.
1888
1889         New module 'unicase/u16-ct-tolower'.
1890         * lib/unicase/u16-ct-tolower.c: New file.
1891         * modules/unicase/u16-ct-tolower: New file.
1892
1893         New module 'unicase/u8-ct-tolower'.
1894         * lib/unicase/u8-ct-tolower.c: New file.
1895         * modules/unicase/u8-ct-tolower: New file.
1896
1897         New module 'unicase/u32-ct-toupper'.
1898         * lib/unicase/u32-ct-toupper.c: New file.
1899         * modules/unicase/u32-ct-toupper: New file.
1900
1901         New module 'unicase/u16-ct-toupper'.
1902         * lib/unicase/u16-ct-toupper.c: New file.
1903         * modules/unicase/u16-ct-toupper: New file.
1904
1905         New module 'unicase/u8-ct-toupper'.
1906         * lib/unicase/u8-ct-toupper.c: New file.
1907         * modules/unicase/u8-ct-toupper: New file.
1908
1909         Add context arguments to u*_casemap functions.
1910         * lib/unicase/unicasemap.h: Include unicase.h.
1911         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
1912         suffix_context arguments.
1913         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
1914         functions.
1915         (FUNC): Add prefix_context and suffix_context arguments. Use
1916         uc_is_cased and uc_is_case_ignorable.
1917         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
1918         * lib/unicase/u16-casemap.c: Likewise.
1919         * lib/unicase/u32-casemap.c: Likewise.
1920         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
1921         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
1922         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
1923         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
1924         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
1925         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
1926
1927         New module 'unicase/u32-suffix-context'.
1928         * lib/unicase/u32-suffix-context.c: New file.
1929         * modules/unicase/u32-suffix-context: New file.
1930
1931         New module 'unicase/u16-suffix-context'.
1932         * lib/unicase/u16-suffix-context.c: New file.
1933         * modules/unicase/u16-suffix-context: New file.
1934
1935         New module 'unicase/u8-suffix-context'.
1936         * lib/unicase/u8-suffix-context.c: New file.
1937         * lib/unicase/u-suffix-context.h: New file.
1938         * modules/unicase/u8-suffix-context: New file.
1939
1940         New module 'unicase/empty-suffix-context'.
1941         * lib/unicase/empty-suffix-context.c: New file.
1942         * modules/unicase/empty-suffix-context: New file.
1943
1944         New module 'unicase/u32-prefix-context'.
1945         * lib/unicase/u32-prefix-context.c: New file.
1946         * modules/unicase/u32-prefix-context: New file.
1947
1948         New module 'unicase/u16-prefix-context'.
1949         * lib/unicase/u16-prefix-context.c: New file.
1950         * modules/unicase/u16-prefix-context: New file.
1951
1952         New module 'unicase/u8-prefix-context'.
1953         * lib/unicase/u8-prefix-context.c: New file.
1954         * lib/unicase/u-prefix-context.h: New file.
1955         * lib/unicase/context.h: New file.
1956         * modules/unicase/u8-prefix-context: New file.
1957
1958         New module 'unicase/empty-prefix-context'.
1959         * lib/unicase/empty-prefix-context.c: New file.
1960         * modules/unicase/empty-prefix-context: New file.
1961
1962         New module 'unicase/ignorable'.
1963         * lib/unicase/ignorable.c: New file.
1964         * modules/unicase/ignorable: New file.
1965
1966         New module 'unicase/cased'.
1967         * lib/unicase/caseprop.h: New file.
1968         * lib/unicase/cased.c: New file.
1969         * modules/unicase/cased: New file.
1970
1971         New functions for case mapping of substrings.
1972         * lib/unicase.h (casing_prefix_context_t): New type.
1973         (unicase_empty_prefix_context): New variable.
1974         (u8_casing_prefix_context, u16_casing_prefix_context,
1975         u32_casing_prefix_context, u8_casing_prefixes_context,
1976         u16_casing_prefixes_context, u32_casing_prefixes_context): New
1977         declarations.
1978         (casing_suffix_context_t): New type.
1979         (unicase_empty_suffix_context): New variable.
1980         (u8_casing_suffix_context, u16_casing_suffix_context,
1981         u32_casing_suffix_context, u8_casing_suffixes_context,
1982         u16_casing_suffixes_context, u32_casing_suffixes_context,
1983         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
1984         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
1985         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
1986         declarations.
1987
1988 2009-06-28  Jim Meyering  <meyering@redhat.com>
1989
1990         boostrap: indent only with spaces
1991         * build-aux/bootstrap: Indent only with spaces, never TABs.
1992
1993         bootstrap: split long lines
1994         * build-aux/bootstrap: Keep line length < 80.
1995
1996         bootstrap: sync from coreutils
1997         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
1998         just as autoreconf does.  Verify a list of prerequisite
1999         package-name,version-number pairs if defined in bootstrap.conf.
2000         Refer to README-prereq, if prerequisites are not satisfied.
2001
2002 2009-06-27  Eric Blake  <ebb9@byu.net>
2003
2004         tests: add test for bogus NULL definition
2005         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
2006         * tests/test-stdlib.c: Likewise.
2007         * tests/test-string.c: Likewise.
2008         * tests/test-locale.c: Likewise.
2009         * tests/test-unistd.c: Likewise.
2010         * modules/stdio-tests (Depends-on): Add verify.
2011         * modules/stdlib-tests (Depends-on): Likewise.
2012         * modules/string-tests (Depends-on): Likewise.
2013         * modules/locale-tests (Depends-on): Likewise.
2014         * modules/unistd-tests (Depends-on): Likewise.
2015
2016 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
2017
2018         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
2019         self-explaining comment.
2020         * m4/selinux-selinux-h: Update serial.
2021         (gl_LIBSELINUX): New macro, adding a warning for missing development
2022         packages to code extracted from...
2023         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
2024         Add warning for missing development packages here, too.
2025
2026 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
2027
2028         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
2029
2030 2009-06-25  Eric Blake  <ebb9@byu.net>
2031
2032         version-etc: fix regression
2033         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
2034         gcc.
2035         (version_etc): Use it, to catch bugs with trailing NULL.
2036         * lib/version-etc.c (version_etc_arn): Delete unused argument.
2037         (version_etc_va): Fix logic bug.
2038         * modules/version-etc-tests: Add test.
2039         * tests/test-version-etc.c: New file.
2040         * tests/test-version-etc.sh: Likewise.
2041
2042 2009-06-25  Sam Steingold  <sds@gnu.org>
2043
2044         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
2045         mbtowc declaration.
2046
2047 2009-06-25  Eric Blake  <ebb9@byu.net>
2048
2049         fpurge: migrate into <stdio.h>
2050         * lib/fpurge.h: Delete...
2051         * lib/stdio.in.h (fpurge): ...and declare here, instead.
2052         * lib/fpurge.c (fpurge): Change declaring header.
2053         * modules/fpurge (Files): Drop deleted file.
2054         (Depends-on): Add stdio.
2055         (configure.ac): Set witness.
2056         * modules/stdio (Makefile.am): Support fpurge macros.
2057         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
2058         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
2059         * lib/fflush.c: Update client.
2060         * tests/test-fpurge.c: Likewise.
2061         * NEWS: Mention the change.
2062
2063 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
2064
2065        * lib/argp-version-etc.c (program_authors): Add const
2066        qualifier.
2067        * lib/version-etc.c: Fix typos in the comments.
2068        * modules/argp-version-etc: Depends on version-etc.
2069
2070 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
2071
2072         argp-version-etc: new module.
2073
2074         * lib/argp-version-etc.c: New file.
2075         * lib/argp-version-etc.h: New file.
2076         * modules/argp-version-etc: New file.
2077         * modules/argp-version-etc-tests: New file.
2078         * tests/test-argp-version-etc.c: New test.
2079         * tests/test-argp-version-etc-1.sh: New test.
2080
2081 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
2082
2083         Provide additional interfaces and documentation for version-etc
2084         module.
2085
2086         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
2087         interfaces.
2088         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
2089         prototypes.
2090
2091 2009-06-24  Bruno Haible  <bruno@clisp.org>
2092
2093         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
2094         HAVE_LIB${NAME} macro.
2095         Reported by Sam Steingold <sds@gnu.org>.
2096
2097 2009-06-23  Simon Josefsson  <simon@josefsson.org>
2098
2099         * modules/hash-tests (test_hash_LDADD): Link to libintl when
2100         needed.
2101
2102 2009-06-21  Bruno Haible  <bruno@clisp.org>
2103
2104         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
2105         work.
2106         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
2107         together with LIB${NAME}, LTLIB${NAME}.
2108         Reported by Sam Steingold <sds@gnu.org>.
2109
2110 2009-06-20  Jim Meyering  <meyering@redhat.com>
2111
2112         tests: make sc_require_test_exit_idiom more generic
2113         * top/maint.mk (Exit_witness_file): New overridable variable.
2114         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
2115         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
2116
2117 2009-06-19  Jim Meyering  <meyering@redhat.com>
2118
2119         hash: reverse order of src/dst parameters in an internal interface
2120         * lib/hash.c (transfer_entries): Reverse order of parameters to
2121         put DST before SRC.  Adjust callers.
2122
2123         tests: test-hash: avoid wholesale duplication
2124         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
2125         Instead, use a loop and add a single conditional.
2126
2127         tests: test-hash: allow seed selection via a command line argument
2128         * tests/test-hash.c (get_seed): New function.
2129         (main): Use it.
2130
2131 2009-06-19  Eric Blake  <ebb9@byu.net>
2132
2133         hash: avoid memory leak on allocation failure
2134         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
2135         failure.  Factor repeated algorithm...
2136         (transfer_entries): ...into new helper routine.
2137         (hash_delete): React to hash_rehash return value.
2138
2139         hash: reduce memory pressure in hash_rehash no-op case
2140         * lib/hash.c (next_prime): Avoid overflow.
2141         (hash_initialize): Factor bucket size computation...
2142         (compute_bucket_size): ...into new helper function.
2143         (hash_rehash): Use new function and open coding to reduce memory
2144         pressure, and avoid a memory leak in USE_OBSTACK code.
2145         Reported by Jim Meyering.
2146
2147 2009-06-18  Eric Blake  <ebb9@byu.net>
2148
2149         hash: make rotation more obvious
2150         * modules/hash (Depends-on): Add bitrotate and stdint.
2151         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
2152         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
2153         (SIZE_MAX): Rely on headers for definition.
2154         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
2155         (raw_hasher): Use rotr_sz.
2156         Suggested by Jim Meyering.
2157
2158         hash: fix memory leak in last patch
2159         * lib/hash.c (hash_rehash): Avoid memory leak.
2160
2161         hash: avoid no-op rehashing
2162         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
2163
2164         hash: provide default callback functions
2165         * lib/hash.c (raw_hasher, raw_comparator): New functions.
2166         (hash_initialize): Use them as defaults.
2167         * tests/test-hash.c (main): Test this.
2168
2169         hash: minor optimization
2170         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
2171         when possible.
2172         (hash_initialize): Document this promise.
2173         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
2174         * tests/test-hash.c (hash_compare_strings): Test this.
2175
2176 2009-06-18  Bruno Haible  <bruno@clisp.org>
2177
2178         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
2179         going to be replaced anyway.
2180
2181 2009-06-18  Bruno Haible  <bruno@clisp.org>
2182
2183         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
2184         in one place.
2185         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
2186         be replaced anyway.
2187
2188 2009-06-18  Eric Blake  <ebb9@byu.net>
2189
2190         hash: check for resize before insertion
2191         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
2192         threshold before insertion, so that a pathological hash_rehash
2193         that fills every bucket can still trigger another rehash.
2194
2195 2009-06-18  Jim Meyering  <meyering@redhat.com>
2196
2197         hash-tests: add a loop around the small tests
2198         * tests/test-hash.c (main): Repeat small tests with selected
2199         small initial table sizes.
2200
2201 2009-06-17  Eric Blake  <ebb9@byu.net>
2202
2203         hash: minor cleanups
2204         * lib/hash.h (hash_entry): Make opaque, by moving...
2205         * lib/hash.c (hash_entry): ...here.
2206         (hash_insert): Clarify restrictions on what can be inserted.
2207         (hash_get_next): Clarify when it is safe to remove an element
2208         during traversal.
2209         (check_tuning): Skip verification when tuning is known safe.
2210         (hash_initialize): Clarify restrictions on tuning.
2211
2212 2009-06-17  Jim Meyering  <jim@meyering.net>
2213         and Eric Blake  <ebb9@byu.net>
2214
2215         hash-tests: new module
2216         * modules/hash-tests: New file.
2217         * tests/test-hash.c: New file.
2218
2219 2009-06-17  Eric Blake  <ebb9@byu.net>
2220
2221         strstr-simple: document new module
2222         * MODULES.html.sh: Document new module.
2223
2224         strstr, strcasestr: replace on platforms with broken memchr
2225         * modules/strstr: Split into...
2226         * modules/strstr-simple: ...new module that does not care about
2227         performance, but does care about glibc bug.
2228         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
2229         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
2230         if platform memchr is broken, per Debian bug 521737.
2231         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
2232         memchr.
2233         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
2234         * doc/posix-functions/strstr.texi (strstr): Document the fix.
2235         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
2236         * modules/mountlist (Depends-on): Add strstr-simple.
2237         * modules/gen-uni-tables (Depends-on): Likewise.
2238         * modules/argz (Depends-on): Add strstr.
2239
2240 2009-06-17  Bruno Haible  <bruno@clisp.org>
2241
2242         * modules/posix_spawn-internal (Depends-on): Add errno.
2243
2244 2009-06-17  Bruno Haible  <bruno@clisp.org>
2245
2246         Define missing ESTALE on Interix 3.5.
2247         * lib/errno.in.h (ESTALE): Assign a value if missing.
2248         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
2249         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
2250         missing.
2251         * doc/posix-headers/errno.texi: Mention the Interix bug.
2252         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
2253
2254 2009-06-15  Eric Blake  <ebb9@byu.net>
2255
2256         memchr, memchr2: add valgrind exception
2257         * lib/memchr.valgrind: New file.
2258         * lib/memchr2.valgrind: New file.
2259         * modules/memchr (Files): Distribute valgrind file.
2260         * modules/memchr2 (Files): Likewise.
2261
2262         docs: memchr is no longer obsolete
2263         * MODULES.html.sh: Move memchr from obsolete to string.h section.
2264         * lib/string.in.h (memchr): Simplify logic.
2265
2266 2009-06-14  Jim Meyering  <meyering@redhat.com>
2267
2268         link-follow: fix the "checking..." message to not mention trailing slash
2269         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
2270         never considered trailing slashes.
2271
2272 2009-06-14  Bruno Haible  <bruno@clisp.org>
2273
2274         * m4/memchr.m4: Mention also the bug on IA-64.
2275         * doc/posix-functions/memchr.texi: Likewise.
2276
2277 2009-06-12  Eric Blake  <ebb9@byu.net>
2278
2279         memchr: detect broken x86_64 and alpha implementations
2280         * modules/memchr-tests (Depends-on): Move mmap detection...
2281         * modules/memchr (Depends-on): ...here.
2282         (configure.ac): Set indicator.
2283         * lib/string.in.h (memchr): Declare replacement.
2284         * modules/string (Makefile.am): Trigger replacement.
2285         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
2286         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
2287         bugs.
2288         * doc/posix-functions/memchr.texi (memchr): Document the bug.
2289         * modules/getpagesize (License): Relax license.
2290
2291 2009-06-11  Bruno Haible  <bruno@clisp.org>
2292
2293         * lib/idpriv.h: Add more references.
2294
2295 2009-06-08  Bruno Haible  <bruno@clisp.org>
2296
2297         Tests for module 'idpriv-droptemp'.
2298         * modules/idpriv-droptemp-tests: New file.
2299         * tests/test-idpriv-droptemp.sh: New file.
2300         * tests/test-idpriv-droptemp.su.sh: New file.
2301         * tests/test-idpriv-droptemp.c: New file.
2302
2303         New module 'idpriv-droptemp'.
2304         * lib/idpriv-droptemp.c: New file.
2305         * modules/idpriv-droptemp: New file.
2306
2307 2009-06-08  Bruno Haible  <bruno@clisp.org>
2308
2309         Tests for module 'idpriv-drop'.
2310         * modules/idpriv-drop-tests: New file.
2311         * tests/test-idpriv-drop.sh: New file.
2312         * tests/test-idpriv-drop.su.sh: New file.
2313         * tests/test-idpriv-drop.c: New file.
2314
2315         New module 'idpriv-drop'.
2316         * lib/idpriv.h: New file.
2317         * lib-idpriv-drop.c: New file.
2318         * m4/idpriv.m4: New file.
2319         * modules/idpriv-drop: New file.
2320
2321 2009-06-08  Bruno Haible  <bruno@clisp.org>
2322
2323         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
2324         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
2325         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
2326         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
2327         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
2328         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
2329         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
2330
2331 2009-06-08  Eric Blake  <ebb9@byu.net>
2332
2333         test-strstr: use memory fence, when possible
2334         * tests/test-strstr.c (main): Use memory fence, in order to be
2335         more likely to trigger Debian bug 521737.
2336         * modules/strstr-tests (Files): Pull in additional files.
2337
2338         memchr: no longer obsolete, for wider field testing
2339         * modules/memchr (Status, Notice): Delete, this module is no
2340         longer obsolete.
2341         * modules/vasnprintf (Depends-on): Add memchr.
2342
2343 2009-06-07  Jim Meyering  <meyering@redhat.com>
2344
2345         hash: declare some functions with the warn_unused_result attribute
2346         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
2347
2348 2009-06-07  Bruno Haible  <bruno@clisp.org>
2349
2350         * tests/test-alignof.c: Don't test int64_t if it does not exist.
2351         Reported by Eric Blake.
2352
2353 2009-06-06  Eric Blake  <ebb9@byu.net>
2354
2355         test-alignof: fix typo with long double
2356         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
2357         compiler error.
2358
2359 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
2360
2361         Escape non-texinfo { and }s.
2362         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
2363         markup error.
2364
2365 2009-06-04  Jim Meyering  <meyering@redhat.com>
2366
2367         gitlog-to-changelog: don't infloop on an empty commit log
2368         * build-aux/gitlog-to-changelog: Warn about an empty log message.
2369         Reported by Boris Petersen <transacid@centerim.org>.
2370
2371 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
2372
2373         version-etc: extend for packagers
2374         Add three new configure options, intended for packagers:
2375           --with-packager="packager name"
2376           --with-packager-version="packager-specific version"
2377           --with-packager-bug-reports="packager bug reporting"
2378         An example with coreutils:
2379           $ ./configure \
2380             --with-packager=Gentoo \
2381             --with-packager-bug-report=http://bugs.gentoo.org/ \
2382             --with-packager-version="patchset 1.6"
2383           $ ./src/ls --version | head -n3
2384           ls (GNU coreutils) 7.1-dirty
2385           Packaged by Gentoo (patchset 1.6)
2386           Copyright (C) 2009 Free Software Foundation, Inc.
2387         Note that the bug reporting info via --help doesn't show up because
2388         coreutils uses its own custom emit_bug_reporting_address() implementation
2389         in src/system.h.  If it didn't, it'd look like:
2390           $ ./src/ls --help | tail -n4
2391           Report bugs to <bug-coreutils@gnu.org>.
2392           Report Gentoo bugs to <http://bugs.gentoo.org/>.
2393           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
2394           General help using GNU software: <http://www.gnu.org/gethelp/>.
2395         * lib/version-etc.c: Print new information, if provided.
2396         * m4/version-etc.m4: New file.
2397         * modules/version-etc (Files): Add m4/version-etc.m4.
2398         (configure.ac): Add gl_VERSION_ETC.
2399
2400 2009-05-31  Bruno Haible  <bruno@clisp.org>
2401
2402         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
2403         and 'int64_t'.
2404         * modules/alignof-tests (Dependencies): Add stdint.
2405         Reported by Eric Blake.
2406
2407 2009-05-31  Bruno Haible  <bruno@clisp.org>
2408
2409         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
2410         restriction due to compiler bugs.
2411         Reported by Eric Blake.
2412
2413 2009-05-31  Simon Josefsson  <simon@josefsson.org>
2414             Bruno Haible  <bruno@clisp.org>
2415
2416         Fix test-alignof failure.
2417         * lib/alignof.h (alignof_slot): New macro.
2418         (alignof_type): New macro, with the same semantics as the previous
2419         'alignof'.
2420         (alignof): Alias to alignof_slot.
2421         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
2422         check that the results are usable as constant expressions.
2423
2424 2009-05-31  Bruno Haible  <bruno@clisp.org>
2425
2426         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
2427         * tests/test-memchr.c (main): Check that memchr does not read past the
2428         first occurrence of the byte.
2429         * tests/test-strstr.c (main): Update comment.
2430         Suggested by Eric Blake.
2431
2432 2009-05-30  Bruno Haible  <bruno@clisp.org>
2433
2434         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
2435         detail how to use dumpbin.
2436         Reported by David Byron <dbyron@dbyron.com>.
2437
2438 2009-06-02  Simon Josefsson  <simon@josefsson.org>
2439
2440         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
2441
2442 2009-06-02  Simon Josefsson  <simon@josefsson.org>
2443
2444         * m4/manywarnings.m4: Add GCC 4.4 warnings.
2445
2446 2009-05-28  Bruno Haible  <bruno@clisp.org>
2447
2448         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
2449         build-aux/ files.
2450
2451 2009-05-28  Simon Josefsson  <simon@josefsson.org>
2452
2453         * gnulib-tool (func_import): Transform license on build-aux/ files too.
2454
2455 2009-05-27  Simon Josefsson  <simon@josefsson.org>
2456
2457         * gnulib-tool (sed_transform_main_lib_file)
2458         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
2459         regexps.
2460
2461 2009-05-26  Simon Josefsson  <simon@josefsson.org>
2462
2463         * tests/test-strstr.c: Add another self-test.
2464         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
2465         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
2466
2467 2009-05-23  Bruno Haible  <bruno@clisp.org>
2468
2469         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
2470         change.
2471
2472 2009-05-21  Bruno Haible  <bruno@clisp.org>
2473
2474         Simplify use of mode_t varargs.
2475         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
2476         uses 'mode_t' or 'int'.
2477         * lib/openat.c (openat): Likewise.
2478         * lib/open-safer.c (open_safer): Likewise.
2479         * m4/mode_t.m4: New file.
2480         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
2481         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
2482         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
2483         * modules/open (Files): Add m4/mode_t.m4.
2484         * modules/openat (Files): Likewise.
2485         * modules/fcntl-safer (Files): Likewise.
2486         Suggested by Eric Blake.
2487
2488 2009-05-21  Pádraig Brady  <P@draigbrady.com>
2489
2490         * doc/glibc-functions/fallocate.texi: New file.
2491         * doc/gnulib.texi: Include it.
2492
2493 2009-05-21  Eric Blake  <ebb9@byu.net>
2494             Bruno Haible  <bruno@clisp.org>
2495
2496         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
2497         invocations.
2498         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
2499
2500 2009-05-21  Eric Blake  <ebb9@byu.net>
2501             Bruno Haible  <bruno@clisp.org>
2502
2503         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
2504         include_next. Fix of 2008-11-20 commit.
2505         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
2506         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
2507         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
2508         NEXT_MATH_H.
2509         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
2510         instead of NEXT_MATH_H.
2511
2512 2009-05-21  Bruno Haible  <bruno@clisp.org>
2513
2514         Avoid redefinition warnings for SIZE_MAX.
2515         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
2516         Reported by Simon Josefsson.
2517
2518 2009-05-21  Bruno Haible  <bruno@clisp.org>
2519
2520         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
2521         AC_CACHE_VAL.
2522
2523 2009-05-20  Bruno Haible  <bruno@clisp.org>
2524
2525         Make zeroptr.h work on mingw.
2526         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
2527         mprotect.
2528         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
2529         * modules/memchr2-tests (configure.ac): Likewise.
2530         * modules/memcmp-tests (configure.ac): Likewise.
2531         * modules/memmem-tests (configure.ac): Likewise.
2532         * modules/memrchr-tests (configure.ac): Likewise.
2533         Reported by Simon Josefsson.
2534
2535 2009-05-20  Simon Josefsson  <simon@josefsson.org>
2536
2537         * tests/test-glob.c: Include string.h for strcmp prototype.
2538
2539 2009-05-20  Simon Josefsson  <simon@josefsson.org>
2540
2541         * modules/getdelim (Depends-on): Add explicit stdint, although it
2542         was implicitly already pulled in via realloc-posix.
2543         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
2544
2545 2009-05-20  Simon Josefsson  <simon@josefsson.org>
2546
2547         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
2548         G. Christensen" <tgc@jupiterrise.com>.
2549         * m4/sys_socket_h.m4: Check for sa_family_t.
2550         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
2551         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
2552         * tests/test-sys_socket.c: Check that sa_family_t works.
2553
2554 2009-05-18  Eric Blake  <ebb9@byu.net>
2555
2556         maint.mk: allow gnulib_dir in VPATH build
2557         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
2558
2559 2009-05-15  Jim Meyering  <meyering@redhat.com>
2560
2561         maint.mk: Give gnulib_dir a default definition.
2562         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
2563         Thus, most packages no longer need to specify this variable in cfg.mk
2564
2565 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
2566
2567         rename.m4: fix typos that would make non-mingw cross-configure fail
2568         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
2569
2570 2009-05-13  Eric Blake  <ebb9@byu.net>
2571
2572         mmap-anon: avoid out-of-order autoconf expansion
2573         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
2574         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
2575         * modules/memchr-tests (Depends-on): Add extensions.
2576         * modules/memchr2-tests (Depends-on): Add extensions.
2577         * modules/memcmp-tests (Depends-on): Add extensions.
2578         * modules/memmem-tests (Depends-on): Add extensions.
2579         * modules/memrchr-tests (Depends-on): Add extensions.
2580
2581 2009-05-13  Bruno Haible  <bruno@clisp.org>
2582
2583         Make some tests ISO C 99 compliant.
2584         * tests/zerosize-ptr.h: New file.
2585         * tests/test-memchr.c: Include zerosize-ptr.h.
2586         (main): Use a zero-size object pointer instead of NULL.
2587         * tests/test-memchr2.c: Include zerosize-ptr.h.
2588         (main): Use a zero-size object pointer instead of NULL.
2589         * tests/test-memcmp.c: Include zerosize-ptr.h.
2590         (main): Use a zero-size object pointer instead of NULL.
2591         * tests/test-memmem.c: Include zerosize-ptr.h.
2592         (main): Use a zero-size object pointer instead of NULL.
2593         * tests/test-memrchr.c: Include zerosize-ptr.h.
2594         (main): Use a zero-size object pointer instead of NULL.
2595         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
2596         m4/mmap-anon.m4.
2597         (Depends-on): Add getpagesize.
2598         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
2599         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
2600         m4/mmap-anon.m4.
2601         (Depends-on): Add getpagesize.
2602         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
2603         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
2604         m4/mmap-anon.m4.
2605         (Depends-on): Add getpagesize.
2606         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
2607         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
2608         m4/mmap-anon.m4.
2609         (Depends-on): Add getpagesize.
2610         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
2611         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
2612         m4/mmap-anon.m4.
2613         (Depends-on): Add getpagesize.
2614         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
2615
2616 2009-05-12  Bruno Haible  <bruno@clisp.org>
2617
2618         Tests for module 'alignof'.
2619         * modules/alignof-tests: New file.
2620         * tests/test-alignof.c: New file.
2621
2622 2009-05-12  Bruno Haible  <bruno@clisp.org>
2623
2624         Fix alignof macro.
2625         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
2626         vendor compilers that are always correct.
2627
2628 2009-05-12  Bruno Haible  <bruno@clisp.org>
2629
2630         Make the MAP_ANONYMOUS detection work on HP-UX 11.
2631         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
2632         not whether its fully works.
2633
2634 2009-05-12  Bruno Haible  <bruno@clisp.org>
2635
2636         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
2637
2638 2009-05-12  Jim Meyering  <meyering@redhat.com>
2639
2640         * top/maint.mk: Adjust backslash alignment.
2641
2642 2009-05-11  Simon Josefsson  <simon@josefsson.org>
2643
2644         * top/maint.mk: Make $(srcdir)/build-aux configurable.
2645
2646 2009-05-11  Eric Blake  <ebb9@byu.net>
2647
2648         argp: avoid undefined behavior
2649         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
2650         macros.
2651
2652 2009-05-08  Simon Josefsson  <simon@josefsson.org>
2653
2654         * tests/test-vc-list-files-git.sh: Do git config of user.email and
2655         user.name to prevent git commit from complaining.
2656
2657 2009-05-10  Bruno Haible  <bruno@clisp.org>
2658
2659         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
2660         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
2661         it rewrites every file name only once.
2662         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
2663
2664 2009-05-08  Bruno Haible  <bruno@clisp.org>
2665
2666         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
2667         instead of 'max'.
2668
2669 2009-05-08  Simon Josefsson  <simon@josefsson.org>
2670
2671         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
2672         sockaddr_storage test.
2673
2674 2009-05-07  Simon Josefsson  <simon@josefsson.org>
2675
2676         * modules/sys_socket (Makefile.am): Substitute
2677         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
2678         * m4/sys_socket_h.m4: Check for sockaddr_storage.
2679         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
2680         * tests/test-sys_socket.c: Check sockaddr_storage.
2681
2682 2009-05-08  Bruno Haible  <bruno@clisp.org>
2683
2684         New module 'alignof'.
2685         * lib/alignof.h: New file.
2686         * modules/alignof: New file.
2687
2688 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
2689             Bruno Haible  <bruno@clisp.org>
2690
2691         Fix test-file-has-acl on FreeBSD.
2692         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
2693         mask is implicitly added.
2694         * tests/test-file-has-acl.c: Include <signal.h>.
2695         (main): Terminate the test after 5 seconds.
2696         * modules/acl-tests (configure.ac): Check for alarm function.
2697
2698 2009-05-04  Bruno Haible  <bruno@clisp.org>
2699
2700         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
2701         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
2702         * modules/errno (configure.ac): Drop AC_REQUIRE.
2703         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
2704         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
2705
2706 2009-05-04  Simon Josefsson  <simon@josefsson.org>
2707
2708         * modules/glob-tests: New module.
2709         * tests/test-glob.c: Add.
2710
2711 2009-05-04  Simon Josefsson  <simon@josefsson.org>
2712
2713         * modules/fnmatch-tests: New module.
2714         * tests/test-fnmatch.c: Add.
2715
2716 2009-05-04  Eric Blake  <ebb9@byu.net>
2717
2718         maint: make the new no-submodule-changes rule VPATH-safe
2719         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
2720
2721 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
2722             Bruno Haible  <bruno@clisp.org>
2723
2724         acl: Fix infinite loop on FreeBSD.
2725         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
2726         of return value from acl_get_entry.
2727         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
2728         Likewise.
2729
2730 2009-05-03  Bruno Haible  <bruno@clisp.org>
2731
2732         * lib/acl-internal.h (acl_entries): Clarify return value.
2733         * lib/acl_entries.c (acl_entries): Likewise.
2734
2735 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
2736
2737         Bug fix in acl module.
2738         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
2739
2740 2009-05-03  Bruno Haible  <bruno@clisp.org>
2741
2742         Create gperf-generated file in the source dir, not in the build dir.
2743         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
2744         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
2745         * modules/unicase/locale-language (unicase/locale-languages.h):
2746         Likewise.
2747         * modules/unicase/special-casing (unicase/special-casing-table.h):
2748         Likewise.
2749         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
2750         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
2751         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
2752         Reported by Ralf Wildenhues.
2753
2754 2009-05-03  Bruno Haible  <bruno@clisp.org>
2755
2756         * modules/fnmatch (Description, configure.ac): Taken from
2757         fnmatch-posix.
2758         * modules/fnmatch-posix: Turn into a symbolic reference to the
2759         'fnmatch' module, and deprecate.
2760         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
2761
2762 2009-05-03  Bruno Haible  <bruno@clisp.org>
2763
2764         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
2765         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
2766         Reported by Ralf Wildenhues.
2767
2768 2009-05-04  Simon Josefsson  <simon@josefsson.org>
2769
2770         * m4/fnmatch.m4: Fix fnmatch re-define.
2771
2772 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
2773
2774         priv-set: new module and tests; adapt write-any-file
2775         * lib/priv-set.c: New file.
2776         * lib/priv-set.h: New file.
2777         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
2778         * lib/write-any-file.c: Simplify by using priv-set module.
2779         * m4/priv-set.m4: New file.
2780         * modules/priv-set: New file.
2781         * modules/unlinkdir: Add dependency on priv-set module.
2782         * modules/write-any-file: Likewise.
2783
2784         Tests for module 'priv-set'.
2785         * modules/priv-set-tests: New file.
2786         * tests/test-priv-set.c: New file.
2787
2788 2009-05-03  Jim Meyering  <meyering@redhat.com>
2789             Bruno Haible  <bruno@clisp.org>
2790
2791         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
2792         use the converted UTF-8 variant of the name instead.
2793
2794 2009-05-03  Jim Meyering  <meyering@redhat.com>
2795
2796         tests: tighten some getdate tests
2797         * tests/test-getdate.c (main): Tighten tests: require equality,
2798         not just greater than.  Set TZ envvar to UTC0.
2799
2800 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
2801
2802         getdate: correctly interpret "next monday" when run on a Monday
2803         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
2804         that e.g., "next tues" (when run on a tuesday) results in a date
2805         that is one week in the future, and not today's date.
2806         I.e., add a week when the wday is the same as the current one.
2807         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
2808         and earlier by Martin Bernreuther and Jan Minář.
2809         * tests/test-getdate.c (main): Check that "next DAY" is always in
2810         the future and that "last DAY" is always in the past.
2811
2812 2009-05-02  Jim Meyering  <meyering@redhat.com>
2813
2814         build: ensure that a release build fails when a submodule is unclean
2815         * top/maint.mk (no-submodule-changes): New rule.
2816         (alpha beta major): Depend on it.
2817
2818 2009-05-02  Bruno Haible  <bruno@clisp.org>
2819
2820         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
2821         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
2822         shell variable gl_fnmatch_required to detect which variant is
2823         requested.
2824         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
2825         gl_FUNC_FNMATCH_POSIX.
2826         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
2827         exclude fnmatch-posix.
2828
2829 2009-05-02  Bruno Haible  <bruno@clisp.org>
2830
2831         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
2832         * modules/mbsrtowcs (License): Change to LGPLv2+.
2833         * modules/strnlen1 (License): Likewise.
2834         Reported by Simon Josefsson.
2835
2836 2009-05-02  Bruno Haible  <bruno@clisp.org>
2837
2838         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
2839         "cross".
2840         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
2841         gnulib-tool was called with option --source-base=lib.
2842
2843 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2844
2845         Use automake *-local hooks without commands, for extensibility.
2846         * modules/localcharset (Makefile.am): Rename install-exec-local
2847         rule to install-exec-localcharset, and make it a prerequisite of
2848         install-exec-local.  Likewise, rename the uninstall-local rule to
2849         uninstall-localcharset, and make it a prerequisite of the former.
2850
2851 2009-05-01  Bruno Haible  <bruno@clisp.org>
2852
2853         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
2854         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
2855         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
2856         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
2857         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
2858         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
2859         m4/locale-zh.m4, m4/codeset.m4.
2860
2861         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
2862         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
2863         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
2864         m4/locale-zh.m4.
2865
2866         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
2867         REPLACE_WCRTOMB if mbstate_t must be replaced.
2868         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
2869         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
2870
2871 2009-05-01  Bruno Haible  <bruno@clisp.org>
2872
2873         Avoid compiler warnings when redefining macros defined by <libintl.h>.
2874         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
2875         dngettext, dcngettext, textdomain, bindtextdomain,
2876         bind_textdomain_codeset): Undefine before redefining.
2877
2878 2009-04-30  Bruno Haible  <bruno@clisp.org>
2879
2880         Fix bug introduced on 2009-04-25.
2881         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
2882         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
2883         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
2884         is defined.
2885         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
2886         is defined.
2887         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
2888         is defined.
2889         Reported by Elbert_Pol <elbert.pol@gmail.com>.
2890
2891 2009-04-28  Bruno Haible  <bruno@clisp.org>
2892
2893         Comment tweaks.
2894         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
2895         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
2896         * lib/unicase.h (u*_casexfrm): Likewise.
2897         Reported by Paolo Bonzini.
2898
2899 2009-04-28  Bruno Haible  <bruno@clisp.org>
2900
2901         Fix a compilation error.
2902         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
2903         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
2904         Reported by Jim Meyering.
2905
2906 2009-04-27  Bruno Haible  <bruno@clisp.org>
2907
2908         New module 'libunistring'.
2909         * modules/libunistring: New file.
2910         * m4/libunistring.m4: New file.
2911         * MODULES.html.sh (Unicode string functions): Add it.
2912
2913 2009-04-27  Eric Blake  <ebb9@byu.net>
2914
2915         maint.mk: allow package-specific header to provide <config.h>
2916         * top/maint.mk (sc_require_config_h): New variable.
2917         (sc_require_config_h, sc_require_config_h_first): Use it.
2918
2919 2009-04-27  Simon Josefsson  <simon@josefsson.org>
2920
2921         * top/maint.mk (sc_avoid_if_before_free): Except
2922         useless-if-before-free script.
2923
2924 2009-04-27  Eric Blake  <ebb9@byu.net>
2925
2926         maintainer-makefile: depend on all required helper scripts
2927         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
2928         useless-if-before-free.
2929         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
2930         version, rather than assuming gnulib checkout is available.
2931         Reported by Simen Josefsson.
2932
2933 2009-04-26  Bruno Haible  <bruno@clisp.org>
2934
2935         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
2936         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
2937         "../" or "..".
2938
2939 2009-04-26  Bruno Haible  <bruno@clisp.org>
2940
2941         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
2942         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
2943         AC_LIB_HAVE_LINKFLAGS.
2944
2945 2009-04-26  Bruno Haible  <bruno@clisp.org>
2946
2947         Simplify calling convention of u*_conv_from_encoding.
2948         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
2949         u32_conv_from_encoding): Expect a resultbuf argument and return the
2950         result directly as a pointer.
2951         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
2952         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
2953         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
2954         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
2955         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
2956         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
2957         Update.
2958         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
2959         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
2960         * lib/vasnprintf.c (VASNPRINTF): Update.
2961         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
2962         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
2963         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
2964         * NEWS: Mention the change.
2965
2966 2009-04-26  Bruno Haible  <bruno@clisp.org>
2967
2968         Simplify calling convention of u*_conv_to_encoding.
2969         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
2970         u32_conv_to_encoding): Expect a resultbuf argument and return the
2971         result directly as a pointer.
2972         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
2973         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
2974         freeing scaled_offsets if mem_iconveha failed.
2975         * lib/unicase/u-casexfrm.h (FUNC): Update.
2976         * lib/uninorm/u-normxfrm.h (FUNC): Update.
2977         * lib/vasnprintf.c (VASNPRINTF): Update.
2978         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
2979         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
2980         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
2981         * NEWS: Mention the change.
2982
2983 2009-04-26  Bruno Haible  <bruno@clisp.org>
2984
2985         Avoid test failures on AIX and OSF/1.
2986         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
2987         malloc(0).
2988         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
2989         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
2990         Likewise.
2991         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
2992         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
2993         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
2994         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
2995         * doc/posix-functions/malloc.texi: Document the portability problem
2996         related to malloc(0).
2997
2998 2009-04-26  Bruno Haible  <bruno@clisp.org>
2999
3000         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
3001         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
3002         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
3003
3004 2009-04-25  Bruno Haible  <bruno@clisp.org>
3005
3006         Avoid link error when creating a namespace clean library.
3007         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
3008         as macro with arguments if already defined as an alias.
3009         * lib/signbitf.c (gl_signbitf): Don't undefine.
3010         * lib/signbitd.c (gl_signbitd): Don't undefine.
3011         * lib/signbitl.c (gl_signbitl): Don't undefine.
3012
3013 2009-04-25  Jim Meyering  <meyering@redhat.com>
3014
3015         vc-list-files: fix another quoting bug
3016         * build-aux/vc-list-files: Avoid sed backslash expansion
3017         of pathological directory names.
3018
3019 2009-04-25  Eric Blake  <ebb9@byu.net>
3020
3021         vc-list-files: fix shell quoting error
3022         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
3023         timestamp.
3024
3025 2009-04-25  Jim Meyering  <meyering@redhat.com>
3026
3027         vc-list-files: restore lost functionality with subdir argument
3028         * build-aux/vc-list-files: When given a non-"." sub-directory
3029         argument, substitute the $dir/ prefix back onto each resulting name.
3030         Otherwise, coreutils' root_tests check would fail.
3031
3032 2009-04-24  Eric Blake  <ebb9@byu.net>
3033
3034         vc-list-files: ignore git symlinks
3035         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
3036         than ls-files, to ignore git symlinks.
3037
3038         maint.mk: import improvements from m4
3039         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
3040         (move_if_change): Delete unused macro.
3041         (news-date-check, vc-diff-check): Support VPATH builds.
3042         (announcement): Likewise.  Split --bootstrap-tools list...
3043         (boostrap-tools): ...into separate list, which can be overridden
3044         in cfg.mk.
3045         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
3046         requiring dependency on useless-if-before-free module.
3047         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
3048         Support VPATH builds.
3049
3050 2009-04-24  Jim Meyering  <meyering@redhat.com>
3051
3052         maint.mk: remove coreutils-specific rules and variables
3053         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
3054         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
3055         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
3056
3057         maint.mk: remove obsolete rule
3058         * top/maint.mk (rel-check): Remove rule.
3059         (WGET, WGETFLAGS): Remove now-unused variables.
3060
3061 2009-04-24  Simon Josefsson  <simon@josefsson.org>
3062
3063         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
3064         consistency.
3065
3066         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
3067         '$(PATH_SEPARATOR)' instead of ':'.
3068
3069 2009-04-24  Simon Josefsson  <simon@josefsson.org>
3070
3071         * lib/getopt1.c (main): Use 'const' for static array.
3072
3073 2009-04-24  Simon Josefsson  <simon@josefsson.org>
3074
3075         * top/maint.mk: Sync with coreutils.
3076         * NEWS: Explain incompatibilities.
3077
3078 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3079             Bruno Haible  <bruno@clisp.org>
3080
3081         Fix cross-compilation results.
3082         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
3083         statement, as third argument of AC_TRY_RUN.
3084         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
3085         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
3086         Likewise.
3087         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
3088         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
3089         Likewise.
3090         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
3091         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
3092         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
3093
3094 2009-04-20  Bruno Haible  <bruno@clisp.org>
3095
3096         Avoid test failure on mingw.
3097         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
3098
3099 2009-04-20  Bruno Haible  <bruno@clisp.org>
3100
3101         Avoid compilation error on mingw.
3102         * modules/localename-tests (Depends-on): Add locale.
3103
3104 2009-04-19  Bruno Haible  <bruno@clisp.org>
3105
3106         Support for building a shared library on Windows platforms.
3107         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
3108         (main): Test the presence of UNINORM_NFC here.
3109         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
3110         (main): Test the presence of UNINORM_NFD here.
3111         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
3112         (main): Test the presence of UNINORM_NFKC here.
3113         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
3114         (main): Test the presence of UNINORM_NFKD here.
3115
3116 2009-04-19  Bruno Haible  <bruno@clisp.org>
3117
3118         Avoid a compiler warning.
3119         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
3120         Change type of variable 'sequence'.
3121
3122 2009-04-19  Bruno Haible  <bruno@clisp.org>
3123
3124         * modules/configmake (Makefile.am): When the contents of configmake.h
3125         does not change, arrange to preserve its modification time.
3126
3127 2009-04-17  Simon Josefsson  <simon@josefsson.org>
3128
3129         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
3130         gettext domain.
3131
3132 2009-04-16  Jim Meyering  <meyering@redhat.com>
3133
3134         useless-if-before-free: improve conversion code
3135         * build-aux/useless-if-before-free: Adjust code-in-comment to match
3136         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
3137
3138 2009-04-14  Bruno Haible  <bruno@clisp.org>
3139
3140         * modules/fcntl (Depends-on): Add extensions.
3141         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
3142
3143 2009-04-12  Ben Pfaff  <blp@gnu.org>
3144
3145         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
3146         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
3147
3148 2009-03-20  Ben Pfaff  <blp@gnu.org>
3149
3150         Make rename replace existing destinations on Windows.
3151         * m4/rename.m4: Add test for Mingw.
3152         * lib/rename.c: Add rename replacement that uses MoveFileEx with
3153         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
3154         * doc/posix-functions/rename.texi: Document.
3155
3156 2009-04-10  Bruno Haible  <bruno@clisp.org>
3157
3158         New include file "iconveh.h".
3159         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
3160         * lib/striconveh.h: Include it.
3161         (enum iconv_ilseq_handler): Remove definition.
3162         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
3163         striconveh.h.
3164         * lib/striconveha.c: Include striconveh.h.
3165         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
3166         * modules/striconveh (Files): Add lib/iconveh.h.
3167         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
3168         lib/striconveh.h.
3169
3170 2009-04-10  Bruno Haible  <bruno@clisp.org>
3171
3172         * lib/uniconv.h: Update comment.
3173
3174 2009-04-10  Bruno Haible  <bruno@clisp.org>
3175
3176         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
3177         always.
3178         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
3179         * lib/unistr/u16-mbtouc-aux.c: Likewise.
3180         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
3181         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
3182         "unistring-notinline.h", so that the function gets defined always.
3183         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
3184         * lib/unistr/u8-uctomb.c: Likewise.
3185         * lib/unistr/u16-mbtouc.c: Likewise.
3186         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
3187         * lib/unistr/u16-uctomb.c: Likewise.
3188         * lib/unistr/u32-mbtouc.c: Likewise.
3189         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
3190         * lib/unistr/u32-uctomb.c: Likewise.
3191
3192 2009-04-10  Bruno Haible  <bruno@clisp.org>
3193
3194         Mark 'utime' obsolete.
3195         * modules/utime (Status, Notice): New sections.
3196         Suggested by Jim Meyering.
3197
3198         Fix cross-compile guess for utime test.
3199         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
3200         autoconf.
3201         * doc/posix-functions/utime.texi: Give more precisions.
3202         Reported by Jan <ipif@ymail.com>.
3203
3204 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
3205
3206         filevercmp: correct today's change
3207         * lib/filevercmp.c: Also handle coreutils' test inputs.
3208         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
3209
3210         Fix regression in 'filevercmp' module. Thanks Sven Joachim
3211         for reporting it.
3212         * lib/filevercmp.c: Special handle for "", "." and "..".
3213         * tests/test-filevercmp.c: Enlarge the set suite.
3214
3215 2009-04-07  Jim Meyering  <meyering@redhat.com>
3216
3217         useless-if-before-free: show how to remove braced useless free, too
3218         * build-aux/useless-if-before-free: still only in a comment, though.
3219
3220 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
3221
3222         maint.mk: import changes to syntax-check macros from coreutils
3223         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
3224         Use them in the relevant macros.
3225
3226 2009-04-06  Bruno Haible  <bruno@clisp.org>
3227
3228         Fix unportable use of bit-fields.
3229         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
3230         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
3231         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
3232
3233 2009-04-06  Bruno Haible  <bruno@clisp.org>
3234
3235         Avoid test failures on AIX and OSF/1.
3236         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
3237         that malloc(0) = NULL.
3238         * tests/unicase/test-u8-tolower.c (check): Likewise.
3239         * tests/unicase/test-u8-totitle.c (check): Likewise.
3240         * tests/unicase/test-u8-toupper.c (check): Likewise.
3241         * tests/unicase/test-u16-casefold.c (check): Likewise.
3242         * tests/unicase/test-u16-tolower.c (check): Likewise.
3243         * tests/unicase/test-u16-totitle.c (check): Likewise.
3244         * tests/unicase/test-u16-toupper.c (check): Likewise.
3245         * tests/unicase/test-u32-casefold.c (check): Likewise.
3246         * tests/unicase/test-u32-tolower.c (check): Likewise.
3247         * tests/unicase/test-u32-totitle.c (check): Likewise.
3248         * tests/unicase/test-u32-toupper.c (check): Likewise.
3249         * tests/uninorm/test-u8-nfc.c (check): Likewise.
3250         * tests/uninorm/test-u8-nfd.c (check): Likewise.
3251         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
3252         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
3253         * tests/uninorm/test-u16-nfc.c (check): Likewise.
3254         * tests/uninorm/test-u16-nfd.c (check): Likewise.
3255         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
3256         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
3257         * tests/uninorm/test-u32-nfc.c (check): Likewise.
3258         * tests/uninorm/test-u32-nfd.c (check): Likewise.
3259         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
3260         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
3261
3262 2009-04-05  Bruno Haible  <bruno@clisp.org>
3263
3264         Work around an autoconf limitation.
3265         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
3266         comment line if it would be longer than 3 KB.
3267
3268 2009-04-05  Bruno Haible  <bruno@clisp.org>
3269
3270         Avoid test failure with libiconv-1.13.
3271         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
3272         of the expected test results.
3273
3274 2009-04-05  Bruno Haible  <bruno@clisp.org>
3275
3276         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
3277         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
3278         that it should be installed.
3279
3280 2009-04-05  Bruno Haible  <bruno@clisp.org>
3281
3282         * gnulib-tool: New option --copy-file.
3283         (func_usage): Document it.
3284         (func_dest_tmpfilename): Moved out of func_import.
3285         (func_add_file, func_update_file): New functions, extracted from
3286         func_import.
3287         (func_import): Update.
3288
3289 2009-04-05  Karl Berry  <karl@gnu.org>
3290
3291         * README: prominently mention gnulib-tool.
3292         Rearrange sections so getting the code is near the top.
3293
3294 2009-04-05  Bruno Haible  <bruno@clisp.org>
3295
3296         * lib/unicase.h: Mention u*_cmp2.
3297         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
3298         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
3299         * lib/unicase/ulc-casecmp.c: Likewise.
3300         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
3301         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
3302         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
3303         unistr/u8-cmp.
3304         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
3305         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
3306         unistr/u16-cmp.
3307         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
3308         unistr/u32-cmp.
3309
3310         * lib/uninorm.h: Mention u*_cmp2.
3311         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
3312         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
3313         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
3314         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
3315         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
3316         unistr/u8-cmp.
3317         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
3318         unistr/u16-cmp.
3319         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
3320         unistr/u32-cmp.
3321
3322         New module 'unistr/u32-cmp2'.
3323         * lib/unistr/u32-cmp2.c: New file.
3324         * modules/unistr/u32-cmp2: New file.
3325
3326         New module 'unistr/u16-cmp2'.
3327         * lib/unistr/u16-cmp2.c: New file.
3328         * modules/unistr/u16-cmp2: New file.
3329
3330         New module 'unistr/u8-cmp2'.
3331         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
3332         * lib/unistr/u8-cmp2.c: New file.
3333         * lib/unistr/u-cmp2.h: New file.
3334         * modules/unistr/u8-cmp2: New file.
3335
3336 2009-04-05  Bruno Haible  <bruno@clisp.org>
3337
3338         * lib/unictype.h (uc_property_is_valid): New macro.
3339         * tests/unictype/test-pr_byname.c (main): Use it.
3340
3341         * lib/unistr.h: Doc fixes.
3342         * lib/uniconv.h: Doc fixes.
3343         * lib/unictype.h: Doc fixes.
3344
3345 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
3346
3347         Port coreutils 7.2 to Solaris 8.
3348
3349         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
3350         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
3351         for Solaris 8.  This is a bit of a hack, as it means it's the
3352         caller's responsibility to add -lnsl if needed, but most likely it
3353         won't be needed since only getaddrinfo uses this and getaddrinfo
3354         isn't needed on Solaris 8.
3355
3356         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
3357         problem to Solaris 8 encountered with coreutils 7.2, which
3358         resulted in a message "fnmatch.c:292: warning: passing argument 4
3359         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
3360         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
3361
3362 2009-04-03  Simon Josefsson  <simon@josefsson.org>
3363
3364         * m4/ld-version-script.m4: Add FIXME comment.
3365
3366 2009-04-02  Simon Josefsson  <simon@josefsson.org>
3367
3368         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
3369         SOVERSION variable.
3370
3371 2009-04-02  Bruno Haible  <bruno@clisp.org>
3372
3373         * Makefile (info, html, dvi, pdf): Combine the rules.
3374         Suggested by Jim Meyering.
3375
3376 2009-04-01  Bruno Haible  <bruno@clisp.org>
3377
3378         * Makefile (info, html, dvi, pdf): New targets.
3379         Reported by Reuben Thomas <rrt@sc3d.org>.
3380
3381 2009-04-01  Bruno Haible  <bruno@clisp.org>
3382
3383         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
3384         can be put into PATH.
3385         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
3386
3387 2009-04-01  Bruno Haible  <bruno@clisp.org>
3388
3389         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
3390
3391 2009-04-01  Bruno Haible  <bruno@clisp.org>
3392
3393         Rename module 'visibility'.
3394         * modules/lib-symbol-visibility: Renamed from modules/visibility.
3395         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
3396         * doc/gnulib.texi: Update.
3397         * MODULES.html.sh (Misc): Update.
3398         * NEWS: Mention the change.
3399
3400 2009-04-01  Simon Josefsson  <simon@josefsson.org>
3401
3402         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
3403         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
3404         Eric Blake <ebb9@byu.net> for review.
3405         * MODULES.html.sh: Add lib-msvc-compat.
3406         * doc/gnulib.texi: Link to new section.
3407         * m4/ld-output-def.m4: New file.
3408         * doc/ld-output-def.texi: New file.
3409
3410 2009-04-01  Simon Josefsson  <simon@josefsson.org>
3411
3412         Rename ld-version-script to lib-symbol-versions.  Suggested by
3413         Bruno Haible <bruno@clisp.org>.
3414         * modules/ld-version-script: Renamed to lib-symbol-versions.
3415         * doc/ld-version-script.texi: Fix module name.
3416         * MODULES.html.sh: Add lib-symbol-versions.
3417
3418 2009-03-31  Simon Josefsson  <simon@josefsson.org>
3419
3420         * modules/u64-tests: New file.
3421         * tests/test-u64.c: New file.
3422
3423 2009-03-04  Simon Josefsson  <simon@josefsson.org>
3424
3425         * MODULES.html.sh: Mention u64.
3426         * modules/u64: New module.
3427         * modules/crypto/sha512: Depend on u64 module instead of providing
3428         u64.h.
3429
3430 2009-03-27  Eric Blake  <ebb9@byu.net>
3431
3432         test-strerror: make debugging EAI_SYSTEM easier
3433         * modules/getaddrinfo-tests (Depends-on): Add strerror.
3434         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
3435         failure was EAI_SYSTEM.
3436
3437 2009-03-25  Bruno Haible  <bruno@clisp.org>
3438
3439         Fix a problem with --enable-relocatable on Solaris 7.
3440         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
3441         since 2008-02-24.
3442
3443 2009-03-25  Eric Blake  <ebb9@byu.net>
3444
3445         test-sockets: avoid gcc warning
3446         * tests/test-sockets.c (main): Silence compiler warning.
3447
3448 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
3449
3450         New modules nproc, pthread, contributed by Glen Lenker.
3451
3452         * MODULES.html.sh: Add pthread, nproc.
3453         * lib/nproc.c: New file.
3454         * lib/nproc.h: New file.
3455         * lib/pthread.in.h: New file.
3456         * m4/pthread.m4: New file.
3457         * modules/nproc: New file.
3458         * modules/pthread: New file.
3459
3460 2009-03-24  Simon Josefsson  <simon@josefsson.org>
3461
3462         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
3463         New variable.
3464
3465 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
3466
3467         filevercmp: handle simple~ and numbered.~3~ backup suffixes
3468         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
3469         * tests/test-filevercmp.c: Add tests for backup suffixes.
3470
3471 2009-03-24  Simon Josefsson  <simon@josefsson.org>
3472
3473         * modules/stdlib (Depends-on): Add stdint, needed when defining
3474         struct random_data on, for example, HP-UX 10.20.  Reported by
3475         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3476
3477 2009-03-24  Simon Josefsson  <simon@josefsson.org>
3478
3479         * lib/readline.c (readline): Call fflush on stdout after printing
3480         prompt.
3481
3482 2009-03-20  Bruno Haible  <bruno@clisp.org>
3483
3484         Remove dependency from 'close' module to -lws2_32 on native Windows.
3485         * lib/close-hook.h: New file.
3486         * lib/close-hook.c: New file.
3487         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
3488         w32sock.h.
3489         (_gl_close_fd_maybe_socket): Remove function.
3490         (rpl_close): Invoke execute_all_close_hooks instead of
3491         _gl_close_fd_maybe_socket.
3492         * lib/sockets.c: Include close-hook.h, w32sock.h.
3493         (close_fd_maybe_socket): New function, essentially from lib/close.c.
3494         (close_sockets_hook): New variable.
3495         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
3496         (gl_sockets_cleanup): Unregister it.
3497         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
3498         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
3499         * modules/close-hook: New file.
3500         * modules/close (Files): Remove lib/w32sock.h.
3501         (Depends-on): Add close-hook.
3502         (Link): Remove section.
3503         * modules/sockets (Files): Add lib/w32sock.h.
3504         (Depends-on): Add close-hook.
3505         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
3506         invocation.
3507         * NEWS: Mention that LIB_CLOSE is gone.
3508
3509 2009-03-23  Eric Blake  <ebb9@byu.net>
3510
3511         signal-tests: test previous patch
3512         * tests/test-signal.c: New file.
3513         * modules/signal-tests: Likewise.
3514
3515         signal.h: always support 'volatile sig_atomic_t'
3516         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
3517         (gl_SIGNAL_H_DEFAULTS): Add a default.
3518         * modules/signal (Makefile.am): Substitute if needed.
3519         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
3520         users can blindly add volatile.
3521         * doc/posix-headers/signal.texi (signal.h): Document it.
3522         Reported by Matthew Woehlke.
3523
3524 2009-03-23  Jim Meyering  <meyering@redhat.com>
3525
3526         pathmax: PATH_MAX: use pathconf only when available
3527         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
3528         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
3529         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
3530         This avoids a link failure in a PSP cross-compilation environment
3531         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
3532
3533         * lib/vasnprintf.c (divide): Fix typo in comment.
3534
3535 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3536
3537         * gnulib-tool (func_filter_filelist): Fix comment.
3538
3539 2009-03-20  Bruno Haible  <bruno@clisp.org>
3540
3541         Make sockets.h self-contained.
3542         * lib/sockets.c: Include sockets.h first.
3543         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
3544
3545 2009-03-19  Eric Blake  <ebb9@byu.net>
3546
3547         doc: mention more functions added in cygwin 1.7.0
3548         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
3549         addition.
3550         * doc/posix-functions/log2f.texi: Likewise.
3551
3552 2009-03-19  Jim Meyering  <meyering@redhat.com>
3553
3554         fsusage: avoid syntax error due to statement-before-declaration
3555         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
3556         after all declarations.  Reported by Matthew Woehlke in
3557         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
3558
3559 2009-03-18  Eric Blake  <ebb9@byu.net>
3560
3561         build-aux/compile: sync from automake
3562         * build-aux/compile: New file, from automake.
3563         * config/srclist.txt: Mention build-aux/compile.
3564
3565 2009-03-17  Bruno Haible  <bruno@clisp.org>
3566
3567         * lib/git-merge-changelog.c: Fix typo in comment.
3568         Reported by Reuben Thomas <rrt@sc3d.org>.
3569
3570 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
3571
3572         * m4/regex.m4: update and improve help for
3573         --without-included-regex.
3574
3575 2009-03-17  Simon Josefsson  <simon@josefsson.org>
3576
3577         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
3578         failure on missing include files.
3579
3580 2009-03-17  Eric Blake  <ebb9@byu.net>
3581
3582         doc: mention more functions added in cygwin 1.7.0
3583         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
3584         addition.
3585         * doc/posix-functions/fwscanf.texi: Likewise.
3586         * doc/posix-functions/swprintf.texi: Likewise.
3587         * doc/posix-functions/swscanf.texi: Likewise.
3588         * doc/posix-functions/vfwprintf.texi: Likewise.
3589         * doc/posix-functions/vfwscanf.texi: Likewise.
3590         * doc/posix-functions/vswprintf.texi: Likewise.
3591         * doc/posix-functions/vswscanf.texi: Likewise.
3592         * doc/posix-functions/vwprintf.texi: Likewise.
3593         * doc/posix-functions/vwscanf.texi: Likewise.
3594         * doc/posix-functions/wcscasecmp.texi: Likewise.
3595         * doc/posix-functions/wcsdup.texi: Likewise.
3596         * doc/posix-functions/wcsftime.texi: Likewise.
3597         * doc/posix-functions/wcsncasecmp.texi: Likewise.
3598         * doc/posix-functions/wprintf.texi: Likewise.
3599         * doc/posix-functions/wscanf.texi: Likewise.
3600         * doc/glibc-functions/gethostbyname2.texi: Likewise.
3601
3602 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3603
3604         maint.mk: really add $(AM_MAKEFLAGS)
3605         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
3606         was inadvertently omitted in the last commit.
3607         Spotted by Bruno Haible.
3608
3609         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
3610         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
3611         $(AM_MAKEFLAGS)' rather than plain `make'.
3612
3613         gnulib-tool: execute $MAKE not make
3614         * gnulib-tool: Default $MAKE to 'make'.
3615         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
3616         than make.  Initialize $MAKE in the do-autobuild script.
3617
3618         gnulib-tool: use $MAKE not make in generated files
3619         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
3620         make, in generated files.  Initialize $MAKE in the do-autobuild
3621         script.
3622
3623         * top/GNUmakefile (_have-git-version-gen): Fix typo.
3624
3625         GNUmakefile: disable parallelism only for multiple, recursive targets
3626         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
3627         additions in the Makefile.
3628         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
3629         by Automake.
3630         (.NOTPARALLEL): Only disable parallel builds if multiple targets
3631         are listed on the command line and at least one of them is
3632         listed in $(ALL_RECURSIVE_TARGETS).
3633
3634 2009-03-14  Bruno Haible  <bruno@clisp.org>
3635
3636         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
3637         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
3638         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
3639         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
3640         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
3641         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
3642         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
3643         unistr/u8-uctomb.
3644         * modules/unistr/u8-strchr (Depends-on): Likewise.
3645         * modules/unistr/u8-strrchr (Depends-on): Likewise.
3646         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
3647         unistr/u16-uctomb.
3648         * modules/unistr/u16-strchr (Depends-on): Likewise.
3649         * modules/unistr/u16-strrchr (Depends-on): Likewise.
3650
3651 2009-03-12  Bruno Haible  <bruno@clisp.org>
3652
3653         Work around select() bug on Interix 3.5.
3654         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
3655         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
3656         * m4/select.m4: New file.
3657         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
3658         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
3659         * modules/select (Files): Add m4/select.m4.
3660         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
3661         * modules/nanosleep (Depends-on): Add select.
3662         * modules/poll (Depends-on): Likewise.
3663         * doc/posix-functions/select.texi: Mention the Interix bug.
3664         Reported by Markus Duft <mduft@gentoo.org>.
3665
3666         * lib/select.c: Renamed from lib/winsock-select.c.
3667         * modules/select (Files): Add lib/select.c, remove
3668         lib/winsock-select.c.
3669         (configure.ac): Update.
3670
3671 2009-03-12  Jim Meyering  <meyering@redhat.com>
3672
3673         avoid gcc warnings about unused macro definitions
3674         * lib/readtokens.c (STREQ): Remove unused definition.
3675         * lib/xmalloc.c (SIZE_MAX): Likewise.
3676         * lib/openat-die.c (N_): Likewise.
3677         * lib/mountlist.c (SIZE_MAX): Remove definition.
3678         Instead, include <stdint.h>.
3679         * lib/readutmp.c: Likewise.
3680         * modules/readutmp (Depends-on): Add stdint.
3681         * modules/mountlist (Depends-on): Add stdint.
3682         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
3683
3684 2009-03-10  Bruno Haible  <bruno@clisp.org>
3685
3686         Tests for module 'mbmemcasecoll'.
3687         * modules/mbmemcasecoll-tests: New file.
3688         * tests/test-mbmemcasecoll1.sh: New file.
3689         * tests/test-mbmemcasecoll2.sh: New file.
3690         * tests/test-mbmemcasecoll3.sh: New file.
3691         * tests/test-mbmemcasecoll.c: New file.
3692
3693         New module 'mbmemcasecoll'.
3694         * lib/mbmemcasecoll.h: New file.
3695         * lib/mbmemcasecoll.c: New file.
3696         * modules/mbmemcasecoll: New file.
3697
3698         * tests/test-mbmemcasecmp.h: New file, extracted from
3699         tests/test-mbmemcasecmp.c.
3700         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
3701         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
3702         (main): Update.
3703         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
3704
3705 2009-03-09  Bruno Haible  <bruno@clisp.org>
3706
3707         Tests for module 'mbmemcasecmp'.
3708         * modules/mbmemcasecmp-tests: New file.
3709         * tests/test-mbmemcasecmp1.sh: New file.
3710         * tests/test-mbmemcasecmp2.sh: New file.
3711         * tests/test-mbmemcasecmp3.sh: New file.
3712         * tests/test-mbmemcasecmp.c: New file.
3713
3714         New module 'mbmemcasecmp'.
3715         * lib/mbmemcasecmp.h: New file.
3716         * lib/mbmemcasecmp.c: New file.
3717         * modules/mbmemcasecmp: New file.
3718
3719 2009-03-09  Bruno Haible  <bruno@clisp.org>
3720
3721         Tests for module 'unicase/ulc-casecoll'.
3722         * modules/unicase/ulc-casecoll-tests: New file.
3723         * tests/unicase/test-ulc-casecoll1.sh: New file.
3724         * tests/unicase/test-ulc-casecoll2.sh: New file.
3725         * tests/unicase/test-ulc-casecoll.c: New file.
3726
3727         New module 'unicase/ulc-casecoll'.
3728         * lib/unicase.h (ulc_casecoll): New declaration.
3729         * lib/unicase/ulc-casecoll.c: New file.
3730         * modules/unicase/ulc-casecoll: New file.
3731
3732         New module 'unicase/ulc-casexfrm'.
3733         * lib/unicase.h (ulc_casexfrm): New declaration.
3734         * lib/unicase/ulc-casexfrm.c: New file.
3735         * modules/unicase/ulc-casexfrm: New file.
3736
3737 2009-03-09  Bruno Haible  <bruno@clisp.org>
3738
3739         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
3740         invocations.
3741
3742         * m4/mbscasecmp.m4: Remove file.
3743         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
3744         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
3745
3746         * m4/mbscasestr.m4: Remove file.
3747         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
3748         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
3749
3750         * m4/mbschr.m4: Remove file.
3751         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
3752         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
3753
3754         * m4/mbscspn.m4: Remove file.
3755         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
3756         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
3757
3758         * m4/mbslen.m4: Remove file.
3759         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
3760         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
3761
3762         * m4/mbsncasecmp.m4: Remove file.
3763         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
3764         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
3765
3766         * m4/mbsnlen.m4: Remove file.
3767         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
3768         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
3769
3770         * m4/mbspbrk.m4: Remove file.
3771         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
3772         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
3773
3774         * m4/mbspcasecmp.m4: Remove file.
3775         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
3776         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
3777
3778         * m4/mbsrchr.m4: Remove file.
3779         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
3780         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
3781
3782         * m4/mbssep.m4: Remove file.
3783         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
3784         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
3785
3786         * m4/mbsspn.m4: Remove file.
3787         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
3788         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
3789
3790         * m4/mbsstr.m4: Remove file.
3791         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
3792         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
3793
3794         * m4/mbstok_r.m4: Remove file.
3795         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
3796         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
3797
3798         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
3799
3800         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
3801         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
3802
3803         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
3804
3805 2009-03-08  Bruno Haible  <bruno@clisp.org>
3806
3807         Tests for module 'unicase/ulc-casecmp'.
3808         * modules/unicase/ulc-casecmp-tests: New file.
3809         * tests/unicase/test-ulc-casecmp1.sh: New file.
3810         * tests/unicase/test-ulc-casecmp2.sh: New file.
3811         * tests/unicase/test-ulc-casecmp.c: New file.
3812
3813         New module 'unicase/ulc-casecmp'.
3814         * lib/unicase.h (ulc_casecmp): New declaration.
3815         * lib/unicase/ulc-casecmp.c: New file.
3816         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
3817         'const SRC_UNIT *'.
3818         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
3819         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
3820         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
3821         * modules/unicase/ulc-casecmp: New file.
3822
3823         Tests for module 'unicase/u32-is-cased'.
3824         * modules/unicase/u32-is-cased-tests: New file.
3825         * tests/unicase/test-u32-is-cased.c: New file.
3826
3827         Tests for module 'unicase/u16-is-cased'.
3828         * modules/unicase/u16-is-cased-tests: New file.
3829         * tests/unicase/test-u16-is-cased.c: New file.
3830
3831         Tests for module 'unicase/u8-is-cased'.
3832         * modules/unicase/u8-is-cased-tests: New file.
3833         * tests/unicase/test-u8-is-cased.c: New file.
3834         * tests/unicase/test-is-cased.h: New file.
3835
3836         New module 'unicase/u32-is-cased'.
3837         * lib/unicase/u32-is-cased.c: New file.
3838         * modules/unicase/u32-is-cased: New file.
3839
3840         New module 'unicase/u16-is-cased'.
3841         * lib/unicase/u16-is-cased.c: New file.
3842         * modules/unicase/u16-is-cased: New file.
3843
3844         New module 'unicase/u8-is-cased'.
3845         * lib/unicase/u8-is-cased.c: New file.
3846         * lib/unicase/u-is-cased.h: New file.
3847         * modules/unicase/u8-is-cased: New file.
3848
3849         Tests for module 'unicase/u32-is-casefolded'.
3850         * modules/unicase/u32-is-casefolded-tests: New file.
3851         * tests/unicase/test-u32-is-casefolded.c: New file.
3852
3853         Tests for module 'unicase/u16-is-casefolded'.
3854         * modules/unicase/u16-is-casefolded-tests: New file.
3855         * tests/unicase/test-u16-is-casefolded.c: New file.
3856
3857         Tests for module 'unicase/u8-is-casefolded'.
3858         * modules/unicase/u8-is-casefolded-tests: New file.
3859         * tests/unicase/test-u8-is-casefolded.c: New file.
3860         * tests/unicase/test-is-casefolded.h: New file.
3861
3862         New module 'unicase/u32-is-casefolded'.
3863         * lib/unicase/u32-is-casefolded.c: New file.
3864         * modules/unicase/u32-is-casefolded: New file.
3865
3866         New module 'unicase/u16-is-casefolded'.
3867         * lib/unicase/u16-is-casefolded.c: New file.
3868         * modules/unicase/u16-is-casefolded: New file.
3869
3870         New module 'unicase/u8-is-casefolded'.
3871         * lib/unicase/u8-is-casefolded.c: New file.
3872         * modules/unicase/u8-is-casefolded: New file.
3873
3874         Tests for module 'unicase/u32-is-titlecase'.
3875         * modules/unicase/u32-is-titlecase-tests: New file.
3876         * tests/unicase/test-u32-is-titlecase.c: New file.
3877
3878         Tests for module 'unicase/u16-is-titlecase'.
3879         * modules/unicase/u16-is-titlecase-tests: New file.
3880         * tests/unicase/test-u16-is-titlecase.c: New file.
3881
3882         Tests for module 'unicase/u8-is-titlecase'.
3883         * modules/unicase/u8-is-titlecase-tests: New file.
3884         * tests/unicase/test-u8-is-titlecase.c: New file.
3885         * tests/unicase/test-is-titlecase.h: New file.
3886
3887         New module 'unicase/u32-is-titlecase'.
3888         * lib/unicase/u32-is-titlecase.c: New file.
3889         * modules/unicase/u32-is-titlecase: New file.
3890
3891         New module 'unicase/u16-is-titlecase'.
3892         * lib/unicase/u16-is-titlecase.c: New file.
3893         * modules/unicase/u16-is-titlecase: New file.
3894
3895         New module 'unicase/u8-is-titlecase'.
3896         * lib/unicase/u8-is-titlecase.c: New file.
3897         * modules/unicase/u8-is-titlecase: New file.
3898
3899         Tests for module 'unicase/u32-is-lowercase'.
3900         * modules/unicase/u32-is-lowercase-tests: New file.
3901         * tests/unicase/test-u32-is-lowercase.c: New file.
3902
3903         Tests for module 'unicase/u16-is-lowercase'.
3904         * modules/unicase/u16-is-lowercase-tests: New file.
3905         * tests/unicase/test-u16-is-lowercase.c: New file.
3906
3907         Tests for module 'unicase/u8-is-lowercase'.
3908         * modules/unicase/u8-is-lowercase-tests: New file.
3909         * tests/unicase/test-u8-is-lowercase.c: New file.
3910         * tests/unicase/test-is-lowercase.h: New file.
3911
3912         New module 'unicase/u32-is-lowercase'.
3913         * lib/unicase/u32-is-lowercase.c: New file.
3914         * modules/unicase/u32-is-lowercase: New file.
3915
3916         New module 'unicase/u16-is-lowercase'.
3917         * lib/unicase/u16-is-lowercase.c: New file.
3918         * modules/unicase/u16-is-lowercase: New file.
3919
3920         New module 'unicase/u8-is-lowercase'.
3921         * lib/unicase/u8-is-lowercase.c: New file.
3922         * modules/unicase/u8-is-lowercase: New file.
3923
3924         Tests for module 'unicase/u32-is-uppercase'.
3925         * modules/unicase/u32-is-uppercase-tests: New file.
3926         * tests/unicase/test-u32-is-uppercase.c: New file.
3927
3928         Tests for module 'unicase/u16-is-uppercase'.
3929         * modules/unicase/u16-is-uppercase-tests: New file.
3930         * tests/unicase/test-u16-is-uppercase.c: New file.
3931
3932         Tests for module 'unicase/u8-is-uppercase'.
3933         * modules/unicase/u8-is-uppercase-tests: New file.
3934         * tests/unicase/test-u8-is-uppercase.c: New file.
3935         * tests/unicase/test-is-uppercase.h: New file.
3936
3937         New module 'unicase/u32-is-uppercase'.
3938         * lib/unicase/u32-is-uppercase.c: New file.
3939         * modules/unicase/u32-is-uppercase: New file.
3940
3941         New module 'unicase/u16-is-uppercase'.
3942         * lib/unicase/u16-is-uppercase.c: New file.
3943         * modules/unicase/u16-is-uppercase: New file.
3944
3945         New module 'unicase/u8-is-uppercase'.
3946         * lib/unicase/u8-is-uppercase.c: New file.
3947         * modules/unicase/u8-is-uppercase: New file.
3948
3949         New module 'unicase/u32-is-invariant'.
3950         * lib/unicase/u32-is-invariant.c: New file.
3951         * modules/unicase/u32-is-invariant: New file.
3952
3953         New module 'unicase/u16-is-invariant'.
3954         * lib/unicase/u16-is-invariant.c: New file.
3955         * modules/unicase/u16-is-invariant: New file.
3956
3957         New module 'unicase/u8-is-invariant'.
3958         * lib/unicase/u8-is-invariant.c: New file.
3959         * lib/unicase/invariant.h: New file.
3960         * lib/unicase/u-is-invariant.h: New file.
3961         * modules/unicase/u8-is-invariant: New file.
3962
3963         Tests for module 'unicase/u32-casecoll'.
3964         * modules/unicase/u32-casecoll-tests: New file.
3965         * tests/unicase/test-u32-casecoll.c: New file.
3966
3967         Tests for module 'unicase/u16-casecoll'.
3968         * modules/unicase/u16-casecoll-tests: New file.
3969         * tests/unicase/test-u16-casecoll.c: New file.
3970
3971         Tests for module 'unicase/u8-casecoll'.
3972         * modules/unicase/u8-casecoll-tests: New file.
3973         * tests/unicase/test-u8-casecoll.c: New file.
3974
3975         New module 'unicase/u32-casecoll'.
3976         * lib/unicase/u32-casecoll.c: New file.
3977         * modules/unicase/u32-casecoll: New file.
3978
3979         New module 'unicase/u16-casecoll'.
3980         * lib/unicase/u16-casecoll.c: New file.
3981         * modules/unicase/u16-casecoll: New file.
3982
3983         New module 'unicase/u8-casecoll'.
3984         * lib/unicase/u8-casecoll.c: New file.
3985         * lib/unicase/u-casecoll.h: New file.
3986         * modules/unicase/u8-casecoll: New file.
3987
3988         New module 'unicase/u32-casexfrm'.
3989         * lib/unicase/u32-casexfrm.c: New file.
3990         * modules/unicase/u32-casexfrm: New file.
3991
3992         New module 'unicase/u16-casexfrm'.
3993         * lib/unicase/u16-casexfrm.c: New file.
3994         * modules/unicase/u16-casexfrm: New file.
3995
3996         New module 'unicase/u8-casexfrm'.
3997         * lib/unicase/u8-casexfrm.c: New file.
3998         * lib/unicase/u-casexfrm.h: New file.
3999         * modules/unicase/u8-casexfrm: New file.
4000
4001         Tests for module 'unicase/u32-casecmp'.
4002         * modules/unicase/u32-casecmp-tests: New file.
4003         * tests/unicase/test-u32-casecmp.c: New file.
4004
4005         Tests for module 'unicase/u16-casecmp'.
4006         * modules/unicase/u16-casecmp-tests: New file.
4007         * tests/unicase/test-u16-casecmp.c: New file.
4008
4009         Tests for module 'unicase/u8-casecmp'.
4010         * modules/unicase/u8-casecmp-tests: New file.
4011         * tests/unicase/test-u8-casecmp.c: New file.
4012         * tests/unicase/test-casecmp.h: New file.
4013
4014         New module 'unicase/u32-casecmp'.
4015         * lib/unicase/u32-casecmp.c: New file.
4016         * modules/unicase/u32-casecmp: New file.
4017
4018         New module 'unicase/u16-casecmp'.
4019         * lib/unicase/u16-casecmp.c: New file.
4020         * modules/unicase/u16-casecmp: New file.
4021
4022         New module 'unicase/u8-casecmp'.
4023         * lib/unicase/u8-casecmp.c: New file.
4024         * lib/unicase/u-casecmp.h: New file.
4025         * modules/unicase/u8-casecmp: New file.
4026
4027         Tests for module 'unicase/u32-casefold'.
4028         * modules/unicase/u32-casefold-tests: New file.
4029         * tests/unicase/test-u32-casefold.c: New file.
4030
4031         Tests for module 'unicase/u16-casefold'.
4032         * modules/unicase/u16-casefold-tests: New file.
4033         * tests/unicase/test-u16-casefold.c: New file.
4034
4035         Tests for module 'unicase/u8-casefold'.
4036         * modules/unicase/u8-casefold-tests: New file.
4037         * tests/unicase/test-u8-casefold.c: New file.
4038
4039         New module 'unicase/u32-casefold'.
4040         * lib/unicase/u32-casefold.c: New file.
4041         * modules/unicase/u32-casefold: New file.
4042
4043         New module 'unicase/u16-casefold'.
4044         * lib/unicase/u16-casefold.c: New file.
4045         * modules/unicase/u16-casefold: New file.
4046
4047         New module 'unicase/u8-casefold'.
4048         * lib/unicase/u8-casefold.c: New file.
4049         * lib/unicase/u-casefold.h: New file.
4050         * modules/unicase/u8-casefold: New file.
4051
4052         New module 'unicase/tocasefold'.
4053         * lib/unicase/casefold.h: New file.
4054         * lib/unicase/tocasefold.c: New file.
4055         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
4056         * modules/unicase/tocasefold: New file.
4057
4058         Tests for module 'unicase/u32-totitle'.
4059         * modules/unicase/u32-totitle-tests: New file.
4060         * tests/unicase/test-u32-totitle.c: New file.
4061
4062         Tests for module 'unicase/u16-totitle'.
4063         * modules/unicase/u16-totitle-tests: New file.
4064         * tests/unicase/test-u16-totitle.c: New file.
4065
4066         Tests for module 'unicase/u8-totitle'.
4067         * modules/unicase/u8-totitle-tests: New file.
4068         * tests/unicase/test-u8-totitle.c: New file.
4069
4070         New module 'unicase/u32-totitle'.
4071         * lib/unicase/u32-totitle.c: New file.
4072         * modules/unicase/u32-totitle: New file.
4073
4074         New module 'unicase/u16-totitle'.
4075         * lib/unicase/u16-totitle.c: New file.
4076         * modules/unicase/u16-totitle: New file.
4077
4078         New module 'unicase/u8-totitle'.
4079         * lib/unicase/u8-totitle.c: New file.
4080         * lib/unicase/u-totitle.h: New file.
4081         * modules/unicase/u8-totitle: New file.
4082
4083         Tests for module 'unicase/u32-tolower'.
4084         * modules/unicase/u32-tolower-tests: New file.
4085         * tests/unicase/test-u32-tolower.c: New file.
4086
4087         Tests for module 'unicase/u16-tolower'.
4088         * modules/unicase/u16-tolower-tests: New file.
4089         * tests/unicase/test-u16-tolower.c: New file.
4090
4091         Tests for module 'unicase/u8-tolower'.
4092         * modules/unicase/u8-tolower-tests: New file.
4093         * tests/unicase/test-u8-tolower.c: New file.
4094
4095         New module 'unicase/u32-tolower'.
4096         * lib/unicase/u32-tolower.c: New file.
4097         * modules/unicase/u32-tolower: New file.
4098
4099         New module 'unicase/u16-tolower'.
4100         * lib/unicase/u16-tolower.c: New file.
4101         * modules/unicase/u16-tolower: New file.
4102
4103         New module 'unicase/u8-tolower'.
4104         * lib/unicase/u8-tolower.c: New file.
4105         * modules/unicase/u8-tolower: New file.
4106
4107         Tests for module 'unicase/u32-toupper'.
4108         * modules/unicase/u32-toupper-tests: New file.
4109         * tests/unicase/test-u32-toupper.c: New file.
4110
4111         Tests for module 'unicase/u16-toupper'.
4112         * modules/unicase/u16-toupper-tests: New file.
4113         * tests/unicase/test-u16-toupper.c: New file.
4114
4115         Tests for module 'unicase/u8-toupper'.
4116         * modules/unicase/u8-toupper-tests: New file.
4117         * tests/unicase/test-u8-toupper.c: New file.
4118
4119         New module 'unicase/u32-toupper'.
4120         * lib/unicase/u32-toupper.c: New file.
4121         * modules/unicase/u32-toupper: New file.
4122
4123         New module 'unicase/u16-toupper'.
4124         * lib/unicase/u16-toupper.c: New file.
4125         * modules/unicase/u16-toupper: New file.
4126
4127         New module 'unicase/u8-toupper'.
4128         * lib/unicase/u8-toupper.c: New file.
4129         * modules/unicase/u8-toupper: New file.
4130
4131         New module 'unicase/u32-casemap'.
4132         * lib/unicase/u32-casemap.c: New file.
4133         * modules/unicase/u32-casemap: New file.
4134
4135         New module 'unicase/u16-casemap'.
4136         * lib/unicase/u16-casemap.c: New file.
4137         * modules/unicase/u16-casemap: New file.
4138
4139         New module 'unicase/u8-casemap'.
4140         * lib/unicase/unicasemap.h: New file.
4141         * lib/unicase/u8-casemap.c: New file.
4142         * lib/unicase/u-casemap.h: New file.
4143         * modules/unicase/u8-casemap: New file.
4144
4145         New module 'unicase/special-casing'.
4146         * lib/unicase/special-casing.h: New file.
4147         * lib/unicase/special-casing.c: New file.
4148         * lib/unicase/special-casing-table.gperf: New file, generated by
4149         gen-uni-tables.c.
4150         * modules/unicase/special-casing: New file.
4151
4152         Tests for module 'unicase/locale-language'.
4153         * modules/unicase/locale-language-tests: New file.
4154         * tests/unicase/test-locale-language.sh: New file.
4155         * tests/unicase/test-locale-language.c: New file.
4156
4157         New module 'unicase/locale-language'.
4158         * lib/unicase/locale-language.c: New file.
4159         * lib/unicase/locale-languages.gperf: New file.
4160         * modules/unicase/locale-language: New file.
4161
4162         Generate more tables for case conversion and case folding.
4163         * lib/gen-uni-tables.c (SCC_*): New enum items.
4164         (struct special_casing_rule): New type.
4165         (casing_rules, num_casing_rules, allocated_casing_rules): New
4166         variables.
4167         (add_casing_rule, fill_casing_rules): New functions.
4168         (struct casefold_rule): New type.
4169         (casefolding_rules, num_casefolding_rules,
4170         allocated_casefolding_rules): New variables.
4171         (fill_casefolding_rules): New function.
4172         (unicode_casefold): New variable.
4173         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
4174         sort_casing_rules, output_casing_rules): New functions.
4175         (main): Accept to more arguments: SpecialCasing.txt and
4176         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
4177         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
4178         Output mapping for casefolding.
4179
4180         * lib/unicase.h: Include stdbool.h, uninorm.h.
4181         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
4182         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
4183         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
4184         arguments.
4185         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
4186         resultp arguments.
4187         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
4188         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
4189         resultp arguments.
4190         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
4191         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
4192         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
4193         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
4194         declarations.
4195         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
4196
4197 2009-03-08  Bruno Haible  <bruno@clisp.org>
4198
4199         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
4200         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
4201         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
4202         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
4203
4204 2009-03-07  Bruno Haible  <bruno@clisp.org>
4205
4206         Adjust u*_normcmp, u*_normcoll API.
4207         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
4208         u16_normcoll, u32_normcoll): Change failure conventions.
4209         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
4210         errno and return -1.
4211         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
4212
4213 2009-03-07  Bruno Haible  <bruno@clisp.org>
4214
4215         Tests for module 'uninorm/u32-normcoll'.
4216         * modules/uninorm/u32-normcoll-tests: New file.
4217         * tests/uninorm/test-u32-normcoll.c: New file.
4218
4219         Tests for module 'uninorm/u16-normcoll'.
4220         * modules/uninorm/u16-normcoll-tests: New file.
4221         * tests/uninorm/test-u16-normcoll.c: New file.
4222
4223         Tests for module 'uninorm/u8-normcoll'.
4224         * modules/uninorm/u8-normcoll-tests: New file.
4225         * tests/uninorm/test-u8-normcoll.c: New file.
4226
4227 2009-03-07  Bruno Haible  <bruno@clisp.org>
4228
4229         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
4230         tests/uninorm/test-u32-normcmp.c.
4231         * tests/uninorm/test-u32-normcmp.c: Include it.
4232         (test_nonascii): New function, extracted from main. Add some more
4233         tests.
4234         (main): Invoke test_ascii and test_nonascii.
4235         * modules/uninorm/u32-normcmp-tests (Files): Add
4236         tests/uninorm/test-u32-normcmp.h.
4237         (Depends-on): Remove uninorm/u32-normcmp.
4238
4239         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
4240         tests/uninorm/test-u16-normcmp.c.
4241         * tests/uninorm/test-u16-normcmp.c: Include it.
4242         (test_nonascii): New function, extracted from main. Add some more
4243         tests.
4244         (main): Invoke test_ascii and test_nonascii.
4245         * modules/uninorm/u16-normcmp-tests (Files): Add
4246         tests/uninorm/test-u16-normcmp.h.
4247         (Depends-on): Remove uninorm/u16-normcmp.
4248
4249         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
4250         tests/uninorm/test-u8-normcmp.c.
4251         * tests/uninorm/test-u8-normcmp.c: Include it.
4252         (test_nonascii): New function, extracted from main. Add some more
4253         tests.
4254         (main): Invoke test_ascii and test_nonascii.
4255         * modules/uninorm/u8-normcmp-tests (Files): Add
4256         tests/uninorm/test-u8-normcmp.h.
4257         (Depends-on): Remove uninorm/u8-normcmp.
4258
4259 2009-03-07  Bruno Haible  <bruno@clisp.org>
4260
4261         New module 'uninorm/u32-normcoll'.
4262         * lib/uninorm/u32-normcoll.c: New file.
4263         * modules/uninorm/u32-normcoll: New file.
4264
4265         New module 'uninorm/u16-normcoll'.
4266         * lib/uninorm/u16-normcoll.c: New file.
4267         * modules/uninorm/u16-normcoll: New file.
4268
4269         New module 'uninorm/u8-normcoll'.
4270         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
4271         declarations.
4272         * lib/uninorm/u8-normcoll.c: New file.
4273         * lib/uninorm/u-normcoll.h: New file.
4274         * modules/uninorm/u8-normcoll: New file.
4275
4276         New module 'uninorm/u32-normxfrm'.
4277         * lib/uninorm/u32-normxfrm.c: New file.
4278         * modules/uninorm/u32-normxfrm: New file.
4279
4280         New module 'uninorm/u16-normxfrm'.
4281         * lib/uninorm/u16-normxfrm.c: New file.
4282         * modules/uninorm/u16-normxfrm: New file.
4283
4284         New module 'uninorm/u8-normxfrm'.
4285         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
4286         declarations.
4287         * lib/uninorm/u8-normxfrm.c: New file.
4288         * lib/uninorm/u-normxfrm.h: New file.
4289         * modules/uninorm/u8-normxfrm: New file.
4290
4291 2009-03-07  Bruno Haible  <bruno@clisp.org>
4292
4293         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
4294         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
4295         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
4296
4297 2009-03-07  Bruno Haible  <bruno@clisp.org>
4298
4299         New module 'memxfrm'.
4300         * lib/memxfrm.h: New file.
4301         * lib/memxfrm.c: New file.
4302         * modules/memxfrm: New file.
4303
4304 2009-03-07  Bruno Haible  <bruno@clisp.org>
4305
4306         New module 'memcmp2'.
4307         * lib/memcmp2.h: New file.
4308         * lib/memcmp2.c: New file.
4309         * modules/memcmp2: New file.
4310
4311 2009-03-07  Bruno Haible  <bruno@clisp.org>
4312
4313         Tests for module 'uninorm/decomposing-form'.
4314         * modules/uninorm/decomposing-form-tests: New file.
4315         * tests/uninorm/test-decomposing-form.c: New file.
4316
4317         New module 'uninorm/decomposing-form'.
4318         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
4319         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
4320         Add 'decomposing_variant' field.
4321         * lib/uninorm/decomposing-form.c: New file.
4322         * lib/uninorm/nfc.c (uninorm_nfc): Update.
4323         * lib/uninorm/nfd.c (uninorm_nfd): Update.
4324         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
4325         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
4326         * modules/uninorm/decomposing-form: New file.
4327         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
4328         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
4329
4330 2009-03-07  Bruno Haible  <bruno@clisp.org>
4331
4332         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
4333         strings.
4334
4335 2009-03-06  Bruno Haible  <bruno@clisp.org>
4336
4337         Tests for module 'uninorm/u32-normcmp'.
4338         * tests/uninorm/test-u32-normcmp.c: New file.
4339         * modules/uninorm/u32-normcmp-tests: New file.
4340
4341         Tests for module 'uninorm/u16-normcmp'.
4342         * tests/uninorm/test-u16-normcmp.c: New file.
4343         * modules/uninorm/u16-normcmp-tests: New file.
4344
4345         Tests for module 'uninorm/u8-normcmp'.
4346         * tests/uninorm/test-u8-normcmp.c: New file.
4347         * modules/uninorm/u8-normcmp-tests: New file.
4348
4349         New module 'uninorm/u32-normcmp'.
4350         * lib/uninorm/u32-normcmp.c: New file.
4351         * modules/uninorm/u32-normcmp: New file.
4352
4353         New module 'uninorm/u16-normcmp'.
4354         * lib/uninorm/u16-normcmp.c: New file.
4355         * modules/uninorm/u16-normcmp: New file.
4356
4357         New module 'uninorm/u8-normcmp'.
4358         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
4359         declarations.
4360         * lib/uninorm/u8-normcmp.c: New file.
4361         * lib/uninorm/u-normcmp.h: New file.
4362         * modules/uninorm/u8-normcmp: New file.
4363
4364 2009-03-06  Bruno Haible  <bruno@clisp.org>
4365
4366         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
4367         Reported by Eric Blake.
4368
4369 2009-03-06  Eric Blake  <ebb9@byu.net>
4370             Bruno Haible  <bruno@clisp.org>
4371
4372         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
4373         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
4374         condition.
4375         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
4376         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
4377         condition.
4378         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
4379
4380 2009-03-06  Eric Blake  <ebb9@byu.net>
4381
4382         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
4383         to avoid compiler warnings.
4384         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
4385
4386 2009-03-05  Bruno Haible  <bruno@clisp.org>
4387
4388         * tests/test-ftell.c (main): Disable test beyond end of file on
4389         FreeMiNT.
4390         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
4391
4392 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
4393
4394         * lib/filevercmp.c: Move hidden files up in ordering.
4395         * tests/test-filevercmp.c: Add tests for hidden files.
4396
4397 2009-03-04  Bruno Haible  <bruno@clisp.org>
4398
4399         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
4400         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
4401         AM_CFLAGS.
4402         Reported by Simon Josefsson.
4403
4404 2009-03-03  Bruno Haible  <bruno@clisp.org>
4405
4406         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
4407         Reported by Simon Josefsson.
4408
4409         * doc/ld-version-script.texi: Update node reference.
4410
4411 2009-03-03  Bruno Haible  <bruno@clisp.org>
4412
4413         * modules/visibility (License): Change to 'unlimited'.
4414         Suggested by Simon Josefsson.
4415
4416 2009-03-03  Jim Meyering  <meyering@redhat.com>
4417
4418         unlinkdir: cannot_unlink_dir may modify process state
4419         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
4420         it's neither thread-safe nor appropriate for use in a library.
4421
4422 2009-03-03  Eric Blake  <ebb9@byu.net>
4423
4424         test-closein: silence test under Darwin
4425         * tests/test-closein.sh: Ignore stderr from cat, since we don't
4426         care if it dies from EPIPE or EBADF.
4427
4428 2009-03-03  Bruno Haible  <bruno@clisp.org>
4429
4430         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
4431         earlier.
4432         * doc/visibility.texi: Fix @node and @section.
4433
4434 2009-03-03  Simon Josefsson  <simon@josefsson.org>
4435
4436         * doc/gnulib.texi: Link to sections for ld version script and
4437         visibility.
4438         * doc/visibility.texi: Add @node and @section.
4439         * modules/ld-version-script: New module.
4440         * m4/ld-version-script.m4: New file.
4441         * doc/ld-version-script.texi: New file.
4442
4443 2009-03-02  David Lutterkort  <lutter@redhat.com>
4444
4445         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
4446         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4447
4448 2009-03-02  Bruno Haible  <bruno@clisp.org>
4449
4450         * doc/visibility.texi: Mention libtool's -export-symbols option.
4451
4452 2009-03-02  Jim Meyering  <meyering@redhat.com>
4453
4454         announce-gen: new option: --no-print-checksums
4455         * build-aux/announce-gen (usage): Describe it.
4456         (print_checksums): Print a newline here, not in the [*] footnote.
4457         (main): Honor it.
4458
4459 2009-03-01  Bruno Haible  <bruno@clisp.org>
4460
4461         Use socklen_t in the native Windows replacements prototypes.
4462         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
4463         instead of 'int'.
4464         * lib/getsockopt.c (rpl_getsockopt): Likewise.
4465         * lib/setsockopt.c (rpl_setsockopt): Likewise.
4466         * modules/getsockopt (Depends-on): Add socklen.
4467         * modules/setsockopt (Depends-on): Add socklen.
4468
4469 2009-03-01  Bruno Haible  <bruno@clisp.org>
4470
4471         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
4472         least 4.2.
4473
4474 2009-03-01  Eric Blake  <ebb9@byu.net>
4475             Bruno Haible  <bruno@clisp.org>
4476
4477         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
4478         error messages.
4479         * lib/wait-process.c (wait_subprocess): Omit error message about
4480         deadly signal sent to the child of termsigp != NULL.
4481
4482 2009-03-01  Eric Blake  <ebb9@byu.net>
4483
4484         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
4485
4486 2009-03-01  Bruno Haible  <bruno@clisp.org>
4487
4488         Avoid a gcc warning.
4489         * tests/test-sched.c (b): Make global.
4490         Reported by Eric Blake.
4491
4492 2009-01-19  Martin Lambers  <marlam@marlam.de>
4493
4494         Provide POSIX semantics for socket timeout options on W32.
4495         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
4496         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
4497         * modules/setsockopt: Depend on sys_time module for struct timeval.
4498         * modules/getsockopt: Depend on sys_time module for struct timeval.
4499
4500 2009-03-01  Simon Josefsson  <simon@josefsson.org>
4501
4502         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
4503         __USE_GNU, for consistency with netdb.in.h.
4504         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
4505
4506 2009-03-01  Bruno Haible  <bruno@clisp.org>
4507
4508         More support for FreeMiNT.
4509         * lib/fseeko.c (rpl_fseeko): Complete last commit.
4510         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
4511
4512 2009-03-01  Bruno Haible  <bruno@clisp.org>
4513
4514         More support for FreeMiNT.
4515         * lib/fpurge.c (fpurge): Correct last commit.
4516         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
4517
4518 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4519
4520         Fix unportable awk script in vc-list-files.
4521         * build-aux/vc-list-files: In the replacement awk script, use
4522         substr with a second argument of 1, not zero.
4523         Report by Simon Josefsson.
4524
4525 2009-02-28  Bruno Haible  <bruno@clisp.org>
4526
4527         More support for FreeMiNT.
4528         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
4529         to FreeMiNT today.
4530         * lib/fwriting.c (fwriting): Likewise.
4531         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
4532
4533 2009-02-28  Bruno Haible  <bruno@clisp.org>
4534
4535         * tests/test-freadseek.c (main): Disable test beyond end of file on
4536         FreeMiNT.
4537         * tests/test-ftello.c (main): Likewise.
4538         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
4539
4540 2009-02-28  Bruno Haible  <bruno@clisp.org>
4541
4542         Add tentative support for FreeMiNT.
4543         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
4544         * lib/fpurge.c (fpurge): Likewise.
4545         * lib/freadable.c (freadable): Likewise.
4546         * lib/freading.c (freading): Likewise.
4547         * lib/freadptr.c (freadptr): Likewise.
4548         * lib/freadseek.c (freadptrinc): Likewise.
4549         * lib/fseeko.c (rpl_fseeko): Likewise.
4550         * lib/fseterr.c (fseterr): Likewise.
4551         * lib/fwritable.c (fwritable): Likewise.
4552         * lib/fwriting.c (fwriting): Likewise.
4553         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
4554         Hourihane.
4555         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
4556
4557 2009-02-28  Bruno Haible  <bruno@clisp.org>
4558
4559         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
4560         SIGCHLD.
4561         Reported by Jim Meyering.
4562
4563 2009-02-28  Bruno Haible  <bruno@clisp.org>
4564
4565         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
4566         Mention the results of these tests on various platforms.
4567         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
4568         order.
4569         * doc/posix-functions/printf.texi: Likewise.
4570         * doc/posix-functions/snprintf.texi: Likewise.
4571         * doc/posix-functions/sprintf.texi: Likewise.
4572         * doc/posix-functions/vfprintf.texi: Likewise.
4573         * doc/posix-functions/vprintf.texi: Likewise.
4574         * doc/posix-functions/vsnprintf.texi: Likewise.
4575         * doc/posix-functions/vsprintf.texi: Likewise.
4576         * doc/glibc-functions/obstack_printf.texi: Likewise.
4577         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
4578
4579 2009-02-28  Bruno Haible  <bruno@clisp.org>
4580
4581         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
4582         Reported by Loïc Minier <lool@dooz.org>.
4583
4584 2009-02-27  Bruno Haible  <bruno@clisp.org>
4585
4586         * gnulib-tool (func_import): Make the sed expression used to create the
4587         sed script for updating the .gitignore file POSIX compliant.
4588         Reported by Eric Blake.
4589
4590 2009-02-27  Bruno Haible  <bruno@clisp.org>
4591
4592         * gnulib-tool (sed): Don't alias as "sed --posix".
4593         Reported by Eric Blake.
4594
4595 2009-02-27  Bruno Haible  <bruno@clisp.org>
4596
4597         Avoid test link errors.
4598         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
4599         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
4600         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
4601         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
4602         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
4603
4604 2009-02-27  Bruno Haible  <bruno@clisp.org>
4605
4606         Avoid spurious "(cached)" in configure output.
4607         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
4608         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
4609         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
4610         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
4611         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
4612         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
4613         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
4614         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
4615         Reported by Eric Blake.
4616
4617 2009-02-27  Eric Blake  <ebb9@byu.net>
4618
4619         printf: fix regression in previous patch
4620         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
4621
4622 2009-02-27  Bruno Haible  <bruno@clisp.org>
4623
4624         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
4625         value.
4626         * lib/stdint.in.h: Likewise.
4627         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
4628
4629 2009-02-27  Eric Blake  <ebb9@byu.net>
4630
4631         doc: mention more functions added in cygwin 1.7.0
4632         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
4633         addition.
4634         * doc/posix-functions/open_wmemstream.texi: Likewise.
4635         * doc/posix-functions/wcsnlen.texi: Likewise.
4636         * doc/posix-functions/wcsnrtombs.texi: Likewise.
4637         * doc/posix-functions/wcstod.texi: Likewise.
4638         * doc/posix-functions/wcstof.texi: Likewise.
4639         * doc/posix-functions/wcstoimax.texi: Likewise.
4640         * doc/posix-functions/wcstok.texi: Likewise.
4641         * doc/posix-functions/wcstoumax.texi: Likewise.
4642
4643         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
4644         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
4645         * doc/posix-functions/fprintf.texi: Update.
4646         * doc/posix-functions/printf.texi: Update.
4647         * doc/posix-functions/snprintf.texi: Update.
4648         * doc/posix-functions/sprintf.texi: Update.
4649         * doc/posix-functions/vfprintf.texi: Update.
4650         * doc/posix-functions/vprintf.texi: Update.
4651         * doc/posix-functions/vsnprintf.texi: Update.
4652         * doc/posix-functions/vsprintf.texi: Update.
4653         * doc/glibc-functions/obstack_printf.texi: Update.
4654         * doc/glibc-functions/obstack_vprintf.texi: Update.
4655
4656 2009-02-26  Eric Blake  <ebb9@byu.net>
4657
4658         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
4659         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
4660         compilation bug by using runtime conversion.
4661         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
4662         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
4663         * modules/ceill-tests (Files): Use nan.h.
4664         * modules/floorl-tests (Files): Likewise.
4665         * modules/frexpl-tests (Files): Likewise.
4666         * modules/isnanl-tests (Files): Likewise.
4667         * modules/ldexpl-tests (Files): Likewise.
4668         * modules/roundl-tests (Files): Likewise.
4669         * modules/truncl-tests (Files): Likewise.
4670         * tests/test-ceill.c (main): Use a working NaN.
4671         * tests/test-floorl.c (main): Likewise.
4672         * tests/test-frexpl.c (main): Likewise.
4673         * tests/test-isnan.c (test_long_double): Likewise.
4674         * tests/test-isnanl.h (main): Likewise.
4675         * tests/test-ldexpl.h (main): Likewise.
4676         * tests/test-roundl.h (main): Likewise.
4677         * tests/test-truncl.h (main): Likewise.
4678         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
4679
4680 2009-02-26  Eric Blake  <ebb9@byu.net>
4681             Bruno Haible  <bruno@clisp.org>
4682
4683         Work around a *printf bug with %ls on Solaris.
4684         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
4685         precision is specified, sprintf stops converting the wide string
4686         argument when the number of bytes that have been produced by this
4687         conversion equals or exceeds the precision.
4688         * doc/posix-functions/fprintf.texi: Update.
4689         * doc/posix-functions/printf.texi: Update.
4690         * doc/posix-functions/snprintf.texi: Update.
4691         * doc/posix-functions/sprintf.texi: Update.
4692         * doc/posix-functions/vfprintf.texi: Update.
4693         * doc/posix-functions/vprintf.texi: Update.
4694         * doc/posix-functions/vsnprintf.texi: Update.
4695         * doc/posix-functions/vsprintf.texi: Update.
4696         * doc/glibc-functions/obstack_printf.texi: Update.
4697         * doc/glibc-functions/obstack_vprintf.texi: Update.
4698
4699 2009-02-26  Eric Blake  <ebb9@byu.net>
4700
4701         stdlib: favor compiler check of random.h
4702         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
4703         to avoid an ObjC random.h installed by Swarm.
4704
4705 2009-02-26  Bruno Haible  <bruno@clisp.org>
4706
4707         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
4708         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
4709         Reported by Gary V. Vaughan <gary@gnu.org>.
4710
4711 2009-02-26  Bruno Haible  <bruno@clisp.org>
4712
4713         Fix *printf behaviour regarding the %ls directive.
4714         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
4715         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
4716         NEED_PRINTF_DIRECTIVE_LS.
4717         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
4718         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
4719         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
4720         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
4721         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
4722         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
4723         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
4724         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
4725         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
4726         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
4727         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
4728         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
4729         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
4730         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
4731         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
4732         * doc/posix-functions/fprintf.texi: Update.
4733         * doc/posix-functions/printf.texi: Update.
4734         * doc/posix-functions/snprintf.texi: Update.
4735         * doc/posix-functions/sprintf.texi: Update.
4736         * doc/posix-functions/vfprintf.texi: Update.
4737         * doc/posix-functions/vprintf.texi: Update.
4738         * doc/posix-functions/vsnprintf.texi: Update.
4739         * doc/posix-functions/vsprintf.texi: Update.
4740         * doc/glibc-functions/obstack_printf.texi: Update.
4741         * doc/glibc-functions/obstack_vprintf.texi: Update.
4742         Reported by Eric Blake.
4743
4744 2009-02-25  Bruno Haible  <bruno@clisp.org>
4745
4746         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
4747         with known value.
4748         Reported by Gary V. Vaughan <gary@gnu.org>.
4749
4750 2009-02-25  Bruno Haible  <bruno@clisp.org>
4751
4752         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
4753         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
4754         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
4755         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
4756         Reported by Gary V. Vaughan <gary@gnu.org>.
4757
4758 2009-02-25  Bruno Haible  <bruno@clisp.org>
4759
4760         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
4761         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
4762         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
4763         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
4764         Reported by Gary V. Vaughan <gary@gnu.org>.
4765
4766 2009-02-25  Eric Blake  <ebb9@byu.net>
4767
4768         tests: skip fseek/ftell tests if ungetc is broken
4769         * m4/ungetc.m4: New file.
4770         * modules/fseek-tests: Split test, so ungetc dependency is
4771         separate from rest of test.
4772         * modules/fseeko-tests: Likewise.
4773         * modules/ftell-tests: Likewise.
4774         * modules/ftello-tests: Likewise.
4775         * tests/test-fseek.c (main): Isolate ungetc dependency.
4776         * tests/test-fseeko.c (main): Likewise.
4777         * tests/test-ftell.c (main): Likewise.
4778         * tests/test-ftello.c (main): Likewise.
4779         * tests/test-fseek2.sh: New file.
4780         * tests/test-fseeko2.sh: Likewise.
4781         * tests/test-ftell2.sh: Likewise.
4782         * tests/test-ftello2.sh: Likewise.
4783
4784 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
4785
4786         test-getaddrinfo: fix usage of skip return code 77
4787         * tests/test-gettaddrinfo.c: Return skip code 77 only
4788         for first occurance of skip (4x77 is not 77)
4789
4790 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
4791
4792         strtod: avoid C99 decl-after-statement
4793         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
4794
4795 2009-02-24  Eric Blake  <ebb9@byu.net>
4796
4797         strtod: detect HP-UX 11.31 bug
4798         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
4799         Reported by Gary V. Vaughan.
4800
4801 2009-02-23  Bruno Haible  <bruno@clisp.org>
4802
4803         Fix invalid read past end of memory block.
4804         * lib/vasnprintf.c (DCHAR_SET): Define.
4805         (local_wcslen): Define only when needed.
4806         (local_strnlen, local_wcsnlen): New functions.
4807         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
4808         directives that involve a conversion ourselves.
4809         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
4810         wcsnlen, mbrtowc, wcrtomb.
4811         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
4812         * tests/test-vasprintf-posix.c (test_function): Likewise.
4813         * tests/test-snprintf-posix.h (test_function): Likewise.
4814         * tests/test-sprintf-posix.h (test_function): Likewise.
4815         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4816
4817 2009-02-22  Bruno Haible  <bruno@clisp.org>
4818
4819         Implement new clarified decomposition of Hangul syllables.
4820         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
4821         of type LTV, return only a pairwise decomposition.
4822         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
4823         Likewise.
4824         * tests/uninorm/test-decomposition.c (main): Updated expected result.
4825         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
4826         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
4827
4828 2009-02-22  Bruno Haible  <bruno@clisp.org>
4829
4830         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
4831         zero-length results and shrink excess allocated memory.
4832         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
4833         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
4834         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
4835         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
4836         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
4837         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
4838         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
4839         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
4840         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
4841         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
4842         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
4843         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
4844
4845 2009-02-21  Bruno Haible  <bruno@clisp.org>
4846
4847         * doc/gnulib.texi: Include safe-alloc.texi earlier.
4848         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
4849         spaces after a period. Put a space between a macro name and its
4850         argument list. Trivial rewordings.
4851         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
4852         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
4853         (main): Return 0 explicitly.
4854
4855 2009-02-21  Bruno Haible  <bruno@clisp.org>
4856
4857         Tests for module 'uninorm/filter'.
4858         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
4859         * modules/uninorm/filter-tests: New file.
4860
4861         New module 'uninorm/filter'.
4862         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
4863         uninorm_filter_flush, uninorm_filter_free): New declarations.
4864         * lib/uninorm/uninorm-filter.c: New file.
4865         * modules/uninorm/filter: New file.
4866
4867 2009-02-21  Bruno Haible  <bruno@clisp.org>
4868
4869         Tests for module 'uninorm/nfkc'.
4870         * tests/uninorm/test-nfkc.c: New file.
4871         * tests/uninorm/test-u8-nfkc.c: New file.
4872         * tests/uninorm/test-u16-nfkc.c: New file.
4873         * tests/uninorm/test-u32-nfkc.c: New file.
4874         * tests/uninorm/test-u32-nfkc-big.sh: New file.
4875         * tests/uninorm/test-u32-nfkc-big.c: New file.
4876         * modules/uninorm/nfkc-tests: New file.
4877
4878         New module 'uninorm/nfkc'.
4879         * lib/uninorm/nfkc.c: New file.
4880         * modules/uninorm/nfkc: New file.
4881
4882         Tests for module 'uninorm/nfkd'.
4883         * tests/uninorm/test-nfkd.c: New file.
4884         * tests/uninorm/test-u8-nfkd.c: New file.
4885         * tests/uninorm/test-u16-nfkd.c: New file.
4886         * tests/uninorm/test-u32-nfkd.c: New file.
4887         * tests/uninorm/test-u32-nfkd-big.sh: New file.
4888         * tests/uninorm/test-u32-nfkd-big.c: New file.
4889         * modules/uninorm/nfkd-tests: New file.
4890
4891         New module 'uninorm/nfkd'.
4892         * lib/uninorm/nfkd.c: New file.
4893         * modules/uninorm/nfkd: New file.
4894
4895         Tests for module 'uninorm/nfc'.
4896         * tests/uninorm/test-nfc.c: New file.
4897         * tests/uninorm/test-u8-nfc.c: New file.
4898         * tests/uninorm/test-u16-nfc.c: New file.
4899         * tests/uninorm/test-u32-nfc.c: New file.
4900         * tests/uninorm/test-u32-nfc-big.sh: New file.
4901         * tests/uninorm/test-u32-nfc-big.c: New file.
4902         * modules/uninorm/nfc-tests: New file.
4903
4904         New module 'uninorm/nfc'.
4905         * lib/uninorm/nfc.c: New file.
4906         * modules/uninorm/nfc: New file.
4907
4908         Tests for module 'uninorm/nfd'.
4909         * tests/uninorm/test-nfd.c: New file.
4910         * tests/uninorm/test-u8-nfd.c: New file.
4911         * tests/uninorm/test-u16-nfd.c: New file.
4912         * tests/uninorm/test-u32-nfd.c: New file.
4913         * tests/uninorm/test-u32-nfd-big.sh: New file.
4914         * tests/uninorm/test-u32-nfd-big.c: New file.
4915         * tests/uninorm/test-u32-normalize-big.h: New file.
4916         * tests/uninorm/test-u32-normalize-big.c: New file.
4917         * tests/uninorm/NormalizationTest.txt: New file, created from
4918         Unicode 5.1.0 NormalizationTest.txt.
4919         * modules/uninorm/nfd-tests: New file.
4920
4921         New module 'uninorm/nfd'.
4922         * lib/uninorm/nfd.c: New file.
4923         * modules/uninorm/nfd: New file.
4924
4925         New module 'uninorm/u32-normalize'.
4926         * lib/uninorm/u32-normalize.c: New file.
4927         * modules/uninorm/u32-normalize: New file.
4928
4929         New module 'uninorm/u16-normalize'.
4930         * lib/uninorm/u16-normalize.c: New file.
4931         * modules/uninorm/u16-normalize: New file.
4932
4933         New module 'uninorm/u8-normalize'.
4934         * lib/uninorm/u8-normalize.c: New file.
4935         * lib/uninorm/normalize-internal.h: New file.
4936         * lib/uninorm/u-normalize-internal.h: New file.
4937         * modules/uninorm/u8-normalize: New file.
4938
4939         New module 'uninorm/decompose-internal'.
4940         * lib/uninorm/decompose-internal.c: New file.
4941         * modules/uninorm/decompose-internal: New file.
4942
4943         Tests for module 'uninorm/composition'.
4944         * tests/uninorm/test-composition.c: New file.
4945         * modules/uninorm/composition-tests: New file.
4946
4947         New module 'uninorm/composition'.
4948         * lib/uninorm/composition.c: New file.
4949         * lib/uninorm/composition-table.gperf: New file, generated by
4950         gen-uni-tables.
4951         * modules/uninorm/composition: New file.
4952
4953         Tests for module 'uninorm/compat-decomposition'.
4954         * tests/uninorm/test-compat-decomposition.c: New file.
4955         * modules/uninorm/compat-decomposition-tests: New file.
4956
4957         New module 'uninorm/compat-decomposition'.
4958         * lib/uninorm/decompose-internal.h: New file.
4959         * lib/uninorm/compat-decomposition.c: New file.
4960         * modules/uninorm/compat-decomposition: New file.
4961
4962         Tests for module 'uninorm/canonical-decomposition'.
4963         * tests/uninorm/test-canonical-decomposition.c: New file.
4964         * modules/uninorm/canonical-decomposition-tests: New file.
4965
4966         New module 'uninorm/canonical-decomposition'.
4967         * lib/uninorm/canonical-decomposition.c: New file.
4968         * modules/uninorm/canonical-decomposition: New file.
4969
4970         Tests for module 'uninorm/decomposition'.
4971         * tests/uninorm/test-decomposition.c: New file.
4972         * modules/uninorm/decomposition-tests: New file.
4973
4974         New module 'uninorm/decomposition'.
4975         * lib/uninorm/decomposition.c: New file.
4976         * modules/uninorm/decomposition: New file.
4977
4978         New module 'uninorm/decomposition-table'.
4979         * lib/uninorm/decomposition-table.h: New file.
4980         * lib/uninorm/decomposition-table.c: New file.
4981         * lib/uninorm/decomposition-table1.h: New file, generated by
4982         gen-uni-tables.
4983         * lib/uninorm/decomposition-table2.h: New file, generated by
4984         gen-uni-tables.
4985         * modules/uninorm/decomposition-table: New file.
4986
4987         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
4988         (UC_DECOMP_*): New enumeration items.
4989         (get_decomposition): New function.
4990         (struct decomp_table): New type.
4991         (output_decomposition, output_decomposition_tables): New functions.
4992         (unicode_composition_exclusions): New variable.
4993         (fill_composition_exclusions, debug_output_composition_tables): New
4994         functions.
4995         (main): Accept one more argument. Invoke fill_composition_exclusions.
4996         Output decomposition and composition tables.
4997
4998         New module 'uninorm/base'.
4999         * lib/uninorm.h: New file.
5000         * lib/unictype.h: Update comment.
5001         * modules/uninorm/base: New file.
5002
5003 2009-02-21  David Lutterkort  <lutter@redhat.com>
5004
5005         Tests for module 'safe-alloc'.
5006         * tests/test-safe-alloc.c: New file.
5007         * modules/safe-alloc-tests: New file.
5008
5009         New module 'safe-alloc'.
5010         * lib/safe-alloc.h: New file.
5011         * lib/safe-alloc.c: New file.
5012         * m4/safe-alloc.m4: New file.
5013         * modules/safe-alloc: New file.
5014         * doc/safe-alloc.texi: New file.
5015         * doc/gnulib.texi: Include it.
5016         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
5017         safe-alloc.
5018
5019 2009-02-18  Bruno Haible  <bruno@clisp.org>
5020
5021         Fix link error on non-glibc systems.
5022         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
5023         variable.
5024         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
5025
5026 2009-02-18  Jim Meyering  <meyering@redhat.com>
5027
5028         fts: avoid used-uninitialized error due to recent change
5029         * lib/fts.c (fts_read): Guard uses of the new member,
5030         parent->fts_n_dirs_remaining, since it's not relevant for
5031         the parent of a directory specified on the command-line.
5032
5033 2009-02-17  James Youngman  <jay@gnu.org>
5034             Bruno Haible  <bruno@clisp.org>
5035
5036         * m4/include_next.m4: Reformulate comment.
5037
5038 2009-02-16  Jim Meyering  <meyering@redhat.com>
5039
5040         fts: add #if guards so that the fts_lgpl module still builds
5041         * lib/fts.c: Guard just-added hash-table-using parts with
5042         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
5043         Reported by Simon Josefsson.
5044
5045 2009-02-15  Bruno Haible  <bruno@clisp.org>
5046
5047         * modules/array-mergesort-tests: New file.
5048         * tests/test-array-mergesort.c: New file.
5049
5050         New module 'array-mergesort'.
5051         * modules/array-mergesort: New file.
5052         * lib/array-mergesort.h: New file.
5053
5054 2009-02-15  Bruno Haible  <bruno@clisp.org>
5055
5056         Fix 2009-02-07 commit.
5057         * lib/gen-uni-tables.c (output_predicate, output_category,
5058         output_combclass, output_bidi_category, output_decimal_digit,
5059         output_digit, output_numeric, output_mirror, output_scripts,
5060         output_ident_category, output_simple_mapping): Fix format directives.
5061         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
5062
5063 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
5064
5065         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
5066         fixes are available from IBM.
5067
5068 2009-02-13  Jim Meyering  <meyering@redhat.com>
5069
5070         fts: arrange not to stat non-directories in more cases
5071         This makes GNU find (when it doesn't need to stat each file)
5072         *much* more efficient at traversing reiserfs file systems.
5073         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
5074         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
5075         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
5076         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
5077         (leaf_optimization_applies): New function.
5078         (LCO_hash, LCO_compare): New helper functions.
5079         (link_count_optimize_ok): New function.
5080         (fts_stat): Initialize new member (if dir).
5081         (fts_read): Decrement parent's fts_n_dirs_remaining count if
5082         we've just stat'ed a directory.  Skip the stat call when possible.
5083         ---
5084         Note this AFS-related exchange:
5085         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
5086         and note find's pioctl call in find/fstype.c.
5087         But that is necessary only if you want to enable the
5088         optimization for AFS, and for now, I don't.
5089
5090         fts: move a function definition "up" (no semantic change)
5091         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
5092         "up" to precede upcoming use of a related function.
5093
5094 2009-02-11  Jim Meyering  <meyering@redhat.com>
5095
5096         fts: correct internal computation of nlinks (optimization-related)
5097         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
5098         whether the current entry is a directory, so don't test it.
5099
5100 2009-02-10  Bruno Haible  <bruno@clisp.org>
5101
5102         Tests for module 'uniwbrk/ulc-wordbreaks'.
5103         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
5104         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
5105         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
5106
5107         Tests for module 'uniwbrk/u32-wordbreaks'.
5108         * modules/uniwbrk/u32-wordbreaks-tests: New file.
5109         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
5110
5111         Tests for module 'uniwbrk/u16-wordbreaks'.
5112         * modules/uniwbrk/u16-wordbreaks-tests: New file.
5113         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
5114
5115         Tests for module 'uniwbrk/u8-wordbreaks'.
5116         * modules/uniwbrk/u8-wordbreaks-tests: New file.
5117         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
5118
5119 2009-02-10  Bruno Haible  <bruno@clisp.org>
5120
5121         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
5122         property.
5123         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
5124         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
5125         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
5126
5127 2009-02-10  Simon Josefsson  <simon@josefsson.org>
5128
5129         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
5130         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
5131
5132 2009-02-10  Bruno Haible  <bruno@clisp.org>
5133
5134         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
5135         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
5136         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
5137         * lib/unilbrk/u8-possible-linebreaks.c: Update.
5138         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
5139         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
5140
5141 2009-02-09  Simon Josefsson  <simon@josefsson.org>
5142
5143         * lib/sockets.h (gl_fd_to_handle): New function.
5144
5145         * tests/test-sockets.c: Call gl_fd_to_handle.
5146
5147 2009-02-09  Bruno Haible  <bruno@clisp.org>
5148
5149         * doc/havelib.texi: Document the conventions on bi-arch systems.
5150
5151 2009-02-08  Bruno Haible  <bruno@clisp.org>
5152
5153         Document the AC_LIB_LINKFLAGS macro.
5154         * doc/havelib.texi: New file, mostly written on 2005-05-24.
5155         * doc/gnulib.texi: Include it.
5156
5157 2009-02-08  Bruno Haible  <bruno@clisp.org>
5158
5159         Fix wrong order of sections, compared to TOC.
5160         * doc/gnulib.texi: Include relocatable-maint.texi after the
5161         "Regular expressions" node, not before.
5162
5163 2009-02-08  Bruno Haible  <bruno@clisp.org>
5164
5165         Tests for module 'unicase/totitle'.
5166         * modules/unicase/totitle-tests: New file.
5167
5168         Tests for module 'unicase/tolower'.
5169         * modules/unicase/tolower-tests: New file.
5170
5171         Tests for module 'unicase/toupper'.
5172         * modules/unicase/toupper-tests: New file.
5173         * tests/unicase/test-mapping-part1.h: New file.
5174         * tests/unicase/test-mapping-part2.h: New file.
5175
5176         New module 'unicase/totitle'.
5177         * modules/unicase/totitle: New file.
5178         * lib/unicase/totitle.c: New file.
5179
5180         New module 'unicase/tolower'.
5181         * modules/unicase/tolower: New file.
5182         * lib/unicase/tolower.c: New file.
5183
5184         New module 'unicase/toupper'.
5185         * modules/unicase/toupper: New file.
5186         * lib/unicase/toupper.c: New file.
5187         * lib/unicase/simple-mapping.h: New file.
5188
5189         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
5190         (mapping_table): New structure.
5191         (output_simple_mapping): New function.
5192         (main): Invoke output_simple_mapping_test and output_simple_mapping.
5193         * modules/gen-uni-tables (Description): Update.
5194         * lib/unicase/toupper.h: New file, automatically generated by
5195         gen-uni-tables.
5196         * lib/unicase/tolower.h: New file, automatically generated by
5197         gen-uni-tables.
5198         * lib/unicase/totitle.h: New file, automatically generated by
5199         gen-uni-tables.
5200         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
5201         gen-uni-tables.
5202         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
5203         gen-uni-tables.
5204         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
5205         gen-uni-tables.
5206
5207         New module 'unicase/base'.
5208         * modules/unicase/base: New file.
5209         * lib/unicase.h: New file.
5210
5211 2009-02-08  Bruno Haible  <bruno@clisp.org>
5212
5213         New module 'uniwbrk/ulc-wordbreaks'.
5214         * modules/uniwbrk/ulc-wordbreaks: New file.
5215         * lib/uniwbrk/ulc-wordbreaks.c: New file.
5216
5217         New module 'uniwbrk/u32-wordbreaks'.
5218         * modules/uniwbrk/u32-wordbreaks: New file.
5219         * lib/uniwbrk/u32-wordbreaks.c: New file.
5220
5221         New module 'uniwbrk/u16-wordbreaks'.
5222         * modules/uniwbrk/u16-wordbreaks: New file.
5223         * lib/uniwbrk/u16-wordbreaks.c: New file.
5224
5225         New module 'uniwbrk/u8-wordbreaks'.
5226         * modules/uniwbrk/u8-wordbreaks: New file.
5227         * lib/uniwbrk/u8-wordbreaks.c: New file.
5228         * lib/uniwbrk/u-wordbreaks.h: New file.
5229
5230         New module 'uniwbrk/table'.
5231         * modules/uniwbrk/table: New file.
5232         * lib/uniwbrk/wbrktable.h: New file.
5233         * lib/uniwbrk/wbrktable.c: New file.
5234
5235         New module 'uniwbrk/wordbreak-property'.
5236         * modules/uniwbrk/wordbreak-property: New file.
5237         * lib/uniwbrk/wordbreak-property.c: New file.
5238
5239         * lib/gen-uni-tables.c (WBP_*): New enum items.
5240         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
5241         (unicode_org_wbp): New variable.
5242         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
5243         New functions.
5244         (wbp_table): New structure.
5245         (output_wbp, output_wbrk_tables): New functions.
5246         (main): Accept additional argument. Invoke fill_org_wbp,
5247         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
5248         output_wbrk_tables.
5249         * modules/gen-uni-tables (Description): Update.
5250         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
5251         gen-uni-tables.
5252
5253         New module 'uniwbrk/base'.
5254         * modules/uniwbrk/base: New file.
5255         * lib/uniwbrk.h: New file.
5256
5257 2009-02-08  Bruno Haible  <bruno@clisp.org>
5258
5259         Update to Unicode 5.1.0.
5260         * lib/gen-uni-tables.c (is_property_alphabetic): Include
5261         U+2185..U+2188.
5262         (is_property_default_ignorable_code_point): Don't include characters
5263         of category Cc or Cs and not-a-characters.
5264         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
5265         U+0D79, U+109E, U+109F, U+A60C.
5266         * lib/unictype/bidi_of.h: Regenerated.
5267         * lib/unictype/blocks.h: Regenerated.
5268         * lib/unictype/categ_C.h: Regenerated.
5269         * lib/unictype/categ_Cf.h: Regenerated.
5270         * lib/unictype/categ_Cn.h: Regenerated.
5271         * lib/unictype/categ_L.h: Regenerated.
5272         * lib/unictype/categ_Ll.h: Regenerated.
5273         * lib/unictype/categ_Lm.h: Regenerated.
5274         * lib/unictype/categ_Lo.h: Regenerated.
5275         * lib/unictype/categ_Lu.h: Regenerated.
5276         * lib/unictype/categ_M.h: Regenerated.
5277         * lib/unictype/categ_Mc.h: Regenerated.
5278         * lib/unictype/categ_Me.h: Regenerated.
5279         * lib/unictype/categ_Mn.h: Regenerated.
5280         * lib/unictype/categ_N.h: Regenerated.
5281         * lib/unictype/categ_Nd.h: Regenerated.
5282         * lib/unictype/categ_Nl.h: Regenerated.
5283         * lib/unictype/categ_No.h: Regenerated.
5284         * lib/unictype/categ_P.h: Regenerated.
5285         * lib/unictype/categ_Pd.h: Regenerated.
5286         * lib/unictype/categ_Pe.h: Regenerated.
5287         * lib/unictype/categ_Pf.h: Regenerated.
5288         * lib/unictype/categ_Pi.h: Regenerated.
5289         * lib/unictype/categ_Po.h: Regenerated.
5290         * lib/unictype/categ_Ps.h: Regenerated.
5291         * lib/unictype/categ_S.h: Regenerated.
5292         * lib/unictype/categ_Sk.h: Regenerated.
5293         * lib/unictype/categ_Sm.h: Regenerated.
5294         * lib/unictype/categ_So.h: Regenerated.
5295         * lib/unictype/categ_of.h: Regenerated.
5296         * lib/unictype/combining.h: Regenerated.
5297         * lib/unictype/ctype_alnum.h: Regenerated.
5298         * lib/unictype/ctype_alpha.h: Regenerated.
5299         * lib/unictype/ctype_graph.h: Regenerated.
5300         * lib/unictype/ctype_lower.h: Regenerated.
5301         * lib/unictype/ctype_print.h: Regenerated.
5302         * lib/unictype/ctype_punct.h: Regenerated.
5303         * lib/unictype/ctype_upper.h: Regenerated.
5304         * lib/unictype/decdigit.h: Regenerated.
5305         * lib/unictype/digit.h: Regenerated.
5306         * lib/unictype/mirror.h: Regenerated.
5307         * lib/unictype/numeric.h: Regenerated.
5308         * lib/unictype/pr_alphabetic.h: Regenerated.
5309         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
5310         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
5311         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
5312         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
5313         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
5314         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
5315         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
5316         * lib/unictype/pr_combining.h: Regenerated.
5317         * lib/unictype/pr_dash.h: Regenerated.
5318         * lib/unictype/pr_decimal_digit.h: Regenerated.
5319         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
5320         * lib/unictype/pr_deprecated.h: Regenerated.
5321         * lib/unictype/pr_diacritic.h: Regenerated.
5322         * lib/unictype/pr_extender.h: Regenerated.
5323         * lib/unictype/pr_format_control.h: Regenerated.
5324         * lib/unictype/pr_grapheme_base.h: Regenerated.
5325         * lib/unictype/pr_grapheme_extend.h: Regenerated.
5326         * lib/unictype/pr_grapheme_link.h: Regenerated.
5327         * lib/unictype/pr_id_continue.h: Regenerated.
5328         * lib/unictype/pr_id_start.h: Regenerated.
5329         * lib/unictype/pr_ideographic.h: Regenerated.
5330         * lib/unictype/pr_ignorable_control.h: Regenerated.
5331         * lib/unictype/pr_lowercase.h: Regenerated.
5332         * lib/unictype/pr_math.h: Regenerated.
5333         * lib/unictype/pr_numeric.h: Regenerated.
5334         * lib/unictype/pr_other_alphabetic.h: Regenerated.
5335         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
5336         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
5337         * lib/unictype/pr_other_id_continue.h: Regenerated.
5338         * lib/unictype/pr_other_lowercase.h: Regenerated.
5339         * lib/unictype/pr_other_math.h: Regenerated.
5340         * lib/unictype/pr_punctuation.h: Regenerated.
5341         * lib/unictype/pr_sentence_terminal.h: Regenerated.
5342         * lib/unictype/pr_soft_dotted.h: Regenerated.
5343         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
5344         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
5345         * lib/unictype/pr_unified_ideograph.h: Regenerated.
5346         * lib/unictype/pr_uppercase.h: Regenerated.
5347         * lib/unictype/pr_xid_continue.h: Regenerated.
5348         * lib/unictype/pr_xid_start.h: Regenerated.
5349         * lib/unictype/pr_zero_width.h: Regenerated.
5350         * lib/unictype/scripts.h: Regenerated.
5351         * lib/unictype/scripts_byname.gperf: Regenerated.
5352         * lib/unictype/sy_java_ident.h: Regenerated.
5353         * lib/unilbrk/lbrkprop1.h: Regenerated.
5354         * lib/unilbrk/lbrkprop2.h: Regenerated.
5355         * tests/unictype/test-categ_C.c: Regenerated.
5356         * tests/unictype/test-categ_Cf.c: Regenerated.
5357         * tests/unictype/test-categ_Cn.c: Regenerated.
5358         * tests/unictype/test-categ_L.c: Regenerated.
5359         * tests/unictype/test-categ_Ll.c: Regenerated.
5360         * tests/unictype/test-categ_Lm.c: Regenerated.
5361         * tests/unictype/test-categ_Lo.c: Regenerated.
5362         * tests/unictype/test-categ_Lu.c: Regenerated.
5363         * tests/unictype/test-categ_M.c: Regenerated.
5364         * tests/unictype/test-categ_Mc.c: Regenerated.
5365         * tests/unictype/test-categ_Me.c: Regenerated.
5366         * tests/unictype/test-categ_Mn.c: Regenerated.
5367         * tests/unictype/test-categ_N.c: Regenerated.
5368         * tests/unictype/test-categ_Nd.c: Regenerated.
5369         * tests/unictype/test-categ_Nl.c: Regenerated.
5370         * tests/unictype/test-categ_No.c: Regenerated.
5371         * tests/unictype/test-categ_P.c: Regenerated.
5372         * tests/unictype/test-categ_Pd.c: Regenerated.
5373         * tests/unictype/test-categ_Pe.c: Regenerated.
5374         * tests/unictype/test-categ_Pf.c: Regenerated.
5375         * tests/unictype/test-categ_Pi.c: Regenerated.
5376         * tests/unictype/test-categ_Po.c: Regenerated.
5377         * tests/unictype/test-categ_Ps.c: Regenerated.
5378         * tests/unictype/test-categ_S.c: Regenerated.
5379         * tests/unictype/test-categ_Sk.c: Regenerated.
5380         * tests/unictype/test-categ_Sm.c: Regenerated.
5381         * tests/unictype/test-categ_So.c: Regenerated.
5382         * tests/unictype/test-ctype_alnum.c: Regenerated.
5383         * tests/unictype/test-ctype_alpha.c: Regenerated.
5384         * tests/unictype/test-ctype_graph.c: Regenerated.
5385         * tests/unictype/test-ctype_lower.c: Regenerated.
5386         * tests/unictype/test-ctype_print.c: Regenerated.
5387         * tests/unictype/test-ctype_punct.c: Regenerated.
5388         * tests/unictype/test-ctype_upper.c: Regenerated.
5389         * tests/unictype/test-decdigit.h: Regenerated.
5390         * tests/unictype/test-digit.h: Regenerated.
5391         * tests/unictype/test-numeric.h: Regenerated.
5392         * tests/unictype/test-pr_alphabetic.c: Regenerated.
5393         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
5394         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
5395         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
5396         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
5397         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
5398         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
5399         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
5400         * tests/unictype/test-pr_combining.c: Regenerated.
5401         * tests/unictype/test-pr_dash.c: Regenerated.
5402         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
5403         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
5404         * tests/unictype/test-pr_deprecated.c: Regenerated.
5405         * tests/unictype/test-pr_diacritic.c: Regenerated.
5406         * tests/unictype/test-pr_extender.c: Regenerated.
5407         * tests/unictype/test-pr_format_control.c: Regenerated.
5408         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
5409         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
5410         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
5411         * tests/unictype/test-pr_id_continue.c: Regenerated.
5412         * tests/unictype/test-pr_id_start.c: Regenerated.
5413         * tests/unictype/test-pr_ideographic.c: Regenerated.
5414         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
5415         * tests/unictype/test-pr_lowercase.c: Regenerated.
5416         * tests/unictype/test-pr_math.c: Regenerated.
5417         * tests/unictype/test-pr_numeric.c: Regenerated.
5418         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
5419         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
5420         Regenerated.
5421         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
5422         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
5423         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
5424         * tests/unictype/test-pr_other_math.c: Regenerated.
5425         * tests/unictype/test-pr_punctuation.c: Regenerated.
5426         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
5427         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
5428         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
5429         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
5430         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
5431         * tests/unictype/test-pr_uppercase.c: Regenerated.
5432         * tests/unictype/test-pr_xid_continue.c: Regenerated.
5433         * tests/unictype/test-pr_xid_start.c: Regenerated.
5434         * tests/unictype/test-pr_zero_width.c: Regenerated.
5435
5436         Update to Unicode 5.1.0.
5437         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
5438         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
5439         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
5440         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
5441         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
5442         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
5443         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
5444         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
5445         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
5446         (nonspacing_table_ind): Update.
5447         * tests/uniwidth/test-uc_width2.sh: Update expected result.
5448
5449         Update to Unicode 5.1.0.
5450         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
5451         code transform.
5452         * lib/uniname/uniname.c (unicode_character_name,
5453         unicode_name_character): Add the range 0x1Fxxx to the code transform.
5454         * lib/uniname/uninames.h: Regenerated.
5455         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
5456
5457 2009-02-07  Bruno Haible  <bruno@clisp.org>
5458
5459         Merge gen-ctype and gen-lbrk into a single program.
5460         * lib/gen-uni-tables.c: New file, incorporating
5461         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
5462         Add directory prefixes to the names of the generated files.
5463         * lib/unictype/gen-ctype.c: Remove file.
5464         * lib/unilbrk/gen-lbrk.c: Remove file.
5465         * modules/gen-uni-tables: New file.
5466         * modules/unictype/gen-ctype: Remove file.
5467         * modules/unilbrk/gen-lbrk: Remove file.
5468
5469 2009-02-07  Bruno Haible  <bruno@clisp.org>
5470
5471         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
5472
5473         New module 'unistr/u32-strcoll'.
5474         * modules/unistr/u32-strcoll: New file.
5475         * lib/unistr/u32-strcoll.c: New file.
5476
5477         New module 'unistr/u16-strcoll'.
5478         * modules/unistr/u16-strcoll: New file.
5479         * lib/unistr/u16-strcoll.c: New file.
5480
5481         New module 'unistr/u8-strcoll'.
5482         * modules/unistr/u8-strcoll: New file.
5483         * lib/unistr/u8-strcoll.c: New file.
5484         * lib/unistr/u-strcoll.h: New file.
5485
5486 2009-02-07  Bruno Haible  <bruno@clisp.org>
5487
5488         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
5489         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
5490         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
5491         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
5492         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
5493         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
5494
5495 2009-02-07  Bruno Haible  <bruno@clisp.org>
5496
5497         Make 64-bit clean.
5498         * lib/unictype/gen-ctype.c (output_predicate, output_category,
5499         output_combclass, output_bidi_category, output_decimal_digit,
5500         output_digit, output_numeric, output_mirror, output_scripts,
5501         output_ident_category): Use proper width specifier in format strings.
5502
5503 2009-02-07  Bruno Haible  <bruno@clisp.org>
5504
5505         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
5506         failure behaviour.
5507
5508 2009-02-07  Jim Meyering  <meyering@redhat.com>
5509
5510         regex: avoid compilation failure with upcoming gcc-4.4
5511         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
5512         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
5513         "... error: integer overflow in preprocessor expression".
5514
5515 2009-02-05  Ben Pfaff  <blp@gnu.org>
5516
5517         Fix link errors on Windows when close module is used.
5518         * modules/close: Add $(LIB_CLOSE) to Link section.
5519         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
5520         $(LIB_CLOSE) on Windows.
5521
5522 2009-02-05  Jim Meyering  <meyering@redhat.com>
5523
5524         still avoid unused-parameter warnings, but do it cleanly
5525         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
5526         (get_fs_usage): Cast to void instead.
5527         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
5528         (dev_from_mount_options, read_file_system_list): Cast to void.
5529         Prompted by Bruno Haible.
5530
5531 2009-02-04  Jim Meyering  <meyering@redhat.com>
5532
5533         fsusage.c: correct copyright year
5534         * lib/fsusage.c: Reflect year in which the change is pushed into
5535
5536         avoid misc. warnings
5537         * lib/fsusage.c (UNUSED_PARAM): Define.
5538         (get_fs_usage): Mark parameter "disk" as unused.
5539         * lib/getugroups.c (getgrent): Use "void" in prototype.
5540         * lib/mountlist.c: Mark unused parameters.
5541         (read_file_system_list): Declare a local with "const".
5542         * lib/nanosleep.c (getnow): Declare static.
5543         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
5544
5545         dirfd: set errno upon failure
5546         * lib/dirfd.c: Include <errno.h>.
5547         Set errno to ENOTSUP when returning -1.
5548         * modules/dirfd (Depends-on): Add errno.
5549         Suggested by John Kodis <kodis@comcast.net>.
5550
5551 2009-02-01  Bruno Haible  <bruno@clisp.org>
5552
5553         Don't assume sizeof (long) >= sizeof (void *).
5554         * lib/memcmp.c: Include stdint.h.
5555         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
5556         srcp2 to 'const byte *'.
5557         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
5558         types to uintptr_t.
5559         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
5560         * modules/memcmp (Depends-on): Add stdint.
5561         Reported by Ozkan Sezer <sezeroz@gmail.com>.
5562
5563 2009-01-30  Eric Blake  <ebb9@byu.net>
5564
5565         fix more require-before-expand issues
5566         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
5567         expand, AC_PROG_AWK.
5568         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
5569
5570 2009-01-28  Eric Blake  <ebb9@byu.net>
5571
5572         version-etc: use consistent URL formatting
5573         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
5574         Improve formatting.  Use fputs for string without %.
5575
5576 2009-01-28  Jim Meyering  <meyering@redhat.com>
5577
5578         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
5579         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
5580         "underquoted definition of NAME" from autoconf-2.59.
5581
5582 2009-01-28  Bruno Haible  <bruno@clisp.org>
5583
5584         * doc/gnulib.texi: Add "Obsolete modules" to index.
5585
5586 2009-01-28  Jim Meyering  <meyering@redhat.com>
5587
5588         useless-if-before-free: recognize more variants
5589         * build-aux/useless-if-before-free: Also recognize e.g.,
5590         if (NULL != p) free (p);
5591
5592 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
5593
5594         test-getaddrinfo: skip (don't fail) this test when there's no network
5595         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
5596         on the presumption that it means you lack network access.
5597
5598 2009-01-26  Jim Meyering  <meyering@redhat.com>
5599
5600         fflush: avoid warnings on modern systems
5601         * lib/fflush.c (rpl_fflush): Move declarations of locals,
5602         pos and result, into scopes where they're used.
5603
5604 2009-01-26  Eric Blake  <ebb9@byu.net>
5605
5606         Silence warning reintroduced by recent extensions patch.
5607         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
5608         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
5609         autoconf.
5610
5611         Backport improved autoconf semantics of AC_DEFUN_ONCE.
5612         * m4/00gnulib.m4: New file.
5613         * gnulib-tool (func_get_filelist): Always use it.
5614         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
5615         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
5616
5617 2009-01-25  Bruno Haible  <bruno@clisp.org>
5618
5619         Make test-quotearg work on MacOS X and AIX.
5620         * tests/test-quotearg.sh: New file.
5621         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
5622         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
5623         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
5624         include <libintl.h>.
5625         (fake_locale): Remove variable.
5626         (gettext, dgettext, dcgettext): Remove functions.
5627         (main): Instead of setting a fake locale, set a real locale. Call
5628         textdomain and bindtextdomain.
5629         * modules/quotearg-tests (Files): Add the new files.
5630         (Depends-on): Add gettext, setenv, unsetenv.
5631         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
5632         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
5633         Augment TESTS_ENVIRONMENT.
5634
5635 2009-01-25  Bruno Haible  <bruno@clisp.org>
5636
5637         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
5638         fr_FR.ISO8859-1 locale on MacOS X.
5639         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
5640         ja_JP.eucJP locale on MacOS X.
5641         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
5642         zh_CN.GB18030 locale on MacOS X.
5643
5644 2009-01-25  Bruno Haible  <bruno@clisp.org>
5645
5646         Avoid link errors on MacOS X 10.3.
5647         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
5648         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
5649
5650 2009-01-25  Bruno Haible  <bruno@clisp.org>
5651
5652         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
5653         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
5654         * modules/pipe (Files): Remove m4/posix_spawn.m4.
5655         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
5656         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
5657         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
5658         posix_spawnattr_init, posix_spawnattr_setsigmask,
5659         posix_spawnattr_setflags, posix_spawnattr_destroy.
5660
5661         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
5662         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
5663         * modules/execute (Files): Remove m4/posix_spawn.m4.
5664         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
5665         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
5666         posix_spawnattr_init, posix_spawnattr_setsigmask,
5667         posix_spawnattr_setflags, posix_spawnattr_destroy.
5668
5669 2009-01-25  Bruno Haible  <bruno@clisp.org>
5670
5671         * lib/glthread/threadlib.c: Include <stdlib.h>.
5672
5673 2009-01-25  Bruno Haible  <bruno@clisp.org>
5674
5675         * lib/glthread/threadlib.c (dummy): New declaration.
5676
5677 2009-01-25  Bruno Haible  <bruno@clisp.org>
5678
5679         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
5680         multibyte characters also for the GB18030 encoding. Don't crash when
5681         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
5682
5683 2009-01-25  Bruno Haible  <bruno@clisp.org>
5684
5685         Avoid redefining 'struct random_data' on OSF/1 5.1.
5686         * lib/stdlib.in.h: Include <random.h> if it exists.
5687         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
5688         HAVE_RANDOM_H. Include <random.h> when testing whether
5689         'struct random_data' exists.
5690         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
5691
5692 2009-01-25  Bruno Haible  <bruno@clisp.org>
5693
5694         Don't install charset.alias on MacOS X >= 10.3.
5695         * lib/localcharset.c (DARWIN7): New macro.
5696         (get_charset_aliases): Hardcode the result for Darwin7.
5697         * modules/localcharset (install-exec-local): Don't install
5698         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
5699
5700 2009-01-25  Bruno Haible  <bruno@clisp.org>
5701
5702         Don't install charset.alias on mingw and Cygwin.
5703         * modules/localcharset (install-exec-local): Don't install
5704         charset.alias on mingw and Cygwin, if the file does not yet exist.
5705         The result for these platforms is hardcoded in localcharset.c.
5706
5707 2009-01-25  Bruno Haible  <bruno@clisp.org>
5708
5709         Make it possible again to use AC_GNU_SOURCE together with gnulib.
5710         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
5711         before requiring AC_USE_SYSTEM_EXTENSIONS.
5712
5713 2009-01-25  Jim Meyering  <meyering@redhat.com>
5714
5715         c-strtod: avoid warnings
5716         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
5717         "assignment discards qualifiers from pointer target type" warnings.
5718
5719 2009-01-24  Bruno Haible  <bruno@clisp.org>
5720
5721         Add support for non-UTF-8 locales on MacOS X.
5722         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
5723         canonical encodings. For Darwin 7 and newer, don't map traditional
5724         encodings to UTF-8.
5725         Reported by Vincent Lefevre <vincent@vinc17.org>
5726         at <http://savannah.gnu.org/bugs/?25235>.
5727
5728 2009-01-24  Bruno Haible  <bruno@clisp.org>
5729
5730         * doc/gnulib.texi (Obsolete modules): New section.
5731         Reported by Mike Frysinger <vapier@gentoo.org>.
5732
5733 2009-01-24  Bruno Haible  <bruno@clisp.org>
5734
5735         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
5736         (%.dvi): New rule.
5737
5738 2009-01-24  Bruno Haible  <bruno@clisp.org>
5739
5740         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
5741         Reported by Eric Blake.
5742
5743 2009-01-24  Bruno Haible  <bruno@clisp.org>
5744
5745         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
5746         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
5747         Reported by Gary V. Vaughan <gary@gnu.org>.
5748
5749 2009-01-24  Bruno Haible  <bruno@clisp.org>
5750
5751         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
5752
5753 2009-01-23  Bruno Haible  <bruno@clisp.org>
5754
5755         Make c-strtod, c-strtold usable in libraries.
5756         * lib/c-strtod.c: Include string.h instead of xalloc.h.
5757         (C_STRTOD): Call strdup instead of xstrdup.
5758         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
5759         * modules/c-strtold (Depends-on): Likewise.
5760         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
5761         * NEWS: Mention the change.
5762         Reported by Michael Gold <mgold@ncf.ca>.
5763
5764 2009-01-23  Jim Meyering  <meyering@redhat.com>
5765
5766         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
5767         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
5768         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
5769
5770 2009-01-23  Simon Josefsson  <simon@josefsson.org>
5771
5772         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
5773         GNU CoreUtils.
5774         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
5775         * modules/version-etc (Description): Update.
5776
5777 2009-01-22  Bruno Haible  <bruno@clisp.org>
5778
5779         Cache the C locale object.
5780         * lib/c-strtod.c (c_locale_cache): New variable.
5781         (c_locale): New function.
5782         (C_STRTOD): Use it, and don't call freelocale.
5783         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
5784         Suggested by Paolo Bonzini.
5785
5786 2009-01-21  Bruno Haible  <bruno@clisp.org>
5787
5788         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
5789         conditions other than overflow.
5790
5791 2009-01-21  Bruno Haible  <bruno@clisp.org>
5792
5793         * lib/c-strtod.c: Include errno.h.
5794         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
5795         value from STRTOD_L and STRTOD.
5796
5797 2009-01-21  Bruno Haible  <bruno@clisp.org>
5798         and Jim Meyering  <meyering@redhat.com>
5799
5800         nanosleep: skip configure test (fail it) for apple universal builds
5801         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
5802         universal builds, assume that nanosleep does not work.
5803         * modules/nanosleep (Depends-on): Add multiarch.
5804
5805         mktime: skip configure test (fail it) for apple universal builds
5806         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
5807         universal builds, assume that mktime does not work.
5808         * modules/mktime (Depends-on): Add multiarch.
5809
5810 2009-01-21  Eric Blake  <ebb9@byu.net>
5811
5812         multiarch: avoid expand-before-require warning
5813         * modules/multiarch (configure.ac): Require, rather than expand,
5814         gl_MULTIARCH.
5815         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
5816         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
5817         enforce that all clients require it.  Partial reversion of
5818         2008-12-29 patch.
5819
5820         error: avoid expand-before-require warning
5821         * modules/errno (configure.ac): Require, rather than expand,
5822         gl_HEADER_ERRNO_H.
5823         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
5824         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
5825         enforce that all clients require it.
5826
5827         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
5828         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
5829         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
5830         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
5831
5832 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
5833
5834         Revert:
5835         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
5836
5837         regex: do not depend on obsolete modules.
5838         * modules/regex: Remove memcmp and memmove.
5839
5840 2009-01-20  Bruno Haible  <bruno@clisp.org>
5841
5842         Make the 'link' module link on Windows NT 4.
5843         * lib/link.c (_WIN32_WINNT): Don't define.
5844         (CreateHardLinkFuncType): New type.
5845         (CreateHardLinkFunc, initialized): New variables.
5846         (initialize): New function.
5847         (link): Invoke CreateHardLink indirectly through the function pointer.
5848
5849 2009-01-20  Bruno Haible  <bruno@clisp.org>
5850
5851         Fix compilation failure on mingw.
5852         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
5853
5854 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
5855
5856         * doc/c-strtod.texi: Mention a couple of restrictions.
5857
5858 2009-01-20  Jim Meyering  <meyering@redhat.com>
5859
5860         gettimeofday: move more declarations out of functions
5861         * lib/gettimeofday.c: Move extern declarations of tzset and
5862         gmtime out of containing functions.  Prompted by Bruno Haible.
5863
5864 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
5865
5866         regex: do not depend on obsolete modules.
5867         * modules/regex: Remove memcmp and memmove.
5868
5869 2009-01-19  Bruno Haible  <bruno@clisp.org>
5870
5871         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
5872         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
5873         gl_BIGENDIAN, not AC_C_BIGENDIAN.
5874         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
5875         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
5876
5877 2009-01-19  Bruno Haible  <bruno@clisp.org>
5878
5879         * tests/test-link.c: Include <errno.h>.
5880         (main): Exit with code 77 when a hard link cannot be created due to
5881         the file system.
5882         * tests/test-link.sh: Skip test when a hard link cannot be created due
5883         to the file system.
5884         Suggested by Eric Blake.
5885
5886 2009-01-19  Martin Lambers  <marlam@marlam.de>
5887
5888         * modules/link-tests: New file.
5889         * tests/test-link.sh: New file.
5890         * tests/test-link.c: New file.
5891
5892 2009-01-19  Eric Blake  <ebb9@byu.net>
5893
5894         doc: mention another function added in cygwin 1.7.0
5895         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
5896         Another new function in cygwin 1.7.
5897
5898 2009-01-19  Bruno Haible  <bruno@clisp.org>
5899
5900         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
5901         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
5902         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
5903         gl_BIGENDIAN, not AC_C_BIGENDIAN.
5904         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
5905         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
5906         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
5907         * m4/md4.m4 (gl_MD4): Likewise.
5908         * m4/md5.m4 (gl_MD5): Likewise.
5909         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
5910         * m4/sha1.m4 (gl_SHA1): Likewise.
5911         * m4/sha256.m4 (gl_SHA256): Likewise.
5912         * m4/sha512.m4 (gl_SHA512): Likewise.
5913
5914 2009-01-19  Bruno Haible  <bruno@clisp.org>
5915
5916         * modules/uniname/uniname-tests (Depends-on): Add progname.
5917         * tests/uniname/test-uninames.c: Include progname.h.
5918         (main): Call set_program_name.
5919
5920         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
5921         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
5922         (main): Call set_program_name.
5923
5924         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
5925         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
5926         (main): Call set_program_name.
5927
5928         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
5929         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
5930         (main): Call set_program_name.
5931
5932         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
5933         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
5934         (main): Call set_program_name.
5935
5936         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
5937         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
5938         (main): Call set_program_name.
5939
5940         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
5941         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
5942         (main): Call set_program_name.
5943
5944         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
5945         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
5946         (main): Call set_program_name.
5947
5948         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
5949         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
5950         (main): Call set_program_name.
5951
5952 2009-01-19  Eric Blake  <ebb9@byu.net>
5953
5954         test-unistd: test previous patch
5955         * tests/test-unistd.c: Test *_FILENO macros.
5956
5957         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
5958         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
5959         Guarantee a definition.
5960         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
5961         * modules/unistd-safer (Depends-on): Add dependency on unistd.
5962         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
5963         * lib/dup-safer.c (STDERR_FILENO): Likewise.
5964         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
5965         Likewise.
5966         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
5967         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
5968         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
5969         Likewise.
5970         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
5971         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
5972         (STDERR_FILENO): Likewise.
5973         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
5974         (STDERR_FILENO): Likewise.
5975         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
5976         (STDERR_FILENO): Likewise.
5977         Reported by Elbert Pol.
5978
5979 2009-01-19  Eric Blake  <ebb9@byu.net>
5980
5981         doc: mention more functions added in cygwin 1.7.0
5982         * doc/posix-functions/abort.texi (abort): Update wording related
5983         to cygwin.
5984         * doc/posix-functions/daylight.texi (daylight): Likewise.
5985         * doc/posix-functions/optarg.texi (optarg): Likewise.
5986         * doc/posix-functions/optarg.texi (opterr): Likewise.
5987         * doc/posix-functions/optarg.texi (optind): Likewise.
5988         * doc/posix-functions/optarg.texi (optopt): Likewise.
5989         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
5990         worked in 1.5.x, and was withdrawn in 1.7.
5991         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
5992         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
5993         cygwin versions.
5994         * doc/posix-functions/perror.texi (perror): Likewise.
5995         * doc/posix-functions/printf.texi (printf): Likewise.
5996         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
5997         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
5998         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
5999         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
6000         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
6001         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
6002         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
6003         Likewise.
6004         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
6005         Likewise.
6006         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
6007         this function.
6008         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
6009         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
6010         Likewise.
6011         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
6012         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
6013         * doc/posix-functions/confstr.texi (confstr): Likewise.
6014         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
6015         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
6016         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
6017         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
6018         * doc/posix-functions/fputws.texi (fputws): Likewise.
6019         * doc/posix-functions/fwide.texi (fwide): Likewise.
6020         * doc/posix-functions/getwc.texi (getwc): Likewise.
6021         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
6022         * doc/posix-functions/putwc.texi (putwc): Likewise.
6023         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
6024         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
6025         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
6026         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
6027         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
6028         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
6029         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
6030         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
6031         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
6032         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
6033         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
6034
6035 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
6036
6037         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
6038         * lib/ioctl.c: Include <sys/ioctl.h>.
6039
6040 2009-01-19  Simon Josefsson  <simon@josefsson.org>
6041
6042         * modules/getdate-tests (Depends-on): Add progname.
6043         * tests/test-getdate.c: Use progname module, to avoid link errors
6044         on non-glibc systems.
6045
6046 2009-01-18  Simon Josefsson  <simon@josefsson.org>
6047
6048         * modules/filenamecat-tests (Depends-on): Add progname.
6049         * modules/fstrcmp-tests (Depends-on): Likewise.
6050
6051         * tests/test-filenamecat.c: Use progname module, to avoid link
6052         errors on non-glibc systems.
6053         * tests/test-fstrcmp.c: Likewise.
6054
6055 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
6056
6057         gettimeofday: avoid warning: nested extern declaration of 'localtime'
6058         * lib/gettimeofday.c: Move extern declaration out of function.
6059
6060 2009-01-18  Bruno Haible  <bruno@clisp.org>
6061
6062         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
6063         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
6064         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
6065
6066 2009-01-18  Bruno Haible  <bruno@clisp.org>
6067
6068         * lib/strftime.c (MEMPCPY): Remove unused macro.
6069         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
6070
6071 2009-01-18  Martin Lambers  <marlam@marlam.de>
6072
6073         New module 'link'.
6074         * lib/unistd.in.h (link): New declaration.
6075         * lib/link.c: New file.
6076         * m4/link.m4: New file.
6077         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
6078         HAVE_LINK.
6079         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
6080         * modules/link: New file.
6081         * doc/posix-functions/link.texi: Mention the new module.
6082
6083 2009-01-18  Bruno Haible  <bruno@clisp.org>
6084
6085         * tests/test-avltree_list.c (main): Call set_program_name.
6086         * tests/test-avltree_oset.c (main): Likewise.
6087         * tests/test-obstack-printf.c: Include progname.h.
6088         (main): Call set_program_name.
6089         * tests/test-quotearg.c: Include progname.h.
6090         (main): Call set_program_name.
6091         * tests/test-xmemdup0.c: Include progname.h.
6092         (main): Call set_program_name.
6093
6094 2009-01-18  Bruno Haible  <bruno@clisp.org>
6095
6096         New module 'alphasort'.
6097         * lib/dirent.in.h (alphasort): New declaration.
6098         * lib/alphasort.c: New file, from glibc with modifications.
6099         * m4/alphasort.m4: New file.
6100         * modules/alphasort: New file.
6101         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
6102         HAVE_ALPHASORT.
6103         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
6104         HAVE_ALPHASORT.
6105         * doc/posix-functions/alphasort.texi: Mention the new module and the
6106         portability problems.
6107
6108 2009-01-18  Bruno Haible  <bruno@clisp.org>
6109
6110         New module 'scandir'.
6111         * lib/dirent.in.h (scandir): New declaration.
6112         * lib/scandir.c: New file, from glibc with modifications.
6113         * m4/scandir.m4: New file.
6114         * modules/scandir: New file.
6115         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
6116         HAVE_SCANDIR.
6117         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
6118         HAVE_SCANDIR.
6119         * doc/posix-functions/scandir.texi: Mention the new module and the
6120         portability problems.
6121
6122 2009-01-17  Bruno Haible  <bruno@clisp.org>
6123
6124         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
6125         Update documentation.
6126         (func_remove_suffix): Escape all dots in the suffix. Update
6127         documentation.
6128         (func_filter_filelist): Update documentation.
6129         Reported by Ralf Wildenhues.
6130
6131 2009-01-17  Bruno Haible  <bruno@clisp.org>
6132
6133         * modules/dprintf-posix-tests: New file.
6134         * tests/test-dprintf-posix.sh: New file.
6135         * tests/test-dprintf-posix.c: New file.
6136
6137         New modules 'dprintf', 'dprintf-posix'.
6138         * lib/stdio.in.h (dprintf): New declaration.
6139         * lib/dprintf.c: New file.
6140         * m4/dprintf.m4: New file.
6141         * m4/dprintf-posix.m4: New file.
6142         * modules/dprintf: New file.
6143         * modules/dprintf-posix: New file.
6144         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
6145         HAVE_DPRINTF, REPLACE_DPRINTF.
6146         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
6147         HAVE_DPRINTF, REPLACE_DPRINTF.
6148         * doc/posix-functions/dprintf.texi: Mention the new modules.
6149
6150 2009-01-17  Bruno Haible  <bruno@clisp.org>
6151
6152         * modules/vdprintf-posix-tests: New file.
6153         * tests/test-vdprintf-posix.sh: New file.
6154         * tests/test-vdprintf-posix.c: New file.
6155
6156         New modules 'vdprintf', 'vdprintf-posix'.
6157         * lib/stdio.in.h (vdprintf): New declaration.
6158         * lib/vdprintf.c: New file.
6159         * m4/vdprintf.m4: New file.
6160         * m4/vdprintf-posix.m4: New file.
6161         * modules/vdprintf: New file.
6162         * modules/vdprintf-posix: New file.
6163         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
6164         HAVE_VDPRINTF, REPLACE_VDPRINTF.
6165         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
6166         HAVE_VDPRINTF, REPLACE_VDPRINTF.
6167         * doc/posix-functions/vdprintf.texi: Mention the new modules.
6168
6169 2009-01-17  Bruno Haible  <bruno@clisp.org>
6170
6171         Fix replacement of fopen on mingw.
6172         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
6173         mingw.
6174
6175 2009-01-17  Bruno Haible  <bruno@clisp.org>
6176
6177         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
6178         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
6179
6180 2009-01-17  Bruno Haible  <bruno@clisp.org>
6181
6182         Avoid test-fflush2.sh failure on mingw.
6183         * tests/test-fflush2.c: Include binary-io.h.
6184         (main): Put standard input into binary mode.
6185         * modules/fflush-tests (Depends-on): Add binary-io.
6186
6187 2009-01-17  Bruno Haible  <bruno@clisp.org>
6188
6189         * lib/wchar.in.h: In another particular situation, include only the
6190         system's <wchar.h> file.
6191         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
6192         Reported by Albert Chin-A-Young <china@thewrittenword.com>
6193         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
6194
6195 2009-01-17  Bruno Haible  <bruno@clisp.org>
6196
6197         Support for stripping executables in --enable-relocatable.
6198         * build-aux/install-reloc: Expect one more argument, or an environment
6199         variable RELOC_STRIP_PROG. If set, strip the destination program and
6200         its wrapper.
6201         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
6202         RELOC_STRIP_PROG.
6203         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
6204         to set RELOCATABLE_STRIP.
6205         * NEWS: Mention the new Makefile requirement.
6206
6207 2009-01-17  Bruno Haible  <bruno@clisp.org>
6208
6209         * build-aux/install-reloc: Remove debugging information left over by
6210         C compiler on MacOS X.
6211
6212 2009-01-17  Bruno Haible  <bruno@clisp.org>
6213
6214         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
6215         * lib/progreloc.c (find_executable): Fix type of pointer passed to
6216         _NSGetExecutablePath.
6217
6218 2009-01-16  Jim Meyering  <meyering@redhat.com>
6219
6220         strerror: avoid warnings about discarding "const"
6221         * lib/strerror.c (rpl_strerror): Instead of returning a const
6222         string from each and every "case", use a variable, and add a single
6223         cast after the switch.
6224
6225 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
6226
6227         * lib/arpa_inet.in.h: Add extern "C" block for C++.
6228
6229 2009-01-16  Bruno Haible  <bruno@clisp.org>
6230
6231         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
6232         array initializer syntax that also works in C++ mode.
6233         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6234
6235 2009-01-16  Jim Meyering  <meyering@redhat.com>
6236
6237         poll: suppress a warning
6238         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
6239         to ignore "...unsigned expression < 0 is always false" warnings.
6240
6241 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
6242
6243         poll: remove declarations of unused variables
6244         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
6245         sockbuf and optlen.
6246
6247 2009-01-15  Bruno Haible  <bruno@clisp.org>
6248
6249         Make fflush-after-ungetc POSIX compliant on BSD systems.
6250         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
6251         (clear_ungetc_buffer): Implement also for other systems.
6252         (rpl_fflush): On glibc systems, invoke
6253         clear_ungetc_buffer_preserving_position. Otherwise, invoke
6254         clear_ungetc_buffer after fetching the stream's position, not before.
6255
6256 2009-01-15  Bruno Haible  <bruno@clisp.org>
6257
6258         Make fflush-after-ungetc POSIX compliant on glibc systems.
6259         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
6260         after ungetc.
6261         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
6262         (rpl_fflush): On glibc systems, simply call the system's fflush
6263         function after clearing the ungetc buffer.
6264         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
6265         Instead, lseek only to the end of file, then use the system's fseeko
6266         for the rest. On glibc systems, reset the EOF indicator bit.
6267
6268 2009-01-15  Jim Meyering  <meyering@redhat.com>
6269
6270         openmp.m4: revert quote-adding change, for portability to older autoconf
6271         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
6272         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
6273         Simon Josefsson noticed the problem when using autoconf-2.61.
6274
6275 2009-01-15  Bruno Haible  <bruno@clisp.org>
6276
6277         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
6278         * tests/test-fflush2.c (ASSERT): Always fail.
6279         (main): Add two tests for fflush() after ungetc(), taking into account
6280         the Austin Group's clarification.
6281         Suggested by Eric Blake.
6282
6283 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
6284
6285         mktime.m4: remove K&R-style function prototypes
6286         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
6287         for the Sun C++ compiler.
6288
6289 2009-01-14  Bruno Haible  <bruno@clisp.org>
6290
6291         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
6292         while including <wchar.h>.
6293         * lib/wchar.in.h: In two particular situations on HP-UX, include only
6294         the system's <wchar.h> file.
6295         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
6296
6297 2009-01-14  Bruno Haible  <bruno@clisp.org>
6298
6299         * m4/csharp.m4: Don't mention gettext on the serial number line.
6300         * m4/csharpexec.m4: Likewise.
6301         * m4/eaccess.m4: Likewise.
6302         * m4/javaexec.m4: Likewise.
6303         * m4/sig_atomic_t.m4: Likewise.
6304         * m4/tmpdir.m4: Likewise.
6305         * m4/intldir.m4: Bump gettext version.
6306         * m4/lib-ld.m4: Likewise.
6307
6308 2009-01-14  Bruno Haible  <bruno@clisp.org>
6309
6310         * lib/progname.c (set_program_name): Add more comments.
6311         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
6312
6313 2009-01-14  Simon Josefsson  <simon@josefsson.org>
6314
6315         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
6316         were sys/stat.h does not define it.
6317
6318 2009-01-14  Jim Meyering  <meyering@redhat.com>
6319
6320         many *.m4 files: improve m4 quoting
6321         99% of this change was performed by running the following commands:
6322         git ls-files | grep '\.m4$' | xargs perl -pi \
6323           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
6324           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
6325           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
6326           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
6327         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
6328         The remainder were to add Copyright dates, increment serial numbers,
6329         undo some changes in comments, exclude m4/intl.m4, and add quotes
6330         around the "1" in ",1" where the unusual spacing prohibited the
6331         above regexps from doing the job.  For more details, see
6332         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
6333         * m4/acl.m4: Modified.
6334         * m4/afs.m4: Likewise.
6335         * m4/alloca.m4: Likewise.
6336         * m4/argp.m4: Likewise.
6337         * m4/argz.m4: Likewise.
6338         * m4/atexit.m4: Likewise.
6339         * m4/bison-i18n.m4: Likewise.
6340         * m4/bison.m4: Likewise.
6341         * m4/byteswap.m4: Likewise.
6342         * m4/c-stack.m4: Likewise.
6343         * m4/c-strtod.m4: Likewise.
6344         * m4/calloc.m4: Likewise.
6345         * m4/canonicalize-lgpl.m4: Likewise.
6346         * m4/chown.m4: Likewise.
6347         * m4/clock_time.m4: Likewise.
6348         * m4/codeset.m4: Likewise.
6349         * m4/copy-file.m4: Likewise.
6350         * m4/csharp.m4: Likewise.
6351         * m4/csharpcomp.m4: Likewise.
6352         * m4/csharpexec.m4: Likewise.
6353         * m4/d-ino.m4: Likewise.
6354         * m4/d-type.m4: Likewise.
6355         * m4/dirfd.m4: Likewise.
6356         * m4/double-slash-root.m4: Likewise.
6357         * m4/eaccess.m4: Likewise.
6358         * m4/eealloc.m4: Likewise.
6359         * m4/environ.m4: Likewise.
6360         * m4/errno_h.m4: Likewise.
6361         * m4/euidaccess.m4: Likewise.
6362         * m4/execute.m4: Likewise.
6363         * m4/fatal-signal.m4: Likewise.
6364         * m4/fchdir.m4: Likewise.
6365         * m4/fcntl_h.m4: Likewise.
6366         * m4/fileblocks.m4: Likewise.
6367         * m4/filenamecat.m4: Likewise.
6368         * m4/findprog.m4: Likewise.
6369         * m4/flexmember.m4: Likewise.
6370         * m4/fnmatch.m4: Likewise.
6371         * m4/fopen.m4: Likewise.
6372         * m4/fpending.m4: Likewise.
6373         * m4/fprintf-posix.m4: Likewise.
6374         * m4/free.m4: Likewise.
6375         * m4/frexp.m4: Likewise.
6376         * m4/frexpl.m4: Likewise.
6377         * m4/fsusage.m4: Likewise.
6378         * m4/ftruncate.m4: Likewise.
6379         * m4/gc-camellia.m4: Likewise.
6380         * m4/gc-random.m4: Likewise.
6381         * m4/gc.m4: Likewise.
6382         * m4/getaddrinfo.m4: Likewise.
6383         * m4/getcwd-abort-bug.m4: Likewise.
6384         * m4/getcwd-path-max.m4: Likewise.
6385         * m4/getdate.m4: Likewise.
6386         * m4/getdomainname.m4: Likewise.
6387         * m4/getgroups.m4: Likewise.
6388         * m4/gethostname.m4: Likewise.
6389         * m4/gethrxtime.m4: Likewise.
6390         * m4/getline.m4: Likewise.
6391         * m4/getloadavg.m4: Likewise.
6392         * m4/getndelim2.m4: Likewise.
6393         * m4/getpass.m4: Likewise.
6394         * m4/gettext.m4: Likewise.
6395         * m4/gettime.m4: Likewise.
6396         * m4/gettimeofday.m4: Likewise.
6397         * m4/gnulib-common.m4: Likewise.
6398         * m4/group-member.m4: Likewise.
6399         * m4/host-os.m4: Likewise.
6400         * m4/iconv.m4: Likewise.
6401         * m4/iconv_open.m4: Likewise.
6402         * m4/inet_ntop.m4: Likewise.
6403         * m4/inet_pton.m4: Likewise.
6404         * m4/inline.m4: Likewise.
6405         * m4/intldir.m4: Likewise.
6406         * m4/intlmacosx.m4: Likewise.
6407         * m4/intmax.m4: Likewise.
6408         * m4/intmax_t.m4: Likewise.
6409         * m4/inttypes.m4: Likewise.
6410         * m4/inttypes_h.m4: Likewise.
6411         * m4/inttypes-pri.m4: Likewise.
6412         * m4/isapipe.m4: Likewise.
6413         * m4/isnand.m4: Likewise.
6414         * m4/isnanf.m4: Likewise.
6415         * m4/isnanl.m4: Likewise.
6416         * m4/javacomp.m4: Likewise.
6417         * m4/javaexec.m4: Likewise.
6418         * m4/jm-winsz1.m4: Likewise.
6419         * m4/jm-winsz2.m4: Likewise.
6420         * m4/lchown.m4: Likewise.
6421         * m4/lcmessage.m4: Likewise.
6422         * m4/ldexpl.m4: Likewise.
6423         * m4/lib-ld.m4: Likewise.
6424         * m4/lib-link.m4: Likewise.
6425         * m4/libsigsegv.m4: Likewise.
6426         * m4/link-follow.m4: Likewise.
6427         * m4/localcharset.m4: Likewise.
6428         * m4/locale-fr.m4: Likewise.
6429         * m4/locale-ja.m4: Likewise.
6430         * m4/locale-tr.m4: Likewise.
6431         * m4/locale-zh.m4: Likewise.
6432         * m4/lock.m4: Likewise.
6433         * m4/longlong.m4: Likewise.
6434         * m4/ls-mntd-fs.m4: Likewise.
6435         * m4/lstat.m4: Likewise.
6436         * m4/malloc.m4: Likewise.
6437         * m4/mathl.m4: Likewise.
6438         * m4/mbrtowc.m4: Likewise.
6439         * m4/mbstate_t.m4: Likewise.
6440         * m4/mbswidth.m4: Likewise.
6441         * m4/memchr.m4: Likewise.
6442         * m4/memcmp.m4: Likewise.
6443         * m4/memcpy.m4: Likewise.
6444         * m4/memmem.m4: Likewise.
6445         * m4/memmove.m4: Likewise.
6446         * m4/mempcpy.m4: Likewise.
6447         * m4/memrchr.m4: Likewise.
6448         * m4/memset.m4: Likewise.
6449         * m4/minmax.m4: Likewise.
6450         * m4/mkdir-slash.m4: Likewise.
6451         * m4/mkdtemp.m4: Likewise.
6452         * m4/mktime.m4: Likewise.
6453         * m4/mmap-anon.m4: Likewise.
6454         * m4/mountlist.m4: Likewise.
6455         * m4/nanosleep.m4: Likewise.
6456         * m4/nls.m4: Likewise.
6457         * m4/nocrash.m4: Likewise.
6458         * m4/open.m4: Likewise.
6459         * m4/openat.m4: Likewise.
6460         * m4/openmp.m4: Likewise.
6461         * m4/pathmax.m4: Likewise.
6462         * m4/perl.m4: Likewise.
6463         * m4/physmem.m4: Likewise.
6464         * m4/pipe.m4: Likewise.
6465         * m4/po.m4: Likewise.
6466         * m4/poll.m4: Likewise.
6467         * m4/posixtm.m4: Likewise.
6468         * m4/posixver.m4: Likewise.
6469         * m4/printf-frexp.m4: Likewise.
6470         * m4/printf-frexpl.m4: Likewise.
6471         * m4/printf-posix.m4: Likewise.
6472         * m4/printf-posix-rpl.m4: Likewise.
6473         * m4/printf.m4: Likewise.
6474         * m4/progtest.m4: Likewise.
6475         * m4/putenv.m4: Likewise.
6476         * m4/readline.m4: Likewise.
6477         * m4/readlink.m4: Likewise.
6478         * m4/readutmp.m4: Likewise.
6479         * m4/realloc.m4: Likewise.
6480         * m4/regex.m4: Likewise.
6481         * m4/relocatable.m4: Likewise.
6482         * m4/relocatable-lib.m4: Likewise.
6483         * m4/rename-dest-slash.m4: Likewise.
6484         * m4/rename.m4: Likewise.
6485         * m4/rmdir-errno.m4: Likewise.
6486         * m4/rmdir.m4: Likewise.
6487         * m4/roundf.m4: Likewise.
6488         * m4/roundl.m4: Likewise.
6489         * m4/rpmatch.m4: Likewise.
6490         * m4/save-cwd.m4: Likewise.
6491         * m4/selinux-selinux-h.m4: Likewise.
6492         * m4/setenv.m4: Likewise.
6493         * m4/settime.m4: Likewise.
6494         * m4/sig2str.m4: Likewise.
6495         * m4/sig_atomic_t.m4: Likewise.
6496         * m4/signalblocking.m4: Likewise.
6497         * m4/signbit.m4: Likewise.
6498         * m4/sigpipe.m4: Likewise.
6499         * m4/sockets.m4: Likewise.
6500         * m4/sockpfaf.m4: Likewise.
6501         * m4/st_dm_mode.m4: Likewise.
6502         * m4/stat-time.m4: Likewise.
6503         * m4/stdbool.m4: Likewise.
6504         * m4/stdint.m4: Likewise.
6505         * m4/stdint_h.m4: Likewise.
6506         * m4/stpcpy.m4: Likewise.
6507         * m4/stpncpy.m4: Likewise.
6508         * m4/strcase.m4: Likewise.
6509         * m4/strchrnul.m4: Likewise.
6510         * m4/strcspn.m4: Likewise.
6511         * m4/strdup.m4: Likewise.
6512         * m4/strftime.m4: Likewise.
6513         * m4/strndup.m4: Likewise.
6514         * m4/strnlen.m4: Likewise.
6515         * m4/strpbrk.m4: Likewise.
6516         * m4/strptime.m4: Likewise.
6517         * m4/strsep.m4: Likewise.
6518         * m4/strtod.m4: Likewise.
6519         * m4/strtoimax.m4: Likewise.
6520         * m4/strtok_r.m4: Likewise.
6521         * m4/strtol.m4: Likewise.
6522         * m4/strtoll.m4: Likewise.
6523         * m4/strtoul.m4: Likewise.
6524         * m4/strtoull.m4: Likewise.
6525         * m4/strtoumax.m4: Likewise.
6526         * m4/strverscmp.m4: Likewise.
6527         * m4/threadlib.m4: Likewise.
6528         * m4/timegm.m4: Likewise.
6529         * m4/tm_gmtoff.m4: Likewise.
6530         * m4/tmpdir.m4: Likewise.
6531         * m4/tmpfile.m4: Likewise.
6532         * m4/tzset.m4: Likewise.
6533         * m4/uintmax_t.m4: Likewise.
6534         * m4/unlinkdir.m4: Likewise.
6535         * m4/unlocked-io.m4: Likewise.
6536         * m4/uptime.m4: Likewise.
6537         * m4/userspec.m4: Likewise.
6538         * m4/utimbuf.m4: Likewise.
6539         * m4/utime.m4: Likewise.
6540         * m4/utimes-null.m4: Likewise.
6541         * m4/utimes.m4: Likewise.
6542         * m4/vararrays.m4: Likewise.
6543         * m4/vasnprintf.m4: Likewise.
6544         * m4/vfprintf-posix.m4: Likewise.
6545         * m4/vprintf-posix.m4: Likewise.
6546         * m4/wait-process.m4: Likewise.
6547         * m4/wchar_t.m4: Likewise.
6548         * m4/wint_t.m4: Likewise.
6549         * m4/write-any-file.m4: Likewise.
6550         * m4/yield.m4: Likewise.
6551
6552 2009-01-13  Bruno Haible  <bruno@clisp.org>
6553
6554         Avoid test-copy-file.sh failures when ACL support insufficient.
6555         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
6556         TESTS_ENVIRONMENT.
6557         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
6558         Reported by Jim Meyering.
6559
6560 2009-01-13  Bruno Haible  <bruno@clisp.org>
6561
6562         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
6563         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
6564         * modules/unistdio/u8-printf-parse (Files): Likewise.
6565         * modules/unistdio/u32-printf-parse (Files): Likewise.
6566         * modules/unistdio/ulc-printf-parse (Files): Likewise.
6567
6568 2009-01-13  Simon Josefsson  <simon@josefsson.org>
6569
6570         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
6571         and m4/inttypes_h.m4 too.
6572
6573 2009-01-12  Eric Blake  <ebb9@byu.net>
6574
6575         tests: IRIX 6.2 cc can't compile -0.0 into .data
6576         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
6577         rather than at compile-time.
6578         * tests/test-floorl.c (minus_zero): Likewise.
6579         * tests/test-frexpl.c (minus_zero): Likewise.
6580         * tests/test-isnan.c (minus_zerol): Likewise.
6581         * tests/test-isnanl.h (minus_zero): Likewise.
6582         * tests/test-ldexpl.c (minus_zero): Likewise.
6583         * tests/test-roundl.c (minus_zero): Likewise.
6584         * tests/test-signbit.c (minus_zerol): Likewise.
6585         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
6586         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
6587         * tests/test-truncl.c (minus_zero): Likewise.
6588         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
6589         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
6590         Reported by Tom G. Christensen and Nelson H. F. Beebe.
6591
6592 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
6593
6594         regex: fix glibc bug 9697
6595         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
6596         handling.
6597
6598 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
6599
6600         regex: fix glibc bug 697
6601         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
6602         being NULL also if there are no backreferences.
6603
6604 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
6605
6606         regex: merge glibc changes
6607         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
6608         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
6609         re_string_skip_chars, re_string_reconstruct): Likewise.
6610         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
6611
6612 2009-01-07  Jim Meyering  <meyering@redhat.com>
6613
6614         poll: filter through cppi
6615         * lib/poll.c: Indent cpp directives to reflect nesting.
6616
6617 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
6618
6619         poll: don't return uninitialized
6620         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
6621
6622 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
6623
6624         avoid compile failure on AIX 6.1
6625         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
6626         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
6627
6628 2009-01-04  Jim Meyering  <meyering@redhat.com>
6629
6630         remove duplicate inclusion of <stdio.h>
6631         * tests/test-fprintf-posix.c: Likewise.
6632         * tests/test-printf-posix.c: Likewise.
6633         * tests/test-snprintf-posix.c: Likewise.
6634         * tests/test-sprintf-posix.c: Likewise.
6635         * tests/test-vasprintf-posix.c: Likewise.
6636         * tests/test-vfprintf-posix.c: Likewise.
6637         * tests/test-vprintf-posix.c: Likewise.
6638         * tests/test-vsnprintf-posix.c: Likewise.
6639         * tests/test-vsprintf-posix.c: Likewise.
6640
6641 2009-01-03  Jim Meyering  <meyering@redhat.com>
6642
6643         gnulib-tool: fix sed-based filtering
6644         * gnulib-tool (func_filter_filelist): Remove extra backslash
6645         in sed_fff_filter definition.
6646
6647 2009-01-02  Jim Meyering  <meyering@redhat.com>
6648
6649         strftime: avoid compilation failure on Solaris 2.6
6650         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
6651         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
6652         Don't #define mbrlen or mbsinit, since now they're guaranteed to
6653         be available.  Reported by Tom G. Christensen.  Details in
6654         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
6655
6656 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6657             Bruno Haible  <bruno@clisp.org>
6658
6659         Speed up gnulib-tool by doing more string processing through shell
6660         built-ins.
6661         * gnulib-tool (fast_func_append): New variable.
6662         (func_remove_prefix, func_remove_suffix): New functions.
6663         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
6664         (func_filter_filelist): New function.
6665         (func_get_dependencies): Use func_remove_suffix instead of sed.
6666         (func_get_automake_snippet): Use func_filter_filelist instead of a
6667         subshell and sed invocation.
6668
6669 2009-01-01  Bruno Haible  <bruno@clisp.org>
6670
6671         Fix a security bug.
6672         * gnulib-tool (func_import, import, update): Don't allow the characters
6673         '"', '$', '`', '\' in macro arguments that become part of commands that
6674         are evaluated.
6675
6676 2009-01-01  Bruno Haible  <bruno@clisp.org>
6677
6678         * gnulib-tool (func_reset_sigpipe): Add more comments.
6679
6680 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6681
6682         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
6683         func_emit_tests_Makefile_am, func_import): Abort loops early if we
6684         already know the answer.
6685
6686 2009-01-01  Jim Meyering  <meyering@redhat.com>
6687
6688         * lib/version-etc.c (version_etc_va): Update copyright year.
6689
6690 2008-12-30  Bruno Haible  <bruno@clisp.org>
6691
6692         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
6693         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
6694         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
6695
6696 2008-12-29  Eric Blake  <ebb9@byu.net>
6697
6698         multiarch: avoid autoconf AC_REQUIRE bug
6699         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
6700         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
6701         2.63 and older.
6702         Reported by Bruno Haible, and analyzed in
6703         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
6704
6705 2008-12-29  Bruno Haible  <bruno@clisp.org>
6706
6707         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
6708         files in subdirectories correctly.
6709         Reported by Ralf Wildenhues.
6710
6711 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6712
6713         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
6714         rather than 'join FILE -', for Solaris join.
6715
6716 2008-12-29  Bruno Haible  <bruno@clisp.org>
6717
6718         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
6719         quoting.
6720         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
6721         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
6722         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
6723         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
6724         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
6725         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
6726         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
6727         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
6728         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
6729         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
6730         * m4/nls.m4 (AM_NLS): Likewise.
6731         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
6732         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
6733         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
6734         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
6735         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
6736         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
6737         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
6738         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
6739         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
6740         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
6741         * m4/xsize.m4 (gl_XSIZE): Likewise.
6742         Suggested by Jim Meyering.
6743
6744 2008-11-17  Bruce Korb  <bkorb@gnu.org>
6745
6746         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
6747         * lib/parse-duration.c: use a switch instead of cascading if's.
6748
6749 2008-12-29  Eric Blake  <ebb9@byu.net>
6750
6751         wchar.h: supply WEOF on Irix 5.3
6752         * lib/wchar.in.h (wint_t): Also supply WEOF.
6753         * lib/wctype.in.h (wint_t): Likewise.
6754         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
6755         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
6756         Reported by Tom G. Christensen.
6757
6758 2008-12-26  Bruno Haible  <bruno@clisp.org>
6759
6760         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
6761         i486, i586, i686.
6762
6763 2008-12-26  Bruno Haible  <bruno@clisp.org>
6764
6765         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
6766
6767 2008-12-26  Bruno Haible  <bruno@clisp.org>
6768
6769         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
6770         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
6771         not __STDC_CONSTANT_MACROS.
6772         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
6773
6774 2008-12-25  Bruno Haible  <bruno@clisp.org>
6775
6776         Add support for universal builds to vasnprintf.
6777         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
6778         universal builds, guess no.
6779         * modules/vasnprintf-posix (Depends-on): Add multiarch.
6780         * modules/vasprintf-posix (Depends-on): Likewise.
6781         * modules/fprintf-posix (Depends-on): Likewise.
6782         * modules/vfprintf-posix (Depends-on): Likewise.
6783         * modules/snprintf-posix (Depends-on): Likewise.
6784         * modules/vsnprintf-posix (Depends-on): Likewise.
6785         * modules/sprintf-posix (Depends-on): Likewise.
6786         * modules/vsprintf-posix (Depends-on): Likewise.
6787         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
6788         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
6789         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
6790         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
6791         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
6792         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
6793         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
6794
6795         Add support for universal builds to <inttypes.h>.
6796         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
6797         _SCNu64_PREFIX): In Apple
6798         universal builds, define directly, using _LP64.
6799         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
6800         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
6801         * modules/inttypes (Depends-on): Add multiarch.
6802         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
6803
6804         Add support for universal builds to <stdint.h>.
6805         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
6806         universal builds, define directly, using _LP64.
6807         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
6808         Apple universal builds, don't test for the size and suffix of ptrdiff_t
6809         and size_t.
6810         * modules/stdint (Depends-on): Add multiarch.
6811         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
6812
6813         New module 'multiarch'.
6814         * modules/multiarch: New file.
6815         * m4/multiarch.m4: New file.
6816
6817 2008-12-25  Bruno Haible  <bruno@clisp.org>
6818
6819         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
6820
6821 2008-12-25  Bruno Haible  <bruno@clisp.org>
6822
6823         * modules/btowc (License): Relicense under LGPLv2+.
6824         * modules/mbsinit (License): Likewise.
6825         * modules/mbrtowc (License): Likewise.
6826         * modules/wcrtomb (License): Likewise.
6827         * modules/streq (License): Likewise.
6828         Reported by David Lutterkort <lutter@redhat.com>.
6829
6830 2008-12-23  Bruno Haible  <bruno@clisp.org>
6831
6832         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
6833
6834 2008-12-23  Bruno Haible  <bruno@clisp.org>
6835
6836         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
6837         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
6838         GETADDRINFO_LIB, not in LIBS.
6839         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
6840         * modules/canon-host (Link): Likewise.
6841         * NEWS: Mention the change.
6842         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
6843         GETADDRINFO_LIB.
6844
6845 2008-12-22  Bruno Haible  <bruno@clisp.org>
6846
6847         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
6848         * doc/posix-functions/iswalpha_l.texi: Likewise.
6849         * doc/posix-functions/iswblank_l.texi: Likewise.
6850         * doc/posix-functions/iswcntrl_l.texi: Likewise.
6851         * doc/posix-functions/iswctype_l.texi: Likewise.
6852         * doc/posix-functions/iswdigit_l.texi: Likewise.
6853         * doc/posix-functions/iswgraph_l.texi: Likewise.
6854         * doc/posix-functions/iswlower_l.texi: Likewise.
6855         * doc/posix-functions/iswprint_l.texi: Likewise.
6856         * doc/posix-functions/iswpunct_l.texi: Likewise.
6857         * doc/posix-functions/iswspace_l.texi: Likewise.
6858         * doc/posix-functions/iswupper_l.texi: Likewise.
6859         * doc/posix-functions/iswxdigit_l.texi: Likewise.
6860         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
6861         * doc/posix-functions/open_wmemstream.texi: Likewise.
6862         * doc/posix-functions/swscanf.texi: Likewise.
6863         * doc/posix-functions/towctrans_l.texi: Likewise.
6864         * doc/posix-functions/towlower.texi: Likewise.
6865         * doc/posix-functions/towlower_l.texi: Likewise.
6866         * doc/posix-functions/towupper.texi: Likewise.
6867         * doc/posix-functions/towupper_l.texi: Likewise.
6868         * doc/posix-functions/vfwprintf.texi: Likewise.
6869         * doc/posix-functions/vfwscanf.texi: Likewise.
6870         * doc/posix-functions/vswscanf.texi: Likewise.
6871         * doc/posix-functions/vwprintf.texi: Likewise.
6872         * doc/posix-functions/vwscanf.texi: Likewise.
6873         * doc/posix-functions/wcpcpy.texi: Likewise.
6874         * doc/posix-functions/wcpncpy.texi: Likewise.
6875         * doc/posix-functions/wcscasecmp.texi: Likewise.
6876         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
6877         * doc/posix-functions/wcscoll_l.texi: Likewise.
6878         * doc/posix-functions/wcsdup.texi: Likewise.
6879         * doc/posix-functions/wcsncasecmp.texi: Likewise.
6880         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
6881         * doc/posix-functions/wcsnlen.texi: Likewise.
6882         * doc/posix-functions/wcsnrtombs.texi: Likewise.
6883         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
6884         * doc/posix-functions/wctrans_l.texi: Likewise.
6885         * doc/posix-functions/wctype_l.texi: Likewise.
6886         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
6887         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
6888         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
6889         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
6890         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
6891         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
6892         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
6893         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
6894         * doc/glibc-functions/wcschrnul.texi: Likewise.
6895         * doc/glibc-functions/wcsftime_l.texi: Likewise.
6896         * doc/glibc-functions/wcstod_l.texi: Likewise.
6897         * doc/glibc-functions/wcstof_l.texi: Likewise.
6898         * doc/glibc-functions/wcstol_l.texi: Likewise.
6899         * doc/glibc-functions/wcstold_l.texi: Likewise.
6900         * doc/glibc-functions/wcstoll_l.texi: Likewise.
6901         * doc/glibc-functions/wcstoq.texi: Likewise.
6902         * doc/glibc-functions/wcstoul_l.texi: Likewise.
6903         * doc/glibc-functions/wcstoull_l.texi: Likewise.
6904         * doc/glibc-functions/wcstouq.texi: Likewise.
6905         * doc/glibc-functions/wmempcpy.texi: Likewise.
6906
6907 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
6908             Eric Blake  <ebb9@byu.net>
6909             Paolo Bonzini  <bonzini@gnu.org>
6910             Bruno Haible  <bruno@clisp.org>
6911
6912         Make c-stack work on Haiku.
6913         * lib/c-stack.c (SA_ONSTACK): Define fallback.
6914         (c_stack_action): Use SA_ONSTACK flag.
6915
6916 2008-12-22  Bruno Haible  <bruno@clisp.org>
6917
6918         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
6919
6920 2008-12-22  Bruno Haible  <bruno@clisp.org>
6921
6922         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
6923         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
6924         being overridden.
6925         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
6926         New macros.
6927         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
6928         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
6929         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
6930         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
6931
6932 2008-12-22  Bruno Haible  <bruno@clisp.org>
6933
6934         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
6935         from test code.
6936
6937 2008-12-22  Eric Blake  <ebb9@byu.net>
6938
6939         Avoid gcc warnings on cygwin.
6940         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
6941         Avoid unused variable.
6942         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
6943         Likewise.
6944
6945 2008-12-22  Bruno Haible  <bruno@clisp.org>
6946
6947         Remove HAVE_MBRTOWC conditionals.
6948         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
6949         (mbscasecmp): Assume mbrtowc function.
6950         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
6951         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
6952         * lib/mbschr.c: Include mbuiter.h unconditionally.
6953         (mbschr): Assume mbrtowc function.
6954         * lib/mbscspn.c: Include mbuiter.h unconditionally.
6955         (mbscspn): Assume mbrtowc function.
6956         * lib/mbslen.c: Include mbuiter.h unconditionally.
6957         (mbslen): Assume mbrtowc function.
6958         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
6959         (mbsncasecmp): Assume mbrtowc function.
6960         * lib/mbsnlen.c: Include mbiter.h unconditionally.
6961         (mbsnlen): Assume mbrtowc function.
6962         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
6963         (mbspbrk): Assume mbrtowc function.
6964         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
6965         (mbspcasecmp): Assume mbrtowc function.
6966         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
6967         (mbsrchr): Assume mbrtowc function.
6968         * lib/mbssep.c: Include mbuiter.h unconditionally.
6969         (mbssep): Assume mbrtowc function.
6970         * lib/mbsspn.c: Include mbuiter.h unconditionally.
6971         (mbsspn): Assume mbrtowc function.
6972         * lib/mbsstr.c: Include mbuiter.h unconditionally.
6973         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
6974         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
6975         (mbstok_r): Assume mbrtowc function.
6976         * lib/propername.c: Include mbuiter.h unconditionally.
6977         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
6978         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
6979         (trim2): Assume mbrtowc function.
6980         * lib/mbswidth.c (mbsinit): Remove fallback definition.
6981         (mbsnwidth): Assume mbrtowc function.
6982         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
6983         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
6984         fallback definitions.
6985         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
6986
6987 2008-12-22  Bruno Haible  <bruno@clisp.org>
6988
6989         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
6990
6991 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
6992
6993         * modules/regex: Request emulations for the mb*/wc* functions we need.
6994         * m4/regex.m4: Don't look for those functions here.
6995         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
6996
6997 2008-12-22  Bruno Haible  <bruno@clisp.org>
6998
6999         * modules/fnmatch (Depends-on): Remove duplicated dependency.
7000
7001 2008-12-21  Bruno Haible  <bruno@clisp.org>
7002
7003         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
7004         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
7005         (Include): Remove conditionalization.
7006         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
7007         (Include): Remove conditionalization.
7008         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
7009         (Include): Remove conditionalization.
7010         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
7011         * m4/mbfile.m4 (gl_MBFILE): Likewise.
7012         * NEWS: Mention the change.
7013         Reported by Alan Hourihane <alanh@fairlite.co.uk>
7014         via Sergey Poznyakoff <gray@gnu.org.ua>.
7015
7016 2008-12-21  Bruno Haible  <bruno@clisp.org>
7017
7018         * MODULES.html.sh (Extended multibyte and wide character utilities
7019         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
7020         wcrtomb, wcsrtombs.
7021         (Support for systems lacking POSIX:2008): Add accept, bind, close,
7022         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
7023         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
7024         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
7025
7026 2008-12-21  Bruno Haible  <bruno@clisp.org>
7027
7028         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
7029
7030 2008-12-21  Bruno Haible  <bruno@clisp.org>
7031
7032         * modules/wcsnrtombs-tests: New file.
7033         * tests/test-wcsnrtombs1.sh: New file.
7034         * tests/test-wcsnrtombs2.sh: New file.
7035         * tests/test-wcsnrtombs3.sh: New file.
7036         * tests/test-wcsnrtombs4.sh: New file.
7037         * tests/test-wcsnrtombs.c: New file.
7038
7039         New module 'wcsnrtombs'.
7040         * lib/wchar.in.h (wcsnrtombs): New declaration.
7041         * lib/wcsnrtombs.c: New file.
7042         * lib/wcsrtombs-state.c: New file.
7043         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
7044         (internal_state): Remove variable.
7045         * m4/wcsnrtombs.m4: New file.
7046         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
7047         compilation units.
7048         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
7049         HAVE_WCSNRTOMBS.
7050         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
7051         HAVE_WCSNRTOMBS.
7052         * modules/wcsnrtombs: New file.
7053         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
7054         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
7055
7056 2008-12-21  Bruno Haible  <bruno@clisp.org>
7057
7058         * modules/wcsrtombs-tests: New file.
7059         * tests/test-wcsrtombs1.sh: New file.
7060         * tests/test-wcsrtombs2.sh: New file.
7061         * tests/test-wcsrtombs3.sh: New file.
7062         * tests/test-wcsrtombs4.sh: New file.
7063         * tests/test-wcsrtombs.c: New file.
7064
7065         New module 'wcsrtombs'.
7066         * lib/wchar.in.h (wcsrtombs): New declaration.
7067         * lib/wcsrtombs.c: New file.
7068         * m4/wcsrtombs.m4: New file.
7069         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
7070         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
7071         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
7072         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
7073         * modules/wcsrtombs: New file.
7074         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
7075         bugs.
7076
7077 2008-12-21  Bruno Haible  <bruno@clisp.org>
7078
7079         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
7080         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
7081         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
7082         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
7083         if not correct.
7084         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
7085         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
7086         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
7087         m4/locale-zh.m4, m4/codeset.m4.
7088         * doc/posix-functions/wcrtomb.texi: Document the bug.
7089
7090 2008-12-21  Bruno Haible  <bruno@clisp.org>
7091
7092         Work around a btowc() bug on IRIX 6.5.
7093         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
7094         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
7095         REPLACE_WTOBC if not.
7096         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
7097         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
7098         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
7099
7100 2008-12-21  Bruno Haible  <bruno@clisp.org>
7101
7102         * modules/wcrtomb-tests: New file.
7103         * tests/test-wcrtomb.sh: New file.
7104         * tests/test-wcrtomb.c: New file.
7105
7106         New module 'wcrtomb'.
7107         * lib/wchar.in.h (wcrtomb): New declaration.
7108         * lib/wcrtomb.c: New file.
7109         * m4/wcrtomb.m4: New file.
7110         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
7111         HAVE_WCRTOMB.
7112         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
7113         HAVE_WCRTOMB.
7114         * modules/wcrtomb: New file.
7115         * doc/posix-functions/wcrtomb.texi: Mention the new module.
7116
7117 2008-12-21  Bruno Haible  <bruno@clisp.org>
7118
7119         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
7120         * modules/mbsrtowcs (Files): Likewise.
7121         * modules/wctob (Files): Likewise.
7122         * modules/c-strcase-tests (Files): Likewise.
7123         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
7124         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
7125         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
7126         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
7127         * modules/vasnprintf-posix-tests (Files): Likewise.
7128
7129 2008-12-21  William Pursell  <bill.pursell@gmail.com>
7130
7131         gitlog-to-changelog: pass all command-line arguments to git-log
7132         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
7133         it is sometimes convenient to filter the commits in various ways.
7134         gitlog-to-changelog only allows --since to specify a start date,
7135         but git-log itself supports many other filtering mechanisms.
7136         At the moment, I want to filter by branch name.  Rather than
7137         adding a --branch option to gitlog-to-changelog, it seems more
7138         flexible to simply pass all options directly to git-log and let
7139         git do the work.  Notice that this effectively makes --since a
7140         redundant option for gitlog-to-changelog, but removing it would
7141         require current usage to change since calls would then require
7142         an additional '--'.
7143
7144 2008-12-21  Bruno Haible  <bruno@clisp.org>
7145
7146         * modules/mbsnrtowcs-tests: New file.
7147         * tests/test-mbsnrtowcs1.sh: New file.
7148         * tests/test-mbsnrtowcs2.sh: New file.
7149         * tests/test-mbsnrtowcs3.sh: New file.
7150         * tests/test-mbsnrtowcs4.sh: New file.
7151         * tests/test-mbsnrtowcs.c: New file.
7152
7153         New module 'mbsnrtowcs'.
7154         * lib/wchar.in.h (mbsnrtowcs): New declaration.
7155         * lib/mbsnrtowcs.c: New file.
7156         * lib/mbsrtowcs-state.c: New file.
7157         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
7158         (internal_state): Remove variable.
7159         * m4/mbsnrtowcs.m4: New file.
7160         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
7161         compilation units.
7162         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
7163         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
7164         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
7165         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
7166         * modules/mbsnrtowcs: New file.
7167         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
7168         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
7169         portability problem.
7170
7171 2008-12-21  Bruno Haible  <bruno@clisp.org>
7172
7173         Work around mbsrtowcs bug.
7174         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
7175         (gl_FUNC_MBSRTOWCS): Invoke it.
7176         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
7177         m4/locale-zh.m4.
7178         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
7179
7180 2008-12-21  Bruno Haible  <bruno@clisp.org>
7181
7182         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
7183
7184 2008-12-21  Bruno Haible  <bruno@clisp.org>
7185
7186         Update doc for AIX.
7187         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
7188         16-bit wchar_t type.
7189         * doc/posix-functions/btowc.texi: Likewise.
7190         * doc/posix-functions/fgetwc.texi: Likewise.
7191         * doc/posix-functions/fgetws.texi: Likewise.
7192         * doc/posix-functions/fputwc.texi: Likewise.
7193         * doc/posix-functions/fputws.texi: Likewise.
7194         * doc/posix-functions/fwide.texi: Likewise.
7195         * doc/posix-functions/fwprintf.texi: Likewise.
7196         * doc/posix-functions/fwscanf.texi: Likewise.
7197         * doc/posix-functions/getwchar.texi: Likewise.
7198         * doc/posix-functions/getwc.texi: Likewise.
7199         * doc/posix-functions/iswalnum.texi: Likewise.
7200         * doc/posix-functions/iswalpha.texi: Likewise.
7201         * doc/posix-functions/iswblank.texi: Likewise.
7202         * doc/posix-functions/iswcntrl.texi: Likewise.
7203         * doc/posix-functions/iswctype.texi: Likewise.
7204         * doc/posix-functions/iswdigit.texi: Likewise.
7205         * doc/posix-functions/iswgraph.texi: Likewise.
7206         * doc/posix-functions/iswlower.texi: Likewise.
7207         * doc/posix-functions/iswprint.texi: Likewise.
7208         * doc/posix-functions/iswpunct.texi: Likewise.
7209         * doc/posix-functions/iswspace.texi: Likewise.
7210         * doc/posix-functions/iswupper.texi: Likewise.
7211         * doc/posix-functions/iswxdigit.texi: Likewise.
7212         * doc/posix-functions/mbrtowc.texi: Likewise.
7213         * doc/posix-functions/mbsrtowcs.texi: Likewise.
7214         * doc/posix-functions/mbstowcs.texi: Likewise.
7215         * doc/posix-functions/mbtowc.texi: Likewise.
7216         * doc/posix-functions/putwchar.texi: Likewise.
7217         * doc/posix-functions/putwc.texi: Likewise.
7218         * doc/posix-functions/swprintf.texi: Likewise.
7219         * doc/posix-functions/tolower.texi: Likewise.
7220         * doc/posix-functions/toupper.texi: Likewise.
7221         * doc/posix-functions/towctrans.texi: Likewise.
7222         * doc/posix-functions/ungetwc.texi: Likewise.
7223         * doc/posix-functions/vswprintf.texi: Likewise.
7224         * doc/posix-functions/wcrtomb.texi: Likewise.
7225         * doc/posix-functions/wcscat.texi: Likewise.
7226         * doc/posix-functions/wcschr.texi: Likewise.
7227         * doc/posix-functions/wcscmp.texi: Likewise.
7228         * doc/posix-functions/wcscoll.texi: Likewise.
7229         * doc/posix-functions/wcscpy.texi: Likewise.
7230         * doc/posix-functions/wcscspn.texi: Likewise.
7231         * doc/posix-functions/wcsftime.texi: Likewise.
7232         * doc/posix-functions/wcslen.texi: Likewise.
7233         * doc/posix-functions/wcsncat.texi: Likewise.
7234         * doc/posix-functions/wcsncmp.texi: Likewise.
7235         * doc/posix-functions/wcsncpy.texi: Likewise.
7236         * doc/posix-functions/wcspbrk.texi: Likewise.
7237         * doc/posix-functions/wcsrchr.texi: Likewise.
7238         * doc/posix-functions/wcsrtombs.texi: Likewise.
7239         * doc/posix-functions/wcsspn.texi: Likewise.
7240         * doc/posix-functions/wcsstr.texi: Likewise.
7241         * doc/posix-functions/wcstod.texi: Likewise.
7242         * doc/posix-functions/wcstof.texi: Likewise.
7243         * doc/posix-functions/wcstoimax.texi: Likewise.
7244         * doc/posix-functions/wcstok.texi: Likewise.
7245         * doc/posix-functions/wcstold.texi: Likewise.
7246         * doc/posix-functions/wcstoll.texi: Likewise.
7247         * doc/posix-functions/wcstol.texi: Likewise.
7248         * doc/posix-functions/wcstombs.texi: Likewise.
7249         * doc/posix-functions/wcstoull.texi: Likewise.
7250         * doc/posix-functions/wcstoul.texi: Likewise.
7251         * doc/posix-functions/wcstoumax.texi: Likewise.
7252         * doc/posix-functions/wcswidth.texi: Likewise.
7253         * doc/posix-functions/wcsxfrm.texi: Likewise.
7254         * doc/posix-functions/wctob.texi: Likewise.
7255         * doc/posix-functions/wctomb.texi: Likewise.
7256         * doc/posix-functions/wctrans.texi: Likewise.
7257         * doc/posix-functions/wctype.texi: Likewise.
7258         * doc/posix-functions/wcwidth.texi: Likewise.
7259         * doc/posix-functions/wmemchr.texi: Likewise.
7260         * doc/posix-functions/wmemcmp.texi: Likewise.
7261         * doc/posix-functions/wmemcpy.texi: Likewise.
7262         * doc/posix-functions/wmemmove.texi: Likewise.
7263         * doc/posix-functions/wmemset.texi: Likewise.
7264         * doc/posix-functions/wprintf.texi: Likewise.
7265         * doc/posix-functions/wscanf.texi: Likewise.
7266
7267 2008-12-21  Bruno Haible  <bruno@clisp.org>
7268
7269         Update doc for HP-UX 11.11.
7270         * doc/posix-functions/btowc.texi: Clarify that the function is missing
7271         in HP-UX version 11.00, not in all versions of HP-UX 11.
7272         * doc/posix-functions/fwide.texi: Likewise.
7273         * doc/posix-functions/fwprintf.texi: Likewise.
7274         * doc/posix-functions/fwscanf.texi: Likewise.
7275         * doc/posix-functions/inet_ntop.texi: Likewise.
7276         * doc/posix-functions/inet_pton.texi: Likewise.
7277         * doc/posix-functions/mbrlen.texi: Likewise.
7278         * doc/posix-functions/mbrtowc.texi: Likewise.
7279         * doc/posix-functions/mbsinit.texi: Likewise.
7280         * doc/posix-functions/mbsrtowcs.texi: Likewise.
7281         * doc/posix-functions/swprintf.texi: Likewise.
7282         * doc/posix-functions/swscanf.texi: Likewise.
7283         * doc/posix-functions/towctrans.texi: Likewise.
7284         * doc/posix-functions/vfwprintf.texi: Likewise.
7285         * doc/posix-functions/vswprintf.texi: Likewise.
7286         * doc/posix-functions/vwprintf.texi: Likewise.
7287         * doc/posix-functions/wcrtomb.texi: Likewise.
7288         * doc/posix-functions/wcsrtombs.texi: Likewise.
7289         * doc/posix-functions/wcsstr.texi: Likewise.
7290         * doc/posix-functions/wctob.texi: Likewise.
7291         * doc/posix-functions/wctrans.texi: Likewise.
7292         * doc/posix-functions/wmemchr.texi: Likewise.
7293         * doc/posix-functions/wmemcmp.texi: Likewise.
7294         * doc/posix-functions/wmemcpy.texi: Likewise.
7295         * doc/posix-functions/wmemmove.texi: Likewise.
7296         * doc/posix-functions/wmemset.texi: Likewise.
7297         * doc/posix-functions/wprintf.texi: Likewise.
7298         * doc/posix-functions/wscanf.texi: Likewise.
7299
7300 2008-12-21  Bruno Haible  <bruno@clisp.org>
7301
7302         Work around a portability problem.
7303         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
7304         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
7305
7306 2008-12-20  Bruno Haible  <bruno@clisp.org>
7307
7308         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
7309         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
7310         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
7311         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
7312         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
7313
7314         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
7315         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
7316         set.
7317         (GNULIB_defined_mbstate_t): New macro.
7318         (mbsinit): Redefine if REPLACE_MBSINIT is set.
7319         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
7320         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
7321         reuses the system's mbrtowc function but works around the bugs.
7322         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
7323         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
7324         macros.
7325         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
7326         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
7327         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
7328         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
7329         REPLACE_MBSINIT if mbsinit needs to be overridden.
7330         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
7331         REPLACE_MBSINIT, REPLACE_MBRTOWC.
7332         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
7333         REPLACE_MBSINIT, REPLACE_MBRTOWC.
7334         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
7335         m4/locale-zh.m4.
7336         (Depends): Add mbsinit.
7337         * modules/mbsinit (Depends): Add mbrtowc.
7338         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
7339
7340 2008-12-20  Bruno Haible  <bruno@clisp.org>
7341
7342         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
7343         so that there are no conversion errors on AIX.
7344         * tests/test-mbsrtowcs.c (main): LIkewise.
7345
7346 2008-12-20  Bruno Haible  <bruno@clisp.org>
7347
7348         Work around wctob bug on Solaris <= 9.
7349         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
7350         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
7351         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
7352         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
7353         * modules/wctob (Files): Add m4/locale-fr.m4.
7354         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
7355
7356 2008-12-20  Bruno Haible  <bruno@clisp.org>
7357
7358         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
7359         /dev/null.
7360         * tests/test-select-in.sh: Likewise.
7361         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7362
7363 2008-12-20  Bruno Haible  <bruno@clisp.org>
7364
7365         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
7366         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
7367         Cygwin 1.5.x.
7368
7369 2008-12-20  Bruno Haible  <bruno@clisp.org>
7370
7371         Ensure mbstate_t is defined on HP-UX 11.11.
7372         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
7373         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
7374         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
7375         AC_USE_SYSTEM_EXTENSIONS.
7376         * modules/fnmatch (Depends-on): Add extensions.
7377         * modules/mbrlen (Depends-on): Likewise.
7378         * modules/mbrtowc (Depends-on): Likewise.
7379         * modules/mbsinit (Depends-on): Likewise.
7380         * modules/mbsrtowcs (Depends-on): Likewise.
7381         * modules/mbswidth (Depends-on): Likewise.
7382         * modules/quotearg (Depends-on): Likewise.
7383         * modules/strftime (Depends-on): Likewise.
7384
7385 2008-12-20  Bruno Haible  <bruno@clisp.org>
7386
7387         Ensure wctob is declared on IRIX 6.5.
7388         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
7389         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
7390         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
7391         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
7392         of HAVE_WCTOB.
7393         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
7394         HAVE_WCTOB.
7395         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
7396
7397 2008-12-19  Bruno Haible  <bruno@clisp.org>
7398
7399         * modules/mbsrtowcs-tests: New file.
7400         * tests/test-mbsrtowcs1.sh: New file.
7401         * tests/test-mbsrtowcs2.sh: New file.
7402         * tests/test-mbsrtowcs3.sh: New file.
7403         * tests/test-mbsrtowcs4.sh: New file.
7404         * tests/test-mbsrtowcs.c: New file.
7405
7406         New module 'mbsrtowcs'.
7407         * lib/wchar.in.h (mbsrtowcs): New declaration.
7408         * lib/mbsrtowcs.c: New file.
7409         * m4/mbsrtowcs.m4: New file.
7410         * modules/mbsrtowcs: New file.
7411         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
7412         HAVE_MBSRTOWCS.
7413         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
7414         HAVE_MBSRTOWCS.
7415         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
7416
7417 2008-12-19  Bruno Haible  <bruno@clisp.org>
7418
7419         New module 'mbrlen'.
7420         * lib/wchar.in.h (mbrlen): New declaration.
7421         * lib/mbrlen.c: New file.
7422         * m4/mbrlen.m4: New file.
7423         * modules/mbrlen: New file.
7424         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
7425         HAVE_MBRLEN.
7426         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
7427         HAVE_MBRLEN.
7428         * doc/posix-functions/mbrlen.texi: Document the new module.
7429
7430 2008-12-19  Bruno Haible  <bruno@clisp.org>
7431
7432         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
7433         * modules/mbrtowc (Depends-on): Add verify.
7434         Suggested by Paul Eggert.
7435
7436 2008-12-18  Bruno Haible  <bruno@clisp.org>
7437
7438         * modules/mbsinit-tests: New file.
7439         * tests/test-mbsinit.sh: New file.
7440         * tests/test-mbsinit.c: New file.
7441
7442 2008-12-18  Bruno Haible  <bruno@clisp.org>
7443
7444         * modules/mbrtowc-tests: New file.
7445         * tests/test-mbrtowc1.sh: New file.
7446         * tests/test-mbrtowc2.sh: New file.
7447         * tests/test-mbrtowc3.sh: New file.
7448         * tests/test-mbrtowc4.sh: New file.
7449         * tests/test-mbrtowc.c: New file.
7450
7451         New module 'mbrtowc'.
7452         * lib/wchar.in.h (mbstate_t): Override when the system does not have
7453         mbsinit and mbrtowc.
7454         (mbrtowc): New declaration.
7455         * lib/mbrtowc.c: New file.
7456         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
7457         * modules/mbrtowc: New file.
7458         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
7459         HAVE_MBRTOWC.
7460         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
7461         HAVE_MBRTOWC.
7462         * doc/posix-functions/mbrtowc.texi: Document the new module.
7463
7464 2008-12-18  Bruno Haible  <bruno@clisp.org>
7465
7466         New module 'wctob'.
7467         * lib/wchar.in.h (wctob): New declaration.
7468         * lib/wctob.c: New file.
7469         * m4/wctob.m4: New file.
7470         * modules/wctob: New file.
7471         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
7472         HAVE_WCTOB.
7473         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
7474         * doc/posix-functions/wctob.texi: Document the new module.
7475
7476 2008-12-18  Bruno Haible  <bruno@clisp.org>
7477
7478         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
7479         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
7480
7481 2008-12-18  Simon Josefsson  <simon@josefsson.org>
7482
7483         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
7484         G. Christensen" <tgc@jupiterrise.com>.
7485
7486         * lib/flock.c: Need to include errno.h.  Reported by "Tom
7487         G. Christensen" <tgc@jupiterrise.com>.
7488
7489         * lib/flock.c: Need to include string.h.  Reported by "Tom
7490         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
7491         <ebb9@byu.net>.
7492
7493 2008-12-18  Bruno Haible  <bruno@clisp.org>
7494
7495         * m4/locale-ja.m4: New file, from GNU gettext.
7496
7497 2008-12-17  Bruno Haible  <bruno@clisp.org>
7498
7499         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
7500         Suggested by Eric Blake.
7501
7502 2008-12-17  Bruno Haible  <bruno@clisp.org>
7503
7504         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
7505
7506 2008-12-17  Bruno Haible  <bruno@clisp.org>
7507
7508         * lib/mbsinit.c: Include verify.h. Verify an assumption.
7509         * modules/mbsinit (Depends-on): Add verify.
7510         Suggested by Paul Eggert.
7511
7512 2008-12-17  Bruno Haible  <bruno@clisp.org>
7513
7514         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
7515         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
7516         gl_FUNC_MBRTOWC.
7517         * m4/mbiter.m4 (gl_MBITER): LIkewise.
7518         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
7519         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
7520         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
7521         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
7522         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
7523         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
7524         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
7525         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
7526         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
7527         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
7528         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
7529         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
7530         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
7531         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
7532         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
7533         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
7534         * modules/trim (configure.ac): Likewise.
7535
7536 2008-12-17  Bruno Haible  <bruno@clisp.org>
7537
7538         * modules/btowc-tests: New file.
7539         * tests/test-btowc1.sh: New file.
7540         * tests/test-btowc2.sh: New file.
7541         * tests/test-btowc.c: New file.
7542
7543         New module 'btowc'.
7544         * lib/wchar.in.h (btowc): New declaration.
7545         * lib/btowc.c: New file.
7546         * m4/btowc.m4: New file.
7547         * modules/btowc: New file.
7548         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
7549         HAVE_BTOWC.
7550         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
7551         * doc/posix-functions/btowc.texi: Document the new module.
7552
7553 2008-12-17  Bruno Haible  <bruno@clisp.org>
7554
7555         New module 'mbsinit'.
7556         * lib/wchar.in.h (mbsinit): New declaration.
7557         * lib/mbsinit.c: New file.
7558         * m4/mbsinit.m4: New file.
7559         * modules/mbsinit: New file.
7560         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
7561         HAVE_MBSINIT.
7562         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
7563         HAVE_MBSINIT.
7564         * doc/posix-functions/mbsinit.texi: Document the new module.
7565
7566 2008-12-16  Bruno Haible  <bruno@clisp.org>
7567
7568         * lib/unistd.in.h: Add comment.
7569         * tests/test-environ.c: Don't include <stdlib.h>.
7570
7571 2008-12-16  Bruno Haible  <bruno@clisp.org>
7572
7573         * lib/parse-duration.h (parse_duration): Document return value
7574         convention.
7575         * lib/parse-duration.c: Include specification header first. Add
7576         comments.
7577         (_): Remove macro.
7578         (parse_year_month_day, parse_hour_minute_second): Move side effects
7579         outside of strchr call.
7580         (parse_non_iso8601): Move side effects outside of isspace call.
7581         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
7582         call.
7583
7584 2008-12-16  Bruno Haible  <bruno@clisp.org>
7585
7586         * tests/test-parse-duration.sh: Produce no output when the test
7587         succeeds.
7588
7589 2008-12-16  Bruno Haible  <bruno@clisp.org>
7590
7591         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
7592         expressions.
7593
7594 2008-12-15  Bruno Haible  <bruno@clisp.org>
7595
7596         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
7597         * doc/glibc-functions/flistxattr.texi: Likewise.
7598         * doc/glibc-functions/fopencookie.texi: Likewise.
7599         * doc/glibc-functions/fremovexattr.texi: Likewise.
7600         * doc/glibc-functions/fsetxattr.texi: Likewise.
7601         * doc/glibc-functions/getxattr.texi: Likewise.
7602         * doc/glibc-functions/lgetxattr.texi: Likewise.
7603         * doc/glibc-functions/listxattr.texi: Likewise.
7604         * doc/glibc-functions/llistxattr.texi: Likewise.
7605         * doc/glibc-functions/lremovexattr.texi: Likewise.
7606         * doc/glibc-functions/lsetxattr.texi: Likewise.
7607         * doc/glibc-functions/removexattr.texi: Likewise.
7608         * doc/glibc-functions/setxattr.texi: Likewise.
7609         * doc/posix-functions/open_memstream.texi: Likewise.
7610
7611 2008-12-15  Eric Blake  <ebb9@byu.net>
7612
7613         Update doc for cygwin 1.7.
7614         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
7615         functions.
7616         * doc/posix-functions/fchmodat.texi: Likewise.
7617         * doc/posix-functions/fchownat.texi: Likewise.
7618         * doc/posix-functions/fdopendir.texi: Likewise.
7619         * doc/posix-functions/fmemopen.texi: Likewise.
7620         * doc/posix-functions/freeaddrinfo.texi: Likewise.
7621         * doc/posix-functions/fstatat.texi: Likewise.
7622         * doc/posix-functions/futimens.texi: Likewise.
7623         * doc/posix-functions/gai_strerror.texi: Likewise.
7624         * doc/posix-functions/getaddrinfo.texi: Likewise.
7625         * doc/posix-functions/getnameinfo.texi: Likewise.
7626         * doc/posix-functions/if_freenameindex.texi: Likewise.
7627         * doc/posix-functions/if_indextoname.texi: Likewise.
7628         * doc/posix-functions/if_nameindex.texi: Likewise.
7629         * doc/posix-functions/if_nametoindex.texi: Likewise.
7630         * doc/posix-functions/insque.texi: Likewise.
7631         * doc/posix-functions/linkat.texi: Likewise.
7632         * doc/posix-functions/llrint.texi: Likewise.
7633         * doc/posix-functions/llrintf.texi: Likewise.
7634         * doc/posix-functions/llrintl.texi: Likewise.
7635         * doc/posix-functions/lockf.texi: Likewise.
7636         * doc/posix-functions/lrintl.texi: Likewise.
7637         * doc/posix-functions/mkdirat.texi: Likewise.
7638         * doc/posix-functions/mkfifoat.texi: Likewise.
7639         * doc/posix-functions/mknodat.texi: Likewise.
7640         * doc/posix-functions/mq_close.texi: Likewise.
7641         * doc/posix-functions/mq_getattr.texi: Likewise.
7642         * doc/posix-functions/mq_notify.texi: Likewise.
7643         * doc/posix-functions/mq_open.texi: Likewise.
7644         * doc/posix-functions/mq_receive.texi: Likewise.
7645         * doc/posix-functions/mq_send.texi: Likewise.
7646         * doc/posix-functions/mq_setattr.texi: Likewise.
7647         * doc/posix-functions/mq_timedreceive.texi: Likewise.
7648         * doc/posix-functions/mq_timedsend.texi: Likewise.
7649         * doc/posix-functions/mq_unlink.texi: Likewise.
7650         * doc/posix-functions/open_memstream.texi: Likewise.
7651         * doc/posix-functions/openat.texi: Likewise.
7652         * doc/posix-functions/posix_fadvise.texi: Likewise.
7653         * doc/posix-functions/posix_fallocate.texi: Likewise.
7654         * doc/posix-functions/posix_madvise.texi: Likewise.
7655         * doc/posix-functions/posix_memalign.texi: Likewise.
7656         * doc/posix-functions/posix_openpt.texi: Likewise.
7657         * doc/posix-functions/readlinkat.texi: Likewise.
7658         * doc/posix-functions/remque.texi: Likewise.
7659         * doc/posix-functions/renameat.texi: Likewise.
7660         * doc/posix-functions/rintl.texi: Likewise.
7661         * doc/posix-functions/sem_unlink.texi: Likewise.
7662         * doc/posix-functions/shm_open.texi: Likewise.
7663         * doc/posix-functions/shm_unlink.texi: Likewise.
7664         * doc/posix-functions/signgam.texi: Likewise.
7665         * doc/posix-functions/sigset.texi: Likewise.
7666         * doc/posix-functions/stpcpy.texi: Likewise.
7667         * doc/posix-functions/stpncpy.texi: Likewise.
7668         * doc/posix-functions/strerror.texi: Likewise.
7669         * doc/posix-functions/strtod.texi: Likewise.
7670         * doc/posix-functions/symlinkat.texi: Likewise.
7671         * doc/posix-functions/unlinkat.texi: Likewise.
7672         * doc/posix-functions/utimensat.texi: Likewise.
7673         * doc/glibc-functions/bindresvport.texi: Likewise.
7674         * doc/glibc-functions/dn_expand.texi: Likewise.
7675         * doc/glibc-functions/exp10.texi: Likewise.
7676         * doc/glibc-functions/exp10f.texi: Likewise.
7677         * doc/glibc-functions/fgetxattr.texi: Likewise.
7678         * doc/glibc-functions/flistxattr.texi: Likewise.
7679         * doc/glibc-functions/fopencookie.texi: Likewise.
7680         * doc/glibc-functions/freeifaddrs.texi: Likewise.
7681         * doc/glibc-functions/fremovexattr.texi: Likewise.
7682         * doc/glibc-functions/fsetxattr.texi: Likewise.
7683         * doc/glibc-functions/getifaddrs.texi: Likewise.
7684         * doc/glibc-functions/getxattr.texi: Likewise.
7685         * doc/glibc-functions/lgetxattr.texi: Likewise.
7686         * doc/glibc-functions/listxattr.texi: Likewise.
7687         * doc/glibc-functions/llistxattr.texi: Likewise.
7688         * doc/glibc-functions/lremovexattr.texi: Likewise.
7689         * doc/glibc-functions/lsetxattr.texi: Likewise.
7690         * doc/glibc-functions/pow10.texi: Likewise.
7691         * doc/glibc-functions/pow10f.texi: Likewise.
7692         * doc/glibc-functions/rcmd_af.texi: Likewise.
7693         * doc/glibc-functions/removexattr.texi: Likewise.
7694         * doc/glibc-functions/res_init.texi: Likewise.
7695         * doc/glibc-functions/res_mkquery.texi: Likewise.
7696         * doc/glibc-functions/res_query.texi: Likewise.
7697         * doc/glibc-functions/res_querydomain.texi: Likewise.
7698         * doc/glibc-functions/res_send.texi: Likewise.
7699         * doc/glibc-functions/rresvport_af.texi: Likewise.
7700         * doc/glibc-functions/setxattr.texi: Likewise.
7701         * doc/glibc-functions/strcasestr.texi: Likewise.
7702
7703 2008-12-15  Bruno Haible  <bruno@clisp.org>
7704
7705         Fix compilation error on OSF/1 4.0.
7706         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
7707         <sys/time.h>, simply delegate to the system header.
7708         Reported by Daniel Richard G. <oss@teragram.com>.
7709
7710 2008-12-15  Bruno Haible  <bruno@clisp.org>
7711
7712         * doc/posix-functions/openat.texi: Mention the 'openat' module.
7713         * doc/posix-functions/fchmodat.texi: Likewise.
7714         * doc/posix-functions/fchownat.texi: Likewise.
7715         * doc/posix-functions/fdopendir.texi: Likewise.
7716         * doc/posix-functions/fstatat.texi: Likewise.
7717         * doc/posix-functions/mkdirat.texi: Likewise.
7718         * doc/posix-functions/unlinkat.texi: Likewise.
7719
7720 2008-12-14  Bruno Haible  <bruno@clisp.org>
7721
7722         Update doc for POSIX:2008.
7723         * doc/posix-functions/faccessat.texi: New file.
7724         * doc/posix-functions/fchmodat.texi: New file.
7725         * doc/posix-functions/fchownat.texi: New file.
7726         * doc/posix-functions/fdopendir.texi: New file.
7727         * doc/posix-functions/fstatat.texi: New file.
7728         * doc/posix-functions/futimens.texi: New file.
7729         * doc/posix-functions/linkat.texi: New file.
7730         * doc/posix-functions/mkdirat.texi: New file.
7731         * doc/posix-functions/mkfifoat.texi: New file.
7732         * doc/posix-functions/mknodat.texi: New file.
7733         * doc/posix-functions/open_wmemstream.texi: New file.
7734         * doc/posix-functions/openat.texi: New file.
7735         * doc/posix-functions/psiginfo.texi: New file.
7736         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
7737         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
7738         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
7739         * doc/posix-functions/readlinkat.texi: New file.
7740         * doc/posix-functions/renameat.texi: New file.
7741         * doc/posix-functions/strerror_l.texi: New file.
7742         * doc/posix-functions/symlinkat.texi: New file.
7743         * doc/posix-functions/unlinkat.texi: New file.
7744         * doc/posix-functions/utimensat.texi: New file.
7745         * doc/gnulib.texi (Function Substitutes): Add these subsections.
7746
7747 2008-12-14  Bruno Haible  <bruno@clisp.org>
7748
7749         Update doc for POSIX:2008.
7750         * doc/posix-functions/alphasort.texi: Renamed from
7751         doc/glibc-functions/alphasort.texi.
7752         * doc/posix-functions/dirfd.texi: Renamed from
7753         doc/glibc-functions/dirfd.texi.
7754         * doc/posix-functions/dprintf.texi: Renamed from
7755         doc/glibc-functions/dprintf.texi.
7756         * doc/posix-functions/duplocale.texi: Renamed from
7757         doc/glibc-functions/duplocale.texi.
7758         * doc/posix-functions/fexecve.texi: Renamed from
7759         doc/glibc-functions/fexecve.texi.
7760         * doc/posix-functions/fmemopen.texi: Renamed from
7761         doc/glibc-functions/fmemopen.texi.
7762         * doc/posix-functions/freelocale.texi: Renamed from
7763         doc/glibc-functions/freelocale.texi.
7764         * doc/posix-functions/getdate_err.texi: Renamed from
7765         doc/glibc-functions/getdate_err.texi.
7766         * doc/posix-functions/isalnum_l.texi: Renamed from
7767         doc/glibc-functions/isalnum_l.texi.
7768         * doc/posix-functions/isalpha_l.texi: Renamed from
7769         doc/glibc-functions/isalpha_l.texi.
7770         * doc/posix-functions/isblank_l.texi: Renamed from
7771         doc/glibc-functions/isblank_l.texi.
7772         * doc/posix-functions/iscntrl_l.texi: Renamed from
7773         doc/glibc-functions/iscntrl_l.texi.
7774         * doc/posix-functions/isdigit_l.texi: Renamed from
7775         doc/glibc-functions/isdigit_l.texi.
7776         * doc/posix-functions/isgraph_l.texi: Renamed from
7777         doc/glibc-functions/isgraph_l.texi.
7778         * doc/posix-functions/islower_l.texi: Renamed from
7779         doc/glibc-functions/islower_l.texi.
7780         * doc/posix-functions/isprint_l.texi: Renamed from
7781         doc/glibc-functions/isprint_l.texi.
7782         * doc/posix-functions/ispunct_l.texi: Renamed from
7783         doc/glibc-functions/ispunct_l.texi.
7784         * doc/posix-functions/isspace_l.texi: Renamed from
7785         doc/glibc-functions/isspace_l.texi.
7786         * doc/posix-functions/isupper_l.texi: Renamed from
7787         doc/glibc-functions/isupper_l.texi.
7788         * doc/posix-functions/iswalnum_l.texi: Renamed from
7789         doc/glibc-functions/iswalnum_l.texi.
7790         * doc/posix-functions/iswalpha_l.texi: Renamed from
7791         doc/glibc-functions/iswalpha_l.texi.
7792         * doc/posix-functions/iswblank_l.texi: Renamed from
7793         doc/glibc-functions/iswblank_l.texi.
7794         * doc/posix-functions/iswcntrl_l.texi: Renamed from
7795         doc/glibc-functions/iswcntrl_l.texi.
7796         * doc/posix-functions/iswctype_l.texi: Renamed from
7797         doc/glibc-functions/iswctype_l.texi.
7798         * doc/posix-functions/iswdigit_l.texi: Renamed from
7799         doc/glibc-functions/iswdigit_l.texi.
7800         * doc/posix-functions/iswgraph_l.texi: Renamed from
7801         doc/glibc-functions/iswgraph_l.texi.
7802         * doc/posix-functions/iswlower_l.texi: Renamed from
7803         doc/glibc-functions/iswlower_l.texi.
7804         * doc/posix-functions/iswprint_l.texi: Renamed from
7805         doc/glibc-functions/iswprint_l.texi.
7806         * doc/posix-functions/iswpunct_l.texi: Renamed from
7807         doc/glibc-functions/iswpunct_l.texi.
7808         * doc/posix-functions/iswspace_l.texi: Renamed from
7809         doc/glibc-functions/iswspace_l.texi.
7810         * doc/posix-functions/iswupper_l.texi: Renamed from
7811         doc/glibc-functions/iswupper_l.texi.
7812         * doc/posix-functions/iswxdigit_l.texi: Renamed from
7813         doc/glibc-functions/iswxdigit_l.texi.
7814         * doc/posix-functions/isxdigit_l.texi: Renamed from
7815         doc/glibc-functions/isxdigit_l.texi.
7816         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
7817         doc/glibc-functions/mbsnrtowcs.texi.
7818         * doc/posix-functions/mkdtemp.texi: Renamed from
7819         doc/glibc-functions/mkdtemp.texi.
7820         * doc/posix-functions/newlocale.texi: Renamed from
7821         doc/glibc-functions/newlocale.texi.
7822         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
7823         doc/glibc-functions/nl_langinfo_l.texi.
7824         * doc/posix-functions/open_memstream.texi: Renamed from
7825         doc/glibc-functions/open_memstream.texi.
7826         * doc/posix-functions/opterr.texi: Renamed from
7827         doc/glibc-functions/opterr.texi.
7828         * doc/posix-functions/optind.texi: Renamed from
7829         doc/glibc-functions/optind.texi.
7830         * doc/posix-functions/optopt.texi: Renamed from
7831         doc/glibc-functions/optopt.texi.
7832         * doc/posix-functions/psignal.texi: Renamed from
7833         doc/glibc-functions/psignal.texi.
7834         * doc/posix-functions/scandir.texi: Renamed from
7835         doc/glibc-functions/scandir.texi.
7836         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
7837         doc/glibc-functions/sched_get_priority_min.texi.
7838         * doc/posix-functions/signgam.texi: Renamed from
7839         doc/glibc-functions/signgam.texi.
7840         * doc/posix-functions/stpcpy.texi: Renamed from
7841         doc/glibc-functions/stpcpy.texi.
7842         * doc/posix-functions/stpncpy.texi: Renamed from
7843         doc/glibc-functions/stpncpy.texi.
7844         * doc/posix-functions/strcasecmp_l.texi: Renamed from
7845         doc/glibc-functions/strcasecmp_l.texi.
7846         * doc/posix-functions/strcoll_l.texi: Renamed from
7847         doc/glibc-functions/strcoll_l.texi.
7848         * doc/posix-functions/strfmon_l.texi: Renamed from
7849         doc/glibc-functions/strfmon_l.texi.
7850         * doc/posix-functions/strftime_l.texi: Renamed from
7851         doc/glibc-functions/strftime_l.texi.
7852         * doc/posix-functions/strncasecmp_l.texi: Renamed from
7853         doc/glibc-functions/strncasecmp_l.texi.
7854         * doc/posix-functions/strndup.texi: Renamed from
7855         doc/glibc-functions/strndup.texi.
7856         * doc/posix-functions/strnlen.texi: Renamed from
7857         doc/glibc-functions/strnlen.texi.
7858         * doc/posix-functions/strsignal.texi: Renamed from
7859         doc/glibc-functions/strsignal.texi.
7860         * doc/posix-functions/strxfrm_l.texi: Renamed from
7861         doc/glibc-functions/strxfrm_l.texi.
7862         * doc/posix-functions/timer_gettime.texi: Renamed from
7863         doc/glibc-functions/timer_gettime.texi.
7864         * doc/posix-functions/tolower_l.texi: Renamed from
7865         doc/glibc-functions/tolower_l.texi.
7866         * doc/posix-functions/toupper_l.texi: Renamed from
7867         doc/glibc-functions/toupper_l.texi.
7868         * doc/posix-functions/towctrans_l.texi: Renamed from
7869         doc/glibc-functions/towctrans_l.texi.
7870         * doc/posix-functions/towlower_l.texi: Renamed from
7871         doc/glibc-functions/towlower_l.texi.
7872         * doc/posix-functions/towupper_l.texi: Renamed from
7873         doc/glibc-functions/towupper_l.texi.
7874         * doc/posix-functions/uselocale.texi: Renamed from
7875         doc/glibc-functions/uselocale.texi.
7876         * doc/posix-functions/vdprintf.texi: Renamed from
7877         doc/glibc-functions/vdprintf.texi.
7878         * doc/posix-functions/wcpcpy.texi:
7879         Renamed from doc/glibc-functions/wcpcpy.texi.
7880         * doc/posix-functions/wcpncpy.texi: Renamed from
7881         doc/glibc-functions/wcpncpy.texi.
7882         * doc/posix-functions/wcscasecmp.texi: Renamed from
7883         doc/glibc-functions/wcscasecmp.texi.
7884         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
7885         doc/glibc-functions/wcscasecmp_l.texi.
7886         * doc/posix-functions/wcscoll_l.texi: Renamed from
7887         doc/glibc-functions/wcscoll_l.texi.
7888         * doc/posix-functions/wcsdup.texi: Renamed from
7889         doc/glibc-functions/wcsdup.texi.
7890         * doc/posix-functions/wcsncasecmp.texi: Renamed from
7891         doc/glibc-functions/wcsncasecmp.texi.
7892         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
7893         doc/glibc-functions/wcsncasecmp_l.texi.
7894         * doc/posix-functions/wcsnlen.texi: Renamed from
7895         doc/glibc-functions/wcsnlen.texi.
7896         * doc/posix-functions/wcsnrtombs.texi: Renamed from
7897         doc/glibc-functions/wcsnrtombs.texi.
7898         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
7899         doc/glibc-functions/wcsxfrm_l.texi.
7900         * doc/posix-functions/wctrans_l.texi: Renamed from
7901         doc/glibc-functions/wctrans_l.texi.
7902         * doc/posix-functions/wctype_l.texi: Renamed from
7903         doc/glibc-functions/wctype_l.texi.
7904         * doc/gnulib.texi (Function Substitutes): Add these subsections.
7905         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
7906         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
7907         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
7908         these subsections.
7909         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
7910         Remove sections.
7911
7912 2008-12-14  Bruno Haible  <bruno@clisp.org>
7913
7914         Update doc for POSIX:2008.
7915         * doc/posix-functions/*.texi: Update URL of POSIX specification.
7916
7917 2008-12-14  Bruno Haible  <bruno@clisp.org>
7918
7919         Update doc for POSIX:2008.
7920         * doc/pastposix-functions/bcmp.texi: Renamed from
7921         doc/posix-functions/bcmp.texi.
7922         * doc/pastposix-functions/bcopy.texi: Renamed from
7923         doc/posix-functions/bcopy.texi.
7924         * doc/pastposix-functions/bsd_signal.texi: Renamed from
7925         doc/posix-functions/bsd_signal.texi.
7926         * doc/pastposix-functions/bzero.texi: Renamed from
7927         doc/posix-functions/bzero.texi.
7928         * doc/pastposix-functions/ecvt.texi: Renamed from
7929         doc/posix-functions/ecvt.texi.
7930         * doc/pastposix-functions/fcvt.texi: Renamed from
7931         doc/posix-functions/fcvt.texi.
7932         * doc/pastposix-functions/ftime.texi: Renamed from
7933         doc/posix-functions/ftime.texi.
7934         * doc/pastposix-functions/gcvt.texi: Renamed from
7935         doc/posix-functions/gcvt.texi.
7936         * doc/pastposix-functions/getcontext.texi: Renamed from
7937         doc/posix-functions/getcontext.texi.
7938         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
7939         doc/posix-functions/gethostbyaddr.texi.
7940         * doc/pastposix-functions/gethostbyname.texi: Renamed from
7941         doc/posix-functions/gethostbyname.texi.
7942         * doc/pastposix-functions/getwd.texi: Renamed from
7943         doc/posix-functions/getwd.texi.
7944         * doc/pastposix-functions/h_errno.texi: Renamed from
7945         doc/posix-functions/h_errno.texi.
7946         * doc/pastposix-functions/index.texi: Renamed from
7947         doc/posix-functions/index.texi.
7948         * doc/pastposix-functions/makecontext.texi: Renamed from
7949         doc/posix-functions/makecontext.texi.
7950         * doc/pastposix-functions/mktemp.texi: Renamed from
7951         doc/posix-functions/mktemp.texi.
7952         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
7953         doc/posix-functions/pthread_attr_getstackaddr.texi.
7954         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
7955         doc/posix-functions/pthread_attr_setstackaddr.texi.
7956         * doc/pastposix-functions/rindex.texi: Renamed from
7957         doc/posix-functions/rindex.texi.
7958         * doc/pastposix-functions/scalb.texi: Renamed from
7959         doc/posix-functions/scalb.texi.
7960         * doc/pastposix-functions/setcontext.texi: Renamed from
7961         doc/posix-functions/setcontext.texi.
7962         * doc/pastposix-functions/swapcontext.texi: Renamed from
7963         doc/posix-functions/swapcontext.texi.
7964         * doc/pastposix-functions/ualarm.texi: Renamed from
7965         doc/posix-functions/ualarm.texi.
7966         * doc/pastposix-functions/usleep.texi: Renamed from
7967         doc/posix-functions/usleep.texi.
7968         * doc/pastposix-functions/vfork.texi: Renamed from
7969         doc/posix-functions/vfork.texi.
7970         * doc/pastposix-functions/wcswcs.texi: Renamed from
7971         doc/posix-functions/wcswcs.texi.
7972         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
7973         (Function Substitutes): Update.
7974
7975 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7976
7977         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
7978         m4/strerror.m4.
7979
7980 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7981             Bruno Haible  <bruno@clisp.org>
7982
7983         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
7984
7985 2008-12-13  Bruno Haible  <bruno@clisp.org>
7986
7987         * modules/strtoull (Depends-on): Remove unistd.
7988
7989 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7990
7991         * modules/strtoull (Depends-on): Add stdlib.
7992
7993 2008-12-11  Simon Josefsson  <simon@josefsson.org>
7994
7995         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
7996
7997 2008-12-10  Jim Meyering  <meyering@redhat.com>
7998
7999         gl_ASSERT: don't say assertions are disabled when they're not
8000         * m4/assert.m4 (gl_ASSERT): Do not make configure report
8001         "checking whether to enable assertions... no", when they are in
8002         fact enabled.  This is solely a bug in the output of configure.
8003         In spite of saying "no", NDEBUG was not defined in that case.
8004         Also, as noted by Eric Blake, leave assertions enabled upon
8005         --enable-assert=INVALID.
8006
8007 2008-12-10  Bruno Haible  <bruno@clisp.org>
8008
8009         Change MODULES.html to refer to POSIX:2008 where possible.
8010         * MODULES.html.sh (POSIX2008_URL): New variable.
8011         (posix_headers): Remove sys/timeb, ucontext.
8012         (posix2001_headers): New variable.
8013         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
8014         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
8015         index, makecontext, mktemp, pthread_attr_getstackaddr,
8016         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
8017         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
8018         (posix2001_functions): New variable.
8019         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
8020         otherwise.
8021
8022 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8023
8024         add missing include to parse-duration.c
8025         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
8026         * modules/parse-duration (Depends-on): Add xalloc.
8027
8028         fix sed script reading maint.mk
8029         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
8030         (syntax-check-rules): Use it.
8031
8032 2008-12-09  Bruno Haible  <bruno@clisp.org>
8033
8034         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
8035         MacOS X 10.4/PowerPC.
8036         Reported by Simon Josefsson.
8037
8038 2008-12-08  Jim Meyering  <meyering@redhat.com>
8039
8040         work around mingw's lack of some S_IF definitions
8041         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
8042         Reported by Simon Josefsson.
8043
8044 2008-12-08  Bruno Haible  <bruno@clisp.org>
8045
8046         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
8047         applied to variables. Needed on MacOS X 10.4/PowerPC.
8048         Reported by Simon Josefsson.
8049
8050 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
8051         and Eric Blake  <ebb9@byu.net>
8052
8053         assert: honor --enable-assert
8054         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
8055         order to honor --enable-assert, rather than treating it as a
8056         synonym for --disable-assert.
8057
8058 2008-12-08  Jim Meyering  <meyering@redhat.com>
8059
8060         * lib/posixtm.c: Remove now-useless declaration of mktime.
8061
8062         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
8063
8064 2008-12-07  Bruno Haible  <bruno@clisp.org>
8065
8066         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
8067         test_once): Mark functions as static.
8068         * tests/test-tls.c (test_tls): Likewise.
8069
8070 2008-12-07  Bruno Haible  <bruno@clisp.org>
8071
8072         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
8073         iconv_register_autodetect.
8074
8075 2008-12-07  Jim Meyering  <meyering@redhat.com>
8076
8077         posixtm.c: avoid a warning
8078         * lib/posixtm.c (posixtime): Don't initialize tm0.
8079         It's no longer needed to placate gcc4's -Wuninitialized,
8080         and the attempt to placate would elicit a new warning.
8081
8082         unicodeio.c: mark unused parameters
8083         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
8084         (fallback_failure_callback): Likewise.
8085
8086 2008-12-07  Bruno Haible  <bruno@clisp.org>
8087
8088         * gnulib-tool (func_create_testdir): When building the tests
8089         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
8090         Reported by Simon Josefsson.
8091
8092 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8093
8094         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
8095
8096 2008-12-06  Bruno Haible  <bruno@clisp.org>
8097
8098         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
8099         Suggested by Eric Blake.
8100
8101 2008-12-06  Bruno Haible  <bruno@clisp.org>
8102
8103         Fix a c-stack test failure on MacOS X.
8104         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
8105         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
8106         handler for SIGBUS as well.
8107         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
8108         install a signal handler for SIGBUS as well.
8109         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
8110
8111 2008-12-06  Bruno Haible  <bruno@clisp.org>
8112
8113         Advocacy documentation.
8114         * doc/gnulib-intro.texi (Benefits): New section.
8115         * doc/gnulib.texi: Update.
8116
8117 2008-12-06  Bruno Haible  <bruno@clisp.org>
8118
8119         Document the 'manywarnings' module.
8120         * doc/manywarnings.texi: New file.
8121         * doc/gnulib.texi: Include it.
8122
8123 2008-12-05  Eric Blake  <ebb9@byu.net>
8124
8125         tests: silence some gcc warnings
8126         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
8127         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
8128         type mismatches.
8129
8130 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8131             Bruno Haible  <bruno@clisp.org>
8132
8133         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
8134
8135 2008-11-29  Jim Meyering  <meyering@redhat.com>
8136
8137         unicodeio.c: mark unused parameters
8138         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
8139         (fallback_failure_callback): Likewise.
8140
8141         fts: fix a thinko
8142         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
8143         (set_stat_type): Return S_IF*-valued "type" directly.
8144         Prompted by James Youngman's spotting a related bug.
8145         Confirmed by further testing through find.
8146
8147         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
8148         * lib/fts.c (D_TYPE): Define.
8149         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
8150         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
8151         (s_ifmt_shift_bits): New function.
8152         (set_stat_type): New function.
8153         (fts_build): When not calling fts_stat, call set_stat_type
8154         to propagate dirent.d_type info to fts_read caller.
8155         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
8156         fts_statp->st_mode type information may be valid.
8157
8158 2008-11-28  Simon Josefsson  <simon@josefsson.org>
8159
8160         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
8161         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
8162         <sds@gnu.org>.
8163
8164 2008-11-20  Bruno Haible  <bruno@clisp.org>
8165
8166         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
8167         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
8168         INCLUDE_NEXT.
8169         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
8170         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
8171         * modules/math (Makefile.am): Substitute
8172         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
8173         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8174
8175 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
8176             Bruno Haible  <bruno@clisp.org>
8177
8178         * lib/stdint.in.h: Define all type macros so that their expansion is
8179         a single typedef'ed token. Fixes a compilation failure in Boost which
8180         does "using ::int8_t;".
8181
8182 2008-11-18  Simon Josefsson  <simon@josefsson.org>
8183
8184         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
8185         gl_MANYWARN_ALL_GCC.
8186         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
8187         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
8188         * modules/manywarnings: New file.
8189         * MODULES.html.sh: Mention manywarnings module.
8190
8191 2008-11-18  Bruno Haible  <bruno@clisp.org>
8192
8193         * doc/gnulib-tool.texi (Unit tests): New section.
8194
8195 2008-11-18  Simon Josefsson  <simon@josefsson.org>
8196
8197         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
8198         paths like 'lib/po/foo.po'.
8199
8200 2008-11-17  Simon Josefsson  <simon@josefsson.org>
8201
8202         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
8203         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
8204
8205 2008-11-17  Simon Josefsson  <simon@josefsson.org>
8206
8207         * m4/warnings.m4: Use CPPFLAGS to really check whether the
8208         parameter works.
8209
8210 2008-11-17  Simon Josefsson  <simon@josefsson.org>
8211
8212         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
8213
8214 2008-11-17  Bruce Korb  <bkorb@gnu.org>
8215
8216         * modules/parse-duration-tests: New file.
8217         * tests/test-parse-duration.sh: New file.
8218         * tests/test-parse-duration.c: New file.
8219
8220         New module 'parse-duration'.
8221         * lib/parse-duration.h: New file.
8222         * lib/parse-duration.c: New file.
8223         * modules/parse-duration: New file.
8224
8225 2008-11-17  Bruno Haible  <bruno@clisp.org>
8226
8227         * tests/test-select-out.sh: Comment out the first pipe test.
8228         Reported by Simon Josefsson.
8229
8230 2008-11-17  Bruno Haible  <bruno@clisp.org>
8231
8232         * modules/getaddrinfo (Depends-on): Add servent, hostent.
8233         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
8234         gl_HOSTENT.
8235
8236 2008-11-17  Bruno Haible  <bruno@clisp.org>
8237
8238         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
8239         -lnetwork and -lnet. Needed for Haiku and BeOS.
8240
8241 2008-11-16  Bruno Haible  <bruno@clisp.org>
8242
8243         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
8244
8245 2008-11-16  Bruno Haible  <bruno@clisp.org>
8246
8247         Avoid test failure on Haiku.
8248         * tests/test-fsync.c: Include <errno.h>.
8249         (main): Don't require that fsync (0) fails.
8250
8251 2008-11-15  Bruno Haible  <bruno@clisp.org>
8252
8253         New module 'hostent'.
8254         * modules/hostent: New file.
8255         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
8256
8257 2008-11-15  Bruno Haible  <bruno@clisp.org>
8258
8259         New module 'servent'.
8260         * modules/servent: New file.
8261         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
8262
8263 2008-11-15  Bruno Haible  <bruno@clisp.org>
8264
8265         Avoid generating same test program with two different rules.
8266         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
8267         test-frexp to test-frexp-nolibm.
8268         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
8269         test-frexpl to test-frexpl-nolibm.
8270
8271 2008-11-15  Bruno Haible  <bruno@clisp.org>
8272
8273         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
8274         $(FREXPL_LIBM).
8275
8276 2008-11-15  Bruno Haible  <bruno@clisp.org>
8277
8278         * lib/netdb.in.h: Activate the definitions also when the system's
8279         <netdb.h> has 'struct addrinfo'.
8280         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
8281         EAI_OVERFLOW or AI_NUMERICSERV.
8282         * doc/posix-headers/netdb.texi: Document the problem.
8283
8284 2008-11-15  Bruno Haible  <bruno@clisp.org>
8285
8286         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
8287
8288         Make the 'sched' module work on platforms where <sched.h> exists but
8289         is incomplete (such as Haiku).
8290         * lib/sched.in.h; Include the system's <sched.h> if it exists.
8291         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
8292         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
8293         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
8294         HAVE_STRUCT_SCHED_PARAM.
8295         * modules/sched (Depends-on): Add include_next.
8296         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
8297         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
8298         * doc/posix-headers/sched.texi: Document the issue.
8299
8300 2008-11-13  Jim Meyering  <meyering@redhat.com>
8301
8302         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
8303         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
8304         test would fail due to the difference in the Report bugs to ...
8305         line.  The expected address is empty, "<>", while the actual
8306         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
8307
8308 2008-11-12  Bruno Haible  <bruno@clisp.org>
8309
8310         lstat: don't compile lstat.c on systems lacking lstat
8311         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
8312         which don't have lstat; this is handled by lib/sys_stat.in.h already.
8313         Reported by Daniel P. Berrange via Jim Meyering.
8314
8315 2008-11-12  Jim Meyering  <meyering@redhat.com>
8316
8317         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
8318
8319 2008-11-12  Simon Josefsson  <simon@josefsson.org>
8320
8321         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
8322         instead.
8323
8324 2008-11-12  Bruno Haible  <bruno@clisp.org>
8325
8326         * lib/unicodeio.c: Include unistr.h.
8327         (utf8_wctomb): Remove function.
8328         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
8329
8330 2008-11-12  Simon Josefsson  <simon@josefsson.org>
8331
8332         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
8333         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
8334         <bruno@clisp.org>.
8335         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
8336
8337 2008-11-12  Simon Josefsson  <simon@josefsson.org>
8338
8339         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
8340         * doc/gnulib.texi: Add section for warnings.
8341
8342 2008-11-11  Bruno Haible  <bruno@clisp.org>
8343
8344         * lib/sockets.h: Add a comment.
8345
8346 2008-11-11  Karl Berry  <karl@gnu.org>
8347
8348         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
8349
8350 2008-11-11  Eric Blake  <ebb9@byu.net>
8351
8352         fdl.texi: avoid git symlinks
8353         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
8354
8355 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
8356
8357         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
8358
8359 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
8360
8361         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
8362         (gl_WARN_ADD): Substitute $2 if literal.
8363
8364 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
8365
8366         * m4/warning.m4: Remove.
8367
8368 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
8369
8370         * m4/warnings.m4: Almost complete rewrite. :-)
8371
8372 2008-11-10  Simon Josefsson  <simon@josefsson.org>
8373
8374         * modules/warnings: New module.
8375         * m4/warnings.m4: New file.
8376         * MODULES.html.sh: Mention warnings module.
8377         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
8378         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8379
8380 2008-11-10  Eric Blake  <ebb9@byu.net>
8381
8382         fdl.texi: make a symlink to the latest version
8383         * doc/standards.texi: Revert today's earlier change.
8384         * doc/fdl-1.2.texi: Rename from old fdl.texi...
8385         * doc/fdl.texi: ...and replace this with a symlink to the newer
8386         fdl-1.3.texi.
8387
8388 2008-11-10  Bruno Haible  <bruno@clisp.org>
8389
8390         * tests/test-select-fd.c (main): Accept the result file name as fourth
8391         argument.
8392         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
8393         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
8394
8395 2008-11-10  Bruno Haible  <bruno@clisp.org>
8396
8397         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
8398         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
8399         as autoconf-substituted macros.
8400         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
8401         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
8402         gl_NETDB_H_DEFAULTS. Set these variables.
8403         * modules/netdb (Makefile.am): Substitute these variables.
8404
8405 2008-11-10  Eric Blake  <ebb9@byu.net>
8406
8407         standards.texi: include correct file for FDL 1.3
8408         * doc/standards.texi (GNU Free Documentation License): Change
8409         include file to pull in FDL 1.3, not 1.2.
8410
8411         fdl.texi: revert accidental change to license
8412         * doc/fdl.texi: This is FDL 1.2, not 1.3.
8413
8414 2008-11-10  Bruno Haible  <bruno@clisp.org>
8415
8416         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
8417         cross-compiling guesses also when the native compile gives no result.
8418
8419 2008-11-10  Bruno Haible  <bruno@clisp.org>
8420
8421         * lib/spawni.c (__spawni): Force variable into the stack.
8422
8423 2008-11-10  Bruno Haible  <bruno@clisp.org>
8424
8425         Add support for Haiku.
8426         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
8427         glibc and BeOS, but also on Haiku.
8428         * lib/fpurge.c (fpurge): Likewise.
8429         * lib/freadable.c (freadable): Likewise.
8430         * lib/freadahead.c (freadahead): Likewise.
8431         * lib/freading.c (freading): Likewise.
8432         * lib/freadptr.c (freadptr): Likewise.
8433         * lib/freadseek.c (freadptrinc): Likewise.
8434         * lib/fseeko.c (rpl_fseeko): Likewise.
8435         * lib/fseterr.c (fseterr): Likewise.
8436         * lib/fwritable.c (fwritable): Likewise.
8437         * lib/fwriting.c (fwriting): Likewise.
8438         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
8439
8440 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
8441
8442         * lib/config.charset: Treat Haiku like BeOS.
8443
8444 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
8445
8446         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
8447         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
8448
8449 2008-11-08  Bruno Haible  <bruno@clisp.org>
8450
8451         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
8452         AC_CACHE_CHECK.
8453
8454 2008-11-08  Bruno Haible  <bruno@clisp.org>
8455
8456         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
8457
8458 2008-11-08  Bruno Haible  <bruno@clisp.org>
8459
8460         * tests/test-select-fd.c: New file.
8461         * tests/test-select-in.sh: New file.
8462         * tests/test-select-out.sh: New file.
8463         * tests/test-select-stdin.c: New file.
8464         * modules/select-tests (Files): Add the new files.
8465         (Depends-on): Add gettimeofday.
8466         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
8467         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
8468         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
8469
8470 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
8471             Bruno Haible  <bruno@clisp.org>
8472
8473         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
8474
8475 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
8476
8477         * build-aux/pmccabe2html: Added support for C++ source files.
8478
8479 2008-11-05  Ben Pfaff  <blp@gnu.org>
8480
8481         Fix lib/close.c build on Windows.
8482         * modules/close (Files): Add lib/w32sock.h.
8483
8484 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
8485
8486         Accept Bison's NEWS format.
8487         * build-aux/announce-gen (print_news_deltas): Tweak
8488         $re_prefix.
8489
8490 2008-11-04  Bruno Haible  <bruno@clisp.org>
8491
8492         * modules/random_r (Maintainer): Add glibc.
8493
8494 2008-11-04  Simon Josefsson  <simon@josefsson.org>
8495
8496         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
8497         by karl@freefriends.org (Karl Berry).
8498         * doc/alloca.texi: Likewise.
8499         * doc/c-ctype.texi: Likewise.
8500         * doc/c-strcase.texi: Likewise.
8501         * doc/c-strcaseeq.texi: Likewise.
8502         * doc/c-strcasestr.texi: Likewise.
8503         * doc/c-strstr.texi: Likewise.
8504         * doc/c-strtod.texi: Likewise.
8505         * doc/c-strtold.texi: Likewise.
8506         * doc/ctime.texi: Likewise.
8507         * doc/error.texi: Likewise.
8508         * doc/fdl.texi: Likewise.
8509         * doc/gcd.texi: Likewise.
8510         * doc/getdate.texi: Likewise.
8511         * doc/gnulib-intro.texi: Likewise.
8512         * doc/gnulib-tool.texi: Likewise.
8513         * doc/gnulib.texi: Likewise.
8514         * doc/inet_ntoa.texi: Likewise.
8515         * doc/maintain.texi: Likewise.
8516         * doc/make-stds.texi: Likewise.
8517         * doc/quote.texi: Likewise.
8518         * doc/regexprops-generic.texi: Likewise.
8519         * doc/standards.texi: Likewise.
8520         * doc/verify.texi: Likewise.
8521         * doc/visibility.texi: Likewise.
8522         * doc/gnulib.texi (GNU Free Documentation License): Include
8523         fdl-1.3.texi instead of fdl.texi.
8524
8525 2008-11-04  Simon Josefsson  <simon@josefsson.org>
8526
8527         * doc/fdl-1.3.texi: New file, from
8528         <http://www.gnu.org/licenses/fdl-1.3.texi>.
8529         * modules/fdl-1.3: Add.
8530         * MODULES.html.sh: Add fdl-1.3.
8531
8532 2008-11-03  Bruno Haible  <bruno@clisp.org>
8533
8534         Make determination of absolute name of header file work with AIX xlc.
8535         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
8536         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
8537         preprocessing.
8538         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
8539         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
8540
8541 2008-11-03  Simon Josefsson  <simon@josefsson.org>
8542
8543         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
8544         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
8545         <ludo@gnu.org>.
8546
8547 2008-11-02  Bruno Haible  <bruno@clisp.org>
8548
8549         Mark 'strpbrk' obsolete.
8550         * modules/strpbrk (Status, Notice): New sections.
8551         * modules/strtok_r (Depends-on): Add strpbrk.
8552
8553 2008-11-02  Bruno Haible  <bruno@clisp.org>
8554
8555         Mark 'strdup' obsolete.
8556         * modules/strdup (Status, Notice): New sections.
8557         * modules/findprog (Depends-on): Add strdup.
8558         * modules/getaddrinfo (Depends-on): Likewise.
8559         * modules/localename (Depends-on): Likewise.
8560         * modules/relocatable-lib (Depends-on): Likewise.
8561         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
8562         * modules/relocatable-prog (Depends-on): Likewise.
8563         * modules/trim (Depends-on): Likewise.
8564         * modules/unictype/gen-ctype (Depends-on): Likewise.
8565         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
8566
8567 2008-11-02  Bruno Haible  <bruno@clisp.org>
8568
8569         Mark 'strcspn' obsolete.
8570         * modules/strcspn (Status, Notice): New sections.
8571
8572 2008-11-02  Bruno Haible  <bruno@clisp.org>
8573
8574         Mark 'rmdir' obsolete.
8575         * modules/rmdir (Status, Notice): New sections.
8576         * modules/clean-temp (Depends-on): Add rmdir.
8577         * modules/openat (Depends-on): Likewise.
8578
8579 2008-11-02  Bruno Haible  <bruno@clisp.org>
8580
8581         Mark 'raise' obsolete.
8582         * modules/raise (Status, Notice): New sections.
8583         (Include): Specify <signal.h>.
8584         * modules/stdio (Depends-on): Add raise.
8585         * modules/write (Depends-on): Likewise.
8586
8587 2008-11-02  Bruno Haible  <bruno@clisp.org>
8588
8589         Mark 'memset' obsolete.
8590         * modules/memset (Status, Notice): New sections.
8591
8592 2008-11-02  Bruno Haible  <bruno@clisp.org>
8593
8594         Mark 'memmove' obsolete.
8595         * modules/memmove (Status, Notice): New sections.
8596         * modules/argp (Depends-on): Add memmove.
8597         * modules/argz (Depends-on): Likewise.
8598         * modules/canonicalize (Depends-on): Likewise.
8599         * modules/canonicalize-lgpl (Depends-on): Likewise.
8600         * modules/fts (Depends-on): Likewise.
8601         * modules/getcwd (Depends-on): Likewise.
8602         * modules/human (Depends-on): Likewise.
8603         * modules/regex (Depends-on): Likewise.
8604         * modules/striconveh (Depends-on): Likewise.
8605         * modules/trim (Depends-on): Likewise.
8606         * modules/unistr/u8-move (Depends-on): Likewise.
8607         * modules/unistr/u16-move (Depends-on): Likewise.
8608         * modules/unistr/u32-move (Depends-on): Likewise.
8609
8610 2008-11-02  Bruno Haible  <bruno@clisp.org>
8611
8612         Mark 'memcpy' obsolete.
8613         * modules/memcpy (Status, Notice): New sections.
8614
8615 2008-11-02  Bruno Haible  <bruno@clisp.org>
8616
8617         Mark 'memcmp' obsolete.
8618         * modules/memcmp (Status, Notice): New sections.
8619         * modules/argmatch (Depends-on): Add memchr.
8620         * modules/backupfile (Depends-on): Likewise.
8621         * modules/c-strcasestr (Depends-on): Likewise.
8622         * modules/crypto/des (Depends-on): Likewise.
8623         * modules/csharpcomp (Depends-on): Likewise.
8624         * modules/fnmatch (Depends-on): Likewise.
8625         * modules/git-merge-changelog (Depends-on): Likewise.
8626         * modules/isnand (Depends-on): Likewise.
8627         * modules/isnand-nolibm (Depends-on): Likewise.
8628         * modules/isnanf (Depends-on): Likewise.
8629         * modules/isnanf-nolibm (Depends-on): Likewise.
8630         * modules/isnanl (Depends-on): Likewise.
8631         * modules/isnanl-nolibm (Depends-on): Likewise.
8632         * modules/mbchar (Depends-on): Likewise.
8633         * modules/memcoll (Depends-on): Likewise.
8634         * modules/quotearg (Depends-on): Likewise.
8635         * modules/regex (Depends-on): Likewise.
8636         * modules/relocatable-prog (Depends-on): Likewise.
8637         * modules/same (Depends-on): Likewise.
8638         * modules/signbit (Depends-on): Likewise.
8639         * modules/strcasestr-simple (Depends-on): Likewise.
8640         * modules/unictype/gen-ctype (Depends-on): Likewise.
8641         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
8642         * modules/uniname/uniname (Depends-on): Likewise.
8643         * modules/unistr/u8-cmp (Depends-on): Likewise.
8644
8645 2008-11-02  Bruno Haible  <bruno@clisp.org>
8646
8647         Mark 'memchr' obsolete.
8648         * modules/memchr (Status, Notice): New sections.
8649         * modules/argp (Depends-on): Add memchr.
8650         * modules/base64 (Depends-on): Likewise.
8651         * modules/c-strcasestr (Depends-on): Likewise.
8652         * modules/chdir-long (Depends-on): Likewise.
8653         * modules/fnmatch (Depends-on): Likewise.
8654         * modules/getsubopt (Depends-on): Likewise.
8655         * modules/git-merge-changelog (Depends-on): Likewise.
8656         * modules/glob (Depends-on): Likewise.
8657         * modules/strcasestr-simple (Depends-on): Likewise.
8658         * modules/strnlen (Depends-on): Likewise.
8659
8660 2008-11-02  Bruno Haible  <bruno@clisp.org>
8661
8662         Mark 'atexit' obsolete.
8663         * modules/atexit (Status, Notice): New sections.
8664         * modules/chdir-long (Depends-on): Add atexit.
8665         * modules/wait-process (Depends-on): Likewise.
8666
8667 2008-11-02  Bruno Haible  <bruno@clisp.org>
8668
8669         * gnulib-tool: New option --with-obsolete.
8670         (func_usage): Document it.
8671         (func_modules_transitive_closure): Drop obsolete dependencies if
8672         incobsolete is not true.
8673         (func_import): Read and save the incobsolete variable to the cache.
8674
8675 2008-11-02  Bruno Haible  <bruno@clisp.org>
8676
8677         * modules/TEMPLATE-EXTENDED: New field 'Status'.
8678         * gnulib-tool: New option --extract-status.
8679         (func_usage): Document it.
8680         (sed_extract_prog): Recognize it.
8681         (func_get_status): New function.
8682
8683 2008-10-30  Simon Josefsson  <simon@josefsson.org>
8684
8685         * modules/sockets (License): Change from LGPL to LGPLv2+.
8686
8687 2008-10-28  Simon Josefsson  <simon@josefsson.org>
8688
8689         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
8690
8691 2008-10-28  Simon Josefsson  <simon@josefsson.org>
8692
8693         * MODULES.html.sh (Support for systems lacking POSIX:2001):
8694         Mention times and sys_times.
8695         * modules/sys_times, modules/sys_times-tests: New modules.
8696         * modules/times, modules/times-tests: Likewise
8697         * m4/sys_times_h.m4: New file.
8698         * lib/sys_times.in.h: Likewise
8699         * lib/times.c: Likewise.
8700         * tests/test-sys_times.c: Likewise.
8701         * tests/test-times.c: Likewise.
8702         * doc/posix-headers/sys_times.texi: Update.
8703         * doc/posix-functions/times.texi: Update.
8704
8705 2008-10-28  Jim Meyering  <meyering@redhat.com>
8706
8707         * modules/tempname (Depends-on): Add lstat.
8708
8709         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
8710
8711 2008-10-28  Simon Josefsson  <simon@josefsson.org>
8712
8713         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
8714         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
8715         using idiom used elsewhere in gnulib.
8716
8717 2008-10-27  Jim Meyering  <meyering@redhat.com>
8718
8719         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
8720
8721 2008-10-27  Simon Josefsson  <simon@josefsson.org>
8722
8723         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
8724         TESTS_ENVIRONMENT, for shell scripts that needs to call built
8725         programs.
8726         * tests/test-argp-2.sh: Use $EXEEXT when needed.
8727
8728 2008-10-27  Simon Josefsson  <simon@josefsson.org>
8729
8730         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
8731
8732 2008-10-27  Bruno Haible  <bruno@clisp.org>
8733
8734         * tests/test-lstat.c: Include <stdio.h>.
8735
8736 2008-10-27  Simon Josefsson  <simon@josefsson.org>
8737
8738         * modules/lstat-tests: New module.
8739         * tests/test-lstat.c: New file.
8740
8741 2008-10-26  Jim Meyering  <meyering@redhat.com>
8742
8743         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
8744
8745 2008-10-26  Simon Josefsson  <simon@josefsson.org>
8746             Bruno Haible  <bruno@clisp.org>
8747
8748         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
8749         * modules/configmake (Include): Add a note that the include must come
8750         after all system headers.
8751         * lib/javaversion.c: Include configmake.h after all other includes.
8752
8753 2008-10-26  Bruno Haible  <bruno@clisp.org>
8754
8755         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
8756         HAVE_STRUCT_RANDOM_DATA to 1.
8757         (gl_STDLIB_H): Simplify.
8758
8759 2008-10-26  Simon Josefsson  <simon@josefsson.org>
8760
8761         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
8762         substitute HAVE_STRUCT_RANDOM_DATA.
8763         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
8764         random_data.
8765         * modules/stdlib (Makefile.am): Substitute
8766         HAVE_STRUCT_RANDOM_DATA.
8767
8768 2008-10-26  Simon Josefsson  <simon@josefsson.org>
8769
8770         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
8771         * doc/gnulib-intro.texi (Copyright): Likewise.
8772
8773 2008-10-26  Simon Josefsson  <simon@josefsson.org>
8774
8775         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
8776         findings.
8777
8778 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
8779             Bruno Haible  <bruno@clisp.org>
8780
8781         * lib/unistd.in.h: Include <winsock2.h>.
8782         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
8783         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
8784         Provide dummy declarations.
8785         (gethostname): Override.
8786         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
8787         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
8788         gl_PREREQ_SYS_H_WINSOCK2.
8789         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
8790         * doc/posix-functions/gethostname.texi: More details.
8791
8792 2008-10-25  Bruno Haible  <bruno@clisp.org>
8793
8794         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
8795         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
8796         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
8797
8798         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
8799         here ...
8800         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
8801         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
8802         gl_UNISTD_H_DEFAULTS.
8803
8804 2008-10-25  Eric Blake  <ebb9@byu.net>
8805
8806         signbit: avoid spurious compiler failure
8807         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
8808         declarations inside function.
8809
8810 2008-10-24  Simon Josefsson  <simon@josefsson.org>
8811             Bruno Haible  <bruno@clisp.org>
8812
8813         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
8814         * modules/random_r (Depends-on): Add stdint.
8815
8816 2008-10-24  Bruno Haible  <bruno@clisp.org>
8817
8818         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
8819         Eggert.
8820         * modules/strerror (License): Likewise.
8821
8822 2008-10-24  Jim Meyering  <meyering@redhat.com>
8823
8824         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
8825         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
8826
8827 2008-10-24  Eric Blake  <ebb9@byu.net>
8828
8829         getgroups: fix compilation when getgroups is available
8830         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
8831         but with <config.h> override of getgroups disabled.
8832
8833 2008-10-24  Simon Josefsson  <simon@josefsson.org>
8834
8835         * doc/gnulib.texi (Header files): Add note about C++ problems.
8836         Explained by Bruno Haible <bruno@clisp.org>.
8837
8838 2008-10-23  Bruno Haible  <bruno@clisp.org>
8839
8840         Define a dummy SA_NODEFER macro on Interix.
8841         * lib/signal.in.h (SA_NODEFER): Define fallback.
8842         Reported by Aleksey Cheusov <cheusov@tut.by> via
8843         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
8844
8845 2008-10-23  Bruno Haible  <bruno@clisp.org>
8846
8847         * modules/freadahead (License): Change to LGPLv2+.
8848         Suggested by Simon Josefsson.
8849
8850 2008-10-23  Jim Meyering  <meyering@redhat.com>
8851
8852         random_r: new module
8853         * modules/random_r: New file.
8854         * m4/random_r.m4: New file.
8855         * lib/random_r.c: New file, from glibc.
8856         * modules/random_r-tests: New file.
8857         * tests/test-random_r.c: New file.
8858         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
8859          Declare.
8860         (RAND_MAX): Define.
8861         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
8862         * modules/stdlib: Substitute them, too.
8863         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
8864         * doc/glibc-functions/initstate_r.texi: Mention the new module.
8865         * doc/glibc-functions/random_r.texi: Likewise.
8866         * doc/glibc-functions/setstate_r.texi: Likewise.
8867         * doc/glibc-functions/srandom_r.texi: Likewise.
8868         * config/srclist.txt: Mention it.
8869
8870 2008-10-23  David Lutterkort  <lutter@redhat.com>
8871
8872         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
8873         link requirement
8874
8875 2008-10-23  Jim Meyering  <meyering@redhat.com>
8876
8877         selinux-h: mark parameters of stub functions as intentionally unused
8878         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
8879         * lib/se-context.in.h: Likewise.
8880
8881 2008-10-22  Simon Josefsson  <simon@josefsson.org>
8882
8883         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
8884
8885 2008-10-22  Simon Josefsson  <simon@josefsson.org>
8886
8887         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
8888
8889 2008-10-22  Eric Blake  <ebb9@byu.net>
8890
8891         glthread/thread: avoid compiler warning
8892         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
8893         Add unreachable abort to silence compiler.
8894
8895 2008-10-22  Eric Blake  <ebb9@byu.net>
8896
8897         netdb: also supply struct addrinfo for cygwin 1.5.x
8898         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
8899         older cygwin.
8900         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
8901         cygwin.
8902         * doc/posix-headers/netdb.texi (netdb.h): Document this.
8903
8904 2008-10-22  Bruno Haible  <bruno@clisp.org>
8905
8906         * users.txt: Update entry about pspp.
8907
8908 2008-10-21  Bruno Haible  <bruno@clisp.org>
8909
8910         Simplification.
8911         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
8912         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
8913
8914         Simplification.
8915         * lib/ioctl.c (ioctl): Don't undefine.
8916         * lib/socket.c (socket): Don't undefine.
8917
8918         Remove unused module indicator macros.
8919         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
8920         GNULIB_$1 as a C macro.
8921
8922         * doc/posix-functions/close.texi: Undo last change.
8923         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
8924         Windows platforms.
8925
8926 2008-10-21  Bruno Haible  <bruno@clisp.org>
8927
8928         Add gethostname() declaration to <unistd.h>.
8929         * lib/unistd.in.h (gethostname): New declaration.
8930         * lib/gethostname.c: Include <unistd.h>.
8931         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
8932         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
8933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
8934         and HAVE_GETHOSTNAME.
8935         * modules/gethostname (Depends-on): Add unistd.
8936         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
8937         (Include): Specify <unistd.h>.
8938         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
8939         HAVE_GETHOSTNAME.
8940         * tests/test-gethostname.c: Include <unistd.h> first.
8941
8942 2008-10-21  Bruno Haible  <bruno@clisp.org>
8943
8944         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
8945         * modules/select-tests (Depends-on): Likewise.
8946         Reported by Simon Josefsson.
8947
8948 2008-10-21  Simon Josefsson  <simon@josefsson.org>
8949
8950         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
8951         * lib/accept.c: New file, based on winsock.c.
8952         * lib/bind.c: New file, based on winsock.c.
8953         * lib/connect.c: New file, based on winsock.c.
8954         * lib/getpeername.c: New file, based on winsock.c.
8955         * lib/getsockname.c: New file, based on winsock.c.
8956         * lib/getsockopt.c: New file, based on winsock.c.
8957         * lib/ioctl.c: New file, based on winsock.c.
8958         * lib/listen.c: New file, based on winsock.c.
8959         * lib/recv.c: New file, based on winsock.c.
8960         * lib/recvfrom.c: New file, based on winsock.c.
8961         * lib/send.c: New file, based on winsock.c.
8962         * lib/sendto.c: New file, based on winsock.c.
8963         * lib/setsockopt.c: New file, based on winsock.c.
8964         * lib/shutdown.c: New file, based on winsock.c.
8965         * lib/socket.c: New file, based on winsock.c.
8966         * lib/w32sock.h: New file, based on winsock.c.
8967         * lib/winsock.c: Remove file.
8968         * modules/accept: Likewise.
8969         * modules/bind: Likewise.
8970         * modules/connect: Likewise.
8971         * modules/getpeername: Likewise.
8972         * modules/getsockname: Likewise.
8973         * modules/getsockopt: Likewise.
8974         * modules/ioctl: Likewise.
8975         * modules/listen: Likewise.
8976         * modules/recv: Likewise.
8977         * modules/recvfrom: Likewise.
8978         * modules/send: Likewise.
8979         * modules/sendto: Likewise.
8980         * modules/setsockopt: Likewise.
8981         * modules/shutdown: Likewise.
8982         * modules/socket: Use socket.c instead of winsock.c.
8983         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
8984         * doc/posix-functions/accept.texi: Doc fix.
8985         * doc/posix-functions/bind.texi: Doc fix.
8986         * doc/posix-functions/close.texi: Doc fix.
8987         * doc/posix-functions/connect.texi: Doc fix.
8988         * doc/posix-functions/getpeername.texi: Doc fix.
8989         * doc/posix-functions/getsockname.texi: Doc fix.
8990         * doc/posix-functions/getsockopt.texi: Doc fix.
8991         * doc/posix-functions/ioctl.texi: Doc fix.
8992         * doc/posix-functions/listen.texi: Doc fix.
8993         * doc/posix-functions/recv.texi: Doc fix.
8994         * doc/posix-functions/recvfrom.texi: Doc fix.
8995         * doc/posix-functions/send.texi: Doc fix.
8996         * doc/posix-functions/sendto.texi: Doc fix.
8997         * doc/posix-functions/setsockopt.texi: Doc fix.
8998         * doc/posix-functions/shutdown.texi: Doc fix.
8999         * doc/posix-functions/socket.texi: Doc fix.
9000
9001 2008-10-20  Bruno Haible  <bruno@clisp.org>
9002
9003         Take into account the role of SIGABRT_COMPAT on Windows 2008.
9004         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
9005         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
9006         as an alias for SIGABRT.
9007         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
9008         (sigaction): Map it to SIGABRT.
9009         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
9010
9011 2008-10-20  Bruno Haible  <bruno@clisp.org>
9012
9013         * lib/fts.c: Don't include lstat.h.
9014         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
9015
9016         Move the lstat() declaration to <sys/stat.h>.
9017         * lib/lstat.h: Remove file.
9018         * lib/sys_stat.in.h: Add special invocation convention.
9019         (lstat): New declaration.
9020         * lib/lstat.c (orig_lstat): New function.
9021         (rpl_lstat): Use orig_lstat instead of lstat.
9022         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
9023         AC_C_INLINE. Set REPLACE_LSTAT.
9024         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
9025         and REPLACE_LSTAT.
9026         * modules/lstat (Files): Remove lib/lstat.h.
9027         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
9028         (Include): Specify <sys/stat.h> instead of lstat.h.
9029         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
9030         REPLACE_LSTAT.
9031         * NEWS: Mention the change.
9032
9033 2008-10-20  Bruno Haible  <bruno@clisp.org>
9034
9035         * modules/posix_spawn-tests: New file.
9036         * tests/test-posix_spawn3.c: New file.
9037
9038 2008-10-20  Bruno Haible  <bruno@clisp.org>
9039
9040         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
9041         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
9042         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
9043         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
9044         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
9045
9046 2008-10-20  Bruno Haible  <bruno@clisp.org>
9047
9048         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
9049         of posix_spawn on AIX 5.3.
9050
9051 2008-10-20  Bruno Haible  <bruno@clisp.org>
9052
9053         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
9054
9055 2008-10-20  Bruno Haible  <bruno@clisp.org>
9056
9057         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
9058         of AC_LANG_PROGRAM.
9059
9060 2008-10-20  Simon Josefsson  <simon@josefsson.org>
9061
9062         * lib/netdb.in.h: Don't define GNU specific constants until they
9063         are supported or needed.  Reported by Bruno Haible
9064         <bruno@clisp.org>.
9065
9066 2008-10-20  Simon Josefsson  <simon@josefsson.org>
9067
9068         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
9069
9070 2008-10-20  Simon Josefsson  <simon@josefsson.org>
9071
9072         * lib/getaddrinfo.h: Remove file.
9073         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
9074         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
9075         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
9076         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
9077         * modules/netdb: Substitute GNULIB_GETADDRINFO.
9078         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
9079         * tests/test-getaddrinfo.c: Likewise.
9080         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
9081         * NEWS: Mention change.
9082
9083 2008-10-19  Bruno Haible  <bruno@clisp.org>
9084
9085         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
9086
9087 2008-10-19  Bruno Haible  <bruno@clisp.org>
9088
9089         * lib/wait-process.c: Include simply <sys/wait.h>.
9090         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
9091         WIFSTOPPED): Remove fallback definitions.
9092         * modules/wait-process (Depends-on): Add sys_wait.
9093
9094         New module 'sys_wait'.
9095         * modules/sys_wait: New file.
9096         * lib/sys_wait.in.h: New file, partially copied from
9097         lib/wait-process.c.
9098         * m4/sys_wait_h.m4: New file.
9099         * doc/posix-headers/sys_wait.texi: Mention the new module.
9100
9101 2008-10-19  Bruno Haible  <bruno@clisp.org>
9102
9103         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
9104
9105 2008-10-19  Bruno Haible  <bruno@clisp.org>
9106
9107         Assume that waitpid() fills an 'int' status, not a 'union wait'.
9108         * lib/wait-process.c (WAIT_T): Remove type.
9109         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
9110         (wait_subprocess): Update.
9111
9112 2008-10-19  Bruno Haible  <bruno@clisp.org>
9113
9114         New module 'atoll'.
9115         * modules/atoll: New file.
9116         * lib/stdlib.in.h (atoll): New declaration.
9117         * lib/atoll.c: New file, from glibc with modifications.
9118         * m4/atoll.m4: New file.
9119         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
9120         HAVE_ATOLL.
9121         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
9122         * doc/posix-functions/atoll.texi: Mention the new module.
9123
9124 2008-10-19  Bruno Haible  <bruno@clisp.org>
9125
9126         Add strtoull() declaration to <stdlib.h>.
9127         * lib/stdlib.in.h (strtoull): New declaration.
9128         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
9129         Set HAVE_STRTOULL.
9130         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
9131         HAVE_STRTOULL.
9132         * modules/strtoull (Depends-on): Add stdlib.
9133         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
9134         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
9135         HAVE_STRTOULL.
9136
9137 2008-10-19  Bruno Haible  <bruno@clisp.org>
9138
9139         Add strtoll() declaration to <stdlib.h>.
9140         * lib/stdlib.in.h (strtoll): New declaration.
9141         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
9142         Set HAVE_STRTOLL.
9143         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
9144         HAVE_STRTOLL.
9145         * modules/strtoll (Depends-on): Add stdlib.
9146         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
9147         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
9148
9149 2008-10-19  Bruno Haible  <bruno@clisp.org>
9150
9151         * modules/bcopy (Depends-on): Add strings.
9152         (Include): Specify <strings.h>.
9153
9154 2008-10-19  Bruno Haible  <bruno@clisp.org>
9155
9156         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
9157
9158 2008-10-19  Bruno Haible  <bruno@clisp.org>
9159
9160         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
9161         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
9162         mingw.
9163
9164 2008-10-19  Bruno Haible  <bruno@clisp.org>
9165
9166         * lib/atanl.c: Don't include isnanl.h.
9167         * lib/cosl.c: Likewise.
9168         * lib/ldexpl.c: Likewise.
9169         * lib/logl.c: Likewise.
9170         * lib/sinl.c: Likewise.
9171         * lib/sqrtl.c: Likewise.
9172         * lib/tanl.c: Likewise.
9173
9174         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
9175         * lib/isnanf.h: Remove file.
9176         * lib/isnand.h: Remove file.
9177         * lib/isnanl.h: Remove file.
9178         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
9179         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
9180         macros.
9181         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
9182         HAVE_ISNANF, don't define it as a C macro.
9183         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
9184         HAVE_ISNAND, don't define it as a C macro.
9185         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
9186         HAVE_ISNANL, don't define it as a C macro.
9187         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
9188         HAVE_ISNAN[FDL].
9189         * modules/isnanf (Files): Remove lib/isnanf.h.
9190         (Depends-on): Add math.
9191         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9192         (Include): Specify <math.h> instead of isnanf.h.
9193         * modules/isnand (Files): Remove lib/isnand.h.
9194         (Depends-on): Add math.
9195         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9196         (Include): Specify <math.h> instead of isnand.h.
9197         * modules/isnanl (Files): Remove lib/isnanl.h.
9198         (Depends-on): Add math.
9199         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
9200         (Include): Specify <math.h> instead of isnanl.h.
9201         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
9202         HAVE_ISNAN[FDL].
9203         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
9204         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
9205         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
9206         * NEWS: Mention the change.
9207
9208 2008-10-18  Bruno Haible  <bruno@clisp.org>
9209
9210         Add getusershell(), setusershell(), endusershell() declarations to
9211         <unistd.h>.
9212         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
9213         declarations.
9214         * lib/getusershell.c: Include unistd.h.
9215         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
9216         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
9217         HAVE_GETUSERSHELL.
9218         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
9219         and HAVE_GETUSERSHELL.
9220         * modules/getusershell (Depends-on): Add unistd, extensions.
9221         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9222         (Include): Specify <unistd.h>.
9223         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
9224         HAVE_GETUSERSHELL.
9225
9226 2008-10-18  Bruno Haible  <bruno@clisp.org>
9227
9228         Add a getloadavg() declaration to <stdlib.h>.
9229         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
9230         getloadavg declaration.
9231         (getloadavg): New declaration.
9232         * lib/getloadavg.c: Include <stdlib.h> first.
9233         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
9234         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
9235         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
9236         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
9237         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
9238         * modules/getloadavg (Depends-on): Add stdlib, extensions.
9239         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
9240         (Include): Specify <stdlib.h>.
9241         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
9242         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
9243
9244 2008-10-18  Bruno Haible  <bruno@clisp.org>
9245
9246         * lib/dirchownmod.c: Don't include lchmod.h.
9247
9248         Move the lchmod() declaration to <sys/stat.h>.
9249         * lib/lchmod.h: Remove file.
9250         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
9251         (lchmod): New declaration, moved here from lib/lchown.h.
9252         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
9253         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
9254         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
9255         and HAVE_LCHMOD.
9256         * modules/lchmod (Files): Remove lib/lchmod.h.
9257         (Depends-on): Add sys_stat, extensions.
9258         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
9259         (Include): Specify <sys/stat.h> instead of lchmod.h.
9260         * modules/sys_stat (Depends-on): Add link-warning.
9261         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
9262         definition of GL_LINK_WARNING.
9263         * NEWS: Mention the change.
9264
9265 2008-10-18  Bruno Haible  <bruno@clisp.org>
9266
9267         * lib/fchdir.c: Don't include dirfd.h.
9268         * lib/fts.c: Likewise.
9269         * lib/getcwd.c: Likewise.
9270         * lib/glob.c: Likewise.
9271
9272         Move the dirfd() declaration to <dirent.h>.
9273         * lib/dirfd.h: Remove file.
9274         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
9275         (dirfd): New declaration.
9276         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
9277         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
9278         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
9279         HAVE_DECL_DIRFD.
9280         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
9281         HAVE_DECL_DIRFD.
9282         * modules/dirfd (Files): Remove lib/dirfd.h.
9283         (Depends-on): Add dirent, extensions.
9284         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
9285         (Include): Specify <dirent.h> instead of dirfd.h.
9286         * modules/dirent (Depends-on): Add link-warning.
9287         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
9288         definition of GL_LINK_WARNING.
9289         * NEWS: Mention the change.
9290
9291 2008-10-18  Bruno Haible  <bruno@clisp.org>
9292
9293         Move the euidaccess() declaration to <unistd.h>.
9294         * lib/euidaccess.h: Remove file.
9295         * lib/unistd.in.h (euidaccess): New declaration.
9296         * lib/euidaccess.c: Don't include euidaccess.h.
9297         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
9298         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
9299         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
9300         and HAVE_EUIDACCESS.
9301         * modules/euidaccess (Files): Remove lib/euidaccess.h.
9302         (Depends-on): Add unistd.
9303         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9304         (Include): Specify <unistd.h> instead of euidaccess.h.
9305         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
9306         HAVE_EUIDACCESS.
9307         * NEWS: Mention the change.
9308
9309 2008-10-18  Bruno Haible  <bruno@clisp.org>
9310
9311         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
9312
9313         Move the getdomainname() declaration to <unistd.h>.
9314         * lib/getdomainname.h: Remove file.
9315         * lib/unistd.in.h (getdomainname): New declaration.
9316         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
9317         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
9318         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
9319         HAVE_GETDOMAINNAME.
9320         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9321         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
9322         * modules/getdomainname (Files): Remove lib/getdomainname.h.
9323         (Depends-on): Add unistd, extensions.
9324         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9325         (Includes): Specify <unistd.h> instead of getdomainname.h.
9326         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
9327         HAVE_GETDOMAINNAME.
9328         * NEWS: Mention the change.
9329
9330 2008-10-18  Bruno Haible  <bruno@clisp.org>
9331
9332         * modules/dirent: New file.
9333         * m4/dirent_h.m4: New file.
9334         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
9335         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
9336         * modules/fchdir (Files): Remove lib/dirent.in.h.
9337         (Depends-on): Add dirent.
9338         (Makefile.am): Move rules to modules/dirent.
9339         * doc/posix-headers/dirent.texi: Mention the new module.
9340
9341 2008-10-18  Bruno Haible  <bruno@clisp.org>
9342
9343         Avoid -Wunused-parameter warnings in public gnulib header files.
9344         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
9345         macro.
9346         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
9347
9348 2008-10-18  Bruno Haible  <bruno@clisp.org>
9349
9350         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
9351         * doc/glibc-functions/error.texi: Mention the module 'error'.
9352         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
9353         * doc/glibc-functions/getdomainname.texi: Mention the module
9354         'getdomainname'.
9355         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
9356         * doc/glibc-functions/getpagesize.texi: Mention the module
9357         'getpagesize'.
9358         * doc/glibc-functions/getusershell.texi: Mention the module
9359         'getusershell'.
9360         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
9361         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
9362         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
9363         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
9364         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
9365         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
9366         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
9367         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
9368         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
9369         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
9370         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
9371         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
9372         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
9373         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
9374
9375 2008-10-17  Bruno Haible  <bruno@clisp.org>
9376
9377         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
9378         HP-UX and IRIX, use -0.0L.
9379         * tests/test-ceill.c (minus_zero): Likewise.
9380         * tests/test-floorl.c (minus_zero): Likewise.
9381         * tests/test-frexpl.c (minus_zero): Likewise.
9382         * tests/test-isnan.c (minus_zerol): Likewise.
9383         * tests/test-isnanl.h (minus_zero): Likewise.
9384         * tests/test-ldexpl.c (minus_zero): Likewise.
9385         * tests/test-roundl.c (minus_zero): Likewise.
9386         * tests/test-signbit.c (minus_zerol): Likewise.
9387         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
9388         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
9389         * tests/test-truncl.c (minus_zero): Likewise.
9390         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
9391         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
9392         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
9393         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
9394
9395 2008-10-17  Bruno Haible  <bruno@clisp.org>
9396
9397         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
9398         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
9399         that it gets activated only for gcc >= 3.0.
9400         * lib/dirent.in.h: Likewise.
9401         * lib/errno.in.h: Likewise.
9402         * lib/fcntl.in.h: Likewise.
9403         * lib/float.in.h: Likewise.
9404         * lib/iconv.in.h: Likewise.
9405         * lib/inttypes.in.h: Likewise.
9406         * lib/locale.in.h: Likewise.
9407         * lib/math.in.h: Likewise.
9408         * lib/netdb.in.h: Likewise.
9409         * lib/netinet_in.in.h: Likewise.
9410         * lib/search.in.h: Likewise.
9411         * lib/signal.in.h: Likewise.
9412         * lib/spawn.in.h: Likewise.
9413         * lib/stdarg.in.h: Likewise.
9414         * lib/stdint.in.h: Likewise.
9415         * lib/stdio.in.h: Likewise.
9416         * lib/stdlib.in.h: Likewise.
9417         * lib/string.in.h: Likewise.
9418         * lib/strings.in.h: Likewise.
9419         * lib/sys_file.in.h: Likewise.
9420         * lib/sys_ioctl.in.h: Likewise.
9421         * lib/sys_select.in.h: Likewise.
9422         * lib/sys_socket.in.h: Likewise.
9423         * lib/sys_stat.in.h: Likewise.
9424         * lib/sys_time.in.h: Likewise.
9425         * lib/sysexits.in.h: Likewise.
9426         * lib/time.in.h: Likewise.
9427         * lib/unistd.in.h: Likewise.
9428         * lib/wchar.in.h: Likewise.
9429         * lib/wctype.in.h: Likewise.
9430         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
9431
9432 2008-10-17  Jim Meyering  <meyering@redhat.com>
9433
9434         ignore-value: don't depend on inline module
9435         * modules/ignore-value (Depends-on): Remove 'inline'.
9436         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
9437         Suggestion from Bruno Haible.
9438
9439 2008-10-17  Bruno Haible  <bruno@clisp.org>
9440
9441         New implementation of condition variables for Win32.
9442         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
9443         (gl_linked_waitqueue_t): New type.
9444         (gl_cond_t): Use it.
9445         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
9446         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
9447         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
9448         (glthread_cond_init_func, glthread_cond_wait_func,
9449         glthread_cond_timedwait_func, glthread_cond_signal_func,
9450         glthread_cond_broadcast_func, glthread_cond_destroy_func):
9451         Reimplemented on the basis of gl_linked_waitqueue_t.
9452         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
9453         gl_waitqueue_t.
9454         (gl_rwlock_t): Update.
9455         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
9456
9457 2008-10-17  Simon Josefsson  <simon@josefsson.org>
9458
9459         * modules/recvfrom (Depends-on): Add dependency on getpeername.
9460         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
9461
9462 2008-10-17  Jim Meyering  <meyering@redhat.com>
9463
9464         ignore-value: new module
9465         * modules/ignore-value: New file.
9466         * lib/ignore-value.h: New file.
9467         * MODULES.html.sh (Compiler warning management): New section,
9468         just for this module.  More to come.
9469
9470 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
9471
9472         open-safer.c: avoid 'signed and unsigned in conditional...' warning
9473         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
9474         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
9475
9476 2008-10-16  Jim Meyering  <meyering@redhat.com>
9477
9478         openat-die.c: avoid 'no previous prototype' warning
9479         * lib/openat-die.c: Include "openat.h".
9480         Reported by Reuben Thomas <rrt@sc3d.org>.
9481
9482 2008-10-16  Simon Josefsson  <simon@josefsson.org>
9483
9484         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
9485         * lib/netdb.in.h: Fix typo.
9486         Reported by Bruno Haible  <bruno@clisp.org>
9487
9488         * lib/netdb.in.h: Include sys/socket.h for platforms without
9489         netdb.h, to get structures like hostent on MinGW.
9490         * modules/netdb (Depends-on): Add sys_socket.
9491
9492 2008-10-15  Simon Josefsson  <simon@josefsson.org>
9493
9494         * modules/netdb, modules/netdb-tests: New file.
9495         * m4/netdb_h.m4: New file.
9496         * lib/netdb.in.h: Add, currently just an empty file pending
9497         definitions.
9498         * tests/test-netdb.c: New file.
9499         * doc/posix-headers/netdb.texi: Mention that we replace it if
9500         needed.
9501         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
9502         netdb.
9503
9504 2008-10-15  Simon Josefsson  <simon@josefsson.org>
9505
9506         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
9507         with code.
9508
9509 2008-10-13  Bruno Haible  <bruno@clisp.org>
9510
9511         * lib/glthread/cond.c (glthread_cond_wait_func,
9512         glthread_cond_timedwait_func): Add a comment.
9513
9514 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
9515
9516         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
9517         * tests/test-select.c: Likewise,
9518
9519 2008-10-13  Bruno Haible  <bruno@clisp.org>
9520
9521         * lib/glthread/cond.c (glthread_cond_wait_func,
9522         glthread_cond_timedwait_func): Fix variable name.
9523         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
9524
9525 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
9526
9527         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
9528         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
9529         struct sockaddr.sa_len.
9530         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
9531
9532 2008-10-13  Simon Josefsson  <simon@josefsson.org>
9533
9534         * build-aux/pmccabe2html: Add css and css_url parameters.
9535
9536 2008-10-12  Bruno Haible  <bruno@clisp.org>
9537
9538         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
9539         calling aclx_get.
9540         Reported by Rainer Tammer <tammer@tammer.net>.
9541
9542 2008-10-12  Bruno Haible  <bruno@clisp.org>
9543
9544         Use msvcrt aware primitives for creation/termination of Win32 threads.
9545         * lib/glthread/thread.c: Include <process.h>.
9546         (glthread_create_func): Use _beginthreadex instead of CreateThread.
9547         (wrapper_func): Update signature.
9548         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
9549
9550 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
9551             Bruno Haible  <bruno@clisp.org>
9552
9553         Provide a Win32 implementation of the 'cond' module.
9554         * lib/glthread/cond.h [USE_WIN32]: New implementation.
9555         * lib/glthread/cond.c (glthread_cond_init_func,
9556         glthread_cond_wait_func, glthread_cond_timedwait_func,
9557         glthread_cond_signal_func, glthread_cond_broadcast_func,
9558         glthread_cond_destroy_func) [USE_WIN32]: New functions.
9559         * modules/cond (Dependencies): Add gettimeofday.
9560
9561 2008-10-11  Bruno Haible  <bruno@clisp.org>
9562
9563         Make sleep work on older versions of mingw.
9564         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
9565         only whether it exists.
9566         * doc/posix-functions/sleep.texi: Mention the problem with older
9567         versions of mingw.
9568
9569 2008-10-11  Bruno Haible  <bruno@clisp.org>
9570
9571         New module 'shutdown'.
9572         * modules/shutdown: New file.
9573         * lib/sys_socket.in.h (shutdown): New declaration.
9574         * lib/winsock.c (shutdown): New function.
9575         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
9576         GNULIB_SHUTDOWN.
9577         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
9578         * doc/posix-functions/shutdown.texi: Document the new module.
9579
9580 2008-10-11  Jim Meyering  <meyering@redhat.com>
9581
9582         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
9583
9584 2008-10-11  Bruno Haible  <bruno@clisp.org>
9585
9586         New module 'fclose'.
9587         * modules/fclose: New file.
9588         * lib/stdio.in.h (fclose): New declaration.
9589         * lib/fclose.c: New file.
9590         * m4/fclose.m4: New file.
9591         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
9592         REPLACE_FCLOSE.
9593         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
9594         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
9595         REPLACE_FCLOSE.
9596         * modules/close (Depends-on): fclose.
9597         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
9598
9599 2008-10-11  Bruno Haible  <bruno@clisp.org>
9600
9601         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
9602         set errno and don't call _close.
9603
9604 2008-10-10  Bruno Haible  <bruno@clisp.org>
9605
9606         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
9607         ACL, not afterwards. Fixes test failure on Cygwin.
9608
9609 2008-10-09  Ben Pfaff  <blp@gnu.org>
9610
9611         * build-aux/announce-gen: Fix gnulib version related part of usage
9612         message.  Die with a useful error message if no tarballs are
9613         found.
9614
9615 2008-10-10  Jim Meyering  <meyering@redhat.com>
9616
9617         bootstrap: use git's --depth=N option only if it's supported
9618         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
9619         recognize the --depth option.  Reported by Pádraig Brady.
9620
9621 2008-10-09  Bruno Haible  <bruno@clisp.org>
9622
9623         New module 'ioctl'.
9624         * modules/ioctl: New file.
9625         * lib/sys_socket.in.h (ioctl): Remove declaration.
9626         * lib/winsock.c: Include <sys/ioctl.h>.
9627         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
9628         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
9629         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
9630         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
9631         * doc/posix-functions/ioctl.texi: Mention the new module.
9632
9633 2008-10-09  Bruno Haible  <bruno@clisp.org>
9634
9635         New module 'sys_ioctl'.
9636         * lib/sys_ioctl.in.h: New file.
9637         * m4/sys_ioctl_h.m4: New file.
9638         * modules/sys_ioctl: New file.
9639         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
9640
9641 2008-10-09  Bruno Haible  <bruno@clisp.org>
9642
9643         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
9644         * lib/winsock.c: Include <stdarg.h>.
9645         (rpl_ioctl): Change to second argument 'int' and then varargs.
9646
9647 2008-10-09  Bruno Haible  <bruno@clisp.org>
9648
9649         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
9650         when the sys_socket module is present and the system has <winsock2.h>.
9651
9652 2008-10-09  Bruno Haible  <bruno@clisp.org>
9653
9654         * doc/posix-functions/close.texi: Mention module 'close' instead of
9655         module 'sys_socket'.
9656
9657 2008-10-09  Bruno Haible  <bruno@clisp.org>
9658
9659         * doc/glibc-headers/sys_ioctl.texi: New file.
9660         * doc/gnulib.texi: Include it.
9661
9662 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
9663             Bruno Haible  <bruno@clisp.org>
9664
9665         Combine the two replacements of 'close'.
9666         * lib/sys_socket.in.h (close): Define to a reminder to include
9667         <unistd.h>.
9668         (_gl_close_fd_maybe_socket): New declaration.
9669         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
9670         * lib/winsock.c (close): Remove undefinition.
9671         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
9672         needed for the gnulib module 'close'.
9673         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
9674         define to an error symbol or to a warning, if suitable.
9675         * lib/close.c: Include <sys/socket.h>.
9676         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
9677         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
9678         UNISTD_H_HAVE_WINSOCK2_H.
9679         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
9680         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
9681         UNISTD_H_HAVE_WINSOCK2_H.
9682         * modules/sys_socket (Files): Add m4/unistd_h.m4.
9683         (configure.ac): Set a module indicator.
9684         (Makefile.am): Substitute GNULIB_CLOSE.
9685         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
9686         * modules/poll-tests (Depends-on): Add close.
9687         * modules/select-tests (Depends-on): Likewise.
9688
9689 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
9690             Bruno Haible  <bruno@clisp.org>
9691
9692         New module 'close'.
9693         * modules/close: New file.
9694         * lib/unistd.in.h (close): Move declaration out of the
9695         FCHDIR_REPLACEMENT scope.
9696         (_gl_unregister_fd): New declaration.
9697         * lib/close.c: New file.
9698         * lib/fchdir.c (rpl_close): Remove function.
9699         * m4/close.m4: New file.
9700         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
9701         close.
9702         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
9703         REPLACE_CLOSE.
9704         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
9705         REPLACE_CLOSE.
9706         * modules/fchdir (Depends-on): Add close.
9707
9708 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
9709             Bruno Haible  <bruno@clisp.org>
9710
9711         * lib/fcntl.in.h (open): Simplify conditionals.
9712         (_gl_register_fd): New declaration.
9713         * lib/fchdir.c (rpl_open): Remove function.
9714         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
9715         also.
9716         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
9717         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
9718         open.
9719
9720 2008-10-09  Jim Meyering  <meyering@redhat.com>
9721
9722         GNUmakefile: use the more name-space-friendly "_version"
9723         * top/GNUmakefile (_dummy): Update.
9724         (_version): Rename from "version".
9725
9726 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
9727             Bruno Haible  <bruno@clisp.org>
9728
9729         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
9730         rpl_close.
9731         (_gl_register_fd): New function, extracted from rpl_open.
9732         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
9733         (rpl_open, rpl_opendir): Use _gl_register_fd.
9734
9735 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
9736
9737         Fix organization of 'open' replacement.
9738         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
9739         (gl_FUNC_OPEN): Use it.
9740         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
9741
9742 2008-10-08  Bruno Haible  <bruno@clisp.org>
9743
9744         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
9745
9746 2008-10-08  Simon Josefsson  <simon@josefsson.org>
9747
9748         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
9749         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
9750         listen).
9751
9752 2008-10-08  Eric Blake  <ebb9@byu.net>
9753
9754         GNUmakefile: add 'make version' target
9755         * top/GNUmakefile (_curr-ver): Split version update rules...
9756         (version): ...into a target.
9757
9758 2008-10-07  Bruno Haible  <bruno@clisp.org>
9759
9760         Use a more portable replacement expression for -0.0L.
9761         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
9762         instead of -0.0L. Fix m4 quotation.
9763
9764         * tests/test-signbit.c: Include <float.h>.
9765         (minus_zero): New variable.
9766         (test_signbitl): Use minus_zero instead of -zero.
9767         * modules/signbit-tests (Depends-on): Add float.
9768
9769         * tests/test-ceill.c: Include <float.h>.
9770         (zero): Remove variable.
9771         (minus_zero): New variable.
9772         (main): Use minus_zero instead of -zero.
9773         * modules/ceill-tests (Depends-on): Add float.
9774
9775         * tests/test-floorl.c: Include <float.h>.
9776         (zero): Remove variable.
9777         (minus_zero): New variable.
9778         (main): Use minus_zero instead of -zero.
9779         * modules/floorl-tests (Depends-on): Add float.
9780
9781         * tests/test-roundl.c: Include <float.h>.
9782         (zero): Remove variable.
9783         (minus_zero): New variable.
9784         (main): Use minus_zero instead of -zero.
9785         * modules/roundl-tests (Depends-on): Add float.
9786
9787         * tests/test-truncl.c: Include <float.h>.
9788         (zero): Remove variable.
9789         (minus_zero): New variable.
9790         (main): Use minus_zero instead of -zero.
9791         * modules/truncl-tests (Depends-on): Add float.
9792
9793         * tests/test-frexpl.c (zero): Remove variable.
9794         (minus_zero): New variable.
9795         (main): Use minus_zero instead of -zero.
9796         * modules/frexpl-tests (Depends-on): Add float.
9797
9798         * tests/test-isnan.c (zerol): Remove variable.
9799         (minus_zerol): New variable.
9800         (test_long_double): Use minus_zerol instead of -zerol.
9801         * modules/isnan-tests (Depends-on): Add float.
9802
9803         * tests/test-isnanl.h (zero): Remove variable.
9804         (minus_zero): New variable.
9805         (main): Use minus_zero instead of -zero.
9806         * modules/isnanl-nolibm-tests (Depends-on): Add float.
9807         * modules/isnanl-tests (Depends-on): Add float.
9808
9809         * tests/test-ldexpl.c (zero): Remove variable.
9810         (minus_zero): New variable.
9811         (main): Use minus_zero instead of -zero.
9812         * modules/ldexpl-tests (Depends-on): Add float.
9813
9814         * tests/test-snprintf-posix.h (zerol): Remove variable.
9815         (minus_zerol): New variable.
9816         (test_function): Use minus_zerol instead of -zerol.
9817         * modules/snprintf-posix-tests (Depends-on): Add float.
9818         * modules/vsnprintf-posix-tests (Depends-on): Add float.
9819
9820         * tests/test-sprintf-posix.h (zerol): Remove variable.
9821         (minus_zerol): New variable.
9822         (test_function): Use minus_zerol instead of -zerol.
9823         * modules/sprintf-posix-tests (Depends-on): Add float.
9824         * modules/vsprintf-posix-tests (Depends-on): Add float.
9825
9826         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
9827         (minus_zerol): New variable.
9828         (test_function): Use minus_zerol instead of -zerol.
9829         * modules/vasnprintf-posix-tests (Depends-on): Add float.
9830
9831         * tests/test-vasprintf-posix.c (zerol): Remove variable.
9832         (minus_zerol): New variable.
9833         (test_function): Use minus_zerol instead of -zerol.
9834         * modules/vasprintf-posix-tests (Depends-on): Add float.
9835
9836 2008-10-07  Simon Josefsson  <simon@josefsson.org>
9837
9838         * MODULES.html.sh (Support for building documentation): Mention
9839         pmccabe2html.  Sort entries.
9840
9841         Add pmccabe2html module, from gnupdf.
9842         * build-aux/pmccabe.css: New file.
9843         * build-aux/pmccabe2html: New file.
9844         * m4/pmccabe2html.m4: New file.
9845         * modules/pmccabe2html: New file.
9846
9847 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
9848
9849         flock: new module
9850         * MODULES.html.sh: Add to list of modules.
9851         * lib/flock.c: flock implementation for Windows and Unix systems
9852         which have fcntl.
9853         * doc/glibc-functions/flock.texi: Update documentation.
9854         * lib/sys_file.in.h: <sys/file.h> header file.
9855         * m4/flock.m4: M4 macros.
9856         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
9857         * modules/flock: flock module.
9858         * modules/flock-tests: flock tests module.
9859         * modules/sys_file: sys/file.h module.
9860         * tests/test-flock.c: test suite for flock.
9861
9862 2008-10-06  Jim Meyering  <meyering@redhat.com>
9863
9864         bootstrap: check for LT_INIT more portably still ;-)
9865         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
9866         Spotted by Bruno Haible.
9867
9868 2008-10-06  Eric Blake  <ebb9@byu.net>
9869
9870         test-signbit: avoid tripping Irix cc bug on -0.0L
9871         * tests/test-signbit.c (minus_zerol): Delete, and replace with
9872         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
9873         entire testsuite consistent and avoids an Irix 6.2 bug.
9874
9875 2008-10-05  Bruno Haible  <bruno@clisp.org>
9876             Jim Meyering  <jim@meyering.net>
9877
9878         Add an option for ignoring EPIPE during close_stdout.
9879         * lib/closeout.h: Include <stdbool.h>.
9880         (close_stdout_set_ignore_EPIPE): New declaration.
9881         * lib/closeout.c: Include <stdbool.h>.
9882         (ignore_EPIPE): New variable.
9883         (close_stdout_set_ignore_EPIPE): New function.
9884         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
9885         * lib/close-stream.c (close_stream): Mention the possible EPIPE
9886         failure.
9887         * modules/closeout (Depends-on): Add stdbool.
9888
9889 2008-10-05  Bruno Haible  <bruno@clisp.org>
9890
9891         * modules/accept: New file.
9892         * modules/bind: New file.
9893         * modules/connect: New file.
9894         * modules/getpeername: New file.
9895         * modules/getsockname: New file.
9896         * modules/getsockopt: New file.
9897         * modules/listen: New file.
9898         * modules/recv: New file.
9899         * modules/recvfrom: New file.
9900         * modules/send: New file.
9901         * modules/sendto: New file.
9902         * modules/setsockopt: New file.
9903         * modules/socket: New file.
9904         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
9905         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
9906         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
9907         the particular module is requested. Add a link warning when the
9908         particular module is not requested.
9909         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
9910         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
9911         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
9912         the particular module is requested.
9913         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
9914         gl_SYS_SOCKET_H_DEFAULTS): New macros.
9915         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
9916         * modules/sys_socket (Depends-on): Add link-warning.
9917         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
9918         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
9919         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
9920         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
9921         GL_LINK_WARNING.
9922         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
9923         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
9924         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
9925         * doc/posix-functions/getpeername.texi: Mention the new module
9926         'getpeername'.
9927         * doc/posix-functions/getsockname.texi: Mention the new module
9928         'getsockname'.
9929         * doc/posix-functions/getsockopt.texi: Mention the new module
9930         'getsockopt'.
9931         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
9932         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
9933         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
9934         * doc/posix-functions/send.texi: Mention the new module 'send'.
9935         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
9936         * doc/posix-functions/setsockopt.texi: Mention the new module
9937         'setsockopt'.
9938         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
9939         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
9940         listen, connect, accept.
9941         * modules/select-tests (Depends-on): Likewise.
9942
9943 2008-10-05  Bruno Haible  <bruno@clisp.org>
9944
9945         * lib/winsock.c (strerror): Remove unused #undef.
9946         (rpl_close): Remove unused local variable.
9947
9948         * modules/sys_socket (Depends-on); Add errno.
9949
9950 2008-10-05  Bruno Haible  <bruno@clisp.org>
9951
9952         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
9953         (select): Add a link warning when the 'select' module is not used.
9954         * modules/sys_select (Depends-on): Add link-warning.
9955         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
9956         Suggested by Paolo Bonzini.
9957
9958 2008-10-05  Jim Meyering  <meyering@redhat.com>
9959
9960         bootstrap: check for LT_INIT more portably
9961         * build-aux/bootstrap: Avoid using grep -E, since it's not
9962         portable enough.  Suggestion from Bruno Haible.
9963
9964 2008-10-05  Bruno Haible  <bruno@clisp.org>
9965
9966         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
9967         as being fixed by gnulib.
9968
9969 2008-10-05  Bruno Haible  <bruno@clisp.org>
9970
9971         * modules/select-tests: New file, mostly copied from
9972         modules/sys_select-tests.
9973         * tests/test-select.c: New file, mostly copied from
9974         tests/test-sys_select.c.
9975         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
9976         * modules/sys_select-tests (Depends-on): Remove all dependencies.
9977         (Makefile.am): Remove test_sys_select_LDADD.
9978
9979         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
9980         to an undefined symbol, for an error message.
9981         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
9982         (gl_SYS_SELECT_H_DEFAULTS): New macro.
9983         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
9984         winsock-select.c here.
9985         * modules/sys_select (Files): Remove lib/winsock-select.c.
9986         (Depends-on): Remove alloca.
9987         (Makefile.am): Substitute GNULIB_SELECT.
9988         * modules/select: New file.
9989         * doc/posix-functions/select.texi: Update.
9990
9991 2008-10-05  Bruno Haible  <bruno@clisp.org>
9992
9993         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
9994         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
9995         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
9996         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
9997         getdtablesize.
9998         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
9999         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
10000
10001 2008-10-05  Bruno Haible  <bruno@clisp.org>
10002
10003         * modules/getdtablesize-tests: New file.
10004         * tests/test-getdtablesize.c: New file.
10005
10006         New module 'getdtablesize'.
10007         * lib/unistd.in.h (getdtablesize): New declaration.
10008         * lib/getdtablesize.c: New file.
10009         * m4/getdtablesize.m4: New file.
10010         * modules/getdtablesize: New file.
10011         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10012         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
10013         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
10014         HAVE_GETDTABLESIZE.
10015         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
10016
10017 2008-10-05  Bruno Haible  <bruno@clisp.org>
10018
10019         * modules/sched (Makefile.am): Fix typo.
10020         Reported by Simon Josefsson.
10021
10022 2008-10-05  Jim Meyering  <meyering@redhat.com>
10023
10024         bootstrap: check for LT_INIT, too
10025         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
10026         are deprecated.  Suggestion from Ralf Wildenhues.
10027
10028 2008-10-05  Bruno Haible  <bruno@clisp.org>
10029
10030         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
10031         overriding them by ours.
10032         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
10033
10034 2008-10-05  Jim Meyering  <meyering@redhat.com>
10035
10036         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
10037         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
10038         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
10039
10040 2008-10-04  Bruno Haible  <bruno@clisp.org>
10041
10042         * modules/dup2 (License): Change to LGPLv2+.
10043         * modules/sleep (License): Likewise.
10044         * modules/perror (License): Likewise.
10045         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
10046         Blake.
10047         * modules/signal (License): Likewise.
10048         * modules/sigprocmask (License): Likewise.
10049         * modules/raise (License): Change to LGPLv2+, with approval by Jim
10050         Meyering.
10051
10052 2008-10-04  Bruno Haible  <bruno@clisp.org>
10053
10054         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
10055         Reported by Rainer Tammer <tammer@tammer.net>.
10056
10057 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
10058             Bruno Haible  <bruno@clisp.org>
10059
10060         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
10061         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
10062         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
10063
10064 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
10065
10066         filevercmp: new module
10067         * lib/filevercmp.h: New function filevercmp comparing version strings.
10068         * lib/filevercmp.c: Implementation of filevercmp function.
10069         * modules/filevercmp: Module metadata.
10070         * tests/test-filevercmp.c: Unit test for new module.
10071         * modules/filevercmp-tests: Unit test metadata.
10072         * MODULES.html.sh: Add filevercmp module.
10073
10074 2008-10-03  Bruno Haible  <bruno@clisp.org>
10075
10076         * lib/c-ctype.h: Add comment.
10077         Reported by Jim Meyering.
10078
10079 2008-10-02  Bruno Haible  <bruno@clisp.org>
10080
10081         * modules/posix_spawn-internal (Depends-on): Add 'open'.
10082
10083 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
10084
10085         * build-aux/bootstrap: Allow renaming bootstrap, and change the
10086         name of bootstrap.conf accordingly.
10087
10088 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
10089
10090         * build-aux/bootstrap: Install git-merge-changelog configuration
10091         items into .gitconfig if needed.
10092
10093 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
10094
10095         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
10096         git repository, and initialize/update it accordingly.
10097
10098 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
10099
10100         * modules/fsync-tests: New file.
10101         * tests/test-fsync.c: New file.
10102
10103         New module 'fsync'.
10104         * lib/fsync.c: New file.
10105         * m4/fsync.m4: New file.
10106         * modules/fsync: New file.
10107         * lib/unistd.in.h (fsync): New declaration.
10108         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
10109         GNULIB_FSYNC and HAVE_FSYNC.
10110         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
10111         * MODULES.html.sh (posix_functions): Add fsync.
10112         * doc/posix-functions/fsync.texi: Mention the new module.
10113
10114 2008-10-02  Jim Meyering  <meyering@redhat.com>
10115
10116         fts.c: sync with similar code from coreutils' remove.c
10117         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
10118         Guard also with "#if defined __linux__", since for now at least,
10119         this code is Linux-kernel-specific.
10120
10121 2008-10-02  Jim Meyering  <meyering@redhat.com>
10122
10123         fts: bug fixes
10124         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
10125         Include <sys/vfs.h>, not <sys/statfs.h>.
10126
10127         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
10128         Include <sys/vfs.h>, not <sys/statfs.h>.
10129
10130 2008-10-01  Bruno Haible  <bruno@clisp.org>
10131
10132         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
10133         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
10134         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
10135         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
10136         * doc/posix-functions/posix_spawnp.texi: Likewise.
10137         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
10138         whether posix_spawn actually works.
10139         * m4/pipe.m4 (gl_PIPE): Likewise.
10140         * modules/execute (Files): Add m4/posix_spawn.m4.
10141         * modules/pipe (Files): Add m4/posix_spawn.m4.
10142         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
10143
10144 2008-10-01  Jim Meyering  <meyering@redhat.com>
10145
10146         remove trailing spaces
10147         * NEWS: Likewise.
10148         * lib/poll.c (poll): Likewise.
10149         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
10150         * lib/winsock.c (rpl_close): Likewise.
10151         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
10152         * modules/yield: Likewise.
10153         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
10154         * tests/test-sys_select.c (connect_to_socket): Likewise.
10155
10156         fts.c: adjust a new interface to be more generally useful
10157         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
10158         (fts_build): Adjust caller.
10159
10160 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10161
10162         * modules/cond-tests: New file.
10163         * tests/test-cond.c: New file.
10164
10165 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10166             Bruno Haible  <bruno@clisp.org>
10167
10168         * modules/cond (Dependencies): Add errno, time.
10169         * lib/glthread/cond.h: Include <time.h>.
10170         (gl_cond_define, gl_cond_define_initialized): Use the same definition
10171         across platforms.
10172
10173 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10174             Bruno Haible  <bruno@clisp.org>
10175
10176         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
10177
10178 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10179             Bruno Haible  <bruno@clisp.org>
10180
10181         * modules/tls-tests (Depends-on): Add thread, yield.
10182         (configure.ac): Remove all checks.
10183         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
10184         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
10185         gl_thread_self): Remove definitions. Include glthread/thread.h and
10186         glthread/yield.h instead.
10187         (test_tls): Pass an additional NULL argument to gl_thread_join.
10188
10189 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10190             Bruno Haible  <bruno@clisp.org>
10191
10192         * modules/lock-tests (Depends-on): Add thread, yield.
10193         (configure.ac): Remove all checks.
10194         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
10195         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
10196         gl_thread_self): Remove definitions. Include glthread/thread.h and
10197         glthread/yield.h instead.
10198         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
10199         additional NULL argument to gl_thread_join.
10200
10201 2008-09-30  Bruno Haible  <bruno@clisp.org>
10202
10203         Fix the Win32 implementation of the 'thread' module.
10204         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
10205         pointer type.
10206         (gl_thread_self): Invoke gl_thread_self_func.
10207         (gl_thread_self_func): New declaration.
10208         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
10209         (do_init_self_key, init_self_key): New functions.
10210         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
10211         Remove some fields.
10212         (running_threads, running_lock): Remove variables.
10213         (get_current_thread_handle): New function.
10214         (gl_thread_self_func, wrapper_func, glthread_create_func,
10215         glthread_join_func, gl_thread_exit_func): Largely rewritten and
10216         simplified.
10217
10218 2008-09-30  Bruno Haible  <bruno@clisp.org>
10219
10220         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
10221         files.
10222
10223 2008-09-30  Jim Meyering  <meyering@redhat.com>
10224
10225         fts.m4: correct the test for statfs.f_type
10226         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
10227         when checking for statfs.f_type.
10228
10229 2008-09-15  Simon Josefsson  <simon@josefsson.org>
10230
10231         tests: avoid some compiler warnings
10232         * tests/test-memchr.c (main): Pass NULL indirectly.
10233         * tests/test-getdate.c (main): Remove unused variable 'ret'.
10234
10235 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
10236
10237         getdate.y: disallow countable dayshifts like "4 yesterday ago"
10238         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
10239         exactly specified dayshifts.
10240         (dayshift): New rule.
10241         (rel): Add dayshift.
10242         (relative_time_table) [tomorrow, yesterday, today, now]:
10243         Use tDAY_SHIFT in place of tDAY_UNIT.
10244         * tests/test-getdate.c: Add tests for now-disallowed countable
10245         dayshifts, e.g., "4 yesterday ago".
10246
10247 2008-09-29  Bruno Haible  <bruno@clisp.org>
10248
10249         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
10250         * tests/test-posix_spawn1.in.sh: Renamed from
10251         tests/test-posix_spawn.in.sh.
10252         * tests/test-posix_spawn2.c: New file.
10253         * tests/test-posix_spawn2.in.sh: New file.
10254         * modules/posix_spawnp-tests (Files): Update.
10255         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
10256
10257 2008-09-29  Bruno Haible  <bruno@clisp.org>
10258
10259         Propagate effects of putenv/setenv/unsetenv to child processes.
10260         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
10261         * lib/pipe.c (create_pipe): Likewise.
10262
10263 2008-09-29  Bruno Haible  <bruno@clisp.org>
10264
10265         Enable use of shell scripts as executables in mingw.
10266         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
10267         run the program as a shell script.
10268         * lib/pipe.c (create_pipe): Likewise.
10269         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
10270         resulting array.
10271
10272 2008-09-29  Eric Blake  <ebb9@byu.net>
10273
10274         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
10275
10276 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
10277
10278         * doc/posix-functions/accept.texi: Update mingw problems.
10279         * doc/posix-functions/bind.texi: Update mingw problems.
10280         * doc/posix-functions/close.texi: Update mingw problems.
10281         * doc/posix-functions/connect.texi: Update mingw problems.
10282         * doc/posix-functions/getpeername.texi: Update mingw problems.
10283         * doc/posix-functions/getsockname.texi: Update mingw problems.
10284         * doc/posix-functions/getsockopt.texi: Update mingw problems.
10285         * doc/posix-functions/ioctl.texi: Update mingw problems.
10286         * doc/posix-functions/listen.texi: Update mingw problems.
10287         * doc/posix-functions/recv.texi: Update mingw problems.
10288         * doc/posix-functions/recvfrom.texi: Update mingw problems.
10289         * doc/posix-functions/select.texi: Update mingw problems.
10290         * doc/posix-functions/send.texi: Update mingw problems.
10291         * doc/posix-functions/sendto.texi: Update mingw problems.
10292         * doc/posix-functions/setsockopt.texi: Update mingw problems.
10293         * doc/posix-functions/socket.texi: Update mingw problems.
10294
10295 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
10296             Bruno Haible  <bruno@clisp.org>
10297
10298         * lib/sys_select.in.h: Include sys/time.h.
10299         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
10300         * modules/sys_select: Depend on sys_time.
10301         * tests/test-sys_select.c: Test that sys/select.h defines struct
10302         timeval fully.
10303
10304 2008-09-29  Bruno Haible  <bruno@clisp.org>
10305
10306         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
10307         * lib/sys_select.in.h: Likewise.
10308
10309 2008-09-29  Bruno Haible  <bruno@clisp.org>
10310
10311         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
10312
10313 2008-09-29  Bruno Haible  <bruno@clisp.org>
10314
10315         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
10316         Set LIBSOCKET instead of augmenting LIBS.
10317         * modules/sockets (Link): New section.
10318         * modules/sockets-tests (test_sockets_LDADD): New variable.
10319         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
10320         * modules/poll-tests (test_poll_LDADD): New variable.
10321         * NEWS: Document the change.
10322
10323 2008-09-29  Bruno Haible  <bruno@clisp.org>
10324
10325         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
10326         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
10327         ARPA_INET_H directly.
10328         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
10329
10330 2008-09-28  Bruno Haible  <bruno@clisp.org>
10331
10332         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
10333         from gl_HEADER_SYS_SOCKET.
10334         (gl_HEADER_SYS_SOCKET): Invoke it.
10335         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
10336
10337 2008-09-28  Bruno Haible  <bruno@clisp.org>
10338
10339         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
10340         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
10341         Needed on OSF/1 4.0.
10342
10343 2008-09-28  Bruno Haible  <bruno@clisp.org>
10344
10345         Override open more carefully.
10346         * lib/open.c (orig_open): New function.
10347         (rpl_open): Use orig_open instead of open.
10348         * lib/fcntl.in.h: Add special invocation convention.
10349         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
10350         (gl_FUNC_OPEN): Invoke it.
10351
10352         Override freopen more carefully.
10353         * lib/freopen.c (orig_freopen): New function.
10354         (rpl_freopen): Use orig_freopen instead of freopen.
10355         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
10356         (gl_FUNC_FREOPEN): Invoke it.
10357
10358         Override fopen more carefully.
10359         * lib/fopen.c (orig_fopen): New function.
10360         (rpl_fopen): Use orig_fopen instead of fopen.
10361         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
10362         (gl_FUNC_FOPEN): Invoke it.
10363         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
10364
10365 2008-09-28  Bruno Haible  <bruno@clisp.org>
10366
10367         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
10368         SIGPIPE.
10369
10370 2008-09-28  Bruno Haible  <bruno@clisp.org>
10371
10372         * tests/test-sigaction.c (handler, main): Disable the check whether
10373         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
10374         glibc systems with LinuxThreads.
10375
10376 2008-09-28  Bruno Haible  <bruno@clisp.org>
10377
10378         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
10379
10380         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
10381         with AIX xlc.
10382         * lib/fcntl.in.h (open): Likewise.
10383         Reported by Rainer Tammer <tammer@tammer.net>.
10384
10385 2008-09-28  Bruno Haible  <bruno@clisp.org>
10386
10387         * modules/posix_spawnp-tests: New file.
10388         * tests/test-posix_spawn.c: New file.
10389         * tests/test-posix_spawn.in.sh: New file.
10390
10391         New module 'posix_spawnp'.
10392         * modules/posix_spawnp: New file.
10393         * lib/spawnp.c: New file, from GNU libc with modifications.
10394         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
10395
10396         New module 'posix_spawn'.
10397         * modules/posix_spawn: New file.
10398         * lib/spawn.c: New file, from GNU libc with modifications.
10399         * doc/posix-functions/posix_spawn.texi: Mention the new module.
10400
10401         New module 'posix_spawnattr_destroy'.
10402         * modules/posix_spawnattr_destroy: New file.
10403         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
10404         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
10405         module.
10406
10407         New module 'posix_spawnattr_setsigmask'.
10408         * modules/posix_spawnattr_setsigmask: New file.
10409         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
10410         modifications.
10411         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
10412         new module.
10413
10414         New module 'posix_spawnattr_getsigmask'.
10415         * modules/posix_spawnattr_getsigmask: New file.
10416         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
10417         modifications.
10418         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
10419         new module.
10420
10421         New module 'posix_spawnattr_setsigdefault'.
10422         * modules/posix_spawnattr_setsigdefault: New file.
10423         * lib/spawnattr_setdefault.c: New file, from GNU libc with
10424         modifications.
10425         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
10426         new module.
10427
10428         New module 'posix_spawnattr_getsigdefault'.
10429         * modules/posix_spawnattr_getsigdefault: New file.
10430         * lib/spawnattr_getdefault.c: New file, from GNU libc with
10431         modifications.
10432         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
10433         new module.
10434
10435         New module 'posix_spawnattr_setschedpolicy'.
10436         * modules/posix_spawnattr_setschedpolicy: New file.
10437         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
10438         modifications.
10439         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
10440         new module.
10441
10442         New module 'posix_spawnattr_getschedpolicy'.
10443         * modules/posix_spawnattr_getschedpolicy: New file.
10444         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
10445         modifications.
10446         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
10447         new module.
10448
10449         New module 'posix_spawnattr_setschedparam'.
10450         * modules/posix_spawnattr_setschedparam: New file.
10451         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
10452         modifications.
10453         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
10454         new module.
10455
10456         New module 'posix_spawnattr_getschedparam'.
10457         * modules/posix_spawnattr_getschedparam: New file.
10458         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
10459         modifications.
10460         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
10461         new module.
10462
10463         New module 'posix_spawnattr_setpgroup'.
10464         * modules/posix_spawnattr_setpgroup: New file.
10465         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
10466         modifications.
10467         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
10468         module.
10469
10470         New module 'posix_spawnattr_getpgroup'.
10471         * modules/posix_spawnattr_getpgroup: New file.
10472         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
10473         modifications.
10474         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
10475         module.
10476
10477         New module 'posix_spawnattr_setflags'.
10478         * modules/posix_spawnattr_setflags: New file.
10479         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
10480         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
10481         module.
10482
10483         New module 'posix_spawnattr_getflags'.
10484         * modules/posix_spawnattr_getflags: New file.
10485         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
10486         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
10487         module.
10488
10489         New module 'posix_spawnattr_init'.
10490         * modules/posix_spawnattr_init: New file.
10491         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
10492         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
10493         module.
10494
10495         New module 'posix_spawn_file_actions_destroy'.
10496         * modules/posix_spawn_file_actions_destroy: New file.
10497         * lib/spawn_faction_destroy.c: New file, from GNU libc with
10498         modifications.
10499         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
10500         the new module.
10501
10502         New module 'posix_spawn_file_actions_addopen'.
10503         * modules/posix_spawn_file_actions_addopen: New file.
10504         * lib/spawn_faction_addopen.c: New file, from GNU libc with
10505         modifications.
10506         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
10507         the new module.
10508
10509         New module 'posix_spawn_file_actions_adddup2'.
10510         * modules/posix_spawn_file_actions_adddup2: New file.
10511         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
10512         modifications.
10513         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
10514         the new module.
10515
10516         New module 'posix_spawn_file_actions_addclose'.
10517         * modules/posix_spawn_file_actions_addclose: New file.
10518         * lib/spawn_faction_addclose.c: New file, from GNU libc with
10519         modifications.
10520         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
10521         the new module.
10522
10523         New module 'posix_spawn_file_actions_init'.
10524         * modules/posix_spawn_file_actions_init: New file.
10525         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
10526         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
10527         new module.
10528
10529         New module 'posix_spawn-internal'.
10530         * modules/posix_spawn-internal: New file.
10531         * lib/spawn_int.h: New file, from GNU libc with modifications.
10532         * lib/spawni.c: New file, from GNU libc with modifications.
10533         * m4/posix_spawn.m4: New file.
10534
10535         New module 'spawn'.
10536         * modules/spawn: New file.
10537         * lib/spawn.in.h: New file, from GNU libc with modifications.
10538         * m4/spawn_h.m4: New file.
10539         * doc/posix-headers/spawn.texi: Mention the new module.
10540
10541 2008-09-28  Bruno Haible  <bruno@clisp.org>
10542
10543         * modules/sched-tests: New file.
10544         * tests/test-sched.c: New file.
10545
10546         New module 'sched'.
10547         * modules/sched: New file.
10548         * lib/sched.in.h: New file.
10549         * m4/sched_h.m4: New file.
10550         * doc/posix-headers/sched.texi: Mention the new module.
10551
10552 2008-09-27  Eric Blake  <ebb9@byu.net>
10553
10554         Fix previous patch, and tweak references to $0.
10555         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
10556         (func_version, func_gnulib_dir): Don't call this program
10557         gnulib-tool.
10558         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
10559         with using $0 in function.
10560         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
10561         (func_fatal_error): Reuse the name the user invoked us with.
10562
10563 2008-09-27  Bruno Haible  <bruno@clisp.org>
10564
10565         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
10566         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
10567         (gl_ICONV_H): Not here.
10568         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
10569         instead of assigning ICONV_H directly.
10570
10571         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
10572         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
10573         WCHAR_H directly.
10574
10575 2008-09-27  Bruno Haible  <bruno@clisp.org>
10576
10577         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
10578         * modules/arpa_inet (Depends-on): Add link-warning.
10579         (Makefile.am): Insert the definition of GL_LINK-WARNING.
10580         * modules/unistd (Makefile.am): Likewise.
10581
10582 2008-09-26  Bruno Haible  <bruno@clisp.org>
10583
10584         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
10585         variables.
10586         (func_version): Essentially copied from gnulib-tool.
10587         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
10588         func_readlink): Copied from gnulib-tool.
10589
10590 2008-09-26  Bruno Haible  <bruno@clisp.org>
10591
10592         * gnulib-tool (func_version): Change directory to $gnulib_dir before
10593         invoking git-version-gen.
10594
10595 2008-09-26  Bruno Haible  <bruno@clisp.org>
10596
10597         * posix-modules: Update to directory names changed on 2008-01-19.
10598         Remove commas in output before splitting into words. No more need to
10599         avoid 'ftruncate' since 2007-02-19.
10600
10601 2008-09-26  Bruno Haible  <bruno@clisp.org>
10602
10603         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
10604
10605 2008-09-26  Bruno Haible  <bruno@clisp.org>
10606
10607         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
10608         * modules/fwriteerror (Depends-on): Add errno.
10609
10610 2008-09-26  Bruno Haible  <bruno@clisp.org>
10611
10612         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
10613         * tests/test-vc-list-files-cvs.sh: Likewise.
10614
10615 2008-09-26  Bruno Haible  <bruno@clisp.org>
10616
10617         * doc/posix-headers/sys_resource.texi: Reorder items.
10618
10619 2008-09-26  Jim Meyering  <meyering@redhat.com>
10620
10621         fts: tweak inode comparison function
10622         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
10623         inode numbers, as documented.
10624
10625         fts: sort dirent entries on inode number before traversing
10626         This avoids a quadratic, seek-related performance penalty when
10627         operating on a directory containing many entries (measurable at 10k;
10628         3.5 hours at 2 million entries with a cold cache) on certain types
10629         of file systems, including ext3 and ext4, but not tmpfs.
10630         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
10631         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
10632         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
10633         (fs_handles_readdir_ordered_dirents_efficiently): New function.
10634         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
10635         (fts_build): Set the stat.st_ino member from D_INO.
10636         If it is likely to be useful, sort dirent entries on inode number.
10637
10638         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
10639         and the struct statfs.f_type member.
10640         * modules/fts (Depends-on): Add d-ino.
10641
10642 2008-09-26  Bruno Haible  <bruno@clisp.org>
10643
10644         * modules/sigpipe-die (Depends-on): Add sigpipe.
10645
10646         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
10647         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
10648         and GNULIB_STDIO_H_SIGPIPE are set.
10649         * lib/stdio-write.c: New file.
10650         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
10651         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
10652         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
10653         REPLACE_STDIO_WRITE_FUNCS.
10654         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
10655         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
10656         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
10657         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
10658         * modules/stdio (Files): Add lib/stdio-write.c.
10659         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
10660         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
10661         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
10662         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
10663         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
10664         REPLACE_FPRINTF_POSIX.
10665         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
10666         REPLACE_PRINTF_POSIX.
10667         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
10668         REPLACE_VFPRINTF_POSIX.
10669         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
10670         REPLACE_VPRINTF_POSIX.
10671         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
10672         SIGPIPE issue.
10673         * doc/posix-functions/fputc.texi: Likewise.
10674         * doc/posix-functions/fputs.texi: Likewise.
10675         * doc/posix-functions/fwrite.texi: Likewise.
10676         * doc/posix-functions/printf.texi: Likewise.
10677         * doc/posix-functions/putc.texi: Likewise.
10678         * doc/posix-functions/putchar.texi: Likewise.
10679         * doc/posix-functions/puts.texi: Likewise.
10680         * doc/posix-functions/vfprintf.texi: Likewise.
10681         * doc/posix-functions/vprintf.texi: Likewise.
10682
10683         * modules/safe-write (Depends-on): Add write.
10684
10685         * modules/sigpipe-tests: New file.
10686         * tests/test-sigpipe.c: New file.
10687         * tests/test-sigpipe.sh: New file.
10688
10689         * modules/write: New file.
10690         * lib/unistd.in.h: Include <sys/types.h>.
10691         (write): New declaration.
10692         * lib/write.c: New file.
10693         * m4/write.m4: New file.
10694         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
10695         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
10696         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
10697         GNULIB_WRITE, REPLACE_WRITE.
10698         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
10699         and the SIGPIPE issue.
10700
10701         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
10702         (raise): New declaration.
10703         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
10704         (ext_signal): New function.
10705         (rpl_raise): New function.
10706         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
10707         GNULIB_SIGNAL_H_SIGPIPE.
10708         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
10709         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
10710
10711         * modules/sigpipe: New file.
10712         * m4/sigpipe.m4: New file.
10713
10714 2008-09-25  Derek Price  <derek@ximbiot.com>
10715             Bruno Haible  <bruno@clisp.org>
10716
10717         * gnulib-tool (func_import): Report all license incompatibilities, not
10718         just the first one.
10719
10720 2008-09-25  Bruno Haible  <bruno@clisp.org>
10721
10722         * gnulib-tool (func_import): When computing the edits, consider not
10723         only the Makefile.ams that exist but also those that will be generated.
10724
10725 2008-09-25  Simon Josefsson  <simon@josefsson.org>
10726
10727         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
10728         fixes gnulib-tool --test warning about duplicate dependency.
10729
10730 2008-09-25  Bruno Haible  <bruno@clisp.org>
10731
10732         * gnulib-tool: Don't ask the user to perform edits in the generated
10733         Makefile.ams.
10734         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
10735         apply to the Makefile.am being generated.
10736         (func_emit_tests_Makefile_am): Execute edits that apply to the
10737         Makefile.am being generated.
10738         (func_import): Setup list of Makefile.am edits before emitting the
10739         Makefile.ams, not at the end.
10740         (func_create_testdir): Update.
10741         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
10742
10743 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10744
10745         * gnulib-tool (func_import): Store the --tests-base option in the
10746         comment in gnulib-cache.m4.
10747
10748 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
10749
10750         * NEWS: Document increased portability that sys_select now provides.
10751
10752         * lib/sys_select.in.h: Install select wrapper.
10753         * lib/sys_socket.in.h: Use more descriptive name when there is no
10754         select wrapper.
10755         * lib/winsock-select.c: New.
10756         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
10757         Require gl_HEADER_SYS_SOCKET.
10758         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
10759         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
10760         * tests/test-sys_select.c: Add functional tests.
10761
10762 2008-09-24  Eric Blake  <ebb9@byu.net>
10763
10764         open, fopen: close fd leak in last patch
10765         * lib/open.c (rpl_open): Close fd before returning error.
10766         * lib/fopen.c (rpl_fopen): Close fd before returning error.
10767         * doc/posix-functions/open.texi (open): Document that Irix also
10768         has the bug.
10769         * doc/posix-functions/fopen.texi (fopen): Likewise.
10770         Reported by Paolo Bonzini.
10771
10772 2008-09-24  Bruno Haible  <bruno@clisp.org>
10773
10774         Ensure that a filename ending in a slash cannot be used to access a
10775         non-directory.
10776         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
10777         to check whether it's really a directory.
10778         * lib/fopen.c: Include fcntl.h, unistd.h.
10779         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
10780         and fdopen().
10781         * modules/fopen (Depends-on): Add unistd.
10782         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
10783         * tests/test-fopen.c (main): Likewise.
10784         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
10785         * doc/posix-functions/fopen.texi: Likewise.
10786         Reported by Eric Blake.
10787
10788 2008-09-23  Eric Blake  <ebb9@byu.net>
10789
10790         c-stack: avoid compiler optimizations when provoking overflow
10791         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
10792         recursion harder to optimize, to ensure a stack overflow occurs.
10793         * tests/test-c-stack.c (recurse): Likewise.
10794         Borrowed from libsigsegv.
10795
10796         c-stack: work around Irix sigaltstack bug
10797         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
10798         whether sigaltstack uses wrong end of stack_t (copied in part from
10799         libsigsegv).
10800         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
10801         Irix bug, without requiring an over-allocation.
10802         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
10803         bug.
10804
10805         fopen: document mingw bug on directories
10806         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
10807         not allowing a stream visiting a directory, even though reading
10808         from such a stream is not portable.
10809
10810 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
10811
10812         * lib/poll.c: Rewrite.
10813         * modules/poll: Depend on alloca.
10814
10815 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
10816
10817         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
10818         instead define prototypes for a full set of wrappers.  Ensure
10819         that Cygwin does not use the compatibility code, which is only
10820         for MinGW.
10821         * lib/winsock.c: New.
10822         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
10823         * modules/sys_socket: Add lib/winsock.c.
10824
10825         * modules/poll-tests: Add errno and perror.
10826         * tests/test-poll.c: Use ioctl, not ioctlsocket.
10827
10828 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
10829
10830         * tests/test-poll.c: Downgrade minimum needed Winsock version.
10831
10832 2008-09-23  Bruno Haible  <bruno@clisp.org>
10833
10834         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
10835         * doc/glibc-functions/*: Likewise.
10836
10837 2008-09-23  Simon Josefsson  <simon@josefsson.org>
10838
10839         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
10840         success.
10841
10842 2008-09-22  Eric Blake  <ebb9@byu.net>
10843             Bruno Haible  <bruno@clisp.org>
10844
10845         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
10846         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
10847         supply %A but mishandle pseudo-NaN.
10848         Reported by Simon Josefsson.
10849
10850 2008-09-21  Bruno Haible  <bruno@clisp.org>
10851
10852         * tests/test-lock.c (main): Tweak skip message.
10853         * tests/test-tls.c (main): Likewise.
10854
10855 2008-09-21  Bruno Haible  <bruno@clisp.org>
10856
10857         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
10858         whether 'struct sigaction' has sa_sigaction here...
10859         (gl_PREREQ_SIG_HANDLER_H): ... not here.
10860         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
10861
10862 2008-09-21  Bruno Haible  <bruno@clisp.org>
10863
10864         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
10865         section.
10866         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
10867         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
10868         the new section.
10869         (Support for obsolete systems lacking POSIX:2001): New section.
10870         (String handling <string.h>): Move strdup to the new section.
10871         Suggested by Simon Josefsson and Paolo Bonzini.
10872
10873 2008-09-21  Bruno Haible  <bruno@clisp.org>
10874
10875         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
10876         exponents in %e and %g results on 'long double'. Needed for mingw's
10877         improved *printf functions.
10878         * tests/test-vasprintf-posix.c (test_function): Likewise.
10879         * tests/test-snprintf-posix.h (test_function): Likewise.
10880         * tests/test-sprintf-posix.h (test_function): Likewise.
10881         Reported by Eric Blake.
10882
10883 2008-09-21  Bruno Haible  <bruno@clisp.org>
10884
10885         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
10886         * tests/test-sprintf-posix.h (test_function): Likewise.
10887
10888 2008-09-21  Bruno Haible  <bruno@clisp.org>
10889
10890         * modules/getpass (Depends-on): Add strdup-posix.
10891
10892         New module 'strdup-posix'.
10893         * modules/strdup-posix: New file.
10894         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
10895         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
10896         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
10897         REPLACE_STRDUP.
10898         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
10899         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
10900         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
10901         strdup-posix.
10902
10903         * modules/strdup (Depends-on): Remove malloc-posix.
10904
10905 2008-09-20  Bruno Haible  <bruno@clisp.org>
10906
10907         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
10908         Wildenhues.
10909
10910 2008-09-20  Bruno Haible  <bruno@clisp.org>
10911
10912         Ensure that wint_t gets defined on IRIX 5.3.
10913         * lib/wchar.in.h (wint_t): Define if not defined by the system.
10914         * lib/wctype.in.h (wint_t): Likewise.
10915         (__wctype_wint_t): Remove type.
10916         (isw*): Use wint_t instead of __wctype_wint_t.
10917         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
10918         * modules/wchar (Files): Add m4/wint_t.m4.
10919         (Makefile.am): Substitute HAVE_WINT_T.
10920         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
10921         * tests/test-wctype.c: Check that wint_t is defined.
10922         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
10923         * doc/posix-headers/wctype.texi: Likewise.
10924         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10925
10926 2008-09-18  Bruno Haible  <bruno@clisp.org>
10927
10928         * gnulib-tool (func_exit): Update comment.
10929
10930 2008-09-18  Simon Josefsson  <simon@josefsson.org>
10931
10932         * modules/getaddrinfo (Depends-on): Remove strdup, this module
10933         assumes strdup exists and does not depend on strdup to return
10934         ENOMEM on out of memory conditions.
10935
10936 2008-09-18  Bruno Haible  <bruno@clisp.org>
10937
10938         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
10939         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
10940         digits for the exponent.
10941
10942 2008-09-18  Jim Meyering  <meyering@redhat.com>
10943             Bruno Haible  <bruno@clisp.org>
10944
10945         * lib/vasnprintf.c (decimal_point_char): Define also if
10946         NEED_PRINTF_INFINITE_LONG_DOUBLE.
10947
10948 2008-09-16  Bruno Haible  <bruno@clisp.org>
10949         and Eric Blake  <ebb9@byu.net>
10950
10951         vasnprintf: support Irix 5.3
10952         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
10953         that mishandle long double infinity.
10954         Reported by Tom G. Christensen.
10955
10956 2008-09-16  Bruno Haible  <bruno@clisp.org>
10957
10958         * doc/glibc-functions/scandir.texi: Mention the function is missing on
10959         Solaris 9.
10960         * doc/glibc-functions/alphasort.texi: Likewise.
10961         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
10962
10963 2008-09-16  Jim Meyering  <meyering@redhat.com>
10964
10965         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
10966         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
10967         a umask modification leak out of a subshell.  Otherwise, the
10968         opensolaris /bin/sh would be accepted and thus cause unwarranted
10969         failures in the coreutils test suite.
10970
10971 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
10972
10973         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
10974         to succeed.
10975
10976 2008-09-16  Jim Meyering  <meyering@redhat.com>
10977
10978         avoid spurious test failure when library is built without ACL support
10979         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
10980         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
10981         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
10982         * tests/test-copy-acl.sh: Likewise.
10983
10984 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10985
10986         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
10987         based on character occurrence counts.
10988
10989 2008-09-15  Eric Blake  <ebb9@byu.net>
10990
10991         tests: avoid some compiler warnings
10992         * tests/test-memchr.c (main): Pass NULL indirectly.
10993         * tests/test-closein.c (main): Avoid unused variable.
10994
10995 2008-09-15  Bruno Haible  <bruno@clisp.org>
10996
10997         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
10998         are missing on OpenBSD 4.0 individually.
10999         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
11000
11001 2008-09-15  Bruno Haible  <bruno@clisp.org>
11002
11003         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
11004         * doc/posix-functions/strerror.texi: Mention also Cygwin.
11005         * doc/posix-functions/perror.texi: Likewise.
11006         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
11007         is missing.
11008         Reported by Eric Blake.
11009
11010         * lib/errno.in.h: Use replacement values >= 2000.
11011         Reported by Eric Blake.
11012
11013 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11014
11015         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
11016         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
11017         limit.
11018         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
11019         compareseq was aborted.
11020
11021 2008-09-14  Bruno Haible  <bruno@clisp.org>
11022
11023         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
11024         yvec_edit_count.
11025         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
11026         (fstrcmp_bounded): Simplify result computation accordingly.
11027
11028 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11029
11030         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
11031         (fstrcmp): Define in terms of fstrcmp_bounded.
11032         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
11033         lower_bound argument.
11034         Return quickly if the result is certainly < lower_bound.
11035         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
11036
11037 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11038
11039         * lib/diffseq.h (EARLY_ABORT): New macro.
11040         (compareseq): Change return type to bool. Return true when EARLY_ABORT
11041         evaluates to true.
11042
11043 2008-09-14  Bruno Haible  <bruno@clisp.org>
11044
11045         * modules/perror-tests: New file.
11046         * tests/test-perror.sh: New file.
11047         * tests/test-perror.c: New file.
11048
11049         New module 'perror'.
11050         * lib/stdio.in.h (perror): New declaration.
11051         * lib/perror.c: New file.
11052         * m4/perror.m4: New file.
11053         * modules/perror: New file.
11054         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
11055         * doc/posix-functions/perror.texi: Mention the perror module.
11056         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
11057         REPLACE_PERROR.
11058         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
11059         REPLACE_PERROR.
11060
11061 2008-09-14  Bruno Haible  <bruno@clisp.org>
11062
11063         * modules/stdio (Makefile.am): Reorder to match the order in
11064         lib/stdio.in.h.
11065         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
11066
11067 2008-09-13  Bruno Haible  <bruno@clisp.org>
11068
11069         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
11070
11071 2008-09-13  Bruno Haible  <bruno@clisp.org>
11072
11073         Extend strerror to cover the added errno values.
11074         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
11075         (rpl_strerror): Provide error messages for the added errno values and
11076         for the WSA* values.
11077         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
11078         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
11079         strerror.
11080         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
11081         * modules/strerror (Depends-on): Add errno.
11082         * doc/posix-functions/strerror.texi: Document the change.
11083         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
11084         and EOVERFLOW.
11085
11086 2008-09-13  Bruno Haible  <bruno@clisp.org>
11087
11088         * modules/EOVERFLOW: Remove file.
11089         * m4/eoverflow.m4: Remove file.
11090         * modules/EOVERFLOW-tests: Remove file.
11091         * tests/test-EOVERFLOW.c: Remove file.
11092         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
11093         * modules/ftell (Depends-on): Likewise.
11094         * modules/getdelim (Depends-on): Likewise.
11095         * modules/getugroups (Depends-on): Likewise.
11096         * modules/poll (Depends-on): Likewise.
11097         * modules/snprintf (Depends-on): Likewise.
11098         * modules/sprintf-posix (Depends-on): Likewise.
11099         * modules/vasnprintf (Depends-on): Likewise.
11100         * modules/vasprintf (Depends-on): Likewise.
11101         * modules/vfprintf-posix (Depends-on): Likewise.
11102         * modules/vsnprintf (Depends-on): Likewise.
11103         * modules/vsprintf-posix (Depends-on): Likewise.
11104         * modules/xvasprintf (Depends-on): Likewise.
11105         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
11106         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
11107         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
11108         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
11109         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
11110         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
11111         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
11112         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
11113         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
11114         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
11115         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
11116         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
11117         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
11118         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
11119         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
11120         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
11121         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
11122         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
11123         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
11124         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
11125         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
11126         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
11127         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
11128         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
11129         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
11130         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
11131         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
11132         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
11133         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
11134         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
11135         * MODULES.html.sh: Remove EOVERFLOW.
11136         * NEWS: Mention the change.
11137
11138 2008-09-13  Bruno Haible  <bruno@clisp.org>
11139
11140         * modules/errno-tests: New file.
11141         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
11142
11143         * lib/errno.in.h: New file.
11144         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
11145         * modules/errno: New file.
11146         * doc/posix-headers/errno.texi: Update documentation.
11147         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
11148
11149 2008-09-13  Bruno Haible  <bruno@clisp.org>
11150
11151         * tests/test-poll.c: Use #if for native Windows, rather than testing
11152         __MSVCRT__.
11153
11154 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11155             Bruno Haible  <bruno@clisp.org>
11156
11157         * lib/glob.c: Don't include <pwd.h> on native Windows.
11158         (WINDOWS32): New macro.
11159         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
11160
11161 2008-09-13  Bruno Haible  <bruno@clisp.org>
11162
11163         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
11164         (ETIMEDOUT): Remove macro.
11165         (glthread_cond_timedwait_multithreaded): New declaration.
11166         (glthread_cond_timedwait): Use it.
11167         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
11168         (glthread_cond_timedwait_multithreaded): New function.
11169
11170 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
11171
11172         * modules/poll-tests: Do not check for io.h.
11173         * tests/test-poll.c: Check for __MSVCRT__ instead.
11174
11175 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
11176
11177         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
11178         * modules/poll-tests: Add inet_pton, stdbool, sockets.
11179         * tests/test-poll.c: Use them.  Use _pipe on Windows.
11180
11181 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
11182
11183         * modules/poll-tests: New.
11184         * tests/test-poll.c: New.
11185
11186 2008-09-12  Eric Blake  <ebb9@byu.net>
11187
11188         frexp: test for NetBSD failure on -0.0
11189         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
11190         not all, bugs from NetBSD 3.0 have been fixed.
11191         * doc/posix-functions/frexp.texi (frexp): Document bug.
11192         Reported by Thomas Klausner.
11193
11194         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
11195         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
11196         literal -0.0.
11197         Reported by Jonathan C. Patschke <jp@centtech.com>.
11198
11199 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11200
11201         * lib/glthread/cond.h: Use dummy implementation also if
11202         USE_WIN32_THREADS.
11203
11204 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11205
11206         * modules/fnmatch-posix (License): Change to LGPLv2+.
11207         * modules/fnmatch-gnu (License): Likewise.
11208
11209 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11210
11211         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
11212
11213 2008-09-11  Jim Meyering  <meyering@redhat.com>
11214
11215         * users.txt: Add gtk-vnc.
11216
11217 2008-09-08  Simon Josefsson  <simon@josefsson.org>
11218
11219         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
11220         rotate amounts.
11221
11222         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
11223         required for 16-bit and 8-bit rotates.
11224         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
11225         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
11226         UINT8_MAX instead of hard-coded constants.
11227         Suggested by Paul Eggert.
11228
11229 2008-09-07  Bruno Haible  <bruno@clisp.org>
11230
11231         * tests/test-striconveh.c (main): Check behaviour when converting from
11232         UTF-7.
11233
11234         Make striconveh work better with stateful encodings.
11235         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
11236         that iconv does not increment the inptr when returning -1/EINVAL.
11237
11238 2008-09-07  Bruno Haible  <bruno@clisp.org>
11239
11240         * build-aux/config.rpath: Update according to libtool-2.2.6.
11241         * build-aux/config.libpath: Likewise.
11242
11243 2008-09-06  Bruno Haible  <bruno@clisp.org>
11244
11245         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
11246         * lib/freadptr.c (freadptr): Likewise.
11247         * lib/freadseek.c (freadptrinc): Likewise.
11248         Reported by Simon Josefsson.
11249
11250 2008-09-06  Bruno Haible  <bruno@clisp.org>
11251
11252         * modules/freadptr (License): Change to LGPLv2+.
11253         * modules/freadseek (License): Likewise.
11254         Suggested by Eric Blake.
11255
11256         * modules/memchr2 (License): Change to LGPLv2+.
11257         Approved by Eric Blake.
11258
11259 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11260             Bruno Haible  <bruno@clisp.org>
11261
11262         Make gnulib-tool work with native 'sed' on AIX.
11263         * gnulib-tool (sed_noop): New variable.
11264         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
11265         func_add_or_update, func_create_testdir): Use it to initialize sed
11266         script variables.
11267         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
11268
11269 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
11270             Bruno Haible  <bruno@clisp.org>
11271
11272         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
11273         also works after #include directives.
11274
11275 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
11276
11277         getdate.y: reject an out-of-range timezone value
11278         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
11279         the range [-24...+24].  When specified with only one or two digits,
11280         * tests/test-getdate.c: Tests for the fix.
11281         * doc/getdate.texi: Document this change.
11282
11283 2008-09-03  Bruno Haible  <bruno@clisp.org>
11284
11285         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
11286
11287 2008-09-02  Simon Josefsson  <simon@josefsson.org>
11288
11289         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
11290         <bruce.korb@gmail.com> with ideas from Ben Pfaff
11291         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
11292         Blake <ebb9@byu.net>.
11293
11294         * tests/test-bitrotate.c: Add more test vectors.
11295
11296 2008-09-02  Eric Blake  <ebb9@byu.net>
11297
11298         vasnprintf-posix: handle large precision via %.*d
11299         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
11300         when handling it ourselves.
11301         * tests/test-vasnprintf-posix.c (test_function): Add test.
11302         * tests/test-snprintf-posix.h (test_function): Likewise.
11303         * tests/test-sprintf-posix.h (test_function): Likewise.
11304         * tests/test-vasprintf-posix.c (test_function): Likewise.
11305         Reported by Alain Guibert.
11306
11307 2008-09-01  Eric Blake  <ebb9@byu.net>
11308
11309         c-stack: make configure-time check more robust
11310         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
11311         successful sigaction call.
11312         Reported by Tom G. Christensen.
11313
11314 2008-09-01  Bruno Haible  <bruno@clisp.org>
11315
11316         New module 'findprog-lgpl'.
11317         * modules/findprog-lgpl: New file.
11318         * lib/findprog-lgpl.c: New file.
11319         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
11320         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
11321         to decide whether to use strdup or xstrdup, concatenated_filename or
11322         xconcatenated_filename.
11323
11324 2008-09-01  Bruno Haible  <bruno@clisp.org>
11325
11326         Split module 'concat-filename' into 'concat-filename' (LGPL) and
11327         'xconcat-filename' (GPL).
11328         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
11329         (License): Change to LGPLv2+.
11330         * modules/xconcat-filename: New file.
11331         * lib/concat-filename.h (concatenated_filename): Change specification.
11332         (xconcatenated_filename): New declaration.
11333         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
11334         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
11335         memory situations.
11336         * lib/xconcat-filename.c: New file.
11337         * NEWS: Mention the change.
11338         * lib/findprog.c: Include concat-filename.h, not filename.h.
11339         (find_in_path): Use xconcatenated_filename instead of
11340         concatenated_filename.
11341         * lib/javacomp.c: Include concat-filename.h, not filename.h.
11342         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
11343         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
11344         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
11345         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
11346         instead of concatenated_filename.
11347         * lib/javaexec.c: Include concat-filename.h, not filename.h.
11348         (execute_java_class): Use xconcatenated_filename instead of
11349         concatenated_filename.
11350         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
11351         * modules/javacomp (Depends-on): Likewise.
11352         * modules/javaexec (Depends-on): Likewise.
11353
11354 2008-09-01  Bruno Haible  <bruno@clisp.org>
11355
11356         Split module 'filename' into 'filename' and 'concat-filename'.
11357         * modules/filename: Keep only lib/filename.h.
11358         (License): Change to LGPLv2+.
11359         * modules/concat-filename: New file, extracted from modules/filename.
11360         * lib/filename.h (concatenated_filename): Remove declaration.
11361         * lib/concat-filename.h: New file, extracted from lib/filename.h.
11362         * lib/concat-filename.c: Include concat-filename.h.
11363         * NEWS: Mention the change.
11364
11365 2008-09-01  Simon Josefsson  <simon@josefsson.org>
11366
11367         * lib/bitrotate.h (rotl8, rotr8): Add.
11368
11369         * modules/bitrotate (configure.ac): Need
11370         AC_REQUIRE([AC_C_INLINE]).
11371         (Description): Mention stdint.h.  Reported by Bruno Haible
11372         <bruno@clisp.org>.
11373
11374         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
11375         Paolo Bonzini <bonzini@gnu.org>.
11376
11377 2008-08-31  Bruno Haible  <bruno@clisp.org>
11378
11379         Assume Solaris specific bi-arch conventions on Solaris systems.
11380         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
11381         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
11382         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
11383         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
11384         like acl_libdirstem.
11385         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
11386         acl_libdirstem.
11387         * NEWS: Mention the change.
11388         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
11389
11390 2008-08-31  Jim Meyering  <meyering@redhat.com>
11391
11392         * lib/strftime.h: Add comments describing the two added arguments.
11393
11394         remove duplicate #include directives
11395         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
11396         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
11397
11398 2008-08-31  Bruno Haible  <bruno@clisp.org>
11399
11400         New module 'sigpipe-die'.
11401         * modules/sigpipe-die: New file.
11402         * lib/sigpipe-die.h: New file.
11403         * lib/sigpipe-die.c: New file.
11404         * MODULES.html.sh (Signal handling): Add sigpipe-die.
11405
11406 2008-08-31  Bruno Haible  <bruno@clisp.org>
11407
11408         Don't override previously installed signal handlers.
11409         * lib/fatal-signal.c (saved_sigactions): New variable.
11410         (uninstall_handlers): Reset the signal to the saved handler, not
11411         to SIG_DFL (except when ignored).
11412         (install_handlers): Save the previous handlers.
11413
11414 2008-08-30  Bruno Haible  <bruno@clisp.org>
11415
11416         * gnulib-tool (func_reset_sigpipe): New function.
11417         (func_get_automake_snippet, func_modules_transitive_closure,
11418         func_import): Invoke it before a join command that reads from stdin,
11419         to avoid "echo: write error: Broken pipe" error messages on stderr.
11420         Reported by Sam Steingold <sds@gnu.org>.
11421
11422 2008-08-30  Bruno Haible  <bruno@clisp.org>
11423
11424         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
11425         Code copied from m4/open.m4.
11426         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
11427         access and the filename ends in a slash. Code copied from lib/open.c.
11428         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
11429         * tests/test-fopen.c (main): Check against bug with trailing slash.
11430
11431 2008-08-29  Bruno Haible  <bruno@clisp.org>
11432
11433         Avoid some "gcc -pedantic" warnings.
11434         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
11435         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
11436         * lib/dirent.in.h: Likewise.
11437         * lib/fcntl.in.h: Likewise.
11438         * lib/float.in.h: Likewise.
11439         * lib/iconv.in.h: Likewise.
11440         * lib/inttypes.in.h: Likewise.
11441         * lib/locale.in.h: Likewise.
11442         * lib/math.in.h: Likewise.
11443         * lib/netinet_in.in.h: Likewise.
11444         * lib/search.in.h: Likewise.
11445         * lib/signal.in.h: Likewise.
11446         * lib/stdarg.in.h: Likewise.
11447         * lib/stdint.in.h: Likewise.
11448         * lib/stdio.in.h: Likewise.
11449         * lib/stdlib.in.h: Likewise.
11450         * lib/string.in.h: Likewise.
11451         * lib/strings.in.h: Likewise.
11452         * lib/sys_select.in.h: Likewise.
11453         * lib/sys_socket.in.h: Likewise.
11454         * lib/sys_stat.in.h: Likewise.
11455         * lib/sys_time.in.h: Likewise.
11456         * lib/sysexits.in.h: Likewise.
11457         * lib/time.in.h: Likewise.
11458         * lib/unistd.in.h: Likewise.
11459         * lib/wchar.in.h: Likewise.
11460         * lib/wctype.in.h: Likewise.
11461         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
11462         * modules/fchdir (Makefile.am): Likewise.
11463         * modules/fcntl (Makefile.am): Likewise.
11464         * modules/float (Makefile.am): Likewise.
11465         * modules/iconv_open (Makefile.am): Likewise.
11466         * modules/inttypes (Makefile.am): Likewise.
11467         * modules/locale (Makefile.am): Likewise.
11468         * modules/math (Makefile.am): Likewise.
11469         * modules/netinet_in (Makefile.am): Likewise.
11470         * modules/search (Makefile.am): Likewise.
11471         * modules/signal (Makefile.am): Likewise.
11472         * modules/stdarg (Makefile.am): Likewise.
11473         * modules/stdint (Makefile.am): Likewise.
11474         * modules/stdio (Makefile.am): Likewise.
11475         * modules/stdlib (Makefile.am): Likewise.
11476         * modules/string (Makefile.am): Likewise.
11477         * modules/strings (Makefile.am): Likewise.
11478         * modules/sys_select (Makefile.am): Likewise.
11479         * modules/sys_socket (Makefile.am): Likewise.
11480         * modules/sys_stat (Makefile.am): Likewise.
11481         * modules/sys_time (Makefile.am): Likewise.
11482         * modules/sysexits (Makefile.am): Likewise.
11483         * modules/time (Makefile.am): Likewise.
11484         * modules/unistd (Makefile.am): Likewise.
11485         * modules/wchar (Makefile.am): Likewise.
11486         * modules/wctype (Makefile.am): Likewise.
11487         Reported by Reuben Thomas <rrt@sc3d.org>.
11488
11489 2008-08-29  Bruno Haible  <bruno@clisp.org>
11490
11491         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
11492         any more.
11493
11494 2008-08-29  Simon Josefsson  <simon@josefsson.org>
11495
11496         * MODULES.html.sh (Misc): Add bitrotate.
11497
11498         * modules/bitrotate: New file.
11499
11500         * lib/bitrotate.h: New file.
11501
11502         * modules/bitrotate-tests: New file.
11503
11504         * tests/test-bitrotate.c: New file.
11505
11506         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
11507         on the bitrotate module.
11508
11509         * lib/arctwo.c: Use new bitrotate module.
11510
11511 2008-08-29  Jim Meyering  <meyering@redhat.com>
11512
11513         bootstrap: merge changes from coreutils
11514         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
11515         of copied files.  Remove a kludge, now that this is fixed.
11516         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
11517         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
11518         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
11519
11520 2008-08-29  Bruno Haible  <bruno@clisp.org>
11521
11522         * MODULES.html.sh: Remove --cvs-urls option.
11523
11524 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
11525
11526         maint.mk: adjust to file name change
11527         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
11528
11529 2008-08-28  Jim Meyering  <meyering@redhat.com>
11530
11531         * modules/getndelim2 (License): Relicense to LGPLv2+.
11532         Approved by Richard Stallman for the version of 1995, and by
11533         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
11534
11535 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
11536
11537         * lib/getdelim.c (flockfile, funlockfile): Make all of them
11538         dummy if one is not available.  Do not touch them if
11539         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
11540         (getc_maybe_unlocked): New.
11541         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
11542
11543 2008-08-26  Eric Blake  <ebb9@byu.net>
11544
11545         doc/INSTALL: resync from autoconf
11546         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
11547         (INSTALL_PRELUDE): Delete; this is done more efficiently by
11548         moving...
11549         * install.texi [!autoconf]: ...here.  Resync from autoconf.
11550         * INSTALL: Regenerate.
11551         * INSTALL.ISO: New file.
11552         * INSTALL.UTF-8: Likewise.
11553
11554 2008-08-26  Jim Meyering  <meyering@redhat.com>
11555
11556         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
11557         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
11558         these definitions conditional, so that they may be overridden, too.
11559
11560 2008-08-26  Bruno Haible  <bruno@clisp.org>
11561
11562         Generate INSTALL file variants with prettier quotes.
11563         * doc/Makefile (INSTALL_PRELUDE): New macro.
11564         (INSTALL): Use it.
11565         (INSTALL.ISO, INSTALL.UTF-8): New rules.
11566
11567 2008-08-26  Bruno Haible  <bruno@clisp.org>
11568
11569         Run makeinfo in an English locale.
11570         * doc/Makefile (MAKEINFO): New variable.
11571
11572 2008-08-26  Bruno Haible  <bruno@clisp.org>
11573
11574         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
11575         Suggested by Eric Blake.
11576
11577 2008-08-25  Bruno Haible  <bruno@clisp.org>
11578
11579         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
11580
11581 2008-08-25  Eric Blake  <ebb9@byu.net>
11582
11583         c-stack: test that stack overflow can be caught
11584         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
11585         that platform allows handling stack overflow; at least OS/2 EMX
11586         has sigaltstack, but crashes before transferring control to
11587         handler on stack overflow.
11588         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
11589         check for HAVE_STACK_OVERFLOW_HANDLING.
11590         Reported by Elbert Pol.
11591
11592 2008-08-25  Bruno Haible  <bruno@clisp.org>
11593
11594         * doc/posix-functions/strftime.texi: Fix description of strftime
11595         module.
11596
11597 2008-08-24  Bruno Haible  <bruno@clisp.org>
11598
11599         * tests/uniwidth/test-uc_width2.c: New file.
11600         * tests/uniwidth/test-uc_width2.sh: New file.
11601         * modules/uniwidth/width-tests (Files): Add the new files.
11602         (TESTS): Add uniwidth/test-uc_width2.sh.
11603         (TESTS_ENVIRONMENT): New variable.
11604         (check_PROGRAMS): Add test-uc_width2.
11605         (test_uc_width2_SOURCES): New variable.
11606
11607         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
11608         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
11609         not 0x00AB.
11610         Reported by Alexander V. Lukyanov <lav@netis.ru>.
11611
11612 2008-08-22  Eric Blake  <ebb9@byu.net>
11613
11614         test-lock, test-tls: mention why a test is skipped
11615         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
11616         skipped.
11617         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
11618
11619         count-one-bits: relax license
11620         * modules/count-one-bits (License): Relicense to LGPLv2+.
11621         Suggested by Ludovic Courtès, approved by Ben Pfaff.
11622
11623 2008-08-22  Andreas Schwab  <schwab@suse.de>
11624
11625         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
11626         Remove spurious space in assignment.
11627
11628 2008-08-21  Simon Josefsson  <simon@josefsson.org>
11629
11630         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
11631         Paul Eggert <eggert@CS.UCLA.EDU>.
11632
11633 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
11634
11635         * modules/gettext: Add m4/threadlib.m4.
11636
11637 2008-08-19  Eric Blake  <ebb9@byu.net>
11638
11639         test-c-stack: fix compilation failure on FreeBSD 5.0
11640         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
11641         headers before <sys/resource.h>.
11642         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
11643         the bug.
11644         Reported by Nelson H. F. Beebe.
11645
11646         strverscmp: migrate from "strverscmp.h" to <string.h>
11647         * modules/string (Makefile.am): Add new hooks.
11648         * modules/strverscmp (Files): Remove strverscmp.h.
11649         (Depends-on): Add string.
11650         (configure.ac): Add indicator.
11651         (Include): Mention new header.
11652         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
11653         defaults.
11654         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
11655         results.
11656         * lib/strverscmp.h: Delete.
11657         * lib/string.in.h (strverscmp): Provide declaration, when needed.
11658         * tests/test-strverscmp.c (includes): Adjust client.
11659         * lib/check-version.c (includes): Likewise.
11660         * NEWS: Document the change.
11661
11662         strverscmp: add unit test
11663         * modules/strverscmp-tests: New file.
11664         * tests/test-strverscmp.c: Likewise.
11665
11666 2008-08-19  Simon Josefsson  <simon@josefsson.org>
11667
11668         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
11669         regarding Windows crypto stuff, from Mono.
11670
11671 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
11672
11673         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
11674         if present, for intel RND.  Return error on failures.
11675
11676 2008-08-18  Ben Pfaff  <blp@gnu.org>
11677
11678         gitlog-to-changelog: give better diagnostic for failed pipe-open
11679         * build-aux/gitlog-to-changelog: Improve error message: suggest
11680         that the version of Git may be too old.
11681
11682 2008-08-18  Simon Josefsson  <simon@josefsson.org>
11683
11684         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
11685         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
11686
11687 2008-08-18  Bruno Haible  <bruno@clisp.org>
11688
11689         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
11690         pthread_in_use().
11691
11692 2008-08-18  Bruno Haible  <bruno@clisp.org>
11693
11694         * lib/glthread/threadlib.c: Include <pthread.h>.
11695
11696 2008-08-18  Bruno Haible  <bruno@clisp.org>
11697
11698         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
11699         glthread_recursive_lock_* macros.
11700         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
11701         Fix syntax error.
11702
11703 2008-08-18  Bruno Haible  <bruno@clisp.org>
11704
11705         * lib/glthread/thread.c: Avoid forcing a context switch right after
11706         thread creation.
11707
11708 2008-08-17  Bruno Haible  <bruno@clisp.org>
11709
11710         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
11711         * lib/glthread/thread.h: Provide Win32 specific implementation.
11712         * modules/thread (Files): Add lib/glthread/thread.c.
11713         (Depends-on): Add lock.
11714         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
11715
11716 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11717
11718         New module 'yield'.
11719         * modules/yield: New file.
11720         * lib/glthread/yield.h: New file.
11721         * m4/yield.m4: New file.
11722         * MODULES.html.sh (Multithreading): Add yield.
11723
11724 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11725
11726         New module 'thread'.
11727         * modules/thread: New file.
11728         * lib/glthread/thread.h: New file.
11729         * m4/thread.m4: New file.
11730         * MODULES.html.sh (Multithreading): Add thread.
11731
11732 2008-08-17  Bruno Haible  <bruno@clisp.org>
11733
11734         * lib/glthread/lock.h: Include <stdlib.h> always.
11735         * lib/glthread/tls.h: Likewise.
11736         * lib/glthread/cond.h: Likewise.
11737
11738 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
11739
11740         New module 'cond'.
11741         * modules/cond: New file.
11742         * lib/glthread/cond.h: New file.
11743         * lib/glthread/cond.c: New file.
11744         * m4/cond.m4: New file.
11745         * MODULES.html.sh (Multithreading): Add cond.
11746
11747 2008-08-16  Eric Blake  <ebb9@byu.net>
11748
11749         c-stack: fix regression on Irix 5.3 from 2008-06-21
11750         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
11751         sa_sigaction...
11752         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
11753         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
11754         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
11755         * modules/signal (Makefile.am): Use the value.
11756         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
11757         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
11758         * doc/posix-headers/signal.texi (signal.h): Document this
11759         portability issue.
11760         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
11761         Reported by Tom G. Christensen.
11762
11763 2008-08-17  Bruno Haible  <bruno@clisp.org>
11764
11765         New module 'threadlib'.
11766         * modules/threadlib: New file.
11767         * lib/glthread/threadlib.c: New file, extracted from
11768         lib/glthread/lock.c.
11769         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
11770         functions.
11771         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
11772         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
11773         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
11774         macros.
11775         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
11776         (gl_DISABLE_THREADS): Remove macro.
11777         * modules/lock (Files): Remove build-aux/config.rpath.
11778         (Depends-on): Remove havelib. Add threadlib.
11779         (configure.ac-early): Remove section.
11780         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
11781         * modules/tls (Depends-on): Remove lock. Add threadlib.
11782         (Link): New section, copied from threadlib.
11783         * MODULES.html.sh (Multithreading): Add threadlib.
11784
11785 2008-08-14  Bruno Haible  <bruno@clisp.org>
11786
11787         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
11788         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
11789         glthread_rwlock_unlock, glthread_rwlock_destroy,
11790         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
11791         glthread_recursive_lock_destroy): Define as macros always.
11792         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
11793         glthread_lock_lock.
11794         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
11795         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
11796         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
11797         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
11798         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
11799         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
11800         (glthread_recursive_lock_lock_func): Renamed from
11801         glthread_recursive_lock_lock.
11802         (glthread_recursive_lock_unlock_func): Renamed from
11803         glthread_recursive_lock_unlock.
11804         (glthread_recursive_lock_destroy_func): Renamed from
11805         glthread_recursive_lock_destroy.
11806
11807 2008-08-14  Bruno Haible  <bruno@clisp.org>
11808
11809         * lib/glthread/lock.h: Renamed from lib/lock.h.
11810         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
11811         * lib/glthread/tls.h: Renamed from lib/tls.h.
11812         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
11813         * lib/fstrcmp.c: Update includes.
11814         * lib/strsignal.c: Update includes.
11815         * modules/lock (Files, Makefile.am): Update.
11816         (Include): Change to "glthread/lock.h".
11817         * modules/tls (Files, Makefile.am): Update.
11818         (Include): Change to "glthread/tls.h".
11819         * tests/test-lock.c: Update includes.
11820         * tests/test-tls.c: Update includes.
11821         * NEWS: Mention the renamed header files.
11822
11823 2008-08-11  Jim Meyering  <meyering@redhat.com>
11824
11825         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
11826
11827 2008-08-11  Eric Blake  <ebb9@byu.net>
11828
11829         test-c-stack: avoid C99-ism
11830         * tests/test-c-stack.c (main): Fix whitespace, move declaration
11831         before statement.
11832         Reported by Alain Guibert.
11833
11834 2008-08-10  Jim Meyering  <meyering@redhat.com>
11835
11836         ensure that return value of uinttostr et al are not ignored
11837         * lib/inttostr.h (__GNUC_PREREQ): Define.
11838         (__attribute_warn_unused_result__): Define.
11839         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
11840
11841 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
11842
11843         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
11844         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
11845
11846 2008-08-07  Jim Meyering  <meyering@redhat.com>
11847
11848         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
11849
11850         * modules/mkstemp (License): Relicense under LGPLv2+.
11851         * modules/tempname (License): Likewise.
11852
11853 2008-08-06  Bruno Haible  <bruno@clisp.org>
11854
11855         * lib/poll.c (poll): Further micro-optimization.
11856
11857 2008-08-06  Jim Meyering  <meyering@redhat.com>
11858
11859         inet_pton.c: use locale-independent tolower
11860         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
11861         (inet_pton6): Use c_tolower rather than tolower.
11862         * modules/inet_pton (Depends-on): Add c-ctype.
11863
11864 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
11865
11866         * lib/poll.c (poll): Avoid division when timeout is 0, cache
11867         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
11868
11869 2008-08-06  Jim Meyering  <meyering@redhat.com>
11870
11871         * modules/inet_pton (License): Relicense under LGPLv2+.
11872
11873 2008-08-03  Bruno Haible  <bruno@clisp.org>
11874
11875         Additional non-aborting API for lock and tls.
11876         * lib/lock.h: Include <errno.h>.
11877         (glthread_lock_init): New macro/function.
11878         (gl_lock_init): Define as wrapper around glthread_lock_init.
11879         (glthread_lock_lock): New macro/function.
11880         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
11881         (glthread_lock_unlock): New macro/function.
11882         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
11883         (glthread_lock_destroy): New macro/function.
11884         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
11885         (glthread_rwlock_init): New macro/function.
11886         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
11887         (glthread_rwlock_rdlock): New macro/function.
11888         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
11889         (glthread_rwlock_wrlock): New macro/function.
11890         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
11891         (glthread_rwlock_unlock): New macro/function.
11892         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
11893         (glthread_rwlock_destroy): New macro/function.
11894         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
11895         (glthread_recursive_lock_init): New macro/function.
11896         (gl_recursive_lock_init): Define as wrapper around
11897         glthread_recursive_lock_init.
11898         (glthread_recursive_lock_lock): New macro/function.
11899         (gl_recursive_lock_lock): Define as wrapper around
11900         glthread_recursive_lock_lock.
11901         (glthread_recursive_lock_unlock): New macro/function.
11902         (gl_recursive_lock_unlock): Define as wrapper around
11903         glthread_recursive_lock_unlock.
11904         (glthread_recursive_lock_destroy): New macro/function.
11905         (gl_recursive_lock_destroy): Define as wrapper around
11906         glthread_recursive_lock_destroy.
11907         (glthread_once): New macro/function.
11908         (gl_once): Define as wrapper around glthread_once.
11909         Update function declarations.
11910         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
11911         glthread_rwlock_init. Return error code.
11912         (glthread_rwlock_rdlock_multithreaded): Renamed from
11913         glthread_rwlock_rdlock. Return error code.
11914         (glthread_rwlock_wrlock_multithreaded): Renamed from
11915         glthread_rwlock_wrlock. Return error code.
11916         (glthread_rwlock_unlock_multithreaded): Renamed from
11917         glthread_rwlock_unlock. Return error code.
11918         (glthread_rwlock_destroy_multithreaded): Renamed from
11919         glthread_rwlock_destroy. Return error code.
11920         (glthread_recursive_lock_init_multithreaded): Renamed from
11921         glthread_recursive_lock_init. Return error code.
11922         (glthread_recursive_lock_lock_multithreaded): Renamed from
11923         glthread_recursive_lock_lock. Return error code.
11924         (glthread_recursive_lock_unlock_multithreaded): Renamed from
11925         glthread_recursive_lock_unlock. Return error code.
11926         (glthread_recursive_lock_destroy_multithreaded): Renamed from
11927         glthread_recursive_lock_destroy. Return error code.
11928         (glthread_once_call): Make static.
11929         (glthread_once_multithreaded): Renamed from glthread_once.
11930         * lib/tls.h: Include <errno.h>.
11931         (glthread_tls_key_init): New macro/function.
11932         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
11933         (glthread_tls_set): New macro/function.
11934         (gl_tls_set): Define as wrapper around glthread_tls_set.
11935         (glthread_tls_key_destroy): New macro/function.
11936         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
11937         Update function declarations.
11938         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
11939         glthread_tls_get.
11940         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
11941
11942 2008-08-04  Eric Blake  <ebb9@byu.net>
11943
11944         gnumakefile: use space, not TAB, outside of targets
11945         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
11946
11947 2008-08-02  Jim Meyering  <meyering@redhat.com>
11948
11949         getdate.y: avoid locale-dependent date parsing failure
11950         In Turkish locales, getdate would fail to recognize keywords
11951         containing a lowercase "i".  The solution is not to rely on
11952         locale-sensitive case-conversion.
11953         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
11954         (lookup_word): Use c_toupper in place of toupper.
11955         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
11956         Reported by Vefa Bicakci <bicave@superonline.com> in
11957         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
11958         * modules/getdate (Depends-on): Add c-ctype.
11959
11960 2008-08-02  Bruno Haible  <bruno@clisp.org>
11961
11962         * gnulib-tool (func_import): When updating or creating a .gitignore
11963         file, prepend each added line with a slash, and ignore leading slashes
11964         from the existing lines.
11965         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
11966
11967 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11968
11969         Portability fix for GNU make 3.79.1.
11970         * top/GNUmakefile: Avoid 'else COND', which older GNU make
11971         versions do not understand.
11972
11973 2008-08-01  Bruno Haible  <bruno@clisp.org>
11974
11975         Work around bug of HP-UX 10.20 cc with -0.0 literal.
11976         * tests/test-isnanf.h (zero): New variable.
11977         (main): Avoid literal -0.0f.
11978         * tests/test-isnand.h (zero): New variable.
11979         (main): Avoid literal -0.0.
11980         * tests/test-isnanl.h (zero): New variable.
11981         (main): Avoid literal -0.0L.
11982         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
11983         (test_float, test_double, test_long_double): Avoid literals -0.0f,
11984         -0.0, -0.0L.
11985         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
11986         (test_signbitd): Avoid literal -0.0.
11987         (test_signbitl): Avoid literal -0.0L.
11988         * tests/test-ceilf1.c (zero): New variable.
11989         (main): Avoid literal -0.0f.
11990         * tests/test-ceill.c (zero): New variable.
11991         (main): Avoid literal -0.0L.
11992         * tests/test-floorf1.c (zero): New variable.
11993         (main): Avoid literal -0.0f.
11994         * tests/test-floorl.c (zero): New variable.
11995         (main): Avoid literal -0.0L.
11996         * tests/test-roundf1.c (zero): New variable.
11997         (main): Avoid literal -0.0f.
11998         * tests/test-round1.c (zero): New variable.
11999         (main): Avoid literal -0.0.
12000         * tests/test-roundl.c (zero): New variable.
12001         (main): Avoid literal -0.0L.
12002         * tests/test-truncf1.c (zero): New variable.
12003         (main): Avoid literal -0.0f.
12004         * tests/test-trunc1.c (zero): New variable.
12005         (main): Avoid literal -0.0.
12006         * tests/test-truncl.c (zero): New variable.
12007         (main): Avoid literal -0.0L.
12008         * tests/test-frexp.c (zero): New variable.
12009         (main): Avoid literal -0.0.
12010         * tests/test-frexpl.c (zero): New variable.
12011         (main): Avoid literal -0.0L.
12012         * tests/test-ldexpl.c (zero): New variable.
12013         (main): Avoid literal -0.0L.
12014         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
12015         (zerod, zerol): New variables.
12016         (test_function): Avoid literals -0.0, -0.0L.
12017         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
12018         (zerod, zerol): New variables.
12019         (test_function): Avoid literals -0.0, -0.0L.
12020         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
12021         (zerod, zerol): New variables.
12022         (test_function): Avoid literals -0.0, -0.0L.
12023         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
12024         (zerod, zerol): New variables.
12025         (test_function): Avoid literals -0.0, -0.0L.
12026         * tests/test-strtod.c (zero): New variable.
12027         (main): Avoid literal -0.0.
12028         Reported by Jonathan C. Patschke <jp@centtech.com>.
12029
12030 2008-07-31  Jim Meyering  <meyering@redhat.com>
12031
12032         sha256.h: correct definition of SHA224_DIGEST_SIZE
12033         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
12034         Reported by Paulie Pena IV <paulie4@gmail.com>.
12035         Define as 224 / 8, rather than as a literal.
12036         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
12037         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
12038         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
12039
12040 2008-07-31  Bruno Haible  <bruno@clisp.org>
12041
12042         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
12043         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
12044         Reported by Jonathan Patschke <jp@centtech.com>.
12045
12046 2008-07-31  Bruno Haible  <bruno@clisp.org>
12047
12048         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
12049         Reported by Paolo Bonzini <bonzini@gnu.org>.
12050
12051 2008-07-30  Eric Blake  <ebb9@byu.net>
12052
12053         test-strtod: allow compilation without -lm
12054         * tests/test-strtod.c (main): Avoid link dependence on fabs.
12055         Reported by Dennis Clarke <blastwave@gmail.com>.
12056
12057 2008-07-28  Jim Meyering  <meyering@redhat.com>
12058
12059         bootstrap: work also when there are no .po files in po/
12060         * build-aux/bootstrap (update_po_files): Complete the change
12061         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
12062
12063 2008-07-27  Jim Meyering  <meyering@redhat.com>
12064
12065         * users.txt: Add zile.
12066
12067 2008-07-26  Ben Pfaff  <blp@gnu.org>
12068
12069         Add missing dependencies on new m4/exponent[fdl].m4 files.
12070         * modules/isnanf-nolibm: Add m4/exponentf.m4.
12071         * modules/isnand-nolibm: Add m4/exponentd.m4.
12072         * modules/isnanl-nolibm: Add m4/exponentl.m4.
12073         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
12074         m4/isnan[fdl].m4, because the macros actually used moved.
12075         Reported by Jim Meyering.
12076
12077 2008-07-14  Ben Pfaff  <blp@gnu.org>
12078
12079         Add isinf module.
12080         * lib/isinf.c: New file.
12081         * lib/math.in.h: Define isinf macro if we have decided to replace
12082         it.
12083         * m4/isinf.m4: New file.
12084         * m4/math_h.m4: Initialize and substitute variables for isinf
12085         module.
12086         * modules/isinf: New file.
12087         * modules/isinf-tests: New file.
12088         * modules/math: Add substitutions for new module.
12089         * tests/test-isinf.c: New file.
12090         * doc/posix-functions/isinf.texi: Mention new module.
12091         * MODULES.html.sh: Mention new module.
12092
12093 2008-07-14  Ben Pfaff  <blp@gnu.org>
12094
12095         Factor out some macros for use by additional modules.
12096         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
12097         exponentf.m4.
12098         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
12099         exponentd.m4.
12100         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
12101         file exponentl.m4.
12102         * m4/exponentf.m4: New file.
12103         * m4/exponentd.m4: New file.
12104         * m4/exponentl.m4: New file.
12105         * modules/isnanf: Use new file m4/exponentf.m4.
12106         * modules/isnand: Use new file m4/exponentd.m4.
12107         * modules/isnanl: Use new file m4/exponentl.m4.
12108
12109 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
12110
12111         mktime.c: normalize tp->tm_isdst value to -1/0/1.
12112         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
12113         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
12114         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
12115
12116         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
12117         readlink on platforms without PATH_MAX.
12118
12119 2008-07-21  Eric Blake  <ebb9@byu.net>
12120
12121         Warn, not fail, on stale version.
12122         * top/GNUmakefile (_curr-ver): Tone down previous patch.
12123
12124         Don't allow installation with stale devel version number.
12125         * top/GNUmakefile (_is-install-target): New macro.
12126         (_curr-ver): Forbid installation with stale version number.
12127
12128 2008-07-20  Bruno Haible  <bruno@clisp.org>
12129
12130         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
12131         TESTS_ENVIRONMENT.
12132         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
12133
12134 2008-07-20  Bruno Haible  <bruno@clisp.org>
12135
12136         * lib/c-stack.h (c_stack_action): Add documentation.
12137         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
12138
12139 2008-07-20  Bruno Haible  <bruno@clisp.org>
12140
12141         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
12142         * modules/readlink (License): Likewise.
12143
12144 2008-07-17  Eric Blake  <ebb9@byu.net>
12145
12146         * modules/c-stack (Link): Fix typo.
12147
12148         Make c-stack use libsigsegv, when available.
12149         * modules/c-stack (Depends-on): Add libsigsegv.
12150         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
12151         needed.
12152         * lib/c-stack.c (SIGSTKSZ): Define fallback.
12153         (segv_handler, overflow_handler, c_stack_action)
12154         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
12155         implementation when libsigsegv is available, but only when using
12156         the library is necessary.
12157         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
12158         comment, explaining why XSI check fails on Linux.
12159         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
12160         * tests/test-c-stack2.sh: Tweak skip message.
12161         * NEWS: Document new link-time requirements.
12162
12163 2008-07-16  Eric Blake  <ebb9@byu.net>
12164
12165         c-stack: Expose false positives when not using libsigsegv.
12166         * modules/c-stack-tests (Files): Expand test.
12167         * tests/test-c-stack.c (main): Add means to conditionally trigger
12168         non-overflow SIGSEGV.
12169         * tests/test-c-stack2.sh: New file.
12170
12171 2008-07-14  Bruno Haible  <bruno@clisp.org>
12172
12173         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
12174         Reported by Eric Blake.
12175
12176 2008-07-14  Sam Steingold  <sds@gnu.org>
12177             Bruno Haible  <bruno@clisp.org>
12178
12179         New module libsigsegv.
12180         * modules/libsigsegv: New file.
12181         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
12182         modifications.
12183         * MODULES.html.sh (Signal handling): New section.
12184
12185 2008-07-14  Bruno Haible  <bruno@clisp.org>
12186
12187         * modules/unictype/ctype-* (Description): Add the word "function".
12188         Improves the resulting doc in MODULES.html.
12189
12190 2008-07-12  Ben Pfaff  <blp@gnu.org>
12191
12192         Add longlong module.
12193         * modules/longlong: New file.
12194
12195 2008-07-12  Bruno Haible  <bruno@clisp.org>
12196
12197         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
12198         to empty.
12199
12200 2008-07-10  Ben Pfaff  <blp@gnu.org>
12201
12202         Add isnan module.
12203         * doc/posix-functions/isnan.texi: Mention new module.
12204         * lib/math.in.h: Define isnan macro if we have decided to replace
12205         it.
12206         * m4/isnan.m4: New file.
12207         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
12208         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
12209         also.
12210         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
12211         redundancy.
12212         * m4/math_h.m4: Initialize and substitute variables for isnan
12213         module.
12214         * modules/isnan: New file.
12215         * modules/isnan-tests: New file.
12216         * modules/math: Add substitutions for new module.
12217         * tests/test-isnan.c: New file.
12218         * MODULES.html.sh: Mention new module.
12219
12220 2008-07-10  Ben Pfaff  <blp@gnu.org>
12221
12222         Add isnanf module.
12223         * lib/isnanf.m4: New file.
12224         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
12225         (gl_HAVE_ISNANF_IN_LIBM): New macro.
12226         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
12227         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
12228         * modules/isnanf: New file.
12229         * modules/isnanf-tests: New file.
12230         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
12231         files.
12232         * tests/test-isnanf-nolibm.c: factored most of its contents into
12233         new file tests/test-isnanf.h.
12234         * tests/test-isnanf.h: New file.
12235         * tests/test-isnanf.c: New file.
12236         * MODULES.html.sh: Mention new module.
12237         * doc/glibc-functions/isnanf.texi: Mention new module.
12238
12239 2008-07-10  Ben Pfaff  <blp@gnu.org>
12240
12241         Add isnand module.
12242         * lib/isnand.h: New file.
12243         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
12244         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
12245         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
12246         functionality also.
12247         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
12248         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
12249         (gl_HAVE_ISNAND_IN_LIBM): New macro.
12250         * modules/isnand: New file.
12251         * modules/isnand-tests: New file.
12252         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
12253         files.
12254         * tests/test-isnand-nolibm.c: factored most of its contents into
12255         new file tests/test-isnand.h.
12256         * tests/test-isnand.h: New file.
12257         * tests/test-isnand.c: New file.
12258         * MODULES.html.sh: Mention new module.
12259
12260 2008-07-10  Ben Pfaff  <blp@gnu.org>
12261
12262         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
12263         * lib/isnand.h: Rename lib/isnand-nolibm.h.
12264         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
12265         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
12266         * modules/isnanf-nolibm: Update references to renamed files.
12267         * modules/isnand-nolibm: Likewise.
12268         * modules/isnanf-nolibm-tests: Likewise.
12269         * modules/isnand-nolibm-tests: Likewise.
12270         * lib/frexp.c: Likewise.
12271         * lib/isfinite.c: Likewise.
12272         * lib/signbitd.c: Likewise.
12273         * lib/signbitf.c: Likewise.
12274         * lib/vasnprintf.c: Likewise.
12275         * tests/test-ceilf1.c: Likewise.
12276         * tests/test-ceilf2.c: Likewise.
12277         * tests/test-floorf1.c: Likewise.
12278         * tests/test-floorf2.c: Likewise.
12279         * tests/test-frexp.c: Likewise.
12280         * tests/test-round1.c: Likewise.
12281         * tests/test-round2.c: Likewise.
12282         * tests/test-roundf1.c: Likewise.
12283         * tests/test-strtod.c: Likewise.
12284         * tests/test-trunc1.c: Likewise.
12285         * tests/test-trunc2.c: Likewise.
12286         * tests/test-truncf1.c: Likewise.
12287         * tests/test-truncf2.c: Likewise.
12288         * NEWS: Mention the renamed header files.
12289
12290 2008-07-11  Jim Meyering  <meyering@redhat.com>
12291
12292         vc-list-files: make the last-resort awk code more portable
12293         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
12294         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
12295         does not support it.
12296
12297 2008-07-10  Eric Blake  <ebb9@byu.net>
12298
12299         Work with tar's bootstrap.
12300         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
12301         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
12302         an m4 comment.
12303
12304 2008-07-09  Jim Meyering  <meyering@redhat.com>
12305
12306         posix-shell.m4: fix typo that made this test malfunction
12307         * m4/posix-shell.m4: Remove capitalization in variable name.
12308
12309 2008-07-08  Bruno Haible  <bruno@clisp.org>
12310
12311         * m4/onceonly.m4: Update comments.
12312         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12313
12314 2008-07-04  Jim Meyering  <meyering@redhat.com>
12315
12316         * users.txt: Add vc-dwim.
12317         (bison, coreutils): Use the gitweb URL.
12318
12319 2008-07-03  Jim Meyering  <meyering@redhat.com>
12320
12321         * users.txt: Add libffcall.  From Sam Steingold.
12322
12323 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
12324
12325         getdate.y: do not ignore TZ with relative day, month or year offset
12326         * lib/getdate.y (get_date): Move the tz-handling block to follow the
12327         relative-date-handling, since otherwise, the latter would clobber the
12328         sole output (an updated Start value) of the tz-handling block.
12329         * tests/test-getdate.c: Tests for the fix
12330
12331 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12332
12333         Recognize 'foo_LIBRARIES += libgnu.a'.
12334         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
12335         makefile snippet has already specified an installation location,
12336         also using '+='.
12337
12338 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
12339
12340         getdate.y: factor out common actions
12341         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
12342         Use them in place of open-coded actions.
12343
12344 2008-07-01  Simon Josefsson  <simon@josefsson.org>
12345
12346         Add self-test for getdate module.
12347         * modules/getdate-tests: New file.
12348         * tests/test-getdate.c: New file.
12349
12350 2008-06-29  Bruno Haible  <bruno@clisp.org>
12351
12352         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
12353         .gitignore.
12354         Reported by Sylvain Beucler <beuc@beuc.net>.
12355
12356 2008-06-29  Bruno Haible  <bruno@clisp.org>
12357
12358         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
12359         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
12360
12361 2008-06-29  Bruno Haible  <bruno@clisp.org>
12362
12363         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
12364         EXTRA_DIST.
12365         Reported by Sylvain Beucler <beuc@beuc.net>.
12366
12367 2008-06-26  Jim Meyering  <meyering@redhat.com>
12368
12369         make several modules depend on the "open" module
12370         This provides slightly increased consistency when opening-for-write
12371         the name of a non-directory spelled with a trailing slash.
12372         * modules/chdir-safer: Likewise.
12373         * modules/chown: Likewise.
12374         * modules/clean-temp: Likewise.
12375         * modules/copy-file: Likewise.
12376         * modules/fchdir: Likewise.
12377         * modules/fcntl-safer: Likewise.
12378         * modules/pipe: Likewise.
12379         * modules/utime: Likewise.
12380         Prompted by Eric Blake and Bruno Haible.
12381
12382 2008-06-24  Andreas Schwab  <schwab@suse.de>
12383
12384         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
12385         literals can be used as initializers for global variables.
12386
12387 2008-06-23  Eric Blake  <ebb9@byu.net>
12388
12389         Make gnulib-cache.m4 easier to diff.
12390         * gnulib-tool (func_import): Allow newlines when reading cached
12391         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
12392
12393 2008-06-23  Bruno Haible  <bruno@clisp.org>
12394
12395         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
12396         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
12397         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
12398         m4/signalblocking.m4.
12399         (gl_PREREQ_SIGACTION): Don't invoke it.
12400         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
12401         gl_PREREQ_SIG_HANDLER_H.
12402         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
12403         Don't check for sigaction here.
12404
12405 2008-06-23  Bruno Haible  <bruno@clisp.org>
12406
12407         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
12408         (install_handlers): Don't set the SA_RESETHAND flag.
12409
12410 2008-06-23  Bruno Haible  <bruno@clisp.org>
12411
12412         * m4/sigaction.m4: Comment fixes.
12413         * lib/signal.in.h: Likewise.
12414
12415 2008-06-23  Eric Blake  <ebb9@byu.net>
12416
12417         Fix typo.
12418         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
12419
12420         Avoid SA_ namespace.
12421         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
12422         Reported by Ralf Wildenhues.
12423
12424         Avoid test failure due to SA_RESTORER.
12425         * tests/test-sigaction.c (SA_MASK): New macro.
12426         (main): Avoid failing due to extension flags being set.
12427         Reported by Jim Meyering.
12428
12429         Revert use of sig-handler.h in sigprocmask.c.
12430         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
12431         it requires the existence of struct sigaction.
12432         * lib/sigprocmask.c (handler_t): Restore typedef.
12433         (rpl_signal, old_handlers): Use local type.
12434
12435 2008-06-22  Bruno Haible  <bruno@clisp.org>
12436
12437         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
12438         conditionally.
12439         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
12440
12441 2008-06-22  Bruno Haible  <bruno@clisp.org>
12442
12443         * doc/posix-functions/siginterrupt.texi: Move note.
12444
12445         * lib/signal.in.h (SA_RESTART): New macro.
12446         * lib/sigaction.c: Update comment.
12447
12448         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
12449
12450         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
12451         (gl_PREREQ_SIGPROCMASK): Invoke it.
12452         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
12453
12454         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
12455
12456         * lib/sigprocmask.c: Update a comment.
12457
12458 2008-06-21  Eric Blake  <ebb9@byu.net>
12459
12460         Use sigaction module rather than signal().
12461         * modules/c-stack (Depends-on): Add sigaction.
12462         * modules/fatal-signal (Depends-on): Likewise.
12463         * modules/nanosleep (Depends-on): Likewise.
12464         * modules/sigprocmask (Files): Add sig-handler.h.
12465         * modules/sigaction (Files): Likewise.
12466         * lib/sig-handler.h (get_handler): New file, suggested by Paul
12467         Eggert.
12468         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
12469         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
12470         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
12471         (init_fatal_signals): Likewise.
12472         * lib/nanosleep.c (rpl_nanosleep): Likewise.
12473         (siginterrupt): Delete fallback.
12474         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
12475         instead.
12476         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
12477         siginterrupt.
12478
12479         New module sigaction, for mingw.
12480         * modules/sigaction: New module...
12481         * modules/sigaction-tests: ...and its test.
12482         * m4/sigaction.m4: New file.
12483         * lib/sigaction.c: Likewise.
12484         * tests/test-sigaction.c: Likewise.
12485         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
12486         * modules/signal (Makefile.am): Likewise.
12487         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
12488         needed.
12489         * doc/posix-headers/signal.texi (signal.h): Mention provided
12490         types.
12491         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
12492         that sigaction is preferable.
12493         * doc/posix-functions/sigaction.texi (sigaction): Mention new
12494         module.
12495         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
12496         sigaction.
12497
12498         Improve robustness of sigprocmask by overriding signal.
12499         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
12500         is in use.
12501         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
12502         (SIGKILL, SIGSTOP): Provide fallbacks.
12503         (rpl_signal): Implement.
12504         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
12505         signal can be called inside handlers.
12506
12507         Fix nanosleep module on mingw.
12508         * modules/nanosleep (Depends-on): Add sys_select.
12509         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
12510
12511         Fix licensing of sigprocmask.
12512         * modules/raise (License): Relicense as LGPL.
12513
12514 2008-06-21  Bruno Haible  <bruno@clisp.org>
12515
12516         * lib/propername.c (proper_name_utf8): Don't use the transliterated
12517         result if it contains question marks.
12518         Reported by Michael Geng <linux@michaelgeng.de>.
12519
12520 2008-06-19  Bruno Haible  <bruno@clisp.org>
12521
12522         Fix CVS-ism.
12523         * doc/gnulib.texi: Include updated-stamp.texi.
12524         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
12525         (updated-stamp.texi): New rule.
12526         (gnulib.info): Depend on it.
12527         * doc/.gitignore: Add updated-stamp.texi.
12528         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
12529
12530 2008-06-19  Bruno Haible  <bruno@clisp.org>
12531
12532         * doc/Makefile (gnulib.info): Update and simplify dependencies.
12533         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
12534
12535 2008-06-19  Eric Blake  <ebb9@byu.net>
12536
12537         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
12538         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
12539         Reported by Stepan Kasal.
12540
12541 2008-06-18  Bruno Haible  <bruno@clisp.org>
12542
12543         * lib/fatal-signal.c (init_fatal_signals): Add comment.
12544         Reported by Eric Blake.
12545
12546 2008-06-18  Eric Blake  <ebb9@byu.net>
12547
12548         Work around cygwin 1.5.25 strsignal bug.
12549         * tests/test-strsignal.c: Allow for const char *.
12550         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
12551
12552 2008-06-18  Simon Josefsson  <simon@josefsson.org>
12553
12554         * users.txt: Update URL to article and add author/date
12555         information.
12556
12557 2008-06-17  Bruno Haible  <bruno@clisp.org>
12558
12559         New macro gl_DISABLE_THREADS.
12560         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
12561         if the user did not pass --enable-threads or --disable-threads option.
12562         (gl_DISABLE_THREADS): New macro.
12563         Reported by Eric Blake <ebb9@byu.net>.
12564
12565 2008-06-17  Bruno Haible  <bruno@clisp.org>
12566
12567         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
12568         when the macro ignores it.
12569         Based on a patch by Eric Blake <ebb9@byu.net>.
12570
12571 2008-06-17  Bruno Haible  <bruno@clisp.org>
12572
12573         * modules/tls (License): Change to LGPLv2+.
12574         Reported by Eric Blake.
12575
12576 2008-06-17  Eric Blake  <ebb9@byu.net>
12577
12578         Simplify c-stack prerequisites.
12579         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
12580         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
12581         no longer requires <ucontext.h> to exist.  Optimize setrlimit
12582         check.
12583         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
12584         <sys/resource.h>.
12585
12586         Move c-stack test into testsuite.
12587         * modules/c-stack-tests: New file.
12588         * lib/c-stack.c [DEBUG]: Move test program...
12589         * tests/test-c-stack.c: ...into this new file.  Skip rather than
12590         fail test if sigaltstack is lacking.
12591         * tests/test-c-stack.sh: New driver file.
12592
12593 2008-06-16  Eric Blake  <ebb9@byu.net>
12594
12595         Use raise module consistently.
12596         * modules/fatal-signal (Depends-on): Add raise.
12597         * modules/sigprocmask (Depends-on): Likewise.
12598         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
12599         * lib/sigprocmask.c (sigprocmask): Likewise.
12600         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
12601         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
12602
12603         Fix compliance bug in sigpending.
12604         * lib/sigprocmask.c (sigpending): Return pending array via
12605         parameter, not return value.
12606
12607 2008-06-14  Eric Blake  <ebb9@byu.net>
12608
12609         Improve obstack-printf test code.
12610         * tests/test-obstack-printf.c (test_function): Fix comment, and
12611         simplify usage of obstack_* in macros.  Add a test for coverage.
12612         Reported by Bruno Haible.
12613
12614 2008-06-14  Bruno Haible  <bruno@clisp.org>
12615
12616         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
12617         array size as a constant, not as a const variable.
12618         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
12619         AC_USE_SYSTEM_EXTENSIONS.
12620         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
12621         Test whether the obstack_printf function actually exists.
12622         * modules/obstack-printf (Depends-on): Add extensions.
12623         (Include): Remove obstack.h.
12624         * modules/obstack-printf-posix (Depends-on): Add extensions.
12625         (Include): Remove obstack.h.
12626
12627 2008-06-13  Eric Blake  <ebb9@byu.net>
12628
12629         Add obstack-printf and obstack-printf-posix modules.
12630         * modules/obstack-printf: New file.
12631         * modules/obstack-printf-posix: Likewise.
12632         * MODULES.html.sh (Misc): Mention them.
12633         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
12634         Likewise.
12635         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
12636         Likewise.
12637         * modules/stdio (Makefile.am): Accomodate new modules.
12638         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
12639         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
12640         Declare.
12641         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
12642         functions.
12643         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
12644         (gl_REPLACE_OBSTACK_PRINTF): New macros
12645         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
12646         * tests/test-obstack-printf.c: New file.
12647         * modules/obstack-printf-tests: Likewise.
12648         * modules/obstack-printf-posix-tests: Likewise.
12649
12650 2008-06-11  Bruno Haible  <bruno@clisp.org>
12651
12652         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
12653         * lib/open.c: Include errno.h.
12654         (open): Fail when attempting to write to a file that has a trailing
12655         slash.
12656         * tests/test-open.c (main): Test against trailing slash bug.
12657         * doc/posix-functions/open.texi: Mention the trailing slash bug.
12658
12659 2008-06-10  Bruno Haible  <bruno@clisp.org>
12660
12661         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
12662         for $? to work inside the trap command, with various /bin/sh-s.
12663         * tests/test-vc-list-files-cvs.sh: Likewise.
12664
12665 2008-06-10  Bruno Haible  <bruno@clisp.org>
12666
12667         * lib/acl-internal.h: Don't include gettext.h here.
12668         * lib/set-mode-acl.c: Include gettext.h here.
12669         * lib/copy-acl.c: Likewise.
12670
12671 2008-06-10  Bruno Haible  <bruno@clisp.org>
12672
12673         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
12674         * lib/wait-process.c (wait_subprocess): Likewise.
12675         * lib/execute.h (execute): Add termsigp argument.
12676         * lib/execute.c (execute): Likewise.
12677         * lib/csharpcomp.c (compile_csharp_using_pnet,
12678         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
12679         * lib/csharpexec.c (execute_csharp_using_pnet,
12680         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
12681         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
12682         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
12683         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
12684         is_jikes_present): Update.
12685         * lib/javaexec.c (execute_java_class): Update.
12686         * lib/javaversion.c (execute_and_read_line): Update.
12687         * NEWS: Document the changes.
12688         Reported by Eric Blake.
12689
12690 2008-06-10  Eric Blake  <ebb9@byu.net>
12691
12692         Add missing include.
12693         * tests/test-strstr.c (includes): Add <signal.h>.
12694         * tests/test-strcasestr.c (includes): Likewise.
12695         * tests/test-memmem.c (includes): Likewise.
12696
12697 2008-06-10  Bruno Haible  <bruno@clisp.org>
12698
12699         * lib/wait-process.c (wait_subprocess): Add an assertion.
12700
12701 2008-06-10  Bruno Haible  <bruno@clisp.org>
12702
12703         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
12704
12705 2008-06-10  Bruno Haible  <bruno@clisp.org>
12706
12707         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
12708         using alarm().
12709         * tests/test-strcasestr.c (main): Likewise.
12710         * tests/test-strstr.c (main): Likewise.
12711
12712 2008-06-09  Bruno Haible  <bruno@clisp.org>
12713
12714         Work around the Solaris 10 ACE ACLs ABI change.
12715         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
12716         declare if ACL_NO_TRIVIAL is present.
12717         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
12718         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
12719         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
12720         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
12721         define if ACL_NO_TRIVIAL is present.
12722         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
12723         and use the current ABI.
12724         (file_has_acl): Use same #if condition as elsewhere.
12725         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
12726         in use, and use the current ABI.
12727         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
12728         Reported by Jim Meyering.
12729
12730 2008-06-09  Eric Blake  <ebb9@byu.net>
12731
12732         Work around environments that (stupidly) ignore SIGALRM.
12733         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
12734         before using alarm().
12735         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
12736         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12737         Reported by Ian Beckwith <ianb@erislabs.net>.
12738
12739         Produce autobuild blurb earlier in log.
12740         * modules/autobuild (configure.ac-early): Move AB_INIT here.
12741
12742 2008-06-09  Jim Meyering  <meyering@redhat.com>
12743         and Ondřej Vašík  <ovasik@redhat.com>
12744
12745         utimens.c: correct kernel bug work-around
12746         Ondřej Vašík found that the invalid return value of 280 indicates
12747         failure, not success, and the kernel bug we're trying to work
12748         around affects not just the utimensat call, but also the fallback
12749         futimens call.
12750         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
12751         not success.
12752         [HAVE_FUTIMENS]: Use the same work-around, here.
12753
12754 2008-06-09  Jim Meyering  <meyering@redhat.com>
12755
12756         add more guards around definition of ACE_-related code
12757         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
12758         ALLOW and ACE_OWNER are also defined.
12759
12760 2008-06-08  Bruno Haible  <bruno@clisp.org>
12761
12762         * lib/acl-internal.h: Add me as co-author.
12763         * lib/file-has-acl.c: Likewise.
12764         * lib/set-mode-acl.c: Likewise.
12765         * lib/copy-acl.c: Likewise.
12766
12767 2008-06-08  Bruno Haible  <bruno@clisp.org>
12768
12769         Add support for AIX ACLs.
12770         * lib/acl-internal.h (acl_nontrivial): New declaration.
12771         * lib/file-has-acl.c (acl_nontrivial): New function.
12772         (file_has_acl): Add implementation using AIX 4 ACL API.
12773         * lib/set-mode-acl.c (qset_acl): Likewise.
12774         * lib/copy-acl.c (qcopy_acl): Likewise.
12775
12776 2008-06-08  Bruno Haible  <bruno@clisp.org>
12777
12778         Add support for HP-UX ACLs.
12779         * lib/acl-internal.h (acl_nontrivial): New declaration.
12780         * lib/file-has-acl.c (acl_nontrivial): New function.
12781         (file_has_acl): Add implementation using HP-UX 11 ACL API.
12782         * lib/set-mode-acl.c (qset_acl): Likewise.
12783         * lib/copy-acl.c (qcopy_acl): Likewise.
12784
12785 2008-06-08  Bruno Haible  <bruno@clisp.org>
12786
12787         Add support for Cygwin ACLs.
12788         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
12789         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
12790         the chmod_or_fchmod call.
12791         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
12792
12793 2008-06-08  Bruno Haible  <bruno@clisp.org>
12794
12795         Fix bug with setuid modes in Solaris 10+ code.
12796         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
12797         succeeded, when the mode contains some special bits.
12798
12799 2008-06-08  Bruno Haible  <bruno@clisp.org>
12800
12801         Add support for Solaris 7..10 ACLs.
12802         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
12803         declarations.
12804         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
12805         functions.
12806         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
12807         * lib/set-mode-acl.c (qset_acl): Likewise.
12808         * lib/copy-acl.c (qcopy_acl): Likewise.
12809
12810 2008-06-08  Bruno Haible  <bruno@clisp.org>
12811
12812         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
12813         declaration.
12814         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
12815         (acl_access_nontrivial): Remove MacOS X case.
12816         (file_has_acl): Use acl_extended_nontrivial.
12817         * lib/copy-acl.c (qcopy_acl): Likewise.
12818
12819 2008-06-08  Bruno Haible  <bruno@clisp.org>
12820
12821         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
12822
12823 2008-06-08  Jim Meyering  <meyering@redhat.com>
12824
12825         * modules/acl (Maintainer): Add Bruno Haible.
12826
12827 2008-06-07  Bruno Haible  <bruno@clisp.org>
12828
12829         Improve support for Tru64 ACLs.
12830         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
12831         ACL on OSF/1.
12832
12833 2008-06-07  Bruno Haible  <bruno@clisp.org>
12834
12835         Add support for MacOS X ACLs.
12836         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
12837         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
12838         * lib/set-mode-acl.c (qset_acl): Likewise.
12839         * lib/copy-acl.c (qcopy_acl): Likewise.
12840
12841 2008-06-07  Bruno Haible  <bruno@clisp.org>
12842
12843         Fix memory leak introduced on 2008-05-22.
12844         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
12845         use.
12846
12847 2008-06-07  Bruno Haible  <bruno@clisp.org>
12848
12849         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
12850         to construct an empty ACL.
12851
12852 2008-06-07  Bruno Haible  <bruno@clisp.org>
12853
12854         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
12855         precisely.
12856         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
12857
12858 2008-06-07  Bruno Haible  <bruno@clisp.org>
12859
12860         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
12861         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
12862
12863 2008-06-07  Bruno Haible  <bruno@clisp.org>
12864
12865         * doc/posix-functions/_setjmp.texi: Explain the use of this function
12866         regardless of POSIX.
12867         * doc/posix-functions/_longjmp.texi: Likewise.
12868         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
12869         SystemV platform in this case.
12870
12871 2008-06-06  Eric Blake  <ebb9@byu.net>
12872
12873         Document abort() bugs.
12874         * doc/posix-functions/abort.texi (abort): Mention anomalies.
12875
12876         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
12877         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
12878         sigsetjmp.
12879         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
12880         siglongjmp, but only as a macro.
12881         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
12882         is obsolete.
12883         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
12884
12885         Tweak documentation to cover cygwin argz bugs.
12886         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
12887         argz bug fix; no code change needed since no cygwin releases
12888         occurred between the last fix and the bug being tested.
12889         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
12890         module and recently fixed cygwin bugs.
12891         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
12892         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
12893         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
12894         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
12895         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
12896         Likewise.
12897         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
12898         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
12899         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
12900         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
12901         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
12902         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
12903         Likewise.
12904
12905         Avoid gcc warning on cygwin.
12906         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
12907         !ACL_NO_TRIVIAL]: Avoid unused variable.
12908
12909 2008-06-05  Eric Blake  <ebb9@byu.net>
12910
12911         Be tolerant of UNKNOWN version in gnulib-tool test dir.
12912         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
12913         git-version-gen fails to come up with a version.
12914         Reported by Simon Josefsson.
12915
12916 2008-06-05  Jim Meyering  <meyering@redhat.com>
12917             Paul Eggert  <eggert@cs.ucla.edu>
12918
12919         utimens.c: work around a probable Linux kernel bug
12920         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
12921         appears to be a kernel bug that causes utimensat to return 280
12922         instead of 0, indicating success.
12923
12924 2008-06-04  Bruno Haible  <bruno@clisp.org>
12925
12926         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
12927         2008-06-01 commit.
12928
12929 2008-06-04  Bruno Haible  <bruno@clisp.org>
12930
12931         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
12932         * lib/file-has-acl.c (acl_access_nontrivial): New function.
12933         (file_has_acl): Use it. Save errno afterwards.
12934         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
12935
12936 2008-06-03  Bruno Haible  <bruno@clisp.org>
12937
12938         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
12939         draft code. Simplify #ifs.
12940         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
12941         Put Solaris code after POSIX-draft code. Fix comments regarding
12942         Solaris 10, HP-UX. Mention Cygwin.
12943         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
12944
12945 2008-06-03  Eric Blake  <ebb9@byu.net>
12946
12947         Provide fallback for older kernels.
12948         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
12949         Provide runtime fallback if kernel lacks support.
12950         Reported by Mike Frysinger.
12951
12952 2008-06-02  Bruno Haible  <bruno@clisp.org>
12953
12954         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
12955         it exists.
12956
12957 2008-06-02  Bruno Haible  <bruno@clisp.org>
12958
12959         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
12960         * lib/copy-acl.c (qcopy_acl): Update comment.
12961
12962 2008-06-02  Bruno Haible  <bruno@clisp.org>
12963
12964         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
12965         like ACL APIs.
12966
12967 2008-06-02  Bruno Haible  <bruno@clisp.org>
12968
12969         * tests/test-file-has-acl.sh: Use different code for Cygwin.
12970         * tests/test-set-mode-acl.sh: Likewise.
12971         * tests/test-copy-acl.sh: Likewise.
12972         * tests/test-copy-file.sh: Likewise.
12973
12974 2008-06-02  Bruno Haible  <bruno@clisp.org>
12975
12976         * tests/test-file-has-acl.sh: Remove unused code.
12977
12978 2008-06-01  Bruno Haible  <bruno@clisp.org>
12979
12980         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
12981         (copy_acl): Just a wrapper around qcopy_acl that emits the error
12982         messages.
12983         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
12984
12985 2008-06-01  Bruno Haible  <bruno@clisp.org>
12986
12987         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
12988         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
12989         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
12990         APIs.
12991         * modules/acl-tests (configure.ac): Remove tests now contained in
12992         m4/acl.m4.
12993
12994 2008-06-02  Jim Meyering  <meyering@redhat.com>
12995
12996         announce-gen: use a better key-server host name
12997         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
12998         it may be more consistently reliable.  Suggested by Werner Koch
12999         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
13000
13001 2008-06-01  Bruno Haible  <bruno@clisp.org>
13002
13003         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
13004         Reported by Voroskoi Andras <voroskoi@gmail.com>.
13005
13006 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
13007
13008         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
13009
13010 2008-06-01  Bruno Haible  <bruno@clisp.org>
13011
13012         New ACL tests.
13013         * tests/test-file-has-acl.sh: New file.
13014         * tests/test-file-has-acl.c: New file.
13015         * tests/test-set-mode-acl.sh: New file.
13016         * tests/test-set-mode-acl.c: New file.
13017         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
13018         * tests/test-copy-acl.c: New file.
13019         * modules/acl-tests: New file, based on modules/copy-file-tests.
13020         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
13021         (Depends-on): Add acl-tests.
13022         (configure.ac): Remove checks.
13023         (Makefile.am): Don't create test-sameacls program here any more.
13024
13025 2008-06-01  Bruno Haible  <bruno@clisp.org>
13026
13027         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
13028         * tests/test-sameacls.c: Include progname.h.
13029         (main): Invoke set_program_name. Portability fixes for MacOS X,
13030         Solaris, HP-UX.
13031
13032 2008-06-01  Bruno Haible  <bruno@clisp.org>
13033
13034         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
13035         function.
13036         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
13037
13038 2008-06-01  Bruno Haible  <bruno@clisp.org>
13039
13040         * modules/rpmatch (Depends-on): Add strdup.
13041
13042 2008-06-01  Bruno Haible  <bruno@clisp.org>
13043
13044         * lib/pipe.c: Include unistd-safer.h.
13045         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
13046         * modules/pipe (Depends-on): Add unistd-safer.
13047
13048 2008-05-30  Simon Josefsson  <simon@josefsson.org>
13049
13050         * modules/autobuild (configure.ac): Call AB_INIT.
13051
13052 2008-05-30  Simon Josefsson  <simon@josefsson.org>
13053
13054         * tests/test-getaddrinfo.c: Don't print debug messages by default.
13055         Suggested by Bruno Haible <bruno@clisp.org>.
13056
13057 2008-05-30  Simon Josefsson  <simon@josefsson.org>
13058
13059         * tests/test-base64.c: Cast size_t to unsigned long when invoking
13060         printf.  Use %lu instead of %d.  Reported by Bruno Haible
13061         <bruno@clisp.org>.
13062
13063 2008-05-29  Eric Blake  <ebb9@byu.net>
13064
13065         Prefer new POSIX 200x interfaces over futimesat.
13066         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
13067         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
13068         when available.
13069         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
13070
13071 2008-05-28  Bruno Haible  <bruno@clisp.org>
13072
13073         * modules/stpcpy (License): Change to LGPLv2+.
13074         Requested by David Lutterkort <dlutter@redhat.com>.
13075
13076 2008-05-27  Bruno Haible  <bruno@clisp.org>
13077
13078         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
13079         current mingw.
13080         Reported by Jose E. Marchesi <jemarch@gnu.org>.
13081
13082 2008-05-27  Bruno Haible  <bruno@clisp.org>
13083
13084         * modules/iconv_open (Link): New section, from module 'iconv'.
13085         * modules/striconv (Link): Likewise.
13086         * modules/striconveh (Link): Likewise.
13087         * modules/xstriconv (Link): Likewise.
13088         * modules/unicodeio (Link): Likewise.
13089         * modules/propername (Link): Likewise.
13090         Reported by Jim Meyering.
13091
13092 2008-05-26  Jim Meyering  <meyering@redhat.com>
13093
13094         sha256: do not artificially restrict buffer length to be < 2^32
13095         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
13096         uint32_t to size_t.
13097         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
13098         to match.
13099
13100         avoid unaligned access errors, e.g., on sparc
13101         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
13102         direct access through a possibly-unaligned uint64* pointer.
13103         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
13104         direct access through a possibly-unaligned uint32* pointer.
13105         Prompted by this patch from Tom "spot" Callaway:
13106         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
13107
13108         sha512.c: fix typo in comment
13109         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
13110
13111 2008-05-25  Bruno Haible  <bruno@clisp.org>
13112
13113         * lib/set-mode-acl.c: Renamed from lib/acl.c.
13114         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
13115         (Makefile.am): Update lib_SOURCES.
13116
13117 2008-05-25  Bruno Haible  <bruno@clisp.org>
13118
13119         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
13120
13121 2008-05-25  Jim Meyering  <meyering@redhat.com>
13122
13123         useless-if-before-free: freed expr may have white-space differences
13124         * build-aux/useless-if-before-free: Recognize cases in which the
13125         freed expression differs from the tested one in embedded white
13126         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
13127         $1 was used, so we can't make any regexp shy.  Improved tests now
13128         detect this.
13129
13130         useless-if-before-free: accept white space in the expression.
13131         * build-aux/useless-if-before-free: For now, any white space
13132         in the expression must be identical in the free argument.
13133
13134         useless-if-before-free: efficiency tweak
13135         * build-aux/useless-if-before-free: Make the expression-matching
13136         regexp "shy".
13137         Make the *outer* regexp shy, not the expr-matching one.
13138
13139         update code-in-comment to accept cast of free arg
13140         * build-aux/useless-if-before-free: Update regexp.
13141
13142 2008-05-25  Bruno Haible  <bruno@clisp.org>
13143
13144         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
13145         * modules/copy-file-tests (Files, Makefile.am): Update.
13146         * tests/test-copy-file.c (func_test_copy): Update.
13147
13148 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
13149
13150         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
13151
13152 2008-05-23  Bruno Haible  <bruno@clisp.org>
13153
13154         Improve support for ACLs on OSF/1.
13155         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
13156         Remove fallback for unknown flavors of ACLs.
13157
13158 2008-05-22  Bruno Haible  <bruno@clisp.org>
13159
13160         Add support for ACLs on OSF/1.
13161         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
13162         replacements.
13163         (acl_free_text): New macro fallback.
13164         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
13165         acl_free.
13166         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
13167         acl_free_text function. Require AC_C_INLINE.
13168
13169 2008-05-22  Bruno Haible  <bruno@clisp.org>
13170
13171         Make copy_acl work on MacOS X 10.5.
13172         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
13173         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
13174         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
13175         If MODE_INSIDE_ACL, don't assume that every system has the same text
13176         representation for ACLs as FreeBSD.
13177         * lib/copy-acl.c (copy_acl): Add support for platforms with
13178         !MODE_INSIDE_ACL.
13179         * lib/file-has-acl.c (file_has_acl): Likewise.
13180         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
13181         FreeBSD, MacOS X, or IRIX, respectively.
13182
13183 2008-05-22  Bruno Haible  <bruno@clisp.org>
13184
13185         * lib/acl.h: Don't include <sys/acl.h>.
13186         (GETACLCNT): Move fallback to lib/acl-internal.h.
13187         * lib/acl-internal.h: Include <sys/acl.h> here.
13188         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
13189
13190 2008-05-22  Bruno Haible  <bruno@clisp.org>
13191
13192         Split off copy_acl function to separate file.
13193         * lib/copy-acl.c: New file, extracted from lib/acl.c.
13194         * lib/acl.c (copy_acl): Moved function to separate file.
13195         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
13196         * modules/acl (Files): Add lib/copy-acl.c.
13197         (Makefiles.am): Augment lib_SOURCES.
13198
13199 2008-05-22  Bruno Haible  <bruno@clisp.org>
13200
13201         * modules/copy-file-tests: New file.
13202         * tests/test-copy-file.sh: New file.
13203         * tests/test-copy-file.c: New file.
13204         * tests/test-copy-file-sameacls.c: New file.
13205
13206 2008-05-22  Eric Blake  <ebb9@byu.net>
13207
13208         Avoid gcc warning.
13209         * tests/test-memcmp.c (main): Pass NULL indirectly.
13210
13211 2008-05-21  Bruno Haible  <bruno@clisp.org>
13212
13213         Add reference doc about ACLs.
13214         * doc/acl-resources.txt: New file.
13215         * doc/acl-cygwin.txt: New file.
13216
13217 2008-05-21  Bruno Haible  <bruno@clisp.org>
13218
13219         Avoid one more warning from gcc.
13220         * lib/vasnprintf.c (IF_LINT): Update comments.
13221         (VASNPRINTF): Use it also for the 'prefix' array initializer.
13222
13223 2008-05-21  Jim Meyering  <meyering@redhat.com>
13224
13225         avoid a warning from gcc
13226         * lib/vasnprintf.c (IF_LINT): Define.
13227         (scale10_round_decimal_long_double):
13228         Use it to avoid a "may be used uninitialized" warning.
13229         (scale10_round_decimal_double): Likewise.
13230
13231 2008-05-21  Simon Josefsson  <simon@josefsson.org>
13232
13233         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
13234         declared.
13235
13236 2008-05-20  Bruno Haible  <bruno@clisp.org>
13237
13238         * tests/test-memcmp.c (main): Test also the sign of the result. Test
13239         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
13240
13241 2008-05-20  Simon Josefsson  <simon@josefsson.org>
13242
13243         * modules/memcmp-tests: New file.
13244         * tests/test-memcmp.c: New file.
13245
13246 2008-05-19  Bruno Haible  <bruno@clisp.org>
13247
13248         * modules/propername (Notice, configure.ac): Put quoted "..." into
13249         --keyword option.
13250         * lib/propername.h: Update comments accordingly.
13251         Reported by Eric Blake.
13252
13253 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
13254
13255         * modules/getpass-gnu (Depends-on): Add fseeko.
13256
13257 2008-05-19  Simon Josefsson  <simon@josefsson.org>
13258
13259         * modules/base64-tests: New file.
13260
13261 2008-05-19  Bo Borgerson <gigabo@gmail.com>
13262
13263         * lib/base64.c (base64_decode_ctx): If a decode context structure
13264         was passed in use it to ignore newlines.  If a context structure
13265         was _not_ passed in, continue to treat newlines as garbage (this
13266         is the historical behavior).  Formerly base64_decode.
13267         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
13268         takes a decode context structure.
13269         * lib/base64.h (base64_decode): Macro for four-argument calls.
13270         (base64_decode_alloc): Likewise.
13271         * lib/base64.c (base64_decode_ctx): If a decode context structure
13272         was passed in use it to ignore newlines.  If a context structure
13273         was _not_ passed in, continue to treat newlines as garbage (this
13274         is the historical behavior).  Formerly base64_decode.
13275         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
13276         takes a decode context structure.
13277         * lib/base64.h (base64_decode): Macro for four-argument calls.
13278         (base64_decode_alloc): Likewise.
13279
13280 2008-05-19  Jim Meyering  <meyering@redhat.com>
13281
13282         avoid a warning from gcc
13283         * lib/trim.c (IF_LINT): Define.
13284         (trim2): Use it to avoid a "may be used uninitialized" warning.
13285
13286         Fix doc typo.
13287         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
13288
13289 2008-05-19  Bruno Haible  <bruno@clisp.org>
13290
13291         * doc/glibc-functions/getpass.texi: Document limits of other
13292         implementations.
13293
13294 2008-05-19  Simon Josefsson  <simon@josefsson.org>
13295             Bruno Haible <bruno@clisp.org>
13296
13297         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
13298
13299 2008-05-18  Bruno Haible  <bruno@clisp.org>
13300
13301         * modules/propername: New file, from GNU gettext.
13302         * lib/propername.h: New file, from GNU gettext.
13303         * lib/propername.c: New file, from GNU gettext.
13304         * MODULES.html.sh (Internationalization functions): Add propername.
13305
13306 2008-05-16  Jim Meyering  <meyering@redhat.com>
13307             Bruno Haible  <bruno@clisp.org>
13308
13309         Avoid some warnings from "gcc -Wshadow".
13310         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
13311
13312 2008-05-15  Eric Blake  <ebb9@byu.net>
13313
13314         Extend previous patch to cygwin 1.7.0.
13315         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
13316         fast implementation in cygwin >= 1.7.0.
13317         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13318         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13319
13320 2008-05-15  Bruno Haible  <bruno@clisp.org>
13321
13322         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
13323         implementation in glibc >= 2.9.
13324         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
13325         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
13326
13327 2008-05-15  Bruno Haible  <bruno@clisp.org>
13328
13329         * MODULES.html.sh (Internationalization functions): Remove linebreak.
13330         (Unicode string functions): Add unilbrk/*.
13331         Reported by Karl Berry.
13332
13333 2008-05-15  Eric Blake  <ebb9@byu.net>
13334
13335         Fix violation of <stdbool.h> replacement in regex.
13336         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
13337         * lib/regexec.c (re_search_internal): Likewise.
13338         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
13339
13340 2008-05-15  Jim Meyering  <meyering@redhat.com>
13341
13342         avoid distracting test output when git or cvs is not found
13343         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
13344         * tests/test-vc-list-files-git.sh: Likewise.
13345
13346 2008-05-15  Eric Blake  <ebb9@byu.net>
13347
13348         Glibc finally accepted the memmem speedup code, bugzilla #5514.
13349         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
13350         glibc version.
13351         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
13352         * doc/posix-functions/strstr.texi (strstr): Likewise.
13353         * lib/str-two-way.h (MAX): Sychronize with glibc.
13354
13355 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
13356
13357         * lib/regcomp.c (optimize_utf8): Add a note on why we test
13358         opr.ctx_type.
13359         (calc_first): Initialize constraint field.
13360         (duplicate_node_closure): Use it instead of special casing ANCHORS.
13361         Fix grammar.
13362         (duplicate_node): Merge constraint field for all node types.
13363         (calc_eclosure_iter): Look at constraint field for all node types.
13364         * lib/regex_internal.c (create_cd_newstate): Don't look at
13365         opr.ctx_type.
13366
13367 2008-05-14  Bruno Haible  <bruno@clisp.org>
13368
13369         Help GCC to do better code generation.
13370         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
13371         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
13372         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
13373         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
13374         Declare with attribute 'malloc' if supported.
13375
13376 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
13377
13378         use "echo STR|wc -c" rather than unportable "expr length STR"
13379         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
13380         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
13381
13382 2008-05-14  Jim Meyering  <meyering@redhat.com>
13383
13384         use dd ibs=$n count=1 ... rather than less-portable head -c$n
13385         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
13386         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
13387         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
13388         via Collin Lasse.
13389
13390 2008-05-14  Eric Blake  <ebb9@byu.net>
13391
13392         Avoid quadratic growth in gl_LIBSOURCES.
13393         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
13394         Suggested by Bruno Haible.
13395
13396         Test xmemdup0.
13397         * modules/xmemdup0-tests: New file.
13398         * tests/test-xmemdup0.c: Likewise.
13399
13400 2008-05-13  Eric Blake  <ebb9@byu.net>
13401
13402         Split xmemdup0 into its own module.
13403         * modules/xmemdup0: New file.
13404         * lib/xmemdup0.h: Likewise.
13405         * lib/xmemdup0.c: Likewise.
13406         * MODULES.html.sh (Memory management functions): Add xmemdup0.
13407         * lib/xalloc.h (xmemdup0): Remove.
13408         * lib/xmalloc.c (xmemdup0): Likewise.
13409
13410 2008-05-13  Eric Blake  <ebb9@byu.net>
13411             Bruno Haible  <bruno@clisp.org>
13412
13413         Reduce number of forks required during autoconf.
13414         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
13415         and gl_LIBSOURCES_DIR.
13416         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
13417         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
13418         m4_syscmd per file.
13419         <m4_foreach_w>: Move...
13420         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
13421
13422 2008-05-13  Eric Blake  <ebb9@byu.net>
13423
13424         * gnulib-tool: Fix various comment typos.
13425
13426 2008-05-12  Bruno Haible  <bruno@clisp.org>
13427
13428         Tailor the linebreaking algorithm.
13429         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
13430
13431 2008-05-12  Bruno Haible  <bruno@clisp.org>
13432
13433         Update to Unicode 5.0.0.
13434         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
13435         LBP_JV, LBP_JT. Redistribute values.
13436         (unilbrk_table): Change size.
13437         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
13438         Unicode TR#14 rev. 22.
13439         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
13440         LBP_JV, LBP_JT. Redistribute values.
13441         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
13442         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
13443         Update.
13444         * lib/unilbrk/lbrkprop1.h: Regenerated.
13445         * lib/unilbrk/lbrkprop2.h: Regenerated.
13446         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
13447         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
13448         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
13449         Likewise.
13450         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
13451         Likewise.
13452         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
13453         result.
13454         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
13455         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
13456         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
13457         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
13458         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
13459         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
13460
13461 2008-05-11  Bruno Haible  <bruno@clisp.org>
13462
13463         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
13464
13465 2008-05-11  Bruno Haible  <bruno@clisp.org>
13466
13467         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
13468         * modules/unilbrk/gen-lbrk: New file.
13469
13470 2008-05-11  Bruno Haible  <bruno@clisp.org>
13471
13472         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
13473         * m4/sha512.m4 (gl_SHA512): Likewise.
13474
13475 2008-05-11  Jim Meyering  <meyering@redhat.com>
13476
13477         New modules: crypto/sha256, crypto/sha512 (from coreutils)
13478         * modules/crypto/sha256: New file.
13479         * modules/crypto/sha512: Likewise.
13480         * lib/sha256.c: Likewise.
13481         * lib/sha256.h: Likewise.
13482         * lib/sha512.c: Likewise.
13483         * lib/sha512.h: Likewise.
13484         * lib/u64.h: Likewise.
13485         * m4/sha256.m4: Likewise.
13486         * m4/sha512.m4: Likewise.
13487         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
13488
13489 2008-05-10  Bruno Haible  <bruno@clisp.org>
13490
13491         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
13492         (Input/Output <stdio.h>): Add xprintf.
13493         (Signal handling <signal.h>): Add strsignal.
13494         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
13495         (Core language properties): Add func.
13496         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
13497         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
13498         strings.
13499         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
13500         (Input/output): New section.
13501         (File system functions): Add openat-die, stat-macros.
13502         (Networking functions): Add sockets.
13503         (Unicode string functions): Add unictype/*.
13504         (Support for building libraries and executables): Add gperf.
13505         (Support for building documentation): Add agpl-3.0.
13506         (Misc): Add nocrash.
13507
13508 2008-05-10  Bruno Haible  <bruno@clisp.org>
13509
13510         * modules/unictype/gen-ctype: New file.
13511
13512 2008-05-10  Jim Meyering  <meyering@redhat.com>
13513
13514         Make chdir-safer.c more efficient on a system with no symlinks.
13515         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
13516         also if ELOOP is zero.  Suggested by Bruno Haible.
13517
13518         Make chdir-safer.c slightly safer.
13519         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
13520         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
13521
13522         Avoid compile failure on systems without ELOOP (like mingw).
13523         * lib/chdir-safer.c (ELOOP): Define if not already defined.
13524         Reported by Bruno Haible.
13525
13526 2008-05-10  Bruno Haible  <bruno@clisp.org>
13527
13528         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
13529         (is_utf8_encoding): Use a case-insensitive comparison.
13530         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
13531         streq.
13532
13533 2008-05-10  Bruno Haible  <bruno@clisp.org>
13534
13535         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
13536         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
13537         * lib/unilbrk/ulc-common.h (iconv_string_length,
13538         iconv_string_keeping_offsets): Remove declarations.
13539         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
13540         Don't include <iconv.h>, streq.h, xsize.h.
13541         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
13542         conversion.
13543         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
13544         <iconv.h>, streq.h, xsize.h.
13545         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
13546         conversion.
13547         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
13548         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
13549         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
13550         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
13551
13552 2008-05-10  Bruno Haible  <bruno@clisp.org>
13553
13554         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
13555         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
13556
13557         * modules/unilbrk/u32-width-linebreaks-tests: New file.
13558         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
13559
13560         * modules/unilbrk/u16-width-linebreaks-tests: New file.
13561         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
13562
13563         * modules/unilbrk/u8-width-linebreaks-tests: New file.
13564         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
13565
13566         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
13567         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
13568
13569         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
13570         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
13571
13572         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
13573         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
13574
13575         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
13576         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
13577
13578 2008-05-10  Bruno Haible  <bruno@clisp.org>
13579
13580         Split up 'linebreak' module.
13581         * lib/unilbrk.h: New file, based on lib/linebreak.h.
13582         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
13583         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
13584         modifications.
13585         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
13586         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
13587         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
13588         lib/linebreak.c.
13589         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
13590         lib/linebreak.c.
13591         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
13592         lib/linebreak.c.
13593         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
13594         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
13595         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
13596         lib/linebreak.c.
13597         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
13598         lib/linebreak.c.
13599         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
13600         lib/linebreak.c.
13601         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
13602         lib/linebreak.c.
13603         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
13604         lib/linebreak.c.
13605         * modules/unilbrk/base: New file.
13606         * modules/unilbrk/tables: New file.
13607         * modules/unilbrk/u8-possible-linebreaks: New file.
13608         * modules/unilbrk/u16-possible-linebreaks: New file.
13609         * modules/unilbrk/u32-possible-linebreaks: New file.
13610         * modules/unilbrk/ulc-common: New file.
13611         * modules/unilbrk/ulc-possible-linebreaks: New file.
13612         * modules/unilbrk/u8-width-linebreaks: New file.
13613         * modules/unilbrk/u16-width-linebreaks: New file.
13614         * modules/unilbrk/u32-width-linebreaks: New file.
13615         * modules/unilbrk/ulc-width-linebreaks: New file.
13616         * lib/linebreak.h: Remove file.
13617         * lib/linebreak.c: Remove file.
13618         * m4/linebreak.m4: Remove file.
13619         * modules/linebreak: Remove file.
13620         * NEWS: Mention the changes.
13621
13622 2008-05-09  Eric Blake  <ebb9@byu.net>
13623
13624         Add xmemdup0.
13625         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
13626         implementation.
13627         * lib/xmalloc.c (xmemdup0): New C implementation.
13628
13629 2008-05-08  Bruno Haible  <bruno@clisp.org>
13630
13631         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
13632
13633 2008-05-07  Eric Blake  <ebb9@byu.net>
13634
13635         Support cross-compilation of <wctype.h>.
13636         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
13637         AC_CACHE_CHECK.
13638
13639 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
13640
13641         * build-aux/vc-list-files: Add support for bzr.
13642
13643 2008-05-03  Jim Meyering  <meyering@redhat.com>
13644
13645         avoid failed assertion with tight malloc
13646         * tests/test-getndelim2.c: Correct an off-by-one assertion.
13647
13648 2008-05-03  Simon Josefsson  <simon@josefsson.org>
13649
13650         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
13651         are needed from arpa/inet.h.
13652         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
13653         Reported by Bruno Haible.
13654
13655 2008-05-02  Jim Meyering  <meyering@redhat.com>
13656
13657         avoid compilation error on FreeBSD 6
13658         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
13659
13660 2008-05-01  Jim Meyering  <meyering@redhat.com>
13661
13662         useless-if-before-free: correct --help's exit status description
13663         * build-aux/useless-if-before-free (usage): Like grep, exit 0
13664         for one or more matches, etc.  Reported by Bruno Haible.
13665
13666         vc-list-files: make the stand-alone gnulib test work
13667         * modules/vc-list-files-tests (configure.ac):
13668         Define and AC_SUBST abs_aux_dir.
13669         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
13670         $(abs_top_srcdir) to each script and having each of them
13671         duplicate the work of setting PATH, set PATH here, using
13672         the new variable, abs_aux_dir instead.
13673         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
13674         * tests/test-vc-list-files-git.sh: Likewise.
13675         Reported by Bruno Haible.
13676
13677 2008-05-01  Bruno Haible  <bruno@clisp.org>
13678
13679         * lib/getndelim2.c (getndelim2): Fix newsize computation during
13680         reallocation. Rename 'done' to 'found_delimiter'.
13681
13682 2008-05-01  Jim Meyering  <meyering@redhat.com>
13683
13684         vc-list-files: accommodate /bin/sh like the one from Solaris 10
13685         * build-aux/vc-list-files: Use `...`, not $(...).
13686
13687 2008-04-30  Jim Meyering  <meyering@redhat.com>
13688
13689         add tests for vc-list-files
13690         * modules/vc-list-files-tests: New module.
13691         * tests/test-vc-list-files-cvs.sh: New file.
13692         * tests/test-vc-list-files-git.sh: New file.
13693
13694         avoid a warning from gcc
13695         * lib/getndelim2.c (IF_LINT): Define.
13696         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
13697
13698         vc-list-files: work properly with build-aux/cvsu, too
13699         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
13700         to all cvs-based clauses.
13701
13702         vc-list-files: work properly in the CVS+awk case, too
13703         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
13704
13705         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
13706         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
13707         take more than one file argument, so .  Add quotes, just in case $dir
13708         ever contains a shell meta-character.  Prompted by Soren Hansen in
13709         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
13710
13711 2008-04-29  Eric Blake  <ebb9@byu.net>
13712
13713         Optimize getndelim2 to use block operations when possible.
13714         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
13715         freadseek, and memchr2.
13716         * lib/getndelim2.c (getndelim2): Use them for block reads.
13717
13718 2008-04-29  Bruno Haible  <bruno@clisp.org>
13719
13720         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
13721         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13722         * modules/inet_ntop (Depends-on): Add extensions.
13723         * modules/inet_pton (Depends-on): Likewise.
13724         Reported by Simon Josefsson.
13725
13726 2008-04-29  Jim Meyering  <meyering@redhat.com>
13727
13728         When the is more than one match in a block, match all of them.
13729         * build-aux/useless-if-before-free: Iterate through each block
13730         until there are no more matches.
13731
13732         Fix broken useless-if-before-free script.
13733         * build-aux/useless-if-before-free: Fix typo: missing "?" after
13734         the expression to match cast of argument to free-like function.
13735
13736 2008-04-29  Eric Blake  <ebb9@byu.net>
13737
13738         Use new header.
13739         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
13740
13741 2008-04-29  Jim Meyering  <meyering@redhat.com>
13742
13743         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
13744         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
13745         by gnulib to exist and to declare e.g., inet_ntop.
13746         Don't include "inet_ntop.h", now removed.
13747
13748         * m4/arpa_inet_h.m4: Remove trailing blanks.
13749
13750 2008-04-29  Eric Blake  <ebb9@byu.net>
13751
13752         Silence valgrind on safe reads beyond potential array bounds.
13753         * lib/rawmemchr.valgrind: New file.
13754         * lib/strchrnul.valgrind: Likewise.
13755         * modules/rawmemchr (Files): Distribute new file.
13756         * modules/strchrnul (Files): Likewise.
13757         Suggested by Bruno Haible.
13758
13759 2008-04-29  Bruno Haible  <bruno@clisp.org>
13760
13761         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
13762         (inet_ntop, inet_pton): Change portability warning's wording.
13763         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
13764         Invoke gl_CHECK_NEXT_HEADERS.
13765         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
13766         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
13767         set ARPA_INET_H.
13768         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
13769         * modules/arpa_inet (Description): No longer only for systems that
13770         lack it.
13771         (Depends-on): Add include_next.
13772         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
13773         HAVE_ARPA_INET_H.
13774
13775 2008-04-29  Jim Meyering  <meyering@redhat.com>
13776
13777         * modules/mkdir (License): Re-license as LGPLv2+.
13778
13779 2008-04-29  Bruno Haible  <bruno@clisp.org>
13780
13781         * modules/rawmemchr (Maintainer): Set to Eric.
13782         * modules/strchrnul (Maintainer): Likewise.
13783
13784 2008-04-29  Simon Josefsson  <simon@josefsson.org>
13785
13786         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
13787         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
13788
13789         * modules/arpa_inet (arpa/inet.h): Use them.
13790
13791 2008-04-28  Eric Blake  <ebb9@byu.net>
13792
13793         Test getndelim2.
13794         * modules/getndelim2-tests: New file.
13795         * tests/test-getndelim2.c: Likewise.
13796         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
13797         stream.
13798         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
13799
13800         * MODULES.html.sh: Document new module.
13801
13802 2008-04-20  Bruno Haible  <bruno@clisp.org>
13803
13804         * lib/c-stack.c (die): Use raise.
13805         * modules/c-stack (Depends-on): Add raise.
13806
13807 2008-04-28  Bruno Haible  <bruno@clisp.org>
13808
13809         Expect rpmatch to be declared.
13810         * lib/yesno.c (rpmatch): Remove declaration.
13811
13812         Declare rpmatch.
13813         * lib/stdlib.in.h (rpmatch): New declaration.
13814         * lib/rpmatch.c: Include <stdlib.h> first.
13815         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
13816         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
13817         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
13818         HAVE_RPMATCH.
13819         * modules/rpmatch (Depends-on): Add stdlib, extensions.
13820         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
13821         (Include): Set to <stdlib.h>.
13822         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
13823         HAVE_RPMATCH.
13824         * NEWS: Document the change.
13825
13826 2008-04-28  Bruno Haible  <bruno@clisp.org>
13827
13828         Change rpmatch to use nl_langinfo when appropriate.
13829         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
13830         (N_): New macro.
13831         (localized_pattern): New function/macro.
13832         (try): Remove match, nomatch arguments. Copy the pattern into safe
13833         memory before caching it.
13834         (rpmatch): Use localized_pattern. Add translator comments.
13835         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
13836         Suggested by Eric Blake.
13837         * modules/rpmatch (Depends-on): Add stdbool.
13838
13839 2008-04-28  Eric Blake  <ebb9@byu.net>
13840
13841         Add rawmemchr module, matching glibc.
13842         * modules/string (Makefile.am): New indicator.
13843         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
13844         * lib/string.in.h (rawmemchr): Declare when appropriate.
13845         * modules/rawmemchr: New file.
13846         * m4/rawmemchr.m4: Likewise.
13847         * lib/rawmemchr.c: Likewise.
13848         * modules/rawmemchr-tests: Likewise.
13849         * tests/test-rawmemchr.c: Likewise.
13850         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
13851         module.
13852         * modules/strchrnul (Depends-on): Add rawmemchr.
13853         * lib/strchrnul.c (strchrnul): Optimize a corner case.
13854
13855         Whitespace cleanup.
13856         * tests/test-strchrnul.c: Reindent.
13857         * lib/strchrnul.c: Likewise.
13858
13859         Optimize and test strchrnul.
13860         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
13861         * modules/strchrnul-tests: New file.
13862         * tests/test-strchrnul.c: Likewise.
13863
13864         Remove intprops dependency.
13865         * modules/memchr (Depends-on): Remove intprops.
13866         * modules/memrchr (Depends-on): Likewise.
13867         * modules/memchr2 (Depends-on): Likewise.
13868         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
13869         * lib/memrchr.c (__memrchr): Likewise.
13870         * lib/memrchr2.c (memchr2): Likewise.
13871         Reported by Simon Josefsson.
13872
13873 2008-04-28  Simon Josefsson  <simon@josefsson.org>
13874
13875         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
13876         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13877
13878 2008-04-28  Simon Josefsson  <simon@josefsson.org>
13879
13880         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
13881
13882         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
13883
13884         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
13885
13886         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
13887         declarations.
13888         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
13889
13890         * m4/inet_pton.m4: Don't check for header files.
13891
13892         * m4/inet_ntop.m4: Don't check for header files.
13893
13894 2008-04-28  Simon Josefsson  <simon@josefsson.org>
13895
13896         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
13897         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
13898         trigger for cygwin).
13899         Reported by Bruno Haible  <bruno@clisp.org>.
13900
13901 2008-04-28  Bruno Haible  <bruno@clisp.org>
13902
13903         * doc/posix-functions/strdup.texi: Mention mingw problem.
13904
13905 2008-04-27  Bruno Haible  <bruno@clisp.org>
13906
13907         * modules/stat-time-tests (Depends-on): Add sleep.
13908         * tests/test-stat-time.c (force_unlink): New function.
13909         (cleanup): Use it.
13910         (test_mtime): Remove the ctime related tests.
13911         (test_ctime): New function, containing the ctime related tests.
13912         (main): Call test_ctime, except on native Windows platforms.
13913
13914 2008-04-27  Bruno Haible  <bruno@clisp.org>
13915
13916         * lib/rpmatch.c (rpmatch): Add some comments.
13917         Reported by James Youngman <jay@gnu.org>.
13918
13919 2008-04-27  Bruno Haible  <bruno@clisp.org>
13920
13921         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
13922         quiet NaNs.
13923
13924 2008-04-27  Bruno Haible  <bruno@clisp.org>
13925
13926         Make test-yesno.sh work on mingw.
13927         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
13928         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
13929         (main): Set stdin to binary mode.
13930         * modules/yesno-tests (Depends-on): Add binary-io.
13931
13932 2008-04-27  Bruno Haible  <bruno@clisp.org>
13933
13934         Fix 'isfinite' on x86, x86_64, ia64 platforms.
13935         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
13936         argument that lie outside the IEEE 854 domain.
13937         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
13938         (gl_ISFINITE): Use it.
13939         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
13940
13941 2008-04-27  Bruno Haible  <bruno@clisp.org>
13942
13943         Allow local renaming in config.h.
13944         * lib/memrchr.c (memrchr): Don't undefine outside libc.
13945
13946 2008-04-27  Bruno Haible  <bruno@clisp.org>
13947
13948         * lib/memchr.c (__memchr): Change type of 'i'.
13949         * lib/memchr2.c (memchr2): Likewise.
13950
13951 2008-04-26  Eric Blake  <ebb9@byu.net>
13952         and Bruno Haible  <bruno@clisp.org>
13953
13954         Optimize and test memrchr.
13955         * modules/memrchr (Depends-on): Add intprops.
13956         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
13957         * modules/memrchr-tests: New file.
13958         * tests/test-memrchr.c: New file.
13959
13960 2008-04-26  Bruno Haible  <bruno@clisp.org>
13961
13962         Add tentative support for DragonFly BSD.
13963         * lib/stdio-impl.h: Add macros for DragonFly BSD.
13964         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
13965         fp.
13966         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
13967         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
13968         * lib/fpurge.c (fpurge): Likewise.
13969         * lib/freadable.c (freaadable): Likewise.
13970         * lib/freadahead.c (freadahead): Likewise.
13971         * lib/freading.c (freading): Likewise.
13972         * lib/freadptr.c (freadptr): Likewise.
13973         * lib/freadseek.c (freadptrinc): Likewise.
13974         * lib/fseeko.c (fseeko): Likewise.
13975         * lib/fseterr.c (fseterr): Likewise.
13976         * lib/fwritable.c (fwritable): Likewise.
13977         * lib/fwriting.c (fwriting): Likewise.
13978
13979 2008-04-26  Bruno Haible  <bruno@clisp.org>
13980
13981         * lib/stdio-impl.h: New file.
13982         * lib/fbufmode.c: Include stdio-impl.h.
13983         (fbufmode): Use fp_, remove redundant #defines.
13984         * lib/fflush.c: Include stdio-impl.h.
13985         (clear_ungetc_buffer): Remove redundant #defines.
13986         * lib/fpurge.c: Include stdio-impl.h.
13987         (fpurge): Remove redundant #defines.
13988         * lib/freadable.c: Include stdio-impl.h.
13989         (freadable): Remove redundant #defines.
13990         * lib/freadahead.c: Include stdio-impl.h.
13991         (freadahead): Remove redundant #defines.
13992         * lib/freading.c: Include stdio-impl.h.
13993         (freading): Remove redundant #defines.
13994         * lib/freadptr.c: Include stdio-impl.h.
13995         (freadptr): Remove redundant #defines.
13996         * lib/freadseek.c: Include stdio-impl.h.
13997         (freadptrinc): Remove redundant #defines.
13998         * lib/fseeko.c: Include stdio-impl.h.
13999         (rpl_fseeko): Remove redundant #defines.
14000         * lib/fseterr.c: Include stdio-impl.h.
14001         (fseterr): Remove redundant #defines.
14002         * lib/fwritable.c: Include stdio-impl.h.
14003         (fwritable: Remove redundant #defines.
14004         * lib/fwriting.c: Include stdio-impl.h.
14005         (fwriting): Remove redundant #defines.
14006         * modules/fbufmode (Files): Add lib/stdio-impl.h.
14007         * modules/fflush (Files): Likewise.
14008         * modules/fpurge (Files): Likewise.
14009         * modules/freadable (Files): Likewise.
14010         * modules/freadahead (Files): Likewise.
14011         * modules/freading (Files): Likewise.
14012         * modules/freadptr (Files): Likewise.
14013         * modules/freadseek (Files): Likewise.
14014         * modules/fseeko (Files): Likewise.
14015         * modules/fseterr (Files): Likewise.
14016         * modules/fwritable (Files): Likewise.
14017         * modules/fwriting (Files): Likewise.
14018
14019 2008-04-26  Bruno Haible  <bruno@clisp.org>
14020
14021         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
14022         restore_seek_optimization, update_fpos_cache): New functions, extracted
14023         from rpl_fflush.
14024         (rpl_fflush): Use them.
14025         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
14026         (gl_REPLACE_FFLUSH): Use it.
14027
14028 2008-04-26  Bruno Haible  <bruno@clisp.org>
14029
14030         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
14031         on Solaris.
14032         * tests/test-xstrtoimax.sh: Likewise.
14033         * tests/test-xstrtoumax.sh: Likewise.
14034         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14035
14036 2008-04-26  Bruno Haible  <bruno@clisp.org>
14037
14038         * modules/memchr-tests: New file.
14039         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
14040
14041 2008-04-26  Eric Blake  <ebb9@byu.net>
14042             Bruno Haible  <bruno@clisp.org>
14043
14044         * lib/memchr.c: Include intprops.h.
14045         (__memchr): Optimize parallel detection of matching bytes. Rename local
14046         variables. Add explanatory comments.
14047
14048 2008-04-26  Bruno Haible  <bruno@clisp.org>
14049
14050         Fix module 'memchr', broken since 2000-10-28.
14051         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
14052
14053 2008-04-26  Bruno Haible  <bruno@clisp.org>
14054
14055         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
14056         comments.
14057
14058 2008-04-25  Eric Blake  <ebb9@byu.net>
14059
14060         Use native fstatat on cygwin 1.7.0.
14061         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
14062         first.
14063
14064 2008-04-23  Eric Blake  <ebb9@byu.net>
14065
14066         Improve memchr2 performance.
14067         * lib/memchr2.c (memchr2): Further optimize parallel detection of
14068         NUL bytes.
14069         * modules/memchr2 (Depends-on): Use intprops.h.
14070
14071 2008-04-23  Simon Josefsson  <simon@josefsson.org>
14072
14073         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
14074         an inline function instead of a CPP macro.  Patch by Ben Pfaff
14075         <blp@cs.stanford.edu>.
14076
14077 2008-04-23  Simon Josefsson  <simon@josefsson.org>
14078
14079         * lib/arpa_inet.in.h: New file.
14080
14081         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
14082         (Makefile.am): Sed in substitute header file.
14083
14084         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
14085         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
14086
14087         * modules/inet_ntop (configure.ac): Use
14088         gl_ARPA_INET_MODULE_INDICATOR.
14089
14090         * modules/inet_pton (configure.ac): Use
14091         gl_ARPA_INET_MODULE_INDICATOR.
14092
14093 2008-04-22  Jim Meyering  <meyering@redhat.com>
14094
14095         * modules/verify (License): Re-license as LGPLv2+.
14096
14097 2008-04-22  Simon Josefsson  <simon@josefsson.org>
14098
14099         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
14100         parameter to void* as per POSIX standard (MinGW uses char*).
14101
14102 2008-04-21  Bruno Haible  <bruno@clisp.org>
14103
14104         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
14105         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
14106         Define to replacements if REPLACE_ISWCNTRL is 1.
14107         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
14108         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
14109         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
14110         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
14111         what it fixes.
14112         * doc/posix-functions/iswalpha.texi: Likewise.
14113         * doc/posix-functions/iswblank.texi: Likewise.
14114         * doc/posix-functions/iswcntrl.texi: Likewise.
14115         * doc/posix-functions/iswdigit.texi: Likewise.
14116         * doc/posix-functions/iswgraph.texi: Likewise.
14117         * doc/posix-functions/iswlower.texi: Likewise.
14118         * doc/posix-functions/iswprint.texi: Likewise.
14119         * doc/posix-functions/iswpunct.texi: Likewise.
14120         * doc/posix-functions/iswspace.texi: Likewise.
14121         * doc/posix-functions/iswupper.texi: Likewise.
14122         * doc/posix-functions/iswxdigit.texi: Likewise.
14123         Reported by Alain Guibert.
14124
14125 2008-04-21  Bruno Haible  <bruno@clisp.org>
14126
14127         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
14128         Patch by Alain Guibert.
14129
14130 2008-04-21  Bruno Haible  <bruno@clisp.org>
14131
14132         Fix test failures on mingw.
14133         * tests/test-xstrtol.c (print_no_progname): New function.
14134         (main): Install it in error_print_progname hook.
14135         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
14136         * tests/test-xstrtoimax.sh: Likewise.
14137         * tests/test-xstrtoumax.sh: Likewise.
14138
14139 2008-04-21  Bruno Haible  <bruno@clisp.org>
14140
14141         Fix test failure on mingw.
14142         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
14143
14144 2008-04-21  Bruno Haible  <bruno@clisp.org>
14145
14146         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
14147         Actually assign a value.
14148
14149 2008-04-20  Bruno Haible  <bruno@clisp.org>
14150
14151         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
14152         take 2.
14153         * lib/canonicalize.c (canonicalize_file_name): Elide if the
14154         'canonicalize-lgpl' module is also used.
14155         * lib/canonicalize-lgpl.c: Undo last change.
14156         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
14157
14158 2008-04-20  Bruno Haible  <bruno@clisp.org>
14159
14160         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
14161         config.h. Provide _mkdir based fallback for mingw.
14162         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
14163         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
14164         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
14165         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
14166         rather than defining mkdir in config.h.
14167         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
14168         (gl_SYS_STAT_H_DEFAULTS): New macro.
14169         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
14170         HAVE_IO_H any more.
14171         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
14172         HAVE_DECL_MKDIR and HAVE_IO_H.
14173
14174 2008-04-20  Bruno Haible  <bruno@clisp.org>
14175
14176         * lib/isapipe.c: Port to native Windows platforms.
14177
14178 2008-04-20  Bruno Haible  <bruno@clisp.org>
14179
14180         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
14181
14182 2008-04-21  Eric Blake  <ebb9@byu.net>
14183
14184         Work around preprocessors that don't handle UINTMAX_MAX.
14185         * lib/memchr2.c (memchr2): Avoid embedded #if.
14186         Reported by Alain Guibert, fix suggested by Bruno Haible.
14187
14188 2008-04-21  Simon Josefsson  <simon@josefsson.org>
14189
14190         * doc/posix-functions/strftime.texi (strftime): Explain better
14191         Windows incompatibility.  Suggested by Micah Cowan
14192         <micah@cowan.name>.
14193
14194 2008-04-20  Bruno Haible  <bruno@clisp.org>
14195
14196         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
14197         unistr/u8-mblen.
14198
14199 2008-04-20  Bruno Haible  <bruno@clisp.org>
14200
14201         Fix test failure on platforms with non-GNU iconv.
14202         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
14203         (U_TO_U8): Use it, rather than u16_to_u8.
14204         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
14205         units at the end of the input string.
14206         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
14207
14208 2008-04-20  Bruno Haible  <bruno@clisp.org>
14209
14210         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
14211         when the resulting length is 0.
14212         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
14213
14214 2008-04-20  Bruno Haible  <bruno@clisp.org>
14215
14216         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
14217         works.
14218         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
14219
14220 2008-04-20  Bruno Haible  <bruno@clisp.org>
14221
14222         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
14223         * modules/tsearch-tests (configure.ac): Test for initstate function.
14224
14225 2008-04-20  Bruno Haible  <bruno@clisp.org>
14226
14227         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
14228         for nlink_t if missing.
14229         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
14230
14231 2008-04-19  Bruno Haible  <bruno@clisp.org>
14232
14233         Work around snprintf bug on Linux libc5.
14234         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
14235         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
14236         gl_SNPRINTF_SIZE1.
14237         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
14238         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
14239         that test failed.
14240         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
14241         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
14242         * modules/snprintf (Files): Add m4/printf.m4.
14243         * modules/vsnprintf (Files): Likewise.
14244         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
14245         * doc/posix-functions/vsnprintf.texi: Likewise.
14246
14247 2008-04-19  Bruno Haible  <bruno@clisp.org>
14248
14249         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
14250         from 0.0058 to less than 10^-7.
14251
14252 2008-04-19  Bruno Haible  <bruno@clisp.org>
14253
14254         Fix rounding when a precision is given.
14255         * lib/vasnprintf.c (is_borderline): New function.
14256         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
14257         9...9x.
14258         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
14259         %e, %g.
14260         * tests/test-vasprintf-posix.c (test_function): Likewise.
14261         * tests/test-snprintf-posix.h (test_function): Likewise.
14262         * tests/test-sprintf-posix.h (test_function): Likewise.
14263         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
14264         * tests/test-printf-posix.h (test_function): Likewise.
14265         * tests/test-printf-posix.output: Update.
14266         Reported by John Darrington <john@darrington.wattle.id.au> via
14267         Ben Pfaff <blp@cs.stanford.edu>.
14268
14269 2008-04-18  Simon Josefsson  <simon@josefsson.org>
14270
14271         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
14272         Suggested by Bruno Haible <bruno@clisp.org>.
14273
14274 2008-04-17  Bruno Haible  <bruno@clisp.org>
14275
14276         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
14277         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
14278         implementation.
14279         Patch by Bruce Merry <bmerry@gmail.com>.
14280
14281 2008-04-17  Simon Josefsson  <simon@josefsson.org>
14282
14283         * doc/posix-functions/strftime.texi (strftime): Mention that %e
14284         doesn't work under Windows.
14285
14286 2008-04-16  Bruno Haible  <bruno@clisp.org>
14287
14288         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
14289         New macros.
14290         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
14291         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
14292         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
14293         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
14294         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
14295         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
14296         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
14297         macros.
14298         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
14299         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
14300         Northern Sotho, Uighur.
14301
14302 2008-04-16  Bruno Haible  <bruno@clisp.org>
14303
14304         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
14305         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
14306         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
14307         Reported by Daniel Bergström <daniel@octocode.com>.
14308
14309 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
14310             Bruno Haible  <bruno@clisp.org>
14311
14312         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
14313         function.
14314         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
14315         New functions, mostly extracted from gl_locale_name_default.
14316         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
14317
14318 2008-04-16  Eric Blake  <ebb9@byu.net>
14319
14320         Adjust strtod detection to catch glibc 2.7 bug.
14321         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
14322         Reported by John Gatewood Ham.
14323
14324 2008-04-16  Bruno Haible  <bruno@clisp.org>
14325
14326         Add tentative support for Linux libc5.
14327         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
14328         * lib/fpurge.c (fpurge): Likewise.
14329         * lib/freadable.c (freadable): Likewise.
14330         * lib/freadahead.c (freadahead): Likewise.
14331         * lib/freading.c (freading): Likewise.
14332         * lib/freadptr.c (freadptr): Likewise.
14333         * lib/freadseek.c (freadptrinc): Likewise.
14334         * lib/fseeko.c (rpl_fseeko): Likewise.
14335         * lib/fseterr.c (fseterr): Likewise.
14336         * lib/fwritable.c (fwritable): Likewise.
14337         * lib/fwriting.c (fwriting): Likewise.
14338         Reported by Alain Guibert <alguibert+bts@free.fr>.
14339
14340 2008-04-15  Bruno Haible  <bruno@clisp.org>
14341
14342         * modules/mathl (configure.ac): Define module indicator.
14343
14344 2008-04-15  Bruno Haible  <bruno@clisp.org>
14345
14346         * lib/logl.c (logl): Remove unused variables.
14347
14348 2008-04-15  Bruno Haible  <bruno@clisp.org>
14349
14350         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
14351         fails.
14352
14353 2008-04-15  Bruno Haible  <bruno@clisp.org>
14354
14355         * lib/trim.c (trim2): Fix argument of isspace() macro.
14356
14357 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
14358
14359         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
14360         to 0.
14361         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
14362
14363 2008-04-14  Bruno Haible  <bruno@clisp.org>
14364
14365         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
14366         AC_LANG_PROGRAM argument.
14367         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
14368         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
14369         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
14370         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
14371         * m4/math_h.m4 (gl_MATH_H): Likewise.
14372         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
14373         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
14374         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
14375         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
14376         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
14377         * m4/regex.m4 (gl_REGEX): Likewise.
14378         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
14379         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
14380         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
14381         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
14382         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
14383         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
14384         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14385         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14386
14387 2008-04-14  Jim Meyering  <meyering@redhat.com>
14388
14389         test-strtod: fix typos: s/abs/fabs/
14390         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
14391
14392 2008-04-13  Bruno Haible  <bruno@clisp.org>
14393
14394         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
14395         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
14396         module is also used and while not building the reloc-wrapper.
14397
14398 2008-04-13  Bruno Haible  <bruno@clisp.org>
14399
14400         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
14401
14402 2008-04-13  Bruno Haible  <bruno@clisp.org>
14403
14404         Fix AIX compilation failure introduced on 2008-04-02.
14405         * tests/test-frexp.c (exp): Undefine before redefining.
14406         * tests/test-frexpl.c (exp): Likewise.
14407
14408 2008-04-13  Bruno Haible  <bruno@clisp.org>
14409
14410         Work around a HP-UX stdio bug.
14411         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
14412         * tests/test-ftello.c (main): Likewise.
14413         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
14414         * doc/posix-functions/ftello.texi: Likewise.
14415
14416 2008-04-13  Bruno Haible  <bruno@clisp.org>
14417
14418         Make test-signbit pass on HP-UX/hppa.
14419         * tests/test-signbit.c (minus_zerol): New variable.
14420         (test_signbitl): Use it.
14421
14422 2008-04-13  Bruno Haible  <bruno@clisp.org>
14423
14424         Make truncl work on OSF/1 4.0.
14425         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
14426         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
14427         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
14428         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
14429         HAVE_DECL_TRUNCL.
14430         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
14431         HAVE_DECL_TRUNCL.
14432         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
14433
14434 2008-04-13  Bruno Haible  <bruno@clisp.org>
14435
14436         * lib/unictype.h: Remove trailing comma from enumeration definitions.
14437
14438 2008-04-13  Bruno Haible  <bruno@clisp.org>
14439
14440         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
14441         expression, so as to avoid HP-UX 11 cc compiler bug.
14442
14443 2008-04-13  Bruno Haible  <bruno@clisp.org>
14444
14445         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
14446
14447 2008-04-13  Bruno Haible  <bruno@clisp.org>
14448
14449         * lib/git-merge-changelog.c: Remove empty declaration outside of
14450         functions.
14451
14452 2008-04-13  Bruno Haible  <bruno@clisp.org>
14453
14454         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
14455
14456 2008-04-13  Bruno Haible  <bruno@clisp.org>
14457
14458         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
14459         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
14460         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
14461         also if it exists but lacks definitions of the SHUT_* macros.
14462         * modules/sys_socket (Description): Update.
14463         Reported by Elbert Pol <e.pol@chello.nl>.
14464
14465 2008-04-13  Bruno Haible  <bruno@clisp.org>
14466
14467         * lib/localcharset.c (OS2): Don't redefine if already defined.
14468         Reported by Elbert Pol <e.pol@chello.nl>.
14469
14470 2008-04-13  Bruno Haible  <bruno@clisp.org>
14471
14472         * lib/binary-io.h [__EMX__]: Include <io.h>.
14473         Reported by Elbert Pol <e.pol@chello.nl>.
14474
14475 2008-04-12  Bruno Haible  <bruno@clisp.org>
14476
14477         * lib/fpucw.h: Enable the definitions also for x86_64.
14478         Needed for NetBSD/x86_64.
14479         Reported by Thomas Klausner <tk@giga.or.at>.
14480
14481 2008-04-12  Bruno Haible  <bruno@clisp.org>
14482
14483         * tests/test-strtod.c: Include isnand.h.
14484         (main): Use isnand instead of isnan.
14485         Reported by Jim Meyering.
14486
14487 2008-04-12  Bruno Haible  <bruno@clisp.org>
14488
14489         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
14490         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
14491
14492 2008-04-12  Jim Meyering  <meyering@redhat.com>
14493
14494         * m4/math_h.m4 (gl_MATH_H): Fix typos.
14495
14496 2008-04-12  Bruno Haible  <bruno@clisp.org>
14497
14498         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
14499         Reported by Elbert Pol <e.pol@chello.nl>.
14500
14501 2008-04-12  Eric Blake  <ebb9@byu.net>
14502
14503         Work around Solaris 10 math.h bug.
14504         * m4/math_h.m4 (gl_MATH_H): Check for bug.
14505         (gl_MATH_H_DEFAULTS): Set up default.
14506         * modules/math (Makefile.am): Replace new indicators.
14507         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
14508         * tests/test-math.c (main): Test this.
14509         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
14510         * doc/posix-headers/math.texi (math.h): Mention bug.
14511         Reported by Nelson H. F. Beebe and Jim Meyering.
14512
14513 2008-04-11  Bruno Haible  <bruno@clisp.org>
14514
14515         Adapt to future versions of Apple GCC.
14516         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
14517         Reported by Peter O'Gorman <peter@pogma.com>.
14518
14519 2008-04-11  Bruno Haible  <bruno@clisp.org>
14520
14521         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
14522
14523 2008-04-11  Bruno Haible  <bruno@clisp.org>
14524
14525         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
14526
14527         * modules/getaddrinfo-tests (Makefile.am): Define
14528         test_getaddrinfo_LDADD.
14529
14530 2008-04-11  Bruno Haible  <bruno@clisp.org>
14531
14532         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
14533         (init): Fix syntax error.
14534         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
14535         is declared.
14536
14537 2008-04-11  Bruno Haible  <bruno@clisp.org>
14538
14539         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
14540         * modules/glob (Depends-on): Add stdbool.
14541
14542 2008-04-11  Bruno Haible  <bruno@clisp.org>
14543
14544         * lib/trim.c: Include <string.h>.
14545
14546 2008-04-11  Eric Blake  <ebb9@byu.net>
14547
14548         Avoid compile failure on OS/2.
14549         * lib/regex_internal.h (internal_function): Disable optimization
14550         on OS/2 (__EMX__), where it caused compiler error.
14551         Reported by Elbert Pol.
14552
14553 2008-04-11  Bruno Haible  <bruno@clisp.org>
14554
14555         Flush the standard error stream before aborting. Needed on mingw.
14556         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
14557         * tests/test-array_list.c (ASSERT): Likewise.
14558         * tests/test-array_oset.c (ASSERT): Likewise.
14559         * tests/test-avltree_list.c (ASSERT): Likewise.
14560         * tests/test-avltree_oset.c (ASSERT): Likewise.
14561         * tests/test-avltreehash_list.c (ASSERT): Likewise.
14562         * tests/test-binary-io.c (ASSERT): Likewise.
14563         * tests/test-byteswap.c (ASSERT): Likewise.
14564         * tests/test-c-ctype.c (ASSERT): Likewise.
14565         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
14566         * tests/test-c-strcasestr.c (ASSERT): Likewise.
14567         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
14568         * tests/test-c-strstr.c (ASSERT): Likewise.
14569         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
14570         * tests/test-canonicalize.c (ASSERT): Likewise.
14571         * tests/test-carray_list.c (ASSERT): Likewise.
14572         * tests/test-ceilf1.c (ASSERT): Likewise.
14573         * tests/test-ceilf2.c (ASSERT): Likewise.
14574         * tests/test-ceill.c (ASSERT): Likewise.
14575         * tests/test-count-one-bits.c (ASSERT): Likewise.
14576         * tests/test-fbufmode.c (ASSERT): Likewise.
14577         * tests/test-fflush2.c (ASSERT): Likewise.
14578         * tests/test-floorf1.c (ASSERT): Likewise.
14579         * tests/test-floorf2.c (ASSERT): Likewise.
14580         * tests/test-floorl.c (ASSERT): Likewise.
14581         * tests/test-fopen.c (ASSERT): Likewise.
14582         * tests/test-fpending.c (ASSERT): Likewise.
14583         * tests/test-fprintf-posix.c (ASSERT): Likewise.
14584         * tests/test-fpurge.c (ASSERT): Likewise.
14585         * tests/test-freadable.c (ASSERT): Likewise.
14586         * tests/test-freadahead.c (ASSERT): Likewise.
14587         * tests/test-freading.c (ASSERT): Likewise.
14588         * tests/test-freadptr.c (ASSERT): Likewise.
14589         * tests/test-freadptr2.c (ASSERT): Likewise.
14590         * tests/test-freadseek.c (ASSERT): Likewise.
14591         * tests/test-freopen.c (ASSERT): Likewise.
14592         * tests/test-frexp.c (ASSERT): Likewise.
14593         * tests/test-frexpl.c (ASSERT): Likewise.
14594         * tests/test-fseek.c (ASSERT): Likewise.
14595         * tests/test-fseeko.c (ASSERT): Likewise.
14596         * tests/test-fstrcmp.c (ASSERT): Likewise.
14597         * tests/test-ftell.c (ASSERT): Likewise.
14598         * tests/test-ftello.c (ASSERT): Likewise.
14599         * tests/test-func.c (ASSERT): Likewise.
14600         * tests/test-fwritable.c (ASSERT): Likewise.
14601         * tests/test-fwriting.c (ASSERT): Likewise.
14602         * tests/test-getdelim.c (ASSERT): Likewise.
14603         * tests/test-getline.c (ASSERT): Likewise.
14604         * tests/test-i-ring.c (ASSERT): Likewise.
14605         * tests/test-iconv-utf.c (ASSERT): Likewise.
14606         * tests/test-iconv.c (ASSERT): Likewise.
14607         * tests/test-isfinite.c (ASSERT): Likewise.
14608         * tests/test-isnand.c (ASSERT): Likewise.
14609         * tests/test-isnanf.c (ASSERT): Likewise.
14610         * tests/test-isnanl.h (ASSERT): Likewise.
14611         * tests/test-ldexpl.c (ASSERT): Likewise.
14612         * tests/test-linked_list.c (ASSERT): Likewise.
14613         * tests/test-linkedhash_list.c (ASSERT): Likewise.
14614         * tests/test-localename.c (ASSERT): Likewise.
14615         * tests/test-lseek.c (ASSERT): Likewise.
14616         * tests/test-mbscasecmp.c (ASSERT): Likewise.
14617         * tests/test-mbscasestr1.c (ASSERT): Likewise.
14618         * tests/test-mbscasestr2.c (ASSERT): Likewise.
14619         * tests/test-mbscasestr3.c (ASSERT): Likewise.
14620         * tests/test-mbscasestr4.c (ASSERT): Likewise.
14621         * tests/test-mbschr.c (ASSERT): Likewise.
14622         * tests/test-mbscspn.c (ASSERT): Likewise.
14623         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
14624         * tests/test-mbspbrk.c (ASSERT): Likewise.
14625         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
14626         * tests/test-mbsrchr.c (ASSERT): Likewise.
14627         * tests/test-mbsspn.c (ASSERT): Likewise.
14628         * tests/test-mbsstr1.c (ASSERT): Likewise.
14629         * tests/test-mbsstr2.c (ASSERT): Likewise.
14630         * tests/test-mbsstr3.c (ASSERT): Likewise.
14631         * tests/test-memchr2.c (ASSERT): Likewise.
14632         * tests/test-memmem.c (ASSERT): Likewise.
14633         * tests/test-open.c (ASSERT): Likewise.
14634         * tests/test-printf-frexp.c (ASSERT): Likewise.
14635         * tests/test-printf-frexpl.c (ASSERT): Likewise.
14636         * tests/test-printf-posix.c (ASSERT): Likewise.
14637         * tests/test-quotearg.c (ASSERT): Likewise.
14638         * tests/test-rbtree_list.c (ASSERT): Likewise.
14639         * tests/test-rbtree_oset.c (ASSERT): Likewise.
14640         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
14641         * tests/test-round1.c (ASSERT): Likewise.
14642         * tests/test-roundf1.c (ASSERT): Likewise.
14643         * tests/test-roundl.c (ASSERT): Likewise.
14644         * tests/test-signbit.c (ASSERT): Likewise.
14645         * tests/test-sleep.c (ASSERT): Likewise.
14646         * tests/test-snprintf-posix.c (ASSERT): Likewise.
14647         * tests/test-snprintf.c (ASSERT): Likewise.
14648         * tests/test-sprintf-posix.c (ASSERT): Likewise.
14649         * tests/test-stat-time.c (ASSERT): Likewise.
14650         * tests/test-strcasestr.c (ASSERT): Likewise.
14651         * tests/test-strerror.c (ASSERT): Likewise.
14652         * tests/test-striconv.c (ASSERT): Likewise.
14653         * tests/test-striconveh.c (ASSERT): Likewise.
14654         * tests/test-striconveha.c (ASSERT): Likewise.
14655         * tests/test-strsignal.c (ASSERT): Likewise.
14656         * tests/test-strstr.c (ASSERT): Likewise.
14657         * tests/test-strtod.c (ASSERT): Likewise.
14658         * tests/test-trunc1.c (ASSERT): Likewise.
14659         * tests/test-trunc2.c (ASSERT): Likewise.
14660         * tests/test-truncf1.c (ASSERT): Likewise.
14661         * tests/test-truncf2.c (ASSERT): Likewise.
14662         * tests/test-truncl.c (ASSERT): Likewise.
14663         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
14664         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
14665         * tests/test-vasnprintf.c (ASSERT): Likewise.
14666         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
14667         * tests/test-vasprintf.c (ASSERT): Likewise.
14668         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
14669         * tests/test-vprintf-posix.c (ASSERT): Likewise.
14670         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
14671         * tests/test-vsnprintf.c (ASSERT): Likewise.
14672         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
14673         * tests/test-wcwidth.c (ASSERT): Likewise.
14674         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
14675         * tests/test-xprintf-posix.c (ASSERT): Likewise.
14676         * tests/test-xvasprintf.c (ASSERT): Likewise.
14677         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
14678         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
14679         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
14680         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
14681         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
14682         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
14683         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
14684         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
14685         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
14686         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
14687         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
14688         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
14689         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
14690         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
14691         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
14692         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
14693         * tests/unictype/test-block_list.c (ASSERT): Likewise.
14694         * tests/unictype/test-block_of.c (ASSERT): Likewise.
14695         * tests/unictype/test-block_test.c (ASSERT): Likewise.
14696         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
14697         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
14698         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
14699         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
14700         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
14701         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
14702         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
14703         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
14704         * tests/unictype/test-combining.c (ASSERT): Likewise.
14705         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
14706         * tests/unictype/test-digit.c (ASSERT): Likewise.
14707         * tests/unictype/test-mirror.c (ASSERT): Likewise.
14708         * tests/unictype/test-numeric.c (ASSERT): Likewise.
14709         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
14710         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
14711         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
14712         * tests/unictype/test-scripts.c (ASSERT): Likewise.
14713         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
14714         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
14715         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
14716         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
14717         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
14718         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
14719         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
14720         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
14721         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
14722         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
14723         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
14724         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
14725         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
14726         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
14727         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
14728         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
14729         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
14730         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
14731         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
14732         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
14733         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
14734         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
14735         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
14736         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
14737         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
14738         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
14739         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
14740         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
14741         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
14742         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
14743         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
14744         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
14745         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
14746         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
14747         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
14748         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
14749         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
14750         Reported by Eric Blake.
14751
14752 2008-04-11  Bruno Haible  <bruno@clisp.org>
14753
14754         * lib/wchar.in.h: Tweak comment.
14755
14756 2008-04-11  Bruno Haible  <bruno@clisp.org>
14757
14758         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
14759         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
14760         gl_COMMON.
14761         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
14762
14763 2008-04-11  Bruno Haible  <bruno@clisp.org>
14764
14765         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
14766
14767 2008-04-11  Simon Josefsson  <simon@josefsson.org>
14768
14769         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
14770         of attempting to use non-existing /dev/*random.  Based on patch
14771         from Adam Strzelecki <ono@java.pl> in
14772         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
14773
14774 2008-04-08  Bruno Haible  <bruno@clisp.org>
14775
14776         Add tentative support for emx+gcc.
14777         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
14778         * lib/fpurge.c (fpurge): Likewise.
14779         * lib/freadable.c (freadable): Likewise.
14780         * lib/freadahead.c (freadahead): Likewise.
14781         * lib/freading.c (freading): Likewise.
14782         * lib/freadptr.c (freadptr): Likewise.
14783         * lib/freadseek.c (freadptrinc): Likewise.
14784         * lib/fseeko.c (rpl_fseeko): Likewise.
14785         * lib/fseterr.c (fseterr): Likewise.
14786         * lib/fwritable.c (fwritable): Likewise.
14787         * lib/fwriting.c (fwriting): Likewise.
14788         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
14789
14790 2008-04-09  Eric Blake  <ebb9@byu.net>
14791
14792         Avoid some autoconf warnings.
14793         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
14794         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
14795         * m4/afs.m4 (gl_AFS): Likewise.
14796         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
14797         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
14798         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
14799         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
14800         (gl_INTEGER_TYPE_SUFFIX): Likewise.
14801         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
14802         (AC_CHECK_DECLS_ONCE): Likewise.
14803         Rename file...
14804         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
14805         gnulib-tool requires autoconf 2.59 or better.
14806         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
14807
14808 2008-04-08  Eric Blake  <ebb9@byu.net>
14809
14810         Use 'git describe --match' if present (added in git 1.5.5).
14811         * build-aux/git-version-gen: Limit result to tags that match 'v*'
14812         if possible.
14813
14814 2008-04-08  Bruno Haible  <bruno@clisp.org>
14815
14816         Add tentative support for OpenServer.
14817         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
14818         _ptr, _cnt.
14819         * lib/fpurge.c (fpurge): Likewise.
14820         * lib/freadable.c (freadable): Likewise.
14821         * lib/freadahead.c (freadahead): Likewise.
14822         * lib/freading.c (freading): Likewise.
14823         * lib/freadptr.c (freadptr): Likewise.
14824         * lib/freadseek.c (freadptrinc): Likewise.
14825         * lib/fseeko.c (rpl_fseeko): Likewise.
14826         * lib/fseterr.c (fseterr): Likewise.
14827         * lib/fwritable.c (fwritable): Likewise.
14828         * lib/fwriting.c (fwriting): Likewise.
14829         Reported by Roger Cornelius <rac@tenzing.org> and
14830         Brian K. White <brian@aljex.com>.
14831
14832 2008-04-06  Jim Meyering  <meyering@redhat.com>
14833
14834         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
14835
14836 2008-04-06  Bruno Haible  <bruno@clisp.org>
14837
14838         Avoid possible error with non-ASCII bytes in UTF-8 locales.
14839         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
14840         * tests/test-printf-posix.sh: Likewise.
14841         * tests/test-vfprintf-posix.sh: Likewise.
14842         * tests/test-vprintf-posix.sh: Likewise.
14843         * tests/test-xprintf-posix.sh: Likewise.
14844
14845 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14846
14847         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
14848         hide error from 'ls', needed on OS/2.
14849         Report by Elbert Pol <elbert.pol@gmail.com>.
14850
14851 2008-04-04  Eric Blake  <ebb9@byu.net>
14852
14853         Make test-fseeko.c failures meaningful.
14854         * tests/test-fseeko.c: Print line number on failure.
14855         * tests/test-fseek.c: Likewise.
14856         Reported by Nelson H. F. Beebe.
14857
14858         Improve strtod bug detection check.
14859         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
14860         required for Solaris 10.
14861         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
14862
14863 2008-04-04  Bruno Haible  <bruno@clisp.org>
14864
14865         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
14866         by m4/setenv.m4.
14867
14868 2008-04-03  Eric Blake  <ebb9@byu.net>
14869
14870         Ensure sane .version contents.
14871         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
14872         version string.
14873         * build-aux/git-version-gen: Improve documentation.
14874
14875         Make GNU make output nicer.
14876         * top/GNUmakefile [!_have-Makefile]: Add dependency on
14877         MAKECMDGOALS to enforce message for all command line targets.  Set
14878         srcdir for use in maint.mk.
14879
14880         Another maintainer tweak.
14881         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
14882         a target that regenerates version.
14883
14884 2008-04-03  Jim Meyering  <meyering@redhat.com>
14885
14886         vc-list-files: don't cause coreutils "make po-check" failure
14887         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
14888
14889 2008-04-03  Eric Blake  <ebb9@byu.net>
14890
14891         Allow VPATH usage of vc-list-files.
14892         * build-aux/vc-list-files (scriptversion): Add timestamp.
14893         (options): Add --help, --version, -C.
14894         (CVS): Support installed cvsu.
14895
14896 2008-04-02  Bruno Haible  <bruno@clisp.org>
14897
14898         Avoid some "statement with no effect" warnings from gcc.
14899         * tests/test-wctype.c (main): Explicitly ignore unused values.
14900         Reported by Jim Meyering.
14901
14902 2008-04-02  Jim Meyering  <meyering@redhat.com>
14903
14904         Avoid some warnings from "gcc -Wshadow".
14905         * tests/test-frexp.c (exp): Define to a different identifier.
14906         * tests/test-frexpl.c (exp): Likewise.
14907
14908 2008-04-03  Jim Meyering  <meyering@redhat.com>
14909
14910         bootstrap: remove dangling *.[ch] symlinks from lib
14911         * build-aux/bootstrap [dangling symlink removal]: Move find's
14912         -depth option to precede all others, to avoid a warning.
14913         Remove *.[ch] files too, and from "$source_base" (usually lib/).
14914
14915 2008-04-02  Bruno Haible  <bruno@clisp.org>
14916
14917         Avoid some warnings from "gcc -Wshadow".
14918         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
14919         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
14920         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
14921         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
14922         Reported by Jim Meyering.
14923
14924 2008-04-01  Bruno Haible  <bruno@clisp.org>
14925
14926         Fix test to work on IRIX 6.5 with cc.
14927         * tests/test-math.c (numeric_equal): New function.
14928         (main): Use it.
14929
14930 2008-04-01  Bruno Haible  <bruno@clisp.org>
14931
14932         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
14933
14934 2008-04-01  Bruno Haible  <bruno@clisp.org>
14935
14936         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
14937         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
14938         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
14939         (Depends-on): Remove math.
14940
14941         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
14942         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
14943         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
14944         (Depends-on): Remove math.
14945
14946         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
14947         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
14948         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
14949         (Depends-on): Remove math.
14950         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
14951         (Depends-on): Remove math.
14952
14953         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
14954         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
14955         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
14956         (Depends-on): Remove math.
14957         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
14958         (Depends-on): Remove math.
14959
14960         * tests/test-round1.c: Include nan.h.
14961         (main): Use NaNd instead of NAN.
14962         * modules/round-tests (Files): Add tests/nan.h.
14963
14964         * tests/test-trunc1.c: Include nan.h.
14965         (main): Use NaNd instead of NAN.
14966         * modules/trunc-tests (Files): Add tests/nan.h.
14967
14968         * tests/test-roundf1.c: Include nan.h.
14969         (main): Use NaNf instead of NAN.
14970         * modules/roundf-tests (Files): Add tests/nan.h.
14971
14972         * tests/test-truncf1.c: Include nan.h.
14973         (main): Use NaNf instead of NAN.
14974         * modules/truncf-tests (Files): Add tests/nan.h.
14975
14976         * tests/test-ceilf1.c: Include nan.h.
14977         (main): Use NaNf instead of NAN.
14978         * modules/ceilf-tests (Files): Add tests/nan.h.
14979
14980         * tests/test-floorf1.c: Include nan.h.
14981         (main): Use NaNf instead of NAN.
14982         * modules/floorf-tests (Files): Add tests/nan.h.
14983
14984         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
14985         (main): Use NaNf instead of NAN.
14986         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
14987
14988         * tests/test-isnand.c: Include nan.h instead of <math.h>.
14989         (main): Use NaNd instead of NAN.
14990         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
14991
14992         * tests/test-frexp.c: Include nan.h.
14993         (main): Use NaNd instead of NAN.
14994         * modules/frexp-tests (Files): Add tests/nan.h.
14995
14996         * lib/isnan.c: Don't include <math.h>.
14997         (FUNC): Don't use NAN macro.
14998         * modules/isnand-nolibm (Depends-on): Remove math.
14999         * modules/isnanf-nolibm (Depends-on): Remove math.
15000         * modules/isnanl (Depends-on): Remove math.
15001         * modules/isnanl-nolibm (Depends-on): Remove math.
15002
15003         * tests/nan.h: New file.
15004
15005 2008-04-01  Eric Blake  <ebb9@byu.net>
15006
15007         Fix typos.
15008         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
15009         values to be the right type.
15010
15011         For now, cater to gnulib strtod inaccuracies.
15012         * tests/test-strtod.c (main): Allow 1-ulp error on expected
15013         fractional results.  While not as nice from a QoI perspective, it
15014         is a quicker patch than correctly implementing decimal to binary
15015         rounding.
15016
15017 2008-03-31  Eric Blake  <ebb9@byu.net>
15018
15019         Guarantee a definition of NAN.
15020         * lib/math.in.h (NAN): Define if missing.
15021         * tests/test-math.c (main): Test it.
15022         * doc/posix-headers/math.texi (math.h): Document this.
15023         * lib/isnan.c (rpl_isnand): Use it.
15024         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
15025         * tests/test-floorf1.c (NaN): Likewise.
15026         * tests/test-frexp.c (NaN): Likewise.
15027         * tests/test-isnand.c (NaN): Likewise.
15028         * tests/test-isnanf.c (NaN): Likewise.
15029         * tests/test-round1.c (NaN): Likewise.
15030         * tests/test-roundf1.c (NaN): Likewise.
15031         * tests/test-snprintf-posix.h (NaN): Likewise.
15032         * tests/test-sprintf-posix.h (NaN): Likewise.
15033         * tests/test-trunc1.c (NaN): Likewise.
15034         * tests/test-truncf1.c (NaN): Likewise.
15035         * tests/test-vasnprintf-posix.c (NaN): Likewise.
15036         * tests/test-vasprintf-posix.c (NaN): Likewise.
15037         * modules/isnand-nolibm (Depends-on): Add math.
15038         * modules/isnanf-nolibm (Depends-on): Likewise.
15039         * modules/isnanl (Depends-on): Likewise.
15040         * modules/isnanl-nolibm (Depends-on): Likewise.
15041         * modules/snprintf-posix-tests (Depends-on): Likewise.
15042         * modules/sprintf-posix-tests (Depends-on): Likewise.
15043         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
15044         * modules/vsprintf-posix-tests (Depends-on): Likewise.
15045         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
15046         * modules/vasprintf-posix-tests (Depends-on): Likewise.
15047
15048 2008-03-31  Bruno Haible  <bruno@clisp.org>
15049
15050         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
15051         * doc/posix-functions/strtod.texi: Likewise.
15052
15053 2008-03-31  Bruno Haible  <bruno@clisp.org>
15054
15055         * tests/test-strtod.c (main): Don't use C99 syntax.
15056
15057 2008-03-31  Bruno Haible  <bruno@clisp.org>
15058
15059         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
15060         Reported by Eric Blake.
15061
15062 2008-03-31  Jim Meyering  <meyering@redhat.com>
15063
15064         Don't compare actual signbit return values.
15065         * tests/test-strtod.c (main): Rather, compare only their
15066         zero/non-zero nature.
15067
15068 2008-03-31  Eric Blake  <ebb9@byu.net>
15069
15070         More strtod documentation.
15071         * doc/posix-functions/strtod.texi (strtod): Interpret more test
15072         failures as distinct bugs.
15073
15074 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
15075
15076         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
15077         Problem reported by Erik Benada in
15078         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
15079
15080 2008-03-30  Bruno Haible  <bruno@clisp.org>
15081
15082         * tests/test-strtod.c: Add comments about which assertion fails on which
15083         platform.
15084         * doc/posix-functions/strtod.texi: Add info about many more platforms.
15085
15086 2008-03-30  Eric Blake  <ebb9@byu.net>
15087
15088         Test signbit behavior on zeros.
15089         * tests/test-signbit.c (test_signbitf): Add tests for zero.
15090         (test_signbitd, test_signbitl): Likewise.
15091
15092         More strtod touchups.
15093         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
15094         sign of negative underflow, for now.  Use .5, not .1.
15095         * doc/posix-functions/strtod.texi (strtod): Mention these
15096         limitations.
15097         Reported by Jim Meyering.
15098
15099 2008-03-30  Bruno Haible  <bruno@clisp.org>
15100
15101         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
15102         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
15103
15104 2008-03-30  Bruno Haible  <bruno@clisp.org>
15105
15106         Avoid failure when attempting to return empty iconv results on some
15107         platforms.
15108         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
15109         allocation, don't report ENOMEM when the resulting string is empty.
15110
15111 2008-03-30  Bruno Haible  <bruno@clisp.org>
15112
15113         Fix buffer overrun.
15114         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
15115         Don't consider the width for tmp_length. Check count against tmp_length
15116         before doing the padding. Ensure enough allocation during padding.
15117
15118 2008-03-30  Eric Blake  <ebb9@byu.net>
15119
15120         strtod touchups.
15121         * lib/strtod.c (strtod): Avoid compiler warnings.
15122         Reported by Jim Meyering.
15123
15124 2008-03-30  Bruno Haible  <bruno@clisp.org>
15125
15126         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
15127         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
15128         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
15129         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
15130         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
15131         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
15132         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
15133         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
15134
15135         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
15136         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
15137         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
15138         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
15139         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
15140         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
15141         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
15142         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
15143
15144         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
15145         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
15146         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
15147         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
15148         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
15149         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
15150         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
15151         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
15152
15153         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
15154         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
15155
15156         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
15157         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
15158
15159         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
15160         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
15161
15162         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
15163         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
15164         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
15165
15166         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
15167         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
15168         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
15169
15170         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
15171         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
15172         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
15173
15174         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
15175         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
15176         * modules/vasprintf (Depends-on): Add EOVERFLOW.
15177
15178         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
15179         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
15180         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
15181         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
15182         (Depends-on): Add EOVERFLOW.
15183         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
15184         (Depends-on): Add EOVERFLOW.
15185         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
15186         (Depends-on): Add EOVERFLOW.
15187         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
15188         (Depends-on): Add EOVERFLOW.
15189         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
15190         (Depends-on): Add EOVERFLOW.
15191         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
15192         (Depends-on): Add EOVERFLOW.
15193         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
15194         (Depends-on): Add EOVERFLOW.
15195         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
15196         (Depends-on): Add EOVERFLOW.
15197
15198         * lib/sprintf.c (EOVERFLOW): Remove fallback.
15199         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
15200         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
15201
15202         * lib/snprintf.c (EOVERFLOW): Remove fallback.
15203         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
15204         * modules/snprintf (Depends-on): Add EOVERFLOW.
15205
15206         * lib/poll.c (EOVERFLOW): Remove fallback.
15207         * modules/poll (Depends-on): Add EOVERFLOW.
15208
15209         * lib/getugroups.c (EOVERFLOW): Remove fallback.
15210         * modules/getugroups (Depends-on): Add EOVERFLOW.
15211
15212         * lib/getdelim.c (EOVERFLOW): Remove fallback.
15213         * modules/getdelim (Depends-on): Add EOVERFLOW.
15214
15215         * lib/ftell.c (EOVERFLOW): Remove fallback.
15216         * modules/ftell (Depends-on): Add EOVERFLOW.
15217
15218         * lib/fprintf.c (EOVERFLOW): Remove fallback.
15219         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
15220         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
15221
15222         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
15223
15224         * modules/EOVERFLOW-tests: New file.
15225         * tests/test-EOVERFLOW.c: New file.
15226
15227         * modules/EOVERFLOW: New file.
15228         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
15229
15230 2008-03-30  Bruno Haible  <bruno@clisp.org>
15231
15232         Fix bug introduced on 2007-06-10.
15233         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
15234         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
15235
15236 2008-03-30  Bruno Haible  <bruno@clisp.org>
15237
15238         Improve freadseek's efficiency after ungetc.
15239         * lib/freadseek.c: Include freadahead.h.
15240         (freadptrinc): New function, extracted from freadseek.
15241         (freadseek): Use it in a loop. Use freadahead to determine the number
15242         of loop iterations.
15243         * modules/freadseek (Depends-on): Add freadahead.
15244         (configure.ac): Require AC_C_INLINE.
15245
15246 2008-03-30  Bruno Haible  <bruno@clisp.org>
15247
15248         * lib/freadseek.c (freadseek): Don't ignore the return value of
15249         freadptr.
15250
15251 2008-03-29  Eric Blake  <ebb9@byu.net>
15252
15253         Add hex float support.
15254         * modules/strtod (Depends-on): Add c-ctype.
15255         (Link): Mention POW_LIB.
15256         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
15257         whitespace between 'e' and exponent.
15258         * tests/test-strtod.c (main): Enable hex float tests.
15259         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
15260         now provides.
15261
15262         Document various strtod bugs, with some fixes.
15263         * doc/posix-functions/strtod.texi (strtod): Document bugs with
15264         "-0x", "inf", "nan", and hex constants.
15265         * doc/posix-functions/atof.texi (atof): Likewise.
15266         * modules/stdlib (Makefile.am): Support strtod.
15267         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
15268         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
15269         detect additional strtod bugs.
15270         * lib/stdlib.in.h (rpl_strtod): Add declarations.
15271         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
15272         bool where appropriate.  Parse 'inf' and 'nan'.
15273         * tests/test-strtod.c: New file.
15274         * modules/strtod (Depends-on): Add stdbool, stdlib.
15275         (configure.ac): Turn on module indicator.
15276         * modules/strtod-tests: New module.
15277
15278 2008-03-29  Eric Blake  <ebb9@byu.net>
15279
15280         Fix ftell on mingw.
15281         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
15282         * modules/ftell-tests (Depends-on): Add binary-io.
15283         * modules/ftello-tests (Depends-on): Likewise.
15284         * tests/test-ftell.c (main): Enhance test to cover behavior after
15285         ungetc.  Enforce binary mode.
15286         * tests/test-ftello.c (main): Likewise.
15287
15288         Pass test-freadseek on cygwin.
15289         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
15290         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
15291         ungetc buffer.
15292
15293         * tests/test-fflush2.c (main): Fix typo.
15294
15295 2008-03-29  Bruno Haible  <bruno@clisp.org>
15296
15297         * tests/test-fflush2.c (main): Temporarily disable the contents of
15298         this test.
15299         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
15300         Reported by Eric Blake.
15301
15302 2008-03-28  Simon Josefsson  <simon@josefsson.org>
15303
15304         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
15305         (GC_SHA224_DIGEST_SIZE): Add.
15306
15307         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
15308         (gc_hash_digest_length): Likewise.
15309         (gc_hash_buffer): Likewise.
15310
15311 2008-03-25  Bruno Haible  <bruno@clisp.org>
15312
15313         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
15314         detail which gettext release to use.
15315         Reported by Simon Josefsson.
15316
15317 2008-03-26  Jim Meyering  <meyering@redhat.com>
15318
15319         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
15320         * modules/gnumakefile (clean-GNUmakefile): Also, use
15321         test ... && ... || : syntax rather than if-then ... fi.
15322
15323         gnumakefile: Don't double-quote-expand $(VPATH) value.
15324         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
15325
15326 2008-03-24  Eric Blake  <ebb9@byu.net>
15327
15328         Alter GNUmakefile to install into top directory.
15329         * modules/maintainer-makefile: Split, and add dependency...
15330         * modules/gnumakefile: to this new module.
15331         * build-aux/GNUmakefile: Move...
15332         * top/GNUmakefile: ...here.
15333         * build-aux/maint.mk: Move...
15334         * top/maint.mk: ...here.
15335         * MODULES.html.sh (Support for maintaining...): Document new
15336         module.
15337
15338 2008-03-23  Bruno Haible  <bruno@clisp.org>
15339
15340         * gnulib-tool: New options --vc-files, --no-vc-files.
15341         (func_usage): Document them.
15342         (vc_files): New variable.
15343         (func_import): Consider vc_files.
15344         (func_create_testdir): Set vc_files to empty.
15345         Suggested by Jim Meyering and Karl Berry.
15346
15347 2008-03-23  Bruno Haible  <bruno@clisp.org>
15348
15349         Fix regex compilation error on HP-UX 11.
15350         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
15351         * modules/regex (Files): Add m4/mbstate_t.m4.
15352         Reported by Ton Voon <ton.voon@altinity.com>.
15353
15354 2008-03-23  Bruno Haible  <bruno@clisp.org>
15355
15356         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
15357
15358 2008-03-23  Eric Blake  <ebb9@byu.net>
15359             Bruno Haible  <bruno@clisp.org>
15360
15361         Install files from top/ in the destination directory.
15362         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
15363         augmentation also for the files from top/.
15364         (func_import, func_create_testdir): Rewrite file names:
15365         top/filename -> filename.
15366
15367 2008-03-23  Bruno Haible  <bruno@clisp.org>
15368
15369         Tweak "gnulib --version" output.
15370         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
15371
15372 2008-03-23  Bruno Haible  <bruno@clisp.org>
15373
15374         Tweak "gnulib --version" output.
15375         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
15376         rather than contents of ChangeLog, when possible.
15377
15378 2008-03-21  Eric Blake  <ebb9@byu.net>
15379
15380         More --version tweaks.
15381         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
15382         date of last ChangeLog entry.
15383
15384 2008-03-21  Jim Meyering  <meyering@redhat.com>
15385
15386         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
15387
15388 2008-03-20  Eric Blake  <ebb9@byu.net>
15389
15390         VPATH fix.
15391         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
15392
15393 2008-03-20  Simon Josefsson  <simon@josefsson.org>
15394
15395         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
15396         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
15397
15398 2008-03-20  Eric Blake  <ebb9@byu.net>
15399
15400         Sync GNUmakefile with coreutils.
15401         * build-aux/GNUmakefile (have-Makefile): Rename...
15402         (_have-Makefile): ...to this, for namespace consideration.
15403         (GNUmakefile.cfg): Include, if present.
15404         (_autoreconf): Define a default.
15405         (_is-dist-target): New rule for rebuilds to pick up intra-release
15406         version.
15407         (maint-cfg.mk): Rename...
15408         (cfg.mk): ...to this.
15409
15410 2008-03-18  Jim Meyering  <meyering@redhat.com>
15411
15412         New script and module: mktempd
15413         * MODULES.html.sh (maint+release support): Add mktempd.
15414         * build-aux/mktempd: New file.
15415         * modules/mktempd: New file.
15416
15417 2008-03-15  Jim Meyering  <meyering@redhat.com>
15418
15419         Undo last change.
15420         * lib/sha1.c, lib/md5.c: 63 != ~63.
15421         Reported by Andreas Schwab.
15422
15423         sha1.c, md5.c: Hoist a redundant expression.
15424         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
15425         "ctx->buflen" only once, before calling *_process_block.
15426         * lib/md5.c (md5_process_bytes): Likewise.
15427
15428 2008-03-14  Eric Blake  <ebb9@byu.net>
15429
15430         Bump copyright year in files generated by gnulib-tool.
15431         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
15432         gnulib-tool, rather than hard-coding it.
15433
15434         Fix 'gnulib-tool --version' output to work with git.
15435         * gnulib-tool (func_gnulib_dir): New function, extracted from...
15436         (startup): ...here.
15437         (func_version): Use it to invoke git-version-gen, rather than
15438         relying on CVS keyword expansion.  Modernize wording.
15439         (cvsdatestamp, last_checkin_date, version): Kill unused
15440         variables.
15441
15442 2008-03-12  Jim Meyering  <meyering@redhat.com>
15443
15444         Recognize optional cast of the argument to free.
15445         * build-aux/useless-if-before-free: Update regexps.
15446
15447         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
15448
15449 2008-03-11  Bruno Haible  <bruno@clisp.org>
15450
15451         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
15452         by a single package.
15453         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
15454         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
15455         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
15456         Reported by Sam Steingold <sds@gnu.org>.
15457
15458 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15459
15460         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
15461         repositories.
15462
15463 2008-03-11  Bruno Haible  <bruno@clisp.org>
15464
15465         Avoid conflicts between local macro definitions.
15466         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
15467         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
15468
15469 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
15470             Bruno Haible  <bruno@clisp.org>
15471
15472         Make va_copy work with some version of xlc on AIX 5.1.
15473         * lib/stdarg.in.h: New file.
15474         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
15475         On AIX, use a <stdarg.h> file substitute.
15476         * modules/stdarg (Files): Add lib/stdarg.in.h.
15477         (Depends-on): Add include_next.
15478         (Makefile.am): Build a stdarg.h substitute if requested.
15479         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
15480
15481 2008-03-10  Bruno Haible  <bruno@clisp.org>
15482
15483         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
15484         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
15485         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
15486
15487 2008-03-10  Bruno Haible  <bruno@clisp.org>
15488
15489         * modules/stdlib (Depends-on): Add include_next, remove
15490         absolute-header.
15491
15492 2008-03-09  Bruno Haible  <bruno@clisp.org>
15493
15494         * lib/freadahead.h (freadahead): Document more precisely.
15495         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
15496         the sum of both buffer sizes.
15497         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
15498         * NEWS: Document the change.
15499
15500 2008-03-09  Bruno Haible  <bruno@clisp.org>
15501
15502         Extend freadptr to return also the buffer size.
15503         * lib/freadptr.h (freadptr): Add sizep argument.
15504         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
15505         (freadptr): Add sizep argument. Determine buffer size like freadahead
15506         does.
15507         * tests/test-freadptr.c: Don't include freadahead.h.
15508         (main): Adapt for new calling convention of freadptr.
15509         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
15510         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
15511         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
15512         tests/test-freadptr2.sh.
15513         (Depends): Remove freadahead.
15514         (TESTS): Add test-freadptr2.sh.
15515         (check_PROGRAMS): Add test-freadptr2.
15516
15517 2008-03-09  Bruno Haible  <bruno@clisp.org>
15518
15519         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
15520         Report and solution by Simon Josefsson.
15521
15522 2008-03-06  Bruno Haible  <bruno@clisp.org>
15523
15524         Make fflush after ungetc work on BSD platforms.
15525         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
15526         * tests/test-fflush2.c: New file.
15527         * tests/test-fflush2.sh: New file.
15528         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
15529         tests/test-fflush2.c.
15530         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
15531         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
15532
15533 2008-03-06  Eric Blake  <ebb9@byu.net>
15534
15535         Likewise for ftello.
15536         * modules/ftello (Dependencies): Add extensions.
15537         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
15538
15539 2008-03-06  Bruno Haible  <bruno@clisp.org>
15540
15541         * modules/fseeko (Dependencies): Add extensions.
15542         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
15543         Needed on glibc systems.
15544
15545 2008-03-06  Bruno Haible  <bruno@clisp.org>
15546
15547         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
15548         email address.
15549         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
15550
15551 2008-03-06  Bruno Haible  <bruno@clisp.org>
15552
15553         * users.txt: Add libgnupdf.
15554
15555 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15556
15557         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
15558         (Header File Substitutes, Function Substitutes,
15559         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
15560         (Build robot for gnulib): Fix typo.
15561
15562 2008-03-06  Bruno Haible  <bruno@clisp.org>
15563
15564         * doc/gnulib-tool.texi (VCS Issues): Small updates.
15565         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
15566
15567 2008-03-06  Bruno Haible  <bruno@clisp.org>
15568
15569         * doc/func.texi: New file, extracted from doc/gnulib.texi.
15570         * doc/gnulib.texi: Include it.
15571
15572 2008-03-06  Simon Josefsson  <simon@josefsson.org>
15573
15574         * modules/func (License): Change license to unlimited; there was
15575         no LGPL parts in the module anyway.
15576
15577 2008-03-06  Simon Josefsson  <simon@josefsson.org>
15578
15579         * modules/__func__: Renamed to modules/func.
15580         * modules/__func__-tests: Renamed to modules/func-tests.
15581         * tests/test-__func__.c: Renamed to tests/test-func.c.
15582         * m4/__func__.m4: Renamed to m4/func.m4.
15583         * doc/gnulib.texi (__func__): Section renamed to func.
15584         Suggested by Eric Blake <ebb9@byu.net>.
15585
15586 2008-03-06  Simon Josefsson  <simon@josefsson.org>
15587
15588         * doc/gnulib.texi (__func__): Use C99 terminology when talking
15589         about __func__.  Make example self-contained.  Suggested by Eric
15590         Blake <ebb9@byu.net>.
15591
15592         * tests/test-__func__.c (main): Avoid extraneous () around __func.
15593         Suggested by Eric Blake <ebb9@byu.net>.
15594
15595 2008-03-06  Simon Josefsson  <simon@josefsson.org>
15596
15597         * modules/__func__: New file.
15598         * modules/__func__-tests: New file.
15599         * tests/test-__func__.c: New file.
15600         * m4/__func__.m4: New file.
15601         * doc/gnulib.texi (__func__): Document __func__ module.
15602
15603 2008-03-05  Simon Josefsson  <simon@josefsson.org>
15604
15605         * modules/byteswap (License): Re-license as LGPLv2+.
15606
15607 2008-03-05  Simon Josefsson  <simon@josefsson.org>
15608
15609         * doc/Makefile: Add pdf target.
15610
15611 2008-03-05  Simon Josefsson  <simon@josefsson.org>
15612
15613         * modules/inline (License): Use 'unlimited', since there are only
15614         *.m4 files in this module.
15615
15616 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
15617             Bruno Haible  <bruno@clisp.org>
15618
15619         Add support for HP C 7.1 on OpenVMS 8.3.
15620         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
15621
15622 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
15623
15624         Update VMS specifics.
15625         * lib/getopt.c [VMS]: Remove include of unixlib.h.
15626
15627 2008-03-02  Jim Meyering  <meyering@redhat.com>
15628
15629         Remove the last dependency on the "free" module.
15630         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
15631         Reported by Bob Proulx.
15632
15633         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
15634
15635         Remove useless "if" tests before free.  Deprecate "free" module.
15636         * doc/posix-functions/free.texi: Mention that this
15637         module is no longer useful.
15638         * modules/free (Notice): Say this module is obsolete.
15639         * modules/readutmp (Depends-on): Remove free.
15640         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
15641         * lib/putenv.c (putenv): Likewise.
15642         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
15643         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
15644         * tests/test-c-strcasestr.c (main): Likewise.
15645         * tests/test-c-strstr.c (main): Likewise.
15646         * tests/test-mbscasestr1.c (main): Likewise.
15647         * tests/test-mbscasestr2.c (main): Likewise.
15648         * tests/test-mbsstr1.c (main): Likewise.
15649         * tests/test-mbsstr2.c (main): Likewise.
15650         * tests/test-memmem.c (main): Likewise.
15651         * tests/test-strcasestr.c (main): Likewise.
15652         * tests/test-striconv.c (main): Likewise.
15653         * tests/test-striconveh.c (main): Likewise.
15654         * tests/test-striconveha.c (main): Likewise.
15655         * tests/test-strstr.c (main): Likewise.
15656
15657         * build-aux/git-version-gen: Adjust a comment and the Usage string.
15658
15659         bootstrap: sync from coreutils again
15660         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
15661
15662 2008-03-01  Jim Meyering  <meyering@redhat.com>
15663
15664         bootstrap: sync from coreutils
15665         * build-aux/bootstrap (update_po_files): Copy a .po file into place
15666         also when the target doesn't exist.
15667
15668 2008-03-01  Eric Blake  <ebb9@byu.net>
15669
15670         Fix bugs in last patch.
15671         * lib/memchr2.c (memchr2): Fix typo.
15672         * tests/test-memchr2.c: Test previous bug, and don't use GNU
15673         extension.
15674         Reported by Bruce Korb.
15675
15676         New module 'memchr2'.
15677         * modules/memchr2: New file.
15678         * modules/memchr2-tests: Likewise.
15679         * lib/memchr2.h: Likewise.
15680         * lib/memchr2.c: Likewise, based on memchr.c.
15681         * tests/test-memchr2.c: New test.
15682         * MODULES.html.sh (String handling): Add memchr2.
15683
15684 2008-02-29  Bruno Haible  <bruno@clisp.org>
15685
15686         * modules/freadseek-tests: New file.
15687         * tests/test-freadseek.sh: New file.
15688         * tests/test-freadseek.c: New file.
15689
15690         New module 'freadseek'.
15691         * modules/freadseek: New file.
15692         * lib/freadseek.h: New file.
15693         * lib/freadseek.c: New file.
15694         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
15695
15696 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
15697
15698         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
15699         wydawca.
15700
15701         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
15702         program_invocation_name and program_invocation_short_name are
15703         present.
15704
15705 2008-02-28  Bruno Haible  <bruno@clisp.org>
15706
15707         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
15708         * tests/test-freadptr.sh: Also test non-seekable stdin.
15709
15710 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
15711
15712         * build-aux/bootstrap (source_base, m4_base)
15713         (doc_base, tests_base): New variables.
15714         (gnulib_tool_options): Do not hardcode base directories, use
15715         the above variables instead.
15716
15717 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
15718
15719         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
15720
15721 2008-02-28  Bruno Haible  <bruno@clisp.org>
15722
15723         * modules/freadptr-tests: New file.
15724         * tests/test-freadptr.sh: New file.
15725         * tests/test-freadptr.c: New file.
15726
15727         New module 'freadptr'.
15728         * modules/freadptr: New file.
15729         * lib/freadptr.h: New file.
15730         * lib/freadptr.c: New file.
15731         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
15732
15733 2008-02-26  Karl Berry  <karl@freefriends.org>
15734
15735         Sync from Libtool:
15736         * libltdl/argz.c (argz_add, argz_count): New functions.
15737         * libltdl/argz.in.h: Declare them.
15738         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
15739
15740 2008-02-22  Bruno Haible  <bruno@clisp.org>
15741
15742         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
15743         is a pointer type.  Needed for HP-UX 10.
15744         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
15745         * doc/posix-functions/gmtime_r.texi: Likewise.
15746         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
15747
15748 2008-02-24  Bruno Haible  <bruno@clisp.org>
15749
15750         * modules/environ-tests: New file.
15751         * tests/test-environ.c: New file.
15752
15753         New module 'environ'.
15754         * modules/environ: New file.
15755         * lib/unistd.in.h (environ): New declaration.
15756         * m4/environ.m4: New file.
15757         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
15758         after use.
15759         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
15760         HAVE_DECL_ENVIRON.
15761         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
15762         HAVE_DECL_ENVIRON.
15763         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
15764         wrong claim that 'environ' is missing on some systems.
15765         * modules/execute (Depends-on): Add environ.
15766         * lib/execute.c (environ): Remove fallback declaration.
15767         * modules/pipe (Depends-on): Add environ.
15768         * lib/pipe.c (environ): Remove fallback declaration.
15769         * modules/setenv (Depends-on): Add environ.
15770         * lib/setenv.c (environ): Remove fallback declaration.
15771         * modules/unsetenv (Depends-on): Add environ.
15772         * lib/unsetenv.c (environ): Remove fallback declaration.
15773         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
15774         m4/environ.m4.
15775         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
15776         (gl_PREREQ_UNSETENV): Likewise.
15777
15778 2008-02-24  Bruno Haible  <bruno@clisp.org>
15779
15780         * doc/posix-functions/environ.texi: Document the MacOS X problem.
15781
15782 2008-02-20  Bob Proulx  <bob@proulx.com>
15783
15784         Enable use of older two part flavor 'git describe'.
15785         * build-aux/git-version-gen: If using the older two part flavor of
15786         git version then recreate the third part now present in the
15787         newer three part flavor of git describe.
15788
15789 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
15790
15791         * lib/fts.c (fts_build): Typo correction to comment.
15792
15793 2008-02-17  Bruno Haible  <bruno@clisp.org>
15794
15795         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
15796         generating no-op conflicts.
15797
15798 2008-02-17  Bruno Haible  <bruno@clisp.org>
15799
15800         Speed up by 10%.
15801         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
15802         result_entries, rather than an index-based loop.
15803
15804 2008-02-17  Bruno Haible  <bruno@clisp.org>
15805
15806         Speed up by 25%.
15807         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
15808         'hashcode_cached'.
15809         (entry_create): New function.
15810         (entry_hashcode): Use the cached hashcode if possible.
15811         (read_changelog_file, try_split_merged_entry): Use entry_create.
15812
15813 2008-02-17  Bruno Haible  <bruno@clisp.org>
15814
15815         Speed up from O(n^2) to O(n) for long ChangeLog files.
15816         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
15817         (read_changelog_file): Change implementation of entries_reversed list
15818         to rbtreehash.
15819         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
15820
15821 2008-02-17  Bruno Haible  <bruno@clisp.org>
15822
15823         New option --split-merged-entry.
15824         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
15825         (find_paragraph_end, try_split_merged_entry): New functions.
15826         (long_options): Add option --split-merged-entry.
15827         (usage): Document option --split-merged-entry.
15828         (main): Implement option --split-merged-entry.
15829         Reported by Eric Blake.
15830
15831 2008-02-17  Bruno Haible  <bruno@clisp.org>
15832
15833         * lib/git-merge-changelog.c: Include c-strstr.h.
15834         (main): Support the "git pull --rebase" situation.
15835         * modules/git-merge-changelog (Depends-on): Add c-strstr.
15836         Reported by Eric Blake.
15837
15838 2008-02-16  Eric Blake  <ebb9@byu.net>
15839
15840         Avoid doubling \ in common case of "c-maybe" quoting style.
15841         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
15842         eliding outer quotes.
15843         * lib/quotearg.h: Document this.
15844         * tests/test-quotearg.c (result_strings, inputs, results_g)
15845         (flag_results, locale_results): Test it by adding a new string to
15846         each test group.
15847         (compare_strings): Test new string.
15848
15849 2008-02-13  Eric Blake  <ebb9@byu.net>
15850
15851         Avoid trigraph quoting in default output.
15852         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
15853         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
15854         unless explicitly requested.
15855         * tests/test-quotearg.c (flag_results, main): Add additional tests.
15856
15857 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
15858
15859         Don't rely on signed integer overflowing to negative value.
15860         * lib/getugroups.c (getugroups): Include <limits.h>.
15861         Instead, compare against INT_MAX, and increment only if the test passes.
15862
15863 2008-02-13  Jim Meyering  <meyering@redhat.com>
15864         and Eric Blake  <ebb9@byu.net>
15865
15866         Avoid shadowing warning and compile errors on Linux.
15867         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
15868         forwarding macros on Linux.
15869         (dcgettext): Define a stub, for Linux.
15870         (results_g, main): Avoid warnings.
15871
15872 2008-02-12  Eric Blake  <ebb9@byu.net>
15873
15874         Silence warning in last patch.
15875         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
15876
15877         Quotearg part 4: add tests, fix c-maybe colon quoting.
15878         * lib/quotearg.h: Improve documentation.
15879         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
15880         escapes when adding outer quotes.  When quoting trigraphs, use
15881         valid C notation.  When quoting NUL, omit extra characters if next
15882         character is not digit.  Alter prototype.
15883         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
15884         callers.
15885         * modules/quotearg-tests: New module.
15886         * tests/test-quotearg.c: New test.
15887
15888 2008-02-07  Eric Blake  <ebb9@byu.net>
15889
15890         Quotearg part 3: add flag to control outer quote elision.
15891         * lib/quotearg.h (c_maybe_quoting_style): New style.
15892         (enum quoting_flags): Better documentation of flags.
15893         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
15894         c-maybe style.
15895         (quotearg_buffer_restyled): Handle new flag to elide outer
15896         quotes.
15897
15898         Quotearg part 2: add flag that can control NUL elision.
15899         * lib/quotearg.h (set_quoting_flags): New prototype.
15900         * lib/quotearg.c (struct quoting_options): Add flag field.
15901         (set_quoting_flags): New function.
15902         (quotearg_buffer_restyled): Add flags parameter.
15903         (quotearg_alloc_mem): Set the flag if length cannot be returned.
15904         (quotearg_n_options): Set the flag, since length cannot be
15905         returned.
15906         (quoting_options_from_style): Default flags correctly.
15907
15908         Quotearg part 1: more wrappers, restore quotearg_char state.
15909         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
15910         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
15911         (quotearg_colon_mem): New wrappers.
15912         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
15913         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
15914         functions.
15915         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
15916         (quotearg_colon_mem): New functions.
15917
15918 2008-02-11  Bruno Haible  <bruno@clisp.org>
15919
15920         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
15921         library in the current directory: it does not work with parallel make.
15922         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
15923
15924 2008-02-11  Bruno Haible  <bruno@clisp.org>
15925
15926         * .gitattributes: New file.
15927
15928 2008-02-11  Jim Meyering  <meyering@redhat.com>
15929
15930         useless-if-before-free: Fix reversed exit values.
15931         * build-aux/useless-if-before-free: Use correct values
15932         for EXIT_MATCH and EXIT_NO_MATCH.
15933
15934         * build-aux/useless-if-before-free: Close stdout carefully.
15935
15936 2008-02-10  Bruno Haible  <bruno@clisp.org>
15937
15938         New module 'git-merge-changelog'.
15939         * modules/git-merge-changelog: New file.
15940         * lib/git-merge-changelog.c: New file.
15941
15942 2008-02-10  Jim Meyering  <meyering@redhat.com>
15943
15944         useless-if-before-free: New option: --list (-l).
15945
15946         useless-if-before-free: Don't exit immediately upon open failure.
15947         * build-aux/useless-if-before-free: Exit 2 for errors.
15948         Upon failure to open a file, don't exit immediately.
15949         Rather, just warn and continue with any remaining files.
15950
15951 2008-02-10  Bruno Haible  <bruno@clisp.org>
15952
15953         New abstract list operation 'node_set_value'.
15954         * lib/gl_list.h (gl_list_node_set_value): New function.
15955         (struct gl_list_implementation): New field node_set_value.
15956         * lib/gl_list.c (gl_list_node_set_value): New function.
15957         * lib/gl_array_list.c (gl_array_node_set_value): New function.
15958         (gl_array_list_implementation): Update.
15959         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
15960         (gl_carray_list_implementation): Update.
15961         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
15962         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
15963         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
15964         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
15965         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
15966         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
15967         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
15968         Update.
15969         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
15970         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
15971         (gl_sublist_list_implementation): Update.
15972
15973 2008-02-10  Bruno Haible  <bruno@clisp.org>
15974
15975         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
15976         Needed when ELEMENT is #defined to 'some_type *'.
15977
15978 2008-02-10  Jim Meyering  <meyering@redhat.com>
15979
15980         New script and module: useless-if-before-free
15981         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
15982         * build-aux/useless-if-before-free: New file.
15983         * modules/useless-if-before-free: New file.
15984
15985         * build-aux/gitlog-to-changelog: Use committer date, not author date.
15986
15987         xstrtol_error: Fix typo.
15988         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
15989         s/exit_failure/exit_status/.
15990
15991 2008-02-09  Jim Meyering  <meyering@redhat.com>
15992
15993         New script and module: gitlog-to-changelog
15994         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
15995         * modules/gitlog-to-changelog: New file.
15996         * build-aux/gitlog-to-changelog: New file.
15997
15998 2008-02-08  Jim Meyering  <meyering@redhat.com>
15999
16000         Avoid two "parameter unused" warnings.
16001         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
16002         Mark "st" as used.
16003
16004         Use "git COMMAND", not "git-COMMAND".
16005         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
16006         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
16007         * build-aux/git-version-gen: Use "git status", not "git-status".
16008
16009 2008-02-07  Bruno Haible  <bruno@clisp.org>
16010
16011         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
16012         Avoids a crash on Windows Vista.
16013         Reported by Adam Strzelecki <ono@java.pl> via
16014         Simon Josefsson <simon@josefsson.org>.
16015
16016 2008-02-06  Bruno Haible  <bruno@clisp.org>
16017
16018         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
16019         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
16020         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
16021         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
16022         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
16023         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
16024         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
16025         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
16026         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16027         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16028         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16029         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16030         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16031         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16032         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16033         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
16034         left-adjust flag.
16035         * tests/test-snprintf-posix.h (test_function): Likewise.
16036         * tests/test-sprintf-posix.h (test_function): Likewise.
16037         * tests/test-vasprintf-posix.c (test_function): Likewise.
16038         * doc/posix-functions/fprintf.texi: Update.
16039         * doc/posix-functions/printf.texi: Update.
16040         * doc/posix-functions/snprintf.texi: Update.
16041         * doc/posix-functions/sprintf.texi: Update.
16042         * doc/posix-functions/vfprintf.texi: Update.
16043         * doc/posix-functions/vprintf.texi: Update.
16044         * doc/posix-functions/vsnprintf.texi: Update.
16045         * doc/posix-functions/vsprintf.texi: Update.
16046         Reported by Peter Fales <psfales@alcatel-lucent.com>.
16047
16048 2008-02-06  Bruno Haible  <bruno@clisp.org>
16049
16050         Fix bug introduced on 2008-01-26.
16051         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
16052
16053 2008-02-06  Bruno Haible  <bruno@clisp.org>
16054
16055         Fix bug introduced on 2007-06-10.
16056         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
16057         !NEED_PRINTF_FLAG_ZERO.
16058
16059 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
16060
16061         getloadavg: use libperfstat on AIX5
16062         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
16063
16064 2008-02-03  Bruno Haible  <bruno@clisp.org>
16065
16066         * lib/diffseq.h: Add comments about required #includes.
16067         Reported by Michael Biggs <gnulib@doubleplum.net>.
16068
16069 2008-02-01  Bruno Haible  <bruno@clisp.org>
16070
16071         * users.txt: Add gnuit.
16072
16073 2008-01-31  Bruno Haible  <bruno@clisp.org>
16074
16075         * lib/md4.c (set_uint32): Mark as inline.
16076         * lib/md5.c (set_uint32): Likewise.
16077         * lib/sha1.c (set_uint32): Likewise.
16078         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
16079         * m4/md5.m4 (gl_MD5): Likewise.
16080         * m4/sha1.m4 (gl_SHA1): Likewise.
16081
16082 2008-01-31  Jim Meyering  <meyering@redhat.com>
16083
16084         Use "sizeof VAR", rather than a literal "4".
16085         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
16086         * lib/md4.c (md4_read_ctx): Likewise.
16087         * lib/sha1.c (sha1_read_ctx): Likewise.
16088
16089 2008-01-31  Simon Josefsson  <simon@josefsson.org>
16090
16091         * tests/test-sha1.c: New file, based on test-md5.c.
16092
16093         * modules/crypto/sha1-tests: New file.
16094
16095 2008-01-31  Simon Josefsson  <simon@josefsson.org>
16096
16097         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
16098
16099 2008-01-31  Jim Meyering  <meyering@redhat.com>
16100
16101         Prefer "sizeof v" over the equivalent "4".
16102         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
16103         * lib/md5.c (set_uint32): Likewise.
16104         * lib/sha1.c (set_uint32): Likewise.
16105
16106 2008-01-31  Simon Josefsson  <simon@josefsson.org>
16107
16108         * lib/sha1.c (set_uint32): Mark function as static.
16109
16110 2008-01-31  Simon Josefsson  <simon@josefsson.org>
16111
16112         md2: clarify comments to say that alignment is not required.
16113         * lib/md2.h: Remove warning about alignment in comment.
16114         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
16115         never been required.
16116
16117 2008-01-31  Simon Josefsson  <simon@josefsson.org>
16118
16119         md4: adapt alignment constraint fix from sha1.
16120         * lib/md4.c (set_uint32): New function, from sha1.c
16121         (md4_read_ctx): Use it.
16122         (md4_finish_ctx): Doc fix.
16123         * lib/md4.h: Doc fix.
16124
16125 2008-01-31  Simon Josefsson  <simon@josefsson.org>
16126
16127         md5: adapt alignment constraint fix from sha1.
16128         * lib/md5.c (set_uint32): New function, from sha1.c
16129         (md5_read_ctx): Use it.
16130         (md5_finish_ctx): Doc fix.
16131         * lib/md5.h: Doc fix.
16132
16133 2008-01-30  Peter Palfrader  <weasel@debian.org>
16134
16135         sha1: remove the result buffer alignment constraint
16136         * lib/sha1.c (set_uint32): New function.
16137         (sha1_read_ctx): Rewrite to remove the result buffer alignment
16138         constraint.
16139         (sha1_finish_ctx): Remove comment warning about alignment constraint.
16140         * lib/sha1.h: Likewise.
16141
16142 2008-01-30  Andreas Schwab  <schwab@suse.de>
16143             Bruno Haible  <bruno@clisp.org>
16144
16145         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
16146         correct definition of LDBL_MIN_EXP.
16147
16148 2008-01-30  Karl Berry  <karl@gnu.org>
16149
16150         * config/srclist-update: try to preserve x bit on updates.
16151         * config/srclistvars.sh: update for karl.
16152
16153 2008-01-29  Jim Meyering  <meyering@redhat.com>
16154
16155         vasnprintf.c: Avoid warning about unused label
16156         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
16157         "overflow" label definition and associated code with the
16158         same cpp condition that guards the sole use of that label.
16159
16160 2008-01-26  Bruno Haible  <bruno@clisp.org>
16161
16162         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
16163         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
16164         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
16165         * lib/isnanl-nolibm.h (isnanl): Likewise.
16166         Reported by Paul Eggert <eggert@cs.ucla.edu>.
16167
16168 2008-01-26  Bruno Haible  <bruno@clisp.org>
16169
16170         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
16171         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
16172
16173 2008-01-26  Bruno Haible  <bruno@clisp.org>
16174
16175         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
16176         GCC >= 4.0 built-in.
16177         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
16178
16179 2008-01-26  Bruno Haible  <bruno@clisp.org>
16180
16181         Rename isnan, applicable to 'double' only, to isnand.
16182         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
16183         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
16184         (configure.ac): Update.
16185         (Include): Replace "isnan.h" with "isnand.h".
16186         * m4/isnand.m4: Renamed from m4/isnan.m4.
16187         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
16188         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
16189         instead of isnan.c.
16190         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
16191         instead of HAVE_ISNAN_IN_LIBC.
16192         (isnand): Renamed from isnan.
16193         * lib/isnand.c: New file.
16194         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
16195         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
16196         (Makefile.am): Update.
16197         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
16198         Include isnand.h instead of isnan.h.
16199         (main): Test isnand instead of isnan.
16200         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
16201         isnan-nolibm.
16202         * modules/frexp (Depends-on): Likewise.
16203         * modules/frexp-tests (Depends-on): Likewise.
16204         * modules/frexp-nolibm (Depends-on): Likewise.
16205         * modules/frexp-nolibm-tests (Depends-on): Likewise.
16206         * modules/isfinite (Depends-on): Likewise.
16207         * modules/round-tests (Depends-on): Likewise.
16208         * modules/signbit (Depends-on): Likewise.
16209         * modules/signbit-tests (Depends-on): Likewise.
16210         * modules/snprintf-posix (Depends-on): Likewise.
16211         * modules/sprintf-posix (Depends-on): Likewise.
16212         * modules/trunc-tests (Depends-on): Likewise.
16213         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
16214         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
16215         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
16216         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
16217         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
16218         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
16219         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
16220         * modules/vasnprintf-posix (Depends-on): Likewise.
16221         * modules/vasprintf-posix (Depends-on): Likewise.
16222         * modules/vfprintf-posix (Depends-on): Likewise.
16223         * modules/vsnprintf-posix (Depends-on): Likewise.
16224         * modules/vsprintf-posix (Depends-on): Likewise.
16225         * lib/frexp.c: Include isnand.h instead of isnan.h.
16226         (ISNAN): Set to isnand instead of isnan.
16227         * lib/isfinite.c: Include isnand.h instead of isnan.h.
16228         (gl_isfinited): Use isnand instead of isnan.
16229         * lib/signbitd.c: Include isnand.h instead of isnan.h.
16230         (gl_signbitd): Use isnand instead of isnan.
16231         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
16232         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
16233         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
16234         (main): Use isnand instead of isnan.
16235         * tests/test-round1.c: Include isnand.h.
16236         (main): Use isnand instead of isnan.
16237         * tests/test-round2.c: Include isnand.h instead of isnan.h.
16238         (ISNAN): Set to isnand instead of isnan.
16239         * tests/test-trunc1.c: Include isnand.h.
16240         (main): Use isnand instead of isnan.
16241         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
16242         (equal): Use isnand instead of isnan.
16243         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
16244         isnand-nolibm.
16245         * NEWS: Mention the change.
16246
16247 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
16248             Bruno Haible  <bruno@clisp.org>
16249
16250         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
16251         the GCC builtins for signbits are present and set
16252         REPLACE_SIGNBIT_USING_GCC if so.
16253         * lib/math.in.h (signbit): Define using GCC builtins if
16254         REPLACE_SIGNBIT_USING_GCC is set.
16255         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
16256         REPLACE_SIGNBIT_USING_GCC.
16257         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
16258
16259 2008-01-25  Jim Meyering  <meyering@redhat.com>
16260
16261         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
16262         * lib/poll.c: Include <config.h>, not "config.h".
16263         * tests/test-getaddrinfo.c: Likewise.
16264
16265 2008-01-25  Simon Josefsson  <simon@josefsson.org>
16266
16267         * modules/sockets-tests: New file.
16268
16269 2008-01-24  Simon Josefsson  <simon@josefsson.org>
16270
16271         * modules/sockets: New module, can be used to call WSA_Startup and
16272         WSA_Cleanup when needed.
16273
16274         * lib/sockets.h, lib/sockets.c: New files.
16275
16276         * m4/sockets.m4: New file.
16277
16278         * tests/test-sockets.c: New file.
16279
16280 2008-01-19  Bruno Haible  <bruno@clisp.org>
16281
16282         * doc/posix-headers: Renamed from doc/headers.
16283         * doc/posix-functions: Renamed from doc/functions.
16284         * doc/gnulib.texi: Update.
16285
16286 2008-01-19  Bruno Haible  <bruno@clisp.org>
16287
16288         * doc/glibc-functions/strcasestr.texi: Include contents of
16289         doc/functions/strcasestr.texi, fixing the list of platforms.
16290         * doc/functions/strcasestr.texi: Remove file.
16291
16292 2008-01-19  Bruno Haible  <bruno@clisp.org>
16293
16294         * doc/glibc-functions/memmem.texi: Include contents of
16295         doc/functions/memmem.texi.
16296         * doc/functions/memmem.texi: Remove file.
16297
16298 2008-01-18  Bruno Haible  <bruno@clisp.org>
16299
16300         * doc/glibc-functions/*.texi: New files.
16301         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
16302         to use the new files.
16303
16304 2008-01-17  Bruno Haible  <bruno@clisp.org>
16305
16306         * tests/test-gethostname.c (main): Fix printf statement.
16307
16308 2008-01-17  Simon Josefsson  <simon@josefsson.org>
16309
16310         * modules/gethostname-tests: New file.
16311
16312         * tests/test-gethostname.c: New file.
16313
16314 2008-01-17  Simon Josefsson  <simon@josefsson.org>
16315
16316         * lib/gethostname.c: Include string.h unconditionally, strncpy is
16317         used by the UNAME case.  Reported by Bruno Haible
16318         <bruno@clisp.org>.
16319
16320 2008-01-17  Eric Blake  <ebb9@byu.net>
16321
16322         Convert c-strcasestr to be more efficient.
16323         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
16324         (Depends-on): Add c-strcase, remove malloca, strnlen.
16325         * tests/test-c-strcasestr.c (main): Enhance test.
16326         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
16327
16328 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
16329
16330         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
16331         Use it in creating po/Makevars.
16332
16333 2008-01-15  Simon Josefsson  <simon@josefsson.org>
16334
16335         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
16336         Applications that requires it should initialize libgcrypt
16337         manually.
16338
16339 2008-01-16  Simon Josefsson  <simon@josefsson.org>
16340
16341         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
16342
16343 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
16344
16345         Fix problem with getdate on mingw32 reported by Simon Josefsson
16346         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
16347         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
16348         tzname", when deciding whether to declare tzname.
16349         * lib/strftime.c (tzname): Likewise.
16350
16351 2008-01-15  Bruno Haible  <bruno@clisp.org>
16352
16353         Work around a MacOS X 10.5 bug in frexpl().
16354         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
16355         * doc/functions/frexpl.texi: Document the bug.
16356         Reported by Elias Pipping <pipping@gentoo.org>.
16357
16358 2008-01-14  Eric Blake  <ebb9@byu.net>
16359
16360         Touch up previous patch.
16361         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
16362         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
16363
16364         Convert strcasestr module to use Two-Way algorithm.
16365         * modules/strcasestr-simple: New module, based on the old
16366         strcasestr, but with Two-Way rather than KMP.
16367         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
16368         * lib/string.in.h (rpl_strcasestr): Declare.
16369         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
16370         performance.
16371         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
16372         * modules/string (Makefile.am): Support strcasestr.
16373         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
16374         * modules/strcasestr-tests (Depends-on): Check for alarm.
16375         * tests/test-strcasestr.c: Augment test.
16376         * lib/str-two-way.h: Clean up stray macro.
16377         * NEWS: Document new module.
16378         * MODULES.html.sh (string handling): Likewise.
16379         * doc/functions/strcasestr.texi: New file.
16380         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
16381         here, since it is not a POSIX function.
16382
16383 2008-01-14  Colin Watson  <cjwatson@debian.org>
16384             Bruno Haible  <bruno@clisp.org>
16385
16386         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
16387         works fine; if not, set REPLACE_STRSIGNAL.
16388         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
16389         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16390         REPLACE_STRSIGNAL.
16391         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
16392         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
16393         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
16394
16395 2008-01-14  Bruno Haible  <bruno@clisp.org>
16396
16397         * modules/strsignal (Include): Change to <string.h>.
16398
16399 2008-01-14  Colin Watson  <cjwatson@debian.org>
16400
16401         * modules/argp (Notice): Add a notice recommending to change
16402         XGETTEXT_OPTIONS.
16403         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
16404
16405 2008-01-13  Colin Watson  <cjwatson@debian.org>
16406
16407         * modules/strsignal-tests: New file.
16408         * tests/test-strsignal.c: New file.
16409
16410         * lib/strsignal.c: New file, from glibc with modifications.
16411         * lib/siglist.h: New file, from glibc with modifications.
16412         * lib/string.in.h (strsignal): New declaration.
16413         * m4/strsignal.m4: New file.
16414         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
16415         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
16416         * modules/strsignal: New file.
16417         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
16418         HAVE_DECL_STRSIGNAL.
16419
16420 2008-01-13  Bruno Haible  <bruno@clisp.org>
16421
16422         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
16423         locale encoding is not ASCII. Needed for OpenBSD 4.0.
16424         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
16425         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
16426
16427 2008-01-13  Bruno Haible  <bruno@clisp.org>
16428
16429         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
16430         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
16431         * lib/argp.h (__attribute__): Likewise.
16432         * lib/c-stack.c (__attribute__): Likewise.
16433         * lib/error.h (__attribute__): Likewise.
16434         * lib/fts.c (__attribute__): Likewise.
16435         * lib/openat.h (__attribute__): Likewise.
16436         * lib/stdio.in.h (__attribute__): Likewise.
16437         * lib/string.in.h (__attribute__): Likewise.
16438         * lib/utimens.c (__attribute__): Likewise.
16439         * lib/vasnprintf.h (__attribute__): Likewise.
16440         * lib/xalloc.h (__attribute__): Likewise.
16441         * lib/xprintf.h (__attribute__): Likewise.
16442         * lib/xstrtol.h (__attribute__): Likewise.
16443         * lib/xvasprintf.h (__attribute__): Likewise.
16444
16445 2008-01-12  Bruno Haible  <bruno@clisp.org>
16446
16447         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
16448         * doc/glibc-headers/a.out.texi: New file.
16449         * doc/glibc-headers/aliases.texi: New file.
16450         * doc/glibc-headers/alloca.texi: New file.
16451         * doc/glibc-headers/ar.texi: New file.
16452         * doc/glibc-headers/argp.texi: New file.
16453         * doc/glibc-headers/argz.texi: New file.
16454         * doc/glibc-headers/byteswap.texi: New file.
16455         * doc/glibc-headers/crypt.texi: New file.
16456         * doc/glibc-headers/endian.texi: New file.
16457         * doc/glibc-headers/envz.texi: New file.
16458         * doc/glibc-headers/err.texi: New file.
16459         * doc/glibc-headers/error.texi: New file.
16460         * doc/glibc-headers/execinfo.texi: New file.
16461         * doc/glibc-headers/fpu_control.texi: New file.
16462         * doc/glibc-headers/fstab.texi: New file.
16463         * doc/glibc-headers/fts.texi: New file.
16464         * doc/glibc-headers/getopt.texi: New file.
16465         * doc/glibc-headers/ieee754.texi: New file.
16466         * doc/glibc-headers/ifaddrs.texi: New file.
16467         * doc/glibc-headers/libintl.texi: New file.
16468         * doc/glibc-headers/mcheck.texi: New file.
16469         * doc/glibc-headers/mntent.texi: New file.
16470         * doc/glibc-headers/obstack.texi: New file.
16471         * doc/glibc-headers/paths.texi: New file.
16472         * doc/glibc-headers/printf.texi: New file.
16473         * doc/glibc-headers/pty.texi: New file.
16474         * doc/glibc-headers/resolv.texi: New file.
16475         * doc/glibc-headers/shadow.texi: New file.
16476         * doc/glibc-headers/sysexits.texi: New file.
16477         * doc/glibc-headers/ttyent.texi: New file.
16478
16479 2008-01-12  Jim Meyering  <meyering@redhat.com>
16480
16481         announce-gen: emit Gnulib's git-based version string.
16482         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
16483         New option --gnulib-version=V, where V is expected to be
16484         the output of running git describe in the gnulib directory.
16485         (get_tool_versions): Request feedback on xdelta.  I suspect it's
16486         not useful, and plan to stop publishing an xdelta file with each
16487         coreutils release.
16488
16489         * build-aux/announce-gen: Also check for lzma-compressed files.
16490
16491 2008-01-11  Bruno Haible  <bruno@clisp.org>
16492
16493         * tests/test-memmem.c (main): Increase maximum allowed time.
16494         * tests/test-strstr.c (main): Likewise.
16495
16496 2008-01-11  Bruno Haible  <bruno@clisp.org>
16497
16498         * doc/functions/memmem.texi: Add more precisions about platforms.
16499         * doc/functions/strstr.texi: Likewise.
16500
16501 2008-01-10  Eric Blake  <ebb9@byu.net>
16502
16503         * m4/strstr.m4: Delete cruft from copy-n-paste.
16504         Reported by Bruno Haible.
16505
16506 2008-01-10  Bruno Haible  <bruno@clisp.org>
16507
16508         Make c-strstr rely on strstr.
16509         * lib/c-strstr.c: Don't include str-kmp.h.
16510         (c_strstr): Define in terms of strstr.
16511         * modules/c-strstr (Files): Remove lib/str-kmp.h.
16512         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
16513
16514 2008-01-10  Bruno Haible  <bruno@clisp.org>
16515
16516         * doc/gnulib.texi (String Functions in C Locale): New section.
16517         * doc/c-ctype.texi: New file.
16518         * doc/c-strcase.texi: New file.
16519         * doc/c-strcaseeq.texi: New file.
16520         * doc/c-strcasestr.texi: New file.
16521         * doc/c-strstr.texi: New file.
16522         * doc/c-strtod.texi: New file.
16523         * doc/c-strtold.texi: New file.
16524
16525 2008-01-10  Eric Blake  <ebb9@byu.net>
16526
16527         * lib/relocatable.h: Fix a comment.
16528
16529 2008-01-10  Eric Blake  <ebb9@byu.net>
16530
16531         Share two-way algorithm.
16532         * lib/str-two-way.h: New file, merged from...
16533         * lib/memmem.c: ...here...
16534         * lib/strstr.c: ...and here.
16535         * modules/memmem (Files): Use it.
16536         * modules/strstr (Files): Likewise.
16537
16538         Avoid quadratic strstr implementations.
16539         * lib/strstr.c: New file.
16540         * m4/strstr.m4: Likewise.
16541         * modules/strstr: Likewise.
16542         * modules/strstr-tests: Likewise.
16543         * tests/test-strstr.c: Likewise.
16544         * lib/string.in.h (rpl_strstr): Declare.
16545         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
16546         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
16547         * modules/string (Makefile.am): Likewise.
16548         * MODULES.html.sh (string handling): Mention new module.
16549         * doc/functions/strstr.texi (strstr): Document the bug.
16550
16551 2008-01-10  Bruno Haible  <bruno@clisp.org>
16552
16553         * lib/relocatable.h (relocate): State whether result is freshly
16554         allocated or not.
16555         * lib/relocatable.c (relocate): Return a freshly allocated string
16556         instead of a pointer to a privately held string.
16557         Reported by Sylvain Beucler <beuc@gnu.org>.
16558
16559 2008-01-10  Colin Watson  <cjwatson@debian.org>
16560
16561         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
16562         s/S_ISNLK/S_ISLNK/.
16563
16564 2008-01-09  Bruno Haible  <bruno@clisp.org>
16565
16566         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
16567         and other files.
16568         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
16569         if it's only a guess.
16570         * modules/memmem: Simplify by depending on memmem-simple.
16571
16572 2008-01-09  Bruno Haible  <bruno@clisp.org>
16573
16574         Work around OpenBSD 4.0 tdelete() bug.
16575         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
16576         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
16577         macros and don't redefine the enum values.
16578         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
16579         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
16580         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
16581
16582 2008-01-09  Bruno Haible  <bruno@clisp.org>
16583
16584         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
16585         (main): Don't perform the tests if setlocale did not install a UTF-8
16586         locale. Needed on OpenBSD 4.0.
16587         * modules/wcwidth-tests (Depends-on): Add localcharset.
16588
16589 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
16590
16591         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
16592         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
16593         * NEWS: announce this.
16594         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
16595
16596 2008-01-09  Simon Josefsson  <simon@josefsson.org>
16597         and Eric Blake  <ebb9@byu.net>
16598
16599         Add memmem-simple module.
16600         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
16601         (gl_FUNC_MEMMEM): Separate performance from presence checks.
16602         * modules/memmem-simple: New file.
16603         * modules/memmem (Description): Tweak.
16604         * MODULES.html.sh (string handling): Mention new module.
16605         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
16606         addressed by memmem-simple.
16607         * NEWS: Document the difference.
16608
16609 2008-01-09  Eric Blake  <ebb9@byu.net>
16610
16611         Give gcc some memmem optimization hints.
16612         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
16613         (strcasestr): Declare as pure.
16614         * modules/memmem (Maintainer): Claim my implementation.
16615
16616 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16617
16618         Support AIX 6.1 and higher.
16619         * build-aux/config.libpath: Likewise.
16620         * build-aux/config.rpath: Likewise.
16621
16622 2008-01-08  Jim Meyering  <meyering@redhat.com>
16623             Bruno Haible  <bruno@clisp.org>
16624
16625         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
16626         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
16627         Reported by Peter Fales in
16628         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
16629
16630 2008-01-08  Bruno Haible  <bruno@clisp.org>
16631
16632         * modules/unictype/category-of (Depends-on): Add
16633         unictype/category-none.
16634         * modules/unictype/category-and-tests (Depends-on): Add
16635         unictype/category-{L,N,Lu,Nd}.
16636         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
16637         * modules/unictype/category-or-tests (Depends-on): Add
16638         unictype/category-{L,N}.
16639         * modules/unictype/category-name-tests (Depends-on): Add
16640         unictype/category-{Z,Nl}.
16641         Reported by Simon Josefsson.
16642
16643 2008-01-08  Bruno Haible  <bruno@clisp.org>
16644
16645         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
16646         convention better.
16647         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
16648         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
16649         Reported by Peter Miller <millerp@canb.auug.org.au>.
16650
16651 2008-01-08  Eric Blake  <ebb9@byu.net>
16652
16653         Rewrite memmem to guarantee linear complexity without malloc.
16654         * lib/memmem.c (memmem): Use Two-Way rather than
16655         Knuth-Morris-Pratt, to allow O(1) space usage.
16656         (critical_factorization, two_way_short_needle)
16657         (two_way_long_needle): New functions.
16658         (knuth_morris_pratt): Delete.
16659         * modules/memmem (Depends-on): No longer need malloca or stdbool.
16660         Add stdint.
16661         * tests/test-memmem.c (main): Add tests for periodic needle and
16662         sublinear performance.
16663         * doc/functions/memmem.texi (memmem): Document other deficiencies
16664         in cygwin and older glibc.
16665
16666 2008-01-08  Bruno Haible  <bruno@clisp.org>
16667
16668         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
16669         augmentation.
16670
16671 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
16672
16673         Add a configure time option: --disable-acl.
16674         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
16675         AC_ARG_ENABLE(acl).
16676
16677 2008-01-06  Simon Josefsson  <simon@josefsson.org>
16678
16679         * tests/test-localename.c: Don't include obsolete "setenv.h".
16680
16681         * modules/localename-tests (Depends-on): Need unsetenv.
16682
16683 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
16684
16685         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
16686
16687 2008-01-06  Colin Watson  <cjwatson@debian.org>
16688
16689         * users.txt: Add man-db.
16690
16691 2008-01-07  Bruno Haible  <bruno@clisp.org>
16692
16693         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
16694         previous section name.
16695
16696 2008-01-07  Bruno Haible  <bruno@clisp.org>
16697
16698         * lib/progname.c (set_program_name): Don't strip off a leading
16699         "lt-" prefix outside a .libs directory.
16700         Suggested by Paul Eggert.
16701
16702 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
16703             Bruno Haible  <bruno@clisp.org>
16704
16705         Improve memory cleanup in 'relocatable' module.
16706         * lib/relocatable.h (compute_curr_prefix): Change return type to
16707         'char *'.
16708         * lib/relocatable.c (compute_curr_prefix): Change return type to
16709         'char *'. Free curr_installdir after use.
16710         (relocate): Free curr_prefix_better after use.
16711         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
16712
16713 2008-01-01  Bruno Haible  <bruno@clisp.org>
16714
16715         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
16716         failure on older glibc systems.
16717         Reported by Peter Fales <psfales@alcatel-lucent.com>.
16718
16719 2008-01-05  Eric Blake  <ebb9@byu.net>
16720
16721         Avoid quadratic system memmem.
16722         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
16723         Reported by Ralf Wildenhues.
16724
16725         Fix memmem test for mingw.
16726         * modules/memmem-tests (configure.ac): Check for alarm.
16727         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
16728         it.
16729         * doc/functions/memmem.texi: New file.
16730         * doc/gnulib.texi (Function Substitutes): Add memmem.
16731         Reported by Bruno Haible.
16732
16733 2008-01-04  Bruno Haible  <bruno@clisp.org>
16734
16735         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
16736         Require gl_HEADER_STRINGS_H_DEFAULTS, not
16737         gl_HEADER_STRING_H_DEFAULTS.
16738
16739 2008-01-04  Eric Blake  <ebb9@byu.net>
16740
16741         Shorten duration of memmem test.
16742         * tests/test-memmem.c (main): Use alarm to declare failure if test
16743         is taking too long.
16744         Reported by Ralf Wildenhues.
16745
16746 2007-12-21  Simon Josefsson  <simon@josefsson.org>
16747
16748         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
16749         string, needed by strerror.
16750
16751 2008-01-03  Colin Watson  <cjwatson@debian.org>
16752             Bruno Haible  <bruno@clisp.org>
16753
16754         * doc/gnulib-tool.texi (Localization): New section.
16755
16756 2008-01-02  Bruno Haible  <bruno@clisp.org>
16757
16758         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
16759         variables to 'unsigned char *' type.
16760         Reported by Paul Eggert.
16761
16762 2008-01-02  Jim Meyering  <jim@meyering.net>
16763
16764         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
16765
16766 2007-12-31  Jim Meyering  <jim@meyering.net>
16767
16768         Avoid use of private FTS type name.
16769         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
16770
16771 2007-12-30  Karl Berry  <karl@gnu.org>
16772
16773         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
16774         work around defect in Texinfo and/or the standalone Info browser.
16775
16776 2007-12-30  Bruno Haible  <bruno@clisp.org>
16777
16778         Unify 5 copies of the KMP code.
16779         * lib/str-kmp.h: New file.
16780         * lib/c-strcasestr.c: Include str-kmp.h.
16781         (knuth_morris_pratt): Remove function.
16782         (c_strcasestr): Update.
16783         * lib/c-strstr.c: Include str-kmp.h.
16784         (knuth_morris_pratt): Remove function.
16785         (c_strcasestr): Update.
16786         * lib/mbscasestr.c: Include str-kmp.h.
16787         (knuth_morris_pratt_unibyte): Remove function.
16788         * lib/mbsstr.c: Include str-kmp.h.
16789         (knuth_morris_pratt_unibyte): Remove function.
16790         * lib/strcasestr.c: Include str-kmp.h.
16791         (knuth_morris_pratt): Remove function.
16792         (strcasestr): Update.
16793         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
16794         * modules/c-strstr (Files): Likewise.
16795         * modules/mbscasestr (Files): Likewise.
16796         * modules/mbsstr (Files): Likewise.
16797         * modules/strcasestr (Files): Likewise.
16798         Suggested by Paul Eggert.
16799
16800 2007-12-30  Bruno Haible  <bruno@clisp.org>
16801
16802         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
16803         defined.
16804
16805 2007-12-30  Bruno Haible  <bruno@clisp.org>
16806
16807         * lib/xmalloca.h: Include xalloc.h.
16808         (xnmalloca): New macro.
16809
16810 2007-12-30  Bruno Haible  <bruno@clisp.org>
16811
16812         * lib/malloca.h (nmalloca): New macro.
16813         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
16814         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
16815         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
16816         knuth_morris_pratt_multibyte): Likewise.
16817         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
16818         knuth_morris_pratt_multibyte): Likewise.
16819         * lib/memmem.c (knuth_morris_pratt): Likewise.
16820         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
16821
16822 2007-12-25  Bruno Haible  <bruno@clisp.org>
16823
16824         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
16825         * lib/glob.c: Don't include openat.h.
16826         (link_exists2_p): Add back the code that deals with the
16827         !GLOB_ALTDIRFUNC case.
16828         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
16829         let it do the filename concatenation.
16830         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
16831         * modules/glob (Depends-on): Remove openat.
16832
16833 2007-12-31  Bruno Haible  <bruno@clisp.org>
16834
16835         * modules/dirfd (License): Change to LGPLv2+.
16836         Approved by Jim Meyering.
16837
16838 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
16839
16840         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
16841         when multiplying M by sizeof (size_t).
16842
16843 2007-12-10  Martin Lambers  <marlam@marlam.de>
16844
16845         Override getpagesize on mingw.
16846         * lib/getpagesize.c: New file.
16847         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
16848         * modules/getpagesize (Files): Add lib/getpagesize.c.
16849         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
16850         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
16851         REPLACE_GETPAGESIZE.
16852         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
16853
16854 2007-12-25  Bruno Haible  <bruno@clisp.org>
16855
16856         * modules/localcharset (Notice): New field.
16857         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
16858         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
16859
16860 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
16861             Bruno Haible  <bruno@clisp.org>
16862
16863         Avoid using the syntax symbol() in formatted documentation.
16864         * MODULES.html.sh (func_module): When replacing symbol() with a
16865         hyperlink, remove the parentheses. Show an error if some remain.
16866         Recognize and render the '...' syntax.
16867         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
16868         Rework. Add paragraph about GCC's inlining.
16869         * doc/alloca.texi: Likewise.
16870         * doc/error.texi: Remove parentheses from symbol reference.
16871         * doc/gnulib-intro.texi: Likewise.
16872         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
16873         * modules/fnmatch (Description): Reword to say "the ... function".
16874         * modules/full-read (Description): Likewise.
16875         * modules/full-write (Description): Likewise.
16876         * modules/safe-read (Description): Likewise.
16877         * modules/safe-write (Description): Likewise.
16878         * modules/strchrnul (Description): Likewise.
16879         * modules/trim (Description): Likewise.
16880         * modules/error (Description): Remove parentheses from symbol
16881         references.
16882         * modules/verror (Description): Likewise.
16883         Reported by Karl Berry.
16884
16885 2007-12-25  Bruno Haible  <bruno@clisp.org>
16886
16887         Fixup after 2007-10-16 commit.
16888         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
16889
16890 2007-12-24  Bruno Haible  <bruno@clisp.org>
16891
16892         Make --enable-relocatable work with DESTDIR.
16893         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
16894         to compute installdir from destprog.
16895         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
16896         also set the RELOC_DESTDIR variable.
16897         Reported by Левашев Иван <octagram@bluebottle.com>.
16898
16899 2007-12-24  Bruno Haible  <bruno@clisp.org>
16900
16901         Fix link error due to xalloc_die().
16902         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
16903         of xreadlink.
16904         * lib/relocwrapper.c: Update comments.
16905         * build-aux/install-reloc: Remove xreadlink.c from file list.
16906         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
16907         xreadlink.c.
16908         Reported by Левашев Иван <octagram@bluebottle.com>.
16909
16910 2007-12-24  Bruno Haible  <bruno@clisp.org>
16911
16912         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
16913         * lib/setenv.h: Remove file.
16914         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
16915         lib/setenv.h.
16916         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
16917         (Depends-on): Add stdlib.
16918         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
16919         gl_FUNC_UNSETENV.
16920         (Include): Replace setenv.h with <stdlib.h>.
16921         * modules/unsetenv: New file.
16922         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
16923         * lib/unsetenv.c: Include <stdlib.h> first.
16924         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
16925         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
16926         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
16927         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
16928         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
16929         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
16930         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
16931         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
16932         * doc/functions/unsetenv.texi: Update.
16933         * modules/xsetenv (Depends-on): Add unsetenv.
16934         * modules/getdate (Depends-on): Likewise.
16935         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
16936         * lib/xsetenv.c: Don't include setenv.h.
16937         * lib/getdate.y: Likewise.
16938         * lib/relocwrapper.c: Likewise.
16939         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
16940         (Depends-on): Add stdlib.
16941         * NEWS: Mention the changes.
16942         Reported by Левашев Иван <octagram@bluebottle.com>.
16943
16944 2007-12-23  Bruno Haible  <bruno@clisp.org>
16945
16946         * lib/memmem.c (memmem): Use lowercase variable names. Tab
16947         indentation.
16948
16949 2007-12-23  Bruno Haible  <bruno@clisp.org>
16950
16951         * lib/c-strcasestr.c: Add more comments.
16952         * lib/c-strstr.c: Likewise.
16953         * lib/mbscasestr.c: Likewise.
16954         * lib/mbsstr.c: Likewise.
16955         * lib/strcasestr.c: Likewise.
16956         * lib/memmem.c: Likewise.
16957
16958 2007-12-23  Bruno Haible  <bruno@clisp.org>
16959
16960         * tests/test-memmem.c: Include <string.h> first.
16961
16962 2007-12-22  Bruno Haible  <bruno@clisp.org>
16963
16964         * gnulib-tool (func_create_testdir): Change $auxdir while generating
16965         the contents of $testsbase.
16966         Reported by Ralf Wildenhues.
16967
16968 2007-12-22  Bruno Haible  <bruno@clisp.org>
16969
16970         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
16971         two variables local_ldadd_before, local_ldadd_last.
16972
16973 2007-12-20  Eric Blake  <ebb9@byu.net>
16974
16975         Work around circular library issue when cross-compiling.
16976         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
16977         that progname.o does not need to pull in rpl_memcmp.
16978
16979 2007-12-19  Eric Blake  <ebb9@byu.net>
16980
16981         Fix memmem to avoid O(n^2) worst-case complexity.
16982         * lib/memmem.c (knuth_morris_pratt): New function.
16983         (memmem): Use it if first few naive iterations fail.
16984         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
16985         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
16986         * modules/memchr (License): Likewise.
16987         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
16988         malloca.
16989         * tests/test-memmem.c: Rewrite, borrowing ideas from
16990         test-mbsstr1.c; the old version wouldn't even compile!
16991         * modules/memmem-tests: New file.
16992         * lib/string.in.h (rpl_memmem): Add declaration.
16993         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
16994         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
16995         REPLACE_MEMMEM.
16996
16997 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
16998
16999         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
17000         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
17001         before any system include files, and undef after them all.  This
17002         should fix a problem on VMS reported by John E. Malmberg in
17003         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
17004
17005 2007-12-17  Eric Blake  <ebb9@byu.net>
17006
17007         Revert addition of verify, for BSD/OS.
17008         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
17009         can't handle large files, for the sake of obsolete platforms.
17010         * modules/fseeko (Depends-on): Remove verify.
17011         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
17012         * doc/functions/ftello.texi (ftello): Likewise.
17013         * doc/functions/fgetpos.texi (fgetpos): Likewise.
17014         Reported by Larry Jones.
17015
17016 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
17017
17018         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
17019         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
17020
17021 2007-12-17  Jim Meyering  <meyering@redhat.com>
17022
17023         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
17024         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
17025         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
17026         * modules/getcwd (Depends-on): Add openat.
17027         Reported by Petr Salinger.
17028
17029 2007-12-17  Bruno Haible  <bruno@clisp.org>
17030
17031         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
17032         avoid a segmentation fault of the configure test on x86_64 systems.
17033
17034 2007-12-15  Jim Meyering  <meyering@redhat.com>
17035
17036         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
17037
17038 2007-12-13  Eric Blake  <ebb9@byu.net>
17039
17040         Another fseek test.
17041         * tests/test-fseek.c (main): Also test ungetc handling.
17042         * tests/test-fseeko.c (main): Likewise.
17043         * modules/fseeko (Depends-on): Add verify.
17044         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
17045         large.
17046         Reported by Larry Jones.
17047
17048         Fix fseeko on mingw.
17049         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
17050         seek.
17051
17052         Beef up fseek tests.
17053         * tests/test-fseek.c (main): Also test eof handling.
17054         * tests/test-fseeko.c (main): Likewise.
17055         Reported by Larry Jones.
17056
17057 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
17058
17059         Fix fseeko on BSD-based platforms.
17060         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
17061         successful seek.
17062
17063 2007-12-12  Eric Blake  <ebb9@byu.net>
17064
17065         Allow circular dependency of separate libtests.a
17066         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
17067         when use_libtests.
17068
17069 2007-12-11  Eric Blake  <ebb9@byu.net>
17070
17071         Fix bug with -0.0L in previous patch.
17072         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
17073         * tests/test-isnan.c (main): Also test on zeroes.
17074         * tests/test-isnanf.c (main): Likewise.
17075         * tests/test-isnanl.h (main): Likewise.
17076
17077         Detect pseudo-denormals on x86 even when cross-compiling.
17078         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
17079         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
17080         invalid bit patterns that happen to satisfy ==.
17081
17082         Avoid link failures with separate libtests.a.
17083         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
17084         last, to satisfy circular dependencies.
17085
17086 2007-12-11  Eric Blake  <ebb9@byu.net>
17087         and Bruno Haible  <bruno@clisp.org>
17088
17089         Fix OpenBSD 4.0 <float.h> handling of long double.
17090         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
17091         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
17092         * doc/headers/float.texi (float.h): Document OpenBSD bug.
17093
17094 2007-12-11  Jim Meyering  <meyering@redhat.com>
17095
17096         * users.txt: Add libvirt.
17097
17098         Support versions of autoconf prior to 2.59c.
17099         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
17100         if it is not already defined.
17101
17102 2007-12-09  Bruno Haible  <bruno@clisp.org>
17103
17104         Let 'gnulib-tool --import' collect sources needed for the tests in
17105         tests/ rather than in lib/.
17106         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
17107         argument. If true, add rules to generate libtests.a, and put libtests.a
17108         into $(LDADD). Consider source files in subdirectories and set
17109         uses_subdirs.
17110         (func_emit_initmacro_start, func_emit_initmacro_end,
17111         func_emit_initmacro_done): Pass all arguments explicitly.
17112         (func_import): Determine two module lists main_modules,
17113         testsrelated_modules. Determine use_libtests. Determine two variables
17114         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
17115         instead of just sed_transform_lib_file. Determine two variables
17116         main_files and testsrelated_files. Compute 'files' as the union of
17117         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
17118         func_add_or_update. In the generated gnulib-comp.m4, collect the
17119         object files for tests/ in different variables than those for lib/.
17120         Substitute LIBTESTS_LIBDEPS.
17121         (func_create_testdir): Combine the uses_subdirs results from
17122         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
17123
17124 2007-12-09  Bruno Haible  <bruno@clisp.org>
17125
17126         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
17127         the build-aux directory.
17128
17129 2007-12-09  Bruno Haible  <bruno@clisp.org>
17130
17131         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
17132         introduced on 2006-09-09.
17133
17134 2007-12-07  Jim Meyering  <meyering@redhat.com>
17135
17136         Let these macros work also with autoconf-2.59.
17137         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
17138         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
17139         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
17140
17141 2007-12-06  Jim Meyering  <meyering@redhat.com>
17142
17143         Avoid a configure-time syntax error in gl_FUNC_ACL.
17144         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
17145         function in each branch, before testing the cache variable.
17146
17147 2007-12-04  Eric Blake  <ebb9@byu.net>
17148
17149         Make scripts executable.
17150         * build-aux/config.guess: Add execute permissions.
17151         * build-aux/config.sub: Likewise.
17152         * build-aux/gendocs.sh: Likewise.
17153
17154         Fix frexp on mingw.
17155         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
17156         cross-compiling.
17157         * doc/functions/frexp.texi (frexp): Document the bug.
17158
17159         Make cygwin fseeko check more reliable.
17160         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
17161         version numbers, rather than unrelated feature check.
17162         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
17163         * doc/functions/ftello.texi (ftello): Likewise.
17164         Reported by Bruno Haible.
17165
17166         * m4/strerror.m4: Bump version number.
17167
17168 2007-12-03  Bruno Haible  <bruno@clisp.org>
17169
17170         * doc/functions/mprotect.texi: Mention the mingw problem.
17171
17172 2007-12-03  Eric Blake  <ebb9@byu.net>
17173
17174         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
17175         REPLACE_STRERROR is initialized before this macro.
17176
17177 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
17178
17179         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
17180         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
17181         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
17182         put -lsec in even for programs other than 'ls'.  This fixes a problem
17183         for gettext reported by Bruno Haible in
17184         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
17185         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
17186         Add support for Solaris 10.  This isn't efficient, but should get the
17187         job done for now.
17188
17189 2007-12-03  James Youngman  <jay@gnu.org>
17190
17191         * doc/regexprops-generic.texi: change "an close-group" to "a
17192         close-group" and "illegal" to "not allowed".
17193
17194 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17195
17196         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
17197         pr_byname.h. Needed for the rare case when the maintainer has done
17198         "make maintainer-clean" in the source directory and then attempts a
17199         build outside the source directory.
17200         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
17201         scripts_byname.h.
17202
17203 2007-12-02  Martin Lambers <marlam@marlam.de>
17204             Bruno Haible  <bruno@clisp.org>
17205
17206         * lib/getpagesize.h: Remove file.
17207         * lib/unistd.in.h: Include declaration of getpagesize here.
17208         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
17209         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
17210         HAVE_SYS_PARAM_H.
17211         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
17212         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
17213         * modules/getpagesize (Files): Remove lib/getpagesize.h.
17214         (Depends-on): Add unistd.
17215         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
17216         (Include): Use <unistd.h> instead of getpagesize.h.
17217         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
17218         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
17219         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
17220         gl_GETPAGESIZE invocation, already handled by module dependency.
17221         * lib/pagealign_alloc.c: Don't include getpagesize.h.
17222
17223 2007-12-02  Bruno Haible  <bruno@clisp.org>
17224
17225         * modules/strings-tests: New file.
17226         * tests/test-strings.c: New file.
17227
17228         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
17229         * lib/strings.in.h: New file.
17230         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
17231         * m4/strings_h.m4: New file.
17232         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
17233         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
17234         * modules/strings: New file.
17235         * modules/string (Makefile.am): Update.
17236         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
17237         Reported by Karl Berry.
17238
17239 2007-12-01  Eric Blake  <ebb9@byu.net>
17240
17241         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
17242         accomodate fix in cygwin 1.5.25.
17243
17244 2007-12-01  Jim Meyering  <meyering@redhat.com>
17245
17246         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
17247         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
17248         that would inhibit utf8-optimization of a regexp containing line-
17249         or buffer-anchors, e.g., `^', `$'.
17250
17251 2007-11-30  Bruno Haible  <bruno@clisp.org>
17252
17253         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
17254         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
17255         glthread_recursive_lock_init.
17256         * lib/lock.c (glthread_recursive_lock_init)
17257         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
17258         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
17259
17260 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
17261
17262         New function qset_acl, like set_acl but with syscall semantics.
17263         * lib/acl.h (qset_acl): New decl.
17264         * lib/acl.c (qset_acl): New function.
17265         (set_acl): Use new function.  Use more-consistent diagnostics.
17266
17267 2007-11-28  Jim Meyering  <meyering@redhat.com>
17268
17269         * modules/physmem (License): Change from GPL to LGPLv2+.
17270
17271 2007-11-26  Bruno Haible  <bruno@clisp.org>
17272
17273         * lib/vasnprintf.c (decode_long_double): Don't abort if the
17274         'long double' type has excess precision.
17275         Reported by Jim Meyering in
17276         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
17277
17278 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17279
17280         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
17281         Sync from <http://gnu.org/licenses>.
17282         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
17283         with license text from same location.
17284         * doc/maintain.texi, doc/standards.texi:  Sync from
17285         <http://savannah.gnu.org/projects/gnustandards>.
17286
17287 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
17288         and Jim Meyering  <meyering@redhat.com>
17289
17290         Adjust getdate' grammar to accept a slightly more regular language.
17291         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
17292         Before, the former was rejected.
17293         * lib/getdate.y (digits_to_date_time): New function, factored
17294         out of ...
17295         (number): ...here.  Just call digits_to_date_time.
17296         (hybrid): New non-terminal to handle an <unsigned number,
17297         signed relative offset> sequence consistently.
17298
17299 2007-11-18  Jim Meyering  <meyering@redhat.com>
17300
17301         Pull my changes from coreutils:
17302         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
17303         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
17304         use of $gnulib_tool_option_extras, so that it's separated from the
17305         preceding argument.
17306
17307         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
17308         * build-aux/bootstrap (cp_mark_as_generated): Create any required
17309         parent destination directories before copying a file into place.
17310
17311 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
17312
17313         bootstrap: work also with 4-argument variant of AC_INIT
17314         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
17315
17316 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
17317
17318         Port test-getaddrinfo to Solaris.
17319         Problem reported by Bruno Haible in
17320         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
17321         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
17322         explanation of setting 'hints'.
17323         Don't reject an implementation merely because it returns EAI_SERVICE.
17324         (EAI_SERVICE): Define to 0 if not defined.
17325
17326 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
17327
17328         The license of gnu-make and posix-shell is now "GPLed build tool".
17329         * modules/gnu-make (License): Likewise.
17330         * modules/posix-shell (License): Likewise.
17331
17332         New module posix-shell, for determining a POSIX shell
17333         or perhaps something that is close enough to a POSIX shell.
17334         * m4/posix-shell.m4: New file.
17335         * modules/posix-shell: New file.
17336
17337         * MODULES.html.sh: Mention new module.
17338
17339         New module gnu-make, for determining whether we're using GNU Make.
17340         * m4/gnu-make.m4: New file.
17341         * modules/gnu-make: New file.
17342         * MODULES.html.sh: Mention new module.
17343
17344 2007-11-14  Jim Meyering  <meyering@redhat.com>
17345
17346         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
17347         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
17348         use this macro to create a function _definition_.
17349         Remove useless "#undef ARGMATCH_DIE".
17350
17351 2007-11-14  Bruno Haible  <bruno@clisp.org>
17352
17353         * lib/config.charset: Update for OpenBSD 4.1.
17354         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
17355
17356 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
17357
17358         Document 64-bit #if problems in stdint.texi.
17359         * doc/headers/stdint.texi (stdint.h): Mention problems with
17360         64-bit-#if, and how to work around them.
17361
17362         Don't insist on 'long long int' support in the preprocessor.  It
17363         breaks too many things.  For example, PRIdMAX still uses a 'long
17364         long int' format with the latest Sun compiler, even though
17365         HAVE_LONG_LONG_INT isn't defined due to that compiler's
17366         preprocessor problem.  This causes the latest coreutils to dump
17367         core on Solaris 10 sparc with the Sun C compiler.
17368         Instead, fix the 2007-10-16 problem in a different way, by evaluating
17369         the troublesome expressions at configure-time, not at #if-time.
17370         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
17371         preprocessor.
17372         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
17373         compile-time C checks, done at 'configure'-time.
17374         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
17375         * modules/inttypes (Makefile): Substitute the new symbols that
17376         gl_INTTYPES_H now generates.
17377         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
17378
17379 2007-11-12  Bruno Haible  <bruno@clisp.org>
17380
17381         Tests for Unicode character classification functions.
17382
17383         * modules/unictype/bidicategory-byname-tests: New file.
17384         * modules/unictype/bidicategory-name-tests: New file.
17385         * modules/unictype/bidicategory-of-tests: New file.
17386         * modules/unictype/bidicategory-test-tests: New file.
17387         * modules/unictype/block-list-tests: New file.
17388         * modules/unictype/block-of-tests: New file.
17389         * modules/unictype/block-test-tests: New file.
17390         * modules/unictype/category-C-tests: New file.
17391         * modules/unictype/category-Cc-tests: New file.
17392         * modules/unictype/category-Cf-tests: New file.
17393         * modules/unictype/category-Cn-tests: New file.
17394         * modules/unictype/category-Co-tests: New file.
17395         * modules/unictype/category-Cs-tests: New file.
17396         * modules/unictype/category-L-tests: New file.
17397         * modules/unictype/category-Ll-tests: New file.
17398         * modules/unictype/category-Lm-tests: New file.
17399         * modules/unictype/category-Lo-tests: New file.
17400         * modules/unictype/category-Lt-tests: New file.
17401         * modules/unictype/category-Lu-tests: New file.
17402         * modules/unictype/category-M-tests: New file.
17403         * modules/unictype/category-Mc-tests: New file.
17404         * modules/unictype/category-Me-tests: New file.
17405         * modules/unictype/category-Mn-tests: New file.
17406         * modules/unictype/category-N-tests: New file.
17407         * modules/unictype/category-Nd-tests: New file.
17408         * modules/unictype/category-Nl-tests: New file.
17409         * modules/unictype/category-No-tests: New file.
17410         * modules/unictype/category-P-tests: New file.
17411         * modules/unictype/category-Pc-tests: New file.
17412         * modules/unictype/category-Pd-tests: New file.
17413         * modules/unictype/category-Pe-tests: New file.
17414         * modules/unictype/category-Pf-tests: New file.
17415         * modules/unictype/category-Pi-tests: New file.
17416         * modules/unictype/category-Po-tests: New file.
17417         * modules/unictype/category-Ps-tests: New file.
17418         * modules/unictype/category-S-tests: New file.
17419         * modules/unictype/category-Sc-tests: New file.
17420         * modules/unictype/category-Sk-tests: New file.
17421         * modules/unictype/category-Sm-tests: New file.
17422         * modules/unictype/category-So-tests: New file.
17423         * modules/unictype/category-Z-tests: New file.
17424         * modules/unictype/category-Zl-tests: New file.
17425         * modules/unictype/category-Zp-tests: New file.
17426         * modules/unictype/category-Zs-tests: New file.
17427         * modules/unictype/category-and-not-tests: New file.
17428         * modules/unictype/category-and-tests: New file.
17429         * modules/unictype/category-byname-tests: New file.
17430         * modules/unictype/category-name-tests: New file.
17431         * modules/unictype/category-none-tests: New file.
17432         * modules/unictype/category-of-tests: New file.
17433         * modules/unictype/category-or-tests: New file.
17434         * modules/unictype/category-test-withtable-tests: New file.
17435         * modules/unictype/combining-class-tests: New file.
17436         * modules/unictype/ctype-alnum-tests: New file.
17437         * modules/unictype/ctype-alpha-tests: New file.
17438         * modules/unictype/ctype-blank-tests: New file.
17439         * modules/unictype/ctype-cntrl-tests: New file.
17440         * modules/unictype/ctype-digit-tests: New file.
17441         * modules/unictype/ctype-graph-tests: New file.
17442         * modules/unictype/ctype-lower-tests: New file.
17443         * modules/unictype/ctype-print-tests: New file.
17444         * modules/unictype/ctype-punct-tests: New file.
17445         * modules/unictype/ctype-space-tests: New file.
17446         * modules/unictype/ctype-upper-tests: New file.
17447         * modules/unictype/ctype-xdigit-tests: New file.
17448         * modules/unictype/decimal-digit-tests: New file.
17449         * modules/unictype/digit-tests: New file.
17450         * modules/unictype/mirror-tests: New file.
17451         * modules/unictype/numeric-tests: New file.
17452         * modules/unictype/property-alphabetic-tests: New file.
17453         * modules/unictype/property-ascii-hex-digit-tests: New file.
17454         * modules/unictype/property-bidi-arabic-digit-tests: New file.
17455         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
17456         * modules/unictype/property-bidi-block-separator-tests: New file.
17457         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
17458         * modules/unictype/property-bidi-common-separator-tests: New file.
17459         * modules/unictype/property-bidi-control-tests: New file.
17460         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
17461         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
17462         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
17463         * modules/unictype/property-bidi-european-digit-tests: New file.
17464         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
17465         * modules/unictype/property-bidi-left-to-right-tests: New file.
17466         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
17467         * modules/unictype/property-bidi-other-neutral-tests: New file.
17468         * modules/unictype/property-bidi-pdf-tests: New file.
17469         * modules/unictype/property-bidi-segment-separator-tests: New file.
17470         * modules/unictype/property-bidi-whitespace-tests: New file.
17471         * modules/unictype/property-byname-tests: New file.
17472         * modules/unictype/property-combining-tests: New file.
17473         * modules/unictype/property-composite-tests: New file.
17474         * modules/unictype/property-currency-symbol-tests: New file.
17475         * modules/unictype/property-dash-tests: New file.
17476         * modules/unictype/property-decimal-digit-tests: New file.
17477         * modules/unictype/property-default-ignorable-code-point-tests: New file.
17478         * modules/unictype/property-deprecated-tests: New file.
17479         * modules/unictype/property-diacritic-tests: New file.
17480         * modules/unictype/property-extender-tests: New file.
17481         * modules/unictype/property-format-control-tests: New file.
17482         * modules/unictype/property-grapheme-base-tests: New file.
17483         * modules/unictype/property-grapheme-extend-tests: New file.
17484         * modules/unictype/property-grapheme-link-tests: New file.
17485         * modules/unictype/property-hex-digit-tests: New file.
17486         * modules/unictype/property-hyphen-tests: New file.
17487         * modules/unictype/property-id-continue-tests: New file.
17488         * modules/unictype/property-id-start-tests: New file.
17489         * modules/unictype/property-ideographic-tests: New file.
17490         * modules/unictype/property-ids-binary-operator-tests: New file.
17491         * modules/unictype/property-ids-trinary-operator-tests: New file.
17492         * modules/unictype/property-ignorable-control-tests: New file.
17493         * modules/unictype/property-iso-control-tests: New file.
17494         * modules/unictype/property-join-control-tests: New file.
17495         * modules/unictype/property-left-of-pair-tests: New file.
17496         * modules/unictype/property-line-separator-tests: New file.
17497         * modules/unictype/property-logical-order-exception-tests: New file.
17498         * modules/unictype/property-lowercase-tests: New file.
17499         * modules/unictype/property-math-tests: New file.
17500         * modules/unictype/property-non-break-tests: New file.
17501         * modules/unictype/property-not-a-character-tests: New file.
17502         * modules/unictype/property-numeric-tests: New file.
17503         * modules/unictype/property-other-alphabetic-tests: New file.
17504         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
17505         * modules/unictype/property-other-grapheme-extend-tests: New file.
17506         * modules/unictype/property-other-id-continue-tests: New file.
17507         * modules/unictype/property-other-id-start-tests: New file.
17508         * modules/unictype/property-other-lowercase-tests: New file.
17509         * modules/unictype/property-other-math-tests: New file.
17510         * modules/unictype/property-other-uppercase-tests: New file.
17511         * modules/unictype/property-paired-punctuation-tests: New file.
17512         * modules/unictype/property-paragraph-separator-tests: New file.
17513         * modules/unictype/property-pattern-syntax-tests: New file.
17514         * modules/unictype/property-pattern-white-space-tests: New file.
17515         * modules/unictype/property-private-use-tests: New file.
17516         * modules/unictype/property-punctuation-tests: New file.
17517         * modules/unictype/property-quotation-mark-tests: New file.
17518         * modules/unictype/property-radical-tests: New file.
17519         * modules/unictype/property-sentence-terminal-tests: New file.
17520         * modules/unictype/property-soft-dotted-tests: New file.
17521         * modules/unictype/property-space-tests: New file.
17522         * modules/unictype/property-terminal-punctuation-tests: New file.
17523         * modules/unictype/property-test-tests: New file.
17524         * modules/unictype/property-titlecase-tests: New file.
17525         * modules/unictype/property-unassigned-code-value-tests: New file.
17526         * modules/unictype/property-unified-ideograph-tests: New file.
17527         * modules/unictype/property-uppercase-tests: New file.
17528         * modules/unictype/property-variation-selector-tests: New file.
17529         * modules/unictype/property-white-space-tests: New file.
17530         * modules/unictype/property-xid-continue-tests: New file.
17531         * modules/unictype/property-xid-start-tests: New file.
17532         * modules/unictype/property-zero-width-tests: New file.
17533         * modules/unictype/scripts-tests: New file.
17534         * modules/unictype/syntax-c-ident-tests: New file.
17535         * modules/unictype/syntax-c-whitespace-tests: New file.
17536         * modules/unictype/syntax-java-ident-tests: New file.
17537         * modules/unictype/syntax-java-whitespace-tests: New file.
17538         * tests/unictype/test-bidi_byname.c: New file.
17539         * tests/unictype/test-bidi_name.c: New file.
17540         * tests/unictype/test-bidi_of.c: New file.
17541         * tests/unictype/test-bidi_test.c: New file.
17542         * tests/unictype/test-block_list.c: New file.
17543         * tests/unictype/test-block_of.c: New file.
17544         * tests/unictype/test-block_test.c: New file.
17545         * tests/unictype/test-categ_and.c: New file.
17546         * tests/unictype/test-categ_and_not.c: New file.
17547         * tests/unictype/test-categ_byname.c: New file.
17548         * tests/unictype/test-categ_name.c: New file.
17549         * tests/unictype/test-categ_none.c: New file.
17550         * tests/unictype/test-categ_of.c: New file.
17551         * tests/unictype/test-categ_or.c: New file.
17552         * tests/unictype/test-categ_test_withtable.c: New file.
17553         * tests/unictype/test-combining.c: New file.
17554         * tests/unictype/test-decdigit.c: New file.
17555         * tests/unictype/test-digit.c: New file.
17556         * tests/unictype/test-mirror.c: New file.
17557         * tests/unictype/test-numeric.c: New file.
17558         * tests/unictype/test-pr_byname.c: New file.
17559         * tests/unictype/test-pr_test.c: New file.
17560         * tests/unictype/test-predicate-part1.h: New file.
17561         * tests/unictype/test-predicate-part2.h: New file.
17562         * tests/unictype/test-scripts.c: New file.
17563         * tests/unictype/test-sy_c_ident.c: New file.
17564         * tests/unictype/test-sy_java_ident.c: New file.
17565
17566         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
17567         for Unicode 5.0.0.
17568         * tests/unictype/test-categ_Cc.c: Likewise.
17569         * tests/unictype/test-categ_Cf.c: Likewise.
17570         * tests/unictype/test-categ_Cn.c: Likewise.
17571         * tests/unictype/test-categ_Co.c: Likewise.
17572         * tests/unictype/test-categ_Cs.c: Likewise.
17573         * tests/unictype/test-categ_L.c: Likewise.
17574         * tests/unictype/test-categ_Ll.c: Likewise.
17575         * tests/unictype/test-categ_Lm.c: Likewise.
17576         * tests/unictype/test-categ_Lo.c: Likewise.
17577         * tests/unictype/test-categ_Lt.c: Likewise.
17578         * tests/unictype/test-categ_Lu.c: Likewise.
17579         * tests/unictype/test-categ_M.c: Likewise.
17580         * tests/unictype/test-categ_Mc.c: Likewise.
17581         * tests/unictype/test-categ_Me.c: Likewise.
17582         * tests/unictype/test-categ_Mn.c: Likewise.
17583         * tests/unictype/test-categ_N.c: Likewise.
17584         * tests/unictype/test-categ_Nd.c: Likewise.
17585         * tests/unictype/test-categ_Nl.c: Likewise.
17586         * tests/unictype/test-categ_No.c: Likewise.
17587         * tests/unictype/test-categ_P.c: Likewise.
17588         * tests/unictype/test-categ_Pc.c: Likewise.
17589         * tests/unictype/test-categ_Pd.c: Likewise.
17590         * tests/unictype/test-categ_Pe.c: Likewise.
17591         * tests/unictype/test-categ_Pf.c: Likewise.
17592         * tests/unictype/test-categ_Pi.c: Likewise.
17593         * tests/unictype/test-categ_Po.c: Likewise.
17594         * tests/unictype/test-categ_Ps.c: Likewise.
17595         * tests/unictype/test-categ_S.c: Likewise.
17596         * tests/unictype/test-categ_Sc.c: Likewise.
17597         * tests/unictype/test-categ_Sk.c: Likewise.
17598         * tests/unictype/test-categ_Sm.c: Likewise.
17599         * tests/unictype/test-categ_So.c: Likewise.
17600         * tests/unictype/test-categ_Z.c: Likewise.
17601         * tests/unictype/test-categ_Zl.c: Likewise.
17602         * tests/unictype/test-categ_Zp.c: Likewise.
17603         * tests/unictype/test-categ_Zs.c: Likewise.
17604         * tests/unictype/test-ctype_alnum.c: Likewise.
17605         * tests/unictype/test-ctype_alpha.c: Likewise.
17606         * tests/unictype/test-ctype_blank.c: Likewise.
17607         * tests/unictype/test-ctype_cntrl.c: Likewise.
17608         * tests/unictype/test-ctype_digit.c: Likewise.
17609         * tests/unictype/test-ctype_graph.c: Likewise.
17610         * tests/unictype/test-ctype_lower.c: Likewise.
17611         * tests/unictype/test-ctype_print.c: Likewise.
17612         * tests/unictype/test-ctype_punct.c: Likewise.
17613         * tests/unictype/test-ctype_space.c: Likewise.
17614         * tests/unictype/test-ctype_upper.c: Likewise.
17615         * tests/unictype/test-ctype_xdigit.c: Likewise.
17616         * tests/unictype/test-decdigit.h: Likewise.
17617         * tests/unictype/test-digit.h: Likewise.
17618         * tests/unictype/test-numeric.h: Likewise.
17619         * tests/unictype/test-pr_alphabetic.c: Likewise.
17620         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
17621         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
17622         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
17623         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
17624         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
17625         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
17626         * tests/unictype/test-pr_bidi_control.c: Likewise.
17627         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
17628         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
17629         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
17630         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
17631         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
17632         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
17633         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
17634         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
17635         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
17636         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
17637         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
17638         * tests/unictype/test-pr_combining.c: Likewise.
17639         * tests/unictype/test-pr_composite.c: Likewise.
17640         * tests/unictype/test-pr_currency_symbol.c: Likewise.
17641         * tests/unictype/test-pr_dash.c: Likewise.
17642         * tests/unictype/test-pr_decimal_digit.c: Likewise.
17643         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
17644         * tests/unictype/test-pr_deprecated.c: Likewise.
17645         * tests/unictype/test-pr_diacritic.c: Likewise.
17646         * tests/unictype/test-pr_extender.c: Likewise.
17647         * tests/unictype/test-pr_format_control.c: Likewise.
17648         * tests/unictype/test-pr_grapheme_base.c: Likewise.
17649         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
17650         * tests/unictype/test-pr_grapheme_link.c: Likewise.
17651         * tests/unictype/test-pr_hex_digit.c: Likewise.
17652         * tests/unictype/test-pr_hyphen.c: Likewise.
17653         * tests/unictype/test-pr_id_continue.c: Likewise.
17654         * tests/unictype/test-pr_id_start.c: Likewise.
17655         * tests/unictype/test-pr_ideographic.c: Likewise.
17656         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
17657         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
17658         * tests/unictype/test-pr_ignorable_control.c: Likewise.
17659         * tests/unictype/test-pr_iso_control.c: Likewise.
17660         * tests/unictype/test-pr_join_control.c: Likewise.
17661         * tests/unictype/test-pr_left_of_pair.c: Likewise.
17662         * tests/unictype/test-pr_line_separator.c: Likewise.
17663         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
17664         * tests/unictype/test-pr_lowercase.c: Likewise.
17665         * tests/unictype/test-pr_math.c: Likewise.
17666         * tests/unictype/test-pr_non_break.c: Likewise.
17667         * tests/unictype/test-pr_not_a_character.c: Likewise.
17668         * tests/unictype/test-pr_numeric.c: Likewise.
17669         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
17670         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
17671         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
17672         * tests/unictype/test-pr_other_id_continue.c: Likewise.
17673         * tests/unictype/test-pr_other_id_start.c: Likewise.
17674         * tests/unictype/test-pr_other_lowercase.c: Likewise.
17675         * tests/unictype/test-pr_other_math.c: Likewise.
17676         * tests/unictype/test-pr_other_uppercase.c: Likewise.
17677         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
17678         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
17679         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
17680         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
17681         * tests/unictype/test-pr_private_use.c: Likewise.
17682         * tests/unictype/test-pr_punctuation.c: Likewise.
17683         * tests/unictype/test-pr_quotation_mark.c: Likewise.
17684         * tests/unictype/test-pr_radical.c: Likewise.
17685         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
17686         * tests/unictype/test-pr_soft_dotted.c: Likewise.
17687         * tests/unictype/test-pr_space.c: Likewise.
17688         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
17689         * tests/unictype/test-pr_titlecase.c: Likewise.
17690         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
17691         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
17692         * tests/unictype/test-pr_uppercase.c: Likewise.
17693         * tests/unictype/test-pr_variation_selector.c: Likewise.
17694         * tests/unictype/test-pr_white_space.c: Likewise.
17695         * tests/unictype/test-pr_xid_continue.c: Likewise.
17696         * tests/unictype/test-pr_xid_start.c: Likewise.
17697         * tests/unictype/test-pr_zero_width.c: Likewise.
17698         * tests/unictype/test-sy_c_whitespace.c: Likewise.
17699         * tests/unictype/test-sy_java_whitespace.c: Likewise.
17700
17701 2007-11-12  Bruno Haible  <bruno@clisp.org>
17702
17703         Unicode character classification functions.
17704         * lib/unictype.h: New file.
17705         * modules/unictype/base: New file.
17706         * modules/unictype/category-L: New file.
17707         * modules/unictype/category-Lu: New file.
17708         * modules/unictype/category-Ll: New file.
17709         * modules/unictype/category-Lt: New file.
17710         * modules/unictype/category-Lm: New file.
17711         * modules/unictype/category-Lo: New file.
17712         * modules/unictype/category-M: New file.
17713         * modules/unictype/category-Mn: New file.
17714         * modules/unictype/category-Mc: New file.
17715         * modules/unictype/category-Me: New file.
17716         * modules/unictype/category-N: New file.
17717         * modules/unictype/category-Nd: New file.
17718         * modules/unictype/category-Nl: New file.
17719         * modules/unictype/category-No: New file.
17720         * modules/unictype/category-P: New file.
17721         * modules/unictype/category-Pc: New file.
17722         * modules/unictype/category-Pd: New file.
17723         * modules/unictype/category-Ps: New file.
17724         * modules/unictype/category-Pe: New file.
17725         * modules/unictype/category-Pi: New file.
17726         * modules/unictype/category-Pf: New file.
17727         * modules/unictype/category-Po: New file.
17728         * modules/unictype/category-S: New file.
17729         * modules/unictype/category-Sm: New file.
17730         * modules/unictype/category-Sc: New file.
17731         * modules/unictype/category-Sk: New file.
17732         * modules/unictype/category-So: New file.
17733         * modules/unictype/category-Z: New file.
17734         * modules/unictype/category-Zs: New file.
17735         * modules/unictype/category-Zl: New file.
17736         * modules/unictype/category-Zp: New file.
17737         * modules/unictype/category-C: New file.
17738         * modules/unictype/category-Cc: New file.
17739         * modules/unictype/category-Cf: New file.
17740         * modules/unictype/category-Cs: New file.
17741         * modules/unictype/category-Co: New file.
17742         * modules/unictype/category-Cn: New file.
17743         * modules/unictype/category-or: New file.
17744         * modules/unictype/category-of: New file.
17745         * modules/unictype/category-test: New file.
17746         * modules/unictype/category-test-withtable: New file.
17747         * modules/unictype/category-byname: New file.
17748         * modules/unictype/category-none: New file.
17749         * modules/unictype/category-and: New file.
17750         * modules/unictype/category-and-not: New file.
17751         * modules/unictype/category-name: New file.
17752         * modules/unictype/combining-class: New file.
17753         * modules/unictype/category-all: New file.
17754         * modules/unictype/bidicategory-all: New file.
17755         * modules/unictype/bidicategory-byname: New file.
17756         * modules/unictype/bidicategory-name: New file.
17757         * modules/unictype/bidicategory-of: New file.
17758         * modules/unictype/bidicategory-test: New file.
17759         * modules/unictype/decimal-digit: New file.
17760         * modules/unictype/digit: New file.
17761         * modules/unictype/numeric: New file.
17762         * modules/unictype/mirror: New file.
17763         * modules/unictype/property-white-space: New file.
17764         * modules/unictype/property-alphabetic: New file.
17765         * modules/unictype/property-other-alphabetic: New file.
17766         * modules/unictype/property-not-a-character: New file.
17767         * modules/unictype/property-default-ignorable-code-point: New file.
17768         * modules/unictype/property-other-default-ignorable-code-point: New
17769         file.
17770         * modules/unictype/property-deprecated: New file.
17771         * modules/unictype/property-logical-order-exception: New file.
17772         * modules/unictype/property-variation-selector: New file.
17773         * modules/unictype/property-private-use: New file.
17774         * modules/unictype/property-unassigned-code-value: New file.
17775         * modules/unictype/property-uppercase: New file.
17776         * modules/unictype/property-other-uppercase: New file.
17777         * modules/unictype/property-lowercase: New file.
17778         * modules/unictype/property-other-lowercase: New file.
17779         * modules/unictype/property-titlecase: New file.
17780         * modules/unictype/property-soft-dotted: New file.
17781         * modules/unictype/property-id-start: New file.
17782         * modules/unictype/property-other-id-start: New file.
17783         * modules/unictype/property-id-continue: New file.
17784         * modules/unictype/property-other-id-continue: New file.
17785         * modules/unictype/property-xid-start: New file.
17786         * modules/unictype/property-xid-continue: New file.
17787         * modules/unictype/property-pattern-white-space: New file.
17788         * modules/unictype/property-pattern-syntax: New file.
17789         * modules/unictype/property-join-control: New file.
17790         * modules/unictype/property-grapheme-base: New file.
17791         * modules/unictype/property-grapheme-extend: New file.
17792         * modules/unictype/property-other-grapheme-extend: New file.
17793         * modules/unictype/property-grapheme-link: New file.
17794         * modules/unictype/property-bidi-control: New file.
17795         * modules/unictype/property-bidi-left-to-right: New file.
17796         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
17797         * modules/unictype/property-bidi-arabic-right-to-left: New file.
17798         * modules/unictype/property-bidi-european-digit: New file.
17799         * modules/unictype/property-bidi-eur-num-separator: New file.
17800         * modules/unictype/property-bidi-eur-num-terminator: New file.
17801         * modules/unictype/property-bidi-arabic-digit: New file.
17802         * modules/unictype/property-bidi-common-separator: New file.
17803         * modules/unictype/property-bidi-block-separator: New file.
17804         * modules/unictype/property-bidi-segment-separator: New file.
17805         * modules/unictype/property-bidi-whitespace: New file.
17806         * modules/unictype/property-bidi-non-spacing-mark: New file.
17807         * modules/unictype/property-bidi-boundary-neutral: New file.
17808         * modules/unictype/property-bidi-pdf: New file.
17809         * modules/unictype/property-bidi-embedding-or-override: New file.
17810         * modules/unictype/property-bidi-other-neutral: New file.
17811         * modules/unictype/property-hex-digit: New file.
17812         * modules/unictype/property-ascii-hex-digit: New file.
17813         * modules/unictype/property-ideographic: New file.
17814         * modules/unictype/property-unified-ideograph: New file.
17815         * modules/unictype/property-radical: New file.
17816         * modules/unictype/property-ids-binary-operator: New file.
17817         * modules/unictype/property-ids-trinary-operator: New file.
17818         * modules/unictype/property-zero-width: New file.
17819         * modules/unictype/property-space: New file.
17820         * modules/unictype/property-non-break: New file.
17821         * modules/unictype/property-iso-control: New file.
17822         * modules/unictype/property-format-control: New file.
17823         * modules/unictype/property-dash: New file.
17824         * modules/unictype/property-hyphen: New file.
17825         * modules/unictype/property-punctuation: New file.
17826         * modules/unictype/property-line-separator: New file.
17827         * modules/unictype/property-paragraph-separator: New file.
17828         * modules/unictype/property-quotation-mark: New file.
17829         * modules/unictype/property-sentence-terminal: New file.
17830         * modules/unictype/property-terminal-punctuation: New file.
17831         * modules/unictype/property-currency-symbol: New file.
17832         * modules/unictype/property-math: New file.
17833         * modules/unictype/property-other-math: New file.
17834         * modules/unictype/property-paired-punctuation: New file.
17835         * modules/unictype/property-left-of-pair: New file.
17836         * modules/unictype/property-combining: New file.
17837         * modules/unictype/property-composite: New file.
17838         * modules/unictype/property-decimal-digit: New file.
17839         * modules/unictype/property-numeric: New file.
17840         * modules/unictype/property-diacritic: New file.
17841         * modules/unictype/property-extender: New file.
17842         * modules/unictype/property-ignorable-control: New file.
17843         * modules/unictype/property-test: New file.
17844         * modules/unictype/property-byname: New file.
17845         * modules/unictype/property-all: New file.
17846         * modules/unictype/scripts: New file.
17847         * modules/unictype/scripts-all: New file.
17848         * modules/unictype/block-of: New file.
17849         * modules/unictype/block-test: New file.
17850         * modules/unictype/block-list: New file.
17851         * modules/unictype/block-all: New file.
17852         * modules/unictype/syntax-c-whitespace: New file.
17853         * modules/unictype/syntax-java-whitespace: New file.
17854         * modules/unictype/syntax-c-ident: New file.
17855         * modules/unictype/syntax-java-ident: New file.
17856         * modules/unictype/ctype-alnum: New file.
17857         * modules/unictype/ctype-alpha: New file.
17858         * modules/unictype/ctype-cntrl: New file.
17859         * modules/unictype/ctype-digit: New file.
17860         * modules/unictype/ctype-graph: New file.
17861         * modules/unictype/ctype-lower: New file.
17862         * modules/unictype/ctype-print: New file.
17863         * modules/unictype/ctype-punct: New file.
17864         * modules/unictype/ctype-space: New file.
17865         * modules/unictype/ctype-upper: New file.
17866         * modules/unictype/ctype-xdigit: New file.
17867         * modules/unictype/ctype-blank: New file.
17868         * lib/unictype/bidi_byname.c: New file.
17869         * lib/unictype/bidi_name.c: New file.
17870         * lib/unictype/bidi_of.c: New file.
17871         * lib/unictype/bidi_test.c: New file.
17872         * lib/unictype/bitmap.h: New file.
17873         * lib/unictype/block_test.c: New file.
17874         * lib/unictype/blocks.c: New file.
17875         * lib/unictype/categ_C.c: New file.
17876         * lib/unictype/categ_Cc.c: New file.
17877         * lib/unictype/categ_Cf.c: New file.
17878         * lib/unictype/categ_Cn.c: New file.
17879         * lib/unictype/categ_Co.c: New file.
17880         * lib/unictype/categ_Cs.c: New file.
17881         * lib/unictype/categ_L.c: New file.
17882         * lib/unictype/categ_Ll.c: New file.
17883         * lib/unictype/categ_Lm.c: New file.
17884         * lib/unictype/categ_Lo.c: New file.
17885         * lib/unictype/categ_Lt.c: New file.
17886         * lib/unictype/categ_Lu.c: New file.
17887         * lib/unictype/categ_M.c: New file.
17888         * lib/unictype/categ_Mc.c: New file.
17889         * lib/unictype/categ_Me.c: New file.
17890         * lib/unictype/categ_Mn.c: New file.
17891         * lib/unictype/categ_N.c: New file.
17892         * lib/unictype/categ_Nd.c: New file.
17893         * lib/unictype/categ_Nl.c: New file.
17894         * lib/unictype/categ_No.c: New file.
17895         * lib/unictype/categ_P.c: New file.
17896         * lib/unictype/categ_Pc.c: New file.
17897         * lib/unictype/categ_Pd.c: New file.
17898         * lib/unictype/categ_Pe.c: New file.
17899         * lib/unictype/categ_Pf.c: New file.
17900         * lib/unictype/categ_Pi.c: New file.
17901         * lib/unictype/categ_Po.c: New file.
17902         * lib/unictype/categ_Ps.c: New file.
17903         * lib/unictype/categ_S.c: New file.
17904         * lib/unictype/categ_Sc.c: New file.
17905         * lib/unictype/categ_Sk.c: New file.
17906         * lib/unictype/categ_Sm.c: New file.
17907         * lib/unictype/categ_So.c: New file.
17908         * lib/unictype/categ_Z.c: New file.
17909         * lib/unictype/categ_Zl.c: New file.
17910         * lib/unictype/categ_Zp.c: New file.
17911         * lib/unictype/categ_Zs.c: New file.
17912         * lib/unictype/categ_and.c: New file.
17913         * lib/unictype/categ_and_not.c: New file.
17914         * lib/unictype/categ_byname.c: New file.
17915         * lib/unictype/categ_name.c: New file.
17916         * lib/unictype/categ_none.c: New file.
17917         * lib/unictype/categ_of.c: New file.
17918         * lib/unictype/categ_or.c: New file.
17919         * lib/unictype/categ_test.c: New file.
17920         * lib/unictype/combining.c: New file.
17921         * lib/unictype/ctype_alnum.c: New file.
17922         * lib/unictype/ctype_alpha.c: New file.
17923         * lib/unictype/ctype_blank.c: New file.
17924         * lib/unictype/ctype_cntrl.c: New file.
17925         * lib/unictype/ctype_digit.c: New file.
17926         * lib/unictype/ctype_graph.c: New file.
17927         * lib/unictype/ctype_lower.c: New file.
17928         * lib/unictype/ctype_print.c: New file.
17929         * lib/unictype/ctype_punct.c: New file.
17930         * lib/unictype/ctype_space.c: New file.
17931         * lib/unictype/ctype_upper.c: New file.
17932         * lib/unictype/ctype_xdigit.c: New file.
17933         * lib/unictype/decdigit.c: New file.
17934         * lib/unictype/digit.c: New file.
17935         * lib/unictype/identsyntaxmap.h: New file.
17936         * lib/unictype/mirror.c: New file.
17937         * lib/unictype/numeric.c: New file.
17938         * lib/unictype/pr_alphabetic.c: New file.
17939         * lib/unictype/pr_ascii_hex_digit.c: New file.
17940         * lib/unictype/pr_bidi_arabic_digit.c: New file.
17941         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
17942         * lib/unictype/pr_bidi_block_separator.c: New file.
17943         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
17944         * lib/unictype/pr_bidi_common_separator.c: New file.
17945         * lib/unictype/pr_bidi_control.c: New file.
17946         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
17947         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
17948         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
17949         * lib/unictype/pr_bidi_european_digit.c: New file.
17950         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
17951         * lib/unictype/pr_bidi_left_to_right.c: New file.
17952         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
17953         * lib/unictype/pr_bidi_other_neutral.c: New file.
17954         * lib/unictype/pr_bidi_pdf.c: New file.
17955         * lib/unictype/pr_bidi_segment_separator.c: New file.
17956         * lib/unictype/pr_bidi_whitespace.c: New file.
17957         * lib/unictype/pr_byname.c: New file.
17958         * lib/unictype/pr_byname.gperf: New file.
17959         * lib/unictype/pr_combining.c: New file.
17960         * lib/unictype/pr_composite.c: New file.
17961         * lib/unictype/pr_currency_symbol.c: New file.
17962         * lib/unictype/pr_dash.c: New file.
17963         * lib/unictype/pr_decimal_digit.c: New file.
17964         * lib/unictype/pr_default_ignorable_code_point.c: New file.
17965         * lib/unictype/pr_deprecated.c: New file.
17966         * lib/unictype/pr_diacritic.c: New file.
17967         * lib/unictype/pr_extender.c: New file.
17968         * lib/unictype/pr_format_control.c: New file.
17969         * lib/unictype/pr_grapheme_base.c: New file.
17970         * lib/unictype/pr_grapheme_extend.c: New file.
17971         * lib/unictype/pr_grapheme_link.c: New file.
17972         * lib/unictype/pr_hex_digit.c: New file.
17973         * lib/unictype/pr_hyphen.c: New file.
17974         * lib/unictype/pr_id_continue.c: New file.
17975         * lib/unictype/pr_id_start.c: New file.
17976         * lib/unictype/pr_ideographic.c: New file.
17977         * lib/unictype/pr_ids_binary_operator.c: New file.
17978         * lib/unictype/pr_ids_trinary_operator.c: New file.
17979         * lib/unictype/pr_ignorable_control.c: New file.
17980         * lib/unictype/pr_iso_control.c: New file.
17981         * lib/unictype/pr_join_control.c: New file.
17982         * lib/unictype/pr_left_of_pair.c: New file.
17983         * lib/unictype/pr_line_separator.c: New file.
17984         * lib/unictype/pr_logical_order_exception.c: New file.
17985         * lib/unictype/pr_lowercase.c: New file.
17986         * lib/unictype/pr_math.c: New file.
17987         * lib/unictype/pr_non_break.c: New file.
17988         * lib/unictype/pr_not_a_character.c: New file.
17989         * lib/unictype/pr_numeric.c: New file.
17990         * lib/unictype/pr_other_alphabetic.c: New file.
17991         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
17992         * lib/unictype/pr_other_grapheme_extend.c: New file.
17993         * lib/unictype/pr_other_id_continue.c: New file.
17994         * lib/unictype/pr_other_id_start.c: New file.
17995         * lib/unictype/pr_other_lowercase.c: New file.
17996         * lib/unictype/pr_other_math.c: New file.
17997         * lib/unictype/pr_other_uppercase.c: New file.
17998         * lib/unictype/pr_paired_punctuation.c: New file.
17999         * lib/unictype/pr_paragraph_separator.c: New file.
18000         * lib/unictype/pr_pattern_syntax.c: New file.
18001         * lib/unictype/pr_pattern_white_space.c: New file.
18002         * lib/unictype/pr_private_use.c: New file.
18003         * lib/unictype/pr_punctuation.c: New file.
18004         * lib/unictype/pr_quotation_mark.c: New file.
18005         * lib/unictype/pr_radical.c: New file.
18006         * lib/unictype/pr_sentence_terminal.c: New file.
18007         * lib/unictype/pr_soft_dotted.c: New file.
18008         * lib/unictype/pr_space.c: New file.
18009         * lib/unictype/pr_terminal_punctuation.c: New file.
18010         * lib/unictype/pr_test.c: New file.
18011         * lib/unictype/pr_titlecase.c: New file.
18012         * lib/unictype/pr_unassigned_code_value.c: New file.
18013         * lib/unictype/pr_unified_ideograph.c: New file.
18014         * lib/unictype/pr_uppercase.c: New file.
18015         * lib/unictype/pr_variation_selector.c: New file.
18016         * lib/unictype/pr_white_space.c: New file.
18017         * lib/unictype/pr_xid_continue.c: New file.
18018         * lib/unictype/pr_xid_start.c: New file.
18019         * lib/unictype/pr_zero_width.c: New file.
18020         * lib/unictype/scripts.c: New file.
18021         * lib/unictype/sy_c_ident.c: New file.
18022         * lib/unictype/sy_c_whitespace.c: New file.
18023         * lib/unictype/sy_java_ident.c: New file.
18024         * lib/unictype/sy_java_whitespace.c: New file.
18025
18026         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
18027         Unicode 5.0.0.
18028         * lib/unictype/blocks.h: Likewise.
18029         * lib/unictype/categ_C.h: Likewise.
18030         * lib/unictype/categ_Cc.h: Likewise.
18031         * lib/unictype/categ_Cf.h: Likewise.
18032         * lib/unictype/categ_Cn.h: Likewise.
18033         * lib/unictype/categ_Co.h: Likewise.
18034         * lib/unictype/categ_Cs.h: Likewise.
18035         * lib/unictype/categ_L.h: Likewise.
18036         * lib/unictype/categ_Ll.h: Likewise.
18037         * lib/unictype/categ_Lm.h: Likewise.
18038         * lib/unictype/categ_Lo.h: Likewise.
18039         * lib/unictype/categ_Lt.h: Likewise.
18040         * lib/unictype/categ_Lu.h: Likewise.
18041         * lib/unictype/categ_M.h: Likewise.
18042         * lib/unictype/categ_Mc.h: Likewise.
18043         * lib/unictype/categ_Me.h: Likewise.
18044         * lib/unictype/categ_Mn.h: Likewise.
18045         * lib/unictype/categ_N.h: Likewise.
18046         * lib/unictype/categ_Nd.h: Likewise.
18047         * lib/unictype/categ_Nl.h: Likewise.
18048         * lib/unictype/categ_No.h: Likewise.
18049         * lib/unictype/categ_P.h: Likewise.
18050         * lib/unictype/categ_Pc.h: Likewise.
18051         * lib/unictype/categ_Pd.h: Likewise.
18052         * lib/unictype/categ_Pe.h: Likewise.
18053         * lib/unictype/categ_Pf.h: Likewise.
18054         * lib/unictype/categ_Pi.h: Likewise.
18055         * lib/unictype/categ_Po.h: Likewise.
18056         * lib/unictype/categ_Ps.h: Likewise.
18057         * lib/unictype/categ_S.h: Likewise.
18058         * lib/unictype/categ_Sc.h: Likewise.
18059         * lib/unictype/categ_Sk.h: Likewise.
18060         * lib/unictype/categ_Sm.h: Likewise.
18061         * lib/unictype/categ_So.h: Likewise.
18062         * lib/unictype/categ_Z.h: Likewise.
18063         * lib/unictype/categ_Zl.h: Likewise.
18064         * lib/unictype/categ_Zp.h: Likewise.
18065         * lib/unictype/categ_Zs.h: Likewise.
18066         * lib/unictype/categ_of.h: Likewise.
18067         * lib/unictype/combining.h: Likewise.
18068         * lib/unictype/ctype_alnum.h: Likewise.
18069         * lib/unictype/ctype_alpha.h: Likewise.
18070         * lib/unictype/ctype_blank.h: Likewise.
18071         * lib/unictype/ctype_cntrl.h: Likewise.
18072         * lib/unictype/ctype_digit.h: Likewise.
18073         * lib/unictype/ctype_graph.h: Likewise.
18074         * lib/unictype/ctype_lower.h: Likewise.
18075         * lib/unictype/ctype_print.h: Likewise.
18076         * lib/unictype/ctype_punct.h: Likewise.
18077         * lib/unictype/ctype_space.h: Likewise.
18078         * lib/unictype/ctype_upper.h: Likewise.
18079         * lib/unictype/ctype_xdigit.h: Likewise.
18080         * lib/unictype/decdigit.h: Likewise.
18081         * lib/unictype/digit.h: Likewise.
18082         * lib/unictype/mirror.h: Likewise.
18083         * lib/unictype/numeric.h: Likewise.
18084         * lib/unictype/pr_alphabetic.h: Likewise.
18085         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
18086         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
18087         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
18088         * lib/unictype/pr_bidi_block_separator.h: Likewise.
18089         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
18090         * lib/unictype/pr_bidi_common_separator.h: Likewise.
18091         * lib/unictype/pr_bidi_control.h: Likewise.
18092         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
18093         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
18094         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
18095         * lib/unictype/pr_bidi_european_digit.h: Likewise.
18096         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
18097         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
18098         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
18099         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
18100         * lib/unictype/pr_bidi_pdf.h: Likewise.
18101         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
18102         * lib/unictype/pr_bidi_whitespace.h: Likewise.
18103         * lib/unictype/pr_combining.h: Likewise.
18104         * lib/unictype/pr_composite.h: Likewise.
18105         * lib/unictype/pr_currency_symbol.h: Likewise.
18106         * lib/unictype/pr_dash.h: Likewise.
18107         * lib/unictype/pr_decimal_digit.h: Likewise.
18108         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
18109         * lib/unictype/pr_deprecated.h: Likewise.
18110         * lib/unictype/pr_diacritic.h: Likewise.
18111         * lib/unictype/pr_extender.h: Likewise.
18112         * lib/unictype/pr_format_control.h: Likewise.
18113         * lib/unictype/pr_grapheme_base.h: Likewise.
18114         * lib/unictype/pr_grapheme_extend.h: Likewise.
18115         * lib/unictype/pr_grapheme_link.h: Likewise.
18116         * lib/unictype/pr_hex_digit.h: Likewise.
18117         * lib/unictype/pr_hyphen.h: Likewise.
18118         * lib/unictype/pr_id_continue.h: Likewise.
18119         * lib/unictype/pr_id_start.h: Likewise.
18120         * lib/unictype/pr_ideographic.h: Likewise.
18121         * lib/unictype/pr_ids_binary_operator.h: Likewise.
18122         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
18123         * lib/unictype/pr_ignorable_control.h: Likewise.
18124         * lib/unictype/pr_iso_control.h: Likewise.
18125         * lib/unictype/pr_join_control.h: Likewise.
18126         * lib/unictype/pr_left_of_pair.h: Likewise.
18127         * lib/unictype/pr_line_separator.h: Likewise.
18128         * lib/unictype/pr_logical_order_exception.h: Likewise.
18129         * lib/unictype/pr_lowercase.h: Likewise.
18130         * lib/unictype/pr_math.h: Likewise.
18131         * lib/unictype/pr_non_break.h: Likewise.
18132         * lib/unictype/pr_not_a_character.h: Likewise.
18133         * lib/unictype/pr_numeric.h: Likewise.
18134         * lib/unictype/pr_other_alphabetic.h: Likewise.
18135         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
18136         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
18137         * lib/unictype/pr_other_id_continue.h: Likewise.
18138         * lib/unictype/pr_other_id_start.h: Likewise.
18139         * lib/unictype/pr_other_lowercase.h: Likewise.
18140         * lib/unictype/pr_other_math.h: Likewise.
18141         * lib/unictype/pr_other_uppercase.h: Likewise.
18142         * lib/unictype/pr_paired_punctuation.h: Likewise.
18143         * lib/unictype/pr_paragraph_separator.h: Likewise.
18144         * lib/unictype/pr_pattern_syntax.h: Likewise.
18145         * lib/unictype/pr_pattern_white_space.h: Likewise.
18146         * lib/unictype/pr_private_use.h: Likewise.
18147         * lib/unictype/pr_punctuation.h: Likewise.
18148         * lib/unictype/pr_quotation_mark.h: Likewise.
18149         * lib/unictype/pr_radical.h: Likewise.
18150         * lib/unictype/pr_sentence_terminal.h: Likewise.
18151         * lib/unictype/pr_soft_dotted.h: Likewise.
18152         * lib/unictype/pr_space.h: Likewise.
18153         * lib/unictype/pr_terminal_punctuation.h: Likewise.
18154         * lib/unictype/pr_titlecase.h: Likewise.
18155         * lib/unictype/pr_unassigned_code_value.h: Likewise.
18156         * lib/unictype/pr_unified_ideograph.h: Likewise.
18157         * lib/unictype/pr_uppercase.h: Likewise.
18158         * lib/unictype/pr_variation_selector.h: Likewise.
18159         * lib/unictype/pr_white_space.h: Likewise.
18160         * lib/unictype/pr_xid_continue.h: Likewise.
18161         * lib/unictype/pr_xid_start.h: Likewise.
18162         * lib/unictype/pr_zero_width.h: Likewise.
18163         * lib/unictype/scripts.h: Likewise.
18164         * lib/unictype/scripts_byname.gperf: Likewise.
18165         * lib/unictype/sy_c_ident.h: Likewise.
18166         * lib/unictype/sy_c_whitespace.h: Likewise.
18167         * lib/unictype/sy_java_ident.h: Likewise.
18168         * lib/unictype/sy_java_whitespace.h: Likewise.
18169
18170         * lib/unictype/Makefile: New file.
18171         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
18172         glibc.
18173         * lib/unictype/3level.h: New file, copied from glibc.
18174         * lib/unictype/3levelbit.h: New file.
18175
18176 2007-11-11  Bruno Haible  <bruno@clisp.org>
18177
18178         * modules/gperf: New file.
18179         * modules/iconv_open (Depends-on): Add it.
18180         (Makefile.am): Remove the GPERF definition.
18181
18182 2007-11-11  Bruno Haible  <bruno@clisp.org>
18183
18184         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
18185         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
18186
18187 2007-11-11  Bruno Haible  <bruno@clisp.org>
18188
18189         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
18190         (usage): Remove function.
18191
18192 2007-11-11  Bruno Haible  <bruno@clisp.org>
18193
18194         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
18195         gl_FUNC_CEILF_LIBS.
18196         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
18197         gl_FUNC_CEIL_LIBS.
18198         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
18199         gl_FUNC_CEILL_LIBS.
18200         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
18201         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
18202         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
18203
18204 2007-11-11  Bruno Haible  <bruno@clisp.org>
18205
18206         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
18207         roundf were declared but do not exist on functions.
18208         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
18209         roundl were declared but do not exist on functions.
18210         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
18211         HAVE_FLOORL_AND_CEILL, respectively.
18212         Needed for Sun C on Solaris 10.
18213
18214 2007-11-11  Bruno Haible  <bruno@clisp.org>
18215
18216         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
18217         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
18218         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
18219         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
18220         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
18221         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
18222         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
18223         HAVE_DECL_ROUNDF.
18224         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
18225         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
18226         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
18227         of HAVE_DECL_ROUND*.
18228         * modules/math (Makefile.am): Update.
18229
18230 2007-11-10  Bruno Haible  <bruno@clisp.org>
18231
18232         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
18233         ptrdiff_t as m4/intl.m4.
18234
18235 2007-11-10  Jim Meyering  <meyering@redhat.com>
18236
18237         Avoid link failure for the argmatch test.
18238         * tests/test-argmatch.c (usage): Define function to avoid a link
18239         failure: argmatch_die requires a usage function.
18240
18241 2007-11-09  Bruno Haible  <bruno@clisp.org>
18242
18243         * doc/functions/snprintf.texi: Mention BeOS deficiency.
18244         * doc/functions/vsnprintf.texi: Likewise.
18245         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
18246         with a size argument < 2.
18247
18248 2007-11-09  Bruno Haible  <bruno@clisp.org>
18249
18250         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
18251         buffer. Fixes an inefficiency introduced on 2007-11-03.
18252
18253 2007-11-09  Bruno Haible  <bruno@clisp.org>
18254
18255         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
18256         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
18257
18258 2007-11-08  Jim Meyering  <meyering@redhat.com>
18259
18260         Change cache variable name prefix "jm_" to "gl_" everywhere.
18261         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
18262         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
18263         * m4/uptime.m4: s/gl_/jm_/
18264
18265 2007-11-07  Bruno Haible  <bruno@clisp.org>
18266
18267         Update to GNU gettext 0.17.
18268         * m4/intl.m4: Update to GNU gettext 0.17.
18269         * m4/po.m4: Likewise.
18270         * modules/gettext (Files): Remove m4/ulonglong.m4.
18271         (configure.ac): Require gettext infrastructure from version 0.17.
18272
18273 2007-11-06  Bruno Haible  <bruno@clisp.org>
18274
18275         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
18276         symbolic values are not defined in a public header.
18277         * lib/freadable.c (freadable) [QNX]: Likewise.
18278         * lib/freadahead.c (freadahead) [QNX]: Likewise.
18279         * lib/freading.c (freading) [QNX]: Likewise.
18280         * lib/fseterr.c (fseterr) [QNX]: Likewise.
18281         * lib/fwritable.c (fwritable) [QNX]: Likewise.
18282         * lib/fwriting.c (fwriting) [QNX]: Likewise.
18283         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
18284         Reported by Alain Magloire.
18285
18286         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
18287
18288 2007-11-05  Bruno Haible  <bruno@clisp.org>
18289
18290         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
18291         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
18292         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
18293         Reported by Eric Blake.
18294
18295 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18296             Bruno Haible  <bruno@clisp.org>
18297
18298         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
18299         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
18300         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
18301         (malloc): Undefine also before including <stdlib.h>.
18302         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
18303         Needed on OSF/1 4.0.
18304
18305 2007-11-05  Jim Meyering  <meyering@redhat.com>
18306
18307         git-version-gen: sync from coreutils.
18308         * build-aux/git-version-gen: Add comments.
18309         Change the first '-' to '.' in the snapshot version string,
18310         e.g., 6.9-377-08144 -> 6.9.377-08144
18311         Remove first parameter.
18312         Don't declare a version "-dirty" merely because a time
18313         stamp has changed.
18314
18315 2007-11-04  Bruno Haible  <bruno@clisp.org>
18316
18317         * lib/lock.h: Protect all macro definitions containing an 'if'
18318         statement through a "do { ... } while (0)".
18319         * lib/tls.h: Likewise.
18320
18321 2007-11-04  Bruno Haible  <bruno@clisp.org>
18322
18323         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
18324
18325 2007-11-04  Bruno Haible  <bruno@clisp.org>
18326
18327         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
18328         * modules/fprintf-posix (Depends-on): Add nocrash.
18329         * modules/snprintf-posix (Depends-on): Likewise.
18330         * modules/sprintf-posix (Depends-on): Likewise.
18331         * modules/vasnprintf-posix (Depends-on): Likewise.
18332         * modules/vasprintf-posix (Depends-on): Likewise.
18333         * modules/vfprintf-posix (Depends-on): Likewise.
18334         * modules/vsnprintf-posix (Depends-on): Likewise.
18335         * modules/vsprintf-posix (Depends-on): Likewise.
18336         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18337         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18338         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18339         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18340         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18341         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18342         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18343
18344 2007-11-04  Bruno Haible  <bruno@clisp.org>
18345
18346         * modules/nocrash: New file.
18347         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
18348         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
18349
18350 2007-11-04  Bruno Haible  <bruno@clisp.org>
18351
18352         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
18353         precision handling.
18354         * tests/test-vasprintf-posix.c (test_function): Likewise.
18355         * tests/test-snprintf-posix.h (test_function): Likewise.
18356         * tests/test-sprintf-posix.h (test_function): Likewise.
18357
18358         Fix *printf behaviour for large precisions on mingw and BeOS.
18359         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
18360         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
18361         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
18362         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
18363         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
18364         gl_PRINTF_PRECISION and test its result. Invoke
18365         gl_PREREQ_VASNPRINTF_PRECISION.
18366         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
18367         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
18368         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
18369         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
18370         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
18371         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
18372         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
18373         * doc/functions/fprintf.texi: Update.
18374         * doc/functions/printf.texi: Update.
18375         * doc/functions/snprintf.texi: Update.
18376         * doc/functions/sprintf.texi: Update.
18377         * doc/functions/vfprintf.texi: Update.
18378         * doc/functions/vprintf.texi: Update.
18379         * doc/functions/vsnprintf.texi: Update.
18380         * doc/functions/vsprintf.texi: Update.
18381
18382 2007-11-04  Bruno Haible  <bruno@clisp.org>
18383
18384         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
18385
18386 2007-11-04  Bruno Haible  <bruno@clisp.org>
18387
18388         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
18389         Reported by Sylvain Beucler <beuc@gnu.org>.
18390
18391 2007-11-03  Bruno Haible  <bruno@clisp.org>
18392
18393         * tests/test-fprintf-posix2.sh: New file.
18394         * tests/test-fprintf-posix2.c: New file.
18395         * modules/fprintf-posix-tests (Files): Add them.
18396         (TESTS): Add test-fprintf-posix2.sh.
18397         (configure.ac): Check for getrlimit and setrlimit.
18398         (check_PROGRAMS): Add test-fprintf-posix2.
18399
18400         * tests/test-printf-posix2.sh: New file.
18401         * tests/test-printf-posix2.c: New file.
18402         * modules/printf-posix-tests (Files): Add them.
18403         (TESTS): Add test-printf-posix2.sh.
18404         (configure.ac): Check for getrlimit and setrlimit.
18405         (check_PROGRAMS): Add test-printf-posix2.
18406
18407         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
18408         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
18409         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
18410         (decode_double): New function, copied from decode_long_double.
18411         (scale10_round_decimal_decoded): New function, extracted from
18412         scale10_round_decimal_long_double.
18413         (scale10_round_decimal_long_double): Use it.
18414         (scale10_round_decimal_double): New function.
18415         (floorlog10): New function.
18416         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
18417         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
18418         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
18419         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
18420         gl_PRINTF_ENOMEM and test its result. Invoke
18421         gl_PREREQ_VASNPRINTF_ENOMEM.
18422         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
18423         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
18424         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
18425         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
18426         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
18427         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
18428         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
18429         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
18430         * modules/snprintf-posix (Depends-on): Likewise.
18431         * modules/sprintf-posix (Depends-on): Likewise.
18432         * modules/vasnprintf-posix (Depends-on): Likewise.
18433         * modules/vasprintf-posix (Depends-on): Likewise.
18434         * modules/vfprintf-posix (Depends-on): Likewise.
18435         * modules/vsnprintf-posix (Depends-on): Likewise.
18436         * modules/vsprintf-posix (Depends-on): Likewise.
18437         * doc/functions/fprintf.texi: Update.
18438         * doc/functions/printf.texi: Update.
18439         * doc/functions/snprintf.texi: Update.
18440         * doc/functions/sprintf.texi: Update.
18441         * doc/functions/vfprintf.texi: Update.
18442         * doc/functions/vprintf.texi: Update.
18443         * doc/functions/vsnprintf.texi: Update.
18444         * doc/functions/vsprintf.texi: Update.
18445
18446 2007-11-03  Bruno Haible  <bruno@clisp.org>
18447
18448         * modules/frexp-nolibm-tests: New file.
18449
18450         * modules/frexp-nolibm: New file.
18451         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
18452
18453 2007-11-03  Bruno Haible  <bruno@clisp.org>
18454
18455         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
18456         value is C99 compliant.
18457         Needed for OSF/1 5.1.
18458
18459 2007-11-03  Bruno Haible  <bruno@clisp.org>
18460
18461         Fix out-of-memory handling of vasnprintf.
18462         * lib/printf-parse.c: Include <errno.h>.
18463         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
18464         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
18465         is already set.
18466
18467 2007-11-02  Eric Blake  <ebb9@byu.net>
18468
18469         Fix tests on cygwin.
18470         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
18471
18472 2007-11-01  Bruno Haible  <bruno@clisp.org>
18473
18474         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
18475         warning.
18476         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
18477         needed for POSIX compatibility.
18478
18479 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
18480
18481         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
18482         for compatibility with GNU.
18483
18484 2007-11-01  Bruno Haible  <bruno@clisp.org>
18485
18486         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
18487         (putenv): Renamed from rpl_putenv. Change argument type from
18488         'const char *' to 'char *'.
18489         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
18490         of defining putenv in config.h, just set REPLACE_PUTENV.
18491         * modules/putenv (Depends-on): Add stdlib.
18492         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18493         (Include): Use <stdlib.h>.
18494         * lib/stdlib.in.h (putenv): New declaration.
18495         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
18496         REPLACE_PUTENV.
18497         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
18498         REPLACE_PUTENV.
18499         Needed for MacOS X 10.5.0.
18500         Reported by Peter O'Gorman <peter@pogma.com>.
18501
18502 2007-11-01  Jim Meyering  <meyering@redhat.com>
18503
18504         Treat an empty date string exactly like "0".
18505         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
18506         if the remaining date string (to be parsed) is empty, use "0".
18507         Reported by Mischa Molhoek and discussed in this thread:
18508         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
18509
18510 2007-10-31  Bruno Haible  <bruno@clisp.org>
18511
18512         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
18513         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
18514         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
18515         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
18516         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
18517         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
18518
18519 2007-10-31  Bruno Haible  <bruno@clisp.org>
18520
18521         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
18522         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
18523         (AC_TYPE_LONG_LONG_INT): Use it.
18524         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
18525         it as well.
18526         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
18527         to m4/longlong.m4.
18528         * modules/stdint (Files): Remove m4/ulonglong.m4.
18529         * modules/strtoull (Files): Use m4/longlong.m4 instead of
18530         m4/ulonglong.m4.
18531         * modules/strtoumax (Files): Likewise.
18532
18533 2007-10-30  Bruno Haible  <bruno@clisp.org>
18534
18535         * modules/xvasprintf-posix: New file.
18536         Suggested by Eric Blake.
18537
18538 2007-10-30  Bruno Haible  <bruno@clisp.org>
18539
18540         * modules/xprintf-posix-tests: New file.
18541         * tests/test-xprintf-posix.sh: New file.
18542         * tests/test-xprintf-posix.c: New file.
18543         * tests/test-xfprintf-posix.c: New file.
18544
18545         * modules/xprintf-posix: New file.
18546
18547 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18548
18549         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
18550         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
18551         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
18552
18553 2007-10-29  Bruno Haible  <bruno@clisp.org>
18554
18555         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
18556         contain the special marker '_cv_'.
18557         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
18558         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
18559         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
18560         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
18561         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
18562         Reported by Ralf Wildenhues.
18563
18564 2007-10-29  Bruno Haible  <bruno@clisp.org>
18565
18566         * gnulib-tool (func_import): When --lgpl is not specified, set
18567         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
18568         GPLv3.
18569         Reported by Simon Josefsson.
18570
18571 2007-10-28  Bruno Haible  <bruno@clisp.org>
18572
18573         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
18574         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
18575         HAVE_DECL_ISFINITE.
18576         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
18577         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
18578         HAVE_DECL_ISFINITE.
18579
18580 2007-10-28  Bruno Haible  <bruno@clisp.org>
18581
18582         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
18583         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
18584
18585 2007-10-28  Bruno Haible  <bruno@clisp.org>
18586
18587         Fix link errors with Sun C 5.0 on Solaris 10.
18588         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
18589         function is declared but not present in the compiler's libm.
18590         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
18591         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
18592         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
18593         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
18594         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
18595         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
18596         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
18597         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
18598         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
18599         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
18600         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
18601         HAVE_DECL_FLOORL.
18602
18603 2007-10-28  Bruno Haible  <bruno@clisp.org>
18604
18605         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
18606         gl_FUNC_FLOORL. Cache the result.
18607         (gl_FUNC_FLOORL): Use it.
18608         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
18609         gl_FUNC_CEILL. Cache the result.
18610         (gl_FUNC_CEILL): Use it.
18611
18612         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
18613         gl_FUNC_FLOOR. Cache the result.
18614         (gl_FUNC_FLOOR): Use it.
18615         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
18616         gl_FUNC_CEIL. Cache the result.
18617         (gl_FUNC_CEIL): Use it.
18618
18619         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
18620         gl_FUNC_FLOORF. Cache the result.
18621         (gl_FUNC_FLOORF): Use it.
18622         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
18623         gl_FUNC_CEILF. Cache the result.
18624         (gl_FUNC_CEILF): Use it.
18625
18626 2007-10-28  Bruno Haible  <bruno@clisp.org>
18627
18628         * gnulib-tool: Allow specifying the LGPL version number through
18629         --lgpl=2 or --lgpl=3.
18630         (func_usage): Document --lgpl with argument.
18631         Handle --lgpl=... arguments.
18632         (func_import): Recognize also gl_LGPL calls with an argument. When
18633         --lgpl=2 is used and the module's license is just LGPL, report an
18634         error. Set sed_transform_lib_file according to the lgpl variable. In
18635         the generated files, use --lgpl or gl_LGPL invocations with argument,
18636         if necessary.
18637         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
18638         an LGPv2+ license.
18639         * doc/gnulib-tool.texi (Modified imports): Update explanation of
18640         gl_LGPL macro.
18641
18642 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18643             Bruno Haible  <bruno@clisp.org>
18644
18645         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
18646         (u16_uctomb_aux): Likewise.
18647         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
18648         !HAVE_INLINE.
18649         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
18650
18651 2007-10-28  Bruno Haible  <bruno@clisp.org>
18652
18653         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
18654         Invoke AM_GETTEXT_OPTION if it exists.
18655         * modules/vasprintf: Likewise.
18656         * modules/verror: Likewise.
18657         * modules/xprintf: Likewise.
18658         * modules/xvasprintf: Likewise.
18659
18660 2007-10-27  Ben Pfaff  <blp@gnu.org>
18661
18662         * lib/math.in.h: Define isfinite macro and prototypes for
18663         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
18664         implementations.
18665         * m4/math_h.m4: New substitutions for isfinite module.
18666         * lib/isfinite.c: New file.
18667         * m4/isfinite.m4: New file.
18668         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
18669         * modules/isfinite: New file.
18670         * modules/isfinite-tests: New file.
18671         * tests/tests-isfinite.c: New file.
18672         * doc/functions/isfinite.texi: Mention isfinite module.
18673         * MODULES.html.sh: Mention new module.
18674
18675 2007-10-27  Ben Pfaff  <blp@gnu.org>
18676
18677         Ralf Wildenhues reported that Tru64 4.0D declares the round
18678         functions but does not have definitions.
18679         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
18680         cannot be found in any library, set the output variable to
18681         "missing" instead of "".
18682         * m4/round.m4: Also use our substitute if we cannot find round in
18683         any library, even if it is declared.
18684         * m4/roundf.m4: Likewise for roundf.
18685         * m4/roundl.m4: Likewise for roundl.
18686         * lib/math.in.h: Undefine roundf, round, roundl before defining
18687         their replacements, to allow for hypothetical systems where these
18688         may be defined as macros but not available in libraries.
18689
18690 2007-10-27  Bruno Haible  <bruno@clisp.org>
18691
18692         * doc/gnulib.texi: Invoke @firstparagraphindent.
18693         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
18694         changes in gnulib.
18695         (Source changes): New section.
18696
18697 2007-10-26  Bruno Haible  <bruno@clisp.org>
18698
18699         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
18700         borrowed from autoconf.
18701
18702 2007-10-26  Bruno Haible  <bruno@clisp.org>
18703
18704         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
18705         strerror returned the empty string. Needed on HP-UX 11.00.
18706
18707 2007-10-24  Micah Cowan  <micah@cowan.name>
18708
18709         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
18710         * build-aux/bootstrap: Remove support for now-unnecessary option,
18711         --cvs-user, and envvars CVS_USER, CVS_RSH.
18712
18713 2007-10-24  Jim Meyering  <meyering@redhat.com>
18714
18715         Avoid diagnostics from sha1sum when there is no cached checksum.
18716         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
18717         if the po.s1 file hasn't been created yet.
18718
18719         * build-aux/bootstrap: Sync from coreutils:
18720         2007-10-24  Jim Meyering  <meyering@redhat.com>
18721         Get gnulib from the git repository, not from an obsolete cvs one.
18722         * build-aux/bootstrap: Suggestion from Micah Cowan.
18723         2007-10-04  Jim Meyering  <jim@meyering.net>
18724         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
18725         (update_po_files): Work also when there are no .po files in po/.
18726
18727 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
18728
18729         * README: Append ".git" to git and cg examples.
18730         Problem reported by Benoit Sigoure.
18731
18732 2007-10-23  Micah Cowan  <micah@cowan.name>
18733
18734         * users.txt: Add wget.
18735
18736 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18737
18738         Fix linking of some unistdio tests on FreeBSD.
18739         * modules/unistdio/u16-vsnprintf-tests
18740         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
18741         * modules/unistdio/u16-vsprintf-tests
18742         (test_u16_vsnprintf1_LDADD): Likewise.
18743         * modules/unistdio/u32-vsnprintf-tests
18744         (test_u32_vsnprintf1_LDADD): Likewise.
18745         * modules/unistdio/u32-vsprintf-tests
18746         (test_u32_vsprintf1_LDADD): Likewise.
18747         * modules/unistdio/u8-vsnprintf-tests
18748         (test_u8_vsnprintf1_LDADD): Likewise.
18749         * modules/unistdio/u8-vsprintf-tests
18750         (test_u8_vsprintf1_LDADD): Likewise.
18751         * modules/unistdio/ulc-vsnprintf-tests
18752         (test_ulc_vsnprintf1_LDADD): Likewise.
18753         * modules/unistdio/ulc-vsprintf-tests
18754         (test_ulc_vsprintf1_LDADD): Likewise.
18755
18756         Fix linking of some uniconv tests on FreeBSD.
18757         * modules/uniconv/u16-conv-from-enc-tests
18758         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
18759         * modules/uniconv/u16-conv-to-enc-tests
18760         (test_u16_conv_to_enc_LDADD): Likewise.
18761         * modules/uniconv/u16-strconv-from-enc-tests
18762         (test_u16_strconv_from_enc_LDADD): Likewise.
18763         * modules/uniconv/u16-strconv-to-enc-tests
18764         (test_u16_strconv_to_enc_LDADD): Likewise.
18765         * modules/uniconv/u32-conv-from-enc-tests
18766         (test_u32_conv_from_enc_LDADD): Likewise.
18767         * modules/uniconv/u32-conv-to-enc-tests
18768         (test_u32_conv_to_enc_LDADD): Likewise.
18769         * modules/uniconv/u32-strconv-from-enc-tests
18770         (test_u32_strconv_from_enc_LDADD): Likewise.
18771         * modules/uniconv/u32-strconv-to-enc-tests
18772         (test_u32_strconv_to_enc_LDADD): Likewise.
18773         * modules/uniconv/u8-conv-from-enc-tests
18774         (test_u8_conv_from_enc_LDADD): Likewise.
18775         * modules/uniconv/u8-conv-to-enc-tests
18776         (test_u8_conv_to_enc_LDADD): Likewise.
18777         * modules/uniconv/u8-strconv-from-enc-tests
18778         (test_u8_strconv_from_enc_LDADD): Likewise.
18779         * modules/uniconv/u8-strconv-to-enc-tests
18780         (test_u8_strconv_to_enc_LDADD): Likewise.
18781
18782 2007-10-22  Bruno Haible  <bruno@clisp.org>
18783
18784         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
18785         size.
18786
18787 2007-10-22  Eric Blake  <ebb9@byu.net>
18788
18789         Tweak x*printf documentation.
18790         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
18791         variable name and comments.
18792         Suggested by Bruno Haible.
18793
18794 2007-10-22  Bruno Haible  <bruno@clisp.org>
18795
18796         * lib/acl.c (copy_acl): Fix file name in comment.
18797
18798 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
18799
18800         Fix Tru64 problem with stdbool.h.
18801         * lib/stdbool.in.h (false, true):
18802         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
18803         Don't declare as an enum in this situation; it runs afoul of Tru64.
18804         Problem reported by Steven M. Schweda in
18805         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
18806
18807 2007-10-22  Eric Blake  <ebb9@byu.net>
18808
18809         Also wrap vf?printf.
18810         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
18811         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
18812         (xvprintf, xvfprintf): New functions.
18813
18814 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18815
18816         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
18817         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
18818
18819         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
18820         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
18821
18822 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
18823
18824         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
18825         by Bruno Haible.
18826
18827 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18828
18829         * lib/getloadavg.c
18830         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
18831         Undef `sys' after including sys/table.h, for Tru64 4.0D.
18832
18833         * tests/test-i-ring.c: Work for C89.
18834
18835 2007-10-22  Bruno Haible  <bruno@clisp.org>
18836
18837         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
18838         -1u, in preprocessor expression, so that we don't test for the bug
18839         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
18840         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
18841
18842 2007-10-22  Eric Blake  <ebb9@byu.net>
18843
18844         * tests/test-yesno.sh: Silence stderr during test.
18845
18846 2007-10-22  Simon Josefsson  <simon@josefsson.org>
18847
18848         * modules/crypto/gc-camellia: New file.
18849
18850         * m4/gc-camellia.m4: New file.
18851
18852         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
18853
18854         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
18855
18856 2007-10-22  Simon Josefsson  <simon@josefsson.org>
18857
18858         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
18859         --help to stdout.  Reported by sms@antinode.org (Steven
18860         M. Schweda).
18861
18862 2007-10-22  Simon Josefsson  <simon@josefsson.org>
18863
18864         * users.txt: Fix link to libksba.
18865
18866 2007-10-21  Ben Pfaff  <blp@gnu.org>
18867
18868         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
18869         round.c roundf implementation that depends on floorf and ceilf to
18870         be tested unconditionally.
18871
18872 2007-10-21  Ben Pfaff  <blp@gnu.org>
18873
18874         * m4/check-libm-func.m4: Removed.
18875         * m4/check-math-lib.m4: New file.
18876         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
18877         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
18878         definition and lack of AC_LIBOBJ([roundf]).
18879         * m4/roundl.m4: Ditto, and similarly for roundl.
18880         * modules/round: Reference new m4 file.
18881         * modules/roundf: Ditto.
18882         * modules/roundl: Ditto.
18883         * tests/test-round2.c (main): Use ROUND instead of round.
18884         Bug report from Bruno Haible.
18885
18886 2007-10-21  Bruno Haible  <bruno@clisp.org>
18887
18888         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
18889         context.
18890
18891 2007-10-21  Bruno Haible  <bruno@clisp.org>
18892
18893         * tests/test-wcwidth.c (main): Allow negative result for some control
18894         characters.
18895
18896         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
18897         Needed on OSF/1 5.1.
18898
18899 2007-10-21  Bruno Haible  <bruno@clisp.org>
18900
18901         * tests/test-floorf1.c: Include isnanf.h.
18902         (main): Use isnanf() instead of isnan().
18903         * tests/test-ceilf1.c: Include isnanf.h.
18904         (main): Use isnanf() instead of isnan().
18905         * tests/test-truncf1.c: Include isnanf.h.
18906         (main): Use isnanf() instead of isnan().
18907         * tests/test-roundf1.c: Include isnanf.h.
18908         (main): Use isnanf() instead of isnan().
18909
18910 2007-10-21  Eric Blake  <ebb9@byu.net>
18911
18912         * users.txt: Update URL for m4.
18913
18914 2007-10-21  Bruno Haible  <bruno@clisp.org>
18915
18916         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
18917
18918 2007-10-21  Bruno Haible  <bruno@clisp.org>
18919
18920         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
18921         Git's management files if the CVS files are not present.
18922
18923 2007-10-20  Bruno Haible  <bruno@clisp.org>
18924
18925         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
18926         gcc-3.4.x.
18927
18928 2007-10-20  Ben Pfaff  <blp@gnu.org>
18929
18930         * lib/math.in.h: Declare round, roundf, roundl if we are providing
18931         implementations.
18932         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
18933         * lib/round.c: New file.
18934         * lib/roundf.c: New file.
18935         * lib/roundl.c: New file.
18936         * m4/round.m4: New file.
18937         * m4/roundf.m4: New file.
18938         * m4/roundl.m4: New file.
18939         * m4/check-libm-func-m4: New file.
18940         * modules/math: Replace round, roundf, roundl related @VARS@ in
18941         math.in.h.
18942         * modules/round: New file.
18943         * modules/round-tests: New file.
18944         * modules/roundf: New file.
18945         * modules/roundf-tests: New file.
18946         * modules/roundl: New file.
18947         * modules/roundl-tests: New file.
18948         * tests/test-round1.c: New file.
18949         * tests/test-round2.c: New file.
18950         * tests/test-roundf1.c: New file.
18951         * tests/test-roundf2.c: New file.
18952         * tests/test-roundl.c: New file.
18953         * doc/functions/round.texi: Mention round module.
18954         * doc/functions/roundf.texi: Mention roundf module.
18955         * doc/functions/roundl.texi: Mention roundl module.
18956         * MODULES.html.sh: Mention new modules.
18957         Thanks to Bruno Haible for suggestions.
18958
18959 2007-10-20  Jim Meyering  <meyering@redhat.com>
18960
18961         * lib/xprintf.c: Include <config.h> unconditionally.
18962
18963         Change xprintf's license to GPL.
18964         * modules/xprintf (License): s/LGPL/GPL/, since this module
18965         depends on modules (exit and exitfail) which are GPL.
18966         Suggestion from Bruno Haible.
18967
18968         xprintf fixes.
18969         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
18970         Use a clearer diagnostic.
18971         Patch from Bruno Haible.
18972
18973 2007-10-20  Bruno Haible  <bruno@clisp.org>
18974
18975         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
18976         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
18977         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18978
18979 2007-10-20  Bruno Haible  <bruno@clisp.org>
18980
18981         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
18982         precision in the comparison result > x - 1 or similar.
18983         * tests/test-ceilf2.c (correct_result_p): Likewise.
18984         * tests/test-truncf2.c (correct_result_p): Likewise.
18985         * tests/test-trunc2.c (correct_result_p): Likewise.
18986         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18987
18988 2007-10-20  Bruno Haible  <bruno@clisp.org>
18989
18990         * modules/ceil: New file.
18991         * m4/ceil.m4: New file.
18992         * doc/functions/ceil.texi: Mention the 'ceil' module.
18993
18994 2007-10-20  Bruno Haible  <bruno@clisp.org>
18995
18996         * modules/floor: New file.
18997         * m4/floor.m4: New file.
18998         * doc/functions/floor.texi: Mention the 'floor' module.
18999
19000 2007-10-20  Bruno Haible  <bruno@clisp.org>
19001
19002         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
19003         of %a.
19004         * modules/floorf-tests (Depends-on): Likewise.
19005         * modules/truncf-tests (Depends-on): Likewise.
19006         * modules/trunc-tests (Depends-on): Likewise.
19007         Reported by Ben Pfaff.
19008
19009 2007-10-19  Jim Meyering  <meyering@redhat.com>
19010
19011         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
19012         Don't bother testing specific errno values.  Just test ferror.
19013
19014         New module: xprintf
19015         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
19016
19017 2007-10-19  Bruno Haible  <bruno@clisp.org>
19018
19019         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
19020         syntax.
19021         * modules/javaexec (Makefile.am): Likewise.
19022         * modules/relocatable-prog (Makefile.am): Likewise.
19023         Suggested by Jim Meyering.
19024
19025 2007-10-18  Bruno Haible  <bruno@clisp.org>
19026
19027         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
19028         Reported by Jim Meyering.
19029
19030 2007-10-18  Eric Blake  <ebb9@byu.net>
19031
19032         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
19033
19034 2007-10-18  Bruno Haible  <bruno@clisp.org>
19035
19036         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
19037         the format string into writable memory. Needed in Fortify conditions.
19038
19039 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
19040             Bruno Haible  <bruno@clisp.org>
19041
19042         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
19043         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
19044         * modules/trim (Depends-on): Add mbchar.
19045         (configure.ac): Add gl_FUNC_MBRTOWC.
19046         (Makefile.am): Augment lib_SOURCES.
19047
19048 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
19049
19050         Modify glob.c to use fstatat and dirfd, to simplify it.
19051         Suggested by Eric Blake.
19052         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
19053         Don't include <stdbool.h>; not used.
19054         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
19055         (link_exists_p): Simplify implementation, since we can now assume
19056         dirfd and fstatat.
19057         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
19058
19059 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19060
19061         * gnulib-tool (func_get_dependencies): Fix sed script to
19062         match only tests.
19063
19064 2007-10-17  Bruno Haible  <bruno@clisp.org>
19065
19066         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
19067         allow locale names without encoding suffix.
19068         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
19069         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19070
19071 2007-10-16  Bruno Haible  <bruno@clisp.org>
19072
19073         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
19074         * lib/getgroups.c (getgroups): Likewise.
19075         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
19076
19077 2007-10-16  Bruno Haible  <bruno@clisp.org>
19078
19079         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
19080         * modules/malloc-posix (License): Likewise.
19081         * modules/realloc-posix (License): Likewise.
19082         * modules/calloc-posix (License): Likewise.
19083         * modules/intprops (License): Change from GPL to LGPL, with
19084         Paul Eggert's approval.
19085
19086 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
19087
19088         Merge glibc changes into lib/glob.c.
19089
19090         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
19091         2007-10-15 04:59:03 UTC.  Here are the changes:
19092
19093         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
19094
19095         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
19096
19097         * lib/glob.c: Add some branch prediction throughout.
19098
19099         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
19100
19101         [BZ #5103]
19102         * lib/glob.c (glob): Recognize patterns starting \/.
19103
19104         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
19105
19106         [BZ #3996]
19107         * lib/glob.c (attribute_hidden): Define if not defined.
19108         (glob): Unescape dirname, filename or username when needed and not
19109         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
19110         is NULL.  Handle unescaped [ in pattern without closing ].
19111         Don't pass GLOB_CHECK down to recursive glob for directories.
19112         (__glob_pattern_type): New function.
19113         (__glob_pattern_p): Implement using __glob_pattern_type.
19114         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
19115         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
19116         Remove unreachable code.
19117
19118         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
19119
19120         * lib/glob.c (glob_in_dir): Add some comments and asserts to
19121         explain why there are no leaks.
19122
19123         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
19124
19125         [BZ #3253]
19126         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
19127         time, rather allocate increasingly bigger arrays of pointers, if
19128         possible with alloca, if too large with malloc.
19129
19130 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
19131
19132         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
19133         Problem reported by H.Merijn Brand in
19134         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
19135         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
19136         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
19137
19138 2007-10-15  Bruno Haible  <bruno@clisp.org>
19139
19140         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
19141         with explicit rpl_ prefix.
19142         * lib/fopen.c (fopen): Likewise.
19143         * lib/freopen.c (freopen): Likewise.
19144         * lib/iconv.c (iconv): Likewise.
19145         * lib/iconv_close.c (iconv_close): Likewise.
19146
19147 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19148
19149         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
19150
19151 2007-10-15  Bruno Haible  <bruno@clisp.org>
19152
19153         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
19154         <stddef.h> instead of <stdlib.h> since we only need NULL.
19155         Reported by Ben Pfaff <blp@cs.stanford.edu>.
19156
19157 2007-10-15  Bruno Haible  <bruno@clisp.org>
19158
19159         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
19160         Replace paragraph talking about LIBOBJS.
19161         Reported by Colin Watson <cjwatson@debian.org>.
19162
19163 2007-10-15  Bruno Haible  <bruno@clisp.org>
19164
19165         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
19166         <stdlib.h> before using NULL.
19167
19168 2007-10-15  Simon Josefsson  <simon@josefsson.org>
19169
19170         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
19171         Reported by Albert Chin <china@thewrittenword.com>.
19172
19173 2007-10-14  Bruno Haible  <bruno@clisp.org>
19174
19175         * modules/iconv_open-utf-tests: New file.
19176         * tests/test-iconv-utf.c: New file.
19177
19178         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
19179         * modules/iconv_open-utf: New file.
19180         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
19181         (iconv, iconv_close): New declarations.
19182         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
19183         be defined.
19184         (iconv_open): Add special handling of conversion between UTF-8 and
19185         UTF-{16,32}{BE,LE}.
19186         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
19187         * lib/iconv_close.c: New file.
19188         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
19189         gl_FUNC_ICONV_OPEN.
19190         (gl_FUNC_ICONV_OPEN): Use it.
19191         (gl_FUNC_ICONV_OPEN_UTF): New macro.
19192         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
19193         and REPLACE_ICONV_UTF.
19194         * modules/iconv_open (Depends-on): Add c-strcase.
19195         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
19196         ICONV_CONST.
19197         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
19198
19199 2007-10-13  Albert Chin  <china@thewrittenword.com>
19200             Bruno Haible  <bruno@clisp.org>
19201
19202         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
19203         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
19204
19205 2007-10-13  Bruno Haible  <bruno@clisp.org>
19206
19207         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
19208         defined, use the ISO C99 inline semantics.
19209         * lib/argp.h (ARGP_EI): Likewise.
19210
19211 2007-10-13  Bruno Haible  <bruno@clisp.org>
19212
19213         Handle 'inline' change in gcc 4.3.0.
19214         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
19215         argp_fmtstream_write, argp_fmtstream_set_lmargin,
19216         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
19217         argp_fmtstream_point): Disable 'extern' declaration if the function
19218         definition is going to be provided inline.
19219         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
19220         semantics, not the ISO C99 inline semantics.
19221         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
19222         'extern' declaration if the function definition is going to be provided
19223         inline.
19224         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
19225         the GNU C inline semantics, not the ISO C99 inline semantics. With
19226         GCC 4.2, avoid a warning.
19227
19228 2007-10-13  Bruno Haible  <bruno@clisp.org>
19229
19230         * lib/freading.h (freading): Enable the use of __freading for
19231         glibc >= 2.7.
19232         * lib/freading.c (freading): Likewise.
19233
19234 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
19235
19236         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
19237         "warning: C99 inline functions are not supported; using GNU89".
19238
19239 2007-10-12  Bruno Haible  <bruno@clisp.org>
19240
19241         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
19242         of 2.
19243         * tests/test-ceilf2.c: New file.
19244         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
19245
19246         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
19247         * modules/ceilf-tests: Update.
19248
19249 2007-10-12  Bruno Haible  <bruno@clisp.org>
19250
19251         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
19252         of 2.
19253         * tests/test-floorf2.c: New file.
19254         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
19255
19256         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
19257         * modules/floorf-tests: Update.
19258
19259 2007-10-12  Bruno Haible  <bruno@clisp.org>
19260
19261         * tests/test-trunc2.c: New file.
19262         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
19263
19264         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
19265         * modules/trunc-tests: Update.
19266
19267 2007-10-12  Bruno Haible  <bruno@clisp.org>
19268
19269         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
19270         of 2.
19271         * tests/test-truncf2.c: New file.
19272         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
19273
19274         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
19275         * modules/truncf-tests: Update.
19276
19277 2007-10-11  Eric Blake  <ebb9@byu.net>
19278
19279         Don't claim strerror is broken on Interix.
19280         * doc/functions/strerror.texi (strerror): Known broken systems are
19281         now Solaris 8, and not Interix.
19282         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
19283         Interix on cross-compile.
19284         Reported by Martin Koeppe in
19285         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
19286
19287 2007-10-11  Bruno Haible  <bruno@clisp.org>
19288
19289         * modules/i-ring-tests: New file.
19290         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
19291         instead of assert.
19292
19293 2007-10-11  Bruno Haible  <bruno@clisp.org>
19294
19295         * modules/filenamecat-tests: New file.
19296         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
19297         * lib/filenamecat.c: Remove test code.
19298
19299 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
19300
19301         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
19302
19303         * lib/strerror.c: Include <string.h> always, to test interface,
19304         and to remove the need for the dummy.
19305         Include intprops.h to compute width instead of doing it ourselves
19306         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
19307         (strerror): Define it to return NULL if there's no system strerror.
19308         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
19309         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
19310         ancient pre-strerror Unix systems well any more.  Saying "unknown
19311         system error" is enough.
19312         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
19313         simpler strerror.c implementation.
19314         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
19315         Simplify the tests to reflect the simpler strerror implementation.
19316         * modules/strerror (Depends-on): Add intprops.
19317
19318 2007-10-09  Eric Blake  <ebb9@byu.net>
19319
19320         Silence test-fpending.
19321         * modules/fpending-tests (Files): Add wrapper script.
19322         * tests/test-fpending.sh: New file.
19323
19324 2007-10-09  Bruno Haible  <bruno@clisp.org>
19325
19326         * MODULES.html.sh (func_module): Don't create a hyperlink for
19327         function names like 'printf_frexp'.
19328         (Misc): Add crc, memxor.
19329         (Characteristics of floating types): New section.
19330         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
19331         isnanf-nolibm, signbit, trunc, truncf, truncl.
19332         (Enhancements for ISO C 99 functions): New subsection Input/output.
19333         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
19334         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
19335         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
19336         (Compatibility checks for POSIX:2001 functions): Add clock-time.
19337         (Enhancements for POSIX:2001 functions): Add chdir-long.
19338         (File system functions): Add areadlink, chdir-safer, read-file.
19339         Remove cycle-check.
19340         (File system as inode set): New section.
19341         (Date and time): Add gethrxtime.
19342         (Multithreading): Add openmp.
19343         (Internationalization functions): Add localename.
19344         (Unicode string functions): Add unistr/u*-mbsnlen.
19345         (Support for maintaining and releasing projects): Add git-version-gen.
19346         (Lone files): Remove directories.
19347
19348 2007-10-08  Ben Pfaff  <blp@gnu.org>
19349
19350         * lib/xmalloca.h: Fix typo in comment.
19351
19352 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
19353
19354         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
19355         when avoiding problems with integer overflow.  Use a portable test
19356         instead.
19357
19358 2007-10-08  Simon Josefsson  <simon@josefsson.org>
19359
19360         * modules/dummy (License): Change to LGPLv2+.
19361         * modules/float (License): Likewise
19362         * modules/realloc (License): Likewise
19363         * modules/stdlib (License): Likewise
19364
19365 2007-10-07  Bruno Haible  <bruno@clisp.org>
19366
19367         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
19368         * floor.c (TWO_MANT_DIG): Likewise.
19369         * ceil.c (TWO_MANT_DIG): Likewise.
19370         Reported by Ben Pfaff.
19371
19372 2007-10-07  Bruno Haible  <bruno@clisp.org>
19373
19374         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
19375         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
19376         * lib/frexp.c (FUNC): Likewise.
19377         * lib/printf-frexp.h (printf_frexp): Likewise.
19378         * lib/printf-frexpl.h (printf_frexpl): Likewise.
19379         * lib/printf-frexp.c (FUNC): Likewise.
19380         Suggested by Jim Meyering.
19381
19382 2007-10-07  Jim Meyering  <meyering@redhat.com>
19383
19384         Make xnanosleep's integer overflow test more robust.
19385         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
19386         so that gcc-4.3.0 doesn't optimize away this test for overflow.
19387
19388 2007-10-07  Bruno Haible  <bruno@clisp.org>
19389
19390         * NEWS: Mention the license change.
19391
19392         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
19393         abbreviations in the modules files.
19394
19395         Change copyright notice from GPLv2+ to GPLv3+.
19396         * README: Change copyright notice.
19397         * MODULES.html.sh: Likewise.
19398         * build-aux/bootstrap.conf: Likewise.
19399         * build-aux/config.libpath: Likewise.
19400         * build-aux/csharpcomp.sh.in: Likewise.
19401         * build-aux/csharpexec.sh.in: Likewise.
19402         * build-aux/install-reloc: Likewise.
19403         * build-aux/javacomp.sh.in: Likewise.
19404         * build-aux/javaexec.sh.in: Likewise.
19405         * build-aux/ldd.sh.in: Likewise.
19406         * build-aux/reloc-ldflags: Likewise.
19407         * build-aux/relocatable.sh.in: Likewise.
19408         * build-aux/x-to-1.in: Likewise.
19409         * check-module: Likewise.
19410         * config/srclistvars.sh: Likewise.
19411         * gnulib-tool: Likewise.
19412         * lib/acl-internal.h: Likewise.
19413         * lib/acl.c: Likewise.
19414         * lib/acl.h: Likewise.
19415         * lib/acl_entries.c: Likewise.
19416         * lib/areadlink-with-size.c: Likewise.
19417         * lib/areadlink.c: Likewise.
19418         * lib/areadlink.h: Likewise.
19419         * lib/argmatch.c: Likewise.
19420         * lib/argmatch.h: Likewise.
19421         * lib/argp-ba.c: Likewise.
19422         * lib/argp-eexst.c: Likewise.
19423         * lib/argp-fmtstream.c: Likewise.
19424         * lib/argp-fmtstream.h: Likewise.
19425         * lib/argp-fs-xinl.c: Likewise.
19426         * lib/argp-help.c: Likewise.
19427         * lib/argp-namefrob.h: Likewise.
19428         * lib/argp-parse.c: Likewise.
19429         * lib/argp-pin.c: Likewise.
19430         * lib/argp-pv.c: Likewise.
19431         * lib/argp-pvh.c: Likewise.
19432         * lib/argp-xinl.c: Likewise.
19433         * lib/argp.h: Likewise.
19434         * lib/at-func.c: Likewise.
19435         * lib/atanl.c: Likewise.
19436         * lib/backupfile.c: Likewise.
19437         * lib/backupfile.h: Likewise.
19438         * lib/basename.c: Likewise.
19439         * lib/binary-io.h: Likewise.
19440         * lib/byteswap.in.h: Likewise.
19441         * lib/c-stack.c: Likewise.
19442         * lib/c-stack.h: Likewise.
19443         * lib/c-strcasestr.c: Likewise.
19444         * lib/c-strcasestr.h: Likewise.
19445         * lib/c-strstr.c: Likewise.
19446         * lib/c-strstr.h: Likewise.
19447         * lib/c-strtod.c: Likewise.
19448         * lib/calloc.c: Likewise.
19449         * lib/canon-host.c: Likewise.
19450         * lib/canon-host.h: Likewise.
19451         * lib/canonicalize-lgpl.c: Likewise.
19452         * lib/canonicalize.c: Likewise.
19453         * lib/canonicalize.h: Likewise.
19454         * lib/ceil.c: Likewise.
19455         * lib/ceilf.c: Likewise.
19456         * lib/ceill.c: Likewise.
19457         * lib/chdir-long.c: Likewise.
19458         * lib/chdir-long.h: Likewise.
19459         * lib/chdir-safer.c: Likewise.
19460         * lib/chdir-safer.h: Likewise.
19461         * lib/chown.c: Likewise.
19462         * lib/classpath.c: Likewise.
19463         * lib/classpath.h: Likewise.
19464         * lib/clean-temp.c: Likewise.
19465         * lib/clean-temp.h: Likewise.
19466         * lib/cloexec.c: Likewise.
19467         * lib/close-stream.c: Likewise.
19468         * lib/closein.c: Likewise.
19469         * lib/closein.h: Likewise.
19470         * lib/closeout.c: Likewise.
19471         * lib/closeout.h: Likewise.
19472         * lib/concat-filename.c: Likewise.
19473         * lib/copy-file.c: Likewise.
19474         * lib/copy-file.h: Likewise.
19475         * lib/count-one-bits.h: Likewise.
19476         * lib/crc.c: Likewise.
19477         * lib/crc.h: Likewise.
19478         * lib/creat-safer.c: Likewise.
19479         * lib/csharpcomp.c: Likewise.
19480         * lib/csharpcomp.h: Likewise.
19481         * lib/csharpexec.c: Likewise.
19482         * lib/csharpexec.h: Likewise.
19483         * lib/cycle-check.c: Likewise.
19484         * lib/cycle-check.h: Likewise.
19485         * lib/diacrit.c: Likewise.
19486         * lib/diacrit.h: Likewise.
19487         * lib/diffseq.h: Likewise.
19488         * lib/dirchownmod.c: Likewise.
19489         * lib/dirent.in.h: Likewise.
19490         * lib/dirfd.c: Likewise.
19491         * lib/dirfd.h: Likewise.
19492         * lib/dirname.c: Likewise.
19493         * lib/dirname.h: Likewise.
19494         * lib/dummy.c: Likewise.
19495         * lib/dup-safer.c: Likewise.
19496         * lib/dup2.c: Likewise.
19497         * lib/eealloc.h: Likewise.
19498         * lib/error.c: Likewise.
19499         * lib/error.h: Likewise.
19500         * lib/euidaccess.c: Likewise.
19501         * lib/exclude.c: Likewise.
19502         * lib/exclude.h: Likewise.
19503         * lib/execute.c: Likewise.
19504         * lib/execute.h: Likewise.
19505         * lib/exitfail.c: Likewise.
19506         * lib/exitfail.h: Likewise.
19507         * lib/expl.c: Likewise.
19508         * lib/fatal-signal.c: Likewise.
19509         * lib/fatal-signal.h: Likewise.
19510         * lib/fbufmode.c: Likewise.
19511         * lib/fbufmode.h: Likewise.
19512         * lib/fchdir.c: Likewise.
19513         * lib/fchmodat.c: Likewise.
19514         * lib/fchownat.c: Likewise.
19515         * lib/fcntl--.h: Likewise.
19516         * lib/fcntl-safer.h: Likewise.
19517         * lib/fcntl.in.h: Likewise.
19518         * lib/fd-safer.c: Likewise.
19519         * lib/fflush.c: Likewise.
19520         * lib/file-has-acl.c: Likewise.
19521         * lib/file-set.c: Likewise.
19522         * lib/file-type.c: Likewise.
19523         * lib/file-type.h: Likewise.
19524         * lib/fileblocks.c: Likewise.
19525         * lib/filemode.c: Likewise.
19526         * lib/filemode.h: Likewise.
19527         * lib/filename.h: Likewise.
19528         * lib/filenamecat.c: Likewise.
19529         * lib/filenamecat.h: Likewise.
19530         * lib/findprog.c: Likewise.
19531         * lib/findprog.h: Likewise.
19532         * lib/float.in.h: Likewise.
19533         * lib/floor.c: Likewise.
19534         * lib/floorf.c: Likewise.
19535         * lib/floorl.c: Likewise.
19536         * lib/fopen-safer.c: Likewise.
19537         * lib/fopen.c: Likewise.
19538         * lib/fpending.c: Likewise.
19539         * lib/fpending.h: Likewise.
19540         * lib/fprintf.c: Likewise.
19541         * lib/fprintftime.h: Likewise.
19542         * lib/fpucw.h: Likewise.
19543         * lib/fpurge.c: Likewise.
19544         * lib/fpurge.h: Likewise.
19545         * lib/freadable.c: Likewise.
19546         * lib/freadable.h: Likewise.
19547         * lib/freadahead.c: Likewise.
19548         * lib/freadahead.h: Likewise.
19549         * lib/freading.c: Likewise.
19550         * lib/freading.h: Likewise.
19551         * lib/free.c: Likewise.
19552         * lib/freopen.c: Likewise.
19553         * lib/frexp.c: Likewise.
19554         * lib/frexpl.c: Likewise.
19555         * lib/fseek.c: Likewise.
19556         * lib/fseterr.c: Likewise.
19557         * lib/fseterr.h: Likewise.
19558         * lib/fstatat.c: Likewise.
19559         * lib/fstrcmp.c: Likewise.
19560         * lib/fstrcmp.h: Likewise.
19561         * lib/fsusage.c: Likewise.
19562         * lib/fsusage.h: Likewise.
19563         * lib/ftell.c: Likewise.
19564         * lib/ftello.c: Likewise.
19565         * lib/fts-cycle.c: Likewise.
19566         * lib/fts.c: Likewise.
19567         * lib/fts_.h: Likewise.
19568         * lib/full-read.c: Likewise.
19569         * lib/full-read.h: Likewise.
19570         * lib/full-write.c: Likewise.
19571         * lib/full-write.h: Likewise.
19572         * lib/fwritable.c: Likewise.
19573         * lib/fwritable.h: Likewise.
19574         * lib/fwriteerror.c: Likewise.
19575         * lib/fwriteerror.h: Likewise.
19576         * lib/fwriting.c: Likewise.
19577         * lib/fwriting.h: Likewise.
19578         * lib/gcd.c: Likewise.
19579         * lib/gcd.h: Likewise.
19580         * lib/getcwd.c: Likewise.
19581         * lib/getdate.h: Likewise.
19582         * lib/getdate.y: Likewise.
19583         * lib/getdomainname.c: Likewise.
19584         * lib/getdomainname.h: Likewise.
19585         * lib/getgroups.c: Likewise.
19586         * lib/gethostname.c: Likewise.
19587         * lib/gethrxtime.c: Likewise.
19588         * lib/gethrxtime.h: Likewise.
19589         * lib/getloadavg.c: Likewise.
19590         * lib/getndelim2.c: Likewise.
19591         * lib/getndelim2.h: Likewise.
19592         * lib/getnline.c: Likewise.
19593         * lib/getnline.h: Likewise.
19594         * lib/getopt.c: Likewise.
19595         * lib/getopt.in.h: Likewise.
19596         * lib/getopt1.c: Likewise.
19597         * lib/getopt_int.h: Likewise.
19598         * lib/getpagesize.h: Likewise.
19599         * lib/getsubopt.c: Likewise.
19600         * lib/gettime.c: Likewise.
19601         * lib/getugroups.c: Likewise.
19602         * lib/getugroups.h: Likewise.
19603         * lib/getusershell.c: Likewise.
19604         * lib/gl_anyavltree_list1.h: Likewise.
19605         * lib/gl_anyavltree_list2.h: Likewise.
19606         * lib/gl_anyhash_list1.h: Likewise.
19607         * lib/gl_anyhash_list2.h: Likewise.
19608         * lib/gl_anylinked_list1.h: Likewise.
19609         * lib/gl_anylinked_list2.h: Likewise.
19610         * lib/gl_anyrbtree_list1.h: Likewise.
19611         * lib/gl_anyrbtree_list2.h: Likewise.
19612         * lib/gl_anytree_list1.h: Likewise.
19613         * lib/gl_anytree_list2.h: Likewise.
19614         * lib/gl_anytree_oset.h: Likewise.
19615         * lib/gl_anytreehash_list1.h: Likewise.
19616         * lib/gl_anytreehash_list2.h: Likewise.
19617         * lib/gl_array_list.c: Likewise.
19618         * lib/gl_array_list.h: Likewise.
19619         * lib/gl_array_oset.c: Likewise.
19620         * lib/gl_array_oset.h: Likewise.
19621         * lib/gl_avltree_list.c: Likewise.
19622         * lib/gl_avltree_list.h: Likewise.
19623         * lib/gl_avltree_oset.c: Likewise.
19624         * lib/gl_avltree_oset.h: Likewise.
19625         * lib/gl_avltreehash_list.c: Likewise.
19626         * lib/gl_avltreehash_list.h: Likewise.
19627         * lib/gl_carray_list.c: Likewise.
19628         * lib/gl_carray_list.h: Likewise.
19629         * lib/gl_linked_list.c: Likewise.
19630         * lib/gl_linked_list.h: Likewise.
19631         * lib/gl_linkedhash_list.c: Likewise.
19632         * lib/gl_linkedhash_list.h: Likewise.
19633         * lib/gl_list.c: Likewise.
19634         * lib/gl_list.h: Likewise.
19635         * lib/gl_oset.c: Likewise.
19636         * lib/gl_oset.h: Likewise.
19637         * lib/gl_rbtree_list.c: Likewise.
19638         * lib/gl_rbtree_list.h: Likewise.
19639         * lib/gl_rbtree_oset.c: Likewise.
19640         * lib/gl_rbtree_oset.h: Likewise.
19641         * lib/gl_rbtreehash_list.c: Likewise.
19642         * lib/gl_rbtreehash_list.h: Likewise.
19643         * lib/gl_sublist.c: Likewise.
19644         * lib/gl_sublist.h: Likewise.
19645         * lib/group-member.c: Likewise.
19646         * lib/group-member.h: Likewise.
19647         * lib/hard-locale.c: Likewise.
19648         * lib/hard-locale.h: Likewise.
19649         * lib/hash-pjw.c: Likewise.
19650         * lib/hash-pjw.h: Likewise.
19651         * lib/hash-triple.c: Likewise.
19652         * lib/hash.c: Likewise.
19653         * lib/hash.h: Likewise.
19654         * lib/human.c: Likewise.
19655         * lib/human.h: Likewise.
19656         * lib/i-ring.c: Likewise.
19657         * lib/i-ring.h: Likewise.
19658         * lib/idcache.c: Likewise.
19659         * lib/imaxabs.c: Likewise.
19660         * lib/imaxdiv.c: Likewise.
19661         * lib/inet_pton.c: Likewise.
19662         * lib/inet_pton.h: Likewise.
19663         * lib/intprops.h: Likewise.
19664         * lib/inttostr.c: Likewise.
19665         * lib/inttostr.h: Likewise.
19666         * lib/inttypes.in.h: Likewise.
19667         * lib/isapipe.c: Likewise.
19668         * lib/isdir.c: Likewise.
19669         * lib/isnan.c: Likewise.
19670         * lib/isnan.h: Likewise.
19671         * lib/isnanf.c: Likewise.
19672         * lib/isnanf.h: Likewise.
19673         * lib/isnanl-nolibm.h: Likewise.
19674         * lib/isnanl.c: Likewise.
19675         * lib/isnanl.h: Likewise.
19676         * lib/javacomp.c: Likewise.
19677         * lib/javacomp.h: Likewise.
19678         * lib/javaexec.c: Likewise.
19679         * lib/javaexec.h: Likewise.
19680         * lib/javaversion.c: Likewise.
19681         * lib/javaversion.h: Likewise.
19682         * lib/javaversion.java: Likewise.
19683         * lib/lbrkprop.h: Likewise.
19684         * lib/lchmod.h: Likewise.
19685         * lib/lchown.c: Likewise.
19686         * lib/ldexpl.c: Likewise.
19687         * lib/linebreak.c: Likewise.
19688         * lib/linebreak.h: Likewise.
19689         * lib/linebuffer.c: Likewise.
19690         * lib/linebuffer.h: Likewise.
19691         * lib/locale.in.h: Likewise.
19692         * lib/logl.c: Likewise.
19693         * lib/long-options.c: Likewise.
19694         * lib/long-options.h: Likewise.
19695         * lib/lstat.c: Likewise.
19696         * lib/lstat.h: Likewise.
19697         * lib/math.in.h: Likewise.
19698         * lib/mbchar.c: Likewise.
19699         * lib/mbchar.h: Likewise.
19700         * lib/mbfile.h: Likewise.
19701         * lib/mbiter.h: Likewise.
19702         * lib/mbscasecmp.c: Likewise.
19703         * lib/mbscasestr.c: Likewise.
19704         * lib/mbschr.c: Likewise.
19705         * lib/mbscspn.c: Likewise.
19706         * lib/mbslen.c: Likewise.
19707         * lib/mbsncasecmp.c: Likewise.
19708         * lib/mbsnlen.c: Likewise.
19709         * lib/mbspbrk.c: Likewise.
19710         * lib/mbspcasecmp.c: Likewise.
19711         * lib/mbsrchr.c: Likewise.
19712         * lib/mbssep.c: Likewise.
19713         * lib/mbsspn.c: Likewise.
19714         * lib/mbsstr.c: Likewise.
19715         * lib/mbstok_r.c: Likewise.
19716         * lib/mbswidth.c: Likewise.
19717         * lib/mbswidth.h: Likewise.
19718         * lib/mbuiter.h: Likewise.
19719         * lib/memcasecmp.c: Likewise.
19720         * lib/memcasecmp.h: Likewise.
19721         * lib/memchr.c: Likewise.
19722         * lib/memcmp.c: Likewise.
19723         * lib/memcoll.c: Likewise.
19724         * lib/memcoll.h: Likewise.
19725         * lib/memcpy.c: Likewise.
19726         * lib/memrchr.c: Likewise.
19727         * lib/mkancesdirs.c: Likewise.
19728         * lib/mkdir-p.c: Likewise.
19729         * lib/mkdir-p.h: Likewise.
19730         * lib/mkdir.c: Likewise.
19731         * lib/mkdirat.c: Likewise.
19732         * lib/mkdtemp.c: Likewise.
19733         * lib/mkstemp-safer.c: Likewise.
19734         * lib/mkstemp.c: Likewise.
19735         * lib/modechange.c: Likewise.
19736         * lib/modechange.h: Likewise.
19737         * lib/mountlist.c: Likewise.
19738         * lib/mountlist.h: Likewise.
19739         * lib/mpsort.c: Likewise.
19740         * lib/nanosleep.c: Likewise.
19741         * lib/obstack.c: Likewise.
19742         * lib/obstack.h: Likewise.
19743         * lib/open-safer.c: Likewise.
19744         * lib/open.c: Likewise.
19745         * lib/openat-die.c: Likewise.
19746         * lib/openat-priv.h: Likewise.
19747         * lib/openat-proc.c: Likewise.
19748         * lib/openat.c: Likewise.
19749         * lib/openat.h: Likewise.
19750         * lib/pagealign_alloc.c: Likewise.
19751         * lib/pagealign_alloc.h: Likewise.
19752         * lib/physmem.c: Likewise.
19753         * lib/physmem.h: Likewise.
19754         * lib/pipe-safer.c: Likewise.
19755         * lib/pipe.c: Likewise.
19756         * lib/pipe.h: Likewise.
19757         * lib/posixtm.c: Likewise.
19758         * lib/posixtm.h: Likewise.
19759         * lib/posixver.c: Likewise.
19760         * lib/printf-frexp.c: Likewise.
19761         * lib/printf-frexp.h: Likewise.
19762         * lib/printf-frexpl.c: Likewise.
19763         * lib/printf-frexpl.h: Likewise.
19764         * lib/printf.c: Likewise.
19765         * lib/progname.c: Likewise.
19766         * lib/progname.h: Likewise.
19767         * lib/progreloc.c: Likewise.
19768         * lib/putenv.c: Likewise.
19769         * lib/quote.c: Likewise.
19770         * lib/quote.h: Likewise.
19771         * lib/quotearg.c: Likewise.
19772         * lib/quotearg.h: Likewise.
19773         * lib/raise.c: Likewise.
19774         * lib/readline.c: Likewise.
19775         * lib/readline.h: Likewise.
19776         * lib/readlink.c: Likewise.
19777         * lib/readtokens.c: Likewise.
19778         * lib/readtokens.h: Likewise.
19779         * lib/readtokens0.c: Likewise.
19780         * lib/readtokens0.h: Likewise.
19781         * lib/readutmp.c: Likewise.
19782         * lib/readutmp.h: Likewise.
19783         * lib/realloc.c: Likewise.
19784         * lib/relocwrapper.c: Likewise.
19785         * lib/rename-dest-slash.c: Likewise.
19786         * lib/rename.c: Likewise.
19787         * lib/rmdir.c: Likewise.
19788         * lib/rpmatch.c: Likewise.
19789         * lib/safe-read.c: Likewise.
19790         * lib/safe-read.h: Likewise.
19791         * lib/safe-write.c: Likewise.
19792         * lib/safe-write.h: Likewise.
19793         * lib/same-inode.h: Likewise.
19794         * lib/same.c: Likewise.
19795         * lib/same.h: Likewise.
19796         * lib/save-cwd.c: Likewise.
19797         * lib/save-cwd.h: Likewise.
19798         * lib/savedir.c: Likewise.
19799         * lib/savedir.h: Likewise.
19800         * lib/savewd.c: Likewise.
19801         * lib/savewd.h: Likewise.
19802         * lib/search.in.h: Likewise.
19803         * lib/setenv.c: Likewise.
19804         * lib/setenv.h: Likewise.
19805         * lib/settime.c: Likewise.
19806         * lib/sh-quote.c: Likewise.
19807         * lib/sh-quote.h: Likewise.
19808         * lib/sig2str.c: Likewise.
19809         * lib/sig2str.h: Likewise.
19810         * lib/signal.in.h: Likewise.
19811         * lib/signbitd.c: Likewise.
19812         * lib/signbitf.c: Likewise.
19813         * lib/signbitl.c: Likewise.
19814         * lib/sigprocmask.c: Likewise.
19815         * lib/sincosl.c: Likewise.
19816         * lib/sleep.c: Likewise.
19817         * lib/sprintf.c: Likewise.
19818         * lib/sqrtl.c: Likewise.
19819         * lib/stat-time.h: Likewise.
19820         * lib/stdio--.h: Likewise.
19821         * lib/stdio-safer.h: Likewise.
19822         * lib/stdlib--.h: Likewise.
19823         * lib/stdlib-safer.h: Likewise.
19824         * lib/stdlib.in.h: Likewise.
19825         * lib/stpcpy.c: Likewise.
19826         * lib/stpncpy.c: Likewise.
19827         * lib/strchrnul.c: Likewise.
19828         * lib/strcspn.c: Likewise.
19829         * lib/strerror.c: Likewise.
19830         * lib/strftime.c: Likewise.
19831         * lib/strftime.h: Likewise.
19832         * lib/striconveh.c: Likewise.
19833         * lib/striconveh.h: Likewise.
19834         * lib/striconveha.c: Likewise.
19835         * lib/striconveha.h: Likewise.
19836         * lib/stripslash.c: Likewise.
19837         * lib/strnlen1.c: Likewise.
19838         * lib/strnlen1.h: Likewise.
19839         * lib/strtod.c: Likewise.
19840         * lib/strtoimax.c: Likewise.
19841         * lib/strtok_r.c: Likewise.
19842         * lib/strtol.c: Likewise.
19843         * lib/strtoll.c: Likewise.
19844         * lib/strtoul.c: Likewise.
19845         * lib/strtoull.c: Likewise.
19846         * lib/sysexits.in.h: Likewise.
19847         * lib/tempname.c: Likewise.
19848         * lib/tempname.h: Likewise.
19849         * lib/timespec.h: Likewise.
19850         * lib/tls.c: Likewise.
19851         * lib/tls.h: Likewise.
19852         * lib/tmpdir.c: Likewise.
19853         * lib/tmpdir.h: Likewise.
19854         * lib/tmpfile-safer.c: Likewise.
19855         * lib/tmpfile.c: Likewise.
19856         * lib/trigl.c: Likewise.
19857         * lib/trigl.h: Likewise.
19858         * lib/trim.c: Likewise.
19859         * lib/trim.h: Likewise.
19860         * lib/trunc.c: Likewise.
19861         * lib/truncf.c: Likewise.
19862         * lib/truncl.c: Likewise.
19863         * lib/tsearch.c: Likewise.
19864         * lib/unicodeio.c: Likewise.
19865         * lib/unicodeio.h: Likewise.
19866         * lib/unistd--.h: Likewise.
19867         * lib/unistd-safer.h: Likewise.
19868         * lib/unistdio/ulc-fprintf.c: Likewise.
19869         * lib/unistdio/ulc-vfprintf.c: Likewise.
19870         * lib/unlinkdir.c: Likewise.
19871         * lib/unlinkdir.h: Likewise.
19872         * lib/unlocked-io.h: Likewise.
19873         * lib/unsetenv.c: Likewise.
19874         * lib/userspec.c: Likewise.
19875         * lib/utime.c: Likewise.
19876         * lib/utimecmp.c: Likewise.
19877         * lib/utimecmp.h: Likewise.
19878         * lib/utimens.c: Likewise.
19879         * lib/verify.h: Likewise.
19880         * lib/verror.c: Likewise.
19881         * lib/verror.h: Likewise.
19882         * lib/version-etc-fsf.c: Likewise.
19883         * lib/version-etc.c: Likewise.
19884         * lib/version-etc.h: Likewise.
19885         * lib/vfprintf.c: Likewise.
19886         * lib/vprintf.c: Likewise.
19887         * lib/vsprintf.c: Likewise.
19888         * lib/w32spawn.h: Likewise.
19889         * lib/wait-process.c: Likewise.
19890         * lib/wait-process.h: Likewise.
19891         * lib/wcwidth.c: Likewise.
19892         * lib/write-any-file.c: Likewise.
19893         * lib/xalloc-die.c: Likewise.
19894         * lib/xalloc.h: Likewise.
19895         * lib/xasprintf.c: Likewise.
19896         * lib/xgetcwd.c: Likewise.
19897         * lib/xgetcwd.h: Likewise.
19898         * lib/xgetdomainname.c: Likewise.
19899         * lib/xgetdomainname.h: Likewise.
19900         * lib/xgethostname.c: Likewise.
19901         * lib/xmalloc.c: Likewise.
19902         * lib/xmalloca.c: Likewise.
19903         * lib/xmalloca.h: Likewise.
19904         * lib/xmemcoll.c: Likewise.
19905         * lib/xnanosleep.c: Likewise.
19906         * lib/xreadlink.c: Likewise.
19907         * lib/xreadlink.h: Likewise.
19908         * lib/xsetenv.c: Likewise.
19909         * lib/xsetenv.h: Likewise.
19910         * lib/xstriconv.c: Likewise.
19911         * lib/xstriconv.h: Likewise.
19912         * lib/xstrndup.c: Likewise.
19913         * lib/xstrndup.h: Likewise.
19914         * lib/xstrtod.c: Likewise.
19915         * lib/xstrtod.h: Likewise.
19916         * lib/xstrtol-error.c: Likewise.
19917         * lib/xstrtol.c: Likewise.
19918         * lib/xstrtol.h: Likewise.
19919         * lib/xtime.h: Likewise.
19920         * lib/xvasprintf.c: Likewise.
19921         * lib/xvasprintf.h: Likewise.
19922         * lib/yesno.c: Likewise.
19923         * lib/yesno.h: Likewise.
19924         * posix-modules: Likewise.
19925         * tests/test-alloca-opt.c: Likewise.
19926         * tests/test-arcfour.c: Likewise.
19927         * tests/test-arctwo.c: Likewise.
19928         * tests/test-argmatch.c: Likewise.
19929         * tests/test-argp-2.sh: Likewise.
19930         * tests/test-argp.c: Likewise.
19931         * tests/test-arpa_inet.c: Likewise.
19932         * tests/test-array_list.c: Likewise.
19933         * tests/test-array_oset.c: Likewise.
19934         * tests/test-atexit.c: Likewise.
19935         * tests/test-avltree_list.c: Likewise.
19936         * tests/test-avltree_oset.c: Likewise.
19937         * tests/test-avltreehash_list.c: Likewise.
19938         * tests/test-base64.c: Likewise.
19939         * tests/test-binary-io.c: Likewise.
19940         * tests/test-byteswap.c: Likewise.
19941         * tests/test-c-ctype.c: Likewise.
19942         * tests/test-c-strcasecmp.c: Likewise.
19943         * tests/test-c-strcasestr.c: Likewise.
19944         * tests/test-c-strncasecmp.c: Likewise.
19945         * tests/test-c-strstr.c: Likewise.
19946         * tests/test-canonicalize-lgpl.c: Likewise.
19947         * tests/test-canonicalize.c: Likewise.
19948         * tests/test-carray_list.c: Likewise.
19949         * tests/test-ceilf.c: Likewise.
19950         * tests/test-ceill.c: Likewise.
19951         * tests/test-count-one-bits.c: Likewise.
19952         * tests/test-crc.c: Likewise.
19953         * tests/test-dirname.c: Likewise.
19954         * tests/test-fbufmode.c: Likewise.
19955         * tests/test-fcntl.c: Likewise.
19956         * tests/test-fflush.c: Likewise.
19957         * tests/test-floorf.c: Likewise.
19958         * tests/test-floorl.c: Likewise.
19959         * tests/test-fopen.c: Likewise.
19960         * tests/test-fprintf-posix.c: Likewise.
19961         * tests/test-fprintf-posix.h: Likewise.
19962         * tests/test-fpurge.c: Likewise.
19963         * tests/test-freadable.c: Likewise.
19964         * tests/test-freadahead.c: Likewise.
19965         * tests/test-freading.c: Likewise.
19966         * tests/test-freopen.c: Likewise.
19967         * tests/test-frexp.c: Likewise.
19968         * tests/test-frexpl.c: Likewise.
19969         * tests/test-fseek.c: Likewise.
19970         * tests/test-fseeko.c: Likewise.
19971         * tests/test-fseterr.c: Likewise.
19972         * tests/test-fstrcmp.c: Likewise.
19973         * tests/test-ftell.c: Likewise.
19974         * tests/test-ftello.c: Likewise.
19975         * tests/test-fwritable.c: Likewise.
19976         * tests/test-fwriting.c: Likewise.
19977         * tests/test-getaddrinfo.c: Likewise.
19978         * tests/test-getpass.c: Likewise.
19979         * tests/test-gettimeofday.c: Likewise.
19980         * tests/test-hmac-md5.c: Likewise.
19981         * tests/test-hmac-sha1.c: Likewise.
19982         * tests/test-iconv.c: Likewise.
19983         * tests/test-iconvme.c: Likewise.
19984         * tests/test-inttypes.c: Likewise.
19985         * tests/test-isnan.c: Likewise.
19986         * tests/test-isnanf.c: Likewise.
19987         * tests/test-isnanl-nolibm.c: Likewise.
19988         * tests/test-isnanl.c: Likewise.
19989         * tests/test-isnanl.h: Likewise.
19990         * tests/test-ldexpl.c: Likewise.
19991         * tests/test-linked_list.c: Likewise.
19992         * tests/test-linkedhash_list.c: Likewise.
19993         * tests/test-locale.c: Likewise.
19994         * tests/test-localename.c: Likewise.
19995         * tests/test-lock.c: Likewise.
19996         * tests/test-lseek.c: Likewise.
19997         * tests/test-malloca.c: Likewise.
19998         * tests/test-math.c: Likewise.
19999         * tests/test-mbscasecmp.c: Likewise.
20000         * tests/test-mbscasestr1.c: Likewise.
20001         * tests/test-mbscasestr2.c: Likewise.
20002         * tests/test-mbscasestr3.c: Likewise.
20003         * tests/test-mbscasestr4.c: Likewise.
20004         * tests/test-mbschr.c: Likewise.
20005         * tests/test-mbscspn.c: Likewise.
20006         * tests/test-mbsncasecmp.c: Likewise.
20007         * tests/test-mbspbrk.c: Likewise.
20008         * tests/test-mbspcasecmp.c: Likewise.
20009         * tests/test-mbsrchr.c: Likewise.
20010         * tests/test-mbsspn.c: Likewise.
20011         * tests/test-mbsstr1.c: Likewise.
20012         * tests/test-mbsstr2.c: Likewise.
20013         * tests/test-mbsstr3.c: Likewise.
20014         * tests/test-md5.c: Likewise.
20015         * tests/test-memmem.c: Likewise.
20016         * tests/test-netinet_in.c: Likewise.
20017         * tests/test-open.c: Likewise.
20018         * tests/test-printf-frexp.c: Likewise.
20019         * tests/test-printf-frexpl.c: Likewise.
20020         * tests/test-printf-posix.c: Likewise.
20021         * tests/test-printf-posix.h: Likewise.
20022         * tests/test-rbtree_list.c: Likewise.
20023         * tests/test-rbtree_oset.c: Likewise.
20024         * tests/test-rbtreehash_list.c: Likewise.
20025         * tests/test-read-file.c: Likewise.
20026         * tests/test-rijndael.c: Likewise.
20027         * tests/test-search.c: Likewise.
20028         * tests/test-signbit.c: Likewise.
20029         * tests/test-sleep.c: Likewise.
20030         * tests/test-snprintf-posix.c: Likewise.
20031         * tests/test-snprintf-posix.h: Likewise.
20032         * tests/test-snprintf.c: Likewise.
20033         * tests/test-sprintf-posix.c: Likewise.
20034         * tests/test-sprintf-posix.h: Likewise.
20035         * tests/test-stat-time.c: Likewise.
20036         * tests/test-stdbool.c: Likewise.
20037         * tests/test-stdint.c: Likewise.
20038         * tests/test-stdio.c: Likewise.
20039         * tests/test-stdlib.c: Likewise.
20040         * tests/test-stpncpy.c: Likewise.
20041         * tests/test-strcasestr.c: Likewise.
20042         * tests/test-striconv.c: Likewise.
20043         * tests/test-striconveh.c: Likewise.
20044         * tests/test-striconveha.c: Likewise.
20045         * tests/test-string.c: Likewise.
20046         * tests/test-sys_select.c: Likewise.
20047         * tests/test-sys_socket.c: Likewise.
20048         * tests/test-sys_stat.c: Likewise.
20049         * tests/test-sys_time.c: Likewise.
20050         * tests/test-sysexits.c: Likewise.
20051         * tests/test-time.c: Likewise.
20052         * tests/test-tls.c: Likewise.
20053         * tests/test-trunc.c: Likewise.
20054         * tests/test-truncf.c: Likewise.
20055         * tests/test-truncl.c: Likewise.
20056         * tests/test-unistd.c: Likewise.
20057         * tests/test-vasnprintf-posix.c: Likewise.
20058         * tests/test-vasnprintf-posix2.c: Likewise.
20059         * tests/test-vasnprintf.c: Likewise.
20060         * tests/test-vasprintf-posix.c: Likewise.
20061         * tests/test-vasprintf.c: Likewise.
20062         * tests/test-verify.c: Likewise.
20063         * tests/test-vfprintf-posix.c: Likewise.
20064         * tests/test-vprintf-posix.c: Likewise.
20065         * tests/test-vsnprintf-posix.c: Likewise.
20066         * tests/test-vsnprintf.c: Likewise.
20067         * tests/test-vsprintf-posix.c: Likewise.
20068         * tests/test-wchar.c: Likewise.
20069         * tests/test-wctype.c: Likewise.
20070         * tests/test-wcwidth.c: Likewise.
20071         * tests/test-xstrtol.c: Likewise.
20072         * tests/test-xvasprintf.c: Likewise.
20073         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
20074         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
20075         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
20076         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
20077         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
20078         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
20079         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
20080         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
20081         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
20082         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
20083         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
20084         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
20085         * tests/uniname/test-uninames.c: Likewise.
20086         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
20087         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
20088         * tests/unistdio/test-u16-printf1.h: Likewise.
20089         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
20090         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
20091         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
20092         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
20093         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
20094         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
20095         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
20096         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
20097         * tests/unistdio/test-u32-printf1.h: Likewise.
20098         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
20099         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
20100         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
20101         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
20102         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
20103         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
20104         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
20105         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
20106         * tests/unistdio/test-u8-printf1.h: Likewise.
20107         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
20108         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
20109         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
20110         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
20111         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
20112         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
20113         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
20114         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
20115         * tests/unistdio/test-ulc-printf1.h: Likewise.
20116         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
20117         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
20118         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
20119         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
20120         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
20121         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
20122         * tests/uniwidth/test-u16-strwidth.c: Likewise.
20123         * tests/uniwidth/test-u16-width.c: Likewise.
20124         * tests/uniwidth/test-u32-strwidth.c: Likewise.
20125         * tests/uniwidth/test-u32-width.c: Likewise.
20126         * tests/uniwidth/test-u8-strwidth.c: Likewise.
20127         * tests/uniwidth/test-u8-width.c: Likewise.
20128         * tests/uniwidth/test-uc_width.c: Likewise.
20129         * config/srclist-update: Likewise.
20130         (fixlicense): Update to GPLv3+.
20131
20132         Change copyright notice from LGPLv2.1+ to LGPLv3+.
20133         * tests/test-tsearch.c: Change copyright notice.
20134
20135         Change copyright notice from LGPLv2.0+ to LGPLv3+.
20136         * lib/c-strcaseeq.h: Change copyright notice.
20137         * lib/streq.h: Likewise.
20138         * lib/uniconv.h: Likewise.
20139         * lib/uniconv/u-conv-from-enc.h: Likewise.
20140         * lib/uniconv/u-conv-to-enc.h: Likewise.
20141         * lib/uniconv/u-strconv-from-enc.h: Likewise.
20142         * lib/uniconv/u-strconv-to-enc.h: Likewise.
20143         * lib/uniconv/u16-conv-from-enc.c: Likewise.
20144         * lib/uniconv/u16-conv-to-enc.c: Likewise.
20145         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
20146         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
20147         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
20148         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
20149         * lib/uniconv/u32-conv-from-enc.c: Likewise.
20150         * lib/uniconv/u32-conv-to-enc.c: Likewise.
20151         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
20152         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
20153         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
20154         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
20155         * lib/uniconv/u8-conv-from-enc.c: Likewise.
20156         * lib/uniconv/u8-conv-to-enc.c: Likewise.
20157         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
20158         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
20159         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
20160         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
20161         * lib/uniname.h: Likewise.
20162         * lib/uniname/uniname.c: Likewise.
20163         * lib/unistdio.h: Likewise.
20164         * lib/unistdio/u-asnprintf.h: Likewise.
20165         * lib/unistdio/u-asprintf.h: Likewise.
20166         * lib/unistdio/u-printf-args.c: Likewise.
20167         * lib/unistdio/u-printf-args.h: Likewise.
20168         * lib/unistdio/u-printf-parse.h: Likewise.
20169         * lib/unistdio/u-snprintf.h: Likewise.
20170         * lib/unistdio/u-sprintf.h: Likewise.
20171         * lib/unistdio/u-vasprintf.h: Likewise.
20172         * lib/unistdio/u-vsnprintf.h: Likewise.
20173         * lib/unistdio/u-vsprintf.h: Likewise.
20174         * lib/unistdio/u16-asnprintf.c: Likewise.
20175         * lib/unistdio/u16-asprintf.c: Likewise.
20176         * lib/unistdio/u16-printf-parse.c: Likewise.
20177         * lib/unistdio/u16-snprintf.c: Likewise.
20178         * lib/unistdio/u16-sprintf.c: Likewise.
20179         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
20180         * lib/unistdio/u16-u16-asprintf.c: Likewise.
20181         * lib/unistdio/u16-u16-snprintf.c: Likewise.
20182         * lib/unistdio/u16-u16-sprintf.c: Likewise.
20183         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
20184         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
20185         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
20186         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
20187         * lib/unistdio/u16-vasnprintf.c: Likewise.
20188         * lib/unistdio/u16-vasprintf.c: Likewise.
20189         * lib/unistdio/u16-vsnprintf.c: Likewise.
20190         * lib/unistdio/u16-vsprintf.c: Likewise.
20191         * lib/unistdio/u32-asnprintf.c: Likewise.
20192         * lib/unistdio/u32-asprintf.c: Likewise.
20193         * lib/unistdio/u32-printf-parse.c: Likewise.
20194         * lib/unistdio/u32-snprintf.c: Likewise.
20195         * lib/unistdio/u32-sprintf.c: Likewise.
20196         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
20197         * lib/unistdio/u32-u32-asprintf.c: Likewise.
20198         * lib/unistdio/u32-u32-snprintf.c: Likewise.
20199         * lib/unistdio/u32-u32-sprintf.c: Likewise.
20200         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
20201         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
20202         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
20203         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
20204         * lib/unistdio/u32-vasnprintf.c: Likewise.
20205         * lib/unistdio/u32-vasprintf.c: Likewise.
20206         * lib/unistdio/u32-vsnprintf.c: Likewise.
20207         * lib/unistdio/u32-vsprintf.c: Likewise.
20208         * lib/unistdio/u8-asnprintf.c: Likewise.
20209         * lib/unistdio/u8-asprintf.c: Likewise.
20210         * lib/unistdio/u8-printf-parse.c: Likewise.
20211         * lib/unistdio/u8-snprintf.c: Likewise.
20212         * lib/unistdio/u8-sprintf.c: Likewise.
20213         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
20214         * lib/unistdio/u8-u8-asprintf.c: Likewise.
20215         * lib/unistdio/u8-u8-snprintf.c: Likewise.
20216         * lib/unistdio/u8-u8-sprintf.c: Likewise.
20217         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
20218         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
20219         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
20220         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
20221         * lib/unistdio/u8-vasnprintf.c: Likewise.
20222         * lib/unistdio/u8-vasprintf.c: Likewise.
20223         * lib/unistdio/u8-vsnprintf.c: Likewise.
20224         * lib/unistdio/u8-vsprintf.c: Likewise.
20225         * lib/unistdio/ulc-asnprintf.c: Likewise.
20226         * lib/unistdio/ulc-asprintf.c: Likewise.
20227         * lib/unistdio/ulc-printf-parse.c: Likewise.
20228         * lib/unistdio/ulc-snprintf.c: Likewise.
20229         * lib/unistdio/ulc-sprintf.c: Likewise.
20230         * lib/unistdio/ulc-vasnprintf.c: Likewise.
20231         * lib/unistdio/ulc-vasprintf.c: Likewise.
20232         * lib/unistdio/ulc-vsnprintf.c: Likewise.
20233         * lib/unistdio/ulc-vsprintf.c: Likewise.
20234         * lib/unistr.h: Likewise.
20235         * lib/unistr/u-cpy-alloc.h: Likewise.
20236         * lib/unistr/u-cpy.h: Likewise.
20237         * lib/unistr/u-endswith.h: Likewise.
20238         * lib/unistr/u-move.h: Likewise.
20239         * lib/unistr/u-set.h: Likewise.
20240         * lib/unistr/u-startswith.h: Likewise.
20241         * lib/unistr/u-stpcpy.h: Likewise.
20242         * lib/unistr/u-stpncpy.h: Likewise.
20243         * lib/unistr/u-strcat.h: Likewise.
20244         * lib/unistr/u-strcpy.h: Likewise.
20245         * lib/unistr/u-strcspn.h: Likewise.
20246         * lib/unistr/u-strdup.h: Likewise.
20247         * lib/unistr/u-strlen.h: Likewise.
20248         * lib/unistr/u-strncat.h: Likewise.
20249         * lib/unistr/u-strncpy.h: Likewise.
20250         * lib/unistr/u-strnlen.h: Likewise.
20251         * lib/unistr/u-strpbrk.h: Likewise.
20252         * lib/unistr/u-strspn.h: Likewise.
20253         * lib/unistr/u-strstr.h: Likewise.
20254         * lib/unistr/u-strtok.h: Likewise.
20255         * lib/unistr/u16-check.c: Likewise.
20256         * lib/unistr/u16-chr.c: Likewise.
20257         * lib/unistr/u16-cmp.c: Likewise.
20258         * lib/unistr/u16-cpy-alloc.c: Likewise.
20259         * lib/unistr/u16-cpy.c: Likewise.
20260         * lib/unistr/u16-endswith.c: Likewise.
20261         * lib/unistr/u16-mblen.c: Likewise.
20262         * lib/unistr/u16-mbsnlen.c: Likewise.
20263         * lib/unistr/u16-mbtouc-aux.c: Likewise.
20264         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
20265         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
20266         * lib/unistr/u16-mbtouc.c: Likewise.
20267         * lib/unistr/u16-mbtoucr.c: Likewise.
20268         * lib/unistr/u16-move.c: Likewise.
20269         * lib/unistr/u16-next.c: Likewise.
20270         * lib/unistr/u16-prev.c: Likewise.
20271         * lib/unistr/u16-set.c: Likewise.
20272         * lib/unistr/u16-startswith.c: Likewise.
20273         * lib/unistr/u16-stpcpy.c: Likewise.
20274         * lib/unistr/u16-stpncpy.c: Likewise.
20275         * lib/unistr/u16-strcat.c: Likewise.
20276         * lib/unistr/u16-strchr.c: Likewise.
20277         * lib/unistr/u16-strcmp.c: Likewise.
20278         * lib/unistr/u16-strcpy.c: Likewise.
20279         * lib/unistr/u16-strcspn.c: Likewise.
20280         * lib/unistr/u16-strdup.c: Likewise.
20281         * lib/unistr/u16-strlen.c: Likewise.
20282         * lib/unistr/u16-strmblen.c: Likewise.
20283         * lib/unistr/u16-strmbtouc.c: Likewise.
20284         * lib/unistr/u16-strncat.c: Likewise.
20285         * lib/unistr/u16-strncmp.c: Likewise.
20286         * lib/unistr/u16-strncpy.c: Likewise.
20287         * lib/unistr/u16-strnlen.c: Likewise.
20288         * lib/unistr/u16-strpbrk.c: Likewise.
20289         * lib/unistr/u16-strrchr.c: Likewise.
20290         * lib/unistr/u16-strspn.c: Likewise.
20291         * lib/unistr/u16-strstr.c: Likewise.
20292         * lib/unistr/u16-strtok.c: Likewise.
20293         * lib/unistr/u16-to-u32.c: Likewise.
20294         * lib/unistr/u16-to-u8.c: Likewise.
20295         * lib/unistr/u16-uctomb-aux.c: Likewise.
20296         * lib/unistr/u16-uctomb.c: Likewise.
20297         * lib/unistr/u32-check.c: Likewise.
20298         * lib/unistr/u32-chr.c: Likewise.
20299         * lib/unistr/u32-cmp.c: Likewise.
20300         * lib/unistr/u32-cpy-alloc.c: Likewise.
20301         * lib/unistr/u32-cpy.c: Likewise.
20302         * lib/unistr/u32-endswith.c: Likewise.
20303         * lib/unistr/u32-mblen.c: Likewise.
20304         * lib/unistr/u32-mbsnlen.c: Likewise.
20305         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
20306         * lib/unistr/u32-mbtouc.c: Likewise.
20307         * lib/unistr/u32-mbtoucr.c: Likewise.
20308         * lib/unistr/u32-move.c: Likewise.
20309         * lib/unistr/u32-next.c: Likewise.
20310         * lib/unistr/u32-prev.c: Likewise.
20311         * lib/unistr/u32-set.c: Likewise.
20312         * lib/unistr/u32-startswith.c: Likewise.
20313         * lib/unistr/u32-stpcpy.c: Likewise.
20314         * lib/unistr/u32-stpncpy.c: Likewise.
20315         * lib/unistr/u32-strcat.c: Likewise.
20316         * lib/unistr/u32-strchr.c: Likewise.
20317         * lib/unistr/u32-strcmp.c: Likewise.
20318         * lib/unistr/u32-strcpy.c: Likewise.
20319         * lib/unistr/u32-strcspn.c: Likewise.
20320         * lib/unistr/u32-strdup.c: Likewise.
20321         * lib/unistr/u32-strlen.c: Likewise.
20322         * lib/unistr/u32-strmblen.c: Likewise.
20323         * lib/unistr/u32-strmbtouc.c: Likewise.
20324         * lib/unistr/u32-strncat.c: Likewise.
20325         * lib/unistr/u32-strncmp.c: Likewise.
20326         * lib/unistr/u32-strncpy.c: Likewise.
20327         * lib/unistr/u32-strnlen.c: Likewise.
20328         * lib/unistr/u32-strpbrk.c: Likewise.
20329         * lib/unistr/u32-strrchr.c: Likewise.
20330         * lib/unistr/u32-strspn.c: Likewise.
20331         * lib/unistr/u32-strstr.c: Likewise.
20332         * lib/unistr/u32-strtok.c: Likewise.
20333         * lib/unistr/u32-to-u16.c: Likewise.
20334         * lib/unistr/u32-to-u8.c: Likewise.
20335         * lib/unistr/u32-uctomb.c: Likewise.
20336         * lib/unistr/u8-check.c: Likewise.
20337         * lib/unistr/u8-chr.c: Likewise.
20338         * lib/unistr/u8-cmp.c: Likewise.
20339         * lib/unistr/u8-cpy-alloc.c: Likewise.
20340         * lib/unistr/u8-cpy.c: Likewise.
20341         * lib/unistr/u8-endswith.c: Likewise.
20342         * lib/unistr/u8-mblen.c: Likewise.
20343         * lib/unistr/u8-mbsnlen.c: Likewise.
20344         * lib/unistr/u8-mbtouc-aux.c: Likewise.
20345         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
20346         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
20347         * lib/unistr/u8-mbtouc.c: Likewise.
20348         * lib/unistr/u8-mbtoucr.c: Likewise.
20349         * lib/unistr/u8-move.c: Likewise.
20350         * lib/unistr/u8-next.c: Likewise.
20351         * lib/unistr/u8-prev.c: Likewise.
20352         * lib/unistr/u8-set.c: Likewise.
20353         * lib/unistr/u8-startswith.c: Likewise.
20354         * lib/unistr/u8-stpcpy.c: Likewise.
20355         * lib/unistr/u8-stpncpy.c: Likewise.
20356         * lib/unistr/u8-strcat.c: Likewise.
20357         * lib/unistr/u8-strchr.c: Likewise.
20358         * lib/unistr/u8-strcmp.c: Likewise.
20359         * lib/unistr/u8-strcpy.c: Likewise.
20360         * lib/unistr/u8-strcspn.c: Likewise.
20361         * lib/unistr/u8-strdup.c: Likewise.
20362         * lib/unistr/u8-strlen.c: Likewise.
20363         * lib/unistr/u8-strmblen.c: Likewise.
20364         * lib/unistr/u8-strmbtouc.c: Likewise.
20365         * lib/unistr/u8-strncat.c: Likewise.
20366         * lib/unistr/u8-strncmp.c: Likewise.
20367         * lib/unistr/u8-strncpy.c: Likewise.
20368         * lib/unistr/u8-strnlen.c: Likewise.
20369         * lib/unistr/u8-strpbrk.c: Likewise.
20370         * lib/unistr/u8-strrchr.c: Likewise.
20371         * lib/unistr/u8-strspn.c: Likewise.
20372         * lib/unistr/u8-strstr.c: Likewise.
20373         * lib/unistr/u8-strtok.c: Likewise.
20374         * lib/unistr/u8-to-u16.c: Likewise.
20375         * lib/unistr/u8-to-u32.c: Likewise.
20376         * lib/unistr/u8-uctomb-aux.c: Likewise.
20377         * lib/unistr/u8-uctomb.c: Likewise.
20378         * lib/unitypes.h: Likewise.
20379         * lib/uniwidth.h: Likewise.
20380         * lib/uniwidth/cjk.h: Likewise.
20381         * lib/uniwidth/u16-strwidth.c: Likewise.
20382         * lib/uniwidth/u16-width.c: Likewise.
20383         * lib/uniwidth/u32-strwidth.c: Likewise.
20384         * lib/uniwidth/u32-width.c: Likewise.
20385         * lib/uniwidth/u8-strwidth.c: Likewise.
20386         * lib/uniwidth/u8-width.c: Likewise.
20387         * lib/uniwidth/width.c: Likewise.
20388
20389 2007-10-07  Bruno Haible  <bruno@clisp.org>
20390
20391         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
20392         The file is still under LGPL (see modules/inttypes).
20393
20394 2007-10-06  Bruno Haible  <bruno@clisp.org>
20395
20396         * modules/trunc (Dependencies): Add 'extensions'.
20397         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
20398         Reported by Ben Pfaff <blp@gnu.org>.
20399
20400 2007-10-06  Bruno Haible  <bruno@clisp.org>
20401
20402         * modules/freopen-tests: New file.
20403         * tests/test-freopen.c: New file.
20404
20405         * modules/fopen-tests: New file.
20406         * tests/test-fopen.c: New file.
20407
20408         * modules/fopen: New file.
20409         * lib/fopen.c: New file.
20410         * m4/fopen.m4: New file.
20411         * modules/freopen: New file.
20412         * lib/freopen.c: New file.
20413         * m4/freopen.m4: New file.
20414         * lib/stdio.in.h (fopen, freopen): New declarations.
20415         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
20416         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
20417         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
20418         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
20419         * doc/functions/fopen.texi: Mention the 'fopen' module.
20420         * doc/functions/freopen.texi: Mention the 'freopen' module.
20421
20422 2007-10-06  Bruno Haible  <bruno@clisp.org>
20423
20424         * modules/open-tests: New file.
20425         * tests/test-open.c: New file.
20426
20427         * modules/open: New file.
20428         * lib/open.c: New file.
20429         * m4/open.m4: New file.
20430         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
20431         lib/open.c does.
20432         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
20433         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
20434         macros.
20435         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
20436         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
20437         REPLACE_OPEN.
20438         * doc/functions/open.texi: Mention the 'open' module.
20439
20440 2007-10-04  Bruno Haible  <bruno@clisp.org>
20441
20442         * modules/ceill-tests: New file.
20443         * tests/test-ceill.c: New file.
20444
20445         * modules/ceill: New file.
20446         * lib/ceill.c: Replace entire file.
20447         * m4/ceill.m4: New file.
20448         * lib/math.in.h (ceill): Replace declaration.
20449         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
20450         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
20451         * doc/functions/ceill.texi: Mention the 'ceill' module.
20452         * modules/mathl (Files): Remove lib/ceill.c.
20453         (Depends-on): Add ceill.
20454
20455 2007-10-04  Bruno Haible  <bruno@clisp.org>
20456
20457         * modules/ceilf-tests: New file.
20458         * tests/test-ceilf.c: New file.
20459
20460         * modules/ceilf: New file.
20461         * lib/ceil.c: New file.
20462         * lib/ceilf.c: New file.
20463         * m4/ceilf.m4: New file.
20464         * lib/math.in.h (ceilf): New declaration.
20465         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
20466         HAVE_DECL_CEILF.
20467         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
20468         HAVE_DECL_CEILF.
20469         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
20470
20471 2007-10-04  Bruno Haible  <bruno@clisp.org>
20472
20473         * modules/floorl-tests: New file.
20474         * tests/test-floorl.c: New file.
20475
20476         * modules/floorl: New file.
20477         * lib/floorl.c: Replace entire file.
20478         * m4/floorl.m4: New file.
20479         * lib/math.in.h (floorl): Replace declaration.
20480         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
20481         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
20482         * doc/functions/floorl.texi: Mention the 'floorl' module.
20483         * modules/mathl (Files): Remove lib/floorl.c.
20484         (Depends-on): Add floorl.
20485
20486 2007-10-04  Bruno Haible  <bruno@clisp.org>
20487
20488         * modules/floorf-tests: New file.
20489         * tests/test-floorf.c: New file.
20490
20491         * modules/floorf: New file.
20492         * lib/floor.c: New file.
20493         * lib/floorf.c: New file.
20494         * m4/floorf.m4: New file.
20495         * lib/math.in.h (floorf): New declaration.
20496         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
20497         HAVE_DECL_FLOORF.
20498         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
20499         HAVE_DECL_FLOORF.
20500         * doc/functions/floorf.texi: Mention the 'floorf' module.
20501
20502 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
20503             Bruno Haible  <bruno@clisp.org>
20504
20505         Advertise for the Git server instead of the CVS server.
20506         * doc/gnulib-intro.texi (Steady Development): Mention the Git
20507         repository instead of the CVS one.
20508         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
20509         about all VCS systems generically.
20510         * doc/gnulib.texi (Introduction): Capitalize `Git'.
20511
20512 2007-10-04  Bruno Haible  <bruno@clisp.org>
20513
20514         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
20515         means.
20516         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
20517
20518 2007-10-04  Bruno Haible  <bruno@clisp.org>
20519
20520         * modules/truncl-tests: New file.
20521         * tests/test-truncl.c: New file.
20522
20523         * modules/truncl: New file.
20524         * lib/truncl.c: New file.
20525         * m4/truncl.m4: New file.
20526         * lib/math.in.h (truncl): New declaration.
20527         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
20528         HAVE_DECL_TRUNCL.
20529         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
20530         HAVE_DECL_TRUNCL.
20531         * doc/functions/truncl.texi: Mention the 'truncl' module.
20532
20533 2007-10-04  Bruno Haible  <bruno@clisp.org>
20534
20535         * modules/truncf-tests: New file.
20536         * tests/test-truncf.c: New file.
20537
20538         * modules/truncf: New file.
20539         * lib/trunc.c: Make paramerizable through USE_* macros.
20540         * lib/truncf.c: New file.
20541         * m4/truncf.m4: New file.
20542         * lib/math.in.h (truncf): New declaration.
20543         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
20544         HAVE_DECL_TRUNCF.
20545         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
20546         HAVE_DECL_TRUNCF.
20547         * doc/functions/truncf.texi: Mention the 'truncf' module.
20548
20549 2007-10-03  Bruno Haible  <bruno@clisp.org>
20550
20551         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
20552         augmentation also for tests modules.
20553         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
20554         * modules/atexit-tests (Makefile.am): Likewise.
20555         * modules/binary-io-tests (Makefile.am): Likewise.
20556         * modules/c-strcase-tests (Makefile.am): Likewise.
20557         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
20558         * modules/canonicalize-tests (Makefile.am): Likewise.
20559         * modules/closein-tests (Makefile.am): Likewise.
20560         * modules/fprintf-posix-tests (Makefile.am): Likewise.
20561         * modules/freadahead-tests (Makefile.am): Likewise.
20562         * modules/fseek-tests (Makefile.am): Likewise.
20563         * modules/fseeko-tests (Makefile.am): Likewise.
20564         * modules/ftell-tests (Makefile.am): Likewise.
20565         * modules/ftello-tests (Makefile.am): Likewise.
20566         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
20567         * modules/isnanl-tests (Makefile.am): Likewise.
20568         * modules/lseek-tests (Makefile.am): Likewise.
20569         * modules/mbscasecmp-tests (Makefile.am): Likewise.
20570         * modules/mbscasestr-tests (Makefile.am): Likewise.
20571         * modules/mbschr-tests (Makefile.am): Likewise.
20572         * modules/mbscspn-tests (Makefile.am): Likewise.
20573         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
20574         * modules/mbspbrk-tests (Makefile.am): Likewise.
20575         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
20576         * modules/mbsrchr-tests (Makefile.am): Likewise.
20577         * modules/mbsspn-tests (Makefile.am): Likewise.
20578         * modules/mbsstr-tests (Makefile.am): Likewise.
20579         * modules/printf-posix-tests (Makefile.am): Likewise.
20580         * modules/snprintf-posix-tests (Makefile.am): Likewise.
20581         * modules/sprintf-posix-tests (Makefile.am): Likewise.
20582         * modules/tsearch-tests (Makefile.am): Likewise.
20583         * modules/uniname/uniname-tests (Makefile.am): Likewise.
20584         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
20585         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
20586         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
20587         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
20588         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
20589         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
20590         * modules/vprintf-posix-tests (Makefile.am): Likewise.
20591         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
20592         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
20593         * modules/xstrtoimax-tests (Makefile.am): Likewise.
20594         * modules/xstrtol-tests (Makefile.am): Likewise.
20595         * modules/xstrtoumax-tests (Makefile.am): Likewise.
20596         * modules/yesno-tests (Makefile.am): Likewise.
20597
20598 2007-10-03  Bruno Haible  <bruno@clisp.org>
20599
20600         * modules/trunc-tests: New file.
20601         * tests/test-trunc.c: New file.
20602
20603         * modules/trunc: New file.
20604         * lib/trunc.c: New file.
20605         * m4/trunc.m4: New file.
20606         * lib/math.in.h (trunc): New declaration.
20607         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
20608         HAVE_DECL_TRUNC.
20609         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
20610         HAVE_DECL_TRUNC.
20611         * doc/functions/trunc.texi: Mention the 'trunc' module.
20612
20613 2007-10-03  Bruno Haible  <bruno@clisp.org>
20614
20615         * tests/test-fpending.c: New file, mostly copied
20616         from coreutils/lib/t-fpending.c.
20617         * modules/fpending-tests: New file.
20618
20619 2007-10-03  Bruno Haible  <bruno@clisp.org>
20620
20621         Port the stdio extensions to QNX (untested).
20622         * lib/fseterr.c (fseterr): Add support for QNX.
20623         * lib/fbufmode.c (fbufmode): Likewise.
20624         * lib/freadable.c (freadable): Likewise.
20625         * lib/fwritable.c (fwritable): Likewise.
20626         * lib/freading.c (freading): Likewise.
20627         * lib/fwriting.c (fwriting): Likewise.
20628         * lib/freadahead.c (freadahed): Likewise.
20629         * lib/fpurge.c (fpurge): Likewise.
20630         * lib/fseeko.c (rpl_fseeko): Likewise.
20631
20632 2007-10-03  Bruno Haible  <bruno@clisp.org>
20633             Jim Meyering  <jim@meyering.net>
20634             Eric Blake  <ebb9@byu.net>
20635
20636         * doc/relocatable.texi: Use @command instead of @program.
20637
20638 2007-10-02  Jim Meyering  <jim@meyering.net>
20639
20640         Perform one more "_.h" -> ".in.h" substitution.
20641         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
20642         instead of unistd_.h here, too.
20643
20644 2007-10-01  Bruno Haible  <bruno@clisp.org>
20645
20646         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
20647         Needed for the alloca-opt module.
20648
20649 2007-09-30  Bruno Haible  <bruno@clisp.org>
20650
20651         * lib/alloca.in.h: Renamed from lib/alloca_.h.
20652         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
20653         alloca_.h.
20654         * lib/argz.in.h: Renamed from lib/argz_.h.
20655         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
20656         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
20657         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
20658         byteswap_.h.
20659         * lib/dirent.in.h: Renamed from lib/dirent_.h.
20660         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
20661         dirent_.h.
20662         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
20663         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
20664         fcntl_.h.
20665         * lib/float.in.h: Renamed from lib/float_.h.
20666         * modules/float (Files, Makefile.am): Use float.in.h instead of
20667         float_.h.
20668         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
20669         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
20670         fnmatch_.h.
20671         * lib/getopt.in.h: Renamed from lib/getopt_.h.
20672         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
20673         getopt_.h.
20674         * lib/glob.in.h: Renamed from lib/glob_.h.
20675         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
20676         * lib/iconv.in.h: Renamed from lib/iconv_.h.
20677         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
20678         iconv_.h.
20679         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
20680         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
20681         inttypes_.h.
20682         * lib/locale.in.h: Renamed from lib/locale_.h.
20683         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
20684         locale_.h.
20685         * lib/math.in.h: Renamed from lib/math_.h.
20686         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
20687         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
20688         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
20689         of netinet_in_.h. Add dependency.
20690         * lib/poll.in.h: Renamed from lib/poll_.h.
20691         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
20692         * lib/search.in.h: Renamed from lib/search_.h.
20693         * modules/search (Files, Makefile.am): Use search.in.h instead of
20694         search_.h.
20695         * lib/signal.in.h: Renamed from lib/signal_.h.
20696         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
20697         _signal.h.
20698         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
20699         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
20700         stdbool_.h.
20701         * lib/stdint.in.h: Renamed from lib/stdint_.h.
20702         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
20703         stdint_.h.
20704         * lib/stdio.in.h: Renamed from lib/stdio_.h.
20705         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
20706         stdio_.h.
20707         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
20708         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
20709         stdlib_.h.
20710         * lib/string.in.h: Renamed from lib/string_.h.
20711         * modules/string (Files, Makefile.am): Use string.in.h instead of
20712         string_.h.
20713         * doc/gnulib-tool.texi (Initial import): Update.
20714         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
20715         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
20716         of sys_select_.h. Add dependency.
20717         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
20718         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
20719         of sys_socket_.h.
20720         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
20721         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
20722         sys_stat_.h.
20723         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
20724         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
20725         sys_time_.h.
20726         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
20727         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
20728         sysexits_.h.
20729         * lib/time.in.h: Renamed from lib/time_.h.
20730         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
20731         * lib/unistd.in.h: Renamed from lib/unistd_.h.
20732         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
20733         unistd_.h.
20734         * lib/wchar.in.h: Renamed from lib/wchar_.h.
20735         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
20736         wchar_.h.
20737         * lib/wctype.in.h: Renamed from lib/wctype_.h.
20738         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
20739         wctype_.h.
20740         * build-aux/bootstrap (slurp): Update.
20741         * lib/.cppi-disable: Update.
20742
20743 2007-09-30  Bruno Haible  <bruno@clisp.org>
20744
20745         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
20746         Needed on BeOS.
20747
20748 2007-09-30  Bruno Haible  <bruno@clisp.org>
20749
20750         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
20751
20752 2007-09-29  Bruno Haible  <bruno@clisp.org>
20753
20754         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
20755
20756 2007-09-29  Bruno Haible  <bruno@clisp.org>
20757
20758         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
20759         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
20760         * build-aux/install-reloc: Compile also areadlink.c.
20761         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
20762
20763 2007-09-29  Bruno Haible  <bruno@clisp.org>
20764
20765         * gnulib-tool (func_emit_initmacro_done): Indentation.
20766
20767 2007-09-29  Bruno Haible  <bruno@clisp.org>
20768
20769         * README: Add CVS checkout update instructions.
20770         Info from Bob Proulx <bob@proulx.com>.
20771
20772 2007-09-28  Eric Blake  <ebb9@byu.net>
20773
20774         Provide move-if-change.
20775         * build-aux/move-if-change: New file, based on best practice
20776         rather than any canonical upstream location.
20777
20778 2007-09-28  Jim Meyering  <jim@meyering.net>
20779
20780         Fix canonicalize loop-detection corner case.
20781         Do not attempt to stat the symlink values stored via seen_triple.
20782         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
20783         on linux-2.6.18, (but not 2.6.22).
20784         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
20785         triple_compare.  The former compares dev,ino,filename, while the latter
20786         would actually stat dirname(filename) when dev and ino were equal.
20787         * lib/hash-triple.c: Install <string.h>.
20788         (STREQ): Define.
20789         (triple_compare_ino_str): New function.
20790         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
20791
20792 2007-09-28  Eric Blake  <ebb9@byu.net>
20793
20794         Enforce that AC_REPLACE_FUNCS files exist.
20795         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
20796         override check for typos.
20797
20798         Fix test-closein on Solaris 10.
20799         * tests/test-closein.c (main): Don't assume stdin can be inherited
20800         closed on all systems.
20801         * tests/test-closein.sh: Likewise.
20802         Reported by Piotr Tarnowski.
20803
20804 2007-09-28  Jim Meyering  <jim@meyering.net>
20805
20806         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
20807
20808 2007-09-27  Jim Meyering  <jim@meyering.net>
20809
20810         canonicalize: Avoid a false-positive cycle failure.
20811         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
20812         Sort.  Remove cycle-check.
20813         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
20814         not cycle-check.h.
20815         (seen_triple): New function.
20816         (canonicalize_filename_mode): Use it instead of cycle-check.
20817         * tests/test-canonicalize.c: Add a test for this bug.
20818         * tests/test-canonicalize.sh: Set up and run the test.
20819
20820         New module, file-set, from coreutils.
20821         * modules/file-set: Define it.
20822         * lib/file-set.c, lib/file-set.h: Implement.
20823
20824         New module, hash-triple, from coreutils.
20825         * modules/hash-triple: Define it.
20826         * lib/hash-triple.c, lib/hash-triple.h: Implement.
20827
20828 2007-09-25  Eric Blake  <ebb9@byu.net>
20829
20830         Fix strerror on Interix.
20831         * lib/string_.h (strerror): Declare replacement.
20832         * doc/functions/strerror.texi (strerror): Document the Interix
20833         shortcoming.
20834         * modules/string (Makefile.am): Support new hooks.
20835         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
20836         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
20837         gl_FUNC_STRERROR_SEPARATE.
20838         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
20839         * lib/strerror.c (rpl_strerror): Provide replacement.
20840         * modules/strerror (Depends-on): Add string.
20841         (configure.ac): Detect use of module.
20842         * tests/test-strerror.c: New file.
20843         * modules/strerror-tests: New test module.
20844         * modules/argp (Depends-on): Add strerror.
20845         * modules/error (Depends-on): Likewise.
20846         Reported by Martin Koeppe.
20847
20848 2007-09-24  Bruno Haible  <bruno@clisp.org>
20849
20850         * README: Update git instructions.
20851
20852 2007-09-24  Eric Blake  <ebb9@byu.net>
20853
20854         Revert fpending breakage from 2007-09-08.
20855         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
20856         __fpending.c.
20857
20858 2007-09-24  Jim Meyering  <jim@meyering.net>
20859
20860         filenamecat.c: Add a test.
20861         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
20862         showing how the function works when DIR is the empty string.
20863
20864 2007-09-21  Simon Josefsson  <simon@josefsson.org>
20865
20866         * tests/test-canonicalize.sh: Turn on executable bit.
20867
20868 2007-09-19  Eric Blake  <ebb9@byu.net>
20869
20870         * README: Update CVS instructions.
20871
20872 2007-09-18  Bruno Haible  <bruno@clisp.org>
20873
20874         * modules/areadlink: New file.
20875         * lib/areadlink.h (areadlink): New declaration.
20876         * lib/areadlink.c: New file, based on lib/xreadlink.c.
20877
20878 2007-09-17  Jim Meyering  <jim@meyering.net>
20879
20880         * lib/savewd.c (ESTALE) [!defined]: Define.
20881         Reported to be required on Interix by Martin Koeppe.
20882
20883 2007-09-17  Bruno Haible  <bruno@clisp.org>
20884
20885         * gnulib-tool (func_version): Use $version.
20886
20887 2007-09-16  Bruno Haible  <bruno@clisp.org>
20888
20889         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
20890         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
20891         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
20892         Reported by Greg Schafer <gschafer@zip.com.au>.
20893
20894 2007-09-15  Bruno Haible  <bruno@clisp.org>
20895
20896         * gnulib-tool (sed): Try a little harder to make bash understand the
20897         alias.
20898         Reported by Bruce Korb <bruce.korb@gmail.com>.
20899
20900 2007-09-13  Eric Blake  <ebb9@byu.net>
20901
20902         * ChangeLog: Remove conflict markers.
20903
20904 2007-09-13  Simon Josefsson  <simon@josefsson.org>
20905
20906         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
20907         Reported by Bruno Haible <bruno@clisp.org>.
20908
20909 2007-09-12  Bruno Haible  <bruno@clisp.org>
20910
20911         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
20912         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
20913         is not defined.
20914
20915 2007-09-12  Eric Blake  <ebb9@byu.net>
20916
20917         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
20918         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
20919         Autoconf definition.
20920         * modules/euidaccess (Depends-on): Add extensions, for
20921         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
20922         * modules/fnmatch (Depends-on): Likewise.
20923         * modules/getaddrinfo (Depends-on): Likewise.
20924         * modules/getdelim (Depends-on): Likewise.
20925         * modules/getline (Depends-on): Likewise.
20926         * modules/getsubopt (Depends-on): Likewise.
20927         * modules/gettext (Depends-on): Likewise.
20928         * modules/group-member (Depends-on): Likewise.
20929         * modules/mbchar (Depends-on): Likewise.
20930         * modules/memmem (Depends-on): Likewise.
20931         * modules/mempcpy (Depends-on): Likewise.
20932         * modules/memrchr (Depends-on): Likewise.
20933         * modules/pagealign_alloc (Depends-on): Likewise.
20934         * modules/readutmp (Depends-on): Likewise.
20935         * modules/stpcpy (Depends-on): Likewise.
20936         * modules/stpncpy (Depends-on): Likewise.
20937         * modules/strchrnul (Depends-on): Likewise.
20938         * modules/strndup (Depends-on): Likewise.
20939         * modules/strsep (Depends-on): Likewise.
20940         * modules/strverscmp (Depends-on): Likewise.
20941         * modules/vasprintf (Depends-on): Likewise.
20942         * modules/wcwidth (Depends-on): Likewise.
20943         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
20944         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
20945         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
20946         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
20947         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
20948         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
20949         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
20950         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
20951         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
20952         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
20953         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
20954         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
20955         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
20956         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
20957         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
20958         * m4/readutmp.m4 (gl_READUTMP): Likewise.
20959         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
20960         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
20961         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
20962         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
20963         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
20964         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
20965         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
20966         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
20967         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
20968         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20969         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
20970         so that lock.m4 can be used in gettext without extensions module.
20971
20972 2007-09-11  Bruno Haible  <bruno@clisp.org>
20973
20974         * m4/isc-posix.m4: Remove file.
20975         Suggested by Eric Blake.
20976
20977 2007-09-11  Eric Blake  <ebb9@byu.net>
20978
20979         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
20980
20981 2007-09-10  Bruno Haible  <bruno@clisp.org>
20982
20983         * posix-modules: Fix typo in error message.
20984         Reported by Matt <mkraai@beckman.com>.
20985
20986 2007-09-09  Bruno Haible  <bruno@clisp.org>
20987
20988         * doc/functions/getdelim.texi: Update list of platforms lacking the
20989         function.
20990         * doc/functions/getline.texi: Likewise.
20991
20992 2007-09-09  Jim Meyering  <jim@meyering.net>
20993
20994         * lib/hash.c (hash_initialize): Detect calloc failure.
20995         Reported by Bruno Haible.
20996
20997 2007-09-09  Bruno Haible  <bruno@clisp.org>
20998
20999         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
21000         malloc or realloc fails.
21001
21002 2007-09-09  Bruno Haible  <bruno@clisp.org>
21003
21004         * modules/getcwd (Depends-on): Add malloc-posix.
21005         * modules/glob (Depends-on): Likewise.
21006         * modules/putenv (Depends-on): Likewise.
21007         * modules/strdup (Depends-on): Likewise.
21008         * modules/getdelim (Depends-on): Add realloc-posix.
21009         * modules/read-file (Depends-on): Likewise.
21010
21011 2007-09-09  Bruno Haible  <bruno@clisp.org>
21012
21013         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
21014         (gl_FUNC_MALLOC_POSIX): Require it.
21015         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
21016         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
21017         * modules/realloc (Files): Add m4/malloc.m4.
21018         * modules/calloc (Files): Likewise.
21019
21020 2007-09-09  Bruno Haible  <bruno@clisp.org>
21021
21022         * modules/malloc-posix: New file.
21023         * modules/malloc (Depends-on): Add malloc-posix.
21024         * lib/malloc.c: Include errno.h.
21025         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
21026         and a POSIX-compatible malloc into a single function. Set ENOMEM
21027         when returning NULL.
21028         * m4/malloc.m4: New file.
21029         * doc/functions/malloc.texi: Mention the malloc-posix module.
21030         * lib/stdlib_.h (malloc): New declaration.
21031         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
21032         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
21033         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
21034         and HAVE_MALLOC_POSIX.
21035
21036 2007-09-09  Bruno Haible  <bruno@clisp.org>
21037
21038         * modules/realloc-posix: New file.
21039         * modules/realloc (Depends-on): Add realloc-posix.
21040         * lib/realloc.c: Include errno.h.
21041         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
21042         and a POSIX-compatible realloc into a single function. Set ENOMEM
21043         when returning NULL.
21044         * m4/realloc.m4: New file.
21045         * doc/functions/realloc.texi: Mention the realloc-posix module.
21046         * lib/stdlib_.h (realloc): New declaration.
21047         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
21048         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
21049         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
21050         and HAVE_REALLOC_POSIX.
21051
21052 2007-09-09  Bruno Haible  <bruno@clisp.org>
21053
21054         * modules/calloc-posix: New file.
21055         * modules/calloc (Depends-on): Add calloc-posix.
21056         * lib/calloc.c: Include errno.h.
21057         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
21058         and a POSIX-compatible calloc into a single function. Set ENOMEM
21059         when returning NULL.
21060         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
21061         * doc/functions/calloc.texi: Mention the calloc-posix module.
21062         * lib/stdlib_.h (calloc): New declaration.
21063         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
21064         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
21065         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
21066         and HAVE_CALLOC_POSIX.
21067
21068 2007-09-09  Bruno Haible  <bruno@clisp.org>
21069
21070         Allow for modules to show an arbitrary notice.
21071         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
21072         * gnulib-tool: New option --extract-notice.
21073         (func_usage): Document it.
21074         (sed_extract_prog): Update.
21075         (func_get_notice): New function.
21076         (func_modules_notice): New function.
21077         (func_import, func_create_testdir): Invoke it.
21078         Suggested by Jim Meyering.
21079
21080 2007-09-09  Bruno Haible  <bruno@clisp.org>
21081
21082         * gnulib-tool: New options --verbose, --quiet.
21083         (func_usage): Document them.
21084         (verbose): New variable.
21085         (func_execute_command): New function.
21086         (func_import): Don't show the module list and the file list if
21087         $verbose < 0.
21088         (func_create_testdir): Likewise. Use func_execute_command.
21089         (func_create_megatestdir): Use func_execute_command.
21090
21091 2007-09-08  Bruno Haible  <bruno@clisp.org>
21092
21093         * gnulib-tool (func_import): Prefer rsync over wget when available,
21094         for fetching the PO files.
21095
21096 2007-09-08  Bruno Haible  <bruno@clisp.org>
21097
21098         * posix-modules: New file. Portions copied from gnulib-tool.
21099         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
21100
21101 2007-09-08  Jim Meyering  <jim@meyering.net>
21102
21103         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
21104         * lib/fpending.h: Rename from __fpending.h.
21105         * lib/fpending.c: Rename from __fpending.c.
21106         Include "fpending.h", not "__fpending.h".
21107         * lib/__fpending.h, lib/__fpending.c: Remove files.
21108         * modules/fpending (Files): Reflect new file names.
21109         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
21110
21111 2007-09-08  Bruno Haible  <bruno@clisp.org>
21112
21113         * m4/inttypes-h.m4: Remove stub file.
21114
21115 2007-09-07  Simon Josefsson  <simon@josefsson.org>
21116
21117         * doc/headers/stdint.texi: Discuss #include_next issue.
21118
21119 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
21120
21121         * build-aux/bootstrap: Remove obsolete comment about wget --help.
21122
21123 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21124
21125         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
21126         in variable name.
21127
21128 2007-09-03  Jim Meyering  <jim@meyering.net>
21129
21130         New module: git-version-gen.
21131         * modules/git-version-gen: New file.
21132
21133         Import changes from coreutils for bootstrap script.
21134
21135         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
21136
21137         bootstrap: uses rsync to download the .po files
21138         * build-aux/bootstrap (po_download_command_format): New global.
21139         (download_po_files): Use rsync.
21140         (update_po_files): Don't remove .po files after download,
21141         so future rsync runs can take advantage of the copies.
21142
21143         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
21144
21145         Solve the unnecessary-.po-file-regeneration problem once and for all.
21146         * build-aux/bootstrap (download_po_files): New function, renamed from
21147         get_translations.  Now, downloads, but doesn't update LINGUAS.
21148         (update_po_files): New function.
21149
21150         bootstrap: Ignore more.
21151         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
21152         uniwidth to e.g., lib/.gitignore.
21153         (slurp): Handle the sys_stat_.h -> sys mapping, too.
21154
21155         * build-aux/bootstrap: New setting: vc_ignore.
21156         (insert_sorted_if_absent): Create $file if absent.
21157         Adapt to new, possibly empty, list: $vc_ignore.
21158
21159         bootstrap: generate more ignorable names
21160         * build-aux/bootstrap (slurp): When generating ignorable names,
21161         also map .sin to .sed, .gperf to .c, and .y to .c.
21162
21163 2007-09-03  Jim Meyering  <jim@meyering.net>
21164
21165         * build-aux/git-version-gen: New file, from coreutils.  For details, see
21166         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
21167
21168 2007-09-02  Bruno Haible  <bruno@clisp.org>
21169
21170         Fix mis-recognition of 'mcs' on QNX 6.
21171         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
21172         output contains the string "Mono".
21173         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
21174         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
21175
21176 2007-09-01  Bruno Haible  <bruno@clisp.org>
21177
21178         Fix collision between uniwidth/* and linebreak modules.
21179         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
21180         u32_width): Remove declarations.
21181         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
21182         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
21183         streq3, streq2, streq1, streq0): Remove functions.
21184         (STREQ): Remove macro.
21185         (is_cjk_encoding): Remove function.
21186         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
21187         (uc_width, u8_width, u16_width, u32_width): Remove functions.
21188         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
21189         * NEWS: Document the change.
21190
21191 2007-09-01  Bruno Haible  <bruno@clisp.org>
21192
21193         * lib/streq.h: Add double-inclusion guard.
21194
21195 2007-09-01  Karl Berry  <karl@gnu.org>
21196
21197         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
21198
21199 2007-08-28  Jim Meyering  <jim@meyering.net>
21200
21201         Rename mreadlink_with_size to areadlink_with_size.
21202         * NEWS: Document the change.
21203         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
21204         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
21205         * lib/mreadlink.h: Rename this to...
21206         * lib/areadlink.h: ...this.
21207         * modules/mreadlink-with-size: Rename this to...
21208         * modules/areadlink-with-size: ...this.
21209         * lib/canonicalize.c: Reflect the renaming.
21210         * modules/canonicalize: Likewise.
21211
21212 2007-08-26  Bruno Haible  <bruno@clisp.org>
21213
21214         * gnulib-tool (func_import): When deciding which files to remove,
21215         consider also dangling symbolic links.
21216         Reported by Eric Blake.
21217
21218 2007-08-26  Bruno Haible  <bruno@clisp.org>
21219
21220         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
21221
21222 2007-08-23  Simon Josefsson  <simon@josefsson.org>
21223
21224         * lib/readline.c: Don't include getline.h, the prototype is now
21225         found in stdio.h.
21226
21227 2007-08-23  Jim Meyering  <jim@meyering.net>
21228
21229         Getdelim touchup.
21230         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
21231         around the funlockfile call, since funlockfile never sets errno.
21232         Don't set errno upon failed realloc.
21233
21234 2007-08-22  Eric Blake  <ebb9@byu.net>
21235
21236         Getline touchups.
21237         * lib/getdelim.c (getdelim): Revert regression that required *n to
21238         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
21239         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
21240         getdelim, rather than whether implementation is missing.
21241         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
21242         * lib/stdio_.h (getline): Also declare if replacement is
21243         required.
21244         * doc/functions/getdelim.texi: New file.
21245         * doc/functions/getline.texi: Likewise.
21246         * doc/gnulib.texi (Function Substitutes): Add new files.
21247         Reported by Bruno Haible.
21248
21249 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
21250
21251         * users.txt: Add Guile.
21252
21253 2007-08-22  Eric Blake  <ebb9@byu.net>
21254
21255         * tests/test-getdelim.c (main): Use remove, not unlink.
21256         * tests/test-getline.c (main): Likewise.
21257
21258         Move getline and getdelim into stdio.h, per POSIX 200x.
21259         * modules/getline (Files): Remove getline.h.
21260         (Depends-on): Add stdio.
21261         (configure.ac): Add module indicator.
21262         * modules/getdelim (Files): Remove getdelim.h.
21263         (Depends-on): Add stdio.
21264         (configure.ac): Add module indicator.
21265         * modules/stdio (Makefile.am): Work with new indicators.
21266         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
21267         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
21268         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
21269         * lib/getdelim.h: Delete.
21270         * lib/getline.h: Delete.
21271         * lib/stdio_.h (getdelim, getline): Declare.
21272         * modules/getdelim-tests: New module.
21273         * modules/getline-tests: Likewise.
21274         * tests/test-getdelim.c: New file.
21275         * tests/test-getline.c: Likewise.
21276         * NEWS: Document the change.
21277         * lib/getline.c: Update choice of header.
21278         * lib/csharpcomp.c: Likewise.
21279         * lib/getpass.c: Likewise.
21280         * lib/javacomp.c: Likewise.
21281         * lib/javaversion.c: Likewise.
21282         * lib/yesno.c: Likewise.
21283         * lib/getdelim.c: Likewise.
21284         (getdelim): Set errno on failure, and avoid memory leak.
21285
21286 2007-08-19  Bruno Haible  <bruno@clisp.org>
21287
21288         * modules/closein (Depends-on): Add freadahead.
21289         * lib/closein.c: Include freadahead.h.
21290         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
21291         is zero.
21292
21293 2007-08-19  Bruno Haible  <bruno@clisp.org>
21294
21295         * modules/freadahead-tests: New file.
21296         * tests/test-freadahead.sh: New file.
21297         * tests/test-freadahead.c: New file.
21298
21299         * modules/freadahead: New file.
21300         * lib/freadahead.h: New file.
21301         * lib/freadahead.c: New file.
21302         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
21303         fbufmode, fpurge, freadable, fwritable.
21304
21305 2007-08-19  Eric Blake  <ebb9@byu.net>
21306
21307         Test yesno in combination with closein.
21308         * lib/yesno.c (yesno): Document use of stdin.
21309         * modules/yesno-tests (Files): New module.
21310         * tests/test-yesno.c (main): New file.
21311         * tests/test-yesno.sh: Likewise.
21312
21313 2007-08-19  Bruno Haible  <bruno@clisp.org>
21314
21315         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
21316         * lib/fseeko.c (rpl_fseeko): Likewise.
21317         * lib/fseterr.c (fseterr): Likewise.
21318
21319 2007-08-19  Bruno Haible  <bruno@clisp.org>
21320
21321         * tests/test-lseek.c (main): Disable a test for BeOS.
21322         * doc/functions/lseek.texi: Document the BeOS bug.
21323
21324 2007-08-19  Bruno Haible  <bruno@clisp.org>
21325             Eric Blake  <ebb9@byu.net>
21326
21327         * lib/lseek.c: Include <sys/stat.h>.
21328         (rpl_lseek): Add workaround code also for Unix platforms.
21329         Needed for BeOS.
21330         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
21331         * doc/functions/lseek.texi: Document BeOS definiency.
21332
21333 2007-08-18  Bruno Haible  <bruno@clisp.org>
21334
21335         * modules/fstrcmp-tests: New file.
21336         * tests/test-fstrcmp.c: New file.
21337
21338 2007-08-18  Bruno Haible  <bruno@clisp.org>
21339
21340         * modules/fstrcmp: New file, from GNU gettext with modifications.
21341         * lib/fstrcmp.h: New file, from GNU gettext.
21342         * lib/fstrcmp.c: New file, from GNU gettext.
21343         * MODULES.html.sh (String handling): Add fstrcmp.
21344
21345 2007-08-18  Bruno Haible  <bruno@clisp.org>
21346
21347         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
21348         'bool'.
21349         (diag, compareseq): Remove const from the ctxt argument.
21350         (USE_HEURISTIC): Undefine at the end.
21351
21352 2007-08-18  Jim Meyering  <jim@meyering.net>
21353
21354         New file: lib/idcache.h
21355         * NEWS: Mention the addition.
21356         * modules/idcache (Files): Add lib/idcache.h
21357         * lib/idcache.c: Include "idcache.h".
21358         Don't include <sys/types.h>.
21359         Add a FIXME comment.
21360         Move file-scoped "static" declarations to the top.
21361         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
21362
21363 2007-08-17  Bruno Haible  <bruno@clisp.org>
21364         and Paul Eggert  <eggert@cs.ucla.edu>
21365
21366         * MODULES.html.sh: Add diffseq.
21367         * modules/diffseq: New file.
21368         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
21369         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
21370
21371 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
21372
21373         Import changes from coreutils for bootstrap script.
21374
21375         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
21376
21377         * build-aux/bootstrap (slurp): Work even in environments where
21378         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
21379         current code does not slurp files whose names start with ".", and
21380         this looks like it might be a troublesome area.
21381
21382         2007-07-11  Jim Meyering  <jim@meyering.net>
21383
21384         If there's a GPL vN copyright comment, require that N == 3.
21385
21386         2007-07-08  Jim Meyering  <jim@meyering.net>
21387
21388         Run the coreutils-specific code only if tests/Makefile.am.in exists.
21389         * build-aux/bootstrap (mam_template): Move definition out of loop.
21390
21391         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
21392
21393         * build-aux/bootstrap (symlink_to_dir): Rename function from
21394         symlink_to_gnulib.  Add a directory parameter.  Update all
21395         callers.
21396         (cp_mark_as_generated): Also check for -- and link to -- files in
21397         gl/.
21398
21399         2007-07-08  Jim Meyering  <jim@meyering.net>
21400
21401         Adapt to deeper hierarchy in gnulib.
21402         * build-aux/bootstrap (symlink_to_dir): If the destination
21403         directory doesn't exist, create it. This is required at least for
21404         "lib/uniwidth/cjk.h".
21405
21406         2007-05-15  Jim Meyering  <jim@meyering.net>
21407
21408         * build-aux/bootstrap: Now that generated Makefile.am files
21409         are no longer under version control, they must be created at
21410         bootstrap time.
21411
21412 2007-08-14  Ben Pfaff  <blp@gnu.org>
21413
21414         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
21415
21416 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
21417
21418         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
21419         given the changes below.
21420         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
21421         even on hosts that have padding bits beyond the supported 64.
21422
21423 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
21424
21425         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
21426         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
21427         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
21428         depends on it.
21429         (xstrtol_error): Remove.
21430         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
21431         but with a different signature.
21432         (ATTRIBUTE_NORETURN, __attribute__): New macros.
21433         * lib/xstrtol-error.c: Include exitfail.h.
21434         (xstrtol_fatal): New function, with a different signature from the
21435         old xstrtol_error, so that the caller need not worry about passing
21436         in an exit status, or about storage management of the option argument.
21437         (xstrtol_error): Now a static function.  Redo signature to
21438         implement xstrtol_fatal.  Output the correct number of hyphens in
21439         front of the option so that the caller need not worry about
21440         storage management.
21441         (N_): New macro.
21442         (_): Remove; not used now.
21443         * modules/xstrtol: Depend on getopt.
21444         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
21445         of old STRTOL_FATAL_ERROR macro.
21446         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
21447         of test program.
21448         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
21449         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
21450
21451 2007-08-08  Eric Blake  <ebb9@byu.net>
21452
21453         * lib/xstrtol-error.c: Add missing include.
21454
21455         Move xstrtol messages into gnulib domain, when --pobase is used.
21456         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
21457         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
21458         * modules/xstrtol (Files): Distribute new file.
21459         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
21460         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
21461         * tests/test-xstrtol.c: ...into new file.
21462         * tests/test-xstrtoul.c: Also test xstrtoul.
21463         * tests/test-xstrtoimax.c: Also test xstrtoimax.
21464         * tests/test-xstrtoumax.c: Also test xstrtoumax.
21465         * tests/test-xstrtol.sh: Drive the tests.
21466         * tests/test-xstrtoimax.sh: Likewise.
21467         * tests/test-xstrtoumax.sh: Likewise.
21468         * modules/xstrtol-tests: New module.
21469         * modules/xstrtoimax-tests: Likewise.
21470         * modules/xstrtoumax-tests: Likewise.
21471
21472 2007-08-08  Jim Meyering  <jim@meyering.net>
21473
21474         New function: mfile_name_concat.
21475         * lib/filenamecat.c (mfile_name_concat): New function, just like
21476         file_name_concat, but return NULL upon failure rather than exiting
21477         with a diagnostic.
21478         * lib/filenamecat.h: Declare it.
21479
21480 2007-08-07  Bruno Haible  <bruno@clisp.org>
21481
21482         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
21483         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
21484         warning from gcc.
21485         Reported by Eric Blake.
21486
21487 2007-08-07  Simon Josefsson  <simon@josefsson.org>
21488
21489         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
21490         * modules/crypto/arcfour (License): Likewise.
21491         * modules/crypto/des-tests (License): Likewise.
21492         * modules/crypto/gc-arctwo-tests (License): Likewise.
21493         * modules/crypto/gc-des-tests (License): Likewise.
21494         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
21495         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
21496         * modules/crypto/gc-md2-tests (License): Likewise.
21497         * modules/crypto/gc-md4-tests (License): Likewise.
21498         * modules/crypto/gc-md5-tests (License): Likewise.
21499         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
21500         * modules/crypto/gc-rijndael-tests (License): Likewise.
21501         * modules/crypto/gc-sha1-tests (License): Likewise.
21502         * modules/crypto/gc-tests (License): Likewise.
21503         * modules/crypto/hmac-md5 (License): Likewise.
21504         * modules/crypto/hmac-sha1 (License): Likewise.
21505         * modules/crypto/md2-tests (License): Likewise.
21506         * modules/crypto/md4-tests (License): Likewise.
21507         * modules/crypto/md5 (License): Likewise.
21508         * modules/crypto/rijndael (License): Likewise.
21509         * modules/crypto/sha1 (License): Likewise.
21510         * modules/memxor (License): Likewise.
21511
21512 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
21513         and Bruno Haible  <bruno@clisp.org>
21514
21515         * NEWS: Describe interface changes to human, xstrtol.
21516         * lib/human.h: Include <xstrtol.h>.
21517         (human_options): Return enum strtol_error, not int.  Remove
21518         bool arg; take int * instead.
21519         * lib/human.c: Don't include "gettext.h".
21520         (_): Remove; no longer used.
21521         Don't include <xstrtol.h>, since human.h does it.
21522         (human_options): Adjust to abovementioned interface changes.
21523         Do not report error to stderr; that's now the caller's
21524         responsibility.
21525         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
21526         interface change.
21527         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
21528         Str, Argument_type_string.  All uses changed.  Put " argument"
21529         in diagnostics to make them clearer.  Change wording of suffix
21530         message for clarity.
21531         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
21532         Argument_type_string.
21533         (STRTOL_FATAL_WARN): Remove; no longer used.
21534         * modules/human (Depends-on): Remove gettext-h.
21535
21536 2007-08-06  Simon Josefsson  <simon@josefsson.org>
21537
21538         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
21539
21540 2007-07-31  Bruno Haible  <bruno@clisp.org>
21541
21542         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
21543         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
21544         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
21545
21546 2007-07-31  Bruno Haible  <bruno@clisp.org>
21547
21548         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
21549         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
21550
21551 2007-07-30  Bruno Haible  <bruno@clisp.org>
21552
21553         * modules/base64 (License): Use the synonymous term "LGPLv2+".
21554         * modules/c-ctype (License): Likewise.
21555         * modules/c-strcase (License): Likewise.
21556         * modules/check-version (License): Likewise.
21557         * modules/iconv (License): Likewise.
21558         * modules/iconv_open (License): Likewise.
21559         * modules/read-file (License): Likewise.
21560         * modules/striconv (License): Likewise.
21561         * modules/strverscmp (License): Likewise.
21562         * modules/vasprintf (License): Likewise.
21563         * modules/crypto/des (License): Likewise.
21564         * modules/crypto/gc (License): Likewise.
21565         * modules/crypto/gc-arcfour (License): Likewise.
21566         * modules/crypto/gc-arctwo (License): Likewise.
21567         * modules/crypto/gc-des (License): Likewise.
21568         * modules/crypto/gc-hmac-md5 (License): Likewise.
21569         * modules/crypto/gc-hmac-sha1 (License): Likewise.
21570         * modules/crypto/gc-md2 (License): Likewise.
21571         * modules/crypto/gc-md4 (License): Likewise.
21572         * modules/crypto/gc-md5 (License): Likewise.
21573         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
21574         * modules/crypto/gc-random (License): Likewise.
21575         * modules/crypto/gc-rijndael (License): Likewise.
21576         * modules/crypto/gc-sha1 (License): Likewise.
21577         * modules/crypto/md2 (License): Likewise.
21578         * modules/crypto/md4 (License): Likewise.
21579
21580 2007-07-30  Jim Meyering  <jim@meyering.net>
21581
21582         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
21583         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
21584         it has valid stat data.  This bug would cause du not to count the
21585         sizes of inaccessible directories.
21586         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
21587         in <http://bugzilla.redhat.com/250077>.
21588
21589 2007-07-25  Peter O'Gorman  <peter@pogma.com>
21590             Bruno Haible  <bruno@clisp.org>
21591
21592         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
21593         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
21594         #include_next, gives a diagnostic about it, but reports no error in
21595         the exit code.
21596         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
21597
21598 2007-07-24  Ben Pfaff  <blp@gnu.org>
21599
21600         Improve name: "count-one-bits" is better than "popcount".
21601         * MODULES.html.sh: Update name.
21602         * lib/popcount.h: Renamed lib/count-one-bits.h.
21603         (popcount): Renamed count_one_bits.
21604         (popcountl): Renamed count_one_bits_l.
21605         (popcountll): Renamed count_one_bits_ll.
21606         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
21607         * modules/popcount: Renamed module/count-one-bits.
21608         * modules/popcount-tests: Renamed module/count-one-bits-tests.
21609         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
21610
21611 2007-07-23  Ben Pfaff  <blp@gnu.org>
21612
21613         * lib/popcount.h (popcount32): Reduce size of constants, to allow
21614         better code generation, and add U to large constants to avoid
21615         warnings, in non-GCC case.
21616         Suggested by Bruno Haible.
21617
21618 2007-07-23  Ben Pfaff  <blp@gnu.org>
21619
21620         * lib/popcount.h: Use verify_true instead of if...abort.
21621         * modules/popcount: Depend on verify module.
21622         Suggested by Jim Meyering.
21623
21624 2007-07-23  Bruno Haible  <bruno@clisp.org>
21625
21626         * gnulib-tool (func_import): Create a .cvsignore file also when the
21627         directory is not yet in CVS but the toplevel directory is. When
21628         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
21629         Reported by Karl Berry.
21630
21631 2007-07-22  Ben Pfaff  <blp@gnu.org>
21632
21633         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
21634         case.
21635         Suggested by Eric Blake.
21636
21637 2007-07-22  Ben Pfaff  <blp@gnu.org>
21638
21639         New module: popcount.
21640         * MODULES.html.sh: Add popcount.
21641         * modules/popcount: New file.
21642         * modules/popcount-tests: New file.
21643         * tests/test-popcount.c: New file.
21644         * lib/popcount.h: New file.
21645         * m4/popcount.m4: New file.
21646
21647 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
21648
21649         * build-aux/announce-gen: Update to GPLv3.
21650
21651         * build-aux/config.guess: Update from config.
21652
21653 2007-07-21  Bruno Haible  <bruno@clisp.org>
21654
21655         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
21656         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
21657
21658 2007-07-20  Jim Meyering  <jim@meyering.net>
21659
21660         * check-module: Diagnose a self-dependency.
21661
21662 2007-07-19  Bruno Haible  <bruno@clisp.org>
21663
21664         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
21665         empty.
21666         Reported by Eric Blake.
21667
21668 2007-07-18  Bruno Haible  <bruno@clisp.org>
21669
21670         * gnulib-tool: New options --po-base, --po-domain.
21671         (func_usage): Document them.
21672         (pobase, po_domain): New variables.
21673         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
21674         DEFAULT_TEXT_DOMAIN.
21675         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
21676         (func_import): Consider pobase and po_domain. Create a po/ directory.
21677         (func_create_testdir): Set pobase and po_domain to empty.
21678         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
21679         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
21680
21681 2007-07-18  Bruno Haible  <bruno@clisp.org>
21682
21683         * gnulib-tool (func_get_automake_snippet): Synthesize also an
21684         EXTRA_DIST augmentation for files in build-aux/.
21685
21686 2007-07-16  Bruno Haible  <bruno@clisp.org>
21687
21688         * modules/lseek (License): Use the synonymous term "LGPLv2+".
21689         * modules/getdelim (License): Likewise.
21690
21691 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21692
21693         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
21694         * modules/d-type (License): Likewise.
21695         * modules/extensions (License): Likewise.
21696         * modules/fnmatch (License): Likewise.
21697         * modules/fseeko (License): Likewise.
21698         * modules/getaddrinfo (License): Likewise.
21699         * modules/getline (License): Likewise.
21700         * modules/getlogin_r (License): Likewise.
21701         * modules/getpass (License): Likewise.
21702         * modules/gettimeofday (License): Likewise.
21703         * modules/glob (License): Likewise.
21704         * modules/inet_ntop (License): Likewise.
21705         * modules/malloc (License): Likewise.
21706         * modules/malloca (License): Likewise.
21707         * modules/memmem (License): Likewise.
21708         * modules/mempcpy (License): Likewise.
21709         * modules/memset (License): Likewise.
21710         * modules/minmax (License): Likewise.
21711         * modules/mktime (License): Likewise.
21712         * modules/netinet_in (License): Likewise.
21713         * modules/pathmax (License): Likewise.
21714         * modules/poll (License): Likewise.
21715         * modules/regex (License): Likewise.
21716         * modules/snprintf (License): Likewise.
21717         * modules/stdbool (License): Likewise.
21718         * modules/stdint (License): Likewise.
21719         * modules/stdio (License): Likewise.
21720         * modules/strcase (License): Likewise.
21721         * modules/strcasestr (License): Likewise.
21722         * modules/strdup (License): Likewise.
21723         * modules/string (License): Likewise.
21724         * modules/strndup (License): Likewise.
21725         * modules/strnlen (License): Likewise.
21726         * modules/strpbrk (License): Likewise.
21727         * modules/strptime (License): Likewise.
21728         * modules/strsep (License): Likewise.
21729         * modules/sys_select (License): Likewise.
21730         * modules/sys_socket (License): Likewise.
21731         * modules/sys_stat (License): Likewise.
21732         * modules/sys_time (License): Likewise.
21733         * modules/time (License): Likewise.
21734         * modules/time_r (License): Likewise.
21735         * modules/timegm (License): Likewise.
21736         * modules/unistd (License): Likewise.
21737         * modules/vsnprintf (License): Likewise.
21738         * modules/wctype (License): Likewise.
21739
21740 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21741
21742         * modules/argz (License): LGPLv2+.
21743
21744 2007-07-15  Karl Berry  <karl@gnu.org>
21745
21746         * doc/gnulib.texi: revise node structure per new fdl.texi.
21747
21748 2007-07-14  Bruno Haible  <bruno@clisp.org>
21749
21750         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
21751         the output file.
21752         * lib/uniname/uninames.h: Regenerated.
21753
21754 2007-07-14  Karl Berry  <karl@gnu.org>
21755
21756         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
21757         omitting sectioning and index commands.
21758
21759 2007-07-13  Bruno Haible  <bruno@clisp.org>
21760
21761         New gnulib-tool option --more-symlinks.
21762         * gnulib-tool (func_usage): Document --more-symlinks.
21763         (do_copyrights): New variable.
21764         Recognize option --more-symlinks.
21765         (func_import): Don't add a copyright notice transform to
21766         sed_transform_lib_file if do_copyrights is empty.
21767
21768 2007-07-13  Bruno Haible  <bruno@clisp.org>
21769
21770         * lib/vasnprintf.c (decimal_point_char): Define also if
21771         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
21772         && !NEED_PRINTF_DIRECTIVE_A.
21773         Reported by Clemens Koller <clemens.koller@anagramm.de> via
21774         Gary V. Vaughan <gary@gnu.org>.
21775
21776 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
21777
21778         * lib/inttypes_.h: Undo previous change, since it was fixed
21779         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
21780
21781 2007-07-13  Bruno Haible  <bruno@clisp.org>
21782
21783         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
21784         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
21785
21786 2007-07-13  Jim Meyering  <jim@meyering.net>
21787
21788         df: Don't fail for Tru64's "file-on-file mount".
21789         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
21790         so we fall through and use statfs instead.  Details here:
21791         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
21792         Reported by Albert Chin.
21793
21794 2007-07-13  Bruno Haible  <bruno@clisp.org>
21795
21796         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
21797         * modules/configmake (License): Likewise.
21798         * modules/gettext (License): Likewise.
21799         * modules/gettext-h (License): Likewise.
21800         * modules/include_next (License): Likewise.
21801         * modules/link-warning (License): Likewise.
21802         * modules/localcharset (License): Likewise.
21803         * modules/localename (License): Likewise.
21804         * modules/lock (License): Likewise.
21805         * modules/relocatable-lib-lgpl (License): Likewise.
21806         * modules/size_max (License): Likewise.
21807         * modules/vasnprintf (License): Likewise.
21808         * modules/wchar (License): Likewise.
21809         * modules/xsize (License): Likewise.
21810
21811 2007-07-13  Bruno Haible  <bruno@clisp.org>
21812
21813         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
21814         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
21815
21816 2007-07-12  Bruno Haible  <bruno@clisp.org>
21817
21818         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
21819         in the modules files.
21820
21821 2007-07-11  Karl Berry  <karl@gnu.org>
21822
21823         * MODULES.html.sh (func_module): use
21824          sed -e '\|^'"${includefile}"'$|d'
21825          instead of /.../d, to avoid errors on $includefile's containing /.
21826
21827 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
21828
21829         * gnulib-tool (func_import): Avoid duplication of --avoid
21830         statements
21831         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
21832         names to `_' in variable names.
21833
21834 2007-07-10  Eric Blake  <ebb9@byu.net>
21835
21836         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
21837         * NEWS: Document this change.
21838
21839 2007-07-08  Bruno Haible  <bruno@clisp.org>
21840
21841         Update to Unicode 5.0.
21842         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
21843         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
21844         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
21845         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
21846         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
21847         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
21848         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
21849         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
21850         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
21851         U+10A3F, U+1D242..U+1D244.
21852         (nonspacing_table_ind): Update.
21853         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
21854         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
21855
21856 2007-07-08  Bruno Haible  <bruno@clisp.org>
21857
21858         Update to Unicode 5.0.
21859         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
21860         code transform. Extend the name index field of unicode_name_to_code and
21861         unicode_code_to_name from 16 to 24 bits.
21862         * lib/uniname/uniname.c (unicode_character_name,
21863         unicode_name_character): Add the range 0x12xxx to the code transform.
21864         * lib/uniname/uninames.h: Regenerated.
21865         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
21866
21867 2007-07-07  Bruno Haible  <bruno@clisp.org>
21868
21869         * modules/wcwidth-tests: New file.
21870         * tests/test-wcwidth.c: New file.
21871
21872         Work around MacOS X wcwidth() bug.
21873         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
21874         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
21875         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
21876         original wcwidth in non-UTF-8 locales.
21877         * modules/wcwidth (Depends-on): Add localcharset, streq,
21878         uniwidth/width.
21879         * doc/functions/wcwidth.texi: Update.
21880
21881 2007-07-07  Bruno Haible  <bruno@clisp.org>
21882
21883         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
21884         (wcwidth): New declaration.
21885         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
21886         macros.
21887         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
21888         here. Prepare for creating <wchar.h> unconditionally.
21889         * modules/wchar (Depends-on): Add link-warning.
21890         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
21891         REPLACE_WCWIDTH, and GL_LINK_WARNING.
21892         * lib/wcwidth.h: Remove file.
21893         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
21894         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
21895         * modules/wcwidth (Files): Remove lib/wcwidth.h.
21896         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
21897         (Include): Replace wcwidth.h with <wchar.h>.
21898         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
21899         * lib/mbchar.h: Don't include wcwidth.h.
21900         * lib/mbswidth.c: Likewise.
21901         * NEWS: Mention the change.
21902
21903 2007-07-07  Bruno Haible  <bruno@clisp.org>
21904
21905         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
21906         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
21907         definition with an external declaration.
21908         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
21909         defined as a function. Remove AC_C_INLINE requirement.
21910         * modules/wcwidth (Files): Add lib/wcwidth.c.
21911         (Makefile.am): Remove redundant statement.
21912
21913 2007-07-07  Bruno Haible  <bruno@clisp.org>
21914
21915         * MODULES.html.sh (Unicode string functions): Add the new modules.
21916
21917         * tests/uniwidth/test-u32-strwidth.c: New file.
21918         * modules/uniwidth/u32-strwidth-tests: New file.
21919
21920         * lib/uniwidth/u32-strwidth.c: New file.
21921         * modules/uniwidth/u32-strwidth: New file.
21922
21923         * tests/uniwidth/test-u16-strwidth.c: New file.
21924         * modules/uniwidth/u16-strwidth-tests: New file.
21925
21926         * lib/uniwidth/u16-strwidth.c: New file.
21927         * modules/uniwidth/u16-strwidth: New file.
21928
21929         * tests/uniwidth/test-u8-strwidth.c: New file.
21930         * modules/uniwidth/u8-strwidth-tests: New file.
21931
21932         * lib/uniwidth/u8-strwidth.c: New file.
21933         * modules/uniwidth/u8-strwidth: New file.
21934
21935         * tests/uniwidth/test-u32-width.c: New file.
21936         * modules/uniwidth/u32-width-tests: New file.
21937
21938         * lib/uniwidth/u32-width.c: New file.
21939         * modules/uniwidth/u32-width: New file.
21940
21941         * tests/uniwidth/test-u16-width.c: New file.
21942         * modules/uniwidth/u16-width-tests: New file.
21943
21944         * lib/uniwidth/u16-width.c: New file.
21945         * modules/uniwidth/u16-width: New file.
21946
21947         * tests/uniwidth/test-u8-width.c: New file.
21948         * modules/uniwidth/u8-width-tests: New file.
21949
21950         * lib/uniwidth/u8-width.c: New file.
21951         * modules/uniwidth/u8-width: New file.
21952
21953         * tests/uniwidth/test-uc_width.c: New file.
21954         * modules/uniwidth/width-tests: New file.
21955
21956         * lib/uniwidth/width.c: New file, from GNU libiconv.
21957         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
21958         * modules/uniwidth/width: New file.
21959
21960         * lib/uniwidth.h: New file, from GNU libiconv.
21961         * modules/uniwidth/base: New file.
21962
21963 2007-07-07  Bruno Haible  <bruno@clisp.org>
21964
21965         * lib/uniname.h: New file, from GNU gettext.
21966         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
21967         * lib/uniname/uninames.h: New file, from GNU gettext.
21968         * lib/uniname/uniname.c: New file, from GNU gettext.
21969         * tests/uniname/test-uninames.sh: New file.
21970         * tests/uniname/test-uninames.c: New file, from GNU gettext.
21971         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
21972         * modules/uniname/base: New file.
21973         * modules/uniname/uniname: New file.
21974         * modules/uniname/uniname-tests: New file.
21975         * MODULES.html.sh (Unicode string functions): Add the new modules.
21976
21977 2007-07-06  Bruno Haible  <bruno@clisp.org>
21978
21979         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
21980
21981 2007-07-06  Bruno Haible  <bruno@clisp.org>
21982
21983         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
21984         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
21985         includes <cygwin/sys_time.h> which includes <sys/select.h> which
21986         include <sys/time.h>.
21987         Reported by Eric Blake.
21988
21989 2007-07-06  Eric Blake  <ebb9@byu.net>
21990
21991         Fix testing canonicalize on cygwin.
21992         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
21993         Revert patch from 2007-06-19.
21994         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
21995         canonicalize module is also in use.
21996         * tests/test-canonicalize.c: New file.
21997         * tests/test-canonicalize.sh: Likewise.
21998         * modules/canonicalize-tests: Likewise.
21999
22000 2007-07-06  Jim Meyering  <jim@meyering.net>
22001
22002         * lib/getugroups.c (getugroups): Detect getgrent failure.
22003         Adjust comment to reflect reality: this function may return -1.
22004
22005 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
22006
22007         * build-aux/bootstrap (TP_URL,get_translations): Update to use
22008         the new TP address.
22009         (usage): Fix typo
22010         (gnulib_mk): New variable.
22011
22012 2007-07-05  Jim Meyering  <jim@meyering.net>
22013
22014         Don't let endgrent clobber errno, no matter how improbable.
22015         * lib/getugroups.c (getugroups): Save and restore errno around
22016         endgrent call.
22017
22018         Close the group DB even when failing with 2^31 or more members.
22019         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
22020
22021 2007-07-04  Jim Meyering  <jim@meyering.net>
22022
22023         * lib/getugroups.h: New file.
22024         * lib/getugroups.c: Include "getugroups.h".
22025         Remove uses of "register" keyword.
22026         Move local variable, "cp", down into scope where used.
22027         Give "username" parameter the "const" attribute.
22028         * modules/getugroups (Files): Add lib/getugroups.h
22029
22030 2007-07-04  Karl Berry  <karl@gnu.org>
22031
22032         * MODULES.html.sh (func_all_modules): Complete rename of
22033         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
22034
22035 2007-07-02  Bruno Haible  <bruno@clisp.org>
22036
22037         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
22038         mode, when inttypes.h comes from gnulib.
22039         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
22040
22041 2007-07-02  Simon Josefsson  <simon@josefsson.org>
22042
22043         * NEWS: Mention lgpl module name change.
22044
22045         * modules/lgpl-2.1: Renamed from lgpl.
22046
22047         * NEWS: Mention gpl module name change.
22048
22049         * modules/gpl-3.0: New file, based on gpl-2.0.
22050
22051         * modules/gpl-2.0: Renamed from gpl.
22052
22053         * modules/gpl: Fix filename, doc/gpl.texi is now found at
22054         doc/gpl-2.0.texi.
22055
22056 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
22057
22058         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
22059         #define __STDC_LIMIT_MACROS temporarily while including
22060         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
22061         Problem reported by Joel E. Denny in
22062         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
22063
22064 2007-07-01  Bruno Haible  <bruno@clisp.org>
22065
22066         * lib/unistdio.h: New file.
22067         * lib/unistdio/u-asnprintf.h: New file.
22068         * lib/unistdio/u-asprintf.h: New file.
22069         * lib/unistdio/u-printf-args.c: New file.
22070         * lib/unistdio/u-printf-args.h: New file.
22071         * lib/unistdio/u-printf-parse.h: New file.
22072         * lib/unistdio/u-snprintf.h: New file.
22073         * lib/unistdio/u-sprintf.h: New file.
22074         * lib/unistdio/u-vasprintf.h: New file.
22075         * lib/unistdio/u-vsnprintf.h: New file.
22076         * lib/unistdio/u-vsprintf.h: New file.
22077         * lib/unistdio/ulc-asnprintf.c: New file.
22078         * lib/unistdio/ulc-asprintf.c: New file.
22079         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
22080         * lib/unistdio/ulc-printf-parse.c: New file.
22081         * lib/unistdio/ulc-snprintf.c: New file.
22082         * lib/unistdio/ulc-sprintf.c: New file.
22083         * lib/unistdio/ulc-vasnprintf.c: New file.
22084         * lib/unistdio/ulc-vasprintf.c: New file.
22085         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
22086         * lib/unistdio/ulc-vsnprintf.c: New file.
22087         * lib/unistdio/ulc-vsprintf.c: New file.
22088         * lib/unistdio/u8-asnprintf.c: New file.
22089         * lib/unistdio/u8-asprintf.c: New file.
22090         * lib/unistdio/u8-printf-parse.c: New file.
22091         * lib/unistdio/u8-snprintf.c: New file.
22092         * lib/unistdio/u8-sprintf.c: New file.
22093         * lib/unistdio/u8-vasnprintf.c: New file.
22094         * lib/unistdio/u8-vasprintf.c: New file.
22095         * lib/unistdio/u8-vsnprintf.c: New file.
22096         * lib/unistdio/u8-vsprintf.c: New file.
22097         * lib/unistdio/u8-u8-asnprintf.c: New file.
22098         * lib/unistdio/u8-u8-asprintf.c: New file.
22099         * lib/unistdio/u8-u8-snprintf.c: New file.
22100         * lib/unistdio/u8-u8-sprintf.c: New file.
22101         * lib/unistdio/u8-u8-vasnprintf.c: New file.
22102         * lib/unistdio/u8-u8-vasprintf.c: New file.
22103         * lib/unistdio/u8-u8-vsnprintf.c: New file.
22104         * lib/unistdio/u8-u8-vsprintf.c: New file.
22105         * lib/unistdio/u16-asnprintf.c: New file.
22106         * lib/unistdio/u16-asprintf.c: New file.
22107         * lib/unistdio/u16-printf-parse.c: New file.
22108         * lib/unistdio/u16-snprintf.c: New file.
22109         * lib/unistdio/u16-sprintf.c: New file.
22110         * lib/unistdio/u16-vasnprintf.c: New file.
22111         * lib/unistdio/u16-vasprintf.c: New file.
22112         * lib/unistdio/u16-vsnprintf.c: New file.
22113         * lib/unistdio/u16-vsprintf.c: New file.
22114         * lib/unistdio/u16-u16-asnprintf.c: New file.
22115         * lib/unistdio/u16-u16-asprintf.c: New file.
22116         * lib/unistdio/u16-u16-snprintf.c: New file.
22117         * lib/unistdio/u16-u16-sprintf.c: New file.
22118         * lib/unistdio/u16-u16-vasnprintf.c: New file.
22119         * lib/unistdio/u16-u16-vasprintf.c: New file.
22120         * lib/unistdio/u16-u16-vsnprintf.c: New file.
22121         * lib/unistdio/u16-u16-vsprintf.c: New file.
22122         * lib/unistdio/u32-asnprintf.c: New file.
22123         * lib/unistdio/u32-asprintf.c: New file.
22124         * lib/unistdio/u32-printf-parse.c: New file.
22125         * lib/unistdio/u32-snprintf.c: New file.
22126         * lib/unistdio/u32-sprintf.c: New file.
22127         * lib/unistdio/u32-vasnprintf.c: New file.
22128         * lib/unistdio/u32-vasprintf.c: New file.
22129         * lib/unistdio/u32-vsnprintf.c: New file.
22130         * lib/unistdio/u32-vsprintf.c: New file.
22131         * lib/unistdio/u32-u32-asnprintf.c: New file.
22132         * lib/unistdio/u32-u32-asprintf.c: New file.
22133         * lib/unistdio/u32-u32-snprintf.c: New file.
22134         * lib/unistdio/u32-u32-sprintf.c: New file.
22135         * lib/unistdio/u32-u32-vasnprintf.c: New file.
22136         * lib/unistdio/u32-u32-vasprintf.c: New file.
22137         * lib/unistdio/u32-u32-vsnprintf.c: New file.
22138         * lib/unistdio/u32-u32-vsprintf.c: New file.
22139         * tests/unistdio/test-ulc-asnprintf1.c: New file.
22140         * tests/unistdio/test-ulc-asnprintf1.h: New file.
22141         * tests/unistdio/test-ulc-printf1.h: New file.
22142         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
22143         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
22144         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
22145         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
22146         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
22147         * tests/unistdio/test-ulc-vasprintf1.c: New file.
22148         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
22149         * tests/unistdio/test-ulc-vsprintf1.c: New file.
22150         * tests/unistdio/test-u8-asnprintf1.c: New file.
22151         * tests/unistdio/test-u8-asnprintf1.h: New file.
22152         * tests/unistdio/test-u8-printf1.h: New file.
22153         * tests/unistdio/test-u8-vasnprintf1.c: New file.
22154         * tests/unistdio/test-u8-vasnprintf2.c: New file.
22155         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
22156         * tests/unistdio/test-u8-vasnprintf3.c: New file.
22157         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
22158         * tests/unistdio/test-u8-vasprintf1.c: New file.
22159         * tests/unistdio/test-u8-vsnprintf1.c: New file.
22160         * tests/unistdio/test-u8-vsprintf1.c: New file.
22161         * tests/unistdio/test-u16-asnprintf1.c: New file.
22162         * tests/unistdio/test-u16-asnprintf1.h: New file.
22163         * tests/unistdio/test-u16-printf1.h: New file.
22164         * tests/unistdio/test-u16-vasnprintf1.c: New file.
22165         * tests/unistdio/test-u16-vasnprintf2.c: New file.
22166         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
22167         * tests/unistdio/test-u16-vasnprintf3.c: New file.
22168         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
22169         * tests/unistdio/test-u16-vasprintf1.c: New file.
22170         * tests/unistdio/test-u16-vsnprintf1.c: New file.
22171         * tests/unistdio/test-u16-vsprintf1.c: New file.
22172         * tests/unistdio/test-u32-asnprintf1.c: New file.
22173         * tests/unistdio/test-u32-asnprintf1.h: New file.
22174         * tests/unistdio/test-u32-printf1.h: New file.
22175         * tests/unistdio/test-u32-vasnprintf1.c: New file.
22176         * tests/unistdio/test-u32-vasnprintf2.c: New file.
22177         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
22178         * tests/unistdio/test-u32-vasnprintf3.c: New file.
22179         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
22180         * tests/unistdio/test-u32-vasprintf1.c: New file.
22181         * tests/unistdio/test-u32-vsnprintf1.c: New file.
22182         * tests/unistdio/test-u32-vsprintf1.c: New file.
22183         * modules/unistdio/base: New file.
22184         * modules/unistdio/u-printf-args: New file.
22185         * modules/unistdio/ulc-asnprintf: New file.
22186         * modules/unistdio/ulc-asprintf: New file.
22187         * modules/unistdio/ulc-fprintf: New file.
22188         * modules/unistdio/ulc-printf-parse: New file.
22189         * modules/unistdio/ulc-snprintf: New file.
22190         * modules/unistdio/ulc-sprintf: New file.
22191         * modules/unistdio/ulc-vasnprintf: New file.
22192         * modules/unistdio/ulc-vasprintf: New file.
22193         * modules/unistdio/ulc-vfprintf: New file.
22194         * modules/unistdio/ulc-vsnprintf: New file.
22195         * modules/unistdio/ulc-vsprintf: New file.
22196         * modules/unistdio/u8-asnprintf: New file.
22197         * modules/unistdio/u8-asprintf: New file.
22198         * modules/unistdio/u8-printf-parse: New file.
22199         * modules/unistdio/u8-snprintf: New file.
22200         * modules/unistdio/u8-sprintf: New file.
22201         * modules/unistdio/u8-vasnprintf: New file.
22202         * modules/unistdio/u8-vasprintf: New file.
22203         * modules/unistdio/u8-vsnprintf: New file.
22204         * modules/unistdio/u8-vsprintf: New file.
22205         * modules/unistdio/u8-u8-asnprintf: New file.
22206         * modules/unistdio/u8-u8-asprintf: New file.
22207         * modules/unistdio/u8-u8-snprintf: New file.
22208         * modules/unistdio/u8-u8-sprintf: New file.
22209         * modules/unistdio/u8-u8-vasnprintf: New file.
22210         * modules/unistdio/u8-u8-vasprintf: New file.
22211         * modules/unistdio/u8-u8-vsnprintf: New file.
22212         * modules/unistdio/u8-u8-vsprintf: New file.
22213         * modules/unistdio/u16-asnprintf: New file.
22214         * modules/unistdio/u16-asprintf: New file.
22215         * modules/unistdio/u16-printf-parse: New file.
22216         * modules/unistdio/u16-snprintf: New file.
22217         * modules/unistdio/u16-sprintf: New file.
22218         * modules/unistdio/u16-vasnprintf: New file.
22219         * modules/unistdio/u16-vasprintf: New file.
22220         * modules/unistdio/u16-vsnprintf: New file.
22221         * modules/unistdio/u16-vsprintf: New file.
22222         * modules/unistdio/u16-u16-asnprintf: New file.
22223         * modules/unistdio/u16-u16-asprintf: New file.
22224         * modules/unistdio/u16-u16-snprintf: New file.
22225         * modules/unistdio/u16-u16-sprintf: New file.
22226         * modules/unistdio/u16-u16-vasnprintf: New file.
22227         * modules/unistdio/u16-u16-vasprintf: New file.
22228         * modules/unistdio/u16-u16-vsnprintf: New file.
22229         * modules/unistdio/u16-u16-vsprintf: New file.
22230         * modules/unistdio/u32-asnprintf: New file.
22231         * modules/unistdio/u32-asprintf: New file.
22232         * modules/unistdio/u32-printf-parse: New file.
22233         * modules/unistdio/u32-snprintf: New file.
22234         * modules/unistdio/u32-sprintf: New file.
22235         * modules/unistdio/u32-vasnprintf: New file.
22236         * modules/unistdio/u32-vasprintf: New file.
22237         * modules/unistdio/u32-vsnprintf: New file.
22238         * modules/unistdio/u32-vsprintf: New file.
22239         * modules/unistdio/u32-u32-asnprintf: New file.
22240         * modules/unistdio/u32-u32-asprintf: New file.
22241         * modules/unistdio/u32-u32-snprintf: New file.
22242         * modules/unistdio/u32-u32-sprintf: New file.
22243         * modules/unistdio/u32-u32-vasnprintf: New file.
22244         * modules/unistdio/u32-u32-vasprintf: New file.
22245         * modules/unistdio/u32-u32-vsnprintf: New file.
22246         * modules/unistdio/u32-u32-vsprintf: New file.
22247         * modules/unistdio/ulc-asnprintf-tests: New file.
22248         * modules/unistdio/ulc-vasnprintf-tests: New file.
22249         * modules/unistdio/ulc-vasprintf-tests: New file.
22250         * modules/unistdio/ulc-vsnprintf-tests: New file.
22251         * modules/unistdio/ulc-vsprintf-tests: New file.
22252         * modules/unistdio/u8-asnprintf-tests: New file.
22253         * modules/unistdio/u8-vasnprintf-tests: New file.
22254         * modules/unistdio/u8-vasprintf-tests: New file.
22255         * modules/unistdio/u8-vsnprintf-tests: New file.
22256         * modules/unistdio/u8-vsprintf-tests: New file.
22257         * modules/unistdio/u16-asnprintf-tests: New file.
22258         * modules/unistdio/u16-vasnprintf-tests: New file.
22259         * modules/unistdio/u16-vasprintf-tests: New file.
22260         * modules/unistdio/u16-vsnprintf-tests: New file.
22261         * modules/unistdio/u16-vsprintf-tests: New file.
22262         * modules/unistdio/u32-asnprintf-tests: New file.
22263         * modules/unistdio/u32-vasnprintf-tests: New file.
22264         * modules/unistdio/u32-vasprintf-tests: New file.
22265         * modules/unistdio/u32-vsnprintf-tests: New file.
22266         * modules/unistdio/u32-vsprintf-tests: New file.
22267         * MODULES.html.sh (Unicode string functions): Add the new modules.
22268
22269 2007-07-01  Bruno Haible  <bruno@clisp.org>
22270
22271         * lib/sprintf.c (sprintf): Limit the available length estimation,
22272         to avoid address wraparound.
22273         * lib/vsprintf.c (vsprintf): Likewise.
22274         * modules/sprintf-posix (Dependencies): Add stdint.
22275         * modules/vsprintf-posix (Dependencies): Likewise.
22276
22277 2007-07-01  Bruno Haible  <bruno@clisp.org>
22278
22279         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
22280         Windows PATH as well. Conservative double-quoting. Comments.
22281
22282 2007-07-01  Bruno Haible  <bruno@clisp.org>
22283             Eric Blake  <ebb9@byu.net>
22284             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22285
22286         * gnulib-tool (self_abspathname): Fix algorithm to cope with
22287         empty components in $PATH, denoting '.'.
22288
22289 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22290
22291         * gnulib-tool: Fix indentation.
22292         (func_create_megatestdir): Likewise.
22293         Report by Bruno Haible.
22294
22295 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22296
22297         Sync from Automake.
22298         * build-aux/gnupload: Fix shell portability issues with for loops.
22299         Report by Karl Berry.
22300
22301 2007-06-29  Simon Josefsson  <simon@josefsson.org>
22302
22303         * build-aux/maint.mk (POURL): Use translationproject.org.
22304
22305 2007-06-27  Simon Josefsson  <simon@josefsson.org>
22306             Bruno Haible  <bruno@clisp.org>
22307
22308         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
22309         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
22310         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
22311         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
22312         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
22313
22314 2007-06-27  Bruno Haible  <bruno@clisp.org>
22315
22316         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
22317         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
22318
22319 2007-06-26  Karl Berry  <karl@gnu.org>
22320
22321         * MODULES.html.sh: remove xreadlink-with-size.
22322
22323 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
22324
22325         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
22326         method that I hope also handles the double-include problem noted
22327         by Bruno Haible in
22328         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
22329
22330 2007-06-23  Bruno Haible  <bruno@clisp.org>
22331
22332         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22333         Don't let the 'mostlyclean' target fail if the last subdirectory could
22334         not be removed.
22335         Reported by Karl Berry.
22336
22337 2007-06-23  Bruno Haible  <bruno@clisp.org>
22338
22339         * gnulib-tool (echo): Add a speedier workaround for ksh.
22340         * tests/test-echo.sh: Likewise.
22341
22342 2007-06-23  Bruno Haible  <bruno@clisp.org>
22343
22344         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
22345         * tests/test-echo.sh: Likewise.
22346
22347 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22348
22349         * gnulib-tool (IFS): Initialize early, so we don't set it to
22350         empty later.
22351         (self_abspathname): Rewrite algorithm to set it, reindent.
22352         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
22353         (func_create_megatestdir): Merge some sed scripts.
22354
22355 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
22356
22357         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
22358         exposed by Sun Studio 11 cc on Solaris 8.
22359
22360 2007-06-22  Bruno Haible  <bruno@clisp.org>
22361
22362         * gnulib-tool (echo): Ensure the echo primitive does not interpret
22363         backslashes.
22364         * tests/test-echo.sh: New file.
22365
22366 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22367
22368         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
22369         simplify `sed_replace_build_aux' scripts, they are portable but
22370         echoing them with `echo' is not.
22371         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
22372
22373 2007-06-21  Karl Berry  <karl@gnu.org>
22374
22375         * config/srclist.txt: guess we can't handle the licenses via
22376         srclist at the moment.
22377
22378 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
22379
22380         * MODULES.html.sh: Add include_next.
22381         * modules/include_next: New file.
22382
22383 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
22384
22385         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
22386         INCLUDE_NEXT.
22387         (gl_CHECK_NEXT_HEADERS): New macro.
22388         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
22389         the obsolescent gl_ABSOLUTE_HEADER.
22390         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
22391         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
22392         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
22393         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
22394         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
22395         * m4/math_h.m4 (gl_MATH_H): Likewise.
22396         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
22397         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22398         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
22399         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22400         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
22401         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
22402         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
22403         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22404         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
22405         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
22406         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
22407         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
22408         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
22409         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22410         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
22411         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
22412         * m4/inttypes.m4 (gl_INTTYPES_H): Define
22413         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
22414         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
22415         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
22416         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
22417         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
22418         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
22419         * lib/float_.h: Likewise.
22420         * lib/inttypes_.h: Likewise.
22421         * lib/math_.h: Likewise.
22422         * lib/search_.h: Likewise.
22423         * lib/signal_.h: Likewise.
22424         * lib/stdint_.h: Likewise.
22425         * lib/stdio_.h: Likewise.
22426         * lib/stdlib_.h: Likewise.
22427         * lib/string_.h: Likewise.
22428         * lib/sys_stat_.h: Likewise.
22429         * lib/sys_time_.h: Likewise.
22430         * lib/time_.h: Likewise.
22431         * lib/unistd_.h: Likewise.
22432         * lib/wchar_.h: Likewise.
22433         * lib/wctype_.h: Likewise.
22434         * lib/dirent_.h: Likewise.
22435         * lib/iconv_.h: Likewise.
22436         * lib/locale_.h: Likewise.
22437         * lib/netinet_in_.h: Likewise.
22438         * lib/sys_select_.h: Likewise.
22439         * lib/sys_socket_.h: Likewise.
22440         * lib/sysexits_.h: Likewise.
22441         * modules/fcntl (Depends-on): Depend on include_next, not
22442         absolute_header.
22443         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
22444         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
22445         * modules/fchdir: Likewise.
22446         * modules/float: Likewise.
22447         * modules/iconv_open: Likewise.
22448         * modules/inttypes: Likewise.
22449         * modules/locale: Likewise.
22450         * modules/math: Likewise.
22451         * modules/netinet_in: Likewise.
22452         * modules/search: Likewise.
22453         * modules/signal: Likewise.
22454         * modules/stdint: Likewise.
22455         * modules/stdio: Likewise.
22456         * modules/stdlib: Likewise.
22457         * modules/string: Likewise.
22458         * modules/sys_select: Likewise.
22459         * modules/sys_socket: Likewise.
22460         * modules/sys_stat: Likewise.
22461         * modules/sys_time: Likewise.
22462         * modules/sysexits: Likewise.
22463         * modules/time: Likewise.
22464         * modules/unistd: Likewise.
22465         * modules/wchar: Likewise.
22466         * modules/wctype: Likewise.
22467         * modules/sys_stat: Change maintainer to "all".
22468         * modules/unistd: Likewise.
22469
22470 2007-06-20  Karl Berry  <karl@gnu.org>
22471
22472         * config/srclist.txt: track www changes in license files.
22473
22474 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
22475
22476         * build-aux/bootstrap: Remove stray dot.
22477         Make sure build_aux settings are honored when linking
22478         gnulib_extra_files.
22479
22480 2007-06-19  Eric Blake  <ebb9@byu.net>
22481
22482         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
22483         Allow compilation on cygwin.
22484
22485 2007-06-19  Jim Meyering  <jim@meyering.net>
22486
22487         xreadlink-with-size: Remove module.  No longer used.
22488         Ex-callers now use xreadlink or mreadlink-with-size.
22489         * modules/xreadlink-with-size: Remove module.
22490         * lib/xreadlink-with-size.c: Remove file.
22491         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
22492         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
22493         just before the function definition *is* accurate.
22494
22495         Eliminate one way canonicalize_filename_mode could exit.
22496         * lib/canonicalize.c (canonicalize_filename_mode):
22497         Use mreadlink_with_size, not xreadlink_with_size.
22498
22499 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
22500
22501         Detect porting problems to FreeBSD/arm, which has time_t wider than
22502         long int.  Original problem reported for GNU diff by Xin Li in
22503         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
22504         * modules/getdate (Depends-on): Add intprops, verify.
22505         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
22506         is an integer type no wider than long int.
22507
22508 2007-06-18  Jim Meyering  <jim@meyering.net>
22509
22510         New module: mreadlink-with-size.
22511         * MODULES.html.sh: Add mreadlink-with-size.
22512         * modules/mreadlink-with-size: New module
22513         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
22514         not xreadlink-with-size.
22515         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
22516
22517 2007-06-16  Bruno Haible  <bruno@clisp.org>
22518
22519         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
22520         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
22521         Reported by Gary V. Vaughan <gary@gnu.org>.
22522
22523 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
22524
22525         Revamp lchown so that it lives in unistd.h where it belongs.
22526         * lib/lchown.h: Remove.
22527         * lib/dirchownmod.c: Don't include lib/lchown.h.
22528         * lib/fchownat.c: Likewise.
22529         * lib/openat.c: Likewise.
22530         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
22531         does not follow symlinks.
22532         (EOPNOTSUPP): Define if not defined.
22533         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
22534         is defined to 0.
22535         (lchown): New decl.
22536         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
22537         Do not check for lchown decl.
22538         Set REPLACE_LCHOWN.
22539         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
22540         REPLACE_LCHOWN.
22541         * modules/chown: Make it clear it follows symlinks.
22542         * modules/lchown: Make it clear it doesn't follow symlinks.
22543         (Files): Remove lib/lchown.h
22544         (Depends-on): Add unistd.
22545         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
22546         (Include): Include <unistd.h>, not "lchown.h".
22547         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
22548         REPLACE_LCHOWN.
22549
22550 2007-06-15  Jim Meyering  <jim@meyering.net>
22551
22552         Change license (GPL to LGPL) of fsusage and dependents.
22553         * modules/fsusage (License): Change to LGPL.
22554         * modules/full-read (License): Likewise.
22555         * modules/full-write (License): Likewise.
22556         * modules/safe-read (License): Likewise.
22557         * modules/safe-write (License): Likewise.
22558
22559 2007-06-14  Ben Pfaff  <blp@gnu.org>
22560
22561         Missing part of allocsa -> malloca transition.
22562         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
22563         gl_MALLOCA.
22564
22565 2007-06-12  Bruno Haible  <bruno@clisp.org>
22566
22567         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
22568         to ia64, x86_64, i386.
22569         Reported by Eric Blake.
22570
22571 2007-06-12  Bruno Haible  <bruno@clisp.org>
22572
22573         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
22574         cross-compiling to x86_64.
22575
22576 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
22577
22578         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
22579         glitch reported by Ralf Wildenhues in
22580         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
22581
22582         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
22583         Vin Shelton.
22584
22585 2007-06-11  Bruno Haible  <bruno@clisp.org>
22586
22587         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
22588         replacement string.
22589         Reported by Eric Blake.
22590
22591 2007-06-10  Bruno Haible  <bruno@clisp.org>
22592
22593         Prepare vasnprintf code for use with Unicode strings.
22594         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
22595         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
22596         TYPE_U32_STRING.
22597         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
22598         a_u32_string variants.
22599         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
22600         * lib/printf-args.c: Don't include config.h and the specification
22601         header if PRINTF_FETCHARGS is already defined.
22602         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
22603         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
22604         TYPE_U16_STRING, TYPE_U32_STRING.
22605         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
22606         u16_directive, u16_directives, u32_directive, u32_directives): New
22607         types.
22608         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
22609         New declarations.
22610         * lib/printf-parse.c: Don't include config.h and the specification
22611         header if PRINTF_PARSE is already defined. Eliminate the set of
22612         parameters for WIDE_CHAR_VERSION; the user of this file must provide
22613         them now. Include c-ctype.h.
22614         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
22615         directive and CHAR_T_ONLY_ASCII.
22616         * lib/vasnprintf.c: Don't include config.h and the specification header
22617         if VASNPRINTF is already defined.
22618         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
22619         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
22620         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
22621         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
22622         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
22623         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
22624         code accordingly.
22625         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
22626         pad_ourselves also in this case, with the 'c' and 's' directives, and
22627         with a different notion of "width".
22628         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
22629
22630 2007-06-10  Bruno Haible  <bruno@clisp.org>
22631
22632         * modules/unistr/u32-mbsnlen: New file.
22633         * lib/unistr/u32-mbsnlen.c: New file.
22634
22635         * modules/unistr/u16-mbsnlen: New file.
22636         * lib/unistr/u16-mbsnlen.c: New file.
22637
22638         * modules/unistr/u8-mbsnlen: New file.
22639         * lib/unistr/u8-mbsnlen.c: New file.
22640
22641         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
22642         declarations.
22643
22644 2007-06-10  Bruno Haible  <bruno@clisp.org>
22645
22646         * lib/string_.h (mbsnlen): New declaration.
22647         * lib/mbsnlen.c: New file.
22648         * m4/mbsnlen.m4: New file.
22649         * modules/mbsnlen: New file.
22650         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
22651         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
22652         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
22653
22654 2007-06-10  Bruno Haible  <bruno@clisp.org>
22655
22656         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
22657
22658 2007-06-10  Bruno Haible  <bruno@clisp.org>
22659
22660         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
22661         * lib/mbuiter.h: Likewise.
22662
22663 2007-06-10  Bruno Haible  <bruno@clisp.org>
22664
22665         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
22666         declaration.
22667
22668 2007-06-10  Karl Berry  <karl@gnu.org>
22669
22670         * config/srclist.txt: remove gettext entries, Bruno prefers
22671         to update individually.
22672
22673 2007-06-10  Bruno Haible  <bruno@clisp.org>
22674
22675         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
22676         'maxlen'. Ensure only length + width bytes are allocated, not
22677         length + 1 + width.
22678
22679 2007-06-09  Bruno Haible  <bruno@clisp.org>
22680
22681         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
22682         (CHAR_T): Remove macro.
22683         (VASNPRINTF): Update.
22684
22685 2007-06-09  Bruno Haible  <bruno@clisp.org>
22686
22687         * MODULES.html.sh (Unicode string functions): Add the new modules.
22688
22689         * modules/uniconv/u32-conv-to-enc: New file.
22690         * lib/uniconv/u32-conv-to-enc.c: New file.
22691         * modules/uniconv/u32-conv-to-enc-tests: New file.
22692         * tests/uniconv/test-u32-conv-to-enc.c: New file.
22693
22694         * modules/uniconv/u16-conv-to-enc: New file.
22695         * lib/uniconv/u16-conv-to-enc.c: New file.
22696         * lib/uniconv/u-conv-to-enc.h: New file.
22697         * modules/uniconv/u16-conv-to-enc-tests: New file.
22698         * tests/uniconv/test-u16-conv-to-enc.c: New file.
22699
22700         * modules/uniconv/u8-conv-to-enc: New file.
22701         * lib/uniconv/u8-conv-to-enc.c: New file.
22702         * modules/uniconv/u8-conv-to-enc-tests: New file.
22703         * tests/uniconv/test-u8-conv-to-enc.c: New file.
22704
22705         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
22706         u32_conv_to_encoding): New declarations.
22707
22708 2007-06-09  Bruno Haible  <bruno@clisp.org>
22709
22710         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
22711
22712 2007-06-09  Bruno Haible  <bruno@clisp.org>
22713
22714         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
22715         * modules/malloca: Renamed from modules/allocsa, updated.
22716         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
22717         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
22718         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
22719         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
22720         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
22721         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
22722         * modules/xmalloca: Renamed from modules/xallocsa, updated.
22723         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
22724         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
22725         * modules/c-strcasestr (Depends-on): Update.
22726         * lib/c-strcasestr.c: Update.
22727         * modules/c-strstr (Depends-on): Update.
22728         * lib/c-strstr.c: Update.
22729         * modules/canonicalize-lgpl (Depends-on): Update.
22730         * lib/canonicalize-lgpl.c: Update.
22731         * modules/clean-temp (Depends-on): Update.
22732         * lib/clean-temp.c: Update.
22733         * modules/csharpcomp (Depends-on): Update.
22734         * lib/csharpcomp.c: Update.
22735         * modules/csharpexec (Depends-on): Update.
22736         * lib/csharpexec.c: Update.
22737         * modules/javacomp (Depends-on): Update.
22738         * lib/javacomp.c: Update.
22739         * modules/javaexec (Depends-on): Update.
22740         * lib/javaexec.c: Update.
22741         * modules/mbscasestr (Depends-on): Update.
22742         * lib/mbscasestr.c: Update.
22743         * modules/mbsstr (Depends-on): Update.
22744         * lib/mbsstr.c: Update.
22745         * modules/setenv (Depends-on): Update.
22746         * lib/setenv.c: Update.
22747         * modules/strcasestr (Depends-on): Update.
22748         * lib/strcasestr.c: Update.
22749         * modules/striconveha (Depends-on): Update.
22750         * lib/striconveha.c: Update.
22751         * modules/relocatable-prog-wrapper (Files): Update.
22752         * lib/relocwrapper.c: Update.
22753         * build-aux/install-reloc: Update.
22754         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
22755
22756 2007-06-08  Bruno Haible  <bruno@clisp.org>
22757
22758         Port to uClibc.
22759         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
22760         * lib/fpurge.c (fpurge): Likewise.
22761         * lib/freading.c (freading): Likewise.
22762         * lib/fseeko.c (rpl_fseeko): Likewise.
22763         * lib/fseterr.c (fseterr): Likewise.
22764         * lib/fwriting.c (fwriting): Likewise.
22765         * tests/test-fflush.c (main): Avoid a failure on uClibc.
22766
22767 2007-06-08  Bruno Haible  <bruno@clisp.org>
22768
22769         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
22770         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
22771         * modules/gettext (Files): Add m4/intlmacosx.m4.
22772
22773 2007-06-07  Bruno Haible  <bruno@clisp.org>
22774
22775         * modules/localename-tests: New file.
22776         * tests/test-localename.c: New file.
22777
22778         New module 'localename'.
22779         * lib/localename.h: New file.
22780         * lib/localename.c: New file, from GNU gettext.
22781         * m4/localename.m4: New file.
22782         * modules/localename: New file.
22783
22784 2007-06-07  Bruno Haible  <bruno@clisp.org>
22785
22786         Work around the lack of <wchar.h> on some builds of uClibc.
22787         * doc/headers/wchar.texi: Update.
22788         * lib/wchar_.h: Include <wchar.h> only if it exists.
22789         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
22790         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
22791         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
22792         doesn't exist.
22793         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
22794         * modules/mbfile (Depends-on): Add wchar.
22795         * modules/mbiter (Depends-on): Likewise.
22796         * modules/mbuiter (Depends-on): Likewise.
22797         Reported by Simon Josefsson.
22798
22799 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
22800
22801         Work around problem reported by Steven M. Schweda in
22802         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
22803         Tru64 5.1B with the Compaq compiler environment installed declares
22804         an 'isblank' function but does not define it in the C library.
22805         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
22806         * lib/regex_internal.h (isblank): Likewise.
22807         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
22808         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
22809
22810 2007-06-05  Bruno Haible  <bruno@clisp.org>
22811
22812         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
22813         ia64.
22814         * modules/printf-safe: New file.
22815         * modules/fprintf-posix (Depends-on): Add printf-safe.
22816         * modules/printf-posix (Depends-on): Likewise.
22817         * modules/snprintf-posix (Depends-on): Likewise.
22818         * modules/sprintf-posix (Depends-on): Likewise.
22819         * modules/vasnprintf-posix (Depends-on): Likewise.
22820         * modules/vasprintf-posix (Depends-on): Likewise.
22821         * modules/vfprintf-posix (Depends-on): Likewise.
22822         * modules/vprintf-posix (Depends-on): Likewise.
22823         * modules/vsnprintf-posix (Depends-on): Likewise.
22824         * modules/vsprintf-posix (Depends-on): Likewise.
22825         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
22826         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
22827         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
22828         "no" on i386, x86_64, ia64.
22829         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
22830         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
22831         on i386, x86_64, ia64.
22832         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
22833         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
22834         on i386, x86_64, ia64.
22835         * tests/test-vasnprintf-posix.c: Include float.h.
22836         (LDBL80_WORDS): New macro.
22837         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
22838         on i386, x86_64, ia64.
22839         * tests/test-vasprintf-posix.c: Include float.h.
22840         (LDBL80_WORDS): New macro.
22841         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
22842         on i386, x86_64, ia64.
22843         * tests/test-snprintf-posix.c: Include float.h.
22844         * tests/test-sprintf-posix.c: Likewise.
22845         * tests/test-vsnprintf-posix.c: Likewise.
22846         * tests/test-vsprintf-posix.c: Likewise.
22847
22848 2007-06-05  Bruno Haible  <bruno@clisp.org>
22849
22850         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
22851         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
22852         non-IEEE numbers on i386, x86_64, ia64.
22853         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
22854         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
22855         * tests/test-isnanl.h: Include float.h.
22856         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
22857
22858 2007-06-05  Bruno Haible  <bruno@clisp.org>
22859
22860         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
22861         also the %a / %A. Handle the %a / %A code before this extra handling.
22862
22863 2007-06-05  Bruno Haible  <bruno@clisp.org>
22864
22865         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
22866         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
22867
22868 2007-06-05  Bruno Haible  <bruno@clisp.org>
22869
22870         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
22871         typo in variable name.
22872
22873 2007-06-05  Eric Blake  <ebb9@byu.net>
22874
22875         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
22876         Reported by Simon Josefsson.
22877
22878 2007-06-04  Bruno Haible  <bruno@clisp.org>
22879
22880         Avoid test failures on some PowerPC platforms.
22881         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
22882         Define differently for PowerPC.
22883         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
22884         Reported by Gary V. Vaughan <gary@gnu.org>.
22885
22886 2007-06-02  Bruno Haible  <bruno@clisp.org>
22887
22888         Fix test-stdint failure on FreeBSD/ia64.
22889         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
22890         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
22891         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
22892         * doc/headers/stdint.texi: Update.
22893
22894 2007-06-01  Bruno Haible  <bruno@clisp.org>
22895
22896         * tests/test-binary-io.c (main): Pass a third argument to open().
22897         Reported by Gary V. Vaughan <gary@gnu.org>.
22898
22899 2007-06-01  Bruno Haible  <bruno@clisp.org>
22900
22901         * doc/functions/frexpl.texi: Update for mingw.
22902
22903 2007-06-01  Bruno Haible  <bruno@clisp.org>
22904
22905         * tests/test-lseek.c (main): Disable test of errno for invalid third
22906         argument.
22907         * doc/functions/lseek.texi: Update.
22908         Reported by Gary V. Vaughan <gary@gnu.org>.
22909
22910 2007-05-28  Bruno Haible  <bruno@clisp.org>
22911
22912         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
22913
22914 2007-05-31  Eric Blake  <ebb9@byu.net>
22915
22916         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
22917         cross compiling.
22918
22919 2007-05-30  Eric Blake  <ebb9@byu.net>
22920         and Bruno Haible  <bruno@clisp.org>
22921
22922         Work around mingw test failures exposed by m4-1.4.9b.
22923         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
22924         * tests/test-unistd.c: Disable uid_t and git_t tests for the
22925         moment.
22926
22927 2007-05-30  Bruno Haible  <bruno@clisp.org>
22928
22929         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
22930         assuming that they are closed. Needed on HP-UX 11.
22931
22932 2007-05-29  Bruno Haible  <bruno@clisp.org>
22933
22934         Fix a problem with #include_next.
22935         * lib/dirent_.h: Split the double-inclusion guard.
22936         * lib/fcntl_.h: Likewise.
22937         * lib/float_.h: Likewise.
22938         * lib/iconv_.h: Likewise.
22939         * lib/inttypes_.h: Likewise.
22940         * lib/locale_.h: Likewise.
22941         * lib/math_.h: Likewise.
22942         * lib/netinet_in_.h: Likewise.
22943         * lib/search_.h: Likewise.
22944         * lib/signal_.h: Likewise.
22945         * lib/stdint_.h: Likewise.
22946         * lib/stdio_.h: Likewise.
22947         * lib/stdlib_.h: Likewise.
22948         * lib/string_.h: Likewise.
22949         * lib/sys_select_.h: Likewise.
22950         * lib/sys_socket_.h: Likewise.
22951         * lib/sys_stat_.h: Likewise.
22952         * lib/sys_time_.h: Likewise.
22953         * lib/sysexits_.h: Likewise.
22954         * lib/time_.h: Likewise.
22955         * lib/unistd_.h: Likewise.
22956         * lib/wchar_.h: Likewise.
22957         * lib/wctype_.h: Likewise.
22958
22959 2007-05-29  Bruno Haible  <bruno@clisp.org>
22960
22961         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
22962         for the moment.
22963
22964 2007-05-29  Bruno Haible  <bruno@clisp.org>
22965
22966         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
22967         invocation.
22968         Reported by Eric Blake.
22969
22970 2007-05-29  Bruno Haible  <bruno@clisp.org>
22971
22972         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
22973         compiling case.
22974
22975 2007-05-29  Eric Blake  <ebb9@byu.net>
22976             Bruno Haible  <bruno@clisp.org>
22977
22978         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
22979         cross compiles.
22980
22981 2007-05-28  Eric Blake  <ebb9@byu.net>
22982
22983         * modules/closein-tests (test_closein_LDADD): Support test on
22984         cygwin with libtool.
22985
22986 2007-05-28  Bruno Haible  <bruno@clisp.org>
22987
22988         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
22989         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
22990         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
22991         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
22992         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
22993         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
22994         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
22995         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
22996         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
22997
22998 2007-05-28  Eric Blake  <ebb9@byu.net>
22999
23000         Unconditionally include <config.h> in unit tests.
23001         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
23002         * tests/test-allocsa.c, tests/test-arcfour.c,
23003         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
23004         tests/test-array_list.c, tests/test-array_oset.c,
23005         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
23006         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
23007         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
23008         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
23009         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
23010         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
23011         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
23012         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
23013         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
23014         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
23015         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
23016         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
23017         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
23018         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
23019         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
23020         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
23021         test-md5.c, test-memmem.c, test-printf-posix.c,
23022         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
23023         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
23024         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
23025         test-strcasestr.c, test-striconv.c, test-striconveh.c,
23026         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
23027         test-vasnprintf-posix2.c, test-vasnprintf.c,
23028         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
23029         test-vfprintf-posix.c, test-vprintf-posix.c,
23030         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
23031         test-xvasprintf.c: Likewise.
23032
23033 2007-05-28  Bruno Haible  <bruno@clisp.org>
23034
23035         * gnulib-tool (func_import): Remember the --with-tests command-line
23036         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
23037         Reported by Eric Blake.
23038
23039 2007-05-28  Bruno Haible  <bruno@clisp.org>
23040
23041         * modules/ftell-tests: New file.
23042         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
23043         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
23044
23045         * lib/ftell.c: New file.
23046         * modules/ftell: New file.
23047         * m4/ftell.m4: New file.
23048         * doc/functions/ftell.texi: Update.
23049         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
23050         REPLACE_FTELL.
23051         * lib/stdio_.h (rpl_ftell): New declaration.
23052         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
23053         REPLACE_FTELL.
23054
23055 2007-05-28  Eric Blake  <ebb9@byu.net>
23056
23057         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
23058
23059 2007-05-28  Bruno Haible  <bruno@clisp.org>
23060
23061         * modules/fseek-tests: New file.
23062         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
23063         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
23064
23065         * lib/fseek.c: New file.
23066         * modules/fseek: New file.
23067         * m4/fseek.m4: New file.
23068         * doc/functions/fseek.texi: Update.
23069         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
23070         REPLACE_FSEEK.
23071         * lib/stdio_.h (rpl_fseek): New declaration.
23072         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
23073         REPLACE_FSEEK.
23074
23075 2007-05-28  Bruno Haible  <bruno@clisp.org>
23076
23077         * lib/stdio_.h (fflush): More comments.
23078
23079 2007-05-28  Bruno Haible  <bruno@clisp.org>
23080
23081         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
23082         runtime test.
23083
23084 2007-05-28  Eric Blake  <ebb9@byu.net>
23085
23086         Improve lseek module.
23087         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
23088         * lib/unistd_.h (lseek): Scale back link warning message.
23089         * tests/test-lseek.c: Beef up test.
23090         * tests/test-lseek.sh: Exercise more facets of lseek.
23091         Reported by Bruno Haible.
23092
23093 2007-05-28  Bruno Haible  <bruno@clisp.org>
23094
23095         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
23096         to define.
23097
23098 2007-05-27  Bruno Haible  <bruno@clisp.org>
23099
23100         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
23101
23102 2007-05-27  Bruno Haible  <bruno@clisp.org>
23103
23104         * modules/openmp: New file.
23105         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
23106         Noah Misch.
23107
23108 2007-05-26  Bruno Haible  <bruno@clisp.org>
23109
23110         * modules/chdir-long (Depends-on): Add fchdir.
23111         * modules/chdir-safer (Depends-on): Likewise.
23112         * modules/fts (Depends-on): Likewise.
23113         * modules/fts-lgpl (Depends-on): Likewise.
23114         * modules/openat (Depends-on): Likewise.
23115         * modules/savewd (Depends-on): Likewise.
23116
23117 2007-05-24  Eric Blake  <ebb9@byu.net>
23118
23119         Fix lseek on mingw.
23120         * modules/lseek: New module.
23121         * m4/lseek.m4: New file.
23122         * lib/lseek.c: New file.
23123         * modules/lseek-tests: New file.
23124         * tests/test-lseek.c: New file.
23125         * tests/test-lseek.sh: New file.
23126         * MODULES.html.sh: Document lseek module.
23127         * modules/fflush (Depends-on): Add lseek, fseeko.
23128         * modules/fseeko (Depends-on): Likewise.
23129         * modules/ftello (Depends-on): Likewise.
23130         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
23131         broken.
23132         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
23133         broken.
23134         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
23135         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
23136         * lib/ftello.c (rpl_ftello): Likewise.
23137         * tests/test-fseeko.c (main): Test this.
23138         * tests/test-fseeko.sh: Likewise.
23139         * tests/test-ftello.c (main): Likewise.
23140         * tests/test-ftello.sh: Likewise.
23141         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
23142         implies replacing fseek.
23143         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
23144         HAVE_FTELLO.
23145         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
23146         * modules/unistd (Makefile.am): Likewise.
23147         * lib/unistd_.h (lseek): Declare a replacement.
23148         * doc/functions/lseek.texi (lseek): Document this fix.
23149         * doc/functions/fseek.texi (fseek): Likewise.
23150         * doc/functions/ftell.texi (ftell): Likewise.
23151
23152 2007-05-24  Bruno Haible  <bruno@clisp.org>
23153
23154         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
23155         in the printed representation of a NaN.
23156         * tests/test-vasprintf-posix.c (test_function): Likewise.
23157         * tests/test-snprintf-posix.h (test_function): Likewise.
23158         * tests/test-sprintf-posix.h (test_function): Likewise.
23159         Reported by Eric Blake.
23160
23161 2007-05-23  Eric Blake  <ebb9@byu.net>
23162
23163         Fix fseeko/ftello on cygwin 1.5.24.
23164         * doc/functions/fseeko.texi (fseeko): Document the fix.
23165         * doc/functions/ftello.texi (ftello): Document the fix.
23166         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
23167         * doc/functions/stdout.text (stdout): New file.
23168         * doc/functions/stderr.text (stderr): New file.
23169         * doc/gnulib.texi (Function Substitutes): Use new files.
23170         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
23171         prior to 1.7.0.
23172         * tests/test-ftello.c (main): Likewise for ftello.
23173         * tests/test-fseeko.sh: New file.
23174         * tests/test-ftello.sh: New file.
23175         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
23176         with seekable stdin.
23177         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
23178         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
23179         (gl_REPLACE_FSEEKO): New macro.
23180         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
23181         * modules/fseeko (Files): Distribute fseeko.c.
23182         * modules/ftello (Files): Distribute ftello.c.
23183         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
23184         mode.
23185         * lib/ftello.c (rpl_ftello): New file.
23186         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
23187         fseeko, ftello.
23188         (gl_STDIN_LARGE_OFFSET): New macro.
23189         * modules/stdio (Makefile.am): Perform the replacement.
23190         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
23191
23192 2007-05-23  Bruno Haible  <bruno@clisp.org>
23193
23194         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
23195         GNULIB_POSIXCHECK is defined.
23196
23197 2007-05-21  Bruno Haible  <bruno@clisp.org>
23198
23199         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
23200         Check also the output for NaN arguments. When cross-compiling, guess
23201         no on IRIX.
23202         * lib/vasnprintf.c: Update comments.
23203         * tests/test-vasnprintf-posix.c (strisnan): New function.
23204         (test_function): Use it.
23205         * tests/test-vasprintf-posix.c (strisnan): New function.
23206         (test_function): Use it.
23207         * tests/test-snprintf-posix.h (strisnan): New function.
23208         (test_function): Use it.
23209         * tests/test-sprintf-posix.h (strisnan): New function.
23210         (test_function): Use it.
23211         Reported by Eric Blake.
23212
23213 2007-05-20  Bruno Haible  <bruno@clisp.org>
23214
23215         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
23216         numbers that fails on BeOS.
23217         * doc/functions/frexpl.texi: Update.
23218
23219 2007-05-20  Jim Meyering  <jim@meyering.net>
23220
23221         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
23222         forced upon us by glibc-2.6.
23223
23224 2007-05-20  Bruno Haible  <bruno@clisp.org>
23225
23226         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
23227         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
23228         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
23229         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
23230         NEED_PRINTF_INFINITE.
23231         (is_infinitel): New function.
23232         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
23233         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
23234         gl_PREREQ_VASNPRINTF_INFINITE.
23235         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
23236         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23237         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
23238         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
23239         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
23240         gl_PREREQ_VASNPRINTF_INFINITE.
23241         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23242         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23243         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23244         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23245         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23246         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23247         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23248         * doc/functions/fprintf.texi: Update.
23249         * doc/functions/printf.texi: Update.
23250         * doc/functions/snprintf.texi: Update.
23251         * doc/functions/sprintf.texi: Update.
23252         * doc/functions/vfprintf.texi: Update.
23253         * doc/functions/vprintf.texi: Update.
23254         * doc/functions/vsnprintf.texi: Update.
23255         * doc/functions/vsprintf.texi: Update.
23256
23257 2007-05-20  Bruno Haible  <bruno@clisp.org>
23258
23259         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
23260         was not found in libc.
23261         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
23262
23263 2007-05-20  Bruno Haible  <bruno@clisp.org>
23264
23265         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
23266         printed as "-nan" instead of "nan".
23267         * tests/test-vasprintf-posix.c (test_function): Likewise.
23268         * tests/test-snprintf-posix.h (test_function): Likewise.
23269         * tests/test-sprintf-posix.h (test_function): Likewise.
23270         Needed for HP-UX 11.
23271
23272 2007-05-20  Jim Meyering  <jim@meyering.net>
23273
23274         Fix buggy test for the fchownat-deref bug.
23275         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
23276         symlink required for the run-test.  Without it, this test would
23277         always declare that fchownat doesn't work, and client code would
23278         unnecessarily use the replacement function with fixed libc.
23279         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
23280         Reported by Greg Schafer.
23281
23282 2007-05-19  Bruno Haible  <bruno@clisp.org>
23283
23284         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
23285         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
23286         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
23287         Needed for IRIX 6.5 and Solaris 2.5.1.
23288
23289 2007-05-19  Bruno Haible  <bruno@clisp.org>
23290
23291         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
23292         (test_function): Skip tests involving -0.0 on platforms where
23293         -0.0 = 0.0.
23294         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
23295         (test_function): Skip tests involving -0.0 on platforms where
23296         -0.0 = 0.0.
23297         * tests/test-snprintf-posix.h (have_minus_zero): New function.
23298         (test_function): Skip tests involving -0.0 on platforms where
23299         -0.0 = 0.0.
23300         * tests/test-sprintf-posix.h (have_minus_zero): New function.
23301         (test_function): Skip tests involving -0.0 on platforms where
23302         -0.0 = 0.0.
23303         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
23304         tests.
23305         * tests/test-printf-posix.h (test_function): Likewise.
23306         * tests/test-printf-posix.output: Remove all -0.0 related results.
23307         Needed for IRIX 6.5.
23308
23309 2007-05-19  Bruno Haible  <bruno@clisp.org>
23310
23311         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
23312         printed as "nan0x7fffffff" instead of "nan".
23313         * tests/test-vasprintf-posix.c (test_function): Likewise.
23314         * tests/test-snprintf-posix.h (test_function): Likewise.
23315         * tests/test-sprintf-posix.h (test_function): Likewise.
23316         * tests/test-fprintf-posix.h (NaN): Remove macro.
23317         (test_function): Remove all NaN related tests.
23318         * tests/test-printf-posix.h (NaN): Remove macro.
23319         (test_function): Remove all NaN related tests.
23320         * tests/test-printf-posix.output: Remove all NaN related results.
23321         Needed for IRIX 6.5.
23322
23323 2007-05-19  Bruno Haible  <bruno@clisp.org>
23324
23325         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
23326         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
23327
23328 2007-05-19  Bruno Haible  <bruno@clisp.org>
23329
23330         * lib/float_.h: New file.
23331         * m4/float_h.m4: New file.
23332         * modules/float: New file.
23333         * modules/isnanl (Dependencies): Add float.
23334         * modules/isnanl-nolibm (Dependencies): Likewise.
23335         * modules/mathl (Dependencies): Likewise.
23336         * modules/printf-frexpl (Dependencies): Likewise.
23337         * modules/signbit (Dependencies): Likewise.
23338         * modules/vasnprintf (Dependencies): Likewise.
23339         * doc/headers/float.texi: Update.
23340
23341 2007-05-19  Jim Meyering  <jim@meyering.net>
23342
23343         * lib/utimens.c (gl_futimens): Rename from futimens,
23344         now that glibc-2.6 declares futimens.
23345         * lib/utimens.h: Likewise.
23346
23347 2007-05-19  Bruno Haible  <bruno@clisp.org>
23348
23349         Avoid test failures on mingw.
23350         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
23351         * tests/test-printf-posix.sh: Likewise.
23352         * tests/test-vfprintf-posix.sh: Likewise.
23353         * tests/test-vprintf-posix.sh: Likewise.
23354
23355 2007-05-19  Bruno Haible  <bruno@clisp.org>
23356
23357         Fix *printf result for NaN, Inf, -0.0 on mingw.
23358         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
23359         * lib/vasnprintf.c: Include math.h and isnan.h.
23360         (is_infinite_or_zero): New function.
23361         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
23362         values in the %f, %F, %e, %E, %g, %G directives.
23363         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
23364         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23365         gl_PRINTF_INFINITE and test its result. Invoke
23366         gl_PREREQ_VASNPRINTF_INFINITE.
23367         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23368         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23369         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23370         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23371         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23372         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23373         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23374         * doc/functions/fprintf.texi: Update.
23375         * doc/functions/printf.texi: Update.
23376         * doc/functions/snprintf.texi: Update.
23377         * doc/functions/sprintf.texi: Update.
23378         * doc/functions/vfprintf.texi: Update.
23379         * doc/functions/vprintf.texi: Update.
23380         * doc/functions/vsnprintf.texi: Update.
23381         * doc/functions/vsprintf.texi: Update.
23382
23383 2007-05-19  Bruno Haible  <bruno@clisp.org>
23384
23385         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
23386         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
23387         Instead of multiplying with 10^k, set extra_zeroes to k.
23388         (scale10_round_long_double): Remove function.
23389
23390 2007-05-18  Bruno Haible  <bruno@clisp.org>
23391
23392         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
23393         introduced on 2007-05-06.
23394
23395 2007-05-18  Bruno Haible  <bruno@clisp.org>
23396
23397         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
23398         %g directives.
23399         * tests/test-vasprintf-posix.c (test_function): Likewise.
23400         * tests/test-snprintf-posix.h (test_function): Likewise.
23401         * tests/test-sprintf-posix.h (test_function): Likewise.
23402
23403 2007-05-18  Bruno Haible  <bruno@clisp.org>
23404
23405         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
23406         (strmatch): New function.
23407         (test_function): Test the %f directive on numbers of various exponents.
23408         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
23409         (strmatch): New function.
23410         (test_function): Test the %f directive on numbers of various exponents.
23411         * tests/test-snprintf-posix.h (strmatch): New function.
23412         (test_function): Test the %f directive on numbers of various exponents.
23413         * tests/test-sprintf-posix.h (strmatch): New function.
23414         (test_function): Test the %f directive on numbers of various exponents.
23415         * tests/test-snprintf-posix.c (SIZEOF): New macro.
23416         * tests/test-sprintf-posix.c (SIZEOF): New macro.
23417         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
23418         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
23419
23420 2007-05-18  Bruno Haible  <bruno@clisp.org>
23421
23422         Add support for 'long double' number output.
23423         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
23424         * lib/vasnprintf.c: Include math.h and float+.h.
23425         (mp_limb_t): New type.
23426         (GMP_LIMB_BITS): New macro.
23427         (mp_twolimb_t): New type.
23428         (GMP_TWOLIMB_BITS): New macro.
23429         (mpn_t): New type.
23430         (multiply, divide, convert_to_decimal, decode_long_double,
23431         scale10_round_long_double, scale10_round_decimal_long_double,
23432         floorlog10l): New functions.
23433         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
23434         for the %f, %F, %e, %E, %g, %G directives.
23435         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
23436         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
23437         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
23438         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
23439         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
23440         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23441         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23442         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23443         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23444         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23445         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23446         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
23447         * modules/snprintf-posix (Depends-on): Likewise.
23448         * modules/sprintf-posix (Depends-on): Likewise.
23449         * modules/vasnprintf-posix (Depends-on): Likewise.
23450         * modules/vasprintf-posix (Depends-on): Likewise.
23451         * modules/vfprintf-posix (Depends-on): Likewise.
23452         * modules/vsnprintf-posix (Depends-on): Likewise.
23453         * modules/vsprintf-posix (Depends-on): Likewise.
23454         * modules/vasnprintf (Files): Add lib/float+.h.
23455         * doc/functions/fprintf.texi: Update.
23456         * doc/functions/printf.texi: Update.
23457         * doc/functions/snprintf.texi: Update.
23458         * doc/functions/sprintf.texi: Update.
23459         * doc/functions/vfprintf.texi: Update.
23460         * doc/functions/vprintf.texi: Update.
23461         * doc/functions/vsnprintf.texi: Update.
23462         * doc/functions/vsprintf.texi: Update.
23463
23464 2007-05-18  Bruno Haible  <bruno@clisp.org>
23465
23466         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
23467
23468 2007-05-18  Bruno Haible  <bruno@clisp.org>
23469
23470         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
23471         for printing 64-bit integers. Needed for mingw.
23472
23473 2007-05-18  Bruno Haible  <bruno@clisp.org>
23474
23475         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
23476         gl_FUNC_FREXPL_WORKS.
23477         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
23478
23479 2007-05-18  Bruno Haible  <bruno@clisp.org>
23480
23481         * modules/frexpl-nolibm-tests: New file.
23482
23483         * modules/frexpl-nolibm: New file.
23484         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
23485
23486 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
23487
23488         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
23489         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
23490         GCC 4.2, which otherwise issues a lot of warnings.
23491         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
23492         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
23493         Likewise.
23494         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
23495         * modules/iconv_open (iconv.h): Likewise.
23496         * modules/locale (locale.h): Likewise.
23497         * modules/netinet_in (netinet/in.h): Likewise.
23498         * modules/sys_select (sys_select.h): Likewise.
23499         * modules/sys_socket (sys/socket.h): Likewise.
23500         * modules/sys_stat (sys/stat.h): Likewise.
23501         * modules/sysexits (sysexits.h): Likewise.
23502         * modules/unistd (unistd.h): Likewise.
23503
23504 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23505
23506         * modules/closein-tests (Makefile.am): Distribute
23507         `test-closein.sh'.
23508
23509 2007-05-17  Bruno Haible  <bruno@clisp.org>
23510
23511         * tests/test-printf-posix.output: Renamed from
23512         tests/test-fprintf-posix.out.
23513         * modules/fprintf-posix-tests: Update.
23514         * modules/printf-posix-tests: Update.
23515         * modules/vfprintf-posix-tests: Update.
23516         * modules/vprintf-posix-tests: Update.
23517         * tests/test-fprintf-posix.sh: Update.
23518         * tests/test-printf-posix.sh: Update.
23519         * tests/test-vfprintf-posix.sh: Update.
23520         * tests/test-vprintf-posix.sh: Update.
23521         Reported by Ralf Wildenhues.
23522
23523 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
23524
23525         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
23526         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
23527         GCC 4.2, which otherwise issues a lot of warnings.
23528         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
23529         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
23530         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
23531         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
23532         it should no longer be needed.
23533         * lib/string_.h: Likewise.
23534         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
23535         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
23536         * modules/inttypes (inttypes.h): Likewise.
23537         * modules/math (math.h): Likewise.
23538         * modules/search (search.h): Likewise.
23539         * modules/signal (signal.h): Likewise.
23540         * modules/stdint (stdint.h): Likewise.
23541         * modules/stdio (stdio.h): Likewise.
23542         * modules/stdlib (stdlib.h): Likewise.
23543         * modules/string (string.h): Likewise.
23544         * modules/sys_time (sys/time.h): Likewise.
23545         * modules/time (time.h): Likewise.
23546         * modules/wchar (wchar.h): Likewise.
23547         * modules/wctype (wtype.h): Likewise.
23548
23549 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
23550
23551         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
23552
23553 2007-05-13  Bruno Haible  <bruno@clisp.org>
23554
23555         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
23556         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23557         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
23558         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
23559         (gl_PREREQ_STRTOK_R): Don't require it here.
23560
23561 2007-05-13  Bruno Haible  <bruno@clisp.org>
23562
23563         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
23564         when used in C++ mode.
23565
23566 2007-05-12  Bruno Haible  <bruno@clisp.org>
23567
23568         * lib/linebuffer.h: Tweak doc.
23569         * lib/linebuffer.c: Likewise.
23570
23571 2007-05-12  James Youngman  <jay@gnu.org>
23572
23573         * lib/linebuffer.c (readlinebuffer_delim): New function,
23574         like readlinebuffer, but use a caller-specified delimiter.
23575         (readlinebuffer): Just call readlinebuffer_delim with '\n'
23576         as the delimiter.
23577         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
23578
23579 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
23580
23581         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
23582         * modules/openat (Files): Remove openat-die.c.
23583         (Depends-on): Add openat-die.
23584         * modules/openat-die: New module.
23585
23586 2007-05-06  Bruno Haible  <bruno@clisp.org>
23587
23588         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
23589         Update with info about Cygwin.
23590         * doc/functions/fprintf.texi: Update.
23591         * doc/functions/printf.texi: Update.
23592         * doc/functions/snprintf.texi: Update.
23593         * doc/functions/sprintf.texi: Update.
23594         * doc/functions/vfprintf.texi: Update.
23595         * doc/functions/vprintf.texi: Update.
23596         * doc/functions/vsnprintf.texi: Update.
23597         * doc/functions/vsprintf.texi: Update.
23598         Reported by Eric Blake.
23599
23600 2007-05-06  Bruno Haible  <bruno@clisp.org>
23601
23602         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
23603         padding ourselves for the floating-point directives.
23604         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
23605         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
23606         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
23607         gl_PRINTF_FLAG_ZERO and test its result. Invoke
23608         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
23609         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23610         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
23611         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23612         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23613         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23614         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23615         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23616         * tests/test-snprintf-posix.h (test_function): Also check the width
23617         and some flags in the %f directive.
23618         * tests/test-sprintf-posix.h (test_function): Likewise.
23619         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23620         * tests/test-vasprintf-posix.c (test_function): Likewise.
23621         * doc/functions/fprintf.texi: Update.
23622         * doc/functions/printf.texi: Update.
23623         * doc/functions/snprintf.texi: Update.
23624         * doc/functions/sprintf.texi: Update.
23625         * doc/functions/vfprintf.texi: Update.
23626         * doc/functions/vprintf.texi: Update.
23627         * doc/functions/vsnprintf.texi: Update.
23628         * doc/functions/vsprintf.texi: Update.
23629
23630 2007-05-06  Bruno Haible  <bruno@clisp.org>
23631
23632         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
23633         pass the ' flag character to sprintf or snprintf.
23634         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
23635         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
23636         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
23637         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
23638         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
23639         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
23640         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
23641         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
23642         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
23643         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
23644         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23645         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
23646         * tests/test-snprintf-posix.h (test_function): Also check the grouping
23647         flag.
23648         * tests/test-sprintf-posix.h (test_function): Likewise.
23649         * tests/test-vasnprintf-posix.c (test_function): Likewise.
23650         * tests/test-vasprintf-posix.c (test_function): Likewise.
23651         * doc/functions/fprintf.texi: Update.
23652         * doc/functions/printf.texi: Update.
23653         * doc/functions/snprintf.texi: Update.
23654         * doc/functions/sprintf.texi: Update.
23655         * doc/functions/vfprintf.texi: Update.
23656         * doc/functions/vprintf.texi: Update.
23657         * doc/functions/vsnprintf.texi: Update.
23658         * doc/functions/vsprintf.texi: Update.
23659
23660 2007-05-01  Bruno Haible  <bruno@clisp.org>
23661
23662         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
23663
23664 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
23665
23666         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
23667         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
23668
23669 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
23670
23671         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
23672         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
23673         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
23674
23675 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
23676
23677         * lib/argp-help.c (struct hol_entry): New member `ord'.
23678         (HOL_ENTRY_PTRCMP): Use ord for comparison
23679         (hol_sort): Initialize ord.
23680
23681 2007-05-01  Bruno Haible  <bruno@clisp.org>
23682
23683         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
23684         Reported by Eric Blake.
23685         * doc/gnulib.texi (Function Substitutes): Update.
23686
23687 2007-05-01  Bruno Haible  <bruno@clisp.org>
23688
23689         * doc/functions.texi: Remove file, now redundant through
23690         doc/functions/*.texi.
23691
23692 2007-05-01  Bruno Haible  <bruno@clisp.org>
23693
23694         * modules/argp (Depends-on): Add sleep.
23695
23696 2007-05-01  Bruno Haible  <bruno@clisp.org>
23697
23698         * modules/sleep-tests: New file.
23699         * tests/test-sleep.c: New file.
23700
23701         * modules/sleep: New file.
23702         * lib/sleep.c: New file.
23703         * m4/sleep.m4: New file.
23704         * lib/unistd_.h (sleep): New declaration.
23705         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
23706         HAVE_SLEEP.
23707         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
23708         * doc/functions/sleep.texi: Document the sleep module.
23709
23710 2007-05-01  Bruno Haible  <bruno@clisp.org>
23711
23712         * lib/sigprocmask.h: Remove file.
23713         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
23714         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
23715         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
23716         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
23717         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
23718         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
23719         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
23720         HAVE_SIGSET_T as a shell variable.
23721         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
23722         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
23723         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
23724         (Depends-on): Add signal. Remove verify.
23725         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
23726         (Include): Mention <signal.h> instead of sigprocmask.h.
23727         * NEWS: Mention the change.
23728         * lib/fatal-signal.c: Don't include sigprocmask.h.
23729
23730 2007-05-01  Bruno Haible  <bruno@clisp.org>
23731
23732         * modules/signal: New file.
23733         * lib/signal_.h: New file.
23734         * m4/signal_h.m4: New file.
23735
23736 2007-05-01  Bruno Haible  <bruno@clisp.org>
23737
23738         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
23739         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
23740         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
23741         HAVE_WCTYPE_CTMP_BUG into wctype.h.
23742
23743 2007-05-01  Bruno Haible  <bruno@clisp.org>
23744
23745         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
23746         configure time.
23747         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
23748         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
23749         * modules/sys_stat (Makefile.am): Substitute their values into
23750         sys/stat.h.
23751
23752 2007-05-01  Bruno Haible  <bruno@clisp.org>
23753
23754         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
23755         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
23756         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
23757
23758 2007-05-01  Bruno Haible  <bruno@clisp.org>
23759
23760         * doc/header/assert.texi: Undo last change: don't mention the gnulib
23761         'assert' module here.
23762
23763 2007-05-01  Bruno Haible  <bruno@clisp.org>
23764
23765         * doc/functions/*.texi: New files.
23766         * doc/functions/google-ranking.txt: New file.
23767         * doc/gnulib.texi (Function Substitutes): New chapter.
23768         (ctime, inet_ntoa): Remove sections.
23769         * doc/ctime.texi: Remove file.
23770         * doc/inet_ntoa.texi: Remove file.
23771         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
23772         dependencies.
23773         (%.info): New rule, specifying a --reference-limit.
23774
23775 2007-05-01  Bruno Haible  <bruno@clisp.org>
23776
23777         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
23778
23779 2007-05-01  Bruno Haible  <bruno@clisp.org>
23780
23781         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
23782         the portability of 'mkdir' to mingw systems.
23783
23784 2007-05-01  Bruno Haible  <bruno@clisp.org>
23785
23786         * doc/headers/google-ranking.txt: New file.
23787
23788 2007-04-30  Eric Blake  <ebb9@byu.net>
23789
23790         Prefer fseeko to fseek.
23791         * modules/getpass (Depends-on): Add fseeko.
23792         * lib/getpass.c (getpass): Use fseeko, not fseek.
23793
23794 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
23795
23796         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
23797         assumes the sorting is stable, while most qsort implementations
23798         are not.  Use argument addresses to ensure they never compare as
23799         equal.
23800
23801         * tests/test-argp-2.sh (usage-indent test): Fix output
23802         (func_compare): Restore diff options
23803         * tests/test-argp.c: Restore #include "progname.h"
23804
23805 2007-04-29  Bruno Haible  <bruno@clisp.org>
23806
23807         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
23808         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
23809         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
23810         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
23811         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
23812         (configure.ac): Define CHECK_SNPRINTF_POSIX.
23813         (TESTS, check_PROGRAMS): Add test-snprintf.
23814         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
23815         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
23816         (TESTS, check_PROGRAMS): Add test-vsnprintf.
23817         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
23818         assertions that fail on HP-UX, OSF/1, or IRIX.
23819         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
23820
23821 2007-04-29  Bruno Haible  <bruno@clisp.org>
23822
23823         * MODULES.html.sh (posix_functions): Remove 'contents'.
23824
23825 2007-04-29  Karl Berry  <karl@gnu.org>
23826
23827         * config/srclist.txt (gendocs_template_min): new entry.
23828
23829 2007-04-29  Bruno Haible  <bruno@clisp.org>
23830
23831         Work around fpurge bug on BSD systems.
23832         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
23833         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
23834         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
23835         fpurge to rpl_fpurge if the system already has this function.
23836         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
23837         the case where the system already has this function. Correct invariants
23838         on BSD systems.
23839         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
23840         BSD systems.
23841
23842 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
23843
23844         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
23845         proposed by Sven Verdoolaege.
23846
23847         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
23848         options.
23849         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
23850         (usage and help tests): Update
23851
23852 2007-04-29  Bruno Haible  <bruno@clisp.org>
23853
23854         * tests/test-fflush.c (main): Use a file of size 17, not 10.
23855         Print more information in case of failure. Disable a test on BeOS.
23856
23857 2007-04-29  Bruno Haible  <bruno@clisp.org>
23858
23859         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
23860         This helps debugging on systems on which no gdb is available.
23861
23862 2007-04-29  Bruno Haible  <bruno@clisp.org>
23863
23864         * lib/freading.h: Improve comments.
23865         * lib/fwriting.h: Likewise.
23866         * tests/test-freading.c (main): Don't check freading immediately after
23867         repositioning. Needed for glibc.
23868
23869 2007-04-29  Bruno Haible  <bruno@clisp.org>
23870
23871         * lib/freading.c (freading): Trivial simplification.
23872
23873 2007-04-28  Bruno Haible  <bruno@clisp.org>
23874
23875         * tests/test-fwriting.c (main): Also test the interaction between
23876         fflush and fwriting.
23877         * modules/fwriting-tests (Depends-on): Add fflush.
23878
23879         * tests/test-freading.c (main): Also test the interaction between
23880         fflush and freading.
23881         * modules/freading-tests (Depends-on): Add fflush.
23882
23883 2007-04-28  Bruno Haible  <bruno@clisp.org>
23884
23885         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
23886         fseeko and ftello.
23887         Suggested by Eric Blake.
23888
23889 2007-04-28  Jim Meyering  <jim@meyering.net>
23890
23891         Avoid false-negative in gl_STDINT_H's C99 conformance test.
23892         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
23893         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
23894
23895 2007-04-27  Eric Blake  <ebb9@byu.net>
23896
23897         * doc/headers/assert.texi (assert.h): Document assert module use.
23898
23899 2007-04-27  Bruno Haible  <bruno@clisp.org>
23900
23901         * doc/headers/*.texi: New files.
23902         * doc/gnulib.texi (Header File Substitutes): New chapter.
23903         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
23904         dependencies.
23905         (standards.info ,standards.html, standards.dvi): Update dependencies.
23906         (mostlyclean, clean): New targets.
23907
23908 2007-04-27  Bruno Haible  <bruno@clisp.org>
23909
23910         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
23911         * modules/sysexits (Files, Makefile.am): Update.
23912
23913         * lib/sys_socket_.h: Renamed from lib/socket_.h.
23914         * modules/sys_socket (Files, Makefile.am): Update.
23915
23916         * lib/sys_stat_.h: Renamed from lib/stat_.h.
23917         * modules/sys_stat (Files, Makefile.am): Update.
23918
23919 2007-04-27  Eric Blake  <ebb9@byu.net>
23920
23921         * lib/freading.h: Improve comments.
23922         * lib/fwriting.h: Likewise.
23923         * lib/fflush.c: Likewise.
23924
23925         Fix closein for mingw.
23926         * modules/closein-tests: Add tests for closein.
23927         * tests/test-closein.c: New file.
23928         * tests/test-closein.sh: Likewise.
23929         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
23930         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
23931
23932 2007-04-27  Bruno Haible  <bruno@clisp.org>
23933
23934         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
23935         version is < 6.
23936         * lib/math_.h [__DECC]: Likewise.
23937         * lib/stdio_.h [__DECC]: Likewise.
23938         * lib/stdlib_.h [__DECC]: Likewise.
23939         * lib/string_.h [__DECC]: Likewise.
23940         * lib/time_.h [__DECC]: Likewise.
23941         * lib/wchar_.h [__DECC]: Likewise.
23942         * lib/wctype_.h [__DECC]: Likewise.
23943
23944 2007-04-27  Bruno Haible  <bruno@clisp.org>
23945
23946         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
23947
23948 2007-04-27  Bruno Haible  <bruno@clisp.org>
23949
23950         * lib/fflush.c: Add comments.
23951         * modules/fpurge-tests (Depends-on): Add fflush.
23952         * modules/freadable-tests (Depends-on): Likewise.
23953         * modules/fwritable-tests (Depends-on): Likewise.
23954
23955 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
23956
23957         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
23958         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
23959         Report by Bruno Haible <bruno@clisp.org>.
23960
23961 2007-04-26  Eric Blake  <ebb9@byu.net>
23962
23963         Fix fflush on mingw.
23964         * modules/fflush (Depends-on): Add freading.
23965         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
23966         but unread data.
23967
23968 2007-04-26  Eric Blake  <ebb9@byu.net>
23969         and Bruno Haible  <bruno@clisp.org>
23970
23971         Implement freading and fwriting.
23972         * lib/freading.c: New file.
23973         * lib/freading.h: Likewise.
23974         * m4/freading.m4: Likewise.
23975         * modules/freading: Likewise.
23976         * modules/freading-tests: Likewise.
23977         * tests/test-freading.c: Likewise.
23978         * lib/fwriting.c: New file.
23979         * lib/fwriting.h: Likewise.
23980         * m4/fwriting.m4: Likewise.
23981         * modules/fwriting: Likewise.
23982         * modules/fwriting-tests: Likewise.
23983         * tests/test-fwriting.c: Likewise.
23984         * MODULES.html.sh (File stream based Input/Output): Mention them.
23985
23986 2007-04-26  Bruno Haible  <bruno@clisp.org>
23987
23988         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
23989         'long' when we assume it.
23990         Suggested by Eric Blake.
23991
23992 2007-04-26  Bruno Haible  <bruno@clisp.org>
23993
23994         Ensure fseeko, ftello are declared on glibc systems.
23995         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
23996         * modules/fseeko (configure.ac-early): Likewise.
23997         * modules/ftello (configure.ac-early): Likewise.
23998         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
23999         AC_FUNC_FSEEKO for this.
24000         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
24001         (gl_CHECK_FSEEKO): Remove macro.
24002
24003 2007-04-26  Bruno Haible  <bruno@clisp.org>
24004
24005         * tests/test-fflush.c (main): Also check the ftell result after
24006         fflush and fseek/fseeko.
24007         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
24008         file descriptor position cache in the stream.
24009         * lib/fseeko.c (rpl_fseeko): Likewise.
24010
24011 2007-04-26  Bruno Haible  <bruno@clisp.org>
24012
24013         * modules/fflush-tests (Depends-on): Add fseeko.
24014
24015 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
24016             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24017
24018         * lib/argz_.h: ensure error_t definition is obtained in same
24019         mechanism system argz.h would have.
24020         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
24021         argz facilities are known bad.  Err on the side of caution if
24022         cross-compiling.
24023
24024 2007-04-25  Eric Blake  <ebb9@byu.net>
24025
24026         * lib/fpurge.c (includes): Use stdlib.h for free.
24027         * tests/test-fflush.c (main): Also test fflush-fseeko.
24028
24029 2007-04-25  Bruno Haible  <bruno@clisp.org>
24030
24031         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
24032         * lib/fseeko.c: New file.
24033         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
24034         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
24035         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
24036         gl_FUNC_FSEEKO.
24037         (gl_FUNC_FSEEKO): Invoke it.
24038         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
24039         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
24040         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
24041
24042 2007-04-25  Bruno Haible  <bruno@clisp.org>
24043
24044         * modules/fflush (Depends-on): Add ftello.
24045
24046 2007-04-25  Bruno Haible  <bruno@clisp.org>
24047
24048         * modules/ftello-tests: New file.
24049         * tests/test-ftello.c: New file.
24050
24051         * modules/ftello: New file.
24052         * m4/ftello.m4: New file.
24053         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
24054         HAVE_FTELLO.
24055         * lib/stdio_.h (ftello): New declaration.
24056         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
24057         HAVE_FTELLO.
24058
24059 2007-04-25  Bruno Haible  <bruno@clisp.org>
24060
24061         * modules/fseeko-tests: New file.
24062         * tests/test-fseeko.c: New file.
24063
24064         * modules/fseeko: New file.
24065         * m4/fseeko.m4: New file.
24066         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
24067         HAVE_FSEEKO.
24068         * lib/stdio_.h (fseeko): New declaration.
24069         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
24070         HAVE_FSEEKO.
24071
24072 2007-04-25  Bruno Haible  <bruno@clisp.org>
24073
24074         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
24075
24076 2007-04-25  Bruno Haible  <bruno@clisp.org>
24077
24078         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
24079         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
24080         * tests/test-unistd.c: Likewise.
24081         * tests/test-fcntl.c: Likewise.
24082
24083 2007-04-23  Eric Blake  <ebb9@byu.net>
24084
24085         * lib/fflush.c: Fix missing include.
24086         Reported by Bruno Haible.
24087
24088 2007-04-23  Bruno Haible  <bruno@clisp.org>
24089
24090         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
24091         Reported by Eric Blake.
24092
24093 2007-04-23  Bruno Haible  <bruno@clisp.org>
24094
24095         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
24096
24097 2007-04-23  Bruno Haible  <bruno@clisp.org>
24098
24099         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
24100
24101 2007-04-23  Bruno Haible  <bruno@clisp.org>
24102
24103         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
24104         Needed on HP-UX 11.
24105
24106 2007-04-16  Eric Blake  <ebb9@byu.net>
24107
24108         Make fflush rely on fpurge.
24109         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
24110         open coding all variants.
24111         * modules/fflush (Depends-on): Add fpurge and unistd.
24112         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
24113         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
24114
24115         Fix --with-tests compilation on cygwin.
24116         * modules/argmatch-tests (Makefile.am): List gnulib library first
24117         in LDADD.
24118         * modules/argp-tests (Makefile.am): Likewise.
24119         * modules/array-list-tests (Makefile.am): Likewise.
24120         * modules/array-oset-tests (Makefile.am): Likewise.
24121         * modules/avltree-list-tests (Makefile.am): Likewise.
24122         * modules/avltree-oset-tests (Makefile.am): Likewise.
24123         * modules/avltreehash-list-tests (Makefile.am): Likewise.
24124         * modules/carray-list-tests (Makefile.am): Likewise.
24125         * modules/dirname-tests (Makefile.am): Likewise.
24126         * modules/frexp-tests (Makefile.am): Likewise.
24127         * modules/isnanl-tests (Makefile.am): Likewise.
24128         * modules/linked-list-tests (Makefile.am): Likewise.
24129         * modules/linkedhash-list-tests (Makefile.am): Likewise.
24130         * modules/lock-tests (Makefile.am): Likewise.
24131         * modules/rbtree-list-tests (Makefile.am): Likewise.
24132         * modules/rbtree-oset-tests (Makefile.am): Likewise.
24133         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
24134         * modules/tls-tests (Makefile.am): Likewise.
24135         * modules/tsearch-tests (Makefile.am): Likewise.
24136         * modules/xvasprintf-tests (Makefile.am): Likewise.
24137
24138         Fix fpurge for cygwin.
24139         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
24140         value.
24141         * modules/fpurge-tests (Depends-on): Clean up trash.
24142
24143 2007-04-16  Simon Josefsson  <simon@josefsson.org>
24144
24145         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
24146
24147         * m4/autobuild.m4: Re-indent.
24148
24149 2007-04-13  Bruno Haible  <bruno@clisp.org>
24150
24151         * modules/fpurge-tests: New file.
24152         * tests/test-fpurge.c: New file.
24153
24154         * modules/fpurge: New file.
24155         * lib/fpurge.h: New file.
24156         * lib/fpurge.c: New file.
24157         * m4/fpurge.m4: New file.
24158
24159 2007-04-13  Bruno Haible  <bruno@clisp.org>
24160
24161         * modules/fbufmode-tests: New file.
24162         * tests/test-fbufmode.c: New file.
24163
24164         * modules/fbufmode: New file.
24165         * lib/fbufmode.h: New file.
24166         * lib/fbufmode.c: New file.
24167         * m4/fbufmode.m4: New file.
24168
24169 2007-04-13  Bruno Haible  <bruno@clisp.org>
24170
24171         * modules/fwritable-tests: New file.
24172         * tests/test-fwritable.c: New file.
24173
24174         * modules/fwritable: New file.
24175         * lib/fwritable.h: New file.
24176         * lib/fwritable.c: New file.
24177         * m4/fwritable.m4: New file.
24178
24179 2007-04-13  Bruno Haible  <bruno@clisp.org>
24180
24181         * modules/freadable-tests: New file.
24182         * tests/test-freadable.c: New file.
24183
24184         * modules/freadable: New file.
24185         * lib/freadable.h: New file.
24186         * lib/freadable.c: New file.
24187         * m4/freadable.m4: New file.
24188
24189 2007-04-13  Bruno Haible  <bruno@clisp.org>
24190
24191         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
24192         MOSTLYCLEANFILES.
24193
24194 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
24195
24196         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
24197         gzip bootstrap.conf to avoid dragging in i18n machinery.
24198         (gnulib_tool_option): Use it.
24199
24200 2007-04-13  Bruno Haible  <bruno@clisp.org>
24201
24202         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
24203         %F directives.
24204         * tests/test-vasprintf-posix.c (test_function): Likewise.
24205         * tests/test-snprintf-posix.h (test_function): Likewise.
24206         * tests/test-sprintf-posix.h (test_function): Likewise.
24207         * tests/test-fprintf-posix.h (test_function): Likewise.
24208         * tests/test-printf-posix.h (test_function): Likewise.
24209         * tests/test-fprintf-posix.out: Likewise.
24210
24211 2007-04-13  Bruno Haible  <bruno@clisp.org>
24212
24213         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
24214         * modules/tls-tests (configure.ac): Likewise.
24215         Reported by Arto C. Nirkko <anirkko@insel.ch>.
24216
24217 2007-04-13  Bruno Haible  <bruno@clisp.org>
24218
24219         * lib/tls.c (glthread_tls_get): Fix return type.
24220         Patch by Arto C. Nirkko <anirkko@insel.ch>.
24221
24222 2007-04-12  Eric Blake  <ebb9@byu.net>
24223
24224         * modules/gettime (Depends-on): Remove gettime.
24225         Reported by Dmitry V. Levin.
24226
24227 2007-04-12  Bruno Haible  <bruno@clisp.org>
24228
24229         * modules/fflush (Include): Mention <stdio.h>.
24230         * modules/strtoimax (Include): Mention <inttypes.h>.
24231         * modules/strtoumax (Include): Likewise.
24232
24233 2007-04-12  Eric Blake  <ebb9@byu.net>
24234
24235         * .cvsignore: New file.
24236         * .gitignore: Likewise.
24237
24238 2007-04-12  Bruno Haible  <bruno@clisp.org>
24239
24240         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
24241         not before, since $(LDADD) often contains libgnu.a.
24242         * modules/striconv-tests (test_striconv_LDADD): Likewise.
24243         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
24244         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
24245         Needed on Cygwin.
24246
24247 2007-04-12  Eric Blake  <ebb9@byu.net>
24248
24249         Work around glibc's failure to flush stdin on fclose.
24250         * lib/closein.c (close_stdin): Flush stdin before closing.
24251
24252         Work around glibc's failure to reset seekable stdin on exit.
24253         * modules/closein: New module.
24254         * lib/closein.c: New file.
24255         * lib/closein.h: Likewise.
24256         * m4/closein.m4: Likewise.
24257         * MODULES.html.sh (File stream based Input/Output): Document it.
24258
24259 2007-04-12  Simon Josefsson  <simon@josefsson.org>
24260
24261         * gnulib-tool: Rename generated 'autobuild' script to
24262         'do-autobuild' in --create-megatestdir output.
24263
24264         * doc/gnulib.texi (Build robot for gnulib): Fix.
24265
24266 2007-04-12  Simon Josefsson  <simon@josefsson.org>
24267
24268         * modules/sysexits (Depends-on): Add absolute-header.
24269
24270 2007-04-12  Eric Blake  <ebb9@byu.net>
24271
24272         No need to preserve errno on success.
24273         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
24274         Reported by Bruno Haible.
24275
24276 2007-04-12  Simon Josefsson  <simon@josefsson.org>
24277
24278         * MODULES.html.sh (Support for maintaining and releasing
24279         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
24280
24281 2007-04-12  Simon Josefsson  <simon@josefsson.org>
24282
24283         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
24284
24285 2007-04-12  Simon Josefsson  <simon@josefsson.org>
24286
24287         * modules/autobuild: New module.
24288
24289         * m4/autobuild.m4: New file.
24290
24291 2007-04-11  Bruno Haible  <bruno@clisp.org>
24292
24293         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
24294         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
24295         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
24296         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
24297         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
24298         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24299         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24300         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
24301         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24302         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24303         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
24304         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24305         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24306         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
24307         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24308         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24309         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
24310         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24311         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24312         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
24313         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24314         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24315         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
24316         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24317         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24318         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
24319         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
24320         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
24321         Reported by Eric Blake.
24322
24323 2007-04-11  Bruno Haible  <bruno@clisp.org>
24324
24325         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
24326
24327 2007-04-10  Bruno Haible  <bruno@clisp.org>
24328
24329         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
24330         for NaN and Infinity. Needed on FreeBSD 6.1.
24331         * tests/test-vasnprintf-posix.c (test_function): Undo last change
24332         regarding results for "%010a" of Infinity and NaN.
24333         * tests/test-vasprintf-posix.c (test_function): Likewise.
24334         * tests/test-snprintf-posix.h (test_function): Likewise.
24335         * tests/test-sprintf-posix.h (test_function): Likewise.
24336         * tests/test-fprintf-posix.h (test_function): Likewise.
24337         * tests/test-printf-posix.h (test_function): Likewise.
24338         * tests/test-fprintf-posix.out: Likewise.
24339
24340 2007-04-10  Bruno Haible  <bruno@clisp.org>
24341
24342         * modules/locale-tests: New file.
24343         * tests/test-locale.c: New file.
24344
24345         * modules/locale: New file.
24346         * lib/locale_.h: New file.
24347         * m4/locale_h.m4: New file.
24348
24349 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
24350             Bruno Haible  <bruno@clisp.org>
24351
24352         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
24353         be determined, test for availability of the copysignf, copysign,
24354         copysignl functions.
24355         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
24356         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
24357         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
24358
24359 2007-04-09  Eric Blake  <ebb9@byu.net>
24360
24361         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
24362         * modules/stdio (Makefile.am): Support fflush.
24363         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
24364         * modules/fflush: New file.
24365         * lib/fflush.c: Likewise.
24366         * m4/fflush.m4: Likewise.
24367         * modules/fflush-tests: New test.
24368         * tests/test-fflush.c: Likewise.
24369         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
24370
24371 2007-04-06  Bruno Haible  <bruno@clisp.org>
24372
24373         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
24374         (VASNPRINTF): Use signbit for faster determination whether to print a
24375         minus sign.
24376         * modules/vasnprintf (Files): Remove lib/float+.h.
24377         * modules/fprintf-posix (Depends-on): Add signbit.
24378         * modules/snprintf-posix (Depends-on): Likewise.
24379         * modules/sprintf-posix (Depends-on): Likewise.
24380         * modules/vasnprintf-posix (Depends-on): Likewise.
24381         * modules/vasprintf-posix (Depends-on): Likewise.
24382         * modules/vfprintf-posix (Depends-on): Likewise.
24383         * modules/vsnprintf-posix (Depends-on): Likewise.
24384         * modules/vsprintf-posix (Depends-on): Likewise.
24385
24386 2007-04-06  Bruno Haible  <bruno@clisp.org>
24387
24388         * tests/test-frexp.c (main): Test also the sign bit of zero results.
24389         * tests/test-frexpl.c (main): Likewise.
24390         * tests/test-ldexpl.c (main): Likewise.
24391         * modules/frexp-tests (Depends-on): Add signbit.
24392         * modules/frexpl-tests (Depdends-on): Likewise.
24393         * modules/ldexpl-tests (Depdends-on): Likewise.
24394
24395 2007-04-06  Bruno Haible  <bruno@clisp.org>
24396
24397         * modules/signbit-tests: New file.
24398         * tests/test-signbit.c: New file.
24399
24400         * modules/signbit: New file.
24401         * lib/signbitf.c: New file.
24402         * lib/signbitd.c: New file.
24403         * lib/signbitl.c: New file.
24404         * m4/signbit.m4: New file.
24405         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
24406         (signbit): New macro.
24407         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
24408         REPLACE_SIGNBIT.
24409         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
24410         REPLACE_FREXPL into math.h.
24411
24412 2007-04-06  Bruno Haible  <bruno@clisp.org>
24413
24414         * modules/isnanf-nolibm-tests: New file.
24415         * tests/test-isnanf.c: New file.
24416
24417         * modules/isnanf-nolibm: New file.
24418         * lib/isnanf.h: New file.
24419         * lib/isnanf.c: New file.
24420         * lib/isnan.c: Consider the USE_FLOAT macro.
24421         * m4/isnanf.m4: New file.
24422
24423 2007-04-06  Bruno Haible  <bruno@clisp.org>
24424
24425         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
24426         (Link): New section.
24427
24428         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
24429
24430 2007-04-06  Bruno Haible  <bruno@clisp.org>
24431
24432         Assume the 'long double' type.
24433         * m4/longdouble.m4: Remove file.
24434         * config/srclist.txt: Don't mention longdouble.m4.
24435         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
24436         * lib/float+.h: Likewise.
24437         * lib/frexp.c: Likewise.
24438         * lib/printf-args.h: Likewise.
24439         * lib/printf-args.c: Likewise.
24440         * lib/printf-frexp.c: Likewise.
24441         * lib/printf-parse.c: Likewise.
24442         * lib/vasnprintf.c: Likewise.
24443         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
24444         * m4/intl.m4: Likewise.
24445         * m4/isnanl.m4: Likewise.
24446         * m4/printf.m4: Likewise.
24447         * m4/printf-frexpl.m4: Likewise.
24448         * m4/vasnprintf.m4: Likewise.
24449         * modules/allocsa (Files): Remove m4/longdouble.m4.
24450         * modules/gettext (Files): Likewise.
24451         * modules/relocatable-prog-wrapper (Files): Likewise.
24452         * modules/vasnprintf (Files): Likewise.
24453         * modules/isnanl (Files): Likewise.
24454         (Include): Simplify.
24455         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
24456         (Include): Simplify.
24457         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
24458         (Include): Simplify.
24459         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
24460         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
24461         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
24462         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
24463         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
24464         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
24465         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
24466         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
24467         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
24468         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
24469         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
24470         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
24471         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
24472         * tests/test-isnanl.c: Likewise.
24473         * tests/test-snprintf-posix.h: Likewise.
24474         * tests/test-sprintf-posix.h: Likewise.
24475         * tests/test-vasnprintf-posix.c: Likewise.
24476         * tests/test-vasnprintf-posix2.c: Likewise.
24477         * tests/test-vasprintf-posix.c: Likewise.
24478
24479 2007-04-06  Bruno Haible  <bruno@clisp.org>
24480
24481         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
24482         * lib/math_.h [__DECC]: Include the overridden include file through
24483         #include_next, outside the double-inclusion guard.
24484         * lib/stdio_.h [__DECC]: Likewise.
24485         * lib/stdlib_.h [__DECC]: Likewise.
24486         * lib/string_.h [__DECC]: Likewise.
24487         * lib/time_.h [__DECC]: Likewise.
24488         * lib/wchar_.h [__DECC]: Likewise.
24489         * lib/wctype_.h [__DECC]: Likewise.
24490         * lib/inttypes_.h [__DECC]: Likewise.
24491         Reported by Albert Chin <china@thewrittenword.com> in
24492         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
24493
24494 2007-04-04  Eric Blake  <ebb9@byu.net>
24495
24496         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
24497         1.5.x.
24498
24499 2007-04-04  Bruno Haible  <bruno@clisp.org>
24500
24501         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
24502         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
24503
24504 2007-04-04  Bruno Haible  <bruno@clisp.org>
24505
24506         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
24507         results for "%010a" of Infinity and NaN.
24508         * tests/test-vasprintf-posix.c (test_function): Likewise.
24509         * tests/test-snprintf-posix.h (test_function): Likewise.
24510         * tests/test-sprintf-posix.h (test_function): Likewise.
24511         * tests/test-fprintf-posix.h (test_function): Remove these tests.
24512         * tests/test-printf-posix.h (test_function): Likewise.
24513         * tests/test-fprintf-posix.out: Update.
24514         Needed for FreeBSD 6.1.
24515
24516 2007-04-04  Bruno Haible  <bruno@clisp.org>
24517
24518         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
24519         directly used by the gnulib modules nor by gnulib-tool.
24520
24521 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
24522
24523         * DEPENDENCIES: Give overall description of version dependency
24524         desirability.  Use more-typical names for apps.
24525         Add shell, coreutils, diffutils, grep, tar, gzip.
24526
24527 2007-04-04  Simon Josefsson  <simon@josefsson.org>
24528
24529         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
24530
24531 2007-04-04  Karl Berry  <karl@gnu.org>
24532
24533         * MODULES.html.sh (func_module): missing '.
24534
24535 2007-04-03  Bruno Haible  <bruno@clisp.org>
24536
24537         * modules/argmatch-tests (Makefile.am): New variable
24538         test_argmatch_LDADD.
24539         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
24540         * modules/array-list-tests (Makefile.am): New variable
24541         test_array_list_LDADD.
24542         * modules/array-oset-tests (Makefile.am): New variable
24543         test_array_oset_LDADD.
24544         * modules/avltree-list-tests (Makefile.am): New variable
24545         test_avltree_list_LDADD.
24546         * modules/avltree-oset-tests (Makefile.am): New variable
24547         test_avltree_oset_LDADD.
24548         * modules/avltreehash-list-tests (Makefile.am): New variable
24549         test_avltreehash_list_LDADD.
24550         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
24551         test_canonicalize_lgpl_LDADD.
24552         * modules/carray-list-tests (Makefile.am): New variable
24553         test_carray_list_LDADD.
24554         * modules/dirname-tests (Makefile.am): New variable
24555         test_dirname_LDADD.
24556         * modules/linked-list-tests (Makefile.am): New variable
24557         test_linked_list_LDADD.
24558         * modules/linkedhash-list-tests (Makefile.am): New variable
24559         test_linkedhash_list_LDADD.
24560         * modules/rbtree-list-tests (Makefile.am): New variable
24561         test_rbtree_list_LDADD.
24562         * modules/rbtree-oset-tests (Makefile.am): New variable
24563         test_rbtree_oset_LDADD.
24564         * modules/rbtreehash-list-tests (Makefile.am): New variable
24565         test_rbtreehash_list_LDADD.
24566         * modules/xvasprintf-tests (Makefile.am): New variable
24567         test_xvasprintf_LDADD.
24568         Reported by Eric Blake.
24569
24570 2007-04-03  Eric Blake  <ebb9@byu.net>
24571
24572         * DEPENDENCIES: Weaken m4 requirements.
24573
24574 2007-04-03  Bruno Haible  <bruno@clisp.org>
24575
24576         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
24577         * modules/isnanl-tests (configure.ac): Likewise.
24578
24579 2007-04-03  Ben Pfaff  <blp@gnu.org>
24580
24581         * modules/iconv_open: Add $(srcdir)/ to source directory
24582         references in Makefile fragments that call gperf, to fix VPATH
24583         builds.
24584
24585 2007-04-03  Bruno Haible  <bruno@clisp.org>
24586
24587         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
24588         * lib/ldexpl.c: Undo last change.
24589
24590 2007-04-03  Bruno Haible  <bruno@clisp.org>
24591
24592         * modules/printf-frexpl (Depends-on): Undo last change.
24593         (Files): Add m4/ldexpl.m4.
24594
24595 2007-04-03  Bruno Haible  <bruno@clisp.org>
24596
24597         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
24598         * modules/isnanl (Link): New section.
24599
24600         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
24601         * modules/frexp (Link): New section.
24602
24603         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
24604         * modules/frexpl (Link): New section.
24605
24606         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
24607         * modules/ldexpl (Link): New section.
24608
24609 2007-04-03  Bruno Haible  <bruno@clisp.org>
24610
24611         * modules/TEMPLATE-EXTENDED: New file.
24612         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
24613
24614 2007-04-03  Bruno Haible  <bruno@clisp.org>
24615
24616         * DEPENDENCIES: New file.
24617         Suggested by Simon Josefsson.
24618
24619 2007-04-03  Bruno Haible  <bruno@clisp.org>
24620
24621         * doc/gnulib.texi: Escape @.
24622
24623 2007-04-03  James Youngman  <jay@gnu.org>
24624         and Paul Eggert  <eggert@cs.ucla.edu>
24625
24626         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
24627         birthtime on all systems that have birthtime, not just those which
24628         use st_birthtimensec rather than st_birthtim.  Putting zero in
24629         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
24630         that the birth time is not available for files on an NFS mount.
24631
24632 2007-04-03  Simon Josefsson  <simon@josefsson.org>
24633
24634         * modules/memxor: Move back from crypto/, suggested by Bruno.
24635         * modules/crypto/hmac-sha1: Fix memxor dependency.
24636
24637         * modules/crypto/gc: Moved from ../.
24638
24639 2007-04-02  Eric Blake  <ebb9@byu.net>
24640
24641         * lib/ldexpl.c (includes): Avoid libm.
24642
24643         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
24644
24645 2007-04-02  Bruno Haible  <bruno@clisp.org>
24646
24647         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
24648         on IRIX.
24649
24650 2007-04-02  Bruno Haible  <bruno@clisp.org>
24651
24652         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
24653         x86 or x86_64 platforms running MacOS X.
24654         Reported by Ryan Schmidt <@ryandesign.com>.
24655
24656 2007-04-02  Bruno Haible  <bruno@clisp.org>
24657
24658         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
24659         i386.
24660
24661 2007-04-01  Simon Josefsson  <simon@josefsson.org>
24662
24663         * modules/crypto/arcfour: Moved from ../.
24664         * modules/crypto/arcfour-tests: Moved from ../.
24665         * modules/crypto/arctwo: Moved from ../.
24666         * modules/crypto/arctwo-tests: Moved from ../.
24667         * modules/crypto/des: Moved from ../.
24668         * modules/crypto/des-tests: Moved from ../.
24669         * modules/crypto/gc-arcfour: Moved from ../.
24670         * modules/crypto/gc-arcfour-tests: Moved from ../.
24671         * modules/crypto/gc-arctwo: Moved from ../.
24672         * modules/crypto/gc-arctwo-tests: Moved from ../.
24673         * modules/crypto/gc-des: Moved from ../.
24674         * modules/crypto/gc-des-tests: Moved from ../.
24675         * modules/crypto/gc-hmac-md5: Moved from ../.
24676         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
24677         * modules/crypto/gc-hmac-sha1: Moved from ../.
24678         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
24679         * modules/crypto/gc-md2: Moved from ../.
24680         * modules/crypto/gc-md2-tests: Moved from ../.
24681         * modules/crypto/gc-md4: Moved from ../.
24682         * modules/crypto/gc-md4-tests: Moved from ../.
24683         * modules/crypto/gc-md5: Moved from ../.
24684         * modules/crypto/gc-md5-tests: Moved from ../.
24685         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
24686         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
24687         * modules/crypto/gc-random: Moved from ../.
24688         * modules/crypto/gc-rijndael: Moved from ../.
24689         * modules/crypto/gc-rijndael-tests: Moved from ../.
24690         * modules/crypto/gc-sha1: Moved from ../.
24691         * modules/crypto/gc-sha1-tests: Moved from ../.
24692         * modules/crypto/gc-tests: Moved from ../.
24693         * modules/crypto/hmac-md5: Moved from ../.
24694         * modules/crypto/hmac-md5-tests: Moved from ../.
24695         * modules/crypto/hmac-sha1: Moved from ../.
24696         * modules/crypto/hmac-sha1-tests: Moved from ../.
24697         * modules/crypto/md2: Moved from ../.
24698         * modules/crypto/md2-tests: Moved from ../.
24699         * modules/crypto/md4: Moved from ../.
24700         * modules/crypto/md4-tests: Moved from ../.
24701         * modules/crypto/md5: Moved from ../.
24702         * modules/crypto/md5-tests: Moved from ../.
24703         * modules/crypto/memxor: Moved from ../.
24704         * modules/crypto/rijndael: Moved from ../.
24705         * modules/crypto/rijndael-tests: Moved from ../.
24706         * modules/crypto/sha1: Moved from ../.
24707
24708 2007-03-30  James Youngman  <jay@gnu.org>
24709
24710         * tests/test-stat-time.c (prepare_test): use chmod() rather than
24711         rename() to change the ctime of a file (because ctime is unaffected
24712         by rename on jfs2 on AIX 5.1).
24713         (main): Start by doing cleanup, in case a previous run failed leaving
24714         test files behind.
24715
24716 2007-03-31  Bruno Haible  <bruno@clisp.org>
24717
24718         Support old proprietary implementations of iconv.
24719         * modules/iconv_open: New file.
24720         * lib/iconv_.h: New file.
24721         * m4/iconv_h.m4: New file.
24722         * lib/iconv_open.c: New file.
24723         * lib/iconv_open-aix.gperf: New file.
24724         * lib/iconv_open-hpux.gperf: New file.
24725         * lib/iconv_open-irix.gperf: New file.
24726         * lib/iconv_open-osf.gperf: New file.
24727         * m4/iconv_open.m4: New file.
24728         * modules/linebreak (Depends-on): Add iconv_open.
24729         * modules/striconv (Depends-on): Likewise.
24730         * modules/striconveh (Depends-on): Likewise.
24731         * modules/unicodeio (Depends-on): Likewise.
24732         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
24733         (iconv_t)(-1).
24734         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
24735         conversion if cd is (iconv_t)(-1).
24736         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
24737         is not possible.
24738
24739 2007-03-31  Bruno Haible  <bruno@clisp.org>
24740
24741         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
24742         work on Solaris either. Protect also second use of "autodetect_jp".
24743
24744 2007-03-31  Bruno Haible  <bruno@clisp.org>
24745
24746         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
24747         the function is not present.
24748
24749 2007-03-31  Bruno Haible  <bruno@clisp.org>
24750
24751         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
24752         the function is not present.
24753
24754 2007-03-31  Bruno Haible  <bruno@clisp.org>
24755
24756         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
24757         a bug in HP-UX iconv_open().
24758
24759 2007-03-31  Bruno Haible  <bruno@clisp.org>
24760
24761         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
24762         (Mathematics <math.h>): New section, add fpieee.
24763         (Input/output <stdio.h>): Add fseterr.
24764         (Mathematics <math.h>): New section, add printf-frexp.
24765         (Container data structures): Add sublist.
24766         (Core language properties): Add fpucw, inline.
24767         (Functions for greatest-width integer types <inttypes.h>): Add
24768         imaxabs, imaxdiv, inttypes.
24769         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
24770         isnanl-nolibm, ldexp.
24771         (Mathematics <math.h>): New section, add printf-frexpl.
24772         (Support for systems lacking POSIX:2001): Add fprintf-posix,
24773         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
24774         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
24775         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
24776         (Unicode string functions): Add unistr/u*-mbtoucr.
24777         (Java): Add javacomp-script, javaexec-script.
24778         (C#): Add csharpcomp-script, csharpexec-script.
24779         (Support for building libraries and executables): Add havelib,
24780         relocatable-*.
24781         (Support for maintaining and releasing projects): Renamed from
24782         'Support for maintaining and release projects'. Add announce-gen.
24783
24784 2007-03-31  Bruno Haible  <bruno@clisp.org>
24785
24786         * README: Talk primarily about git.
24787         (git and CVS): Renamed from CVS.
24788         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
24789         gnulib is available through git.
24790         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
24791
24792 2007-03-30  Bruno Haible  <bruno@clisp.org>
24793
24794         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
24795         * lib/poll_.h: Likewise.
24796         * lib/stat_.h: Likewise.
24797         * lib/sys_time_.h: Likewise.
24798         * lib/sysexit_.h: Likewise.
24799         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
24800         * lib/stdbool_.h: Likewise.
24801         * lib/byteswap_.h: Add double-inclusion guard.
24802
24803 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
24804
24805         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
24806
24807 2007-03-30  Karl Berry  <karl@gnu.org>
24808
24809         * config/srclist-update: double space after USA in the license
24810         substitution, since that's how it's usually (?) written.
24811
24812 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
24813
24814         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
24815         reported by Bruno Haible.
24816
24817 2007-03-29  Bruno Haible  <bruno@clisp.org>
24818
24819         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
24820         a bug in AIX iconv().
24821
24822 2007-03-29  Bruno Haible  <bruno@clisp.org>
24823
24824         * modules/ldexpl-tests: New file.
24825         * tests/test-ldexpl.c: New file.
24826
24827 2007-03-29  Bruno Haible  <bruno@clisp.org>
24828
24829         * lib/ldexpl.c: Include fpucw.h.
24830         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
24831         multiplication.
24832         * modules/ldexpl (Depends-on): Add fpucw.
24833
24834 2007-03-29  Bruno Haible  <bruno@clisp.org>
24835
24836         * modules/ldexpl: New file.
24837         * m4/ldexpl.m4: New file.
24838         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
24839         set.
24840         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
24841         REPLACE_LDEXPL.
24842         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
24843         REPLACE_LDEXPL.
24844         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
24845         gl_FUNC_LDEXPL_WORKS.
24846         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
24847         * modules/mathl (Files): Remove lib/ldexpl.c.
24848         (Depends-on): Add ldexpl.
24849
24850 2007-03-29  Bruno Haible  <bruno@clisp.org>
24851
24852         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
24853
24854 2007-03-29  Bruno Haible  <bruno@clisp.org>
24855
24856         * tests/test-striconveh.c (main): Don't assume that a direct conversion
24857         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
24858         and possibly also HP-UX.
24859         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
24860         work on AIX, IRIX, HP-UX, OSF/1.
24861         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
24862         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
24863         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
24864         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
24865         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
24866         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
24867
24868 2007-03-29  Bruno Haible  <bruno@clisp.org>
24869
24870         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
24871
24872 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
24873
24874         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
24875         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
24876
24877 2007-03-29  Eric Blake  <ebb9@byu.net>
24878
24879         * lib/acl-internal.h: Remove redundant include.
24880         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
24881         Cygwin when a file is locked.
24882
24883 2007-03-29  Bruno Haible  <bruno@clisp.org>
24884
24885         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
24886         file.
24887         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
24888
24889 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
24890
24891         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
24892         try to remove a parent directory if the child couldn't be removed
24893         (except for the first rmdir, which could fail because the child
24894         doesn't exist).  Problem reported by Jeff Blaine in
24895         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
24896
24897 2007-03-28  Bruno Haible  <bruno@clisp.org>
24898
24899         * lib/striconveh.c (utf8conv_carefully): New function.
24900         (mem_cd_iconveh_internal): Invoke it.
24901
24902 2007-03-28  Bruno Haible  <bruno@clisp.org>
24903
24904         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
24905         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
24906         input.
24907         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
24908         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
24909         unistr/u8-uctomb.
24910
24911 2007-03-28  Bruno Haible  <bruno@clisp.org>
24912
24913         * modules/unistr/u8-mbtoucr: New file.
24914         * lib/unistr/u8-mbtoucr.c: New file.
24915         * modules/unistr/u16-mbtoucr: New file.
24916         * lib/unistr/u16-mbtoucr.c: New file.
24917         * modules/unistr/u16-mbtoucr: New file.
24918         * lib/unistr/u16-mbtoucr.c: New file.
24919         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
24920
24921 2007-03-27  Simon Josefsson  <simon@josefsson.org>
24922             Bruno Haible  <bruno@clisp.org>
24923
24924         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
24925         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
24926         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
24927
24928         * m4/stdio_h.m4: Add stubs for vasprintf too.
24929
24930         * modules/stdio: Support vasprintf in sed command.
24931
24932         * modules/vasprintf: Depend on stdio for prototypes.  Remove
24933         vasprintf.h.  Add stdio module indicator.
24934
24935         * lib/stdio_.h: Declare asprintf and vasprintf, based on
24936         vasprintf.h.
24937
24938         * lib/vasprintf.h: File removed.
24939
24940         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
24941         * lib/vasprintf.c: Ditto.
24942         * lib/xvasprintf.c: Ditto.
24943         * tests/test-vasprintf-posix.c: Ditto.
24944         * tests/test-vasprintf.c: Ditto.
24945
24946 2007-03-27  Bruno Haible  <bruno@clisp.org>
24947
24948         Make vasnprintf multithread-safe.
24949         * lib/vasnprintf.c (decimal_point_char): New function.
24950         (VASNPRINTF): Use it.
24951         Suggested by Simon Josefsson.
24952
24953 2007-03-27  Eric Blake  <ebb9@byu.net>
24954
24955         Support sub-second birthtime on cygwin.
24956         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
24957         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
24958         (get_stat_birthtime): Also work with st_birthtim.
24959
24960 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
24961
24962         * lib/stat-time.h (USE_BIRTHTIME): Remove.
24963         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
24964         (get_stat_birthtime_ns): Do not try to use "spare" fields.
24965         (get_stat_birthtime_ns): Simplify compile-time tests.
24966         (get_stat_birthtime): Change the API to look like
24967         get_stat_mtime etc., except return a negative tv_nsec on error.
24968         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
24969         Don't check for "spare" fields.
24970         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
24971         or for struct stat.st_birthtime, as these tests aren't used.
24972         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
24973
24974 2007-03-27  Bruno Haible  <bruno@clisp.org>
24975
24976         * lib/stat-time.h: Include <sys/stat.h>.
24977
24978 2007-03-27  James Youngman  <jay@gnu.org>
24979
24980         * lib/stat-time.h (get_stat_birthtime): New function for
24981           retrieving st_birthtime as provided by UFS2 (hence *BSD).
24982         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
24983           and its variants.
24984         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
24985         * modules/stat-time-test: New file.
24986         * tests/test-stat-time.c: New test, devised by Bruno Haible.
24987
24988 2007-03-26  Bruno Haible  <bruno@clisp.org>
24989
24990         Better support of signalling NaNs.
24991         * lib/atanl.c: Include isnanl.h.
24992         (atanl): Perform test for NaN at the beginning of the function and
24993         through a call to isnanl.
24994         * lib/cosl.c: Include isnanl.h.
24995         (cosl): Perform test for NaN at the beginning of the function and
24996         through a call to isnanl.
24997         * lib/ldexpl.c: Include isnanl.h.
24998         (ldexpl): Perform test for NaN through a call to isnanl.
24999         * lib/logl.c: Include isnanl.h.
25000         (logl): Perform test for NaN at the beginning of the function and
25001         through a call to isnanl.
25002         * lib/sinl.c: Include isnanl.h.
25003         (sinl): Perform test for NaN at the beginning of the function and
25004         through a call to isnanl.
25005         * lib/sqrtl.c: Include isnanl.h.
25006         (sqrtl): Perform test for NaN at the beginning of the function and
25007         through a call to isnanl.
25008         * lib/tanl.c: Include isnanl.h.
25009         (tanl): Perform test for NaN at the beginning of the function and
25010         through a call to isnanl.
25011         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
25012         * modules/mathl (Depends-on): Add isnanl.
25013
25014 2007-03-26  Eric Blake  <ebb9@byu.net>
25015
25016         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
25017         regression in logic sense of previous patch.
25018
25019 2007-03-26  Bruno Haible  <bruno@clisp.org>
25020
25021         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
25022         unportable shell command "if ! ...".
25023         Reported by Ralf Wildenhues.
25024
25025 2007-03-25  Bruno Haible  <bruno@clisp.org>
25026
25027         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
25028         <sysexits.h> file, and only add EX_CONFIG.
25029         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
25030         absolute file name and whether it is sufficient. Substitute also
25031         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
25032         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
25033         ABSOLUTE_SYSEXITS_H into sysexits.h.
25034
25035 2007-03-25  Bruno Haible  <bruno@clisp.org>
25036
25037         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
25038         hints is NULL.
25039
25040 2007-03-25  Bruno Haible  <bruno@clisp.org>
25041
25042         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
25043         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
25044
25045 2007-03-25  Bruno Haible  <bruno@clisp.org>
25046
25047         * lib/vasnprintf.c: Include langinfo.h.
25048         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
25049         multithread-safe.
25050         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
25051         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
25052         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25053         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25054         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25055         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25056         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25057         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
25058         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25059         Reported by Simon Josefsson.
25060
25061 2007-03-25  Bruno Haible  <bruno@clisp.org>
25062
25063         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
25064         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
25065         * modules/vasnprintf (Depends-on): Add stdint.
25066
25067 2007-03-25  Bruno Haible  <bruno@clisp.org>
25068
25069         * modules/fpieee: New file.
25070         * m4/fpieee.m4: New file.
25071         * modules/isnan-nolibm (Depends-on): Add fpieee.
25072         * modules/isnanl-nolibm (Depends-on): Add fpieee.
25073         * modules/isnanl (Depends-on): Add fpieee.
25074
25075 2007-03-25  Bruno Haible  <bruno@clisp.org>
25076
25077         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
25078
25079 2007-03-25  Bruno Haible  <bruno@clisp.org>
25080
25081         Avoid test failures on IRIX 6.5.
25082         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
25083         (main): Use it.
25084         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
25085         macros.
25086         (main): Use them.
25087
25088 2007-03-25  Bruno Haible  <bruno@clisp.org>
25089
25090         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
25091         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
25092         exists but doesn't work.
25093         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
25094         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
25095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
25096         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
25097
25098 2007-03-25  Bruno Haible  <bruno@clisp.org>
25099
25100         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
25101         returns inf. Needed on IRIX 6.5.
25102
25103 2007-03-25  Bruno Haible  <bruno@clisp.org>
25104
25105         * tests/test-frexpl.c: Include isnanl-nolibm.h.
25106         (main): Use isnanl instead of x != x idiom.
25107         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
25108
25109         * tests/test-frexp.c: Include isnan.h.
25110         (main): Use isnan instead of x != x idiom.
25111         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
25112
25113 2007-03-25  Bruno Haible  <bruno@clisp.org>
25114
25115         * tests/test-frexp.c (NaN): New function/macro.
25116         (main): Use it instead of 0.0 / 0.0.
25117         * tests/test-isnan.c (NaN): New function/macro.
25118         (main): Use it instead of 0.0 / 0.0.
25119         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
25120         (test_function): Use it instead of 0.0 / 0.0.
25121         * tests/test-vasprintf-posix.c (NaN): New function/macro.
25122         (test_function): Use it instead of 0.0 / 0.0.
25123         * tests/test-snprintf-posix.h (NaN): New function/macro.
25124         (test_function): Use it instead of 0.0 / 0.0.
25125         * tests/test-sprintf-posix.h (NaN): New function/macro.
25126         (test_function): Use it instead of 0.0 / 0.0.
25127         * tests/test-fprintf-posix.h (NaN): New function/macro.
25128         (test_function): Use it instead of 0.0 / 0.0.
25129         * tests/test-printf-posix.h (NaN): New function/macro.
25130         (test_function): Use it instead of 0.0 / 0.0.
25131
25132         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
25133
25134 2007-03-25  Bruno Haible  <bruno@clisp.org>
25135
25136         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
25137
25138 2007-03-25  Bruno Haible  <bruno@clisp.org>
25139
25140         * lib/regexec.c (merge_state_with_log): Make static.
25141
25142 2007-03-25  Bruno Haible  <bruno@clisp.org>
25143
25144         * lib/trigl.c (kernel_rem_pio2): Make static.
25145
25146 2007-03-25  Bruno Haible  <bruno@clisp.org>
25147
25148         * lib/sincosl.c (sincosl_table): Make static.
25149
25150 2007-03-25  Bruno Haible  <bruno@clisp.org>
25151
25152         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
25153         if the compiler does not support C99.
25154
25155 2007-03-25  Bruno Haible  <bruno@clisp.org>
25156
25157         * modules/time (Makefile.am): Ensure all rule action lines start with a
25158         tab.
25159
25160 2007-03-24  Bruno Haible  <bruno@clisp.org>
25161
25162         * modules/tsearch-tests: New file.
25163         * tests/test-tsearch.sh: New file.
25164         * tests/test-tsearch.c: New file, mostly copied from glibc.
25165
25166         * modules/search-tests: New file.
25167         * tests/test-search.c: New file.
25168
25169         * modules/search: New file.
25170         * lib/search_.h: New file, incorporating lib/tsearch.h.
25171         * m4/search_h.m4: New file.
25172         * lib/tsearch.h: Remove file.
25173         * lib/tsearch.c: Include search.h instead of tsearch.h.
25174         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
25175         HAVE_TSEARCH.
25176         * modules/tsearch (Files): Remove lib/tsearch.h.
25177         (Depends-on): Add search.
25178         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
25179         (Include): Change tsearch.h into search.h.
25180
25181 2007-03-24  Bruno Haible  <bruno@clisp.org>
25182
25183         * modules/fpucw: New file.
25184         * lib/fpucw.h: New file.
25185         * lib/frexp.c: Include fpucw.h.
25186         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
25187         (FUNC): Use them.
25188         * lib/printf-frexp.c: Include fpucw.h.
25189         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
25190         (FUNC): Use them.
25191         * lib/vasnprintf.c: Include fpucw.h.
25192         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
25193         'long double' calculations.
25194         * tests/test-frexpl.c: Include fpucw.h.
25195         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
25196         * tests/test-printf-frexpl.c: Include fpucw.h.
25197         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
25198         * modules/frexpl (Depends-on): Add fpucw.
25199         * modules/printf-frexpl (Depends-on): Likewise.
25200         * modules/fprintf-posix (Depends-on): Likewise.
25201         * modules/snprintf-posix (Depends-on): Likewise.
25202         * modules/sprintf-posix (Depends-on): Likewise.
25203         * modules/vasnprintf-posix (Depends-on): Likewise.
25204         * modules/vasprintf-posix (Depends-on): Likewise.
25205         * modules/vfprintf-posix (Depends-on): Likewise.
25206         * modules/vsnprintf-posix (Depends-on): Likewise.
25207         * modules/vsprintf-posix (Depends-on): Likewise.
25208         * modules/frexpl-tests (Depends-on): Likewise.
25209         * modules/printf-frexpl-tests (Depends-on): Likewise.
25210
25211 2007-03-24  Bruno Haible  <bruno@clisp.org>
25212
25213         * lib/float+.h: New file.
25214         * lib/isnan.c: Include float+.h.
25215         (SIZE): New macro.
25216         (FUNC): Compare only SIZE bytes of the value.
25217         * lib/vasnprintf.c: Include float+.h.
25218         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
25219         SIZEOF_LDBL or SIZEOF_DBL bytes.
25220         * modules/isnan-nolibm (Files): Add lib/float+.h.
25221         * modules/isnanl-nolibm (Files): Add lib/float+.h.
25222         * modules/isnanl (Files): Add lib/float+.h.
25223         * modules/vasnprintf (Files): Add lib/float+.h.
25224
25225 2007-03-24  Bruno Haible  <bruno@clisp.org>
25226
25227         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
25228         include isnanl-nolibm.h.
25229
25230 2007-03-24  Bruno Haible  <bruno@clisp.org>
25231
25232         * tests/test-read-file.c (main): Don't produce spurious output for
25233         expected situations. Make the test fail if it encountered unexpected
25234         results.
25235
25236 2007-03-24  Bruno Haible  <bruno@clisp.org>
25237
25238         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
25239         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
25240
25241 2007-03-24  Bruno Haible  <bruno@clisp.org>
25242
25243         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
25244
25245 2007-03-24  Bruno Haible  <bruno@clisp.org>
25246
25247         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
25248         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
25249
25250         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
25251         * modules/utf8-ucs4: Turn into a symbolic link to module
25252         unistr/u8-mbtouc.
25253
25254         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
25255         utf8-ucs4-unsafe.
25256         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
25257         unistr/u8-mbtouc-unsafe.
25258
25259         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
25260         * modules/utf16-ucs4: Turn into a symbolic link to module
25261         unistr/u16-mbtouc.
25262
25263         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
25264         utf16-ucs4-unsafe.
25265         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
25266         unistr/u16-mbtouc-unsafe.
25267
25268         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
25269         * modules/ucs4-utf8: Turn into a symbolic link to module
25270         unistr/u8-ubtomb.
25271
25272         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
25273         * modules/ucs4-utf16: Turn into a symbolic link to module
25274         unistr/u16-ubtomb.
25275
25276 2007-03-24  Bruno Haible  <bruno@clisp.org>
25277
25278         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
25279         Enable the function only if HAVE_INLINE.
25280         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
25281         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
25282         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
25283         Enable the function only if HAVE_INLINE.
25284         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
25285         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
25286         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
25287         Enable the function only if HAVE_INLINE.
25288         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
25289         Enable the function only if HAVE_INLINE.
25290         * modules/utf8-ucs4: Update.
25291         * modules/utf8-ucs4-unsafe: Update.
25292         * modules/utf16-ucs4: Update.
25293         * modules/utf16-ucs4-unsafe: Update.
25294         * modules/ucs4-utf8: Update.
25295         * modules/ucs4-utf16: Update.
25296
25297 2007-03-24  Bruno Haible  <bruno@clisp.org>
25298
25299         * lib/utf8-ucs4.h: Remove file.
25300         * lib/utf8-ucs4-unsafe.h: Remove file.
25301         * lib/utf16-ucs4.h: Remove file.
25302         * lib/utf16-ucs4-unsafe.h: Remove file.
25303         * lib/ucs4-utf8.h: Remove file.
25304         * lib/ucs4-utf16.h: Remove file.
25305         * lib/unistr.h: Include their previous contents.
25306         * m4/utf-ucs4.m4: Remove file.
25307         * m4/ucs4-utf.m4: Remove file.
25308         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
25309         (Depends-on): Add unistr/base.
25310         (configure.ac): Remove gl_UTF_UCS4.
25311         (Makefile.am): Update.
25312         (Include): Change to unistr.h.
25313         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
25314         (Depends-on): Add unistr/base.
25315         (configure.ac): Remove gl_UTF_UCS4.
25316         (Makefile.am): Update.
25317         (Include): Change to unistr.h.
25318         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
25319         (Depends-on): Add unistr/base.
25320         (configure.ac): Remove gl_UTF_UCS4.
25321         (Makefile.am): Update.
25322         (Include): Change to unistr.h.
25323         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
25324         (Depends-on): Add unistr/base.
25325         (configure.ac): Remove gl_UTF_UCS4.
25326         (Makefile.am): Update.
25327         (Include): Change to unistr.h.
25328         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
25329         (Depends-on): Add unistr/base.
25330         (configure.ac): Remove gl_UCS4_UTF.
25331         (Makefile.am): Update.
25332         (Include): Change to unistr.h.
25333         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
25334         (Depends-on): Add unistr/base.
25335         (configure.ac): Remove gl_UCS4_UTF.
25336         (Makefile.am): Update.
25337         (Include): Change to unistr.h.
25338         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
25339         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
25340         utf8-ucs4-unsafe.h.
25341         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
25342         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
25343         utf16-ucs4-unsafe.h.
25344         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
25345         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
25346         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
25347         * lib/unistr/u8-strchr.c: Likewise.
25348         * lib/unistr/u8-strrchr.c: Likewise.
25349         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
25350         * lib/unistr/u16-strchr.c: Likewise.
25351         * lib/unistr/u16-strrchr.c: Likewise.
25352         * lib/striconveh.c: Update.
25353         * lib/linebreak.c: Update.
25354
25355 2007-03-24  Bruno Haible  <bruno@clisp.org>
25356
25357         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
25358         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
25359
25360 2007-03-22  Bruno Haible  <bruno@clisp.org>
25361
25362         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
25363
25364 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
25365
25366         * MODULES.html.sh (File system functions): New module write-any-file.
25367         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
25368         * m4/write-any-file.m4: New files.
25369
25370 2007-03-23  Eric Blake  <ebb9@byu.net>
25371
25372         * gnulib-tool: Rearrange space-tab sequences, since some editors
25373         like to eat them.
25374
25375 2007-03-23  Eric Blake  <ebb9@byu.net>
25376
25377         * lib/version-etc.c (version_etc_va): Update license wording to
25378         be more concise.  Recommended by Richard Stallman.
25379
25380 2007-03-22  Bruno Haible  <bruno@clisp.org>
25381
25382         * lib/poll.c (MSG_PEEK): New fallback definition.
25383
25384 2007-03-22  Bruno Haible  <bruno@clisp.org>
25385
25386         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
25387         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
25388         (main): Update.
25389         Fixes a compilation error on BeOS.
25390
25391 2007-03-22  Bruno Haible  <bruno@clisp.org>
25392
25393         * modules/frexpl-tests: New file.
25394         * tests/test-frexpl.c: New file.
25395
25396         * modules/frexpl: New file.
25397         * m4/frexpl.m4: New file.
25398         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
25399         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
25400         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
25401         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
25402         (Depends-on): Add frexpl. Remove isnanl-nolibm.
25403         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
25404
25405 2007-03-22  Bruno Haible  <bruno@clisp.org>
25406
25407         * lib/frexpl.c: Share code with lib/frexp.c.
25408         * modules/mathl (Files): Add lib/frexp.c.
25409         (Depends-on): Add isnanl-nolibm.
25410
25411 2007-03-22  Bruno Haible  <bruno@clisp.org>
25412
25413         * modules/printf-frexp (Files): Add m4/frexp.m4.
25414         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
25415         only if the found frexp function actually works.
25416
25417 2007-03-22  Bruno Haible  <bruno@clisp.org>
25418
25419         * lib/frexp.c: Remove older implementation that uses divisions.
25420
25421 2007-03-21  Bruno Haible  <bruno@clisp.org>
25422
25423         * modules/frexp-tests: New file.
25424         * tests/test-frexp.c: New file.
25425
25426         * modules/frexp: New file.
25427         * lib/frexp.c: New file.
25428         * m4/frexp.m4: New file.
25429         * lib/math_.h (frexp): New declaration.
25430         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
25431         REPLACE_FREXP.
25432         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
25433
25434 2007-03-21  Bruno Haible  <bruno@clisp.org>
25435
25436         * modules/isnanl-tests: New file.
25437         * tests/test-isnanl.c: New file.
25438
25439         * modules/isnanl: New file.
25440         * lib/isnanl.h: New file.
25441         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
25442         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
25443         gl_FUNC_ISNANL_WORKS.
25444         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
25445         New macros.
25446
25447 2007-03-21  Bruno Haible  <bruno@clisp.org>
25448
25449         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
25450         lib/isnanl.h.
25451         (Include): Update.
25452         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
25453         * lib/vasnprintf.c: Update.
25454         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
25455         tests/test-isnanl.h, remove tests/test-isnanl.c.
25456         (Makefile.am): Update.
25457         * tests/test-isnanl-nolibm.c: New file.
25458         * tests/test-isnanl.h: New file.
25459         * tests/test-isnanl.c: Remove file.
25460
25461 2007-03-21  Jim Meyering  <jim@meyering.net>
25462
25463         When trying to open ".", treat ESTALE like EACCES.
25464         * lib/savewd.c (savewd_save): Resort to forking not just upon
25465         failure with EACCES, but also when errno is ESTALE.
25466
25467 2007-03-20  Bruno Haible  <bruno@clisp.org>
25468
25469         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
25470         Needed on AIX 5.1. Reported by Matthew Woehlke.
25471
25472 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
25473
25474         Suggestions by Bruno Haible:
25475         * lib/acl-internal.h: Include "gettext.h" rather than rolling
25476         our own.
25477         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
25478         * modules/acl (Depends-on): Add gettext.
25479
25480 2007-03-19  Bruno Haible  <bruno@clisp.org>
25481
25482         * modules/iconvme: Remove file.
25483         * lib/iconvme.h: Remove file.
25484         * lib/iconvme.c: Remove file.
25485         * m4/iconvme.m4: Remove file.
25486
25487 2007-03-19  Bruno Haible  <bruno@clisp.org>
25488
25489         * doc/relocatable-maint.texi: Break long shell script line.
25490         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
25491
25492 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
25493
25494         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
25495         handle file_has_acl.
25496         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
25497         * lib/acl.c: Move header inclusions and related macro defns into
25498         lib/acl-internal.h.
25499         (S_ISLNK): Remove defn, since that's now done for us.
25500         (file_has_acl): Move to lib/file-has-acl.c.
25501         Call acl_trivial if available.  This is the crucial part of the fix.
25502         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
25503         shared within the library.  Rewrite a bit, partly to make it compatible
25504         with the GNU coding style.
25505         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
25506         Remove unnecessary double-quotes.
25507         Don't test for acl_to_text; the build will catch that.
25508         Replace acl_entries if it doesn't exist and it is needed.
25509         Check for -lsec and acl_trivial (as used on Solaris 10).
25510         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
25511         lib/file-has-acl.c.
25512         (Depends-on): Add sys_stat, for S_ISLNK.
25513
25514 2007-03-19  Ben Pfaff  <blp@gnu.org>
25515
25516         * doc/gnulib.texi: Fix typos.
25517         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
25518
25519 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
25520
25521         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
25522         If size is zero here, buf must be zero.
25523
25524 2007-03-19  Simon Josefsson  <simon@josefsson.org>
25525
25526         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
25527         <bruno@clisp.org>.
25528
25529 2007-03-18  Bruno Haible  <bruno@clisp.org>
25530
25531         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
25532         Suggested by Eric Blake.
25533
25534 2007-03-18  Ben Pfaff  <blp@gnu.org>
25535
25536         * doc/relocatable.texi: Recommend using as prefix a directory
25537         that does not exist and will never be created.  Based on
25538         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
25539         and others.
25540
25541 2007-03-17  Bruno Haible  <bruno@clisp.org>
25542
25543         * lib/fchownat.c: Include lchown.h.
25544
25545 2007-03-17  Bruno Haible  <bruno@clisp.org>
25546
25547         Fix endless loop when the given allocated size was > INT_MAX.
25548         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
25549         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
25550         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
25551         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
25552         * lib/sprintf.c (sprintf): Likewise.
25553
25554 2007-03-17  Bruno Haible  <bruno@clisp.org>
25555
25556         * tests/test-argp-2.sh (func_compare): Output a context diff.
25557
25558 2007-03-17  Bruno Haible  <bruno@clisp.org>
25559
25560         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
25561         locale's decimal-point character.
25562
25563 2007-03-17  Bruno Haible  <bruno@clisp.org>
25564
25565         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
25566         before comparing it. Needed because on some platforms (e.g. x86) a
25567         'long double' occupies less bytes than sizeof (long double).
25568
25569 2007-03-17  Bruno Haible  <bruno@clisp.org>
25570
25571         * tests/test-crc.c (main): Make printf statements 64-bit clean.
25572         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
25573         * tests/test-getaddrinfo.c (simple): Likewise.
25574         * tests/test-read-file.c (main): Likewise.
25575
25576 2007-03-17  Bruno Haible  <bruno@clisp.org>
25577
25578         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
25579
25580 2007-03-17  Bruno Haible  <bruno@clisp.org>
25581
25582         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
25583         unused variable.
25584
25585 2007-03-17  Bruno Haible  <bruno@clisp.org>
25586
25587         * tests/test-c-strcasecmp.c: Include c-strcase.h.
25588         * tests/test-c-strncasecmp.c: Likewise.
25589
25590 2007-03-17  Bruno Haible  <bruno@clisp.org>
25591
25592         * modules/stdlib (Depends-on): Add unistd.
25593         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
25594         Needed for MacOS X 10.3.
25595
25596 2007-03-17  Bruno Haible  <bruno@clisp.org>
25597
25598         * lib/unistr/u-strdup.h: Include <stdlib.h>.
25599
25600 2007-03-17  Bruno Haible  <bruno@clisp.org>
25601
25602         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
25603
25604 2007-03-17  Bruno Haible  <bruno@clisp.org>
25605
25606         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
25607         to reflect files copied from gnulib (with or without modifications).
25608         Suggested by Jim Meyering.
25609
25610 2007-03-17  Eric Blake  <ebb9@byu.net>
25611
25612         * NEWS: Document stdlib change from 2007-02-18.
25613
25614 2007-03-17  Jim Meyering  <jim@meyering.net>
25615
25616         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
25617         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
25618         someone uses a name containing shell meta-characters.
25619         Reported by Alfred M. Szmidt.
25620
25621         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
25622
25623 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
25624
25625         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
25626         and copy gettext configuration files only if configure.ac contains
25627         a use of AM_GNU_GETTEXT_VERSION.
25628
25629 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
25630
25631         * build-aux/bootstrap (gnulib_name): New variable.
25632         (gnulib_tool_options): Use it.
25633
25634 2007-03-13  Simon Josefsson  <simon@josefsson.org>
25635
25636         * tests/test-des.c: Use new namespace.
25637
25638 2007-03-15  Bruno Haible  <bruno@clisp.org>
25639
25640         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
25641         Reported by James Youngman <jay@gnu.org>.
25642
25643 2007-03-15  Bruno Haible  <bruno@clisp.org>
25644
25645         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
25646         declared prototype. Needed with cc on OSF/1 5.1.
25647
25648 2007-03-15  Bruno Haible  <bruno@clisp.org>
25649
25650         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
25651         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
25652         (struct gl_list_implementation): Add dispose_fn argument to the
25653         'create_empty', 'create' methods.
25654         (struct gl_list_impl_base): Add field 'dispose_fn'.
25655         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
25656         argument.
25657         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
25658         dispose_fn argument.
25659         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
25660         dispose_fn on the dropped values.
25661         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
25662         dispose_fn argument.
25663         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
25664         dropped values.
25665         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
25666         (gl_tree_remove_node): Call dispose_fn on the dropped value.
25667         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
25668         (gl_tree_remove_node): Call dispose_fn on the dropped value.
25669         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
25670         argument.
25671         (gl_tree_list_free): Call dispose_fn on the dropped values.
25672         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
25673         the dropped values.
25674         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
25675         Add dispose_fn argument.
25676         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
25677         Call dispose_fn on the dropped values.
25678         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
25679         Add dispose_fn argument.
25680         (gl_sublist_create): Initialize the 'dispose_fn' field.
25681         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
25682         * tests/test-array_list.c (main): Update.
25683         * tests/test-carray_list.c (main): Update.
25684         * tests/test-avltree_list.c (main): Update.
25685         * tests/test-rbtree_list.c (main): Update.
25686         * tests/test-avltreehash_list.c (main): Update.
25687         * tests/test-rbtreehash_list.c (main): Update.
25688         * tests/test-linked_list.c (main): Update.
25689         * tests/test-linkedhash_list.c (main): Update.
25690         * tests/test-array_oset.c (main): Update.
25691
25692 2007-03-15  Bruno Haible  <bruno@clisp.org>
25693
25694         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
25695         (gl_oset_create_empty): Add dispose_fn argument.
25696         (struct gl_oset_implementation): Add dispose_fn argument to
25697         'create_empty' method.
25698         (struct gl_oset_impl_base): Add dispose_fn field.
25699         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
25700         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
25701         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
25702         values.
25703         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
25704         (gl_tree_oset_free): Call dispose_fn on the dropped values.
25705         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
25706         dropped value.
25707         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
25708         dropped value.
25709         * tests/test-array_oset.c (main): Update.
25710         * tests/test-avltree_oset.c (main): Update.
25711         * tests/test-rbtree_oset.c (main): Update.
25712         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
25713
25714 2007-03-13  Bruno Haible  <bruno@clisp.org>
25715
25716         * tests/test-stdbool.c (i): Update after last patch.
25717
25718 2007-03-12  Bruno Haible  <bruno@clisp.org>
25719
25720         * lib/quotearg.c: Include <wctype.h> early, before the definition of
25721         the iswprint macro. Needed on Solaris 2.5.1.
25722
25723 2007-03-12  Bruno Haible  <bruno@clisp.org>
25724
25725         * tests/test-printf-frexp.c (main): Declare x as volatile.
25726
25727 2007-03-12  Simon Josefsson  <simon@josefsson.org>
25728
25729         * doc/gnulib.texi (Build robot for gnulib): New section.
25730
25731 2007-03-12  Jim Meyering  <jim@meyering.net>
25732
25733         * build-aux/bootstrap: New file.
25734         * build-aux/bootstrap.conf: New file, from coreutils.
25735
25736 2007-03-11  Bruno Haible  <bruno@clisp.org>
25737
25738         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
25739
25740 2007-03-12  Simon Josefsson  <simon@josefsson.org>
25741
25742         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
25743         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
25744         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
25745
25746 2007-03-11  Bruno Haible  <bruno@clisp.org>
25747
25748         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
25749         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
25750
25751 2007-03-11  Bruno Haible  <bruno@clisp.org>
25752
25753         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
25754         formula. Needed for SunPRO C 5.0.
25755
25756 2007-03-11  Bruno Haible  <bruno@clisp.org>
25757
25758         * modules/long-options (Depends-on): Add getopt.
25759
25760 2007-03-11  Bruno Haible  <bruno@clisp.org>
25761
25762         * modules/modechange (Depends-on): Add stdbool.
25763
25764 2007-03-11  Bruno Haible  <bruno@clisp.org>
25765
25766         * modules/i-ring (Depends-on): Add stdbool.
25767
25768 2007-03-11  Bruno Haible  <bruno@clisp.org>
25769
25770         * modules/gc-des (Depends-on): Add stdbool.
25771
25772 2007-03-11  Bruno Haible  <bruno@clisp.org>
25773
25774         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
25775
25776 2007-03-11  Bruno Haible  <bruno@clisp.org>
25777
25778         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
25779
25780 2007-03-11  Bruno Haible  <bruno@clisp.org>
25781
25782         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
25783
25784 2007-03-11  Bruno Haible  <bruno@clisp.org>
25785
25786         * lib/vasnprintf.c (sprintf): Undefine.
25787
25788 2007-03-11  Bruno Haible  <bruno@clisp.org>
25789
25790         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
25791         initializers in SunPRO C and Compaq C compilers.
25792
25793 2007-03-11  Bruno Haible  <bruno@clisp.org>
25794
25795         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
25796         decrementing code ANSI C compliant.
25797
25798 2007-03-11  Bruno Haible  <bruno@clisp.org>
25799
25800         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
25801         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
25802
25803 2007-03-11  Bruno Haible  <bruno@clisp.org>
25804
25805         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
25806         <stdbool.h> substitute doesn't pass.
25807
25808 2007-03-11  Bruno Haible  <bruno@clisp.org>
25809
25810         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
25811
25812 2007-03-11  Bruno Haible  <bruno@clisp.org>
25813
25814         * gnulib-tool (func_create_megatestdir): Create also an autobuild
25815         script, for submission to autobuild.josefsson.org.
25816
25817 2007-03-10  Bruno Haible  <bruno@clisp.org>
25818
25819         * modules/canonicalize-lgpl-tests: New file.
25820         * tests/test-canonicalize-lgpl.sh: New file.
25821         * tests/test-canonicalize-lgpl.c: New file.
25822
25823         * modules/c-strcase-tests: New file.
25824         * tests/test-c-strcase.sh: New file.
25825         * tests/test-c-strcasecmp.c: New file.
25826         * tests/test-c-strncasecmp.c: New file.
25827
25828         * modules/atexit-tests: New file.
25829         * tests/test-atexit.sh: New file.
25830         * tests/test-atexit.c: New file.
25831
25832 2007-03-10  Bruno Haible  <bruno@clisp.org>
25833
25834         * tests/test-binary-io.sh: Use temporary filenames that are not so
25835         likely to clash with those of other tests (in a parallel make).
25836         * tests/test-binary-io.c: Likewise.
25837
25838 2007-03-10  Bruno Haible  <bruno@clisp.org>
25839
25840         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
25841         fallback; use #error instead.
25842         Suggested by Simon Josefsson.
25843
25844 2007-03-10  Bruno Haible  <bruno@clisp.org>
25845
25846         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
25847         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
25848         first and the last.
25849
25850 2007-03-10  Bruno Haible  <bruno@clisp.org>
25851
25852         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
25853
25854 2007-03-10  Bruno Haible  <bruno@clisp.org>
25855
25856         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
25857         "make distcheck".
25858         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
25859         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
25860         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
25861
25862 2007-03-10  Bruno Haible  <bruno@clisp.org>
25863
25864         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
25865         variable.
25866         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
25867         variable.
25868
25869 2007-03-09  Eric Blake  <ebb9@byu.net>
25870         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
25871
25872         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
25873         types are not being provided by gnulib.
25874         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
25875         types are supported.
25876
25877 2007-03-10  Bruno Haible  <bruno@clisp.org>
25878
25879         * lib/stdio_.h (__attribute__): New macro.
25880         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
25881         vsprintf): Specify __attribute__ __format__ for GCC.
25882         Suggested by Eric Blake.
25883
25884 2007-03-09  Bruno Haible  <bruno@clisp.org>
25885
25886         * modules/printf-posix-tests: New file.
25887         * tests/test-printf-posix.sh: New file.
25888         * tests/test-printf-posix.c: New file.
25889
25890         * modules/printf-posix: New file.
25891         * lib/printf.c: New file.
25892         * m4/printf-posix-rpl.m4: New file.
25893         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
25894         REPLACE_PRINTF.
25895         * lib/stdio_.h (printf): New declaration.
25896         (format, __format__, ____printf____, ____scanf____, ____strftime____,
25897         ____strfmon____): New macros.
25898         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
25899         REPLACE_PRINTF.
25900
25901 2007-03-09  Bruno Haible  <bruno@clisp.org>
25902
25903         * tests/test-vasnprintf-posix2.sh: New file.
25904         * tests/test-vasnprintf-posix2.c: New file.
25905         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
25906         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
25907         (Makefile.am): Activate test-vasnprintf-posix2.sh.
25908
25909         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
25910         a locale dependent decimal point, rather than always '.'.
25911
25912 2007-03-09  Eric Blake  <ebb9@byu.net>
25913
25914         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
25915         spite of platforms like Tandem/NSK that define it to -1.
25916
25917 2007-03-08  Bruno Haible  <bruno@clisp.org>
25918
25919         * modules/vprintf-posix-tests: New file.
25920         * tests/test-vprintf-posix.sh: New file.
25921         * tests/test-vprintf-posix.c: New file.
25922         * tests/test-printf-posix.h: New file.
25923
25924         * modules/vprintf-posix: New file.
25925         * lib/vprintf.c: New file.
25926         * m4/vprintf-posix.m4: New file.
25927         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
25928         REPLACE_VPRINTF.
25929         * lib/stdio_.h (vprintf): New declaration.
25930         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
25931         REPLACE_VPRINTF.
25932
25933 2007-03-08  Bruno Haible  <bruno@clisp.org>
25934
25935         * modules/fprintf-posix-tests: New file.
25936         * tests/test-fprintf-posix.sh: New file.
25937         * tests/test-fprintf-posix.c: New file.
25938
25939         * modules/fprintf-posix: New file.
25940         * lib/fprintf.c: New file.
25941         * m4/fprintf-posix.m4: New file.
25942         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
25943         REPLACE_FPRINTF.
25944         * lib/stdio_.h (fprintf): New declaration.
25945         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
25946         REPLACE_FPRINTF.
25947
25948 2007-03-08  Bruno Haible  <bruno@clisp.org>
25949
25950         * modules/vfprintf-posix-tests: New file.
25951         * tests/test-vfprintf-posix.sh: New file.
25952         * tests/test-vfprintf-posix.c: New file.
25953         * tests/test-fprintf-posix.h: New file.
25954         * tests/test-fprintf-posix.out: New file.
25955
25956         * modules/vfprintf-posix: New file.
25957         * lib/vfprintf.c: New file.
25958         * m4/vfprintf-posix.m4: New file.
25959         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
25960         REPLACE_VFPRINTF.
25961         * lib/stdio_.h (vfprintf): New declaration.
25962         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
25963         REPLACE_VFPRINTF.
25964
25965 2007-03-08  Bruno Haible  <bruno@clisp.org>
25966
25967         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
25968
25969 2007-03-08  Bruno Haible  <bruno@clisp.org>
25970
25971         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
25972         instead of 'expr' invocations.
25973         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25974         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25975         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25976         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25977         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25978         Suggested by Paul Eggert.
25979
25980 2007-03-08  Bruno Haible  <bruno@clisp.org>
25981
25982         * modules/fseterr-tests: New file.
25983         * tests/test-fseterr.c: New file.
25984
25985         * modules/fseterr: New file.
25986         * lib/fseterr.h: New file.
25987         * lib/fseterr.c: New file.
25988
25989 2007-03-08  Bruno Haible  <bruno@clisp.org>
25990
25991         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
25992         * lib/getopt_.h: Likewise.
25993         * lib/mbswidth.h: Likewise.
25994         * lib/setenv.h: Likewise.
25995         * lib/vasnprintf.h: Likewise.
25996         * lib/vasprintf.h: Likewise.
25997         * lib/verror.h: Likewise.
25998         * lib/xsetenv.h: Likewise.
25999         * lib/xvasprintf.h: Likewise.
26000
26001 2007-03-08  Jim Meyering  <jim@meyering.net>
26002
26003         * users.txt: Add parted.
26004
26005         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
26006
26007 2007-03-07  Bruno Haible  <bruno@clisp.org>
26008
26009         * m4/printf.m4: Make the shell script snippets copy&pastable.
26010
26011 2007-03-02  Bruno Haible  <bruno@clisp.org>
26012
26013         * lib/netinet_in_.h: New file.
26014         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
26015         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
26016         * modules/netinet_in (Files): Add lib/netinet_in_.h.
26017         (Depends-on): Add absolute-header.
26018         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
26019         into netinet/in.h.
26020
26021 2007-03-03  Bruno Haible  <bruno@clisp.org>
26022
26023         * lib/sys_select_.h: New file.
26024         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
26025         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
26026         * modules/sys_select (Files): Add lib/sys_select_.h.
26027         (Depends-on): Add absolute-header.
26028         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
26029         into sys/select.h.
26030
26031 2007-03-02  Bruno Haible  <bruno@clisp.org>
26032
26033         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
26034         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
26035         values.
26036         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
26037         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
26038         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
26039         * modules/sys_socket (Depends-on): Add absolute-header.
26040         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
26041         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
26042         (Include): Remove requirement of inclusion of <sys/types.h>.
26043
26044 2007-03-02  Bruno Haible  <bruno@clisp.org>
26045
26046         * lib/byteswap_.h (bswap_32): Fix formula.
26047
26048 2007-03-06  Bruno Haible  <bruno@clisp.org>
26049
26050         * modules/sprintf-posix-tests: New file.
26051         * tests/test-sprintf-posix.c: New file.
26052
26053         * modules/sprintf-posix: New file.
26054         * lib/sprintf.c: New file.
26055         * m4/sprintf-posix.m4: New file.
26056         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
26057         REPLACE_SPRINTF.
26058         * lib/stdio_.h (sprintf): New declaration.
26059         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
26060         REPLACE_SPRINTF.
26061
26062 2007-03-06  Bruno Haible  <bruno@clisp.org>
26063
26064         * modules/vsprintf-posix-tests: New file.
26065         * tests/test-vsprintf-posix.c: New file.
26066         * tests/test-sprintf-posix.h: New file.
26067
26068         * modules/vsprintf-posix: New file.
26069         * lib/vsprintf.c: New file.
26070         * m4/vsprintf-posix.m4: New file.
26071         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
26072         REPLACE_VSPRINTF.
26073         * lib/stdio_.h (vsprintf): New declaration.
26074         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
26075         REPLACE_VSPRINTF.
26076
26077 2007-03-06  Bruno Haible  <bruno@clisp.org>
26078
26079         * modules/vsnprintf (Depend-on): Remove minmax.
26080
26081 2007-03-06  Bruno Haible  <bruno@clisp.org>
26082
26083         * modules/snprintf-posix-tests: New file.
26084         * tests/test-snprintf-posix.c: New file.
26085
26086         * modules/snprintf-posix: New file.
26087         * m4/snprintf-posix.m4: New file.
26088         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
26089         gl_FUNC_SNPRINTF.
26090         (gl_FUNC_SNPRINTF): Invoke it.
26091         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
26092         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
26093         is set.
26094         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
26095
26096 2007-03-06  Bruno Haible  <bruno@clisp.org>
26097
26098         * modules/vsnprintf-posix-tests: New file.
26099         * tests/test-vsnprintf-posix.c: New file.
26100         * tests/test-snprintf-posix.h: New file.
26101
26102         * modules/vsnprintf-posix: New file.
26103         * m4/vsnprintf-posix.m4: New file.
26104         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
26105         gl_FUNC_VSNPRINTF.
26106         (gl_FUNC_VSNPRINTF): Invoke it.
26107         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
26108         * lib/stdio_.h (vsnprintf): Define as a replacement if
26109         REPLACE_VSNPRINTF is set.
26110         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
26111
26112 2007-03-06  Bruno Haible  <bruno@clisp.org>
26113
26114         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
26115         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
26116
26117 2007-03-06  Bruno Haible  <bruno@clisp.org>
26118
26119         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
26120         (asinl): Declare also if HAVE_DECL_ASINL is set.
26121         (atanl): Declare also if HAVE_DECL_ATANL is set.
26122         (ceill): Declare also if HAVE_DECL_CEILL is set.
26123         (cosl): Declare also if HAVE_DECL_COSL is set.
26124         (expl): Declare also if HAVE_DECL_EXPL is set.
26125         (floorl): Declare also if HAVE_DECL_FLOORL is set.
26126         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
26127         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
26128         (logl): Declare also if HAVE_DECL_LOGL is set.
26129         (sinl): Declare also if HAVE_DECL_SINL is set.
26130         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
26131         (tanl): Declare also if HAVE_DECL_TANL is set.
26132         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
26133         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
26134         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
26135         declaration of frexpl, ldexpl.
26136         * modules/printf-frexpl (Depends-on): Add math.
26137         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
26138
26139 2007-03-05  Bruno Haible  <bruno@clisp.org>
26140
26141         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
26142         frexpl and ldexpl are declared.
26143         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
26144
26145 2007-03-05  Bruno Haible  <bruno@clisp.org>
26146
26147         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
26148         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
26149
26150 2007-03-05  Bruno Haible  <bruno@clisp.org>
26151
26152         * lib/stdio_.h: Include <stddef.h>.
26153
26154 2007-03-05  Bruno Haible  <bruno@clisp.org>
26155
26156         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
26157
26158 2007-03-05  Bruno Haible  <bruno@clisp.org>
26159
26160         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
26161         NetBSD 4, from Ralf Wildenhues.
26162
26163 2007-03-04  Bruno Haible  <bruno@clisp.org>
26164
26165         * lib/vasprintf.h: Update #if logic for the case when the functions
26166         exist but are overridden.
26167
26168 2007-03-04  Bruno Haible  <bruno@clisp.org>
26169
26170         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
26171         implementations: glibc-2.4 and MacOS X 10.3.
26172         * tests/test-vasnprintf-posix.c (test_function): Test also the case
26173         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
26174         * tests/test-vasprintf-posix.c (test_function): Likewise.
26175
26176 2007-03-04  Bruno Haible  <bruno@clisp.org>
26177
26178         * modules/vasprintf-posix-tests: New file.
26179         * tests/test-vasprintf-posix.c: New file.
26180
26181         * modules/vasprintf-posix: New file.
26182         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
26183         defined.
26184         * m4/vasprintf-posix.m4: New file.
26185         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
26186         gl_FUNC_VASPRINTF.
26187         (gl_FUNC_VASPRINTF): Invoke it.
26188         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
26189         here.
26190         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
26191
26192 2007-03-04  Bruno Haible  <bruno@clisp.org>
26193
26194         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
26195         REPLACE_GETTIMEOFDAY.
26196         * modules/sys_time (Makefile.am): Likewise.
26197         * m4/sys_time_h.m4: Likewise.
26198         * m4/gettimeofday.m4: Likewise.
26199
26200 2007-03-04  Bruno Haible  <bruno@clisp.org>
26201
26202         * modules/vasnprintf-posix-tests: New file.
26203         * tests/test-vasnprintf-posix.c: New file.
26204
26205         * modules/vasnprintf-posix: New file.
26206         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
26207         printf-frexpl.h.
26208         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
26209         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
26210         REPLACE_VASNPRINTF is defined.
26211         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
26212         gl_FUNC_VASNPRINTF.
26213         (gl_FUNC_VASNPRINTF): Invoke it.
26214         * m4/vasnprintf-posix.m4: New file.
26215         * m4/printf.m4: New file.
26216
26217 2007-03-04  Bruno Haible  <bruno@clisp.org>
26218
26219         Compile progreloc.c only if --enable-relocatable is specified.
26220         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
26221         if --enable-relocatable was specified.
26222         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
26223         lib_SOURCES.
26224
26225 2007-03-04  Jim Meyering  <jim@meyering.net>
26226
26227         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
26228         Use it consistently, rather than enumerating errno constants.
26229
26230 2007-03-04  Bruno Haible  <bruno@clisp.org>
26231
26232         * modules/xvasprintf-tests: New file.
26233         * tests/test-xvasprintf.c: New file.
26234
26235         * modules/vasprintf-tests: New file.
26236         * tests/test-vasprintf.c: New file.
26237
26238         * modules/vasnprintf-tests: New file.
26239         * tests/test-vasnprintf.c: New file.
26240
26241         * modules/vsnprintf-tests: New file.
26242         * tests/test-vsnprintf.c: New file.
26243
26244         * modules/snprintf-tests: New file.
26245         * tests/test-snprintf.c: New file.
26246
26247 2007-03-04  Bruno Haible  <bruno@clisp.org>
26248
26249         Compile relocatable.c only if --enable-relocatable is specified.
26250         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
26251         gl_RELOCATABLE_LIBRARY.
26252         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
26253         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
26254         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
26255         gl_RELOCATABLE_LIBRARY.
26256         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
26257         (Makefile.am): Remove lib_SOURCES.
26258         * modules/relocatable-lib-lgpl (configure.ac): Invoke
26259         gl_RELOCATABLE_LIBRARY.
26260         (Makefile.am): Remove lib_SOURCES.
26261         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
26262         always.
26263         * modules/relocatable-prog-wrapper (configure.ac): Invoke
26264         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
26265
26266 2007-03-04  Bruno Haible  <bruno@clisp.org>
26267
26268         * modules/argmatch-tests: New file.
26269         * tests/test-argmatch.c: New file.
26270
26271         * tests/test-allocsa.c (main): Halve the number of loop runs.
26272
26273         * modules/alloca-opt-tests: New file.
26274         * tests/test-alloca-opt.c: New file.
26275
26276 2007-03-04  Jim Meyering  <jim@meyering.net>
26277
26278         Work around difference between Linux ACLs and Solaris 10 ZFS.
26279         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
26280         for EINVAL.
26281
26282 2007-03-03  Bruno Haible  <bruno@clisp.org>
26283
26284         * modules/relocatable-prog (Depends-on): Add back progreloc's
26285         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
26286
26287 2007-03-03  Bruno Haible  <bruno@clisp.org>
26288
26289         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
26290         * modules/relocatable-lib: New file.
26291
26292 2007-03-03  Bruno Haible  <bruno@clisp.org>
26293
26294         * modules/relocatable-prog: Renamed from modules/relocatable.
26295         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
26296
26297 2007-03-03  Bruno Haible  <bruno@clisp.org>
26298
26299         * modules/relocatable-script (Files): Add doc/relocatable.texi,
26300         m4/relocatable-lib.m4.
26301         (Depends-on): Remove 'relocatable'.
26302         (configure.ac): Add gl_RELOCATABLE_NOP.
26303
26304 2007-03-03  Bruno Haible  <bruno@clisp.org>
26305
26306         * modules/relocatable-prog-wrapper: New file.
26307         * modules/relocatable (Depends-on): Add it. Remove all other
26308         dependencies except progname.
26309         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
26310
26311         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
26312         (gl_FUNC_STRERROR): Nop.
26313         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
26314
26315         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
26316         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
26317
26318         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
26319         (gl_FUNC_READLINK): Update.
26320
26321         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
26322
26323 2007-03-03  Bruno Haible  <bruno@clisp.org>
26324
26325         * lib/xreadlink.c: Include <unistd.h> unconditionally.
26326         * modules/xreadlink (Depends-on): Add unistd.
26327         * modules/xreadlink-with-size (Depends-on): Likewise.
26328
26329 2007-03-03  Bruno Haible  <bruno@clisp.org>
26330
26331         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
26332         extracted from gt_FUNC_SETENV.
26333         (gt_FUNC_SETENV): Remove macro.
26334         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
26335         remove gt_FUNC_SETENV.
26336
26337 2007-03-03  Bruno Haible  <bruno@clisp.org>
26338
26339         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
26340         ENABLE_RELOCATABLE here.
26341         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
26342
26343 2007-03-03  Bruno Haible  <bruno@clisp.org>
26344
26345         * modules/rbtreehash-list-tests (Depends-on): Add progname.
26346         * tests/test-rbtreehash_list.c: Include progname.h.
26347         (main): Call set_program_name.
26348
26349         * modules/rbtree-oset-tests (Depends-on): Add progname.
26350         * tests/test-rbtree_oset.c: Include progname.h.
26351         (main): Call set_program_name.
26352
26353         * modules/rbtree-list-tests (Depends-on): Add progname.
26354         * tests/test-rbtree_list.c: Include progname.h.
26355         (main): Call set_program_name.
26356
26357         * modules/linked-list-tests (Depends-on): Add progname.
26358         * tests/test-linked_list.c: Include progname.h.
26359         (main): Call set_program_name.
26360
26361 2007-03-03  Bruno Haible  <bruno@clisp.org>
26362
26363         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
26364         All uses of __restrict changed to _Restrict_.
26365         * lib/glob_.h (__restrict): Remove macro.
26366
26367 2007-03-02  Bruno Haible  <bruno@clisp.org>
26368
26369         * modules/gettext (configure.ac): Require gettext infrastructure
26370         from version 0.16.1.
26371
26372 2007-03-02  Bruno Haible  <bruno@clisp.org>
26373
26374         * modules/linkedhash-list-tests (Depends-on): Add progname.
26375         * tests/test-linkedhash_list.c: Include progname.h.
26376         (main): Call set_program_name.
26377
26378         * modules/carray-list-tests (Depends-on): Add progname.
26379         * tests/test-carray_list.c: Include progname.h.
26380         (main): Call set_program_name.
26381
26382         * modules/avltreehash-list-tests (Depends-on): Add progname.
26383         * tests/test-avltreehash_list.c: Include progname.h.
26384         (main): Call set_program_name.
26385
26386         * modules/avltree-oset-tests (Depends-on): Add progname.
26387         * tests/test-avltree_oset.c: Include progname.h.
26388         (main): Call set_program_name.
26389
26390         * modules/avltree-list-tests (Depends-on): Add progname.
26391         * tests/test-avltree_list.c: Include progname.h.
26392         (main): Call set_program_name.
26393
26394         * modules/array-oset-tests (Depends-on): Add progname.
26395         * tests/test-array_oset.c: Include progname.h.
26396         (main): Call set_program_name.
26397
26398         * modules/array-list-tests (Depends-on): Add progname.
26399         * tests/test-array_list.c: Include progname.h.
26400         (main): Call set_program_name.
26401
26402         * modules/argp-tests (Depends-on): Add progname.
26403         * tests/test-argp.c: Include argp.h first. Include progname.h.
26404         (main): Call set_program_name.
26405
26406 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
26407
26408         * doc/gnulib-tool.texi (Initial import): Reword description of
26409         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
26410         limited effect even if defined after the first system include.
26411
26412 2007-03-01  Bruno Haible  <bruno@clisp.org>
26413
26414         * build-aux/config.libpath: Update to libtool-1.5.22.
26415         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
26416
26417 2007-03-01  Bruno Haible  <bruno@clisp.org>
26418
26419         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
26420         foo_CFLAGS.
26421         Reported by Ralf Wildenhues.
26422
26423 2007-03-01  Bruno Haible  <bruno@clisp.org>
26424
26425         * build-aux/install-reloc: Remove object files left over by some
26426         compilers.
26427         Reported by Ralf Wildenhues.
26428
26429 2007-03-01  Bruno Haible  <bruno@clisp.org>
26430
26431         * build-aux/install-reloc: Break long lines.
26432
26433 2007-03-01  Bruno Haible  <bruno@clisp.org>
26434
26435         * doc/relocatable.texi: Document that it may not work on OpenBSD.
26436         Reported by Ralf Wildenhues.
26437
26438 2007-03-01  Bruno Haible  <bruno@clisp.org>
26439
26440         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
26441         include ordering constraints.
26442
26443 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
26444
26445         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
26446         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
26447         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
26448         as another example.
26449         * lib/time_.h: Fix misspelling.
26450         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
26451         Require gl_HEADER_TIME_H_DEFAULTS.
26452         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
26453         * m4/time_r.m4 (gl_TIME_R): Likewise.
26454         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
26455
26456 2007-03-01  Bruno Haible  <bruno@clisp.org>
26457
26458         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
26459         * m4/utimens.m4 (gl_UTIMENS): Likewise.
26460
26461 2007-03-01  Jim Meyering  <jim@meyering.net>
26462
26463         * modules/xreadlink (Maintainer): Add my name.
26464         * modules/xreadlink-with-size (Depends-on): Alphabetize.
26465
26466 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
26467             Bruno Haible  <bruno@clisp.org>
26468
26469         * build-aux/install-reloc: Compile also c-ctype.c.
26470         * build-aux/relocatable.sh.in: New file.
26471         * doc/relocatable.texi: New file.
26472         * doc/relocatable-maint.texi: New file.
26473         * doc/gnulib.texi: Include relocatable-maint.texi.
26474         * lib/progreloc.c: Include unistd.h unconditionally.
26475         * lib/relocwrapper.c: Include unistd.h unconditionally.
26476         Include c-ctype.h.
26477         (add_dotbin): Use c_tolower.
26478         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
26479         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
26480         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
26481         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
26482         to m4/relocatable-lib.m4.
26483         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
26484         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
26485         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
26486         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
26487         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
26488         * modules/relocatable: New file.
26489         * modules/relocatable-lib: New file.
26490         * modules/relocatable-script: New file.
26491
26492 2007-02-28  Bruno Haible  <bruno@clisp.org>
26493
26494         Import --enable-relocatable infrastructure.
26495         * build-aux/config.libpath: New file, from GNU gettext.
26496         * build-aux/install-reloc: New file, from GNU gettext.
26497         * build-aux/reloc-ldflags: New file, from GNU gettext.
26498         * lib/relocatable.h: New file, from GNU gettext.
26499         * lib/relocatable.c: New file, from GNU gettext.
26500         * lib/relocwrapper.c: New file, from GNU gettext.
26501         * m4/relocatable.m4: New file, from GNU gettext.
26502
26503 2007-02-28  Bruno Haible  <bruno@clisp.org>
26504
26505         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
26506
26507         * modules/xreadlink: New file, from GNU gettext with modifications.
26508         * lib/xreadlink.c: New file, from GNU gettext.
26509         * lib/xreadlink.h: Add comments.
26510         (xreadlink): New declaration.
26511
26512         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
26513         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
26514         lib/xreadlink-with-size.c.
26515         (configure.ac): Remove gl_XREADLINK invocation.
26516         (Makefile.am): Augment lib_SOURCES.
26517         * m4/xreadlink.m4: Remove file.
26518         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
26519         (xreadlink_with_size): Renamed from xreadink.
26520         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
26521         * modules/canonicalize (Depends-on): Replace xreadlink with
26522         xreadlink-with-size.
26523         * lib/canonicalize.c (canonicalize_filename_mode): Update.
26524
26525 2007-02-25  Jim Meyering  <jim@meyering.net>
26526
26527         * build-aux/announce-gen: When complaining about excess arguments,
26528         list them.
26529
26530 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
26531
26532         * README: Document signed integer overflow situation more
26533         accurately.
26534
26535 2007-02-25  Bruno Haible  <bruno@clisp.org>
26536
26537         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
26538         'a' or 'A' conversion.
26539
26540 2007-02-25  Bruno Haible  <bruno@clisp.org>
26541
26542         * modules/filename: Renamed from modules/pathname.
26543         (Files): Replace lib/pathname.h with lib/filename.h. Replace
26544         lib/concatpath.c with lib/concat-filename.c.
26545         (Makefile.am): Update.
26546         (Include): Replace pathname.h with filename.h.
26547         * lib/filename.h: Renamed from lib/pathname.h.
26548         (concatenated_filename): Renamed from concatenated_pathname.
26549         * lib/concat-filename.c: Renamed from lib/concatpath.c.
26550         (concatenated_filename): Renamed from concatenated_pathname.
26551         * lib/findprog.c: Include filename.h instead of pathname.h.
26552         (find_in_path): Update.
26553         * lib/javacomp.c: Include filename.h instead of pathname.h.
26554         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
26555         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
26556         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
26557         is_oldgcj_14_13_usable, is_javac_usable): Update.
26558         * lib/javaexec.c: Include filename.h instead of pathname.h.
26559         (execute_java_class): Update.
26560         * modules/findprog: Update.
26561         * modules/javacomp: Update.
26562         * modules/javaexec: Update.
26563         * MODULES.html.sh (File system functions): Add 'filename', remove
26564         'pathname'.
26565
26566 2007-02-25  Bruno Haible  <bruno@clisp.org>
26567
26568         * modules/printf-frexpl-tests: New file.
26569         * tests/test-printf-frexpl.c: New file.
26570
26571         * modules/printf-frexpl: New file.
26572         * lib/printf-frexpl.h: New file.
26573         * lib/printf-frexpl.c: New file.
26574         * m4/printf-frexpl.m4: New file.
26575
26576 2007-02-25  Bruno Haible  <bruno@clisp.org>
26577
26578         * modules/printf-frexp-tests: New file.
26579         * tests/test-printf-frexp.c: New file.
26580
26581         * modules/printf-frexp: New file.
26582         * lib/printf-frexp.h: New file.
26583         * lib/printf-frexp.c: New file.
26584         * m4/printf-frexp.m4: New file.
26585
26586 2007-02-25  Bruno Haible  <bruno@clisp.org>
26587
26588         Assume automake >= 1.10 for the tests.
26589         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
26590         * modules/arctwo-tests: Likewise.
26591         * modules/argp-tests: Likewise.
26592         * modules/avltree-list-tests: Likewise.
26593         * modules/avltree-oset-tests: Likewise.
26594         * modules/avltreehash-list-tests: Likewise.
26595         * modules/carray-list-tests: Likewise.
26596         * modules/crc-tests: Likewise.
26597         * modules/des-tests: Likewise.
26598         * modules/gc-arcfour-tests: Likewise.
26599         * modules/gc-arctwo-tests: Likewise.
26600         * modules/gc-des-tests: Likewise.
26601         * modules/gc-hmac-md5-tests: Likewise.
26602         * modules/gc-hmac-sha1-tests: Likewise.
26603         * modules/gc-md2-tests: Likewise.
26604         * modules/gc-md4-tests: Likewise.
26605         * modules/gc-md5-tests: Likewise.
26606         * modules/gc-pbkdf2-sha1-tests: Likewise.
26607         * modules/gc-rijndael-tests: Likewise.
26608         * modules/gc-sha1-tests: Likewise.
26609         * modules/gc-tests: Likewise.
26610         * modules/getaddrinfo-tests: Likewise.
26611         * modules/hmac-md5-tests: Likewise.
26612         * modules/hmac-sha1-tests: Likewise.
26613         * modules/linked-list-tests: Likewise.
26614         * modules/linkedhash-list-tests: Likewise.
26615         * modules/lock-tests: Likewise.
26616         * modules/md2-tests: Likewise.
26617         * modules/md4-tests: Likewise.
26618         * modules/md5-tests: Likewise.
26619         * modules/rbtree-list-tests: Likewise.
26620         * modules/rbtree-oset-tests: Likewise.
26621         * modules/rbtreehash-list-tests: Likewise.
26622         * modules/read-file-tests: Likewise.
26623         * modules/rijndael-tests: Likewise.
26624         * modules/stdint-tests: Likewise.
26625         * modules/tls-tests: Likewise.
26626
26627 2007-02-24  Bruno Haible  <bruno@clisp.org>
26628
26629         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
26630         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
26631         function; instead check whether isnan with a double argument links.
26632         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
26633         function; instead check whether isnan with a 'long double' argument
26634         links.
26635         Reported by Eric Blake <ebb9@byu.net>.
26636
26637 2007-02-24  Bruno Haible  <bruno@clisp.org>
26638
26639         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
26640         defined.
26641         * lib/isnanl.c: Remove all code. Just include isnan.c.
26642         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
26643
26644 2007-02-25  Jim Meyering  <jim@meyering.net>
26645
26646         Avoid conflicting types for 'unsetenv' on FreeBSD.
26647         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
26648         conflicting with FreeBSD's (5.0 and 6.1) function declaration
26649         in stdlib.h.
26650
26651 2007-02-24  Bruno Haible  <bruno@clisp.org>
26652
26653         * modules/isnanl-nolibm-tests: New file.
26654         * tests/test-isnanl.c: New file.
26655
26656         * modules/isnanl-nolibm: New file.
26657         * lib/isnanl.h: New file.
26658         * lib/isnanl.c: New file.
26659         * m4/isnanl.m4: New file.
26660
26661 2007-02-24  Bruno Haible  <bruno@clisp.org>
26662
26663         * modules/isnan-nolibm-tests: New file.
26664         * tests/test-isnan.c: New file.
26665
26666         * modules/isnan-nolibm: New file.
26667         * lib/isnan.h: New file.
26668         * lib/isnan.c: New file.
26669         * m4/isnan.m4: New file.
26670
26671 2007-02-24  Bruno Haible  <bruno@clisp.org>
26672
26673         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
26674         assume that an exponent fits in 20 bits.
26675
26676 2007-02-24  Jim Meyering  <jim@meyering.net>
26677
26678         * m4/regex.m4: Update the description of the configure-time option,
26679         --without-included-regex, to state accurately what the defaults are,
26680         and perhaps to give people an idea why using this option is risky.
26681
26682 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
26683
26684         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
26685         loops on small arguments.  This attempts to avoid the problem
26686         Bruno Haible reported for AIX 4.3.2 in
26687         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
26688
26689 2007-02-23  Bruno Haible  <bruno@clisp.org>
26690
26691         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
26692         Needed for help2man.
26693
26694 2007-02-23  Karl Berry  <karl@gnu.org>
26695
26696         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
26697         exists, foo.h should be cvs-ignored, not committed.
26698
26699 2007-02-23  Eric Blake  <ebb9@byu.net>
26700
26701         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
26702         * lib/stat-time.h (includes): Likewise.
26703         * lib/utimecmp.c (includes): Likewise.
26704         * lib/utimens.h (includes): Likewise.
26705         * lib/getdate.y (includes): Also include "timespec.h" for use
26706         internal to the module.
26707         * modules/utimens (Depends-on): Revert yesterday's patch.
26708         * modules/nanosleep (Depends-on): Add missing dependency.
26709
26710 2007-02-22  Bruno Haible  <bruno@clisp.org>
26711
26712         * lib/glob.c: Don't include getlogin_r.h.
26713
26714 2007-02-22  Jim Meyering  <jim@meyering.net>
26715
26716         * modules/utimens (Depends-on): Add timespec, required for
26717         utimens.h's inclusion of timespec.h.
26718
26719 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
26720
26721         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
26722         long unreadable paths in GNU/Linux.  Problem reported by Andreas
26723         Schwab in
26724         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
26725         I'll try to think of a better way to fix the Solaris problem.
26726
26727         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
26728         like glibc; on Solaris 10, it fails with errno == EINVAL.
26729         POSIX says the behavior is unspecified if the first argument is NULL,
26730         so play it safe and never pass NULL to the system getcwd.
26731
26732 2007-02-21  Jim Meyering  <jim@meyering.net>
26733
26734         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
26735         of gettimeofday.  It would conflict with the one now always
26736         provided via sys_time_.h.  Reported by Matthew Woehlke, as
26737         an IRIX 6.5 build failure.
26738
26739 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
26740
26741         Minor fixups to port to Solaris 10 with Sun C 5.8.
26742         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
26743         * modules/getcwd (Depends-on): Add dirfd.
26744         * lib/putenv.c (putenv): #undef it.
26745         (rpl_putenv): New decl.
26746         (malloc, free): Include <stdlib.h> rather than prototyping separately.
26747
26748 2007-02-20  Bruno Haible  <bruno@clisp.org>
26749
26750         * modules/stdio-tests: New file.
26751         * tests/test-stdio.c: New file.
26752
26753         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
26754         (Depends-on): Add stdio.
26755         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
26756         (Include): Use <stdio.h> instead of vsnprintf.h.
26757         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
26758         HAVE_DECL_VSNPRINTF.
26759         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
26760
26761         * modules/snprintf (Files): Remove lib/snprintf.h.
26762         (Depends-on): Add stdio.
26763         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
26764         (Include): Use <stdio.h> instead of snprintf.h.
26765         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
26766         HAVE_DECL_SNPRINTF.
26767         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
26768         * lib/getaddrinfo.c: Likewise.
26769
26770         * modules/stdio: New file.
26771         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
26772         * lib/snprintf.h: Remove file.
26773         * lib/vsnprintf.h: Remove file.
26774         * lib/.cppi-disable: Remove snprintf.h.
26775         * m4/stdio_h.m4: New file.
26776         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
26777
26778 2007-02-20  Jim Meyering  <jim@meyering.net>
26779
26780         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
26781         used by e.g., mingw.  From Bruno Haible.
26782
26783 2007-02-19  Bruno Haible  <bruno@clisp.org>
26784
26785         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
26786         warnings.
26787         Reported by Ben Pfaff <blp@cs.stanford.edu>.
26788
26789 2007-02-19  Bruno Haible  <bruno@clisp.org>
26790
26791         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
26792         from mingw users.
26793
26794 2007-02-19  Bruno Haible  <bruno@clisp.org>
26795
26796         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
26797         warnings.
26798         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
26799
26800 2007-02-19  Jim Meyering  <jim@meyering.net>
26801
26802         Don't use FD after a successful "fdopendir (fd)".
26803         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
26804         Reset it by calling dirfd on the just-obtained DIR*.
26805
26806         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
26807         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
26808
26809 2007-02-18  Bruno Haible  <bruno@clisp.org>
26810
26811         * lib/readlink.c: Include <unistd.h>.
26812         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
26813         HAVE_READLINK.
26814         * modules/readlink (Depends-on): Add unistd.
26815         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26816         (Include): Add <unistd.h>.
26817
26818         * lib/getlogin_r.h: Remove file.
26819         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
26820         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
26821         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
26822         HAVE_DECL_GETLOGIN_R.
26823         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
26824         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26825         (Include): Use <unistd.h> instead of getlogin_r.h.
26826
26827         * lib/getcwd.h: Remove file.
26828         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
26829         * lib/xgetcwd.c: Likewise.
26830         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
26831         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
26832         * modules/getcwd (Files): Remove lib/getcwd.h.
26833         (Depends-on): Add unistd.
26834         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26835         (Include): Use <unistd.h> instad of getcwd.h.
26836
26837         * lib/ftruncate.c: Include <unistd.h> first.
26838         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
26839         Set HAVE_FTRUNCATE.
26840         * modules/ftruncate (Depends-on): Add unistd.
26841         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26842
26843         * lib/fchdir.c: Include <unistd.h> first.
26844         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
26845         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
26846         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
26847         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26848         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
26849
26850         * lib/dup2.c: Include <unistd.h> first.
26851         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
26852         HAVE_DUP2.
26853         * modules/dup2 (Depends-on): Add unistd.
26854         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26855
26856         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
26857         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
26858         REPLACE_CHOWN. Don't define chown as a macro here.
26859         * modules/chown (Depends-on): Add unistd.
26860         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
26861
26862         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
26863         Add definition for GL_LINK_WARNING.
26864         (chown, dup2): New declarations.
26865         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
26866         link warning.
26867         (ftruncate): New declaration.
26868         (getcwd): New declaration, taken from old getcwd.h.
26869         (getlogin_r): New declaration, taken from old getlogin_r.h.
26870         (readlink): New declaration.
26871         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
26872         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
26873         (gl_PREREQ_UNISTD): Remove macro.
26874         (gl_UNISTD_MODULE_INDICATOR): New macro.
26875         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
26876         many new variables. Don't set UNISTD_H.
26877         * modules/unistd (Description): Change.
26878         (Depends-on): Add link-warning.
26879         (configure.ac): Update.
26880         (Makefile.am): Create unistd.h always. Substitute many new variables
26881         into it.
26882
26883 2007-02-18  Bruno Haible  <bruno@clisp.org>
26884
26885         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
26886         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
26887         HAVE_GETSUBOPT.
26888         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
26889         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
26890         * lib/getsubopt.h: Remove file.
26891         * modules/getsubopt (Files): Remove lib/getsubopt.h.
26892         (Depends-on): Add stdlib.
26893         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26894         (Includes): Use <stdlib.h> instead of getsubopt.h.
26895         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
26896         Set HAVE_GETSUBOPT.
26897         * lib/getsubopt.c: Don't include getsubopt.h.
26898
26899 2007-02-18  Bruno Haible  <bruno@clisp.org>
26900
26901         * modules/fchdir (Depends-on): Add dup2.
26902
26903 2007-02-18  Bruno Haible  <bruno@clisp.org>
26904
26905         * lib/stdlib_.h: Handle glibc's special invocation convention
26906         specially.
26907
26908 2007-02-18  Bruno Haible  <bruno@clisp.org>
26909
26910         * modules/stdlib-tests: New file.
26911         * tests/test-stdlib.c: New file.
26912
26913         * modules/mkstemp (Files): Remove lib/mkstemp.h.
26914         (Depends-on): Add stdlib.
26915         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26916         (Includes): Use <stdlib.h> instead of mkstemp.h.
26917         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
26918         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
26919         * lib/mkstemp.c: Don't include mkstemp.h.
26920         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
26921         * lib/stdlib--.h: Don't include mkstemp.h.
26922
26923         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
26924         (Depends-on): Add stdlib.
26925         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
26926         (Includes): Use <stdlib.h> instead of mkdtemp.h.
26927         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
26928         HAVE_MKDTEMP.
26929         * lib/mkdtemp.c: Don't include mkdtemp.h.
26930         * lib/clean-temp.c: Don't include mkdtemp.h.
26931
26932         * modules/exit (Files): Remove lib/exit.h.
26933         (Depends-on): Add stdlib.
26934         (Makefile.am): Remove lib_SOURCES.
26935         (Include): Use <stdlib.h> instead of exit.h.
26936         * lib/argmatch.c: Don't include exit.h.
26937         * lib/execute.c: Likewise.
26938         * lib/pagealign_alloc.c: Likewise.
26939         * lib/pipe.c: Likewise.
26940         * lib/wait-process.c: Likewise.
26941         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
26942         * lib/exitfail.c: Likewise.
26943         * lib/savewd.c: Likewise.
26944         * lib/xsetenv.c: Likewise.
26945
26946         * modules/stdlib: New file.
26947         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
26948         and extra comments about mkstemp().
26949         * lib/exit.h: Remove file.
26950         * lib/mkdtemp.h: Remove file.
26951         * lib/mkstemp.h: Remove file.
26952         * m4/stdlib_h.m4: New file.
26953         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
26954
26955 2007-02-18  Bruno Haible  <bruno@clisp.org>
26956
26957         * modules/math-tests: New file.
26958         * tests/test-math.c: New file.
26959
26960         * modules/math: New file.
26961         * modules/mathl (Files): Remove lib/mathl.h.
26962         (Depends-on): Add math.
26963         (Makefile.am): Don't mention mathl.h.
26964         (Include): Use <math.h> instead of mathl.h.
26965         * lib/math_.h: New file.
26966         * lib/mathl.h: Remove file.
26967         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
26968         mathl.h.
26969         * lib/asinl.c: Likewise.
26970         * lib/atanl.c: Likewise.
26971         * lib/ceill.c: Likewise.
26972         * lib/cosl.c: Likewise.
26973         * lib/expl.c: Likewise.
26974         * lib/floorl.c: Likewise.
26975         * lib/frexpl.c: Likewise.
26976         * lib/ldexpl.c: Likewise.
26977         * lib/logl.c: Likewise.
26978         * lib/sincosl.c: Likewise.
26979         * lib/sinl.c: Likewise.
26980         * lib/sqrtl.c: Likewise.
26981         * lib/tanl.c: Likewise.
26982         * lib/trigl.c: Likewise.
26983         * m4/math_h.m4: New file.
26984         * MODULES.html.sh (Mathematics): Add math.
26985
26986 2007-02-17  Bruno Haible  <bruno@clisp.org>
26987
26988         * modules/wctype-tests: New file.
26989         * tests/test-wctype.c: New file.
26990
26991         * modules/wchar-tests: New file.
26992         * tests/test-wchar.c: New file.
26993
26994         * modules/unistd-tests: New file.
26995         * tests/test-unistd.c: New file.
26996
26997         * modules/time-tests: New file.
26998         * tests/test-time.c: New file.
26999
27000         * modules/sysexits-tests: New file.
27001         * tests/test-sysexits.c: New file.
27002
27003         * modules/sys_time-tests: New file.
27004         * tests/test-sys_time.c: New file.
27005
27006         * modules/sys_stat-tests: New file.
27007         * tests/test-sys_stat.c: New file.
27008
27009         * modules/sys_socket-tests: New file.
27010         * tests/test-sys_socket.c: New file.
27011
27012         * modules/sys_select-tests: New file.
27013         * tests/test-sys_select.c: New file.
27014
27015         * modules/string-tests: New file.
27016         * tests/test-string.c: New file.
27017
27018         * modules/stdbool-tests: New file.
27019         * tests/test-stdbool.c: New file.
27020
27021         * modules/netinet_in-tests: New file.
27022         * tests/test-netinet_in.c: New file.
27023
27024         * modules/inttypes-tests: New file.
27025         * tests/test-inttypes.c: New file.
27026
27027         * modules/fcntl-tests: New file.
27028         * tests/test-fcntl.c: New file.
27029
27030         * modules/byteswap-tests: New file.
27031         * tests/test-byteswap.c: New file.
27032
27033         * modules/arpa_inet-tests: New file.
27034         * tests/test-arpa_inet.c: New file.
27035
27036 2007-02-17  Bruno Haible  <bruno@clisp.org>
27037
27038         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
27039         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
27040         if the corresponding module is not enabled. Emit link warnings if
27041         the function is used nevertheless.
27042         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
27043         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
27044         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
27045         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
27046         * modules/inttypes (Depends-on): Add link-warning.
27047         (Makefile.am): Copy the contents of build-aux/link-warning.h into
27048         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
27049         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
27050         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
27051         * modules/imaxdiv (configure.ac): Likewise.
27052         * modules/strtoimax (configure.ac): Likewise.
27053         * modules/strtoumax (configure.ac): Likewise.
27054
27055 2007-02-17  Bruno Haible  <bruno@clisp.org>
27056
27057         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
27058         gl_STRING_MODULE_INDICATOR_DEFAULTS.
27059         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
27060         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
27061
27062 2007-02-17  Bruno Haible  <bruno@clisp.org>
27063
27064         * modules/link-warning: New file.
27065         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
27066         * lib/string_.h (GL_LINK_WARNING): Remove definition.
27067         * modules/string (Depends-on): Add link-warning.
27068         (Makefile.am): Copy the contents of build-aux/link-warning.h into
27069         string.h.
27070         * MODULES.html.sh (Support for building libraries and executables): Add
27071         link-warning.
27072
27073 2007-02-17  Bruno Haible  <bruno@clisp.org>
27074
27075         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
27076         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
27077         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
27078         long lines.
27079
27080 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
27081             Bruno Haible  <bruno@clisp.org>
27082
27083         * modules/tmpfile: New file.
27084         * lib/tmpfile.c: New file.
27085         * m4/tmpfile.m4: New file.
27086         * MODULES.html.sh (func_all_modules): New section "Input/output".
27087
27088 2007-02-15  Bruno Haible  <bruno@clisp.org>
27089
27090         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
27091         (supports_delete_on_close): New function.
27092         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
27093
27094 2007-02-14  Bruno Haible  <bruno@clisp.org>
27095
27096         * modules/mbspcasecmp-tests: New file.
27097         * tests/test-mbspcasecmp.sh: New file.
27098         * tests/test-mbspcasecmp.c: New file.
27099
27100         New module mbspcasecmp.
27101         * modules/mbspcasecmp: New file.
27102         * lib/mbspcasecmp.c: New file.
27103         * lib/string_.h (strncasecmp): Change warning message.
27104         (mbspcasecmp): New declaration.
27105         * m4/mbspcasecmp.m4: New file.
27106         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27107         GNULIB_MBSPCASECMP.
27108         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
27109         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
27110
27111 2007-02-14  Bruno Haible  <bruno@clisp.org>
27112
27113         * modules/mbsncasecmp-tests: New file.
27114         * tests/test-mbsncasecmp.sh: New file.
27115         * tests/test-mbsncasecmp.c: New file.
27116
27117         New module mbsncasecmp.
27118         * modules/mbsncasecmp: New file.
27119         * lib/mbsncasecmp.c: New file.
27120         * lib/string_.h (mbsncasecmp): New declaration.
27121         * m4/mbsncasecmp.m4: New file.
27122         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27123         GNULIB_MBSNCASECMP.
27124         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
27125         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
27126
27127 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
27128
27129         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
27130         Verify that it doesn't overlap with our flags.
27131         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
27132         do not have the desired effect in multibyte locales; instead, use
27133         mbscasecmp.
27134         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
27135         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
27136         we don't require GNU fnmatch ourselves (if our users require it, they
27137         should do so explicitly).
27138
27139         Fix regex code so it doesn't rely on strcasecmp.
27140         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
27141         Otherwise, include gnulib's langinfo.h.
27142         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
27143         undesirable behavior in non-C locales.  Instead, rely on localecharset.
27144         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
27145         * modules/regex (FILES): Remove m4/codeset.m4.
27146         (Depends-on): Add localcharset.  Remove strcase.
27147
27148 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27149
27150         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
27151         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
27152
27153 2007-02-13  Bruno Haible  <bruno@clisp.org>
27154
27155         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
27156         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27157
27158 2007-02-12  Bruno Haible  <bruno@clisp.org>
27159
27160         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
27161         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
27162         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
27163         time warning rather than a link error.
27164
27165 2007-02-12  Bruno Haible  <bruno@clisp.org>
27166
27167         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
27168         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
27169         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27170
27171 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
27172
27173         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
27174         args, not 2.
27175
27176 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
27177
27178         New module 'time', so that apps can include <time.h> as per
27179         POSIX and GNU instead of separate include files like time_r.h
27180         and timegm.h.  This implementation tries out a simpler approach
27181         for replacing decls in standard include files (as compared to
27182         the string module), somewhat as an experiment.
27183
27184         * config/srclist.txt: Comment out mktime.c for now.
27185         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
27186         since it doesn't apply any more.  Use generic wording instead.
27187         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
27188         'time'.
27189         * lib/time_.h, m4/time_h.m4, modules/time: New files.
27190         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
27191         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
27192         Don't include <sys/types.h>; no longer needed since we assume C89.
27193         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
27194         * lib/strftime.c: Likewise.
27195         * lib/time_r.c: Likewise.
27196         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
27197         * lib/nanosleep.c: Include <time.h> first, to check interface.
27198         * lib/strptime.c: Likewise.
27199         * lib/time_r.c: Likewise.
27200         * lib/timegm.c: Likewise.
27201         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
27202         needed.
27203         * lib/timegm.c: Don't include timegm.h; no longer needed.
27204         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
27205         time.h now handles any problems in that area.
27206         (struct timespec, nanosleep): Remove; time.h now arranges for these.
27207         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
27208         that time.h defines struct timespec.
27209         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
27210         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
27211         handles that.
27212         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
27213         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
27214         needed.  Set REPLACE_LOCALTIME.
27215         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
27216         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
27217         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
27218         nanosleep; time_h.m4 now does that.  Don't require
27219         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
27220         module handles this now.
27221         * modules/getdate (Depends-on): Remove timespec.  Add time.
27222         * modules/nanosleep (Depends-on): Likewise.
27223         * modules/stat-time (Depends-on): Likewise.
27224         * modules/nanosleep (Include): Include time.h, not timespec.h.
27225         * modules/strptime (Files): Remove lib/strptime.h.
27226         (Depends-on): Add extensions, time.
27227         (Include): Include time.h, not strptime.h.
27228         * modules/time_r (Files): Remove lib/time_r.h.
27229         (Depends-on): Add time.
27230         (Include): Include time.h, not time_r.h.
27231         * modules/timegm: Likewise.
27232         * modules/timespec (Description): Now does timespec-related decls
27233         of our own, instead of struct timespec itself.
27234         (Depends-on): Add time; remove extensions.
27235         (Maintainer): Add self.
27236         * modules/utimecmp (Depends-on): Add time; remove timespec.
27237         * modules/utimens (Depends-on): Likewise.
27238         * modules/xnanosleep (Depends-on): Likewise.
27239
27240 2007-02-11  Bruno Haible  <bruno@clisp.org>
27241
27242         * lib/c-strstr.c: Include allocsa.h.
27243         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
27244         * lib/c-strcasestr.c: Include allocsa.h.
27245         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
27246         * lib/strcasestr.c: Include allocsa.h.
27247         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
27248         * lib/mbsstr.c: Include allocsa.h.
27249         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
27250         allocsa/freesa instead of malloc/free.
27251         * lib/mbscasestr.c: Include allocsa.h.
27252         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
27253         allocsa/freesa instead of malloc/free.
27254         * modules/c-strstr (Depends-on): Add allocsa.
27255         * modules/c-strcasestr (Depends-on): Likewise.
27256         * modules/strcasestr (Depends-on): Likewise.
27257         * modules/mbsstr (Depends-on): Likewise.
27258         * modules/mbscasestr (Depends-on): Likewise.
27259
27260 2007-02-11  Bruno Haible  <bruno@clisp.org>
27261
27262         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
27263
27264         * modules/mbsspn-tests: New file.
27265         * tests/test-mbsspn.sh: New file.
27266         * tests/test-mbsspn.c: New file.
27267
27268 2007-02-11  Bruno Haible  <bruno@clisp.org>
27269
27270         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
27271
27272         * modules/mbspbrk-tests: New file.
27273         * tests/test-mbspbrk.sh: New file.
27274         * tests/test-mbspbrk.c: New file.
27275
27276 2007-02-11  Bruno Haible  <bruno@clisp.org>
27277
27278         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
27279         unneeded cast.
27280
27281         * modules/mbscspn-tests: New file.
27282         * tests/test-mbscspn.sh: New file.
27283         * tests/test-mbscspn.c: New file.
27284
27285 2007-02-11  Bruno Haible  <bruno@clisp.org>
27286
27287         * modules/mbscasecmp-tests: New file.
27288         * tests/test-mbscasecmp.sh: New file.
27289         * tests/test-mbscasecmp.c: New file.
27290
27291 2007-02-11  Bruno Haible  <bruno@clisp.org>
27292
27293         Ensure O(n) worst-case complexity of mbscasestr.
27294         * lib/mbscasestr.c: Include stdbool.h.
27295         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
27296         functions.
27297         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
27298         the bookkeeping indicates that it's worth it.
27299         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
27300
27301         * modules/mbscasestr-tests: New file.
27302         * tests/test-mbscasestr1.c: New file.
27303         * tests/test-mbscasestr2.sh: New file.
27304         * tests/test-mbscasestr2.c: New file.
27305         * tests/test-mbscasestr3.sh: New file.
27306         * tests/test-mbscasestr3.c: New file.
27307         * tests/test-mbscasestr4.sh: New file.
27308         * tests/test-mbscasestr4.c: New file.
27309         * m4/locale-tr.m4: New file.
27310
27311 2007-02-11  Bruno Haible  <bruno@clisp.org>
27312
27313         Ensure O(n) worst-case complexity of mbsstr.
27314         * lib/mbsstr.c: Include stdbool.h.
27315         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
27316         functions.
27317         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
27318         bookkeeping indicates that it's worth it.
27319         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
27320
27321         * modules/mbsstr-tests: New file.
27322         * tests/test-mbsstr1.c: New file.
27323         * tests/test-mbsstr2.sh: New file.
27324         * tests/test-mbsstr2.c: New file.
27325         * tests/test-mbsstr3.sh: New file.
27326         * tests/test-mbsstr3.c: New file.
27327         * m4/locale-fr.m4: New file.
27328
27329 2007-02-11  Bruno Haible  <bruno@clisp.org>
27330
27331         * lib/mbsrchr.c (mbsrchr): Fix bug.
27332
27333         * modules/mbsrchr-tests: New file.
27334         * tests/test-mbsrchr.sh: New file.
27335         * tests/test-mbsrchr.c: New file.
27336
27337 2007-02-11  Bruno Haible  <bruno@clisp.org>
27338
27339         * lib/mbschr.c (mbschr): Fix bug.
27340
27341         * modules/mbschr-tests: New file.
27342         * tests/test-mbschr.sh: New file.
27343         * tests/test-mbschr.c: New file.
27344         * m4/locale-zh.m4: New file.
27345
27346 2007-02-11  Bruno Haible  <bruno@clisp.org>
27347
27348         Support for copying multibyte string iterators.
27349         * lib/mbiter.h: Include <string.h>.
27350         (mbiter_multi_copy): New function.
27351         (mbi_copy): New macro.
27352         * lib/mbuiter.h: Include <string.h>.
27353         (mbuiter_multi_copy): New function.
27354         (mbui_copy): New macro.
27355
27356 2007-02-11  Bruno Haible  <bruno@clisp.org>
27357
27358         New module mbslen.
27359         * modules/mbslen: New file.
27360         * lib/mbslen.c: New file.
27361         * lib/string_.h (mbslen): New declaration.
27362         * m4/mbslen.m4: New file.
27363         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27364         GNULIB_MBSLEN.
27365         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
27366         * MODULES.html.sh (Internationalization functions): Add mbslen.
27367
27368 2007-02-11  Bruno Haible  <bruno@clisp.org>
27369
27370         Ensure O(n) worst-case complexity of strcasestr substitute.
27371         * lib/strcasestr.c: Include stdbool.h.
27372         (knuth_morris_pratt): New function.
27373         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
27374         bookkeeping indicates that it's worth it.
27375         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
27376
27377         * modules/strcasestr-tests: New file.
27378         * tests/test-strcasestr.c: New file.
27379
27380 2007-02-11  Bruno Haible  <bruno@clisp.org>
27381
27382         Ensure O(n) worst-case complexity of c_strcasestr.
27383         * lib/c-strcasestr.c: Include stdbool.h, string.h.
27384         (knuth_morris_pratt): New function.
27385         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
27386         the bookkeeping indicates that it's worth it.
27387         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
27388
27389         * modules/c-strcasestr-tests: New file.
27390         * tests/test-c-strcasestr.c: New file.
27391
27392 2007-02-11  Bruno Haible  <bruno@clisp.org>
27393
27394         Ensure O(n) worst-case complexity of c_strstr.
27395         * lib/c-strstr.c: Include stdbool.h, string.h.
27396         (knuth_morris_pratt): New function.
27397         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
27398         bookkeeping indicates that it's worth it.
27399         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
27400
27401         * lib/c-strstr.c: Complete rewrite for maintainability.
27402
27403         * modules/c-strstr-tests: New file.
27404         * tests/test-c-strstr.c: New file.
27405
27406 2007-02-11  Bruno Haible  <bruno@clisp.org>
27407
27408         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
27409         5.2.1 and earlier, whereby \055 was treated just like the range
27410         delimiter '-'.
27411         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
27412
27413 2007-02-08  Bruno Haible  <bruno@clisp.org>
27414
27415         * modules/regex (Depends-on): Add stdbool.
27416         Reported by Dalibor Topic <robilad@kaffe.org>.
27417
27418 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
27419
27420         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
27421         Prefer returning from main to exiting from it.
27422         Remove unnecessary parens after sizeof.
27423
27424 2007-02-05  Bruno Haible  <bruno@clisp.org>
27425
27426         New module mbssep.
27427         * modules/mbssep: New file.
27428         * lib/mbssep.c: New file.
27429         * lib/string_.h (strsep): Add a conditional link warning.
27430         (mbssep): New declaration.
27431         * m4/mbssep.m4: New file.
27432         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27433         GNULIB_MBSSEP.
27434         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
27435         * MODULES.html.sh (Internationalization functions): Add mbssep.
27436
27437 2007-02-05  Bruno Haible  <bruno@clisp.org>
27438
27439         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
27440         Optimize search in case of 1 delimiter.
27441
27442 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
27443
27444         * lib/acl.h: Include sys/types.h before sys/acl.h.
27445
27446 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
27447
27448         Merge upstream fix for glibc bugzilla #3957:
27449
27450         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
27451
27452         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
27453         bit for RE_HAT_LISTS_NOT_NEWLINE.
27454         (build_charclass_op): Remove bogus comment.
27455
27456 2007-02-05  Simon Josefsson  <simon@josefsson.org>
27457
27458         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
27459
27460 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
27461
27462         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
27463         * lib/memmem.c [!defined _LIBC]: Include config.h.
27464
27465 2007-02-04  Bruno Haible  <bruno@clisp.org>
27466
27467         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
27468         warning message.
27469
27470 2007-02-04  Bruno Haible  <bruno@clisp.org>
27471
27472         New module mbstok_r.
27473         * modules/mbstok_r: New file.
27474         * lib/mbstok_r.c: New file.
27475         * lib/string_.h (strtok_r): Change argument names to match the
27476         comments. Add a conditional link warning.
27477         (mbstok_r): New declaration.
27478         * m4/mbstok_r.m4: New file.
27479         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27480         GNULIB_MBSTOK_R.
27481         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
27482         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
27483
27484 2007-02-04  Bruno Haible  <bruno@clisp.org>
27485
27486         New module mbsspn.
27487         * modules/mbsspn: New file.
27488         * lib/mbsspn.c: New file.
27489         * lib/string_.h (strspn): Add a conditional link warning.
27490         (mbsspn): New declaration.
27491         * m4/mbsspn.m4: New file.
27492         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27493         GNULIB_MBSSPN.
27494         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
27495         * MODULES.html.sh (Internationalization functions): Add mbsspn.
27496
27497 2007-02-04  Bruno Haible  <bruno@clisp.org>
27498
27499         New module mbspbrk.
27500         * modules/mbspbrk: New file.
27501         * lib/mbspbrk.c: New file.
27502         * lib/string_.h (strpbrk): Add a conditional link warning.
27503         (mbspbrk): New declaration.
27504         * m4/mbspbrk.m4: New file.
27505         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27506         GNULIB_MBSPBRK.
27507         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
27508         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
27509
27510 2007-02-04  Bruno Haible  <bruno@clisp.org>
27511
27512         New module mbscspn.
27513         * modules/mbscspn: New file.
27514         * lib/mbscspn.c: New file.
27515         * lib/string_.h (strcspn): Add a conditional link warning.
27516         (mbscspn): New declaration.
27517         * m4/mbscspn.m4: New file.
27518         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27519         GNULIB_MBSCSPN.
27520         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
27521         * MODULES.html.sh (Internationalization functions): Add mbscspn.
27522
27523 2007-02-04  Bruno Haible  <bruno@clisp.org>
27524
27525         New module mbscasestr, reduced goal of strcasestr.
27526         * modules/mbscasestr: New file.
27527         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
27528         (mbscasestr): Renamed from strcasestr.
27529         * lib/strcasestr.c: Don't include mbuiter.h.
27530         (strcasestr): Remove support for multibyte locales.
27531         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
27532         Change the conditional link warning.
27533         (mbscasestr): New declaration.
27534         * m4/mbscasestr.m4: New file.
27535         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
27536         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
27537         REPLACE_STRCASESTR.
27538         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
27539         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27540         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
27541         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
27542         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
27543         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
27544         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
27545         (Depends-on): Remove mbuiter.
27546         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
27547
27548 2007-02-04  Bruno Haible  <bruno@clisp.org>
27549
27550         Simplify handling of strncasecmp.
27551         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
27552         the conditional link warning.
27553         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
27554         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
27555         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
27556         * modules/strcase (configure.ac): Don't invoke
27557         gl_STRING_MODULE_INDICATOR.
27558         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
27559
27560 2007-02-04  Bruno Haible  <bruno@clisp.org>
27561
27562         New module mbscasecmp, reduced goal of strcasecmp.
27563         * modules/mbscasecmp: New file.
27564         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
27565         (mbscasecmp): Renamed from strcasecmp.
27566         * lib/strcasecmp.c: Don't include mbuiter.h.
27567         (strcasecmp): Remove support for multibyte locales.
27568         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
27569         Change the conditional link warning.
27570         (mbscasecmp): New declaration.
27571         * m4/mbscasecmp.m4: New file.
27572         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
27573         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
27574         REPLACE_STRCASECMP.
27575         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
27576         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27577         GNULIB_MBSCASECMP.
27578         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
27579         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
27580         * modules/strcase (Files): Remove m4/mbrtowc.m4.
27581         (Depends-on): Remove mbuiter.
27582         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
27583
27584 2007-02-04  Bruno Haible  <bruno@clisp.org>
27585
27586         New module mbsstr. Remove module strstr.
27587         * modules/mbsstr: New file.
27588         * modules/strstr: Remove file.
27589         * lib/mbsstr.c: Renamed from lib/strstr.c.
27590         (mbsstr): Renamed from strstr.
27591         * lib/string_.h (strstr): Remove declaration. Change the conditional
27592         link warning.
27593         (mbsstr): New declaration.
27594         * m4/mbsstr.m4: New file.
27595         * m4/strstr.m4: Remove file.
27596         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
27597         REPLACE_STRSTR.
27598         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
27599         Don't initialize GNULIB_STRSTR.
27600         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
27601         substitute GNULIB_STRSTR and REPLACE_STRSTR.
27602         * MODULES.html.sh (Internationalization functions): Add mbsstr.
27603         (Support for systems lacking ANSI C 89): Remove strstr.
27604
27605 2007-02-04  Bruno Haible  <bruno@clisp.org>
27606
27607         New module mbsrchr.
27608         * modules/mbsrchr: New file.
27609         * lib/mbsrchr.c: New file.
27610         * lib/string_.h (strrchr): Add a conditional link warning.
27611         (mbsrchr): New declaration.
27612         * m4/mbsrchr.m4: New file.
27613         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27614         GNULIB_MBSRCHR.
27615         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
27616         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
27617
27618 2007-02-04  Bruno Haible  <bruno@clisp.org>
27619
27620         New module mbschr.
27621         * modules/mbschr: New file.
27622         * lib/mbschr.c: New file.
27623         * lib/string_.h (strchr): Add a conditional link warning.
27624         (mbschr): New declaration.
27625         * m4/mbschr.m4: New file.
27626         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
27627         GNULIB_MBSCHR.
27628         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
27629         * MODULES.html.sh (Internationalization functions): Add mbschr.
27630
27631 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
27632
27633         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
27634
27635         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
27636
27637 2007-02-04  Bruno Haible  <bruno@clisp.org>
27638
27639         New module description section 'configure.ac-early'.
27640         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
27641         (func_get_autoconf_early_snippet): New function.
27642         (func_import, func_create_testdir): Use it. Remove special cases for
27643         modules 'extensions' and 'lock'.
27644         * modules/extensions (configure.ac-early): Require
27645         gl_USE_SYSTEM_EXTENSIONS.
27646         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
27647
27648 2007-02-04  Bruno Haible  <bruno@clisp.org>
27649
27650         Make use of gcj-4.3's -fsource and -ftarget option.
27651         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
27652         and if so try the options -fsource and -ftarget.
27653         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
27654         source_version, ftarget_option, target_version arguments.
27655         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
27656         (is_envjavac_oldgcj_14_14_usable): Renamed from
27657         is_envjavac_gcj_14_14_usable.
27658         (is_envjavac_oldgcj_14_13_usable): Renamed from
27659         is_envjavac_gcj_14_13_usable.
27660         (is_gcj_present): Update.
27661         (is_gcj_43, is_gcj43_usable): New functions.
27662         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
27663         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
27664         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
27665         try the options -fsource and -ftarget.
27666
27667 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
27668
27669         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
27670         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
27671         larger value.
27672
27673 2007-02-03  Jim Meyering  <jim@meyering.net>
27674
27675         Give tools a better chance to allocate space for very large buffers.
27676         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
27677
27678         Make pwd and readlink work also when run with an unreadable parent dir
27679         on systems with openat support.
27680         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
27681         provided getcwd function, even when we have openat support.
27682         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
27683
27684 2007-02-02  Bruno Haible  <bruno@clisp.org>
27685
27686         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
27687         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
27688         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
27689         portability problems if one of these functions is only used on specific
27690         platforms.
27691         Reported by Paul Eggert.
27692
27693 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
27694
27695         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
27696         is causing more trouble than it's curing.
27697         * lib/regex_internal.h (__mempcpy): Remove.
27698         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
27699         (and make the code a tad smaller to boot).
27700         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
27701
27702 2007-02-02  Jim Meyering  <jim@meyering.net>
27703
27704         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
27705         section, not in the Makefile.am: one.
27706
27707 2007-02-02  Eric Blake  <ebb9@byu.net>
27708
27709         * lib/strchrnul.c: Always include config.h first.
27710
27711         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
27712         gnulib strstr is not necessary here.
27713
27714 2007-02-02  Simon Josefsson  <simon@josefsson.org>
27715
27716         * m4/socklen.m4: Fix typo.
27717
27718 2007-02-02  Eric Blake  <ebb9@byu.net>
27719
27720         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
27721         * modules/netinet_in (Makefile.am): Likewise.
27722
27723 2007-02-01  Bruno Haible  <bruno@clisp.org>
27724
27725         * lib/string_.h (GL_LINK_WARNING): New macro.
27726         (strcasecmp, strstr, strcasestr): If provided by the system,
27727         conditionally define as a macro that leads to a warning instead of to
27728         an error.
27729         (strncasecmp): Conditionally define as a macro that leads to a warning.
27730
27731 2007-02-01  Karl Berry  <karl@gnu.org>
27732
27733         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
27734
27735 2007-02-01  Bruno Haible  <bruno@clisp.org>
27736
27737         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
27738         renamings.
27739
27740 2007-02-01  Eric Blake  <ebb9@byu.net>
27741
27742         * modules/regex (Depends-on): Revert dependence on mempcpy.
27743         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
27744         module's definition of mempcpy.
27745         Reported by Paul Eggert.
27746
27747 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
27748
27749         * lib/string_.h: If the gnulib module XYZ is not present, undefine
27750         the symbol XYZ before redefining it.  This fixes a problem with
27751         programs that don't use XYZ, when compiled on systems that define
27752         XYZ to something else.
27753
27754 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
27755
27756         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
27757         occurs when "mkdir -m foo" creates a setgid directory that is (1)
27758         writeable to group or other and (2) is intended to have a special
27759         mode bit that is set or cleared.  In such a case, the directory
27760         should be neither group- nor other-writeable until the special
27761         mode bits are right.
27762
27763 2007-01-31  Eric Blake  <ebb9@byu.net>
27764
27765         * modules/mountlist (Depends-on): Add strstr.
27766
27767         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
27768         bug.
27769         * modules/string (Makefile.am): Remove redundant replacement.
27770         * modules/regex (Depends-on): Add mempcpy.
27771
27772 2007-01-31  Bruno Haible  <bruno@clisp.org>
27773
27774         New module description field 'Link'.
27775         * gnulib-tool (func_usage): Document --extract-link-directive.
27776         (sed_extract_prog): Recognize 'Link' directive.
27777         (func_get_link_directive): New function.
27778         (func_import): Show summary of link directives.
27779         Handle --extract-link-directive option.
27780         * modules/acl (Link): New section.
27781         * modules/clock-time (Link): New section.
27782         * modules/euidaccess (Link): New section.
27783         * modules/gettext (Link): New section.
27784         * modules/iconv (Link): New section.
27785         * modules/lock (Link): New section.
27786         * modules/nanosleep (Link): New section.
27787         * modules/readline (Link): New section.
27788
27789 2007-01-27  Bruno Haible  <bruno@clisp.org>
27790
27791         Enforce the use of gnulib modules for unportable <string.h> functions.
27792         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
27793         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
27794         (gl_HEADER_STRING_H_BODY): Require it.
27795         * lib/string_.h: If the gnulib module XYZ is not present, redefine
27796         the symbol XYZ to one that gives a link error.
27797         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
27798         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
27799         * modules/mempcpy (configure.ac): Likewise.
27800         * modules/memrchr (configure.ac): Likewise.
27801         * modules/stpcpy (configure.ac): Likewise.
27802         * modules/stpncpy (configure.ac): Likewise.
27803         * modules/strcase (configure.ac): Likewise.
27804         * modules/strcasestr (configure.ac): Likewise.
27805         * modules/strchrnul (configure.ac): Likewise.
27806         * modules/strdup (configure.ac): Likewise.
27807         * modules/strndup (configure.ac): Likewise.
27808         * modules/strnlen (configure.ac): Likewise.
27809         * modules/strpbrk (configure.ac): Likewise.
27810         * modules/strsep (configure.ac): Likewise.
27811         * modules/strstr (configure.ac): Likewise.
27812         * modules/strtok_r (configure.ac): Likewise.
27813
27814 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
27815
27816         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
27817
27818 2007-01-30  Jim Meyering  <jim@meyering.net>
27819
27820         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
27821
27822 2007-01-29  Bruno Haible  <bruno@clisp.org>
27823
27824         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
27825         * lib/execute.c: Likewise.
27826         * lib/pipe.c: Likewise.
27827         * lib/printf-args.h: Likewise.
27828         * lib/printf-args.c: Likewise.
27829         * lib/printf-parse.c: Likewise.
27830         * lib/vasnprintf.c: Likewise.
27831
27832 2007-01-29  Eric Blake  <ebb9@byu.net>
27833
27834         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
27835         declaration.
27836
27837 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
27838
27839         * lib/strptime.h (strptime): Use 'restrict' for args where
27840         POSIX requires this.
27841         * lib/strptime.c (strptime): Likewise.
27842         Change license notice from LGPL to GPL, since gnulib-tool will
27843         change this as needed.
27844         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
27845         defined.
27846         Include "strptime.h" first, to check interface.
27847         Do not #undef _LIBC and _NL_CURRENT.
27848         Do not include <stdlib.h>; no longer needed.
27849         Include "time_r.h" and declare ptime_locale_status
27850         only if _LIBC is not defined.
27851         (__P): Remove unused macro.
27852         (match_string): Bring back glibc version, but use it only if _LIBC
27853         is defined.
27854         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
27855         Remove unnecessary assertion and abort() call.
27856         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
27857         * m4/strptime.m4: Fix serial number comment.
27858         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
27859         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
27860         (Depends-on): Add time_r.
27861
27862 2007-01-29  Bruno Haible  <bruno@clisp.org>
27863
27864         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
27865         strptime.
27866         * modules/strptime (Depends-on): Add stdbool.
27867         * lib/strptime.h: Include <time.h> always. Add comments.
27868
27869 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
27870
27871         * modules/strptime: New file.
27872         * lib/strptime.h: New file.
27873         * lib/strptime.c: New file.
27874         * m4/strptime.m4: New file.
27875
27876 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
27877
27878         * MODULES.html.sh: New module mpsort.
27879         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
27880
27881         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
27882         a circularity problem with HP-UX ia64 reported by Bob Proulx in
27883         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
27884         All uses changed.
27885         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
27886         All uses changed.
27887         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
27888         to _Restrict_.
27889         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
27890         the parameter matches the prototype.
27891
27892 2007-01-28  Jim Meyering  <jim@meyering.net>
27893
27894         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
27895         sys/time.h here, reverting that part of the previous patch:
27896         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
27897
27898 2007-01-28  Bruno Haible  <bruno@clisp.org>
27899
27900         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
27901         value of $(SYS_TIME_H).
27902         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
27903         remove it conditionally, too. [added by Jim Meyering]
27904         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
27905         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
27906         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
27907         GETTIMEOFDAY_REPLACEMENT to 1.
27908
27909 2007-01-28  Bruno Haible  <bruno@clisp.org>
27910
27911         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
27912         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
27913         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
27914         Set UNISTD_H instead of UNISTD_H2.
27915         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
27916
27917 2007-01-28  Bruno Haible  <bruno@clisp.org>
27918
27919         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
27920         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
27921
27922 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27923
27924         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
27925         (func_create_testdir): Ensure C locale for `grep' and `tr'
27926         character ranges.
27927         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
27928         ACLOCAL_AMFLAGS parsing state machine.
27929
27930 2007-01-27  Bruno Haible  <bruno@clisp.org>
27931
27932         * modules/unistr/base: Update.
27933
27934 2007-01-27  Bruno Haible  <bruno@clisp.org>
27935
27936         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
27937         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
27938         * modules/unistr/u32-mbtouc-unsafe: Renamed from
27939         modules/unistr/u32-mbtouc.
27940         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
27941         * lib/unistr.h: Update.
27942         * lib/linebreak.c: Update.
27943         * modules/unistr/u32-mbtouc: Renamed from
27944         modules/unistr/u32-mbtouc-safe.
27945         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
27946         * lib/unistr.h: Update.
27947         * lib/unistr/u32-to-u8.c: Update.
27948         * lib/unistr/u32-to-u16.c: Update.
27949
27950 2007-01-27  Bruno Haible  <bruno@clisp.org>
27951
27952         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
27953         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
27954         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
27955         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
27956         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
27957         * modules/unistr/u16-mbtouc-unsafe: Renamed from
27958         modules/unistr/u16-mbtouc.
27959         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
27960         * lib/unistr.h: Update.
27961         * lib/linebreak.c: Update.
27962         * modules/linebreak: Update.
27963         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
27964         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
27965         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
27966         * modules/unistr/u16-mbtouc: Renamed from
27967         modules/unistr/u16-mbtouc-safe.
27968         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
27969         * lib/unistr.h: Update.
27970         * lib/unistr/u16-to-u8.c: Update.
27971         * modules/unistr/u16-to-u8: Update.
27972         * lib/unistr/u16-to-u32.c: Update.
27973         * modules/unistr/u16-to-u32: Update.
27974
27975 2007-01-27  Bruno Haible  <bruno@clisp.org>
27976
27977         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
27978         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
27979         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
27980         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
27981         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
27982         * modules/unistr/u8-mbtouc-unsafe: Renamed from
27983         modules/unistr/u8-mbtouc.
27984         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
27985         * lib/unistr.h: Update.
27986         * lib/striconveh.c: Update.
27987         * modules/striconveh: Update.
27988         * lib/linebreak.c: Update.
27989         * modules/linebreak: Update.
27990         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
27991         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
27992         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
27993         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
27994         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
27995         * lib/unistr.h: Update.
27996         * lib/striconveh.c: Update.
27997         * modules/striconveh: Update.
27998         * lib/unistr/u8-to-u16.c: Update.
27999         * modules/unistr/u8-to-u16: Update.
28000         * lib/unistr/u8-to-u32.c: Update.
28001         * modules/unistr/u8-to-u32: Update.
28002
28003 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28004
28005         Sync from Libtool.
28006         * lib/argz.c: Do not include strings.h nor memory.h, include
28007         string.h unconditionally.  Patch by Simon Josefsson.
28008
28009 2007-01-27  Bruno Haible  <bruno@clisp.org>
28010
28011         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
28012         from gl_HEADER_STRING_H_BODY.
28013         (gl_HEADER_STRING_H_BODY): Require it.
28014         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
28015         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
28016         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
28017         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
28018         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28019         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
28020         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
28021         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
28022         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
28023         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
28024         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
28025         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
28026         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
28027         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
28028         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
28029
28030 2007-01-27  Bruno Haible  <bruno@clisp.org>
28031
28032         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
28033         check_PROGRAMS into noinst_PROGRAMS.
28034         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
28035         check_PROGRAMS in this case.
28036         (func_import): Set for_test to false.
28037         (func_create_testdir): Set for_test to true.
28038
28039 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
28040             Bruno Haible  <bruno@clisp.org>
28041
28042         * modules/strcasestr (Files): Remove lib/strcasestr.h.
28043         (Depends-on): Add string.
28044         (Includes): Use <string.h> instead of strcasestr.h.
28045         * modules/string (Makefile.am): Also substitute the value of
28046         REPLACE_STRCASESTR.
28047         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
28048         assume strcasestr is declared in <string.h> not <strings.h>. Also
28049         set REPLACE_STRCASESTR.
28050         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
28051         REPLACE_STRCASESTR.
28052         * lib/strcasestr.h: Remove file.
28053         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
28054         * lib/string_.h (strcasestr): New declaration.
28055
28056 2007-01-27  Bruno Haible  <bruno@clisp.org>
28057
28058         * lib/string_.h: Use 'extern'.
28059
28060 2007-01-27  Jim Meyering  <jim@meyering.net>
28061
28062         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
28063         of set-but-not-used local, "q".
28064
28065         * lib/mempcpy.c: Include <config.h> before <string.h>.
28066         This fixes a compilation error on HP-UX, due to the system's
28067         "restrict"-using mempcpy prototype.
28068
28069 2007-01-26  Bruno Haible  <bruno@clisp.org>
28070
28071         Small optimization.
28072         * lib/javacomp.c: Include c-strstr.h.
28073          (is_envjavac_gcj): Use c_strstr instead of strstr.
28074         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
28075
28076 2007-01-26  Bruno Haible  <bruno@clisp.org>
28077
28078         * MODULES.html.sh (Unicode string functions): Add the new modules.
28079
28080         * modules/uniconv/u32-strconv-to-locale: New file.
28081         * lib/uniconv/u32-strconv-to-locale.c: New file.
28082
28083         * modules/uniconv/u16-strconv-to-locale: New file.
28084         * lib/uniconv/u16-strconv-to-locale.c: New file.
28085
28086         * modules/uniconv/u8-strconv-to-locale: New file.
28087         * lib/uniconv/u8-strconv-to-locale.c: New file.
28088
28089         * modules/uniconv/u32-strconv-from-locale: New file.
28090         * lib/uniconv/u32-strconv-from-locale.c: New file.
28091
28092         * modules/uniconv/u16-strconv-from-locale: New file.
28093         * lib/uniconv/u16-strconv-from-locale.c: New file.
28094
28095         * modules/uniconv/u8-strconv-from-locale: New file.
28096         * lib/uniconv/u8-strconv-from-locale.c: New file.
28097
28098         * modules/uniconv/u32-strconv-to-enc: New file.
28099         * lib/uniconv/u32-strconv-to-enc.c: New file.
28100         * modules/uniconv/u32-strconv-to-enc-tests: New file.
28101         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
28102
28103         * modules/uniconv/u16-strconv-to-enc: New file.
28104         * lib/uniconv/u16-strconv-to-enc.c: New file.
28105         * lib/uniconv/u-strconv-to-enc.h: New file.
28106         * modules/uniconv/u16-strconv-to-enc-tests: New file.
28107         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
28108
28109         * modules/uniconv/u8-strconv-to-enc: New file.
28110         * lib/uniconv/u8-strconv-to-enc.c: New file.
28111         * modules/uniconv/u8-strconv-to-enc-tests: New file.
28112         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
28113
28114         * modules/uniconv/u32-strconv-from-enc: New file.
28115         * lib/uniconv/u32-strconv-from-enc.c: New file.
28116         * modules/uniconv/u32-strconv-from-enc-tests: New file.
28117         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
28118
28119         * modules/uniconv/u16-strconv-from-enc: New file.
28120         * lib/uniconv/u16-strconv-from-enc.c: New file.
28121         * modules/uniconv/u16-strconv-from-enc-tests: New file.
28122         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
28123
28124         * modules/uniconv/u8-strconv-from-enc: New file.
28125         * lib/uniconv/u8-strconv-from-enc.c: New file.
28126         * lib/uniconv/u-strconv-from-enc.h: New file.
28127         * modules/uniconv/u8-strconv-from-enc-tests: New file.
28128         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
28129
28130         * modules/uniconv/u32-conv-from-enc: New file.
28131         * lib/uniconv/u32-conv-from-enc.c: New file.
28132         * modules/uniconv/u32-conv-from-enc-tests: New file.
28133         * tests/uniconv/test-u32-conv-from-enc.c: New file.
28134
28135         * modules/uniconv/u16-conv-from-enc: New file.
28136         * lib/uniconv/u16-conv-from-enc.c: New file.
28137         * lib/uniconv/u-conv-from-enc.h: New file.
28138         * modules/uniconv/u16-conv-from-enc-tests: New file.
28139         * tests/uniconv/test-u16-conv-from-enc.c: New file.
28140
28141         * modules/uniconv/u8-conv-from-enc: New file.
28142         * lib/uniconv/u8-conv-from-enc.c: New file.
28143         * modules/uniconv/u8-conv-from-enc-tests: New file.
28144         * tests/uniconv/test-u8-conv-from-enc.c: New file.
28145
28146         * modules/uniconv/base: New file.
28147         * lib/uniconv.h: New file.
28148
28149 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
28150
28151         * doc/gnulib-tool.texi (Initial import): Update to match current
28152         behavior with strdup module.
28153         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
28154         * lib/memmem.h: Remove; all uses removed.  This is now done
28155         by <string.h>.
28156         * lib/mempcpy.h: Likewise.
28157         * lib/memrchr.h: Likewise.
28158         * lib/stpcpy.h: Likewise.
28159         * lib/stpncpy.h: Likewise.
28160         * lib/strcase.h: Likewise.
28161         * lib/strchrnul.h: Likewise.
28162         * lib/strdup.h: Likewise.
28163         * lib/strndup.h: Likewise.
28164         * lib/strnlen.h: Likewise.
28165         * lib/strpbrk.h: Likewise.
28166         * lib/strsep.h: Likewise.
28167         * lib/strstr.h: Likewise.
28168         * lib/strtok_r.h: Likewise.
28169         * lib/string_.h: New file.
28170         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
28171         Rely on <string.h> instead.
28172         * lib/canon-host.c: Likewise.
28173         * lib/chdir-long.c: Likewise.
28174         * lib/concatpath.c: Likewise.
28175         * lib/exclude.c: Likewise.
28176         * lib/fchdir.c: Likewise.
28177         * lib/getaddrinfo.c: Likewise.
28178         * lib/getcwd.c: Likewise.
28179         * lib/getsubopt.c: Likewise.
28180         * lib/glob.c: Likewise.
28181         * lib/hard-locale.c: Likewise.
28182         * lib/iconvme.c: Likewise.
28183         * lib/javacomp.c: Likewise.
28184         * lib/mempcpy.c: Likewise.
28185         * lib/memrchr.c: Likewise.
28186         * lib/regex_internal.h: Likewise.
28187         * lib/stpncpy.c: Likewise.
28188         * lib/strcasecmp.c: Likewise.
28189         * lib/strchrnul.c: Likewise.
28190         * lib/strdup.c: Likewise.
28191         * lib/striconv.c: Likewise.
28192         * lib/striconveh.c: Likewise.
28193         * lib/striconveha.c: Likewise.
28194         * lib/strncasecmp.c: Likewise.
28195         * lib/strndup.c: Likewise.
28196         * lib/strnlen.c: Likewise.
28197         * lib/strsep.c: Likewise.
28198         * lib/strstr.c: Likewise.
28199         * lib/strtok_r.c: Likewise.
28200         * lib/userspec.c: Likewise.
28201         * lib/w32spawn.h: Likewise.
28202         * lib/xstrndup.c: Likewise.
28203         * lib/mountlist.c (strstr): Remove decl.
28204         * m4/string_h.m4: New file.
28205         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
28206         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
28207         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
28208         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
28209         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
28210         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
28211         Set REPLACE_STRCASECMP if necessary.
28212         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
28213         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
28214         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
28215         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
28216         HAVE_DECL_STRDUP if necessary.
28217         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
28218         since gl_FUNC_STRNDUP does that now.
28219         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
28220         Check for decl here...
28221         (gl_PREREQ_STRNLEN): ... not here.
28222         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
28223         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
28224         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
28225         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
28226         necessary.
28227         * modules/string: New file.
28228         * modules/memmem (Files): Remove special-purpose include file.
28229         (Depends-on): Add string.
28230         (Include): Include <string.h>, not the removed file.
28231         * modules/mempcpy: Likewise.
28232         * modules/memrchr: Likewise.
28233         * modules/stpcpy: Likewise.
28234         * modules/stpncpy: Likewise.
28235         * modules/strcase: Likewise.
28236         * modules/strchrnul: Likewise.
28237         * modules/strdup: Likewise.
28238         * modules/strndup: Likewise.
28239         * modules/strnlen: Likewise.
28240         * modules/strpbrk: Likewise.
28241         * modules/strsep: Likewise.
28242         * modules/strstr: Likewise.
28243         * modules/strtok_r: Likewise.
28244         * tests/test-dirname.c: Don't include "strdup.h", since
28245         <string.h> now suffices.
28246         * tests/test-memmem.c: Don't include "memmem.h", since
28247         <string.h> now suffices.
28248
28249 2007-01-25  Bruno Haible  <bruno@clisp.org>
28250
28251         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
28252         *resultp is 0.
28253
28254         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
28255         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
28256         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
28257         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
28258
28259         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
28260         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
28261         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
28262         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
28263         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
28264         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
28265
28266 2007-01-24  Bruno Haible  <bruno@clisp.org>
28267
28268         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
28269         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
28270         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
28271         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
28272         gl_FUNC_FTS_CORE.
28273         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
28274         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
28275         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
28276         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
28277         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
28278         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
28279         gl_FUNC_FCHOWNAT.
28280         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
28281         gl_FUNC_STRFTIME.
28282         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
28283         Reported by Ralf Wildenhues.
28284
28285 2007-01-24  Bruno Haible  <bruno@clisp.org>
28286
28287         Drop AC_REQUIRE calls that are redundant with the module dependencies.
28288         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
28289         gl_GETADDRINFO.
28290         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
28291         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
28292         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
28293
28294 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
28295
28296         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
28297         Don't use 'exit'; just return from 'main'.
28298         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
28299
28300         * lib/fnmatch_.h: Readjust white space and comments to match
28301         glibc, to avoid spurious diffs.
28302
28303 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28304
28305         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
28306         2004-12-01 change by Jakub Jelinek, since this code won't compile
28307         if !LIBC.  Problem reported by Bob Proulx.
28308
28309 2007-01-23  Bruno Haible  <bruno@clisp.org>
28310
28311         * lib/striconveh.c: Include c-strcaseeq.h.
28312         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
28313         * modules/striconveh (Depends-on): Add c-strcaseeq.
28314
28315 2007-01-23  Bruno Haible  <bruno@clisp.org>
28316
28317         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
28318
28319         * modules/c-strcaseeq: New file.
28320         * lib/c-strcaseeq.h: New file.
28321
28322         * modules/streq: New file.
28323         * lib/streq.h: New file.
28324
28325 2007-01-23  Bruno Haible  <bruno@clisp.org>
28326
28327         * modules/striconveha-tests: New file.
28328         * tests/test-striconveha.c: New file.
28329
28330         * lib/striconveha.h: Include <stdbool.h>.
28331         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
28332         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
28333         (mem_iconveha_notranslit): Renamed from mem_iconveha.
28334         (mem_iconveha): New function.
28335         (str_iconveha_notranslit): Renamed from str_iconveha.
28336         (str_iconveha): New function.
28337         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
28338         c-strcase.
28339
28340 2007-01-23  Bruno Haible  <bruno@clisp.org>
28341
28342         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
28343         encodings without forgiving before trying any encoding with handler.
28344         (str_iconveha): Try all encodings without forgiving before trying any
28345         encoding with handler.
28346
28347 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28348
28349         Import the following changes from libc.
28350
28351         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
28352
28353         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
28354
28355         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
28356
28357         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
28358         normal_bracket label.
28359
28360         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
28361
28362         [BZ #361]
28363         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
28364         to normal_bracket after fetching the next character.
28365
28366 2007-01-22  Bruno Haible  <bruno@clisp.org>
28367
28368         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
28369         argument.
28370         * lib/striconveh.c (iconv_carefully_1): New function.
28371         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
28372         argument.
28373         (str_cd_iconveh): Update.
28374         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
28375         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
28376         * tests/test-striconveh.c (MAGIC): New macro.
28377         (new_offsets): New function.
28378         (main): Test call with and without offsets.
28379
28380 2007-01-22  Bruno Haible  <bruno@clisp.org>
28381
28382         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
28383         * modules/sys_select (Makefile.am): Likewise.
28384         * modules/sys_socket (Makefile.am): Likewise.
28385         * modules/sys_time (Makefile.am): Likewise.
28386
28387 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
28388
28389         * modules/gettimeofday (License): Change from GPL to LGPL, since
28390         gettimeofday is a library function.
28391
28392 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28393
28394         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
28395
28396 2007-01-21  Bruno Haible  <bruno@clisp.org>
28397
28398         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
28399
28400 2007-01-21  Bruno Haible  <bruno@clisp.org>
28401
28402         * modules/striconveha: New file.
28403         * lib/striconveha.h: New file.
28404         * lib/striconveha.c: New file.
28405         * MODULES.html.sh (Internationalization functions): Add striconveha.
28406         * lib/striconv.c (str_iconv): Optimize the case of an empty input
28407         string.
28408         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
28409
28410 2007-01-21  Bruno Haible  <bruno@clisp.org>
28411
28412         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
28413         * lib/striconveh.c (str_iconveh): Likewise.
28414
28415 2007-01-21  Bruno Haible  <bruno@clisp.org>
28416
28417         * lib/striconveh.h (mem_iconveh): New declaration.
28418         * lib/striconveh.c (mem_iconveh): New function.
28419         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
28420
28421 2007-01-21  Bruno Haible  <bruno@clisp.org>
28422
28423         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
28424
28425         * lib/striconveh.h (mem_cd_iconveh): Change specification.
28426         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
28427         original result buffer.
28428         (str_cd_iconveh): Update.
28429         * tests/test-striconveh.c (main): Update.
28430
28431         * lib/striconv.h (mem_cd_iconv): Change specification.
28432         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
28433         result buffer.
28434         (str_cd_iconv): Update.
28435         * tests/test-striconv.c (main): Update.
28436
28437 2007-01-21  Bruno Haible  <bruno@clisp.org>
28438
28439         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
28440
28441 2007-01-20  Jim Meyering  <jim@meyering.net>
28442
28443         * lib/userspec.c (parse_with_separator): If a user or group string
28444         starts with "+", skip the corresponding name-to-ID look-up, since
28445         such a look-up must fail: user and group names may not include "+".
28446
28447 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
28448
28449         * lib/poll.c: Include sys/time.h and time.h unconditionally,
28450         since we now assume the sys_time module.
28451         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
28452         check for sys/time.h; no longer needed.
28453         * modules/poll (Depends-on): Depend on sys_time.
28454
28455 2007-01-18  Bruno Haible  <bruno@clisp.org>
28456
28457         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
28458         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
28459
28460         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
28461         gettimeofday.
28462
28463         * tests/test-gettimeofday.c: Include <time.h>.
28464         (dummy): Remove variable.
28465
28466         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
28467         gl_HEADER_SYS_TIME_H.
28468         (gl_HEADER_SYS_TIME_H): New macro.
28469
28470         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
28471         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
28472         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
28473         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
28474         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
28475         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
28476         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
28477         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
28478         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
28479         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
28480         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
28481
28482         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
28483         last change; it caused a compilation error when cross-compiling to
28484         Cygwin.
28485
28486 2007-01-18  Jim Meyering  <jim@meyering.net>
28487
28488         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
28489         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
28490         than the race-prone "test -d sys || mkdir sys".
28491         (configure.ac): Use AC_PROG_MKDIR_P.
28492         * modules/sys_select: Likewise.
28493         * modules/sys_socket: Likewise.
28494         * modules/sys_time: Likewise.
28495
28496 2007-01-18  Eric Blake  <ebb9@byu.net>
28497
28498         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
28499         replace gettimeofday.
28500         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
28501         name, to avoid infinite recursion.
28502
28503 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
28504
28505         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
28506         module sys_time.
28507         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
28508         assume timespec.h defines struct timeval.
28509         * lib/settime.c: Likewise.
28510         * lib/utimens.c: Likewise.
28511         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
28512         since we now assume the gettimeofday module.
28513         * lib/tempname.c (__gen_tempname): Likewise.
28514         * lib/gettimeofday.h: Remove.
28515         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
28516         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
28517         Include <time.h>, for 'time()'.
28518         (localtime_buffer_addr): Also use this workaround if
28519         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
28520         to simplify the uses.  All uses changed.
28521         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
28522         that #undef is inside {}, and 'const' follows type name consistently.
28523         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
28524         (gettimeofday): Do not use the maximum possible value for
28525         tv->tv_usec, since that might break usages other than ls.c.
28526         Instead, we'll leave ls.c alone.  This undoes today's patch
28527         by Bruno.  Add a compile-time warning for 1s-clock resolution;
28528         we've never observed the problem but might as well keep the
28529         canary.
28530         * lib/nanosleep.c: Include timespec.h first, for interface check.
28531         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
28532         now assume the sys_time module.
28533         * lib/tempname.c: Likewise.
28534         * lib/timespec.h: Likewise.
28535         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
28536         needed.
28537         * lib/strftime.c: Likewise.
28538         * lib/timespec.h: Likewise.
28539         * lib/posixtm.c: Include posixtm.h first, for interface check.
28540         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
28541         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
28542         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
28543         * lib/sys_time_.h: New file.
28544         * lib/timespec.h (struct timespec): Use long int, not long.
28545         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
28546         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
28547         Remove obsolescent call to AC_HEADER_TIME.
28548         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
28549         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28550         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
28551         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
28552         Likewise.
28553         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
28554         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
28555         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
28556         into the sys_time module.  Check for gettimeofday just once.
28557         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
28558         for gettimeofday signature to just check the signature.  Merely
28559         compile it, since linking doesn't test signature.  Improve test for
28560         whether gettimeofday.o is actually needed.
28561         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
28562         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
28563         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
28564         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
28565         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
28566         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
28567         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
28568         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
28569         than worrying about sys/time.h.
28570         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
28571         Don't bother worrying about TIME_WITH_SYS_TIME.
28572         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
28573         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
28574         * m4/sys_time_h.m4: New file.
28575         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
28576         Don't include sys/time.h.  Return from main rather than exiting.
28577         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
28578         all uses changed.
28579         * modules/gethrxtime (Depends-on): Add sys_time.
28580         * modules/gettime (Depends-on): Likewise.
28581         * modules/gettimeofday (Depends-on): Likewise.
28582         * modules/nanosleep (Depends-on): Likewise.
28583         * modules/settime (Depends-on): Likewise.
28584         * modules/tempname (Depends-on): Likewise.
28585         * modules/utimens (Depends-on): Likewise.
28586         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
28587         (Include:) Change back to <sys/time.h>.
28588         (Maintainer:) Add self.
28589         * modules/sys_time: New file.
28590         * modules/tempname (Depends-on): Add gettimeofday.
28591         * tests/test-gettimeofday.c: Include <sys/time.h>
28592         rather than gettimeofday.h.
28593
28594 2007-01-17  Bruno Haible  <bruno@clisp.org>
28595
28596         * gnulib-tool (func_get_license): Revert last patch. Instead, let
28597         the license default to GPL.
28598         (func_create_testdir): Don't complain if a module is LGPL and its
28599         tests module depends on GPLed modules.
28600
28601 2007-01-17  Bruno Haible  <bruno@clisp.org>
28602
28603         * lib/gettimeofday.c (gettimeofday): Add code for the case
28604         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
28605         maximum possible value for tv->tv_usec, rather than the minimum one.
28606
28607 2005-10-08  Martin Lambers  <marlam@marlam.de>
28608 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
28609 2007-01-16  Bruno Haible  <bruno@clisp.org>
28610
28611         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
28612         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
28613         gl_FUNC_GETTIMEOFDAY.
28614         (Include): Add gettimeofday.h.
28615         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
28616         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
28617         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
28618         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
28619         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
28620         * lib/gettimeofday.h: New file.
28621         * lib/gettimeofday.c: Include <sys/timeb.h>.
28622         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
28623         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
28624         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
28625         fall back on time().
28626
28627         * tests/test-gettimeofday.c: New file.
28628         * modules/gettimeofday-tests: New file.
28629
28630 2007-01-16  Eric Blake  <ebb9@byu.net>
28631
28632         * modules/fnmatch (Depends-on): Depend on wchar.
28633         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
28634         * m4/fnmatch.m4: Likewise.
28635         * modules/mbchar (Makefile.am): Assume <wchar.h>.
28636         * m4/mbchar.m4: Likewise.
28637         * modules/mbswidth (Depends-on): Depend on wchar.
28638         * lib/mbswidth.c: Assume <wchar.h>.
28639         * m4/mbswidth.m4: Likewise.
28640         * modules/quotearg (Depends-on): Depend on wchar.
28641         * lib/quotearg.c: Assume <wchar.h>.
28642         * m4/quotearg.m4: Likewise.
28643         * modules/regex (Depends-on): Depend on wchar.
28644         * lib/regex_internal.h: Assume <wchar.h>.
28645         * m4/regex.m4: Likewise.
28646         * modules/stdint (Depends-on): Depend on wchar.
28647         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
28648         * m4/stdint.m4: Likewise.
28649         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
28650         * modules/strftime (Depends-on): Depend on wchar.
28651         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
28652         * modules/strtol (Depends-on): Depend on wchar.
28653         * lib/strtol.c: Assume <wchar.h>.
28654         * modules/wcwidth (Depends-on): Depend on wchar.
28655         * lib/wcwidth.h: Assume <wchar.h>.
28656         * m4/wcwidth.m4: Likewise.
28657
28658 2007-01-16  Bruno Haible  <bruno@clisp.org>
28659
28660         * modules/csharpexec-script: New, created from...
28661         * modules/csharpexec: ... this.
28662
28663 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
28664
28665         * modules/javaexec-script: New, created from...
28666         * modules/javaexec: ... this.
28667
28668 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
28669
28670         * modules/poll (Dependencies): Add sys_select.
28671
28672 2007-01-15  Jim Meyering  <jim@meyering.net>
28673
28674         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
28675         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
28676         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
28677         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
28678
28679 2007-01-15  Bruno Haible  <bruno@clisp.org>
28680
28681         * modules/striconveh: New file.
28682         * lib/striconveh.h: New file.
28683         * lib/striconveh.c: New file.
28684         * MODULES.html.sh (Internationalization functions): Add striconveh.
28685
28686         * modules/striconveh-tests: New file.
28687         * tests/test-striconveh.c: New file.
28688
28689 2007-01-15  Bruno Haible  <bruno@clisp.org>
28690
28691         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
28692         not from GNU libiconv or GNU libc.
28693
28694 2007-01-15  Bruno Haible  <bruno@clisp.org>
28695
28696         * doc/gnulib-intro.texi (Copyright): Explain the different license
28697         terms for module descriptions, autoconf macros, tests, documentation.
28698
28699 2007-01-14  Bruno Haible  <bruno@clisp.org>
28700
28701         * modules/striconv-tests: New file.
28702         * tests/test-striconv.c: New file.
28703
28704 2007-01-14  Bruno Haible  <bruno@clisp.org>
28705
28706         * modules/iconv-tests: New file.
28707         * tests/test-iconv.c: New file.
28708
28709 2007-01-14  Bruno Haible  <bruno@clisp.org>
28710
28711         * gnulib-tool (func_get_license): For test modules, use the license of
28712         the main module.
28713
28714 2007-01-14  Bruno Haible  <bruno@clisp.org>
28715
28716         * modules/iconv (Include): Clarify that <iconv.h> can only be included
28717         if iconv is found to exist.
28718
28719 2007-01-14  Bruno Haible  <bruno@clisp.org>
28720
28721         * modules/c-ctype-tests: New file.
28722         * tests/test-c-ctype.c: New file.
28723
28724 2007-01-14  Bruno Haible  <bruno@clisp.org>
28725
28726         * modules/binary-io-tests: New file.
28727         * tests/test-binary-io.sh: New file.
28728         * tests/test-binary-io.c: New file.
28729
28730 2007-01-14  Bruno Haible  <bruno@clisp.org>
28731
28732         * modules/array-oset-tests: New file.
28733         * tests/test-array_oset.c: New file.
28734
28735 2007-01-14  Bruno Haible  <bruno@clisp.org>
28736
28737         * modules/array-list-tests: New file.
28738         * tests/test-array_list.c: New file.
28739
28740 2007-01-14  Bruno Haible  <bruno@clisp.org>
28741
28742         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
28743         and make.
28744         Reported by Simon Josefsson in
28745         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
28746
28747 2007-01-14  Bruno Haible  <bruno@clisp.org>
28748
28749         * modules/allocsa-tests: New file.
28750         * tests/test-allocsa.c: New file.
28751
28752 2007-01-14  Bruno Haible  <bruno@clisp.org>
28753
28754         * modules/fchdir (Depends-on): Add absolute-header.
28755         * modules/unistd (Depends-on): Likewise.
28756
28757 2006-12-30  Bruno Haible  <bruno@clisp.org>
28758
28759         * modules/fchdir: New file.
28760         * modules/unistd (Files): Add lib/unistd_.h.
28761         (Makefile.am): Generate unistd.h from unistd_.h.
28762         * lib/fchdir.c: New file.
28763         * lib/dirent_.h: New file.
28764         * lib/unistd_.h: New file.
28765         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
28766         * m4/fchdir.m4: New file.
28767         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
28768         (gl_HEADER_UNISTD): Invoke it.
28769         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
28770         function.
28771         * lib/backupfile.c (opendir, closedir): Undefine.
28772         * lib/chown.c (open, close): Undefine.
28773         * lib/clean-temp.c (open, close): Undefine.
28774         * lib/copy-file.c (open, close): Undefine.
28775         * lib/execute.c (open, close): Undefine.
28776         * lib/fsusage.c (open, close): Undefine.
28777         * lib/gc-gnulib.c (open, close): Undefine.
28778         * lib/getcwd.c (opendir, closedir): Undefine.
28779         * lib/glob.c (opendir, closedir): Undefine.
28780         * lib/javacomp.c (open, close): Undefine.
28781         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
28782         * lib/openat-proc.c (open, close): Undefine.
28783         * lib/pagealign_alloc.c (open, close): Undefine.
28784         * lib/pipe.c (open, close): Undefine.
28785         * lib/progreloc.c (open, close): Undefine.
28786         * lib/savedir.c (opendir, closedir): Undefine.
28787         * lib/utime.c (open, close): Undefine.
28788         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
28789
28790 2007-01-10  Bruno Haible  <bruno@clisp.org>
28791
28792         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
28793
28794 2007-01-12  Eric Blake  <ebb9@byu.net>
28795
28796         Provide a robust <wchar.h>.  Further simplifications are now
28797         possible in other modules, but not included here.
28798         * modules/wchar: New module.
28799         * m4/wchar.m4: New file.
28800         * lib/wchar_.h: Likewise.
28801         * modules/mbchar (Depends-on): Depend on wchar, as the first use
28802         of the new module.
28803         * MODULES.html.sh (Extended multibyte and wide character utilities):
28804         New section.
28805
28806 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
28807
28808         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
28809         to a reasonable default for memory allocation.
28810         (xreadlink): Don't allocate a huge buffer, to work around a buggy
28811         file system that reports garbage st_size values for symlinks.
28812         Problem reported by Liyang Hu.
28813
28814 2007-01-11  Simon Josefsson  <simon@josefsson.org>
28815
28816         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
28817         Emacs .#* auto-save files).
28818
28819 2007-01-11  Bruno Haible  <bruno@clisp.org>
28820
28821         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
28822         directory.
28823
28824 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
28825
28826         Use @...@ consistently in lib/wctype_.h.
28827         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
28828         on it being set to 1 or 0.
28829         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
28830         go back to AC_SUBSTing it.
28831         * modules/wctype (Makefile.am): Undo previous change.
28832
28833 2007-01-10  Eric Blake  <ebb9@byu.net>
28834
28835         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
28836         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
28837         * modules/wctype (Makefile.am): Likewise.
28838         Reported by Chris McGuire.
28839
28840 2007-01-10  Jim Meyering  <jim@meyering.net>
28841
28842         fts.c: a small readability/maintainability improvement
28843         * lib/fts.c (fts_read): Make this code slightly more readable and
28844         maintainable by hoisting the "sp->fts_cur = p" assignments to
28845         immediately follow the statements that set P.  Derived from
28846         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
28847
28848 2007-01-10  Eric Blake  <ebb9@byu.net>
28849
28850         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
28851         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
28852         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28853         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
28854         Reported by Chris McGuire.
28855
28856 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28857
28858         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
28859         in sed script.
28860
28861 2007-01-09  Bruno Haible  <bruno@clisp.org>
28862
28863         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
28864         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
28865         variables.
28866         (func_module): Use them.
28867
28868 2007-01-09  Bruno Haible  <bruno@clisp.org>
28869
28870         * modules/unistr/base: New file.
28871         * lib/unistr.h: New file.
28872
28873         * modules/unistr/u8-to-u16: New file.
28874         * lib/unistr/u8-to-u16.c: New file.
28875
28876         * modules/unistr/u8-to-u32: New file.
28877         * lib/unistr/u8-to-u32.c: New file.
28878
28879         * modules/unistr/u16-to-u8: New file.
28880         * lib/unistr/u16-to-u8.c: New file.
28881
28882         * modules/unistr/u16-to-u32: New file.
28883         * lib/unistr/u16-to-u32.c: New file.
28884
28885         * modules/unistr/u32-to-u8: New file.
28886         * lib/unistr/u32-to-u8.c: New file.
28887
28888         * modules/unistr/u32-to-u16: New file.
28889         * lib/unistr/u32-to-u16.c: New file.
28890
28891         * modules/unistr/u8-check: New file.
28892         * modules/unistr/u16-check: New file.
28893         * modules/unistr/u32-check: New file.
28894         * lib/unistr/u8-check.c: New file.
28895         * lib/unistr/u16-check.c: New file.
28896         * lib/unistr/u32-check.c: New file.
28897
28898         * modules/unistr/u8-chr: New file.
28899         * modules/unistr/u16-chr: New file.
28900         * modules/unistr/u32-chr: New file.
28901         * lib/unistr/u8-chr.c: New file.
28902         * lib/unistr/u16-chr.c: New file.
28903         * lib/unistr/u32-chr.c: New file.
28904
28905         * modules/unistr/u8-cmp: New file.
28906         * modules/unistr/u16-cmp: New file.
28907         * modules/unistr/u32-cmp: New file.
28908         * lib/unistr/u8-cmp.c: New file.
28909         * lib/unistr/u16-cmp.c: New file.
28910         * lib/unistr/u32-cmp.c: New file.
28911
28912         * modules/unistr/u8-cpy: New file.
28913         * modules/unistr/u16-cpy: New file.
28914         * modules/unistr/u32-cpy: New file.
28915         * lib/unistr/u8-cpy.c: New file.
28916         * lib/unistr/u16-cpy.c: New file.
28917         * lib/unistr/u32-cpy.c: New file.
28918         * lib/unistr/u-cpy.h: New file.
28919
28920         * modules/unistr/u8-cpy-alloc: New file.
28921         * modules/unistr/u16-cpy-alloc: New file.
28922         * modules/unistr/u32-cpy-alloc: New file.
28923         * lib/unistr/u8-cpy-alloc.c: New file.
28924         * lib/unistr/u16-cpy-alloc.c: New file.
28925         * lib/unistr/u32-cpy-alloc.c: New file.
28926         * lib/unistr/u-cpy-alloc.h: New file.
28927
28928         * modules/unistr/u8-endswith: New file.
28929         * modules/unistr/u16-endswith: New file.
28930         * modules/unistr/u32-endswith: New file.
28931         * lib/unistr/u8-endswith.c: New file.
28932         * lib/unistr/u16-endswith.c: New file.
28933         * lib/unistr/u32-endswith.c: New file.
28934         * lib/unistr/u-endswith.h: New file.
28935
28936         * modules/unistr/u8-mblen: New file.
28937         * modules/unistr/u16-mblen: New file.
28938         * modules/unistr/u32-mblen: New file.
28939         * lib/unistr/u8-mblen.c: New file.
28940         * lib/unistr/u16-mblen.c: New file.
28941         * lib/unistr/u32-mblen.c: New file.
28942
28943         * modules/unistr/u8-mbtouc: New file.
28944         * modules/unistr/u16-mbtouc: New file.
28945         * modules/unistr/u32-mbtouc: New file.
28946         * lib/unistr/u8-mbtouc.c: New file.
28947         * lib/unistr/u16-mbtouc.c: New file.
28948         * lib/unistr/u32-mbtouc.c: New file.
28949
28950         * modules/unistr/u8-mbtouc-safe: New file.
28951         * modules/unistr/u16-mbtouc-safe: New file.
28952         * modules/unistr/u32-mbtouc-safe: New file.
28953         * lib/unistr/u8-mbtouc-safe.c: New file.
28954         * lib/unistr/u16-mbtouc-safe.c: New file.
28955         * lib/unistr/u32-mbtouc-safe.c: New file.
28956
28957         * modules/unistr/u8-move: New file.
28958         * modules/unistr/u16-move: New file.
28959         * modules/unistr/u32-move: New file.
28960         * lib/unistr/u8-move.c: New file.
28961         * lib/unistr/u16-move.c: New file.
28962         * lib/unistr/u32-move.c: New file.
28963         * lib/unistr/u-move.h: New file.
28964
28965         * modules/unistr/u8-next: New file.
28966         * modules/unistr/u16-next: New file.
28967         * modules/unistr/u32-next: New file.
28968         * lib/unistr/u8-next.c: New file.
28969         * lib/unistr/u16-next.c: New file.
28970         * lib/unistr/u32-next.c: New file.
28971
28972         * modules/unistr/u8-prev: New file.
28973         * modules/unistr/u16-prev: New file.
28974         * modules/unistr/u32-prev: New file.
28975         * lib/unistr/u8-prev.c: New file.
28976         * lib/unistr/u16-prev.c: New file.
28977         * lib/unistr/u32-prev.c: New file.
28978
28979         * modules/unistr/u8-set: New file.
28980         * modules/unistr/u16-set: New file.
28981         * modules/unistr/u32-set: New file.
28982         * lib/unistr/u8-set.c: New file.
28983         * lib/unistr/u16-set.c: New file.
28984         * lib/unistr/u32-set.c: New file.
28985         * lib/unistr/u-set.h: New file.
28986
28987         * modules/unistr/u8-startswith: New file.
28988         * modules/unistr/u16-startswith: New file.
28989         * modules/unistr/u32-startswith: New file.
28990         * lib/unistr/u8-startswith.c: New file.
28991         * lib/unistr/u16-startswith.c: New file.
28992         * lib/unistr/u32-startswith.c: New file.
28993         * lib/unistr/u-startswith.h: New file.
28994
28995         * modules/unistr/u8-stpcpy: New file.
28996         * modules/unistr/u16-stpcpy: New file.
28997         * modules/unistr/u32-stpcpy: New file.
28998         * lib/unistr/u8-stpcpy.c: New file.
28999         * lib/unistr/u16-stpcpy.c: New file.
29000         * lib/unistr/u32-stpcpy.c: New file.
29001         * lib/unistr/u-stpcpy.h: New file.
29002
29003         * modules/unistr/u8-stpncpy: New file.
29004         * modules/unistr/u16-stpncpy: New file.
29005         * modules/unistr/u32-stpncpy: New file.
29006         * lib/unistr/u8-stpncpy.c: New file.
29007         * lib/unistr/u16-stpncpy.c: New file.
29008         * lib/unistr/u32-stpncpy.c: New file.
29009         * lib/unistr/u-stpncpy.h: New file.
29010
29011         * modules/unistr/u8-strcat: New file.
29012         * modules/unistr/u16-strcat: New file.
29013         * modules/unistr/u32-strcat: New file.
29014         * lib/unistr/u8-strcat.c: New file.
29015         * lib/unistr/u16-strcat.c: New file.
29016         * lib/unistr/u32-strcat.c: New file.
29017         * lib/unistr/u-strcat.h: New file.
29018
29019         * modules/unistr/u8-strchr: New file.
29020         * modules/unistr/u16-strchr: New file.
29021         * modules/unistr/u32-strchr: New file.
29022         * lib/unistr/u8-strchr.c: New file.
29023         * lib/unistr/u16-strchr.c: New file.
29024         * lib/unistr/u32-strchr.c: New file.
29025
29026         * modules/unistr/u8-strcmp: New file.
29027         * modules/unistr/u16-strcmp: New file.
29028         * modules/unistr/u32-strcmp: New file.
29029         * lib/unistr/u8-strcmp.c: New file.
29030         * lib/unistr/u16-strcmp.c: New file.
29031         * lib/unistr/u32-strcmp.c: New file.
29032
29033         * modules/unistr/u8-strcpy: New file.
29034         * modules/unistr/u16-strcpy: New file.
29035         * modules/unistr/u32-strcpy: New file.
29036         * lib/unistr/u8-strcpy.c: New file.
29037         * lib/unistr/u16-strcpy.c: New file.
29038         * lib/unistr/u32-strcpy.c: New file.
29039         * lib/unistr/u-strcpy.h: New file.
29040
29041         * modules/unistr/u8-strcspn: New file.
29042         * modules/unistr/u16-strcspn: New file.
29043         * modules/unistr/u32-strcspn: New file.
29044         * lib/unistr/u8-strcspn.c: New file.
29045         * lib/unistr/u16-strcspn.c: New file.
29046         * lib/unistr/u32-strcspn.c: New file.
29047         * lib/unistr/u-strcspn.h: New file.
29048
29049         * modules/unistr/u8-strdup: New file.
29050         * modules/unistr/u16-strdup: New file.
29051         * modules/unistr/u32-strdup: New file.
29052         * lib/unistr/u8-strdup.c: New file.
29053         * lib/unistr/u16-strdup.c: New file.
29054         * lib/unistr/u32-strdup.c: New file.
29055         * lib/unistr/u-strdup.h: New file.
29056
29057         * modules/unistr/u8-strlen: New file.
29058         * modules/unistr/u16-strlen: New file.
29059         * modules/unistr/u32-strlen: New file.
29060         * lib/unistr/u8-strlen.c: New file.
29061         * lib/unistr/u16-strlen.c: New file.
29062         * lib/unistr/u32-strlen.c: New file.
29063         * lib/unistr/u-strlen.h: New file.
29064
29065         * modules/unistr/u8-strmblen: New file.
29066         * modules/unistr/u16-strmblen: New file.
29067         * modules/unistr/u32-strmblen: New file.
29068         * lib/unistr/u8-strmblen.c: New file.
29069         * lib/unistr/u16-strmblen.c: New file.
29070         * lib/unistr/u32-strmblen.c: New file.
29071
29072         * modules/unistr/u8-strmbtouc: New file.
29073         * modules/unistr/u16-strmbtouc: New file.
29074         * modules/unistr/u32-strmbtouc: New file.
29075         * lib/unistr/u8-strmbtouc.c: New file.
29076         * lib/unistr/u16-strmbtouc.c: New file.
29077         * lib/unistr/u32-strmbtouc.c: New file.
29078
29079         * modules/unistr/u8-strncat: New file.
29080         * modules/unistr/u16-strncat: New file.
29081         * modules/unistr/u32-strncat: New file.
29082         * lib/unistr/u8-strncat.c: New file.
29083         * lib/unistr/u16-strncat.c: New file.
29084         * lib/unistr/u32-strncat.c: New file.
29085         * lib/unistr/u-strncat.h: New file.
29086
29087         * modules/unistr/u8-strncmp: New file.
29088         * modules/unistr/u16-strncmp: New file.
29089         * modules/unistr/u32-strncmp: New file.
29090         * lib/unistr/u8-strncmp.c: New file.
29091         * lib/unistr/u16-strncmp.c: New file.
29092         * lib/unistr/u32-strncmp.c: New file.
29093
29094         * modules/unistr/u8-strncpy: New file.
29095         * modules/unistr/u16-strncpy: New file.
29096         * modules/unistr/u32-strncpy: New file.
29097         * lib/unistr/u8-strncpy.c: New file.
29098         * lib/unistr/u16-strncpy.c: New file.
29099         * lib/unistr/u32-strncpy.c: New file.
29100         * lib/unistr/u-strncpy.h: New file.
29101
29102         * modules/unistr/u8-strnlen: New file.
29103         * modules/unistr/u16-strnlen: New file.
29104         * modules/unistr/u32-strnlen: New file.
29105         * lib/unistr/u8-strnlen.c: New file.
29106         * lib/unistr/u16-strnlen.c: New file.
29107         * lib/unistr/u32-strnlen.c: New file.
29108         * lib/unistr/u-strnlen.h: New file.
29109
29110         * modules/unistr/u8-strpbrk: New file.
29111         * modules/unistr/u16-strpbrk: New file.
29112         * modules/unistr/u32-strpbrk: New file.
29113         * lib/unistr/u8-strpbrk.c: New file.
29114         * lib/unistr/u16-strpbrk.c: New file.
29115         * lib/unistr/u32-strpbrk.c: New file.
29116         * lib/unistr/u-strpbrk.h: New file.
29117
29118         * modules/unistr/u8-strrchr: New file.
29119         * modules/unistr/u16-strrchr: New file.
29120         * modules/unistr/u32-strrchr: New file.
29121         * lib/unistr/u8-strrchr.c: New file.
29122         * lib/unistr/u16-strrchr.c: New file.
29123         * lib/unistr/u32-strrchr.c: New file.
29124
29125         * modules/unistr/u8-strspn: New file.
29126         * modules/unistr/u16-strspn: New file.
29127         * modules/unistr/u32-strspn: New file.
29128         * lib/unistr/u8-strspn.c: New file.
29129         * lib/unistr/u16-strspn.c: New file.
29130         * lib/unistr/u32-strspn.c: New file.
29131         * lib/unistr/u-strspn.h: New file.
29132
29133         * modules/unistr/u8-strstr: New file.
29134         * modules/unistr/u16-strstr: New file.
29135         * modules/unistr/u32-strstr: New file.
29136         * lib/unistr/u8-strstr.c: New file.
29137         * lib/unistr/u16-strstr.c: New file.
29138         * lib/unistr/u32-strstr.c: New file.
29139         * lib/unistr/u-strstr.h: New file.
29140
29141         * modules/unistr/u8-strtok: New file.
29142         * modules/unistr/u16-strtok: New file.
29143         * modules/unistr/u32-strtok: New file.
29144         * lib/unistr/u8-strtok.c: New file.
29145         * lib/unistr/u16-strtok.c: New file.
29146         * lib/unistr/u32-strtok.c: New file.
29147         * lib/unistr/u-strtok.h: New file.
29148
29149         * modules/unistr/u8-uctomb: New file.
29150         * modules/unistr/u16-uctomb: New file.
29151         * modules/unistr/u32-uctomb: New file.
29152         * lib/unistr/u8-uctomb.c: New file.
29153         * lib/unistr/u16-uctomb.c: New file.
29154         * lib/unistr/u32-uctomb.c: New file.
29155
29156         * MODULES.html.sh (Unicode string functions): Add the new modules.
29157
29158 2007-01-08  Bruno Haible  <bruno@clisp.org>
29159
29160         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
29161         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
29162         subdirectories.
29163
29164 2007-01-08  Karl Berry  <karl@gnu.org>
29165
29166         * doc/error.texi: mention that main() fns must set program_name
29167         when progname is used.
29168
29169 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
29170
29171         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
29172         WCTYPE_H is empty, for the benefit of builds from non-distclean
29173         directories.  Problem reported by Eric Blake in
29174         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
29175
29176 2007-01-08  Bruno Haible  <bruno@clisp.org>
29177
29178         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
29179         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
29180         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
29181         PROVIDE_CANONICALIZE_FILENAME_MODE.
29182         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
29183
29184 2007-01-08  Bruno Haible  <bruno@clisp.org>
29185
29186         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
29187         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
29188         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
29189         * lib/fts.c: Likewise.
29190         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
29191
29192 2006-12-25  Bruno Haible  <bruno@clisp.org>
29193
29194         * modules/utf8-ucs4-safe: New file.
29195         * lib/utf8-ucs4-safe.h: New file.
29196         * lib/unistr/utf8-ucs4-safe.c: New file.
29197
29198         * modules/utf16-ucs4-safe: New file.
29199         * lib/utf16-ucs4-safe.h: New file.
29200         * lib/unistr/utf16-ucs4-safe.c: New file.
29201
29202         * MODULES.html.sh (Unicode string functions): Add the new modules.
29203
29204 2007-01-08  Bruno Haible  <bruno@clisp.org>
29205
29206         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
29207         (Depends-on): Add unitypes.
29208         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
29209         (u8_mbtouc_aux): Move out to separate file.
29210         (u8_mbtouc): Use ucs4_t, uint8_t types.
29211         * lib/unistr/utf8-ucs4.c: New file.
29212
29213         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
29214         (Depends-on): Add unitypes.
29215         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
29216         (u16_mbtouc_aux): Move out to separate file.
29217         (u16_mbtouc): Use ucs4_t, uint16_t types.
29218         * lib/unistr/utf16-ucs4.c: New file.
29219
29220         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
29221         (Depends-on): Add unitypes.
29222         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
29223         (u8_uctomb_aux): Move out to separate file.
29224         (u8_uctomb): Use ucs4_t, uint8_t types.
29225         * lib/unistr/ucs4-utf8.c: New file.
29226
29227         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
29228         (Depends-on): Add unitypes.
29229         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
29230         (u16_uctomb_aux): Move out to separate file.
29231         (u16_uctomb): Use ucs4_t, uint16_t types.
29232         * lib/unistr/ucs4-utf16.c: New file.
29233
29234 2006-12-25  Bruno Haible  <bruno@clisp.org>
29235
29236         * modules/unitypes: New file.
29237         * lib/unitypes.h: New file.
29238         * MODULES.html.sh (func_all_modules): New section "Unicode string
29239         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
29240         this section. Add unitypes.
29241
29242 2007-01-08  Bruno Haible  <bruno@clisp.org>
29243
29244         Avoid variable names that conflict with those from libtool.
29245         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
29246         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
29247         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
29248         library_names_spec to acl_library_names_spec, hardcode_* to
29249         acl_hardcode_*.
29250         Reported by Ralf Wildenhues.
29251
29252 2007-01-08  Bruno Haible  <bruno@clisp.org>
29253
29254         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
29255         definition.
29256         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
29257         definition.
29258         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
29259         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
29260         definition.
29261         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
29262         definition.
29263         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
29264         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
29265         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
29266         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
29267         definition.
29268         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
29269         definition.
29270         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
29271         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
29272         GC_USE_<algorithm>.
29273         * lib/gc-libgcrypt.c: Likewise.
29274         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
29275         * modules/gc-arctwo (configure.ac): Likewise.
29276         * modules/gc-des (configure.ac): Likewise.
29277         * modules/gc-hmac-md5 (configure.ac): Likewise.
29278         * modules/gc-hmac-sha1 (configure.ac): Likewise.
29279         * modules/gc-md2 (configure.ac): Likewise.
29280         * modules/gc-md4 (configure.ac): Likewise.
29281         * modules/gc-md5 (configure.ac): Likewise.
29282         * modules/gc-random (configure.ac): Likewise.
29283         * modules/gc-rijndael (configure.ac): Likewise.
29284         * modules/gc-sha1 (configure.ac): Likewise.
29285
29286 2007-01-08  Bruno Haible  <bruno@clisp.org>
29287
29288         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
29289         macro definition.
29290         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
29291         definition.
29292         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
29293         definition.
29294         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
29295         * modules/fcntl-safer (configure.ac): Likewise.
29296         * modules/fopen-safer (configure.ac): Likewise.
29297         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
29298         GNULIB_FWRITEERROR macro definition.
29299
29300 2007-01-08  Bruno Haible  <bruno@clisp.org>
29301
29302         * m4/gnulib-common.m4: New file.
29303         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
29304         (func_get_filelist): Add m4/gnulib-common.m4.
29305
29306 2007-01-08  Bruno Haible  <bruno@clisp.org>
29307
29308         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
29309         command.
29310
29311 2007-01-08  Jim Meyering  <jim@meyering.net>
29312
29313         Use a more robust test for a "can't happen" condition.
29314         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
29315         narrowed the st_size value.  Presuming the "can't happen" condition
29316         is true, that narrowing could conceivably convert an invalid st_size
29317         value into a valid one.  Instead, use a change based on Matthew
29318         Woehlke's original patch.
29319
29320         Slight readability improvement: use an assert-like macro
29321         in place of literal "abort ()" uses.
29322         * lib/fts.c (fts_assert): Define.
29323         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
29324         Use this macro instead of a bare 'abort'.
29325
29326 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
29327
29328         Don't worry about using IRIX 5.3's wctype.h broken definitions;
29329         simply work around them.
29330         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
29331         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
29332         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
29333         declaring.
29334         Don't bother to define as macros, since the standard doesn't require it.
29335         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
29336         longer worry about IRIX 5.3.
29337         (HAVE_WCTYPE_CTMP_BUG): Remove.
29338
29339 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
29340
29341         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
29342         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
29343         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
29344         Problems reported by Georg Schwarz for IRIX 5.3.
29345
29346         * gnulib-tool (autoconf_minversion): Take the maximum version number
29347         found, not the minimum.  Problem reported by James Youngman.
29348
29349 2007-01-03  Karl Berry  <karl@gnu.org>
29350
29351         * doc/error.texi: new file, explaining interaction with progname.
29352         * doc/gnulib.texi: include it.  Update copyright.
29353
29354 2007-01-03  Simon Josefsson  <simon@josefsson.org>
29355
29356         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
29357         AC_CANONICAL_HOST, to improve autobuild outputs.
29358
29359 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
29360             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
29361
29362         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
29363         sockets, server sockets, and other file descriptors.  Count errors
29364         to compute the return value.  Reorder the code a bit to be easier
29365         to follow.  Don't set event bits that were not requested (except
29366         POLLERR and POLLHUP).
29367
29368 2007-01-01  Bruno Haible  <bruno@clisp.org>
29369
29370         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
29371
29372 2007-01-03  Jim Meyering  <jim@meyering.net>
29373
29374         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
29375
29376 2007-01-02  Bruno Haible  <bruno@clisp.org>
29377
29378         * modules/settime (Include): Require timespec.h.
29379         * modules/nanosleep (Include): Likewise.
29380
29381 2007-01-01  Bruno Haible  <bruno@clisp.org>
29382
29383         * gnulib-tool (func_emit_copyright_notice): Bump year.
29384         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
29385
29386 2007-01-01  Bruno Haible  <bruno@clisp.org>
29387
29388         Improve support for OpenBSD.
29389         * build-aux/config.rpath (libname_spec): Export.
29390         (library_names_spec): New variable. Export.
29391         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
29392         library_names_spec from the config.rpath output. Locate shared library
29393         through the name pattern in library_names_spec.
29394
29395 2007-01-01  Eric Blake  <ebb9@byu.net>
29396
29397         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
29398
29399 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
29400
29401         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
29402         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
29403         assume the C locale, and avoid an "eval" that could cause trouble.
29404         Problem with SORT reported by Bob Proulx.
29405
29406         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
29407         Define.  Trivial patch from Henning Nielsen Lund, originally
29408         sent to bug-grep@gnu.org today.
29409
29410 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
29411
29412         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
29413         struct stat.  Problem reported by Henning Nielsen Lund.
29414         * lib/acl.c: Include acl.h first, to check interface.  Don't
29415         bother to include sys/types.h and sys/stat.h again.
29416
29417 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
29418
29419         Import the following change from libc; problem reported by
29420         Sven Verdoolaege.
29421
29422         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
29423
29424         [BZ #1373]
29425         * lib/argp.h: Remove __NTH for __argp_usage inline function.
29426
29427 2006-12-28  Jim Meyering  <jim@meyering.net>
29428
29429         * build-aux/announce-gen: Do not assume that the package
29430         builds any of tar.gz, tar.bz2, and .xdelta files.
29431         Suggestion from Simon Josefsson.
29432
29433 2006-12-28  Simon Josefsson  <simon@josefsson.org>
29434
29435         * modules/announce-gen: New file.
29436
29437 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
29438
29439         * lib/mbchar.h: Just include <wctype.h>; the wctype module
29440         handles its gotchas now.
29441         * lib/mbswidth.c: Likewise.
29442         * lib/wcwidth.h: Likewise.
29443         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
29444         and iswcntrl; the wctype module does this stuff now.
29445         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
29446         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
29447         * modules/mbchar (Depends-on): Add wctype.
29448         * modules/mbswidth (Depends-on): Likewise.
29449         * modules/wcwidth (Depends-on): Likewise.
29450
29451 2006-12-27  Eric Blake  <ebb9@byu.net>
29452
29453         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
29454         module uses more than what <wctype.h> is required to provide.
29455
29456 2006-12-26  Eric Blake  <ebb9@byu.net>
29457
29458         * gnulib-tool (sed_extract_prog): Avoid space-tab.
29459
29460 2006-12-26  Eric Blake  <ebb9@byu.net>
29461
29462         * modules/absolute-header: New module.
29463         * modules/fcntl (Depends-on): Depend on it.
29464         * modules/inttypes (Depends-on): Likewise.
29465         * modules/stdint (Depends-on): Likewise.
29466         * modules/sys_stat (Depends-on): Likewise.
29467         * modules/wctype (Depends-on): Likewise.
29468         * MODULES.html.sh (Support for building libraries and
29469         executables): Document it.
29470
29471 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
29472
29473         * gnulib-tool (SED): Remove, undoing previous change.
29474         The problem was that it broke coreutils on Solaris, because
29475         "sed --posix" leaked into a makefile.
29476         (sed): New alias, if 'alias' and GNU sed.
29477
29478 2006-12-24  Jim Meyering  <jim@meyering.net>
29479
29480         Work around an fchownat bug in glibc-2.4:
29481         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
29482         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
29483         in spite of the -P option.
29484         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
29485         New macros.
29486         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
29487         * modules/openat (Files): Add lib/fchownat.c.
29488         * lib/openat.c (fchownat): Don't define here.  Move to...
29489         * lib/fchownat.c: ...this new file.
29490
29491 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
29492
29493         Fix bug reported by Bruno Haible in
29494         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
29495         where quotearg.c didn't compile on Mac OS X 10.2 because it
29496         lacks <wchar.h> and wint_t.
29497         * lib/wctype_.h (__wctype_wint_t): New type.
29498         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
29499         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
29500         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
29501         Arg is now of type __wctype_wint_t, not wint_t.
29502         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
29503         substitute HAVE_WINT_T.
29504         * modules/wctype (Files): Add m4/wint_t.m4.
29505         (wctype.h): Substitute HAVE_WINT_T.
29506
29507 2006-12-23  Bruno Haible  <bruno@clisp.org>
29508
29509         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
29510
29511 2006-12-23  Bruno Haible  <bruno@clisp.org>
29512
29513         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
29514         S_ISLNK.
29515         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
29516         mingw.
29517
29518 2006-12-22  Bruno Haible  <bruno@clisp.org>
29519
29520         * lib/copy-file.c: Include acl.h.
29521         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
29522         Close the file descriptors only after being done with copy_acl.
29523         * modules/copy-file (Depends-on): Add acl.
29524
29525 2006-12-22  Bruno Haible  <bruno@clisp.org>
29526
29527         * gnulib-tool (SED): New variable.
29528         Use $SED instead of sed everywhere.
29529
29530 2006-12-22  Bruno Haible  <bruno@clisp.org>
29531
29532         * modules/no-c++: New file.
29533         * m4/no-c++.m4: New file.
29534         * MODULES.html.sh (Support for building libraries and executables):
29535         Add no-c++.
29536
29537 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
29538
29539         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
29540         Include <limits.h>, and use its INT_MAX to rewrite the
29541         j loop so that it does not overflow 'int'.  Problem reported by
29542         Ralf Wildenhues in
29543         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
29544         Play it safe by shifting left by 1 rather than multiplying by 2,
29545         as GCC is less likely to optimize this away when the value
29546         is signed (when it assumes overflow leads to undefined behavior).
29547         Also, don't assume time_t uses two's complement.
29548
29549 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
29550
29551         * MODULES.html.sh: New module wctype.
29552         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
29553         * lib/fnmatch.c: Don't bother to include <wchar.h> before
29554         <wctype.h>, since the new wctype module should fix this.
29555         * lib/quotearg.c: Include <wctype.h> unconditionally, since
29556         the wctype module should arrange for it.
29557         * lib/regex_internal.h: Likewise.
29558         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
29559         since the wctype module should handle this now.
29560         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
29561         * modules/fnmatch (Depends-on): Add wctype.
29562         * modules/quotearg (Depends-on): Likewise.
29563         * modules/regex (Depends-on): Likewise.
29564
29565 2006-12-19  Bruno Haible  <bruno@clisp.org>
29566
29567         * lib/strdup.h [C++]: Wrap definitions in extern "C".
29568         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
29569
29570 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29571
29572         * modules/savewd (Depends-on): Fix dependency on fcntl.
29573
29574 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
29575
29576         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
29577         conforms to C99, rather than relying on the user's environment
29578         setting of STDINT_H.
29579
29580 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
29581         and Eric Blake  <ebb9@byu.net>
29582
29583         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
29584         This is more consistent with the other defines here.
29585         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
29586         Port to z/OS.  Problem reported by Paul Gilmartin.
29587         Change local vars to use gl_ prefix rather than ac_.
29588         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
29589         with other defines.
29590         * modules/double-slash-root: New module.
29591         * modules/dirname (Files): Remove m4/double-slash-root.m4.
29592         (Depends-on): Add double-slash-root.
29593         * MODULES.html.sh (File system functions): Mention new module.
29594
29595 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
29596
29597         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
29598         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
29599         This is for the benefit of gzip, which doesn't do i18n.
29600
29601 2006-12-12  Jim Meyering  <jim@meyering.net>
29602
29603         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
29604         Reported by Andreas Schwab <schwab@suse.de>.
29605
29606 2006-12-12  Bruno Haible  <bruno@clisp.org>
29607
29608         Merge these changes.
29609         2006-09-05  Bruno Haible  <bruno@clisp.org>
29610         * lib/iconvme.c (iconv_string): No need to save and restore errno when
29611         iconv_alloc succeeded.
29612         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
29613         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
29614         test for " && dest " at the end - dest is always != NULL there. Call
29615         iconv with 4xNULL arguments initially, to reset the state. Call iconv
29616         with 2xNULL arguments, also to flush the state storage. Handle the
29617         IRIX iconv behaviour. Realloc the final result, to throw away unused
29618         memory.
29619
29620 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
29621
29622         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
29623         and fchmodat unconditionally, since glibc 2.4 has them.
29624         Problem reported by Arkadiusz Miskiewicz.
29625
29626 2006-12-10  Bruno Haible  <bruno@clisp.org>
29627
29628         * gnulib-tool (func_import): Show the include files only for those
29629         modules that are copied and specified.
29630         Reported by Karl Berry.
29631
29632 2006-12-08  Jim Meyering  <jim@meyering.net>
29633
29634         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
29635         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
29636
29637         * build-aux/announce-gen: Add two new options, both optional:
29638         --bootstrap-tools=TOOL_LIST
29639               a comma-separated list of tools, e.g.,
29640               autoconf,automake,bison,gnulib
29641         --gnulib-snapshot-date=DATE
29642               if gnulib is in the bootstrap tool list,
29643               then report this as the snapshot date.
29644               If not specified, use the current date/time.
29645               If you specify a date here, be sure it's UTC.
29646
29647 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29648
29649         * tests/test-argp-2.sh: Fix test to match actual output.
29650         (func_compare): Fix sed script to be portable.
29651
29652 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
29653
29654         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
29655         workaround for this case.  It is not autoconfigured now; offhand
29656         it's hard to see how to autoconfigure it.
29657
29658 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
29659
29660         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
29661         a directory that is about to be chowned.  Such a directory's
29662         initial file permissions should permit the owner only and this
29663         should not be changed until after the chown, since the group and
29664         other bits would be incorrect if they granted permission before
29665         the chown.
29666
29667         Fix porting problem for iswctype reported by Georg Schwarz in:
29668         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
29669         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
29670         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
29671         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
29672         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
29673
29674 2006-12-03  Jim Meyering  <jim@meyering.net>
29675
29676         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
29677         p->fts_statp may not yet be defined.
29678         (fts_read): Instead, set it in the caller, once p->fts_statp is
29679         sure to be defined, and corresponds to a top-level directory.
29680         This bug made du -x fail.  Here's the coreutils test case:
29681         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
29682         Reported by Mike Frysinger.
29683
29684 2006-12-01  Jim Meyering  <jim@meyering.net>
29685
29686         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
29687         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
29688         Reported by Simon Josefsson.
29689
29690 2006-11-30  Jim Meyering  <jim@meyering.net>
29691
29692         * m4/warning.m4: Use the all-permissive copyright notice
29693         recommended by RMS (rather than LGPL).
29694         * m4/vararrays.m4: Likewise.
29695         * m4/flexmember.m4: Likewise.
29696
29697 2006-11-29  Bruno Haible  <bruno@clisp.org>
29698
29699         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
29700         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
29701         using +=.
29702         Reported by Simon Josefsson <simon@josefsson.org>.
29703
29704 2006-11-28  James Youngman <jay@gnu.org>
29705
29706         * README: Advise users that they might find the bug-gnulib@gnu.org
29707         and autotools-announce@gnu.org mailing lists useful.
29708
29709 2006-11-28  Bruno Haible  <bruno@clisp.org>
29710
29711         * m4/ptrdiff_max.m4: Remove file.
29712
29713 2006-11-21  Bruno Haible  <bruno@clisp.org>
29714
29715         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
29716         _AC_COMPUTE_INT.
29717         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
29718         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
29719         _AC_COMPUTE_INT.
29720         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
29721         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
29722         _AC_COMPUTE_INT.
29723         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
29724
29725 2006-11-28  Jim Meyering  <jim@meyering.net>
29726
29727         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
29728         warning from "gcc -Wshadow" about shadowing the builtin.
29729
29730 2006-11-27  Bruno Haible  <bruno@clisp.org>
29731
29732         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
29733         _AC_COMPUTE_INT.
29734         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
29735
29736 2006-11-27  Bruno Haible  <bruno@clisp.org>
29737             Paul Eggert  <eggert@cs.ucla.edu>
29738
29739         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
29740
29741 2006-11-26  Bruno Haible  <bruno@clisp.org>
29742
29743         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
29744         noinst_LTLIBRARIES.
29745
29746 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
29747             Bruno Haible  <bruno@clisp.org>
29748
29749         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
29750         if compiling with "gcc -ansi".
29751
29752 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
29753
29754         Fix some incompatibilities with gcc -ansi -pedantic.
29755         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
29756         if compiling pedantically with GCC, unless it's C99 or later.
29757         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
29758         it mishandles gcc -ansi -pedantic as well.
29759         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
29760         if gcc -pedantic.
29761         * lib/regexec.c (check_node_accept_bytes): Don't use auto
29762         initializers for struct if -pedantic, unless it's C99 or later.
29763
29764 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
29765
29766         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
29767         Don't close an fd more than once. Identical atimes indicate
29768         success, not failure.
29769
29770 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
29771
29772         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
29773
29774 2006-11-23  Jim Meyering  <jim@meyering.net>
29775
29776         * build-aux/announce-gen: New file.  From coreutils.
29777
29778 2006-11-22  Jim Meyering  <jim@meyering.net>
29779
29780         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
29781         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
29782         (fts_read): Use a temporary to narrow the overused st_size member
29783         before using it in a switch statement.  Reported by Matthew Woehlke.
29784
29785         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
29786         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
29787
29788 2006-11-20  Bruno Haible  <bruno@clisp.org>
29789
29790         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
29791         changequote instead of pairs of brackets.
29792         Reported by Andreas Schwab <schwab@suse.de>.
29793
29794 2006-11-21  Jim Meyering  <jim@meyering.net>
29795
29796         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
29797         so as to remain compatible with older compilers.
29798         Patch from Michael Deutschmann.
29799
29800 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
29801
29802         * MODULES.html.sh (File system functions): Add openat.
29803
29804         * lib/openat.h (rpl_fstatat): New macro, if
29805         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
29806         (fstatat): Define to rpl_fstatat under the same conditions,
29807         unless COMPILING_FSTATAT.
29808         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
29809         seems to have the bug.
29810         * lib/fstatat.c: New file.
29811         * modules/openat (Files): Add it.
29812
29813 2006-11-20  Bruno Haible  <bruno@clisp.org>
29814
29815         * Makefile: New file.
29816
29817 2006-11-20  Jim Meyering  <jim@meyering.net>
29818
29819         The beginnings of syntax-related checks for gnulib.
29820         * lib/Makefile: New file.
29821         * lib/t-idcache: New script.  Ensure that the two halves of
29822         idcache.c stay in sync.
29823
29824         * lib/idcache.c: Adjust comments in user- and group- portions to
29825         be more accurate, and to be consistent with one another.
29826
29827 2006-11-20  Jim Meyering  <jim@meyering.net>
29828
29829         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
29830         continue using the flexible array member (thus, this module performs
29831         half as many malloc calls), with the addition that...
29832         (getgroup, getuser): Consistently record a non-match via an empty
29833         "name" string, and map an empty string match to a NULL return value.
29834         * modules/idcache (Depends-on): Re-add flexmember.
29835
29836         * lib/idcache.c (getuser): Remove all uses of the register keyword.
29837         (getuidbyname, getgroup, getgidbyname): Likewise.
29838
29839         Use cleaner syntax: NULL rather than 0.
29840         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
29841
29842 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
29843
29844         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
29845         It mishandled the case where the group was missing.
29846         Problem reported by Greg Schafer.
29847         * modules/idcache: Likewise.
29848
29849 2006-11-18  Jim Meyering  <jim@meyering.net>
29850
29851         * check-module (%exempt_header): Add exception for some
29852         conditionally-included headers.
29853
29854         * modules/i-ring (Depends-on): Add verify.
29855         (License): Change to LGPL.
29856
29857 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
29858
29859         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
29860         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
29861         and inttostr.h.  Use snprintf rather than uinttostr, so that
29862         LGPLed code doesn't depend on GPLed.
29863
29864 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
29865
29866         * modules/inline (License): Change from GPL to LGPL.
29867
29868 2006-11-17  Jim Meyering  <jim@meyering.net>
29869
29870         * modules/d-type (License): Switch to LGPL.
29871
29872 2006-11-15  Bruno Haible  <bruno@clisp.org>
29873
29874         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
29875
29876 2006-11-15  Eric Blake  <ebb9@byu.net>
29877
29878         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
29879         the module dependency.
29880
29881 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
29882             Bruno Haible  <bruno@clisp.org>
29883
29884         * gnulib-tool (func_create_testdir): Add license consistency check.
29885
29886 2006-11-15  Eric Blake  <ebb9@byu.net>
29887
29888         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
29889         random "(cached)" in configure output.
29890
29891 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29892
29893         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
29894         test for conforming inttypes.h is both announced and cached.
29895
29896         * MODULES.html.sh (seen_modules, seen_files): New variables.
29897         (func_module): Rewrite to use a few less gnulib-tool and sed
29898         invocations.  Avoid a couple of quadratic algorithms for ...
29899         (missed_modules, missed_files): ... these, with ...
29900         (func_append, func_tmpdir): ... these new functions, from
29901         gnulib-tool.  Analogously, install traps for cleanup.
29902
29903         * tests/test-gc.c (main): Remove unused variables.
29904         * tests/test-read-file.c: Include stdlib.h, for 'free'.
29905
29906 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
29907
29908         * modules/inttostr (License): Change to LGPL.
29909
29910 2006-11-14  Eric Blake  <ebb9@byu.net>
29911
29912         * modules/tempname (License): Change to LGPL.
29913
29914 2006-11-14  Eric Blake  <ebb9@byu.net>
29915
29916         * doc/functions.texi (Function Portability): *printf functions on
29917         Cygwin now understand all POSIX size specifiers.
29918
29919 2006-11-14  Bruno Haible  <bruno@clisp.org>
29920
29921         * modules/c-ctype (License): Change to LGPL.
29922
29923 2006-11-12  Bruno Haible  <bruno@clisp.org>
29924
29925         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
29926         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
29927         for GNOME libraries, for which the include files are installed in
29928         subdirectories of $prefix/include.
29929
29930 2006-11-12  Bruno Haible  <bruno@clisp.org>
29931
29932         * m4/lib-link.m4: Require at least autoconf-2.54.
29933         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
29934         name to underscores for the --with option.
29935
29936 2006-11-13  Bruno Haible  <bruno@clisp.org>
29937
29938         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
29939         the tests directory.
29940         Reported by Ralf Wildenhues.
29941
29942 2006-11-13  Bruno Haible  <bruno@clisp.org>
29943
29944         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
29945         (func_emit_initmacro_end): Undo the override here.
29946         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
29947         Works around the famous automake error in coreutils.
29948
29949 2006-11-13  Eric Blake  <ebb9@byu.net>
29950
29951         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
29952         element, not its node.
29953
29954 2006-11-12  Bruno Haible  <bruno@clisp.org>
29955
29956         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
29957         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
29958
29959 2006-11-12  Bruno Haible  <bruno@clisp.org>
29960
29961         * gnulib-tool: New option --local-symlink.
29962         (func_usage): Document it.
29963         (lsymbolic): New variable.
29964         (func_import, func_create_testdir): If --symlink was not specified,
29965         test whether --local-symlink was specified and the file comes from
29966         the local_gnulib_dir.
29967
29968 2006-11-12  Bruno Haible  <bruno@clisp.org>
29969
29970         * gnulib-tool (func_ln): New function.
29971         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
29972
29973 2006-11-12  Bruno Haible  <bruno@clisp.org>
29974
29975         Finish support for source files in subdirectories.
29976         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
29977         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
29978         AUTOMAKE_OPTIONS.
29979         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
29980
29981 2006-11-12  Bruno Haible  <bruno@clisp.org>
29982
29983         * gnulib-tool (func_get_automake_snippet): Synthesize also an
29984         EXTRA_lib_SOURCES augmentation.
29985         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
29986
29987 2006-11-12  Jim Meyering  <jim@meyering.net>
29988
29989         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
29990         file descriptors.  This also averts a failure on systems with
29991         native openat support when a traversed directory lacks "x" access.
29992         * lib/fts_.h: Include "i-ring.h"
29993         (struct FTS) [fts_fd_ring]: New member.
29994         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
29995         (FCHDIR): Add parentheses.
29996         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
29997         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
29998         When descending, rather than simply closing the previous
29999         fts_cwd_fd value, push that file descriptor onto the ring.
30000         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
30001         (fts_open): Initialize the new fd_ring member.
30002         (fts_close): Clear the ring.
30003         (fts_safe_changedir): When possible, use our new fd_ring to skip
30004         the diropen and fstat and dev/ino comparison that would normally
30005         accompany a virtual `chdir ("..")'.
30006
30007         * modules/fts (Depends-on): Add i-ring.
30008         * modules/i-ring: New module.
30009         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
30010         * m4/i-ring.m4: New file.
30011
30012 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30013
30014         * gnulib-tool (func_create_testdir): Fix replacement of
30015         `build-aux' in configure.ac.  Run autotools in gltests
30016         subdirectory.
30017         (func_create_testdir, func_create_megatestdir, test): There is
30018         no need for '--force' in most autotool invocations in a new
30019         tree.  Actually fail the whole test if any of the tools, or the
30020         configure or make stages fail.
30021
30022         Sync from Automake.
30023         * build-aux/gnupload: Revert last change.  Add pointer to upload
30024         instructions of the GNU Maintenance Instructions.
30025         Suggestion by Karl Berry.
30026
30027 2006-11-10  Jim Meyering  <jim@meyering.net>
30028
30029         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
30030
30031 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
30032
30033         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
30034         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
30035         (bind_textdomain_codeset) [! ENABLE_NLS]:
30036         Evaluate all the arguments.  That way, callers get compatible behavior
30037         if the arguments have side effects.  Also, it avoids some GCC
30038         diagnostics in some cases; Joel E. Denny reported problems when Bison
30039         was configured with --enable-gcc-warnigs.
30040
30041 2006-11-10  Jim Meyering  <jim@meyering.net>
30042
30043         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
30044         relevant options in CFLAGS (like -O, -fno-inline) are taken into
30045         account.
30046
30047 2006-11-10  Jim Meyering  <jim@meyering.net>
30048
30049         * modules/inline: New file/module.
30050         * modules/xalloc (Files): Remove m4/inline.m4.
30051         (Depends-on): Add inline, instead.
30052         * modules/oset: Likewise.
30053         * modules/list: Likewise.
30054
30055 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
30056
30057         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
30058         Problem reported by Matthew Woehlke.
30059
30060 2006-11-09  Bruno Haible  <bruno@clisp.org>
30061
30062         * lib/tempname.c (gen_tempname): Remove variant that invokes
30063         __gen_tempname.
30064         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
30065         __gen_tempname.
30066
30067 2006-11-08  Bruno Haible  <bruno@clisp.org>
30068
30069         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
30070         to 'yes' instead of 'cross-compiling'.
30071
30072 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
30073
30074         * lib/quotearg.h (quotearg_free): New decl.
30075         * lib/quotearg.c (quotearg_free): New function.
30076         (slot0, nslots, slotvec0, slotvec):
30077         Now file-scope so that quotearg_free can get at them.
30078
30079 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30080
30081         Sync from Automake.
30082         * build-aux/gnupload: Add missing 'gnu' to example URL.
30083         Report by Karl Berry.
30084
30085 2006-11-08  Bruno Haible  <bruno@clisp.org>
30086
30087         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
30088         Suggested by Paul Eggert.
30089
30090 2006-11-08  Jim Meyering  <jim@meyering.net>
30091
30092         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
30093         It's already included if !_LIBC.
30094         (fts_safe_changedir): Add a comment.
30095
30096 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
30097
30098         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
30099         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
30100         Matthew Woehlke.
30101
30102         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
30103         definitions up, to avoid colliding with change below.
30104         (static_inline) [HAVE_INLINE]: New macro.
30105         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
30106         Provide extern decls when !HAVE_INLINE.  Do not define unless
30107         static_inline is defined, either by us or by xmalloc.c.  Use
30108         static_inline rather than static inline.
30109         (XCALLOC): Optimize sizeof(T) = 1 case.
30110         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
30111
30112 2006-11-07  Bruno Haible  <bruno@clisp.org>
30113
30114         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
30115         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
30116         AC_C_INLINE.
30117         * modules/xalloc (Files): Add m4/inline.m4.
30118
30119 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30120
30121         * README: Fix typo.
30122         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
30123         (Miscellanous Notes): ...from this.
30124
30125 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
30126
30127         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
30128         Mention that offsetof should be used instead of sizeof.
30129         From Bruno Haible.
30130
30131 2006-11-07  Bruno Haible  <bruno@clisp.org>
30132
30133         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
30134
30135 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
30136
30137         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
30138         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
30139         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
30140         (gl_tree_add_before, gl_tree_add_after):
30141         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
30142         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
30143         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
30144         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
30145         (gl_linked_add_after, gl_linked_add_at): Likewise.
30146         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
30147         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
30148         (gl_tree_add_before, gl_tree_add_after): Likewise.
30149         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
30150         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
30151         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
30152
30153 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30154
30155         * lib/gl_oset.h: Use C comment style, not C++ comment style.
30156
30157 2006-11-06  Bruno Haible  <bruno@clisp.org>
30158
30159         * m4/inline.m4: New file.
30160         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
30161         * modules/list (Files): Add m4/inline.m4.
30162         * modules/oset (Files): Likewise.
30163
30164 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
30165
30166         * lib/idcache.c: Include <stddef.h>, for offsetof.
30167         (struct userid.name): Change from char * to a flexible array member.
30168         All uses changed.
30169         * modules/idcache (Depends-on): Add flexmember.
30170
30171         * MODULES.html.sh (Core language properties): New module flexmember.
30172         * modules/flexmember, m4/flexmember.m4: New files.
30173
30174         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
30175         inline functions that are identical with the old xnmalloc_inline,
30176         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
30177         that we can avoid some unnecessary integer multiplications and
30178         divisions in the common case where the element size is known at
30179         compile time.
30180         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
30181         needed.
30182         (xnboundedmalloc): Remove.
30183         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
30184         arguments, for consistency with rest of this header.
30185         (xcharalloc): Rewrite using XNMALLOC.
30186         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
30187         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
30188         versions have been moved to lib/xalloc.h and renamed to be the
30189         non-*_inline versions.
30190         (xmalloc, xrealloc): Implement without reference to the xnmalloc
30191         and xnrealloc functions, since those functions are now inline and
30192         now call us.
30193         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
30194         renaming described above.
30195         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
30196         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
30197         captures the dependency in AC_C_INLINE.
30198
30199         New module canonicalize-lgpl, proposed by Charles Wilson in
30200         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
30201         with a few small changes afterwards.
30202         * MODULES.html.sh (File system functions): New module
30203         canonicalize-lgpl.
30204         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
30205         and canonicalize_file_name.
30206         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
30207         * modules/canonicalize-lgpl: New files.
30208
30209 2006-11-05  Bruno Haible  <bruno@clisp.org>
30210
30211         * gnulib-tool (func_import, func_create_testdir): Create directories
30212         also for files in subdirectories of lib/.
30213
30214 2006-11-05  Bruno Haible  <bruno@clisp.org>
30215
30216         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
30217         ANSI C compliant.
30218
30219 2006-11-03  Bruno Haible  <bruno@clisp.org>
30220
30221         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
30222         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
30223         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
30224         (xnboundedmalloc): New inline function.
30225         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
30226         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
30227         xmalloc.
30228         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
30229         xmalloc.
30230         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
30231         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
30232         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
30233         xmalloc.
30234         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
30235         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
30236         xmalloc.
30237         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
30238         gl_tree_add_after): Use XMALLOC instead of xmalloc.
30239         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
30240         xmalloc.
30241         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
30242         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
30243         gl_tree_add_after): Use XMALLOC instead of xmalloc.
30244         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
30245         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
30246         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
30247         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
30248
30249 2006-11-03  Bruno Haible  <bruno@clisp.org>
30250
30251         * lib/c-ctype.h [C++]: Define functions without name mangling.
30252         * lib/fwriteerror.h [C++]: Likewise.
30253         * lib/gcd.h [C++]: Likewise.
30254         * lib/linebreak.h [C++]: Likewise.
30255
30256 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
30257
30258         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
30259         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
30260         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
30261         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
30262         Check for functions and headers just once.
30263         Check for declaration of canonicalize_file_name.
30264         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
30265
30266 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
30267
30268         * gnulib-tool (func_import): Fix typo in actioncmd.
30269
30270 2006-11-02  Bruno Haible  <bruno@clisp.org>
30271
30272         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
30273         newline sequence in the Makefile.am snippet as a space, like "make"
30274         does.
30275         Reported by Roger Persson <perrog@gmail.com>.
30276
30277 2006-11-01  Bruno Haible  <bruno@clisp.org>
30278
30279         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
30280         already declared in <string.h>.
30281         * lib/strcase.h (strncasecmp): Don't declare it if yes.
30282
30283 2006-11-01  Bruno Haible  <bruno@clisp.org>
30284
30285         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
30286         * lib/strcase.h: Include <string.h>.
30287         (strcasecmp): Define to rpl_strcasecmp here.
30288
30289 2006-11-01  Bruno Haible  <bruno@clisp.org>
30290
30291         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
30292
30293 2006-11-01  Eric Blake  <ebb9@byu.net>
30294
30295         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
30296
30297         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
30298
30299 2006-10-29  Bruno Haible  <bruno@clisp.org>
30300
30301         Make it compile in C++ mode.
30302         * lib/full-write.c (full_rw): Add a cast.
30303
30304 2006-11-01  Bruno Haible  <bruno@clisp.org>
30305
30306         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
30307         be POSIX compliant.
30308         Reported by Roger Persson <perrog@gmail.com>.
30309
30310 2006-11-01  Eric Blake  <ebb9@byu.net>
30311
30312         * lib/getopt_.h: Fix comments.
30313
30314 2006-10-31  Eric Blake  <ebb9@byu.net>
30315
30316         * modules/tmpdir (Depends-on): Add sys_stat.
30317         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
30318         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
30319         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
30320         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
30321         tempname.
30322
30323 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
30324
30325         Avoid some C++ diagnostics reported by Bruno Haible.
30326         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
30327         xmalloc.
30328         (quotearg_alloc): Use xcharalloc rather than xmalloc.
30329         (struct slotvec): Move to top level.
30330         (quotearg_n_options): Rewrite to avoid xmalloc.
30331         * lib/xalloc.h (xcharalloc): New function.
30332         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
30333         [defined __cplusplus]: Add function template that provides result
30334         type propagation.  This part of the change is from Bruno Haible.
30335
30336 2006-10-29  Bruno Haible  <bruno@clisp.org>
30337
30338         Make it compile in C++ mode.
30339         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
30340         * lib/strnlen1.c (strnlen1): Cast memchr result.
30341         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
30342         * lib/clean-temp.c (string_equals, string_hash): Add casts.
30343         (create_temp_dir): Rename local variable 'template'.
30344         (compile_csharp_using_sscli): Add cast.
30345         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
30346         * lib/findprog.c (find_in_path): Likewise.
30347         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
30348         * lib/wait-process.c (register_slave_subprocess): Likewise.
30349
30350 2006-10-22  Bruno Haible  <bruno@clisp.org>
30351
30352         * modules/tsearch: New file.
30353         * lib/tsearch.h: New file.
30354         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
30355         * m4/tsearch.m4: New file.
30356         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
30357
30358 2006-10-29  Eric Blake  <ebb9@byu.net>
30359
30360         * lib/arcfour.c: Assume config.h.
30361         * lib/arctwo.c: Likewise.
30362         * lib/base64.c: Likewise.
30363         * lib/check-version.c: Likewise.
30364         * lib/crc.c: Likewise.
30365         * lib/des.c: Likewise.
30366         * lib/gc-gnulib.c: Likewise.
30367         * lib/gc-libgcrypt.c: Likewise.
30368         * lib/gc-pbkdf2-sha1.c: Likewise.
30369         * lib/getaddrinfo.c: Likewise.
30370         * lib/getdelim.c: Likewise.
30371         * lib/getline.c: Likewise.
30372         * lib/hmac-md5.c: Likewise.
30373         * lib/hmac-sha1.c: Likewise.
30374         * lib/iconvme.c: Likewise.
30375         * lib/md2.c: Likewise.
30376         * lib/md4.c: Likewise.
30377         * lib/memxor.c: Likewise.
30378         * lib/read-file.c: Likewise.
30379         * lib/readline.c: Likewise.
30380         * lib/rijndael-alg-fst.c: Likewise.
30381         * lib/rijndael-api-fst.c: Likewise.
30382         * lib/xgetdomainname.c: Likewise.
30383
30384 2006-10-28  Eric Blake  <ebb9@byu.net>
30385
30386         * lib/xstrndup.c: Assume config.h.
30387
30388 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
30389
30390         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
30391         stat-macros.h is now for our own macros, whereas stat_h is for
30392         macros in the <sys/stat.h> name space.
30393         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
30394         (STAT_MACROS_H): Remove.
30395         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
30396         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
30397         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
30398         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
30399         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
30400         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
30401         Move these macros to ...
30402         * lib/stat_.h: here.  Don't include stat-macros.h.
30403         * lib/canonicalize.c: Don't include stat-macros.h.
30404         * lib/chown.c: Likewise.
30405         * lib/euidaccess.c: Likewise.
30406         * lib/file-type.c: Likewise.
30407         * lib/filemode.c: Likewise.
30408         * lib/glob.c: Likewise.
30409         * lib/isapipe.c: Likewise.
30410         * lib/lchown.c: Likewise.
30411         * lib/lstat.c: Likewise.
30412         * lib/mkdir-p.c: Likewise.
30413         * lib/rmdir.c: Likewise.
30414         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
30415         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
30416         unless mkdir isn't declared, to speed up 'configure'.
30417         Always create sys/stat.h, since it's unlikely any real sys/stat.h
30418         would define all the S_* symbols.
30419         * modules/canonicalize (Depends-on):
30420         Depend on sys_stat, not stat-macros.
30421         * modules/chown: Likewise.
30422         * modules/euidaccess: Likewise.
30423         * modules/filemode: Likewise.
30424         * modules/file-type: Likewise.
30425         * modules/glob: Likewise.
30426         * modules/isapipe: Likewise.
30427         * modules/lchown: Likewise.
30428         * modules/lstat: Likewise.
30429         * modules/mkancesdirs: Likewise.
30430         * modules/rmdir: Likewise.
30431         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
30432         * modules/modechange: Likewise.
30433         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
30434         (configure.ac): Remove gl_STAT_MACROS.
30435         * modules/sys_stat (Depends-on): Remove stat-macros.
30436
30437 2006-10-27  Bruno Haible  <bruno@clisp.org>
30438
30439         * m4/signed.m4: Remove file.
30440         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
30441         invocation.
30442         * modules/vasnprintf (Files): Remove m4/signed.m4.
30443
30444 2006-10-27  Bruno Haible  <bruno@clisp.org>
30445
30446         Update to GNU gettext 0.16.
30447         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
30448         m4/inttypes-h.m4, m4/signed.m4.
30449         * m4/gettext.m4: Update to GNU gettext 0.16.
30450         * m4/intl.m4: New file, from GNU gettext.
30451         * m4/intldir.m4: New file, from GNU gettext.
30452         * config/srclist.txt: Update
30453
30454 2006-10-27  Eric Blake  <ebb9@byu.net>
30455
30456         * MODULES.html.sh: Document tempname.
30457         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
30458         dependencies.
30459         (Files): Move lib/tempname.c...
30460         * modules/tempname: ...to this new module.
30461         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
30462         (gl_PREREQ_TEMPNAME): Move...
30463         * m4/tempname.m4: ...to this new file.
30464         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
30465         * modules/sys_stat (Depends-on): Add stat-macros.
30466         * lib/stat_.h (includes): Pick up stat macros.
30467         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
30468         if stat macros are broken.
30469         * lib/tempname.c (includes): No need to include "stat-macros.h".
30470         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
30471         (direxists, __path_search) [!_LIBC]: Don't compile these in
30472         gnulib; the tmpdir module covers that.
30473         * lib/tempname.h: New file.
30474
30475 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
30476
30477         * COPYING: Explain how gnulib-tool converts licence headers.
30478         Almost all wording by Eric Blake.
30479
30480 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
30481
30482         * lib/mbchar.h (is_basic_table): Make read-only.
30483         * lib/mbchar.c (is_basic_table): Likewise.
30484         Reported by John Darrington.
30485
30486 2006-10-25  Bruno Haible  <bruno@clisp.org>
30487
30488         * lib/progname.h (set_program_name): Undefine before defining.
30489
30490 2006-10-25  Bruno Haible  <bruno@clisp.org>
30491
30492         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
30493         false for non-gcc C++ compilers.
30494         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
30495
30496 2006-10-24  Bruno Haible  <bruno@clisp.org>
30497
30498         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
30499         iconv implementations like Irix iconv.
30500
30501 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30502
30503         * modules/vararrays: New file.
30504         * m4/vararrays.m4: New file, taken from diffutils.
30505         * MODULES.html.sh: New module vararrays.
30506
30507 2006-10-24  Karl Berry  <karl@gnu.org>
30508
30509         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
30510         Don't call GNU Unix.
30511
30512 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30513
30514         * users.txt: Add Libtool.
30515
30516         Sync from Libtool:
30517
30518         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30519
30520         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
30521         to gnulib's policy of including config.h unconditionally.
30522
30523 2006-10-24  Bruno Haible  <bruno@clisp.org>
30524
30525         * modules/wcwidth (Files): Add m4/wint_t.m4.
30526         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
30527         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
30528
30529 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
30530
30531         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
30532         to pacify GCC with some -W flags enabled.  Problem reported by
30533         Bruno Haible.
30534
30535 2006-10-24  Jim Meyering  <jim@meyering.net>
30536
30537         * MODULES.html.sh: Remove uinttostr.  It's not a module.
30538         Reported by Karl Berry.
30539
30540 2006-10-23  Bruno Haible  <bruno@clisp.org>
30541
30542         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
30543
30544 2006-10-24  Bruno Haible  <bruno@clisp.org>
30545
30546         * lib/gl_list.h: Use C comment style, not C++ comment style.
30547
30548 2006-10-23  Eric Blake  <ebb9@byu.net>
30549
30550         * lib/getaddrinfo.c (includes): Add missing include.
30551
30552 2006-10-23  Bruno Haible  <bruno@clisp.org>
30553             Paul Eggert  <eggert@cs.ucla.edu>
30554
30555         Ability to rename obstack_free.
30556         * lib/obstack.h (__obstack_free): New macro. Declare instead of
30557         obstack_free.
30558         (obstack_free): Invoke the __obstack_free macro.
30559         * lib/obstack.c (obstack_free): Use __obstack_free macro.
30560
30561 2006-10-23  Bruno Haible  <bruno@clisp.org>
30562             Paul Eggert  <eggert@cs.ucla.edu>
30563
30564         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
30565         __argc, __argv from the declaration. (They are defined as macros on
30566         mingw.)
30567
30568 2006-10-22  Bruno Haible  <bruno@clisp.org>
30569
30570         * doc/gnulib-intro.texi: New file.
30571         * doc/gnulib.texi: Include it.
30572
30573 2006-10-21  Bruno Haible  <bruno@clisp.org>
30574
30575         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
30576         "Introduction", "Miscellanous Notes", "Particular Modules".
30577
30578 2006-10-21  Bruno Haible  <bruno@clisp.org>
30579
30580         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
30581         Change mostlyclean-local rule to avoid sh syntax error from bash
30582         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
30583
30584 2006-10-23  Jim Meyering  <jim@meyering.net>
30585
30586         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
30587         in place of snprintf.
30588
30589         * modules/inttostr (Files): Add lib/uinttostr.c.
30590         * lib/uinttostr.c (inttostr): New file/function.
30591         * lib/inttostr.h (uinttostr): Declare.
30592         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
30593         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
30594         Add uinttostr.
30595         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
30596
30597 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
30598
30599         * lib/canonicalize.c (ELOOP): Define if not already defined.
30600         Problem reported by Bruno Haible in
30601         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
30602
30603 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
30604
30605         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
30606         Problem reported by Perry Smith and Ville Laurikari.
30607
30608         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
30609         uses.
30610
30611 2006-10-19  Bruno Haible  <bruno@clisp.org>
30612
30613         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
30614         for mingw.
30615
30616 2006-10-19  Bruno Haible  <bruno@clisp.org>
30617
30618         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
30619         Needed for mingw.
30620
30621 2006-10-19  Bruno Haible  <bruno@clisp.org>
30622
30623         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
30624
30625 2006-10-19  Bruno Haible  <bruno@clisp.org>
30626
30627         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
30628         it.
30629
30630 2006-10-19  Bruno Haible  <bruno@clisp.org>
30631
30632         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
30633         invocation.
30634
30635 2006-10-19  Bruno Haible  <bruno@clisp.org>
30636
30637         * gnulib-tool (func_create_testdir): Don't include ftruncate and
30638         mountlist by default.
30639
30640 2006-10-16  Bruno Haible  <bruno@clisp.org>
30641
30642         * lib/c-strstr.c: Include c-strstr.h.
30643
30644 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
30645
30646         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
30647         in a slash.
30648
30649 2006-10-18  Bruno Haible  <bruno@clisp.org>
30650
30651         * lib/lock.h [C++]: Wrap definitions in extern "C".
30652
30653 2006-10-18  Bruno Haible  <bruno@clisp.org>
30654
30655         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
30656         gl_LIBOBJS list.
30657
30658 2006-10-18  Bruno Haible  <bruno@clisp.org>
30659
30660         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
30661
30662 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
30663
30664         * lib/xstrtol.h: Include gettext.h.
30665         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
30666         Problem reported by Eric Blake.
30667         * modules/xstrtol (Depends-on): Add gettext-h.
30668
30669 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
30670
30671         * lib/strftime.c (advance): New macro.
30672         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
30673         incomplete type, so you can't add 0 to it.  Problem and patch
30674         reported by Eelco Dolstra for dietlibc.
30675
30676 2006-10-18  Jim Meyering  <jim@meyering.net>
30677
30678         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
30679         type for a local, and rename it: s/up/user_proc/.
30680
30681 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
30682
30683         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
30684         READ_UTMP_USER_PROCESS.
30685         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
30686
30687 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
30688
30689         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
30690         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
30691
30692 2006-10-17  Eric Blake  <ebb9@byu.net>
30693
30694         * lib/sigprocmask.c (sigprocmask): Fix typo.
30695
30696         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
30697
30698         * modules/clean-temp (Makefile.am): Don't add to make output...
30699         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
30700         config.h.
30701
30702 2006-10-17  Bruno Haible  <bruno@clisp.org>
30703
30704         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
30705         differently if DEFAULT_TEXT_DOMAIN is set.
30706
30707 2006-10-16  Bruno Haible  <bruno@clisp.org>
30708
30709         * lib/clean-temp.c: Include fwriteerror.h.
30710
30711 2006-10-16  Bruno Haible  <bruno@clisp.org>
30712
30713         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
30714
30715 2006-10-16  Bruno Haible  <bruno@clisp.org>
30716
30717         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
30718         * lib/sigprocmask.h: Include <sys/types.h>.
30719         (sigset_t): Use the system's definition if present.
30720
30721 2006-10-17  Eric Blake  <ebb9@byu.net>
30722
30723         * lib/xvasprintf.c (includes): Assume config.h.
30724         * lib/xasprintf.c (includes): Likewise.
30725
30726 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
30727
30728         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
30729         at least as wide as intmax_t.
30730
30731 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
30732
30733         (Imported from Automake.)
30734         * build-aux/gnupload: Update to version 1.1 of directive file.
30735
30736 2006-10-16  Eric Blake  <ebb9@byu.net>
30737
30738         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
30739         match Automake 1.10a.
30740
30741 2006-10-14  Bruno Haible  <bruno@clisp.org>
30742
30743         * modules/sigprocmask: New file.
30744         * lib/sigprocmask.h: New file.
30745         * lib/sigprocmask.c: New file.
30746         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
30747         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
30748         request sigprocmask.o.
30749         (gl_PREREQ_SIGPROCMASK): New macro.
30750         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
30751         (Depends-on): Add sigprocmask.
30752         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
30753         gt_SIGNALBLOCKING. Test for 'raise' only once.
30754         * lib/fatal-signal.c: Include sigprocmask.h.
30755         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
30756         unblock_fatal_signals): Define always.
30757         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30758         sigprocmask.
30759
30760 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
30761
30762         Sync from Automake.
30763         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
30764         which incorrectly sets the mode of an existing destination
30765         directory.  In some cases the unpatched install-sh could do the
30766         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
30767         system.  We hope this is rare in practice, but it's clearly worth
30768         fixing.  Problem reported by Alex Unleashed in
30769         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
30770         Also, don't bother to check for -m bugs unless we're using -m;
30771         suggested by Stepan Kasal.
30772
30773 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30774
30775         Sync from Automake.
30776         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
30777         `-c' flag, so they appear at the same position as in %FASTDEP%
30778         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
30779         which ignores unknown options only after the first non-option.
30780         Bug report against M4 by Nelson H. F. Beebe.
30781
30782 2006-10-13  Jim Meyering  <jim@meyering.net>
30783
30784         Fix a bug in yesterday's change.
30785         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
30786         p->fts_statp->st_dev would be used uninitialized.
30787         Ensures that we always call fts_stat on the very first entry.
30788         Miklos Szeredi reported that find -xdev stopped working.
30789
30790 2006-10-12  Bruno Haible  <bruno@clisp.org>
30791
30792         * gnulib-tool (func_get_automake_snippet): Append an automatically
30793         computed EXTRA_DIST augmentation.
30794         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
30795         * modules/alloca-opt (Makefile.am): Likewise.
30796         * modules/allocsa (Makefile.am): Likewise.
30797         * modules/arcfour (Makefile.am): Likewise.
30798         * modules/arctwo (Makefile.am): Likewise.
30799         * modules/argmatch (Makefile.am): Likewise.
30800         * modules/argz (Makefile.am): Likewise.
30801         * modules/atexit (Makefile.am): Likewise.
30802         * modules/backupfile (Makefile.am): Likewise.
30803         * modules/byteswap (Makefile.am): Likewise.
30804         * modules/c-strtod (Makefile.am): Likewise.
30805         * modules/c-strtold (Makefile.am): Likewise.
30806         * modules/calloc (Makefile.am): Likewise.
30807         * modules/canon-host (Makefile.am): Likewise.
30808         * modules/canonicalize (Makefile.am): Likewise.
30809         * modules/chdir-long (Makefile.am): Likewise.
30810         * modules/chdir-safer (Makefile.am): Likewise.
30811         * modules/check-version (Makefile.am): Likewise.
30812         * modules/chown (Makefile.am): Likewise.
30813         * modules/cloexec (Makefile.am): Likewise.
30814         * modules/close-stream (Makefile.am): Likewise.
30815         * modules/closeout (Makefile.am): Likewise.
30816         * modules/crc (Makefile.am): Likewise.
30817         * modules/csharpexec (Makefile.am): Likewise.
30818         * modules/cycle-check (Makefile.am): Likewise.
30819         * modules/des (Makefile.am): Likewise.
30820         * modules/dev-ino (Makefile.am): Likewise.
30821         * modules/dirfd (Makefile.am): Likewise.
30822         * modules/dirname (Makefile.am): Likewise.
30823         * modules/dup2 (Makefile.am): Likewise.
30824         * modules/eealloc (Makefile.am): Likewise.
30825         * modules/error (Makefile.am): Likewise.
30826         * modules/euidaccess (Makefile.am): Likewise.
30827         * modules/exclude (Makefile.am): Likewise.
30828         * modules/exitfail (Makefile.am): Likewise.
30829         * modules/fcntl-safer (Makefile.am): Likewise.
30830         * modules/fcntl (Makefile.am): Likewise.
30831         * modules/file-type (Makefile.am): Likewise.
30832         * modules/fileblocks (Makefile.am): Likewise.
30833         * modules/filemode (Makefile.am): Likewise.
30834         * modules/filenamecat (Makefile.am): Likewise.
30835         * modules/fnmatch (Makefile.am): Likewise.
30836         * modules/fopen-safer (Makefile.am): Likewise.
30837         * modules/fpending (Makefile.am): Likewise.
30838         * modules/fprintftime (Makefile.am): Likewise.
30839         * modules/free (Makefile.am): Likewise.
30840         * modules/fsusage (Makefile.am): Likewise.
30841         * modules/ftruncate (Makefile.am): Likewise.
30842         * modules/fts (Makefile.am): Likewise.
30843         * modules/gc-arcfour (Makefile.am): Likewise.
30844         * modules/gc-des (Makefile.am): Likewise.
30845         * modules/gc-hmac-md5 (Makefile.am): Likewise.
30846         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
30847         * modules/gc-md4 (Makefile.am): Likewise.
30848         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
30849         * modules/gc-sha1 (Makefile.am): Likewise.
30850         * modules/gc (Makefile.am): Likewise.
30851         * modules/getaddrinfo (Makefile.am): Likewise.
30852         * modules/getcwd (Makefile.am): Likewise.
30853         * modules/getdelim (Makefile.am): Likewise.
30854         * modules/getdomainname (Makefile.am): Likewise.
30855         * modules/getgroups (Makefile.am): Likewise.
30856         * modules/gethostname (Makefile.am): Likewise.
30857         * modules/gethrxtime (Makefile.am): Likewise.
30858         * modules/getline (Makefile.am): Likewise.
30859         * modules/getloadavg (Makefile.am): Likewise.
30860         * modules/getlogin_r (Makefile.am): Likewise.
30861         * modules/getndelim2 (Makefile.am): Likewise.
30862         * modules/getopt (Makefile.am): Likewise.
30863         * modules/getpagesize (Makefile.am): Likewise.
30864         * modules/getpass-gnu (Makefile.am): Likewise.
30865         * modules/getpass (Makefile.am): Likewise.
30866         * modules/getsubopt (Makefile.am): Likewise.
30867         * modules/gettime (Makefile.am): Likewise.
30868         * modules/gettimeofday (Makefile.am): Likewise.
30869         * modules/getugroups (Makefile.am): Likewise.
30870         * modules/getusershell (Makefile.am): Likewise.
30871         * modules/glob (Makefile.am): Likewise.
30872         * modules/group-member (Makefile.am): Likewise.
30873         * modules/hard-locale (Makefile.am): Likewise.
30874         * modules/hash (Makefile.am): Likewise.
30875         * modules/hmac-md5 (Makefile.am): Likewise.
30876         * modules/hmac-sha1 (Makefile.am): Likewise.
30877         * modules/human (Makefile.am): Likewise.
30878         * modules/idcache (Makefile.am): Likewise.
30879         * modules/imaxabs (Makefile.am): Likewise.
30880         * modules/imaxdiv (Makefile.am): Likewise.
30881         * modules/inet_ntop (Makefile.am): Likewise.
30882         * modules/inet_pton (Makefile.am): Likewise.
30883         * modules/intprops (Makefile.am): Likewise.
30884         * modules/inttostr (Makefile.am): Likewise.
30885         * modules/inttypes (Makefile.am): Likewise.
30886         * modules/isapipe (Makefile.am): Likewise.
30887         * modules/javaversion (Makefile.am): Likewise.
30888         * modules/lchmod (Makefile.am): Likewise.
30889         * modules/lchown (Makefile.am): Likewise.
30890         * modules/localcharset (Makefile.am): Likewise.
30891         * modules/long-options (Makefile.am): Likewise.
30892         * modules/lstat (Makefile.am): Likewise.
30893         * modules/malloc (Makefile.am): Likewise.
30894         * modules/mathl (Makefile.am): Likewise.
30895         * modules/mbchar (Makefile.am): Likewise.
30896         * modules/md2 (Makefile.am): Likewise.
30897         * modules/md4 (Makefile.am): Likewise.
30898         * modules/md5 (Makefile.am): Likewise.
30899         * modules/memcasecmp (Makefile.am): Likewise.
30900         * modules/memchr (Makefile.am): Likewise.
30901         * modules/memcmp (Makefile.am): Likewise.
30902         * modules/memcoll (Makefile.am): Likewise.
30903         * modules/memcpy (Makefile.am): Likewise.
30904         * modules/memmem (Makefile.am): Likewise.
30905         * modules/memmove (Makefile.am): Likewise.
30906         * modules/mempcpy (Makefile.am): Likewise.
30907         * modules/memrchr (Makefile.am): Likewise.
30908         * modules/memset (Makefile.am): Likewise.
30909         * modules/memxor (Makefile.am): Likewise.
30910         * modules/mkancesdirs (Makefile.am): Likewise.
30911         * modules/mkdir-p (Makefile.am): Likewise.
30912         * modules/mkdir (Makefile.am): Likewise.
30913         * modules/mkdtemp (Makefile.am): Likewise.
30914         * modules/mkstemp (Makefile.am): Likewise.
30915         * modules/mktime (Makefile.am): Likewise.
30916         * modules/modechange (Makefile.am): Likewise.
30917         * modules/mountlist (Makefile.am): Likewise.
30918         * modules/nanosleep (Makefile.am): Likewise.
30919         * modules/obstack (Makefile.am): Likewise.
30920         * modules/openat (Makefile.am): Likewise.
30921         * modules/pagealign_alloc (Makefile.am): Likewise.
30922         * modules/pathmax (Makefile.am): Likewise.
30923         * modules/physmem (Makefile.am): Likewise.
30924         * modules/poll (Makefile.am): Likewise.
30925         * modules/posixtm (Makefile.am): Likewise.
30926         * modules/posixver (Makefile.am): Likewise.
30927         * modules/putenv (Makefile.am): Likewise.
30928         * modules/quote (Makefile.am): Likewise.
30929         * modules/quotearg (Makefile.am): Likewise.
30930         * modules/raise (Makefile.am): Likewise.
30931         * modules/read-file (Makefile.am): Likewise.
30932         * modules/readline (Makefile.am): Likewise.
30933         * modules/readlink (Makefile.am): Likewise.
30934         * modules/readtokens (Makefile.am): Likewise.
30935         * modules/readutmp (Makefile.am): Likewise.
30936         * modules/realloc (Makefile.am): Likewise.
30937         * modules/regex (Makefile.am): Likewise.
30938         * modules/rename-dest-slash (Makefile.am): Likewise.
30939         * modules/rename (Makefile.am): Likewise.
30940         * modules/rijndael (Makefile.am): Likewise.
30941         * modules/rmdir (Makefile.am): Likewise.
30942         * modules/rpmatch (Makefile.am): Likewise.
30943         * modules/safe-read (Makefile.am): Likewise.
30944         * modules/safe-write (Makefile.am): Likewise.
30945         * modules/same-inode (Makefile.am): Likewise.
30946         * modules/same (Makefile.am): Likewise.
30947         * modules/save-cwd (Makefile.am): Likewise.
30948         * modules/savedir (Makefile.am): Likewise.
30949         * modules/setenv (Makefile.am): Likewise.
30950         * modules/settime (Makefile.am): Likewise.
30951         * modules/sha1 (Makefile.am): Likewise.
30952         * modules/sig2str (Makefile.am): Likewise.
30953         * modules/snprintf (Makefile.am): Likewise.
30954         * modules/stat-macros (Makefile.am): Likewise.
30955         * modules/stat-time (Makefile.am): Likewise.
30956         * modules/stdbool (Makefile.am): Likewise.
30957         * modules/stdint (Makefile.am): Likewise.
30958         * modules/stdlib-safer (Makefile.am): Likewise.
30959         * modules/stpcpy (Makefile.am): Likewise.
30960         * modules/stpncpy (Makefile.am): Likewise.
30961         * modules/strcase (Makefile.am): Likewise.
30962         * modules/strcasestr (Makefile.am): Likewise.
30963         * modules/strchrnul (Makefile.am): Likewise.
30964         * modules/strcspn (Makefile.am): Likewise.
30965         * modules/strdup (Makefile.am): Likewise.
30966         * modules/strerror (Makefile.am): Likewise.
30967         * modules/strftime (Makefile.am): Likewise.
30968         * modules/strndup (Makefile.am): Likewise.
30969         * modules/strnlen (Makefile.am): Likewise.
30970         * modules/strpbrk (Makefile.am): Likewise.
30971         * modules/strsep (Makefile.am): Likewise.
30972         * modules/strstr (Makefile.am): Likewise.
30973         * modules/strtod (Makefile.am): Likewise.
30974         * modules/strtoimax (Makefile.am): Likewise.
30975         * modules/strtok_r (Makefile.am): Likewise.
30976         * modules/strtol (Makefile.am): Likewise.
30977         * modules/strtoll (Makefile.am): Likewise.
30978         * modules/strtoul (Makefile.am): Likewise.
30979         * modules/strtoull (Makefile.am): Likewise.
30980         * modules/strtoumax (Makefile.am): Likewise.
30981         * modules/strverscmp (Makefile.am): Likewise.
30982         * modules/sys_socket (Makefile.am): Likewise.
30983         * modules/sys_stat (Makefile.am): Likewise.
30984         * modules/sysexits (Makefile.am): Likewise.
30985         * modules/time_r (Makefile.am): Likewise.
30986         * modules/timegm (Makefile.am): Likewise.
30987         * modules/timespec (Makefile.am): Likewise.
30988         * modules/tmpfile-safer (Makefile.am): Likewise.
30989         * modules/trim (Makefile.am): Likewise.
30990         * modules/unistd-safer (Makefile.am): Likewise.
30991         * modules/unlinkdir (Makefile.am): Likewise.
30992         * modules/unlocked-io (Makefile.am): Likewise.
30993         * modules/userspec (Makefile.am): Likewise.
30994         * modules/utime (Makefile.am): Likewise.
30995         * modules/utimecmp (Makefile.am): Likewise.
30996         * modules/utimens (Makefile.am): Likewise.
30997         * modules/vasnprintf (Makefile.am): Likewise.
30998         * modules/vasprintf (Makefile.am): Likewise.
30999         * modules/vsnprintf (Makefile.am): Likewise.
31000         * modules/xalloc (Makefile.am): Likewise.
31001         * modules/xgetcwd (Makefile.am): Likewise.
31002         * modules/xnanosleep (Makefile.am): Likewise.
31003         * modules/xreadlink (Makefile.am): Likewise.
31004         * modules/xstrtod (Makefile.am): Likewise.
31005         * modules/xstrtol (Makefile.am): Likewise.
31006         * modules/xstrtold (Makefile.am): Likewise.
31007         * modules/yesno (Makefile.am): Likewise.
31008         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
31009
31010 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
31011
31012         * modules/error (Makefile.am): Distribute files through
31013         EXTRA_DIST, not lib_SOURCES.
31014
31015 2006-10-12  Eric Blake  <ebb9@byu.net>
31016
31017         * modules/error (Makefile.am): Distribute files in /lib.
31018         * modules/obstack (Makefile.am): Likewise.
31019
31020 2006-10-12  Bruno Haible  <bruno@clisp.org>
31021
31022         * modules/acl (Makefile.am): Distribute all files in lib/ through
31023         EXTRA_DIST.
31024         * modules/arcfour (Makefile.am): Likewise.
31025         * modules/arctwo (Makefile.am): Likewise.
31026         * modules/argmatch (Makefile.am): Likewise.
31027         * modules/argz (Makefile.am): Likewise.
31028         * modules/atexit (Makefile.am): Likewise.
31029         * modules/backupfile (Makefile.am): Likewise.
31030         * modules/c-strtod (Makefile.am): Likewise.
31031         * modules/c-strtold (Makefile.am): Likewise.
31032         * modules/calloc (Makefile.am): Likewise.
31033         * modules/canon-host (Makefile.am): Likewise.
31034         * modules/canonicalize (Makefile.am): Likewise.
31035         * modules/chdir-long (Makefile.am): Likewise.
31036         * modules/chdir-safer (Makefile.am): Likewise.
31037         * modules/check-version (Makefile.am): Likewise.
31038         * modules/chown (Makefile.am): Likewise.
31039         * modules/cloexec (Makefile.am): Likewise.
31040         * modules/close-stream (Makefile.am): Likewise.
31041         * modules/closeout (Makefile.am): Likewise.
31042         * modules/crc (Makefile.am): Likewise.
31043         * modules/cycle-check (Makefile.am): Likewise.
31044         * modules/des (Makefile.am): Likewise.
31045         * modules/dirfd (Makefile.am): Likewise.
31046         * modules/dirname (Makefile.am): Likewise.
31047         * modules/dup2 (Makefile.am): Likewise.
31048         * modules/euidaccess (Makefile.am): Likewise.
31049         * modules/exclude (Makefile.am): Likewise.
31050         * modules/exitfail (Makefile.am): Likewise.
31051         * modules/fcntl-safer (Makefile.am): Likewise.
31052         * modules/file-type (Makefile.am): Likewise.
31053         * modules/fileblocks (Makefile.am): Likewise.
31054         * modules/filemode (Makefile.am): Likewise.
31055         * modules/filenamecat (Makefile.am): Likewise.
31056         * modules/fnmatch (Makefile.am): Likewise.
31057         * modules/fopen-safer (Makefile.am): Likewise.
31058         * modules/fpending (Makefile.am): Likewise.
31059         * modules/fprintftime (Makefile.am): Likewise.
31060         * modules/free (Makefile.am): Likewise.
31061         * modules/fsusage (Makefile.am): Likewise.
31062         * modules/ftruncate (Makefile.am): Likewise.
31063         * modules/fts (Makefile.am): Likewise.
31064         * modules/gc (Makefile.am): Likewise.
31065         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
31066         * modules/getaddrinfo (Makefile.am): Likewise.
31067         * modules/getcwd (Makefile.am): Likewise.
31068         * modules/getdelim (Makefile.am): Likewise.
31069         * modules/getdomainname (Makefile.am): Likewise.
31070         * modules/getgroups (Makefile.am): Likewise.
31071         * modules/gethostname (Makefile.am): Likewise.
31072         * modules/gethrxtime (Makefile.am): Likewise.
31073         * modules/getline (Makefile.am): Likewise.
31074         * modules/getloadavg (Makefile.am): Likewise.
31075         * modules/getlogin_r (Makefile.am): Likewise.
31076         * modules/getopt (Makefile.am): Likewise.
31077         * modules/getpass (Makefile.am): Likewise.
31078         * modules/getpass-gnu (Makefile.am): Likewise.
31079         * modules/getsubopt (Makefile.am): Likewise.
31080         * modules/gettime (Makefile.am): Likewise.
31081         * modules/gettimeofday (Makefile.am): Likewise.
31082         * modules/getugroups (Makefile.am): Likewise.
31083         * modules/getusershell (Makefile.am): Likewise.
31084         * modules/glob (Makefile.am): Likewise.
31085         * modules/group-member (Makefile.am): Likewise.
31086         * modules/hard-locale (Makefile.am): Likewise.
31087         * modules/hash (Makefile.am): Likewise.
31088         * modules/hmac-md5 (Makefile.am): Likewise.
31089         * modules/hmac-sha1 (Makefile.am): Likewise.
31090         * modules/human (Makefile.am): Likewise.
31091         * modules/idcache (Makefile.am): Likewise.
31092         * modules/imaxabs (Makefile.am): Likewise.
31093         * modules/imaxdiv (Makefile.am): Likewise.
31094         * modules/inet_ntop (Makefile.am): Likewise.
31095         * modules/inet_pton (Makefile.am): Likewise.
31096         * modules/inttostr (Makefile.am): Likewise.
31097         * modules/isapipe (Makefile.am): Likewise.
31098         * modules/lchown (Makefile.am): Likewise.
31099         * modules/long-options (Makefile.am): Likewise.
31100         * modules/lstat (Makefile.am): Likewise.
31101         * modules/malloc (Makefile.am): Likewise.
31102         * modules/mathl (Makefile.am): Likewise.
31103         * modules/mbchar (Makefile.am): Likewise.
31104         * modules/md2 (Makefile.am): Likewise.
31105         * modules/md4 (Makefile.am): Likewise.
31106         * modules/md5 (Makefile.am): Likewise.
31107         * modules/memcasecmp (Makefile.am): Likewise.
31108         * modules/memchr (Makefile.am): Likewise.
31109         * modules/memcmp (Makefile.am): Likewise.
31110         * modules/memcoll (Makefile.am): Likewise.
31111         * modules/memcpy (Makefile.am): Likewise.
31112         * modules/memmem (Makefile.am): Likewise.
31113         * modules/memmove (Makefile.am): Likewise.
31114         * modules/mempcpy (Makefile.am): Likewise.
31115         * modules/memrchr (Makefile.am): Likewise.
31116         * modules/memset (Makefile.am): Likewise.
31117         * modules/memxor (Makefile.am): Likewise.
31118         * modules/mkancesdirs (Makefile.am): Likewise.
31119         * modules/mkdir (Makefile.am): Likewise.
31120         * modules/mkdir-p (Makefile.am): Likewise.
31121         * modules/mkdtemp (Makefile.am): Likewise.
31122         * modules/mkstemp (Makefile.am): Likewise.
31123         * modules/mktime (Makefile.am): Likewise.
31124         * modules/modechange (Makefile.am): Likewise.
31125         * modules/mountlist (Makefile.am): Likewise.
31126         * modules/nanosleep (Makefile.am): Likewise.
31127         * modules/openat (Makefile.am): Likewise.
31128         * modules/pagealign_alloc (Makefile.am): Likewise.
31129         * modules/physmem (Makefile.am): Likewise.
31130         * modules/poll (Makefile.am): Likewise.
31131         * modules/posixtm (Makefile.am): Likewise.
31132         * modules/posixver (Makefile.am): Likewise.
31133         * modules/putenv (Makefile.am): Likewise.
31134         * modules/quote (Makefile.am): Likewise.
31135         * modules/quotearg (Makefile.am): Likewise.
31136         * modules/raise (Makefile.am): Likewise.
31137         * modules/read-file (Makefile.am): Likewise.
31138         * modules/readline (Makefile.am): Likewise.
31139         * modules/readlink (Makefile.am): Likewise.
31140         * modules/readtokens (Makefile.am): Likewise.
31141         * modules/readutmp (Makefile.am): Likewise.
31142         * modules/realloc (Makefile.am): Likewise.
31143         * modules/regex (Makefile.am): Likewise.
31144         * modules/rename (Makefile.am): Likewise.
31145         * modules/rename-dest-slash (Makefile.am): Likewise.
31146         * modules/rijndael (Makefile.am): Likewise.
31147         * modules/rmdir (Makefile.am): Likewise.
31148         * modules/rpmatch (Makefile.am): Likewise.
31149         * modules/safe-read (Makefile.am): Likewise.
31150         * modules/safe-write (Makefile.am): Likewise.
31151         * modules/same (Makefile.am): Likewise.
31152         * modules/save-cwd (Makefile.am): Likewise.
31153         * modules/savedir (Makefile.am): Likewise.
31154         * modules/setenv (Makefile.am): Likewise.
31155         * modules/settime (Makefile.am): Likewise.
31156         * modules/sha1 (Makefile.am): Likewise.
31157         * modules/sig2str (Makefile.am): Likewise.
31158         * modules/snprintf (Makefile.am): Likewise.
31159         * modules/stdlib-safer (Makefile.am): Likewise.
31160         * modules/stpcpy (Makefile.am): Likewise.
31161         * modules/stpncpy (Makefile.am): Likewise.
31162         * modules/strcase (Makefile.am): Likewise.
31163         * modules/strcasestr (Makefile.am): Likewise.
31164         * modules/strchrnul (Makefile.am): Likewise.
31165         * modules/strcspn (Makefile.am): Likewise.
31166         * modules/strdup (Makefile.am): Likewise.
31167         * modules/strerror (Makefile.am): Likewise.
31168         * modules/strftime (Makefile.am): Likewise.
31169         * modules/strndup (Makefile.am): Likewise.
31170         * modules/strnlen (Makefile.am): Likewise.
31171         * modules/strpbrk (Makefile.am): Likewise.
31172         * modules/strsep (Makefile.am): Likewise.
31173         * modules/strstr (Makefile.am): Likewise.
31174         * modules/strtod (Makefile.am): Likewise.
31175         * modules/strtoimax (Makefile.am): Likewise.
31176         * modules/strtok_r (Makefile.am): Likewise.
31177         * modules/strtol (Makefile.am): Likewise.
31178         * modules/strtoll (Makefile.am): Likewise.
31179         * modules/strtoul (Makefile.am): Likewise.
31180         * modules/strtoull (Makefile.am): Likewise.
31181         * modules/strtoumax (Makefile.am): Likewise.
31182         * modules/strverscmp (Makefile.am): Likewise.
31183         * modules/time_r (Makefile.am): Likewise.
31184         * modules/timegm (Makefile.am): Likewise.
31185         * modules/tmpfile-safer (Makefile.am): Likewise.
31186         * modules/unistd-safer (Makefile.am): Likewise.
31187         * modules/unlinkdir (Makefile.am): Likewise.
31188         * modules/userspec (Makefile.am): Likewise.
31189         * modules/utime (Makefile.am): Likewise.
31190         * modules/utimecmp (Makefile.am): Likewise.
31191         * modules/utimens (Makefile.am): Likewise.
31192         * modules/vasnprintf (Makefile.am): Likewise.
31193         * modules/vasprintf (Makefile.am): Likewise.
31194         * modules/vsnprintf (Makefile.am): Likewise.
31195         * modules/xalloc (Makefile.am): Likewise.
31196         * modules/xgetcwd (Makefile.am): Likewise.
31197         * modules/xnanosleep (Makefile.am): Likewise.
31198         * modules/xreadlink (Makefile.am): Likewise.
31199         * modules/xstrtod (Makefile.am): Likewise.
31200         * modules/xstrtol (Makefile.am): Likewise.
31201         * modules/xstrtold (Makefile.am): Likewise.
31202         * modules/yesno (Makefile.am): Likewise.
31203
31204 2006-10-12  Jim Meyering  <jim@meyering.net>
31205
31206         * m4/getloadavg.m4: Revert the change below.
31207
31208         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
31209         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
31210         fail with a symlink, which is what coreutils' ./bootstrap now
31211         creates by default.
31212
31213 2006-10-12  Bruno Haible  <bruno@clisp.org>
31214
31215         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
31216         mingw.
31217         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
31218         MSVC and mingw explicitly.
31219
31220 2006-10-11  Simon Josefsson  <jas@extundo.com>
31221             Bruno Haible  <bruno@clisp.org>
31222
31223         Add support for multiple gnulib-tool invocations in the scope of a
31224         single configure.ac file.
31225         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
31226         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
31227         with the same contents as the _LIBADD variable.
31228         (func_emit_initmacro_start, func_emit_initmacro_end,
31229         func_emit_initmacro_done): New functions.
31230         (func_import, func_create_testdir): Invoke them. Allow the identifiers
31231         gl_LIBOBJS and gl_LTLIBOBJS.
31232
31233 2006-10-11  Bruno Haible  <bruno@clisp.org>
31234
31235         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
31236         (func_create_testdir): Don't create po/Makefile.am, don't invoke
31237         autoreconf. Instead, invoke autopoint explicitly but move back the
31238         *.m4 files from gnulib.
31239
31240 2006-10-11  Bruno Haible  <bruno@clisp.org>
31241
31242         * gnulib-tool (func_usage): Make module names after --create-testdir
31243         optional.
31244         (func_create_testdir): If no module was specified, use nearly all
31245         modules.
31246
31247 2006-10-12  Jim Meyering  <jim@meyering.net>
31248
31249         Big performance improvement for fts-based tools that use FTS_NOSTAT.
31250         Avoid spurious inode-mismatch problems on non-POSIX file systems.
31251         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
31252         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
31253         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
31254         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
31255         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
31256         (fts_set_stat_required): New function.
31257         (fts_open): Defer the calls to fts_stat, if possible or requested.
31258         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
31259         into fts_stat itself.
31260         (fts_read): Perform any required (deferred) fts_stat call.
31261         (fts_build): Likewise, for the directory we're about to open and read.
31262         In the readdir loop, carefully decide whether each entry will require
31263         an eventual call to fts_stat, using dirent.d_type info if available.
31264         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
31265         a command line argument into this function.  Update all callers.
31266         Map a return value of FTS_DOT to FTS_D for a command line argument.
31267         * modules/fts (Depends-on): Add d-type.  Alphabetize.
31268         Thanks to Miklos Szeredi for his tenacity and for the initial
31269         bug report about "find" failing on a FUSE-based file system.
31270
31271         * lib/fts.c (fts_open): Use consistent indentation.
31272
31273 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
31274
31275         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
31276         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
31277         reported by Jim Meyering.  All uses of cache variables renamed
31278         to match Autoconf's.
31279         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
31280         the other one.
31281
31282         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
31283         Fix misspelling in diagnostic.
31284
31285 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
31286
31287         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
31288         defined.  Problem reported by Matthew Woehlke.
31289
31290         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
31291         Add support for Tandem NonStop R series.
31292         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
31293         Use new macro.
31294
31295         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
31296         (has_trailing_slash): Omit size arg; all callers changed.
31297         Omit 'inline', since it doesn't help performance and we'd
31298         need to configure it.
31299         Don't count //, ///, etc. as having a trailing slash.
31300         As a side effect, this removes a C99ism reported by Matthew Woehlke.
31301         (rpl_rename_dest_slash): On failure, use rename's errno rather
31302         than (in some cases) an incorrect or junk errno.
31303         Simplify code by removing need to compute length; this does
31304         cause it to make two passes instead of one over the file name,
31305         but it's worth it.
31306
31307         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
31308         change, since Autoconf's version may no longer be appropriate now
31309         that we are using CVS Autoconf's version.  Add support for Tandem.
31310
31311 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
31312             Bruno Haible  <bruno@clisp.org>
31313
31314         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
31315         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
31316         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
31317         gl_AC_TYPE_LONG_LONG.
31318
31319         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
31320         instead of HAVE_LONG_LONG.
31321         * lib/printf-args.c (printf_fetchargs): Likewise.
31322         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
31323         * lib/vasnprintf.c (VASNPRINTF): Likewise.
31324         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
31325         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
31326         gl_AC_TYPE_LONG_LONG.
31327
31328 2006-10-11  Bruno Haible  <bruno@clisp.org>
31329
31330         * m4/longlong.m4: Add comments.
31331         * m4/ulonglong.m4: Likewise.
31332
31333 2006-10-10  Bruno Haible  <bruno@clisp.org>
31334
31335         Make it possible to #define stpcpy, strdup to aliases.
31336         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
31337         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
31338
31339 2006-10-10  Bruno Haible  <bruno@clisp.org>
31340
31341         Make it possible to #define gcd to an alias.
31342         * lib/gcd.c: Include config.h.
31343
31344 2006-10-10  Bruno Haible  <bruno@clisp.org>
31345
31346         Make it possible to #define c_isascii to an alias.
31347         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
31348         defined. Undefine the macros before defining them, to avoid gcc
31349         warnings.
31350         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
31351         define NO_C_CTYPE_MACROS early.
31352
31353 2006-10-10  Bruno Haible  <bruno@clisp.org>
31354
31355         Make it possible to #define set_program_name to an alias.
31356         * lib/progname.c: Don't undefine set_program_name; instead, undefine
31357         ENABLE_RELOCATABLE early.
31358
31359 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
31360
31361         Port to Tandem NSK OSS, which has 64-bit signed int but at most
31362         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
31363         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
31364         More generally, don't assume that 64-bit signed int is available
31365         if unsigned int is, and vice versa.
31366         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
31367         unsigned symbols, not on their signed counterparts.
31368         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
31369         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
31370         (UINT64_C, UINTMAX_C):
31371         Likewise.
31372         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
31373         unsigned counterparts.
31374         (Have_long_long, Unsigned): New macros.
31375         (Int): Renamed from INT.
31376         (strtoimax): Use the new macros.
31377         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
31378         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
31379         * modules/inttypes (inttypes.h): Substitute
31380         HAVE_UNSIGNED_LONG_LONG_INT.
31381         * modules/stdint (stdint.h): Likewise.
31382         (Files): Add m4/ulonglong.m4.
31383
31384 2006-10-10  Bruno Haible  <bruno@clisp.org>
31385
31386         Fix a gcc -Wshadow warning.
31387         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
31388         to 'bucket'.
31389         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
31390         gl_linked_indexof_from_to): Likewise.
31391         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
31392         Likewise.
31393         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
31394         Likewise.
31395         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
31396         Reported by Eric Blake.
31397
31398 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
31399
31400         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
31401         for NetBSD.  Problem reported by Bruno Haible.
31402
31403 2006-10-09  Jim Meyering  <jim@meyering.net>
31404
31405         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
31406         Patch from Bruno Haible.
31407
31408 2006-10-09  Jim Meyering  <jim@meyering.net>
31409
31410         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
31411         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
31412         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
31413
31414 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
31415
31416         Don't include <config.h> twice; this doesn't work in some cases,
31417         e.g., when config.h has "#define intmax_t long long int" and
31418         we include <config.h>, <inttypes.h>, <config.h> in that order.
31419         Problem reported by Matthew Woehlke in:
31420         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
31421         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
31422         * lib/fts-cycle.c: Don't include config.h.
31423         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
31424         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
31425         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
31426         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
31427         inttypes.h.
31428         * lib/xstrtoumax.c: Likewise.
31429         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
31430         __strtol and the like, so that this module is more like its siblings.
31431         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
31432         Remove; no longer needed now that we assume gnulib inttypes.h.
31433
31434 2006-10-08  Bruno Haible  <bruno@clisp.org>
31435
31436         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
31437         option.
31438
31439 2006-10-07  Jim Meyering  <jim@meyering.net>
31440
31441         * modules/inttypes (inttypes.h): Revert what seems to have been
31442         an inadvertent part of today's change: use "|", not "/" in the
31443         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
31444
31445 2006-10-07  Bruno Haible  <bruno@clisp.org>
31446
31447         * modules/sublist: New file.
31448
31449 2006-10-07  Bruno Haible  <bruno@clisp.org>
31450
31451         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
31452         * modules/argz (argz.h): Likewise.
31453         * modules/arpa_inet (arpa/inet.h): Likewise.
31454         * modules/byteswap (byteswap.h): Likewise.
31455         * modules/configmake (configmake.h): Likewise.
31456         * modules/fcntl (fcntl.h): Likewise.
31457         * modules/fnmatch (fnmatch.h): Likewise.
31458         * modules/getopt (getopt.h): Likewise.
31459         * modules/glob (glob.h): Likewise.
31460         * modules/inttypes (inttypes.h): Likewise.
31461         * modules/netinet_in (netinet/in.h): Likewise.
31462         * modules/poll (poll.h): Likewise.
31463         * modules/stdbool (stdbool.h): Likewise.
31464         * modules/stdint (stdint.h): Likewise.
31465         * modules/sys_select (sys/select.h): Likewise.
31466         * modules/sys_socket (sys/socket.h): Likewise.
31467         * modules/sys_stat (sys/stat.h): Likewise.
31468         * modules/sysexits (sysexits.h): Likewise.
31469         * modules/unistd (unistd.h): Likewise.
31470         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31471         Add a "DO NOT EDIT" comment to the generated file.
31472         (func_import): Likewise for gnulib-comp.m4.
31473
31474 2006-10-07  Bruno Haible  <bruno@clisp.org>
31475
31476         * lib/gl_sublist.h: New file.
31477         * lib/gl_sublist.c: New file.
31478
31479 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
31480
31481         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
31482         name (relative to the original working directory) and the file
31483         name component (relative to the temporary working directory).  All
31484         callers changed.
31485         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
31486         * lib/mkdir-p.c (make_dir_parents): Likewise.
31487         * lib/mkdir-p.h (make_dir_parents): Likewise.
31488
31489 2006-10-06  Eric Blake  <ebb9@byu.net>
31490
31491         Define several macros for use by the clean-temp module.
31492         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
31493         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
31494         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
31495
31496         * lib/clean-temp.h (close_stream_temp): New declaration.
31497         * lib/clean-temp.c (includes): Pull in headers according to what
31498         other modules are in use.
31499         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
31500
31501 2006-10-06  Bruno Haible  <bruno@clisp.org>
31502
31503         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
31504         instead of fopen, fwriteerror.
31505
31506 2006-10-06  Bruno Haible  <bruno@clisp.org>
31507
31508         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
31509         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
31510         int.
31511         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
31512         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
31513         Return an error indicator.
31514         Suggested by Eric Blake.
31515
31516 2006-10-06  Bruno Haible  <bruno@clisp.org>
31517
31518         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
31519         Reported by Eric Blake.
31520
31521 2006-10-06  Bruno Haible  <bruno@clisp.org>
31522
31523         * modules/closeout (Description): Mention stderr too.
31524
31525 2006-10-06  Bruno Haible  <bruno@clisp.org>
31526         and Paul Eggert  <eggert@cs.ucla.edu>
31527
31528         * lib/closeout.c (close_stdout): Also close stderr.
31529         * lib/closeout.h: Update comment.
31530
31531 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
31532
31533         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
31534         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
31535         * lib/dirchownmod.c: Include lchown.h.
31536         * lib/lchown.c: Don't include files that lchown.h now includes.
31537         Don't declare chown, since lchown.h now does that.
31538         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
31539         (lchown): Define to rpl_chown if lchown is declared but
31540         does not exist.  Declare using a prototype if lchown is not
31541         declared.  Add a copyright notice.
31542         * lib/mkstemp.h: Include <unistd.h>.
31543         * lib/openat.c: Include lchown.h.
31544
31545         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
31546         we now test for that separately.
31547         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
31548         rather than O_NOFOLLOW, when testing whether it's possible to
31549         avoid a race condition reliably.
31550         * lib/savewd.c (savewd_chdir): Likewise.
31551
31552         Remove macros that are no longer needed now that stdint.h is
31553         reliable.
31554         * lib/fsusage.c (UINTMAX_MAX): Remove.
31555         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
31556         * lib/utimecmp.c (SIZE_MAX): Remove.
31557
31558         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
31559
31560         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
31561         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
31562         O_NOATIME works.
31563
31564 2006-10-05  Bruno Haible  <bruno@clisp.org>
31565
31566         * lib/gl_list.h (gl_sortedlist_search_from_to,
31567         gl_sortedlist_indexof_from_to): New declarations.
31568         (gl_list_implementation): New fields sortedlist_search_from_to,
31569         sortedlist_indexof_from_to.
31570         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
31571         inline functions.
31572         * lib/gl_list.c (gl_sortedlist_search_from_to,
31573         gl_sortedlist_indexof_from_to): New functions.
31574         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
31575         function.
31576         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
31577         (gl_array_sortedlist_search_from_to): New function.
31578         (gl_array_list_implementation): Update.
31579         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
31580         function.
31581         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
31582         (gl_carray_sortedlist_search_from_to): New function.
31583         (gl_carray_list_implementation): Update.
31584         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
31585         gl_linked_sortedlist_indexof_from_to): New functions.
31586         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
31587         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
31588         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
31589         gl_tree_sortedlist_indexof_from_to): New functions.
31590         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
31591         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
31592         Update.
31593         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
31594         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
31595         Update.
31596
31597 2006-10-05  Bruno Haible  <bruno@clisp.org>
31598
31599         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
31600         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
31601         (struct gl_list_implementation): Add fields search_from_to,
31602         indexof_from_to. Remove fields search, indexof.
31603         (gl_list_search): Use the search_from_to method.
31604         (gl_list_search_from, gl_list_search_from_to): New functions.
31605         (gl_list_indexof): Use the indexof_from_to method.
31606         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
31607         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
31608         (gl_list_search_from, gl_list_search_from_to): New functions.
31609         (gl_list_indexof): Use the indexof_from_to method.
31610         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
31611         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
31612         gl_array_indexof. Add start_index, end_index arguments.
31613         (gl_array_search_from_to): Renamed from gl_array_search. Add
31614         start_index, end_index arguments.
31615         (gl_array_remove, gl_array_list_implementation): Update.
31616         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
31617         gl_carray_indexof. Add start_index, end_index arguments.
31618         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
31619         start_index, end_index arguments.
31620         (gl_carray_remove, gl_carray_list_implementation): Update.
31621         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
31622         gl_linked_search. Add start_index, end_index arguments.
31623         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
31624         start_index, end_index arguments.
31625         (gl_linked_remove): Update.
31626         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
31627         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
31628         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
31629         field to 'size_t'.
31630         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
31631         gl_tree_search. Add start_index, end_index arguments.
31632         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
31633         start_index, end_index arguments.
31634         (gl_tree_remove): Update.
31635         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
31636         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
31637         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
31638         function.
31639         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
31640         gl_tree_search. Add start_index, end_index arguments.
31641         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
31642         start_index, end_index arguments.
31643         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
31644         Update.
31645         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
31646
31647 2006-10-05  Bruno Haible  <bruno@clisp.org>
31648
31649         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
31650
31651         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
31652         fwriteerror_temp): New declarations.
31653         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
31654         (descriptors): New variable.
31655         (cleanup): First, close the descriptors.
31656         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
31657         fclose_temp, fwriteerror_temp): New functions.
31658
31659 2006-10-04  Jim Meyering  <jim@meyering.net>
31660
31661         * lib/fts.c (fts_open): Tiny comment change.
31662
31663 2006-10-04  Bruno Haible  <bruno@clisp.org>
31664
31665         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
31666         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
31667         gl_LOCK_BODY.
31668         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
31669         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
31670         gl_LOCK_EARLY_BODY.
31671         (gl_LOCK): Require gl_LOCK_BODY.
31672
31673 2006-10-04  Bruno Haible  <bruno@clisp.org>
31674
31675         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
31676         (gl_oset_search_atleast): New declaration.
31677         (struct gl_oset_implementation): Add field 'search_atleast'.
31678         (gl_oset_search_atleast): New inline function.
31679         * lib/gl_oset.c (gl_oset_search_atleast): New function.
31680         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
31681         (gl_array_oset_implementation): Update.
31682         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
31683         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
31684         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
31685
31686 2006-10-04  Bruno Haible  <bruno@clisp.org>
31687
31688         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
31689
31690 2006-10-03  Bruno Haible  <bruno@clisp.org>
31691
31692         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
31693         from gl_avltreehash_list_implementation.
31694
31695 2006-10-03  Bruno Haible  <bruno@clisp.org>
31696
31697         * lib/gl_oset.c (gl_oset_add): Fix return type.
31698
31699 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
31700
31701         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
31702
31703 2006-10-02  Eric Blake  <ebb9@byu.net>
31704
31705         * modules/strnlen (Depends-on): Add extensions.
31706
31707 2006-10-02  Eric Blake  <ebb9@byu.net>
31708
31709         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
31710         definition in 2.60+.
31711
31712 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
31713
31714         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
31715         checks.
31716
31717 2006-10-02  Bruno Haible  <bruno@clisp.org>
31718
31719         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
31720         to the AUTOMAKE_OPTIONS.
31721         Reported by Jim Meyering.
31722
31723 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
31724
31725         Work around bug in Solaris 10 /proc file system:
31726         /proc/self/fd/NNN/.. isn't the parent directory of
31727         the directory whose file descriptor is NNN.  This needs to
31728         be worked around at run time, not compile time, since a
31729         program might be built on Solaris 8, where things work, and
31730         run on Solaris 10.
31731         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
31732         to use the following interface instead:
31733         (OPENAT_BUFFER_SIZE): New macro.
31734         (openat_proc_name): New function.
31735         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
31736         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
31737         Likewise.
31738         * lib/openat-proc.c: New file.
31739         * modules/openat (Files): Add lib/openat-proc.c.
31740         (Depends-on): Add same-inode, stdbool.
31741         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
31742
31743 2006-09-29  Bruno Haible  <bruno@clisp.org>
31744
31745         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
31746         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
31747         argument. Set stdout_closed before testing for ferror, not after.
31748         (fwriteerror, fwriteerror_no_ebadf): New functions.
31749
31750 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31751
31752         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
31753
31754 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
31755
31756         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
31757         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
31758
31759 2006-09-28  Jim Meyering  <jim@meyering.net>
31760
31761         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
31762         Include <unistd.h>.
31763
31764 2006-09-28  Bruno Haible  <bruno@clisp.org>
31765
31766         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
31767         * modules/linkedhash-list (Depends-on): Likewise.
31768         * modules/rbtreehash-list (Depends-on): Likewise.
31769
31770 2006-09-28  Bruno Haible  <bruno@clisp.org>
31771
31772         * lib/strndup.h: Simplify the redefinition of strndup.
31773         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
31774         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
31775
31776 2006-09-28  Bruno Haible  <bruno@clisp.org>
31777
31778         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
31779         * lib/gl_linkedhash_list.c: Likewise.
31780         * lib/gl_rbtreehash_list.c: Likewise.
31781
31782 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
31783
31784         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
31785         getaddrinfo.
31786
31787         * lib/__fpending.h: Don't include <stdio_ext.h> unless
31788         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
31789         it causes <stdio_ext.h> to cause a compile-time error.
31790         Problem reported by Nelson H. F. Beebe.
31791         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
31792         of HAVE_DECL___PENDING.
31793
31794         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
31795         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
31796         declaration.
31797
31798 2006-09-27  Jim Meyering  <jim@meyering.net>
31799
31800         This file could end up with a definition for a function
31801         named __strndup, rather than rpl_strndup on a system with
31802         incomplete weak_alias support.
31803         * lib/strndup.c (strndup): Rename from __strndup.
31804         Remove #defines that used to map __strndup to strndup.
31805         Don't use K&R prototypes.
31806         Remove LIBC-related code, since this file is not sync'd with glibc.
31807         * lib/strndup.h: Revamp, accordingly.
31808         * m4/strndup.m4: Modernize.
31809
31810 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
31811
31812         * modules/savewd (Depends-on): Add 'raise'.
31813         * lib/savewd.c: Include <signal.h>, for 'raise'.
31814
31815 2006-09-26  Jim Meyering  <jim@meyering.net>
31816
31817         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
31818         when we detect Darwin 8.7.0's acl_get_file bug.
31819         Rearrange to perform the new (below) run-test while $LIBS
31820         contains any acl-related library.  Set USE_ACL at the end.
31821         (gl_ACL_GET_FILE): New function.
31822
31823 2006-09-26  Eric Blake  <ebb9@byu.net>
31824
31825         * lib/verror.c: Include <config.h> unconditionally.
31826
31827 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
31828
31829         * modules/clock-time (Maintainer): Add self.
31830         * modules/getlogin_r (Depends-on): Add extensions.
31831
31832 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31833
31834         * modules/clock-time: New module.
31835         * modules/nanosleep (Depends-on): Add clock-time.
31836         * modules/gethrxtime (Depends-on): Likewise.
31837         * modules/gettime (Depends-on): Likewise.
31838         * modules/settime (Depends-on): Likewise.
31839
31840         * modules/fts-lgpl: Depend on openat.
31841         * modules/mkancesdirs: Depend on savewd.
31842         * modules/mkdir-p: Likewise.
31843
31844 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31845
31846         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
31847
31848         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
31849         `gl_have_arbitrary_file_name_length_limit' to
31850         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
31851         actually works between configure runs.
31852
31853 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31854             Bruno Haible  <bruno@clisp.org>
31855
31856         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
31857
31858 2006-09-25  Jim Meyering  <jim@meyering.net>
31859
31860         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
31861         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
31862
31863 2006-09-25  Eric Blake  <ebb9@byu.net>
31864
31865         * gnulib-tool (func_import, func_create_testdir): Fix typos in
31866         exec's in 2006-09-18 patch when shuffling fds.
31867
31868 2006-09-25  Bruno Haible  <bruno@clisp.org>
31869
31870         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
31871         Reported by Jim Meyering.
31872
31873 2006-09-24  Jim Meyering  <jim@meyering.net>
31874
31875         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
31876         compare a pointer against a literal "0".  That caused failures with
31877         at least HP-UX's hpcc.
31878
31879 2006-09-22  Simon Josefsson  <jas@extundo.com>
31880
31881         * modules/gc-sha1:
31882         * modules/gc-md4:
31883         * modules/gc-hmac-sha1:
31884         * modules/gc-hmac-md5:
31885         * modules/gc-des:
31886         * modules/gc-arcfour: Distribute more files.
31887
31888 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31889
31890         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
31891         (gl_linked_iterator_from_to): Initialize struct completely.
31892         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
31893         (gl_tree_iterator_from_to): Likewise
31894         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
31895         * lib/gl_array_list.c [lint] (gl_array_iterator)
31896         (gl_array_iterator_from_to): Likewise.
31897         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
31898         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
31899         (gl_carray_iterator_from_to): Likewise.
31900
31901         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
31902         * lib/md4.c (md4_process_block): Remove unused variable.
31903         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
31904         parentheses for clarity.
31905
31906 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31907
31908         * modules/bison-i18n (Depends-on): Add gettext.
31909
31910 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31911
31912         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
31913         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
31914         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
31915         also add missing comma that caused broken test.
31916         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
31917         stdlib.h, for `abort'.
31918         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
31919         variables.
31920         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
31921         include unistd.h if present, for `rmdir'.
31922         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
31923         variables.
31924         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
31925         in the process include standard headers for prototypes.
31926         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
31927         gets declared on GNU/Linux.
31928         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
31929         unistd.h, for `rmdir'.
31930         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
31931
31932         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
31933         always true.
31934         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
31935
31936         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
31937
31938 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31939
31940         * gnulib-tool (func_version): Create output all at once.  This
31941         may help avoid triggering unnecessary SIGPIPEs, and at any
31942         rate it doesn't hurt.
31943
31944 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31945             Bruno Haible  <bruno@clisp.org>
31946
31947         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
31948         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31949         * m4/signed.m4 (bh_C_SIGNED): Likewise.
31950
31951         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
31952         (gl_FUNC_VASPRINTF): Invoke it.
31953
31954 2006-09-22  Bruno Haible  <bruno@clisp.org>
31955
31956         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
31957         getloadavg.c as first argument.
31958
31959 2006-09-22  Bruno Haible  <bruno@clisp.org>
31960
31961         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
31962         at the beginning of the gl_INIT macro.
31963         * modules/getloadavg (configure.ac): Pass $gl_source_base to
31964         gl_GETLOADAVG.
31965
31966 2006-09-22  Bruno Haible  <bruno@clisp.org>
31967
31968         * gnulib-tool (func_create_megatestdir): Don't include the config-h
31969         module.
31970         Suggested by Ralf Wildenhues.
31971
31972 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
31973
31974         Import this patch from libc:
31975
31976         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
31977
31978         * lib/regex_internal.c (re_string_reconstruct): Handle
31979         offset < pstr->valid_raw_len && pstr->offsets_needed case.
31980         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
31981         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
31982         re_string_context_at.
31983
31984         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
31985         now requires it.
31986         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
31987         gl_REGEX now does it for us.
31988         (gl_REGEX): Add test taken from
31989         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
31990
31991         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
31992         Check that large offsets work.  Modernize Autoconf usages.
31993         Prefer "yes" to mean a good thing rather than a bad.
31994         Don't put "#define mkstemp" in config.h, as this might interfere
31995         with standard system headers that "#define mkstemp mkstemp64".
31996
31997         * modules/mkstemp (Depends-on): Add extensions, so that
31998         mkstemp is visible on some platforms.
31999         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
32000         (Include): Change to "mkstemp.h" from <stdlib.h>.
32001         (Files): Add mkstemp.h.
32002
32003         * lib/mkstemp.h: New file, since some standard headers
32004         #define mkstemp.
32005         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
32006         Include "mkstemp.h".
32007         Make the _LIBC code resemble glibc original more,
32008         e.g., use K&R style.
32009         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
32010         (mkstemp): Remove, since mkstemp.h does this for us.
32011         * lib/stdlib--.h: Include mkstemp.h.
32012
32013         Import this patch from libc:
32014
32015         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
32016
32017         * lib/tempname.c (__gen_tempname): Change attempts_min
32018         into a macro.  Use preprocessor to decide how to initialize
32019         attempts [Coverity CID 67].
32020
32021 2006-09-20  Bruno Haible  <bruno@clisp.org>
32022
32023         * lib/mkdtemp.c: Import from libc.
32024         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
32025                 * sysdeps/posix/tempname.c (__gen_tempname): Change
32026                 attempts_min into a macro.  Use preprocessor to decide how to
32027                 initialize attempts [Coverity CID 67].
32028         2001-11-27  Paul Eggert  <eggert@twinsun.com>
32029                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
32030                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
32031
32032 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32033
32034         * gnulib-tool (func_exit): New function, to allow to pass the
32035         exit status portably through the trap.  Use everywhere.
32036         (--help, --version): Signal a write error.
32037         (trap): catch SIGPIPE, for write errors.
32038         Exit at the end of the trap, with the correct exit status.
32039
32040 2006-09-19  Karl Berry  <karl@gnu.org>
32041
32042         * doc/gnulib.texi: note about the license texinfo files.
32043
32044 2006-09-19  Eric Blake  <ebb9@byu.net>
32045
32046         * gnulib-tool: Avoid space-tab.
32047
32048 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
32049
32050         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
32051         that prevented coreutils 6.1 from building.  Problem reported
32052         by Petter Reinholdtsen.
32053
32054 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
32055
32056         * gnulib-tool (avoidlist): Fix typo that broke options like
32057         --avoid=lock that are used by coreutils bootstrap.
32058
32059 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
32060
32061         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
32062         more systematically.
32063
32064 2006-09-18  Jim Meyering  <jim@meyering.net>
32065
32066         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
32067
32068 2006-09-18  Bruno Haible  <bruno@clisp.org>
32069
32070         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
32071
32072 2006-09-18  Bruno Haible  <bruno@clisp.org>
32073
32074         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
32075         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
32076         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
32077         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
32078         * m4/gettext.m4: Require autoconf >= 2.52.
32079         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
32080         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
32081         of gl_cv_header_inttypes_h.
32082
32083 2006-09-18  Bruno Haible  <bruno@clisp.org>
32084
32085         * lib/javaversion.c: Include configmake.h.
32086
32087 2006-09-18  Bruno Haible  <bruno@clisp.org>
32088
32089         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
32090         avoid that the while loops be executed in a subshell.
32091
32092 2006-09-18  Bruno Haible  <bruno@clisp.org>
32093
32094         * MODULES.html.sh (func_module): Break long lines.
32095         Suggested by Bruce Korb <bkorb@gnu.org>.
32096
32097 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32098
32099         Speed up by a factor of 1.12.
32100         * gnulib-tool (nl): New variable.
32101         (func_import): Rewrite include directive extraction to only read each
32102         directive once.
32103
32104 2006-09-17  Bruno Haible  <bruno@clisp.org>
32105
32106         * modules/javaversion (Makefile.am): Remove DEFS setting.
32107         (Depends-on): Add configmake, for PKGDATADIR definition.
32108
32109 2006-09-17  Bruno Haible  <bruno@clisp.org>
32110
32111         * gnulib-tool (func_create_testdir): Rewrite all files at once.
32112
32113 2006-09-17  Bruno Haible  <bruno@clisp.org>
32114
32115         * gnulib-tool (func_append): New function, stolen from libtool.m4.
32116         (func_modules_transitive_closure, func_modules_add_dummy,
32117         func_modules_to_filelist, func_import, func_create_testdir,
32118         func_create_megatestdir, ...): Use it wherever possible.
32119         Suggested by Ralf Wildenhues.
32120
32121 2006-09-16  Karl Berry  <karl@gnu.org>
32122
32123         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
32124         to avoid sectioning errors.
32125         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
32126         [ifinfo]: blank line after @center-ed titles.
32127         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
32128         Spell FSF address consistently with others.
32129         (These changes approved by rms.)
32130
32131 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32132
32133         Speed up by a factor of 1.61.
32134         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
32135         already checked module names again.
32136
32137 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32138
32139         Speed up by a factor of 1.13.
32140         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
32141         for new_files, and the input to func_add_or_update.
32142
32143 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32144
32145         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
32146         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
32147
32148 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
32149
32150         * modules/mkancesdirs (Depends-on): Add fcntl.
32151         * modules/savewd: New file.
32152         * MODULES.html.sh (File system functions): Add savewd.
32153
32154         * modules/configmake (Makefile.am): Add support for the
32155         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
32156
32157 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
32158
32159         * m4/savewd.m4: New file.
32160
32161 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
32162
32163         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
32164         (dirchownmod): New arg FD.  All callers changed.
32165         Use FD rather than opening the directory ourself, as opening is
32166         now the caller's responsibility.
32167         * lib/dirchownmod.h: Likewise.
32168         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
32169         hosts that require <sys/types.h> before <sys/stat.h>.  Include
32170         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
32171         (test_dir): Remove.
32172         (mkancesdirs): Return length of prefix of FILE that has already
32173         been made, or -2 if there is a child doing the work.  Redo
32174         algorithm so that it is O(N) rather than O(N**2).  Optimize away
32175         ".", and treat ".." specially since it might stray back into
32176         already-created areas.  Use a subprocess if necessary.  New arg
32177         WD; all users changed.  MAKE_DIR function should now return 1
32178         if it creates a directory that is not readable.  Return -2 if
32179         a child process is spun off.
32180         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
32181         Adjust signature to match code.
32182         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
32183         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
32184         all users changed.
32185         * lib/savewd.c, lib/savewd.h: New files.
32186
32187 2006-09-15  Jim Meyering  <jim@meyering.net>
32188
32189         * modules/rename-dest-slash: New module.
32190         * MODULES.html.sh (posix_compat): Add it here.
32191
32192         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
32193
32194 2006-09-15  Jim Meyering  <jim@meyering.net>
32195
32196         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
32197         file.
32198
32199         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
32200
32201 2006-09-15  Jim Meyering  <jim@meyering.net>
32202
32203         * lib/rename-dest-slash.c (has_trailing_slash): Use
32204         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
32205         (rpl_rename_dest_slash): Perform the cheaper trailing slash
32206         test before testing whether SRC is a directory.
32207         Suggestions from Bruno Haible.
32208
32209         Avoid a warning about an unused variable.
32210         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
32211         into the #ifdef block where it's used.
32212
32213         * lib/rename-dest-slash.c: New file.
32214
32215 2006-09-14  Bruno Haible  <bruno@clisp.org>
32216
32217         * lib/allocsa.c: Include <config.h> unconditionally.
32218         * lib/asnprintf.c: Likewise.
32219         * lib/asprintf.c: Likewise.
32220         * lib/c-strcasecmp.c: Likewise.
32221         * lib/c-strcasestr.c: Likewise.
32222         * lib/c-strncasecmp.c: Likewise.
32223         * lib/c-strstr.c: Likewise.
32224         * lib/classpath.c: Likewise.
32225         * lib/clean-temp.c: Likewise.
32226         * lib/concatpath.c: Likewise.
32227         * lib/copy-file.c: Likewise.
32228         * lib/csharpcomp.c: Likewise.
32229         * lib/csharpexec.c: Likewise.
32230         * lib/execute.c: Likewise.
32231         * lib/fatal-signal.c: Likewise.
32232         * lib/findprog.c: Likewise.
32233         * lib/fwriteerror.c: Likewise.
32234         * lib/gl_array_list.c: Likewise.
32235         * lib/gl_array_oset.c: Likewise.
32236         * lib/gl_avltree_list.c: Likewise.
32237         * lib/gl_avltree_oset.c: Likewise.
32238         * lib/gl_avltreehash_list.c: Likewise.
32239         * lib/gl_carray_list.c: Likewise.
32240         * lib/gl_linked_list.c: Likewise.
32241         * lib/gl_linkedhash_list.c: Likewise.
32242         * lib/gl_list.c: Likewise.
32243         * lib/gl_oset.c: Likewise.
32244         * lib/gl_rbtree_list.c: Likewise.
32245         * lib/gl_rbtree_oset.c: Likewise.
32246         * lib/gl_rbtreehash_list.c: Likewise.
32247         * lib/imaxabs.c: Likewise.
32248         * lib/imaxdiv.c: Likewise.
32249         * lib/javacomp.c: Likewise.
32250         * lib/javaexec.c: Likewise.
32251         * lib/javaversion.c: Likewise.
32252         * lib/linebreak.c: Likewise.
32253         * lib/localcharset.c: Likewise.
32254         * lib/lock.c: Likewise.
32255         * lib/mbchar.c: Likewise.
32256         * lib/mbswidth.c: Likewise.
32257         * lib/mkdtemp.c: Likewise.
32258         * lib/pipe.c: Likewise.
32259         * lib/printf-args.c: Likewise.
32260         * lib/printf-parse.c: Likewise.
32261         * lib/progname.c: Likewise.
32262         * lib/progreloc.c: Likewise.
32263         * lib/readlink.c: Likewise.
32264         * lib/sh-quote.c: Likewise.
32265         * lib/stpcpy.c: Likewise.
32266         * lib/stpncpy.c: Likewise.
32267         * lib/strcasecmp.c: Likewise.
32268         * lib/strcasestr.c: Likewise.
32269         * lib/strcspn.c: Likewise.
32270         * lib/striconv.c: Likewise.
32271         * lib/strncasecmp.c: Likewise.
32272         * lib/strnlen1.c: Likewise.
32273         * lib/strstr.c: Likewise.
32274         * lib/strtok_r.c: Likewise.
32275         * lib/tls.c: Likewise.
32276         * lib/tmpdir.c: Likewise.
32277         * lib/unicodeio.c: Likewise.
32278         * lib/unsetenv.c: Likewise.
32279         * lib/vasnprintf.c: Likewise.
32280         * lib/vasprintf.c: Likewise.
32281         * lib/wait-process.c: Likewise.
32282         * lib/xallocsa.c: Likewise.
32283         * lib/xsetenv.c: Likewise.
32284         * lib/xstriconv.c: Likewise.
32285
32286 2006-09-13  Simon Josefsson  <jas@extundo.com>
32287
32288         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
32289         that internally, suggested by Ralf Wildenhues
32290         <Ralf.Wildenhues@gmx.de>.
32291
32292 2006-09-13  Simon Josefsson  <jas@extundo.com>
32293
32294         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
32295         @LIBOBJS@.
32296         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
32297
32298 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
32299
32300         * lib/_fpending.c: Include <config.h> unconditionally, since we no
32301         longer worry about uses that don't define HAVE_CONFIG_H.
32302         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
32303         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
32304         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
32305         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
32306         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
32307         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
32308         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
32309         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
32310         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
32311         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
32312         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
32313         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
32314         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
32315         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
32316         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
32317         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
32318         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
32319         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
32320         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
32321         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
32322         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
32323         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
32324         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
32325         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
32326         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
32327         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
32328         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
32329         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
32330         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
32331         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
32332         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
32333         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
32334         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
32335         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
32336         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
32337         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
32338         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
32339         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
32340         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
32341         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
32342         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
32343         Likewise.
32344
32345 2006-09-13  Eric Blake  <ebb9@byu.net>
32346
32347         * lib/getopt.c: Fix typo in last commit.
32348
32349 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32350
32351         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
32352         dgettext.
32353
32354 2006-09-12  Jim Meyering  <jim@meyering.net>
32355
32356         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
32357         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
32358         Reported by Nelson H. F. Beebe.
32359
32360 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
32361
32362         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
32363         program_invocation_name and program_invocation_short_name are
32364         initialized.
32365         * lib/argp-namefrob.h: Move declarations of program_invocation_name
32366         and program_invocation_short_name to argp.h, so they are visible
32367         to user programs.
32368         * lib/argp.h: Likewise
32369
32370 2006-09-10  Bruno Haible  <bruno@clisp.org>
32371
32372         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
32373         m4/inttypes_h.m4, m4/uintmax_t.m4.
32374
32375 2006-09-10  Bruno Haible  <bruno@clisp.org>
32376
32377         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
32378         gl_AC_TYPE_UINTMAX_T.
32379
32380 2006-09-10  Bruno Haible  <bruno@clisp.org>
32381
32382         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
32383
32384 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
32385
32386         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
32387         convention.  Text proposed by Bruno Haible.
32388         (struct argp_option): Document the use of N_() wrappers.
32389
32390         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
32391         '\v', and translate the two parts separately, instead of feeding
32392         the whole string to gettext.  This allows to exclude
32393         '\v' from the strings visible to the translator by writing doc
32394         strings as N_("..") "\v" N_("..").
32395
32396 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
32397
32398         * config/srclist.txt: Undo latest change; the bug was fixed.
32399
32400 2006-09-09  Bruno Haible  <bruno@clisp.org>
32401
32402         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
32403         assignments if building a library without libtool.
32404         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
32405         in func_emit_lib_Makefile_am.
32406         (func_import): When building a static library libfoo.a, arrange to
32407         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
32408         (func_create_testdir): Likewise.
32409         * modules/gc (configure.ac, Makefile.am): If building statically,
32410         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
32411         * modules/iconvme (configure.ac, Makefile.am): Likewise.
32412         * modules/striconv (configure.ac, Makefile.am): Likewise.
32413         Based on a suggestion by Ralf Wildenhues.
32414
32415 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
32416
32417         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
32418         Check for unistd.h too, since Autoconf doesn't assume POSIX.
32419         Also:
32420
32421         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
32422         Add year_2050_test to catch glibc bug 2821
32423         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
32424
32425         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32426         Prefer #ifdef to #if.
32427
32428         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
32429         Return from 'main' instead of calling 'exit'.
32430
32431 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
32432
32433         * lib/mktime.c (guess_time_tm): Fix bug where mktime
32434         returned the maximum time_t value rather than (time_t) -1.
32435         Problem originally reported by William Bardwell
32436         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
32437
32438         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
32439         Moved to here ...
32440         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
32441         ... from here.
32442
32443 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
32444
32445         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
32446         2821 is fixed.
32447
32448 2006-09-08  Jim Meyering  <jim@meyering.net>
32449
32450         Don't make generated files read-only.  That would bother too many
32451         people.  However, do retain the ability to work when targets are
32452         read-only: remove the destination and temporary files before writing
32453         them (when generated via sed or echo), or by using the -f option for
32454         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
32455         * modules/alloca-opt, modules/argz, modules/arpa_inet:
32456         * modules/byteswap, modules/configmake, modules/fcntl:
32457         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
32458         * modules/localcharset, modules/netinet_in, modules/poll:
32459         * modules/stdbool, modules/stdint, modules/sys_select:
32460         * modules/sys_socket, modules/sys_stat, modules/sysexits:
32461
32462 2006-09-08  Jim Meyering  <jim@meyering.net>
32463
32464         Avoid new build failure on FreeBSD 6.0.
32465         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
32466         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
32467         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
32468
32469 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32470
32471         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
32472
32473 2006-09-07  Jim Meyering  <jim@meyering.net>
32474
32475         Fix global typo in last change: use chmod u-w, not chmod u-x.
32476         Spotted by Paul Eggert and Bruce Korb.
32477         * modules/alloca-opt, modules/argz, modules/arpa_inet:
32478         * modules/byteswap, modules/configmake, modules/fcntl:
32479         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
32480         * modules/localcharset, modules/netinet_in, modules/poll:
32481         * modules/stdbool, modules/stdint, modules/sys_select:
32482         * modules/sys_socket, modules/sys_stat, modules/sysexits:
32483
32484 2006-09-06  Jim Meyering  <jim@meyering.net>
32485
32486         Make generated files be read-only.
32487         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
32488         Ensure that each generated file is now read-only.
32489         * modules/argz: Likewise.
32490         * modules/arpa_inet: Likewise.
32491         * modules/byteswap: Likewise.
32492         * modules/configmake: Likewise.
32493         * modules/fcntl: Likewise.
32494         * modules/fnmatch: Likewise.
32495         * modules/getopt: Likewise.
32496         * modules/glob: Likewise.
32497         * modules/inttypes: Likewise.
32498         * modules/netinet_in: Likewise.
32499         * modules/poll: Likewise.
32500         * modules/stdbool: Likewise.
32501         * modules/stdint: Likewise.
32502         * modules/sys_select: Likewise.
32503         * modules/sys_socket: Likewise.
32504         * modules/sys_stat: Likewise.
32505         * modules/sysexits: Likewise.
32506         * modules/localcharset: Same as above, but continue using temporary
32507         file named "t-$@" (why different?) rather than the "$@-t" used
32508         everywhere else.
32509
32510         * modules/sysexits (Makefile.am): Replace literal occurrences
32511         of "sysexit.h" more readable, and more consistent, "$@".
32512
32513 2006-09-06  Bruno Haible  <bruno@clisp.org>
32514
32515         * modules/striconv: New file.
32516         * modules/xstriconv: New file.
32517         * MODULES.html.sh (Internationalization functions): Add striconv,
32518         xstriconv.
32519
32520 2006-09-06  Bruno Haible  <bruno@clisp.org>
32521
32522         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
32523         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
32524         not using libtool correctly.
32525
32526 2006-09-06  Bruno Haible  <bruno@clisp.org>
32527
32528         * lib/striconv.h: New file.
32529         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
32530         iconvstring.c.
32531         * lib/xstriconv.h: New file.
32532         * lib/xstriconv.c: New file.
32533
32534 2006-09-06  Bruno Haible  <bruno@clisp.org>
32535
32536         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
32537         lib_..._LDFLAGS.
32538
32539 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32540
32541         * lib/argz_.h: Sync from Libtool.
32542
32543         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
32544                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32545
32546         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
32547
32548 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
32549
32550         * modules/trim: New file.
32551
32552 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
32553
32554         * lib/trim.h: New file.
32555         * lib/trim.c: New file.
32556
32557 2006-09-05  Bruno Haible  <bruno@clisp.org>
32558
32559         * MODULES.html.sh (String handling): Add trim.
32560
32561 2006-09-04  Karl Berry  <karl@gnu.org>
32562
32563         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
32564         until next release.
32565
32566 2006-09-03  Bruno Haible  <bruno@clisp.org>
32567
32568         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
32569         correctly.
32570
32571 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
32572
32573         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
32574         not gl_GETLOADAVG.  Omit unneeded semicolons.
32575         Problems reported by Ralf Wildenhues in
32576         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
32577         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
32578         at the end, which is the usual gnulib style.
32579
32580         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
32581         of doing all the work ourselves.
32582         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
32583         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
32584
32585 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
32586
32587         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
32588         Problem reported by Ralf Wildenhues in
32589         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
32590
32591         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
32592         HAVE_STRUCT_STATFS_F_FSTYPENAME.
32593
32594 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
32595
32596         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
32597         yesterday's patch by changing test -n to test -z.
32598
32599 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
32600
32601         * modules/getloadavg (Files): Add m4/getloadavg.m4.
32602         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
32603         the former is now obsolescent.
32604
32605         * modules/chdir-long (Depends-on): Add fcntl.
32606
32607 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
32608
32609         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
32610         obsolescent, and programs should use gnulib instead.
32611         * m4/getloadavg.m4: New file, with contents taken from Autoconf
32612         but with prefixes changed.
32613
32614 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
32615
32616         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
32617         or stdbool.h, because they might not exist while configuring.
32618
32619         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
32620         Don't include unistd.h or limits.h; not needed, since chdir-long.h
32621         does that for us.
32622         (O_DIRECTORY): Remove.
32623
32624 2006-08-31  Eric Blake  <ebb9@byu.net>
32625
32626         * gnulib-tool: Don't let emacs change spaces to TAB.
32627
32628 2006-08-31  Bruno Haible  <bruno@clisp.org>
32629
32630         * gnulib-tool: When calling func_import more than once, do it in a
32631         subshell.
32632         Reported by Eric Blake <ebb9@byu.net>.
32633
32634 2006-08-31  Bruno Haible  <bruno@clisp.org>
32635
32636         * gnulib-tool (nl): Remove variable.
32637         (sed_transform_lib_file): Use more robust test for config-h module.
32638         (func_import): Fix typo in 2006-08-25 patch.
32639
32640 2006-08-31  Bruno Haible  <bruno@clisp.org>
32641
32642         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
32643         specified, augment Makefile.am variables instead of assigning them.
32644
32645 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
32646
32647         Work around a bug in both the Linux and SunOS 64-bit kernels:
32648         nanosleep mishandles sleeps for longer than 2**31 seconds.
32649         Problem reported by Frank v Waveren in
32650         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
32651         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
32652         Check for nanosleep bug.
32653         (LIB_NANOSLEEP): Append clock_gettime library if needed.
32654
32655 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
32656
32657         Work around a bug in both the Linux and SunOS 64-bit kernels:
32658         nanosleep mishandles sleeps for longer than 2**31 seconds.
32659         Problem reported by Frank v Waveren in
32660         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
32661         * lib/nanosleep.c (BILLION): New constant.
32662         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
32663         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
32664         implementation.
32665
32666 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
32667
32668         * modules/nanosleep (Depends-on): Add gettime.
32669
32670 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
32671         and Simon Josefsson  <jas@extundo.com>
32672         and Oskar Liljeblad  <oskar@osk.mine.nu>
32673
32674         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
32675         * gnulib-tool (func_import): New license type 'unmodifiable license
32676         text'.
32677         * modules/fdl: Use it.  Longer description.
32678         * module/gpl, module/lgpl: New files.
32679
32680 2006-08-30  Jim Meyering  <jim@meyering.net>
32681
32682         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
32683         shadowing the parameter.
32684
32685 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32686
32687         Sync from Libtool:
32688
32689         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32690
32691         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
32692         sharing with gnulib.  Report by Eric Blake.
32693
32694 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
32695
32696         * modules/isapipe: New file.
32697         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
32698
32699 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
32700
32701         * modules/configmake (Makefile.am): Add a comment, and omit
32702         the CONFIGMAKE_ prefix from generated macro names.  Suggested
32703         by Bruno Haible.
32704
32705 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
32706
32707         * m4/isapipe.m4: New file.
32708
32709 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
32710
32711         * lib/isapipe.c, lib/isapipe.h: New files.
32712
32713 2006-08-29  Jim Meyering  <jim@meyering.net>
32714
32715         * modules/configmake (Makefile.am): Make configmake.h depend on
32716         Makefile.  Otherwise, a stale configmake.h could hang around.
32717
32718 2006-08-29  Eric Blake  <ebb9@byu.net>
32719
32720         * lib/error.c (error_at_line, print_errno_message): Match libc, after
32721         resolution of upstream bug 3044.
32722
32723 2006-08-29  Bruno Haible  <bruno@clisp.org>
32724
32725         * modules/localcharset (Depends-on): Add configmake.
32726         (Makefile.am): Remove setting of LIBDIR through DEFS.
32727
32728 2006-08-29  Bruno Haible  <bruno@clisp.org>
32729
32730         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
32731         defined.
32732
32733 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
32734
32735         * modules/fcntl: New file.
32736         * modules/chdir-safer (Depends-on): Add fcntl.
32737         * modules/fts: Likewise.
32738         * modules/mkdir-p: Likewise.
32739
32740         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
32741         This undoes the most recent change, since we're now addressing the
32742         problem in a different way.
32743
32744         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
32745         into output, since the output might be called Makefile.am even
32746         if $makefile_name is something different.
32747         (func_import): Use $makefile_am rather than
32748         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
32749         empty.
32750
32751         * modules/inttypes (Files): Add m4/inttypes-h.m4.
32752
32753 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
32754
32755         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
32756         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
32757         recent change to stdint.m4, since we're now addressing the problem in a
32758         different way.
32759
32760 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
32761
32762         * m4/fcntl_h.m4: New file.
32763
32764 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
32765
32766         * lib/fcntl_.h: New file.
32767         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
32768         the fcntl module.
32769         * lib/dirchownmod.c: Likewise.
32770         * lib/fts.c: Likewise.
32771
32772         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
32773         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
32774         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
32775         just before including <inttypes.h>, to avoid circular inclusion.
32776
32777 2006-08-28  Jim Meyering  <jim@meyering.net>
32778
32779         * doc/visibility.texi: Actually read and correct the grammar of the
32780         sentence affected by yesterday's change.
32781
32782 2006-08-28  Eric Blake  <ebb9@byu.net>
32783
32784         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
32785         needs wrapper.
32786
32787 2006-08-28  Eric Blake  <ebb9@byu.net>
32788
32789         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
32790
32791 2006-08-28  Eric Blake  <ebb9@byu.net>
32792
32793         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
32794
32795 2006-08-28  Bruno Haible  <bruno@clisp.org>
32796
32797         * modules/c-strstr: New file, from GNU gettext.
32798         * MODULES.html.sh (String handling): Add c-strstr.
32799
32800 2006-08-28  Bruno Haible  <bruno@clisp.org>
32801
32802         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
32803         macros.
32804         Reported by Eric Blake.
32805
32806 2006-08-28  Bruno Haible  <bruno@clisp.org>
32807
32808         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
32809         (VASNPRINTF): Return a string of length > INT_MAX without failing.
32810         * lib/vasprintf.c: Include errno.h, limits.h.
32811         (EOVERFLOW): New fallback definition.
32812         (vasprintf): Test here whether the string length is > INT_MAX.
32813         * lib/vsnprintf.c: Include errno.h, limits.h.
32814         (EOVERFLOW): New fallback definition.
32815         (vsnprintf): Fix bug when generated string was too long for the buffer.
32816         Test here whether the string length is > INT_MAX.
32817
32818 2006-08-28  Bruno Haible  <bruno@clisp.org>
32819
32820         * lib/inttypes_.h (SCNX*): Remove definitions.
32821         Reported by Eric Blake.
32822
32823 2006-08-28  Bruno Haible  <bruno@clisp.org>
32824
32825         * lib/c-strstr.h: New file, from GNU gettext.
32826         * lib/c-strstr.c: New file, from GNU gettext.
32827
32828 2006-08-28  Bruno Haible  <bruno@clisp.org>
32829
32830         * gnulib-tool: Reorder some statements.
32831
32832 2006-08-28  Bruno Haible  <bruno@clisp.org>
32833
32834         * gnulib-tool: New option --makefile-name.
32835         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
32836         $makefile_name.
32837         (func_import): Write $makefile_name to the cache file, and read it from
32838         there unless explicitly specified. Use $makefile_name as file name
32839         instead of Makefile.am. Adjust the recommendations accordingly.
32840
32841 2006-08-28  Bruno Haible  <bruno@clisp.org>
32842
32843         * gnulib-tool (func_verify_module): Check against misapplying patch.
32844
32845 2006-08-28  Bruno Haible  <bruno@clisp.org>
32846
32847         * gnulib-tool (func_relativize, func_relconcat): New functions.
32848         Give an error if --local-dir is given with --update.
32849         Remove trailing slashes from $local_gnulib_dir.
32850         (func_import): Store the relativized $local_gnulib_dir in
32851         gnulib-cache.m4, and read it from there if not specified explicitly.
32852
32853 2006-08-28  Bruno Haible  <bruno@clisp.org>
32854
32855         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
32856         is the current directory. Respect also $local_gnulib_dir.
32857
32858 2006-08-28  Bruno Haible  <bruno@clisp.org>
32859             Simon Josefsson  <jas@extundo.com>
32860
32861         BeOS portability.
32862         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
32863
32864 2006-08-27  Jim Meyering  <jim@meyering.net>
32865
32866         * doc/visibility.texi: Remove duplicate word: "pointer".
32867
32868 2006-08-26  Bruno Haible  <bruno@clisp.org>
32869
32870         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
32871         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
32872         (Makefile.am): Create inttypes.h from inttypes_.h.
32873         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
32874
32875         * modules/imaxabs: New file.
32876
32877         * modules/imaxdiv: New file.
32878
32879 2006-08-26  Bruno Haible  <bruno@clisp.org>
32880
32881         * m4/inttypes.m4: New file.
32882         * m4/_inttypes_h.m4: Remove file.
32883         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
32884         PRI_MACROS_BROKEN.
32885         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
32886
32887         * m4/imaxabs.m4: New file.
32888
32889         * m4/imaxdiv.m4: New file.
32890
32891 2006-08-26  Bruno Haible  <bruno@clisp.org>
32892
32893         * lib/inttypes_.h: New file.
32894         * lib/inttypes.h: Remove file.
32895         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
32896
32897         * lib/imaxabs.c: New file.
32898
32899         * lib/imaxdiv.c: New file.
32900
32901 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
32902
32903         New config-h module, so that "make" output needn't be cluttered
32904         by -DHAVE_CONFIG_H.
32905         * MODULES.html.sh (Support for building libraries and executables):
32906         Add config-h.
32907         * modules/config-h: New file.
32908         * gnulib-tool (nl, sed_transform_lib_file): New vars.
32909         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
32910         the config-h module is used.
32911
32912         New configmake module, so that "make" output needn't be cluttered
32913         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
32914         * MODULES.html.sh (Support for building libraries and executables):
32915         Add configmake.
32916         * modules/configmake: New file.
32917
32918 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
32919
32920         * m4/config-h.m4: New file.
32921
32922 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
32923
32924         * config/srclist.txt: Add elisp-comp.
32925
32926 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
32927
32928         * MODULES.html.sh (Support for building libraries and executables):
32929         Add elisp-comp.
32930         * build-aux/elisp-comp: New file.
32931         * modules/elisp-comp: New file.
32932
32933 2006-08-24  Bruno Haible  <bruno@clisp.org>
32934
32935         * gnulib-tool (func_create_testdir): Use non-default values of
32936         sourcebase and m4base.
32937
32938 2006-08-24  Bruno Haible  <bruno@clisp.org>
32939
32940         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
32941         HTML structure.
32942
32943 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
32944
32945         * modules/openat (Depends-on): Add lchown.
32946
32947 2006-08-23  Bruno Haible  <bruno@clisp.org>
32948
32949         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
32950         of gl_LOCK_EARLY instead of gl_LOCK.
32951
32952 2006-08-23  Bruno Haible  <bruno@clisp.org>
32953
32954         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
32955         on OSF/1 to no.
32956         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
32957
32958 2006-08-23  Bruno Haible  <bruno@clisp.org>
32959
32960         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
32961         as unusable.
32962
32963         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
32964         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
32965         (gl_LOCK): New macro.
32966
32967 2006-08-22  Simon Josefsson  <jas@extundo.com>
32968
32969         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
32970         to md5 module.
32971
32972 2006-08-22  Simon Josefsson  <jas@extundo.com>
32973
32974         * MODULES.html.sh: Add "Support for maintaining and release
32975         projects".
32976
32977         * build-aux/gnupload: New file, from coreutils.
32978
32979 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
32980
32981         Avoid the need for AC_LIBSOURCES in m4 macros.
32982         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
32983         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
32984         * modules/check-version (EXTRA_DIST): Add check-version.h.
32985         * modules/crc (EXTRA_DIST): Add crc.h.
32986         * modules/des (EXTRA_DIST): Add des.h.
32987         * modules/gc (EXTRA_DIST): Add gc.h.
32988         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
32989         * modules/getline (EXTRA_DIST): Add getline.h.
32990         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
32991         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
32992         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
32993         * modules/md2 (EXTRA_DIST): Add md2.h.
32994         * modules/md4 (EXTRA_DIST): Add md4.h.
32995         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
32996         * modules/read-file (EXTRA_DIST): Add read-file.h.
32997         * modules/readline (EXTRA_DIST): Add readline.h.
32998         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
32999         rijndael-api-fst.h.
33000
33001 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
33002
33003         * m4/rijndael.m4 (gl_ARCFOUR):
33004         * m4/arctwo.m4 (gl_ARCTWO):
33005         * m4/check-version.m4 (gl_CHECK_VERSION):
33006         * m4/crc.m4 (gl_CRC):
33007         * m4/des.m4 (gl_DES):
33008         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
33009         * m4/gc.m4 (gl_GC):
33010         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
33011         * m4/getline.m4 (gl_FUNC_GETLINE):
33012         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
33013         * m4/hmac-md5.m4 (gl_HMAC_MD5):
33014         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
33015         * m4/md2.m4 (gl_MD2):
33016         * m4/md4.m4 (gl_MD4):
33017         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
33018         * m4/read-file.m4 (gl_FUNC_READ_FILE):
33019         * m4/readline.m4 (gl_FUNC_READLINE):
33020         * m4/rijndael.m4 (gl_RIJNDAEL):
33021         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
33022         to get the necessary .h files and whatnot.
33023
33024 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
33025
33026         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
33027         gnulib rather than the other way around.
33028         * config/srclistvars.sh (COREUTILS): Remove.
33029
33030 2006-08-22  Jim Meyering  <jim@meyering.net>
33031
33032         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
33033
33034         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
33035
33036 2006-08-22  Eric Blake  <ebb9@byu.net>
33037
33038         * modules/regexprops-generic: New file.
33039         * MODULES.html.sh (Support for building documentation): List it.
33040
33041 2006-08-22  Eric Blake  <ebb9@byu.net>
33042
33043         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
33044         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
33045         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
33046         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
33047
33048 2006-08-22  Bruno Haible  <bruno@clisp.org>
33049
33050         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
33051         and lib_LTLIBRARIES like the other lib_* variables.
33052
33053 2006-08-22  Bruno Haible  <bruno@clisp.org>
33054
33055         * build-aux/x-to-1.in: New file, from GNU gettext.
33056
33057 2006-08-22  Bruno Haible  <bruno@clisp.org>
33058
33059         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
33060         <utmpx.h> exists.
33061
33062 2006-08-22  Bruno Haible  <bruno@clisp.org>
33063
33064         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
33065         <utmpx.h> exists.
33066
33067 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
33068
33069         BeOS portability.
33070         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
33071         exist.
33072         Problem reported by Bruno Haible.
33073
33074 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
33075
33076         Avoid the need for AC_LIBSOURCES in m4 macros.
33077         * modules/acl (EXTRA_DIST): Add acl.h.
33078         * modules/argmatch (Files): Add m4/argmatch.m4.
33079         (configure.ac): Add gl_ARGMATCH.
33080         (EXTRA_DIST): Renamed from lib_SOURCES, for
33081         consistency with the other modules.  Remove argmatch.c.
33082         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
33083         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
33084         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
33085         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
33086         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
33087         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
33088         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
33089         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
33090         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
33091         * modules/closeout (EXTRA_DIST): Add closeout.h.
33092         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
33093         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
33094         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
33095         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
33096         dirname.h; remove basename.c and stripslash.c.
33097         * modules/exclude (EXTRA_DIST): Add exclude.h.
33098         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
33099         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
33100         * modules/file-type (EXTRA_DIST): Add file-type.h.
33101         * modules/filemode (EXTRA_DIST): Add filemode.h.
33102         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
33103         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
33104         * modules/fpending (EXTRA_DIST): Add __fpending.h.
33105         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
33106         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
33107         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
33108         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
33109         * modules/getdate (EXTRA_DIST): Add getdate.c.
33110         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
33111         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
33112         * modules/getpass (EXTRA_DIST): Add getpass.h.
33113         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
33114         * modules/group-member (EXTRA_DIST): Add group-member.h.
33115         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
33116         * modules/hash (EXTRA_DIST): Add hash.h.
33117         * modules/human (EXTRA_DIST): Add human.h.
33118         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
33119         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
33120         * modules/lchown (EXTRA_DIST): Add lchown.h.
33121         * modules/long-options (EXTRA_DIST): Add long-options.h.
33122         * modules/lstat (EXTRA_DIST): Add lstat.h.
33123         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
33124         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
33125         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
33126         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
33127         * modules/memxor (EXTRA_DIST): Add memxor.h.
33128         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
33129         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
33130         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
33131         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
33132         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
33133         * modules/physmem (EXTRA_DIST): Add physmem.h.
33134         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
33135         * modules/posixver (EXTRA_DIST): Add posixver.h.
33136         * modules/quote (EXTRA_DIST): Add quote.h.
33137         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
33138         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
33139         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
33140         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
33141         regex_internal.h regexec.c.
33142         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
33143         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
33144         * modules/same (EXTRA_DIST): Add same.h.
33145         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
33146         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
33147         * modules/savedir (EXTRA_DIST): Add savedir.h.
33148         * modules/sha1 (EXTRA_DIST): Add sha1.h.
33149         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
33150         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
33151         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
33152         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
33153         * modules/strdup (EXTRA_DIST): Add strdup.h.
33154         * modules/strftime (EXTRA_DIST): Add strftime.h.
33155         * modules/strndup (EXTRA_DIST): Add strndup.h.
33156         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
33157         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
33158         * modules/time_r (EXTRA_DIST): Add time_r.h.
33159         * modules/timespec (EXTRA_DIST): Add timespec.h.
33160         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
33161         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
33162         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
33163         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
33164         * modules/userspec (EXTRA_DIST): Add userspec.h.
33165         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
33166         * modules/utimens (EXTRA_DIST): Add utimens.h.
33167         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
33168         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
33169         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
33170         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
33171         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
33172         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
33173         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
33174         * modules/yesno (EXTRA_DIST): Add yesno.h.
33175
33176 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
33177
33178         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
33179
33180         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
33181         * m4/dev-ino.m4, same-inode.m4: Remove.
33182
33183         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
33184         * m4/acl.m4 (AC_FUNC_ACL):
33185         * m4/backupfile.m4 (gl_BACKUPFILE):
33186         * m4/c-strtod.m4 (gl_C99_STRTOLD):
33187         * m4/canon-host.m4 (gl_CANON_HOST):
33188         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
33189         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
33190         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
33191         * m4/cloexec.m4 (gl_CLOEXEC):
33192         * m4/close-stream.m4 (gl_CLOSE_STREAM):
33193         * m4/closeout.m4 (gl_CLOSEOUT):
33194         * m4/dirfd.m4 (gl_FUNC_DIRFD):
33195         * m4/dirname.m4 (gl_DIRNAME):
33196         * m4/exclude.m4 (gl_EXCLUDE):
33197         * m4/exitfail.m4 (gl_EXITFAIL):
33198         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
33199         * m4/file-type.m4 (gl_FILE_TYPE):
33200         * m4/filemode.m4 (gl_FILEMODE):
33201         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
33202         * m4/fpending.m4 (gl_FUNC_FPENDING):
33203         * m4/fprintftime.m4 (gl_FPRINTFTIME):
33204         * m4/fts.m4 (gl_FUNC_FTS):
33205         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
33206         * m4/getdate.m4 (gl_GETDATE):
33207         * m4/gethrxtime.m4 (gl_GETHRXTIME):
33208         * m4/getpagesize.m4 (gl_GETPAGESIZE):
33209         * m4/getpass.m4 (gl_FUNC_GETPASS):
33210         * m4/gettime.m4 (gl_GETTIME):
33211         * m4/getugroups.m4 (gl_GETUGROUPS):
33212         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
33213         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
33214         * m4/hard-locale.m4 (gl_HARD_LOCALE):
33215         * m4/hash.m4 (gl_HASH):
33216         * m4/idcache.m4 (gl_IDCACHE):
33217         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
33218         * m4/lchown.m4 (gl_FUNC_LCHOWN):
33219         * m4/long-options.m4 (gl_LONG_OPTIONS):
33220         * m4/lstat.m4 (gl_FUNC_LSTAT):
33221         * m4/md5.m4 (gl_MD5):
33222         * m4/memcasecmp.m4 (gl_MEMCASECMP):
33223         * m4/memcoll.m4 (gl_MEMCOLL):
33224         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
33225         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
33226         * m4/memxor.m4 (gl_MEMXOR):
33227         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
33228         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
33229         * m4/modechange.m4 (gl_MODECHANGE):
33230         * m4/mountlist.m4 (gl_MOUNTLIST):
33231         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
33232         * m4/openat.m4 (gl_FUNC_OPENAT):
33233         * m4/pathmax.m4 (gl_PATHMAX):
33234         * m4/physmem.m4 (gl_PHYSMEM):
33235         * m4/posixtm.m4 (gl_POSIXTM):
33236         * m4/posixver.m4 (gl_POSIXVER):
33237         * m4/quote.m4 (gl_QUOTE):
33238         * m4/quotearg.m4 (gl_QUOTEARG):
33239         * m4/readtokens.m4 (gl_READTOKENS):
33240         * m4/readutmp.m4 (gl_READUTMP):
33241         * m4/regex.m4 (gl_REGEX):
33242         * m4/safe-read.m4 (gl_SAFE_READ):
33243         * m4/safe-write.m4 (gl_SAFE_WRITE):
33244         * m4/same.m4 (gl_SAME):
33245         * m4/save-cwd.m4 (gl_SAVE_CWD):
33246         * m4/savedir.m4 (gl_SAVEDIR):
33247         * m4/settime.m4 (gl_SETTIME):
33248         * m4/sha1.m4 (gl_SHA1):
33249         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
33250         * m4/stat-macros.m4 (gl_STAT_MACROS):
33251         * m4/stat-time.m4 (gl_STAT_TIME):
33252         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
33253         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
33254         * m4/strdup.m4 (gl_FUNC_STRDUP):
33255         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
33256         * m4/strndup.m4 (gl_FUNC_STRNDUP):
33257         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
33258         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
33259         * m4/time_r.m4 (gl_TIME_R):
33260         * m4/timespec.m4 (gl_TIMESPEC):
33261         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
33262         * m4/unlinkdir.m4 (gl_UNLINKDIR):
33263         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
33264         * m4/userspec.m4 (gl_USERSPEC):
33265         * m4/utimecmp.m4 (gl_UTIMECMP):
33266         * m4/utimens.m4 (gl_UTIMENS):
33267         * m4/xalloc.m4 (gl_XALLOC):
33268         * m4/xgetcwd.m4 (gl_XGETCWD):
33269         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
33270         * m4/xreadlink.m4 (gl_XREADLINK):
33271         * m4/xstrtod.m4 (gl_XSTRTOD):
33272         * m4/yesno.m4 (gl_YESNO):
33273         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
33274         to get the necessary .h files and whatnot.
33275
33276 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
33277             Bruno Haible  <bruno@clisp.org>
33278
33279         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
33280         /bin/sh understanding of '!' conditional negation.
33281
33282 2006-08-21  Jim Meyering  <jim@meyering.net>
33283
33284         * modules/openat (Depends-on): Really alphabetize.
33285
33286         * modules/acl (Depends-on): Add error and quote.
33287
33288         * check-module (find_included_lib_files): Add at-func.c to the
33289         ok-to-include-more-than-once white list.
33290
33291         * modules/openat (Depends-on): Add lstat.  Alphabetize.
33292
33293 2006-08-21  Bruno Haible  <bruno@clisp.org>
33294
33295         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33296         Emit a pkgdata_DATA variable only if some snippets add contents to it.
33297         Reported by Martin Lambers <marlam@marlam.de>.
33298
33299 2006-08-21  Bruno Haible  <bruno@clisp.org>
33300
33301         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
33302         specify an installation location, don't emit a noinst_LIBRARIES or
33303         noinst_LTLIBRARIES assignment.
33304
33305 2006-08-21  Bruno Haible  <bruno@clisp.org>
33306
33307         BeOS portability.
33308         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
33309         BeOS has mbrtowc() but no <wctype.h>.
33310
33311 2006-08-21  Bruno Haible  <bruno@clisp.org>
33312
33313         BeOS portability.
33314         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
33315         exist.
33316
33317 2006-08-21  Bruno Haible  <bruno@clisp.org>
33318
33319         BeOS portability.
33320         * lib/mbchar.h: Include <wctype.h> only if it exists.
33321
33322 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
33323
33324         Remove files that are no longer needed by their respective modules.
33325         * m4/obstack.m4: Remove.
33326         * m4/strerror_r.m4: Remove.
33327         * m4/uint32_t.m4: Remove.
33328         * m4/uintptr_t.m4: Remove.
33329         * m4/ullong_max.m4: Remove.
33330         * m4/xstrtoimax.m4: Remove.
33331         * m4/xstrtoumax.m4: Remove.
33332
33333         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
33334         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
33335         dependencies now capture this.
33336
33337         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
33338         Do not use AC_LIBSOURCES, since gnulib modules now do this.
33339         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
33340         * m4/human.m4 (gl_HUMAN): Likewise.
33341         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
33342         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
33343
33344         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
33345
33346         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
33347         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
33348         stdint.
33349         * m4/human.m4 (gl_HUMAN): Likewise.
33350         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
33351         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
33352         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
33353         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
33354         * m4/xstrtol (gl_XSTRTOL): Likewise.
33355
33356         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
33357         AC_TYPE_LONG_LONG_INT.
33358         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
33359         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
33360         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
33361         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
33362
33363         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
33364         on stdbool.
33365
33366         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
33367         (gl_PREREQ_XSTRTOUL): Remove.
33368
33369         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
33370
33371         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
33372         mode.
33373
33374 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
33375
33376         Add and change modules to make it easier for coreutils to use
33377         gnulib-tool.
33378         * modules/backupfile (Files): Remove m4/d-ino.m4.
33379         (Depends-on): Add d-ino.
33380         * modules/cycle-check (Depends-on): Add stdint.
33381         (lib_SOURCES): Add cycle-check.h.
33382         * modules/d-ino: New module.
33383         * modules/d-type: New module.
33384         * modules/error (Files): Remove m4/strerror_r.m4.
33385         * modules/filemode (Files): Add m4/st_dm_mode.m4.
33386         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
33387         m4/inttypes_h.m4, m4/uintmax_t.m4.
33388         (Depends-on): Add stdint.
33389         (lib_SOURCES): Add fsusage.h.
33390         * modules/getcwd (Files): Remove d-ino.m4.
33391         (Depends-on): Add d-ino.
33392         * modules/getndelim2 (Depends-on): Add stdint.
33393         * modules/glob (Files): Remove m4/d-type.m4.
33394         (Depends-on): Add d-type.
33395         * modules/host-os: New module.
33396         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
33397         m4/inttypes_h.m4, m4/uintmax_t.m4.
33398         * Depends-on: Add stdint.
33399         (lib_SOURCES): Add human.h.
33400         * modules/inttostr (Files): Remove m4/intmax_t.m4,
33401         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
33402         m4/uintmax_t.m4, m4/ulonglong.m4.
33403         (Depends-on): Add stdint.
33404         (EXTRA_DIST): Add inttostr.h.
33405         * modules/lchmod: New module.
33406         * modules/link-follow: New module.
33407         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
33408         (Depends-on): Add lchmod.
33409         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
33410         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
33411         (Depends-on): Add stdint.
33412         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
33413         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
33414         (Depends-on): Add stdint.
33415         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
33416         * modules/perl: New module.
33417         * modules/regex (Depends-on): Add stdint.
33418         * modules/rmdir-errno: New module.
33419         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
33420         m4/intmax_t.m4.
33421         (Depends-on): Add stdint.
33422         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
33423         m4/uintmax_t.m4.
33424         (Depends-on): Add stdint.
33425         * modules/unlink-busy: New module.
33426         * modules/utimecmp (Depends-on): Add stdint.
33427         * modules/uptime: New module.
33428         * modules/winsz-ioctl: New module.
33429         * modules/winsz-termios: New module.
33430         * modules/xnanosleep (Depends-on): Add nanosleep.
33431         * modules/ullong_max: Remove.
33432         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
33433         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
33434         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
33435         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
33436         (Depends-on): Add inttypes.
33437         (lib_SOURCES): Add xstrtol.h.
33438         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
33439         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
33440         * MODULES.html.sh: Move 'assert' into the assert section.
33441         Move 'dummy' into the linking section.
33442         Remove ullong_max.
33443         Add section for compatibility checks for POSIX:2001 functions,
33444         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
33445         winsz-ioctl, and winsz-termios into it.
33446         Add lchmod.
33447         Add top-level Misc section and put host-os, perl, and uptime
33448         into it.
33449
33450 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
33451
33452         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
33453         now assume the stdint module.  Do not include inttypes.h.
33454         * lib/fsusage.h: Likewise.
33455         * lib/getndelim2.c: Likewise.
33456         * lib/human.h: Likewise.
33457         * lib/inttostr.h: Likewise.
33458         * lib/obstack.c: Likewise.
33459         * lib/regex_internal.h: Likewise.
33460         * lib/tempname.c: Likewise.
33461         * lib/utimecmp.c: Likewise.
33462         * lib/xstrtol.h: Likewise.
33463
33464         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
33465
33466         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
33467         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
33468         * lib/xtime.h: Likewise.
33469
33470 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33471
33472         * modules/openat (Files): Add lib/fchmodat.c.
33473         Fixes problem reported by Jay Youngman.
33474
33475 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
33476
33477         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
33478         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
33479
33480 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
33481             Bruno Haible  <bruno@clisp.org>
33482
33483         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
33484         and is a script that invokes bison. Tighten the code. Add comments.
33485
33486 2006-08-18  Jim Meyering  <jim@meyering.net>
33487
33488         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
33489         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
33490         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
33491         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
33492
33493 2006-08-18  Bruno Haible  <bruno@clisp.org>
33494
33495         * modules/bison-i18n: New file.
33496         * MODULES.html.sh (Internationalization functions): Add it.
33497
33498 2006-08-18  Bruno Haible  <bruno@clisp.org>
33499
33500         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
33501         sys/statvfs.h. When getmntinfo was found, check its declaration and
33502         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
33503
33504 2006-08-18  Bruno Haible  <bruno@clisp.org>
33505
33506         * m4/bison-i18n.m4: New file, from bison.
33507
33508 2006-08-18  Bruno Haible  <bruno@clisp.org>
33509
33510         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
33511         (ME_DUMMY): Treat "kernfs" as a dummy.
33512         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
33513
33514 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
33515
33516         Update from coreutils.
33517
33518         2006-08-15  Jim Meyering  <jim@meyering.net>
33519
33520         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
33521
33522         2006-01-17  Jim Meyering  <jim@meyering.net>
33523
33524         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
33525
33526         2006-01-11  Jim Meyering  <jim@meyering.net>
33527
33528         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
33529         Check for the lchmod function.
33530
33531 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
33532
33533         Update from coreutils.
33534
33535         * lib/__fpending.h: Add copyright notice.
33536         * lib/fprintftime.h: Likewise.
33537         * lib/savedir.c: Use (C) in copyright notice.
33538         * lib/savedir.h: Likewise.
33539
33540         2006-08-15  Jim Meyering  <jim@meyering.net>
33541
33542         * lib/at-func.c: New file, with the logic of all emulated at-functions.
33543         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
33544         in support of the EXPECTED_ERRNO macro.
33545         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
33546         definitions.  Instead, define the appropriate symbols and include
33547         "at-func.c".
33548         * lib/mkdirat.c (mkdirat): Likewise.
33549         * lib/fchmodat.c (fchmodat): Likewise.
33550         (ENOSYS): Remove definition.
33551         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
33552         it.  Don't include "unistd--.h" -- it wasn't ever used.
33553
33554         2006-01-17  Jim Meyering  <jim@meyering.net>
33555
33556         Rewrite fts.c not to change the current working directory,
33557         by using openat, fstatat, fdopendir, etc..
33558
33559         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
33560         (HAVE_OPENAT_SUPPORT): Define.
33561         [_LIBC] (fchdir): Don't undef or define; no longer used.
33562         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
33563         Now, this `function' always succeeds, and consumes its file descriptor
33564         parameter -- so callers must not close such FDs.  Update callers.
33565         (diropen_fd, opendirat, cwd_advance_fd): New functions.
33566         (diropen): Add parameter, SP.  Adjust all callers.
33567         Implement using diropen_fd, rather than open.
33568         (fts_open): Initialize new member, fts_cwd_fd.
33569         Remove fts_rft-setting code.
33570         (fts_close): Close fts_cwd_fd, if necessary.
33571         (__opendir2): Define in terms of opendir or opendirat,
33572         depending on whether the FST_NOCHDIR flag is set.
33573         (fts_build): Since fts_safe_changedir consumes its FD, and since
33574         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
33575         and close the dup'd file descriptor upon failure.
33576         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
33577         (fts_safe_changedir): Tweak semantics to reflect that this function
33578         now calls cwd_advance_fd and hence consumes its FD argument.
33579         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
33580         [struct FTS] (fts_rft): Remove now-unused member.
33581         [struct FTS] (fts_cycle.state): Improve comment.
33582
33583         * lib/openat.c (openat_needs_fchdir): New function.
33584         * lib/openat.h (openat_needs_fchdir): Declare it.
33585
33586 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
33587
33588         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
33589         Problem and fix reported by Pádraig Brady in
33590         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
33591
33592 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
33593
33594         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
33595
33596 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
33597
33598         * lib/memcoll.c (memcoll): Optimize for the common case where the
33599         arguments are bytewise equal.
33600
33601 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
33602
33603         * doc/regexprops-generic.texi: Add a copyright notice.
33604
33605 2006-08-15  Bruno Haible  <bruno@clisp.org>
33606
33607         * modules/tmpdir (License): Change to LGPL.
33608
33609 2006-08-15  Bruno Haible  <bruno@clisp.org>
33610
33611         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
33612         module.
33613
33614 2006-08-14  Simon Josefsson  <jas@extundo.com>
33615
33616         * config/srclist.txt: Add gnupload.
33617
33618 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
33619
33620         Change copyright notice from LGPL 2 to GPL 2, since that's the
33621         standard form used in the gnulib repository.
33622         * tests/test-lock.c: Likewise.
33623         * tests/test-stdint.c: Likewise.
33624         * tests/test-tls.c: Likewise.
33625
33626         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
33627         prelude-manager.  User shorter URLs for GNU projects, without '?'.
33628         Add copyright notice.
33629
33630         * check-module: Add copyright notice.  Output a copyright
33631         notice if "--version" is specified.
33632         * modules/COPYING: New file.
33633         * tests/test-getaddrinfo.c: Add copyright notice.
33634         * tests/test-verify.c: Likewise.
33635
33636 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
33637
33638         Change copyright notice from LGPL 2 to GPL 2, since that's the
33639         standard form used in the gnulib repository.
33640         * lib/lock.c: LGPL -> GPL.
33641         * lib/lock.h: Likewise.
33642         * lib/strnlen1.c: Likewise.
33643         * lib/strnlen1.h: Likewise.
33644         * lib/tls.c: Likewise.
33645         * lib/tls.h: Likewise.
33646         * lib/tmpdir.c: Likewise.
33647
33648         * lib/TODO: Remove; this belongs only in coreutils.
33649
33650 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
33651
33652         Add copyright notices to long-enough files that lack them, since
33653         otherwise the files aren't clearly free.  Use the same notice that
33654         getdate.texi already uses.
33655         * doc/alloca-opt.texi: Add copyright notice.
33656         * doc/alloca.texi: Likewise.
33657         * doc/ctime.texi: Likewise.
33658         * doc/functions.texi: Likewise.
33659         * doc/gcd.texi: Likewise.
33660         * doc/gnulib-tool.texi: Likewise.
33661         * doc/inet_ntoa.texi: Likewise.
33662         * doc/visibility.texi: Likewise.
33663
33664         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
33665         * doc/quote.texi: Add copyright notice.
33666
33667         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
33668         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
33669         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
33670         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
33671         is now obsolete, and give a pointer to the Sun list.
33672         Add copyright notice.
33673
33674 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
33675
33676         * config/srclistvars.sh: Add copyright notice.
33677
33678 2006-08-14  Eric Blake  <ebb9@byu.net>
33679
33680         Import the following change from libc:
33681
33682         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
33683
33684         Upstream bug 2997.
33685         * lib/misc/error.c: Add space between program name and message if file
33686         name is missing.
33687
33688 2006-08-12  Karl Berry  <karl@gnu.org>
33689
33690         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
33691         remove, these originate in gnulib now.
33692
33693 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33694
33695         * doc/Makefile (standards.info standards.html standards.dvi):
33696         Also depend on make-stds.texi.
33697
33698 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
33699
33700         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
33701         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
33702
33703         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
33704         in wchar_t.  Problem reported by Eric Blake.
33705
33706         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
33707         LEN is smaller than SIZE.  Suggested by Bruno Haible.
33708         Also, help the compiler to keep LEN in a register.
33709
33710 2006-08-11  Eric Blake  <ebb9@byu.net>
33711
33712         * users.txt: Sort.  Add tar.
33713
33714 2006-08-11  Bruno Haible  <bruno@clisp.org>
33715
33716         * users.txt: New file.
33717
33718 2006-08-11  Bruno Haible  <bruno@clisp.org>
33719
33720         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
33721         before <wchar.h>. Needed for OSF/1 and BSD/OS.
33722
33723 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33724
33725         * modules/snprintf (Depends-on): Remove minmax.
33726         (Maintainer): Add self and Bruno.
33727
33728 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
33729
33730         * lib/.cppi-disable: Add snprintf.h, socket_.h.
33731         * lib/snprintf.c: Include <errno.h> and <limits.h>.
33732         (EOVERFLOW): Define if the system does not.
33733         Do not include "minmax.h"; it wasn't used.
33734         (snprintf): Don't assume size_t promotes to an unsigned type.
33735         Fix bug when generated string was too long for the buffer: the
33736         buffer's contents are supposed to be the initial prefix of the
33737         output.  Don't assume vasnprintf returns EOVERFLOW if the size
33738         exceeds INT_MAX; do the check ourselves.
33739
33740         Import the following changes from libc:
33741
33742         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
33743
33744         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
33745         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
33746         set wc to the byte which couldn't be converted.
33747         (re_string_reconstruct): Don't clear valid_raw_len before calling
33748         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
33749         tip_context using re_string_context_at.
33750
33751         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
33752
33753         * lib/posix/regex.h: g++ still cannot handled [restrict].
33754
33755         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
33756
33757         * lib/posix/regex.h: Remove special handling for VMS.
33758
33759 2006-08-10  Jim Meyering  <jim@meyering.net>
33760
33761         * modules/same-inode: New module.
33762         * modules/dev-ino: New module.
33763         * modules/cycle-check: Depend on these modules, rather than simply
33764         including their .h files.
33765         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
33766         required via m4/cycle-check.m4.
33767         * modules/same: Depend on new same-inode module, rather than
33768         including same-inode.h.
33769         * modules/chdir-safer: New file.
33770
33771         * modules/chown (Depends-on): Add stat-macros.
33772
33773 2006-08-10  Jim Meyering  <jim@meyering.net>
33774
33775         * m4/cycle-check.m4: New file.
33776         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
33777         * m4/dev-ino.m4, m4/same-inode.m4: New files.
33778
33779 2006-08-10  Eric Blake  <ebb9@byu.net>
33780
33781         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
33782         in from original proposal.
33783
33784 2006-08-10  Eric Blake  <ebb9@byu.net>
33785         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33786
33787         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
33788         namespace.
33789
33790 2006-08-10  Bruno Haible  <bruno@clisp.org>
33791
33792         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
33793         as well.
33794
33795 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33796
33797         Sync from coreutils.
33798
33799         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
33800
33801         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
33802         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
33803
33804 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33805
33806         * modules/restrict: Remove; no longer needed now that we assume
33807         Autoconf 2.59 or later.
33808         * MODULES.html.sh: Remove 'restrict'.
33809         * modules/argp (Depends-on): Remove 'restrict'.
33810         * modules/base64 (Depends-on): Likewise.
33811         * modules/gc (Depends-on): Likewise.
33812         * modules/getaddrinfo (Depends-on): Likewise.
33813         * modules/glob (Depends-on): Likewise.
33814         * modules/inet_ntop (Depends-on): Likewise.
33815         * modules/inet_pton (Depends-on): Likewise.
33816         * modules/memxor (Depends-on): Likewise.
33817         * modules/regex (Depends-on): Likewise.
33818         * modules/strtok_r (Depends-on): Likewise.
33819         * modules/time_r (Depends-on): Likewise.
33820
33821 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
33822
33823         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
33824         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
33825         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
33826         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
33827         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
33828         * m4/memxor.m4 (gl_MEMXOR): Likewise.
33829         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
33830         gl_C_RESTRICT replaced by AC_C_RESTRICT.
33831
33832         Merge from coreutils.
33833         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
33834         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
33835         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
33836         * m4/time_r.m4 (gl_TIME_R): Likewise.
33837
33838 2006-08-09  Karl Berry  <karl@gnu.org>
33839
33840         * config/srclist.txt: no more gettext-tools, per Bruno.
33841
33842 2006-08-08  Eric Blake  <ebb9@byu.net>
33843
33844         * modules/verror: New module.
33845         * MODULES.html.sh: Document it.
33846
33847 2006-08-08  Eric Blake  <ebb9@byu.net>
33848
33849         * lib/verror.h, lib/verror.c: New files.
33850
33851 2006-08-08  Eric Blake  <ebb9@byu.net>
33852
33853         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
33854         verror_at_line output complies with GNU Coding Standards even when
33855         file is NULL.
33856
33857 2006-08-07  Bruno Haible  <bruno@clisp.org>
33858
33859         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
33860         versions of AIX.
33861         Reported by Ralf Wildenhues.
33862
33863 2006-08-07  Bruno Haible  <bruno@clisp.org>
33864
33865         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
33866         in an AC_DEFUN. Needed so that the autoconf snippets can use
33867         AC_REQUIRE.
33868
33869 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33870
33871         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33872         Initialize pkgdata_DATA.
33873         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
33874         overriding it.
33875
33876 2006-08-06  Eric Blake  <ebb9@byu.net>
33877
33878         * lib/error.h: Fold in some upstream changes from glibc.
33879         * lib/error.c: Likewise.
33880
33881 2006-08-04  Bruno Haible  <bruno@clisp.org>
33882
33883         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33884         Make the mostlyclean-local rule depend on mostlyclean-generic.
33885         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
33886
33887 2006-07-31  Bruno Haible  <bruno@clisp.org>
33888
33889         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
33890         <stdlib.h>, <string.h>.
33891
33892 2006-07-30  Bruno Haible  <bruno@clisp.org>
33893
33894         * modules/readlink (License): Change to LGPL.
33895
33896 2006-07-30  Bruno Haible  <bruno@clisp.org>
33897
33898         * modules/javaversion (Makefile.am): Distribute javaversion.java and
33899         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
33900         set PKGDATADIR to point to it.
33901
33902 2006-07-30  Bruno Haible  <bruno@clisp.org>
33903
33904         * modules/csharpexec (configure.ac): Comment out macro invocation.
33905         * modules/javaexec (configure.ac): Likewise.
33906         * modules/javacomp-script (configure.ac): Likewise.
33907
33908         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
33909
33910 2006-07-30  Bruno Haible  <bruno@clisp.org>
33911
33912         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
33913         linked-list.
33914
33915 2006-07-30  Bruno Haible  <bruno@clisp.org>
33916
33917         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
33918
33919 2006-07-30  Bruno Haible  <bruno@clisp.org>
33920
33921         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33922         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
33923         get removed.
33924
33925 2006-07-29  Bruno Haible  <bruno@clisp.org>
33926
33927         Make it possible for gnulib-tool to work with locally modified or
33928         augmented gnulib repositories.
33929         * gnulib-tool (func_usage): Document --local-dir option.
33930         (local_gnulib_dir): New variable.
33931         Handle --local-dir option.
33932         (func_lookup_file): New function.
33933         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
33934         (func_get_description, func_get_filelist, func_get_description,
33935         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
33936         func_get_automake_snippet, func_get_include_directive,
33937         func_get_license, func_get_maintainer): Use func_lookup_file.
33938         (func_import, func_create_testdir): Use func_lookup_file.
33939
33940 2006-07-29  Bruno Haible  <bruno@clisp.org>
33941
33942         * modules/setenv (Depends-on): Add unistd.
33943
33944 2006-07-29  Bruno Haible  <bruno@clisp.org>
33945
33946         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
33947
33948 2006-07-29  Bruno Haible  <bruno@clisp.org>
33949
33950         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
33951
33952 2006-07-29  Bruno Haible  <bruno@clisp.org>
33953
33954         * gnulib-tool (import, update): If there is no Makefile.am, look at
33955         aclocal.m4, instead of bailing out.
33956
33957 2006-07-29  Bruno Haible  <bruno@clisp.org>
33958
33959         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
33960         Categorize the options by when they are useful.
33961
33962 2006-07-29  Bruno Haible  <bruno@clisp.org>
33963
33964         * gnulib-tool (func_usage): Document option --no-libtool.
33965         Handle option --no-libtool.
33966         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
33967         for changed semantics of $libtool variable.
33968         (func_import): Likewise. If libtool is not used, show this through
33969         an option --no-libtool.
33970         (func_create_testdir): Update.
33971
33972 2006-07-29  Bruno Haible  <bruno@clisp.org>
33973
33974         * gnulib-tool (func_import): Extend error message about missing
33975         --doc-base.
33976
33977 2006-07-29  Bruno Haible  <bruno@clisp.org>
33978
33979         * gnulib-tool (func_import): Don't create the $docbase directory if
33980         there is no file to store there.
33981
33982 2006-07-29  Bruno Haible  <bruno@clisp.org>
33983
33984         * gnulib-tool (autoconf_minversion): If a --dir option is given and
33985         relevant, look for configure.ac there, not in the current directory.
33986         Also use a simple search for AC_PREREQ, not "autoconf --trace".
33987
33988 2006-07-29  Bruno Haible  <bruno@clisp.org>
33989
33990         * gnulib-tool (SORT): New variable.
33991         (func_usage): Undocument --assume-autoconf option.
33992         Remove --assume-autoconf option handling.
33993         (autoconf_minversion): Determine from the contents of configure.ac.
33994         (func_import): Remove autoconf_minversion handling.
33995         Suggested by Eric Blake.
33996
33997 2006-07-29  Bruno Haible  <bruno@clisp.org>
33998
33999         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
34000
34001 2006-07-29  Bruno Haible  <bruno@clisp.org>
34002
34003         * config/srclist.txt (*setenv.[ch]): Remove rules.
34004
34005 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34006
34007         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
34008
34009 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34010
34011         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
34012         arpa/inet.h.
34013
34014 2006-07-28  Simon Josefsson  <jas@extundo.com>
34015
34016         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
34017         * modules/inet_pton (Depends-on): Likewise.
34018
34019 2006-07-28  Simon Josefsson  <jas@extundo.com>
34020
34021         * m4/netinet_in_h.m4: New file.
34022
34023 2006-07-28  Simon Josefsson  <jas@extundo.com>
34024
34025         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
34026         #include's.
34027
34028 2006-07-28  Simon Josefsson  <jas@extundo.com>
34029
34030         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
34031         #include's.
34032
34033 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
34034
34035         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
34036         setgid on directories only if they set these bits.
34037         * lib/modechange.h: Remove obsolete comment about masks.
34038
34039 2006-07-28  Eric Blake  <ebb9@byu.net>
34040
34041         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
34042         macro expansion.
34043
34044 2006-07-28  Bruno Haible  <bruno@clisp.org>
34045
34046         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
34047
34048 2006-07-28  Bruno Haible  <bruno@clisp.org>
34049
34050         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
34051
34052 2006-07-28  Bruno Haible  <bruno@clisp.org>
34053
34054         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
34055         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
34056         Define fallbacks.
34057         Avoids link error on FreeBSD 4.x.
34058         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
34059
34060         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
34061         encoding.
34062         * lib/mbswidth.c (iswcntrl): Likewise.
34063
34064 2006-07-27  Bruno Haible  <bruno@clisp.org>
34065
34066         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
34067         test.
34068
34069 2006-07-27  Bruno Haible  <bruno@clisp.org>
34070
34071         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
34072         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
34073         defined.
34074
34075 2006-07-26  Eric Blake  <ebb9@byu.net>
34076
34077         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
34078
34079 2006-07-26  Eric Blake  <ebb9@byu.net>
34080
34081         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
34082         like mingw that lack mkstemp.
34083         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
34084         avoid compilation warning on mingw.
34085
34086 2006-07-26  Bruno Haible  <bruno@clisp.org>
34087
34088         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
34089         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
34090         INT_FAST*_MIN, INTPTR_MIN.
34091
34092 2006-07-25  Bruno Haible  <bruno@clisp.org>
34093
34094         * modules/version-etc (Depends-on): Add stdarg.
34095
34096 2006-07-25  Bruno Haible  <bruno@clisp.org>
34097
34098         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
34099         complex commands.
34100
34101 2006-07-25  Bruno Haible  <bruno@clisp.org>
34102
34103         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
34104         defined in <stdarg.h> or config.h.
34105
34106 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
34107
34108         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
34109         (gl_STDIO_SAFER): Remove.
34110
34111 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
34112
34113         * MODULES.html.sh (File stream based Input/Output):
34114         Add fopen-safer, tmpfile-safer; remove stdio-safer.
34115         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
34116         * modules/fopen-safer, modules/tmpfile-safer: New files.
34117         * modules/stdio-safer: Remove.
34118
34119 2006-07-24  Bruno Haible  <bruno@clisp.org>
34120
34121         * modules/tmpdir: New file.
34122         * MODULES.html.sh (File system functions): Add it.
34123
34124 2006-07-24  Bruno Haible  <bruno@clisp.org>
34125
34126         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
34127         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
34128
34129 2006-07-24  Bruno Haible  <bruno@clisp.org>
34130
34131         * modules/clean-temp: New file.
34132
34133 2006-07-24  Bruno Haible  <bruno@clisp.org>
34134
34135         * m4/tmpdir.m4: New file, from GNU gettext.
34136
34137 2006-07-24  Bruno Haible  <bruno@clisp.org>
34138
34139         * lib/tmpdir.h: New file, from GNU gettext.
34140         * lib/tmpdir.c: New file, from GNU gettext.
34141
34142 2006-07-24  Bruno Haible  <bruno@clisp.org>
34143
34144         * lib/clean-temp.h: New file, from GNU gettext.
34145         * lib/clean-temp.c: New file, from GNU gettext.
34146
34147 2006-07-23  Eric Blake  <ebb9@byu.net>
34148
34149         * modules/stdio-safer (Files): Add tmpfile-safer.c.
34150         (Depends-on): Add binary-io.
34151
34152 2006-07-23  Eric Blake  <ebb9@byu.net>
34153
34154         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
34155
34156 2006-07-23  Eric Blake  <ebb9@byu.net>
34157
34158         * lib/tmpfile-safer.c: New file.
34159         * lib/stdio-safer.h (fopen_safer): Add prototype.
34160         * lib/stdio--.h (tmpfile): Make safer.
34161
34162 2006-07-23  Bruno Haible  <bruno@clisp.org>
34163
34164         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
34165         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
34166         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
34167         gl_linked_remove_at): Use it.
34168
34169 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
34170         and Simon Josefsson <jas@extundo.com>
34171
34172         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
34173
34174         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
34175
34176 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
34177
34178         * modules/close-stream: New file.
34179         * modules/closeout (Description): Make it clear that it exits
34180         with a diagnostic on error.
34181         (Depends-on): Add close-stream.  Remove fpending, stdbool.
34182         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
34183
34184 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
34185
34186         * m4/close-stream.m4: New file.
34187
34188 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
34189
34190         * lib/close-stream.c, lib/close-stream.h: New files.
34191
34192 2006-07-22  Bruno Haible  <bruno@clisp.org>
34193
34194         Merge from GNU gettext 0.15.
34195
34196         2006-05-01  Bruno Haible  <bruno@clisp.org>
34197
34198                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
34199
34200         2006-07-22  Bruno Haible  <bruno@clisp.org>
34201
34202                 * modules/javaversion: New file.
34203                 * MODULES.html.sh (Java): Add javaversion.
34204
34205         2006-03-12  Bruno Haible  <bruno@clisp.org>
34206
34207                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
34208
34209         2005-12-04  Bruno Haible  <bruno@clisp.org>
34210
34211                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
34212                 (untested).
34213
34214         2006-06-21  Bruno Haible  <bruno@clisp.org>
34215
34216                 Avoid warnings from recent versions of mcs.
34217                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
34218                 -o, -L, -r any more. Use options documented since mcs-1.0
34219                 instead. Similarly for -g.
34220
34221         2005-12-04  Bruno Haible  <bruno@clisp.org>
34222
34223                 * build-aux/csharpcomp.sh.in: Suffix for resources is
34224                 .resources, not .resource.
34225
34226         2005-07-09  Bruno Haible  <bruno@clisp.org>
34227
34228                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
34229                 add a .dll suffix.
34230                 Reported by Mark Junker <mjscod@gmx.de>.
34231
34232         2006-07-22  Bruno Haible  <bruno@clisp.org>
34233
34234                 * modules/gettext: Upgrade to gettext-0.15.
34235                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
34236                 m4/visibility.m4.
34237                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
34238
34239 2006-07-22  Bruno Haible  <bruno@clisp.org>
34240
34241         Merge from GNU gettext 0.15.
34242
34243         2006-03-25  Bruno Haible  <bruno@clisp.org>
34244
34245                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
34246
34247         2006-07-21  Bruno Haible  <bruno@clisp.org>
34248
34249                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
34250                 "1.1".
34251
34252         2006-05-09  Bruno Haible  <bruno@clisp.org>
34253
34254                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
34255                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
34256                 for the conftestver execution.
34257
34258         2006-05-01  Bruno Haible  <bruno@clisp.org>
34259
34260                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
34261                 optional target-version argument. Verify that the compiler
34262                 groks source of the specified source-version, or add -source
34263                 option as necessary. Verify that the compiler produces
34264                 bytecode in the specified target-version, or add -target and
34265                 -source options as necessary. Make the result of the test
34266                 available as variable CONF_JAVAC. Also log error output in
34267                 config.log.
34268
34269         2006-03-11  Bruno Haible  <bruno@clisp.org>
34270
34271                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
34272
34273         2006-05-09  Bruno Haible  <bruno@clisp.org>
34274
34275                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
34276                 CLASSPATH_SEPARATOR to a semicolon.
34277
34278         2006-03-12  Bruno Haible  <bruno@clisp.org>
34279
34280                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
34281                 available as variable CONF_JAVA, for subsequent autoconf
34282                 tests. Also log error output in config.log.
34283
34284         2006-07-19  Bruno Haible  <bruno@clisp.org>
34285
34286                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
34287                 that getline works on glibc2 systems. Needed to avoid trouble
34288                 in relocatable.c.
34289                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
34290
34291         2005-12-04  Bruno Haible  <bruno@clisp.org>
34292
34293                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
34294                 launcher (untested).
34295
34296         2005-12-04  Bruno Haible  <bruno@clisp.org>
34297
34298                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
34299
34300         2006-07-22  Bruno Haible  <bruno@clisp.org>
34301
34302                 * gettext.m4: Update from GNU gettext-0.15.
34303                 * nls.m4: Likewise.
34304                 * po.m4: Likewise.
34305                 * inttypes-pri.m4: Likewise.
34306                 * inttypes-h.m4: Renamed from inttypes.m4.
34307                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
34308
34309 2006-07-22  Bruno Haible  <bruno@clisp.org>
34310
34311         Merge from GNU gettext 0.15.
34312
34313         2005-07-05  Bruno Haible  <bruno@clisp.org>
34314
34315                 * printf-args.c (printf_fetchargs): Work around broken
34316                 definition of wint_t on mingw.
34317
34318         2005-02-12  Bruno Haible  <bruno@clisp.org>
34319
34320                 * xallocsa.h: Add extern "C" for C++.
34321
34322         2006-05-17  Bruno Haible  <bruno@clisp.org>
34323
34324                 Cygwin portability.
34325                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
34326
34327         2006-04-30  Bruno Haible  <bruno@clisp.org>
34328
34329                 * progreloc.c: Include <mach-o/dyld.h> if available.
34330                 (find_executable): Use _NSGetExecutablePath when possible.
34331
34332         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
34333
34334                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
34335                 function.
34336
34337         2005-12-29  Bruno Haible  <bruno@clisp.org>
34338
34339                 * progreloc.c (set_program_name_and_installdir): Fix
34340                 compilation error.
34341
34342         2005-12-04  Bruno Haible  <bruno@clisp.org>
34343
34344                 Cygwin portability.
34345                 * progreloc.c: Include <windows.h> also on Cygwin.
34346                 (find_executable): Add support for Cygwin.
34347                 (set_program_name_and_installdir): Handle also platforms with
34348                 nonempty EXEEXT.
34349
34350         2006-07-11  Bruno Haible  <bruno@clisp.org>
34351
34352                 * javacomp.c: Fix a comment.
34353                 Reported by Jim Meyering.
34354
34355         2006-04-30  Bruno Haible  <bruno@clisp.org>
34356
34357                 * javacomp.h (compile_java_class): Add source_version,
34358                 target_version arguments.
34359                 * javacomp.c: Rewritten to choose only a compiler that
34360                 respects the specified source_version and target_version.
34361
34362         2006-06-27  Bruno Haible  <bruno@clisp.org>
34363
34364                 Assume correct S_ISDIR macro.
34365                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
34366
34367         2006-07-22  Bruno Haible  <bruno@clisp.org>
34368
34369                 * javaversion.h: New file, from GNU gettext.
34370                 * javaversion.c: New file, from GNU gettext.
34371                 * javaversion.java: New file, from GNU gettext.
34372                 * javaversion.class: New file, from GNU gettext.
34373
34374         2006-05-17  Bruno Haible  <bruno@clisp.org>
34375
34376                 Cygwin portability.
34377                 * javaexec.c (execute_java_class): Test for jview program
34378                 also on Cygwin.
34379
34380         2006-04-09  Bruno Haible  <bruno@clisp.org>
34381
34382                 * fatal-signal.c: Don't include string.h.
34383                 (at_fatal_signal): Use a copying loop instead of memcpy.
34384
34385         2005-12-04  Bruno Haible  <bruno@clisp.org>
34386
34387                 * csharpexec.c: Add support for 'clix' launcher (untested).
34388                 (execute_csharp_using_sscli): New function.
34389                 (execute_csharp_program): Call it.
34390
34391         2006-06-21  Bruno Haible  <bruno@clisp.org>
34392
34393                 Avoid warnings from recent versions of mcs.
34394                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
34395                 -o, -L, -r any more. Use options documented since mcs-1.0
34396                 instead. Similarly for -g.
34397
34398         2005-07-09  Bruno Haible  <bruno@clisp.org>
34399
34400                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
34401                 add a .dll suffix.
34402                 Reported by Mark Junker <mjscod@gmx.de>.
34403
34404         2006-06-17  Bruno Haible  <bruno@clisp.org>
34405
34406                 * config.charset: Update for NetBSD 3.0.
34407
34408         2006-05-17  Bruno Haible  <bruno@clisp.org>
34409
34410                 Cygwin portability.
34411                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
34412
34413         2006-05-16  Bruno Haible  <bruno@clisp.org>
34414
34415                 * localcharset.c [CYGWIN]: Include <windows.h>.
34416                 (get_charset_aliases): For Cygwin, return the same CPxxx
34417                 aliases list as under WIN32.
34418                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
34419                 the environment variables. Fall back to GetACP().
34420
34421         2006-04-05  Bruno Haible  <bruno@clisp.org>
34422
34423                 * config.charset: Update Juan Manuel Guerrero's address.
34424
34425         2005-02-12  Bruno Haible  <bruno@clisp.org>
34426
34427                 * allocsa.h: Add extern "C" for C++.
34428
34429         2005-02-10  Bruno Haible  <bruno@clisp.org>
34430
34431                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
34432                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
34433
34434         2006-07-22  Bruno Haible  <bruno@clisp.org>
34435
34436                 * gettext.h: Update to GNU gettext-0.15.
34437
34438 2006-07-22  Bruno Haible  <bruno@clisp.org>
34439
34440         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
34441         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
34442         lib-prefix.m4, longdouble.m4, ssize_t.m4.
34443
34444 2006-07-21  Eric Blake  <ebb9@byu.net>
34445
34446         * modules/stdlib-safer: New file.
34447         * MODULES.html.sh (File stream based Input/Output): Add
34448         stdlib-safer.
34449
34450 2006-07-21  Eric Blake  <ebb9@byu.net>
34451
34452         * lib/stdlib-safer.h: New file from coreutils, required by
34453         stdlib--.h.
34454
34455 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
34456
34457         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
34458
34459 2006-07-20  Bruno Haible  <bruno@clisp.org>
34460
34461         * gnulib-tool: Recognize new option --assume-autoconf.
34462         (autoconf_minversion): New variable.
34463         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
34464
34465 2006-07-20  Bruno Haible  <bruno@clisp.org>
34466
34467         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
34468
34469 2006-07-19  Derek R. Price  <derek@ximbiot.com>
34470
34471         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
34472         Reindent and repaginate.
34473
34474 2006-07-19  Derek Price  <derek@ximbiot.com>
34475
34476         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
34477         Correct grammar.
34478
34479 2006-07-17  Bruno Haible  <bruno@clisp.org>
34480
34481         * modules/list: New file.
34482         * modules/array-list: New file.
34483         * modules/carray-list, modules/carray-list-tests: New files.
34484         * modules/linked-list, modules/linked-list-tests: New files.
34485         * modules/avltree-list, modules/avltree-list-tests: New files.
34486         * modules/rbtree-list, modules/rbtree-list-tests: New files.
34487         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
34488         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
34489         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
34490         * modules/oset: New file.
34491         * modules/array-oset: New file.
34492         * modules/avltree-oset, modules/avltree-oset-tests: New files.
34493         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
34494         * tests/test-carray_list.c: New file.
34495         * tests/test-linked_list.c: New file.
34496         * tests/test-avltree_list.c: New file.
34497         * tests/test-rbtree_list.c: New file.
34498         * tests/test-linkedhash_list.c: New file.
34499         * tests/test-avltreehash_list.c: New file.
34500         * tests/test-rbtreehash_list.c: New file.
34501         * tests/test-avltree_oset.c: New file.
34502         * tests/test-rbtree_oset.c: New file.
34503         * MODULES.html.sh (Container data structures): New section.
34504
34505 2006-07-17  Bruno Haible  <bruno@clisp.org>
34506
34507         * m4/gl_list.m4: New file.
34508
34509 2006-07-17  Bruno Haible  <bruno@clisp.org>
34510
34511         * lib/gl_list.h: New file.
34512         * lib/gl_list.c: New file.
34513         * lib/gl_array_list.h: New file.
34514         * lib/gl_array_list.c: New file.
34515         * lib/gl_carray_list.h: New file.
34516         * lib/gl_carray_list.c: New file.
34517         * lib/gl_linked_list.h: New file.
34518         * lib/gl_linked_list.c: New file.
34519         * lib/gl_anylinked_list1.h: New file.
34520         * lib/gl_anylinked_list2.h: New file.
34521         * lib/gl_avltree_list.h: New file.
34522         * lib/gl_avltree_list.c: New file.
34523         * lib/gl_anyavltree_list1.h: New file.
34524         * lib/gl_anyavltree_list2.h: New file.
34525         * lib/gl_rbtree_list.h: New file.
34526         * lib/gl_rbtree_list.c: New file.
34527         * lib/gl_anyrbtree_list1.h: New file.
34528         * lib/gl_anyrbtree_list2.h: New file.
34529         * lib/gl_anytree_list1.h: New file.
34530         * lib/gl_anytree_list2.h: New file.
34531         * lib/gl_linkedhash_list.h: New file.
34532         * lib/gl_linkedhash_list.c: New file.
34533         * lib/gl_anyhash_list1.h: New file.
34534         * lib/gl_anyhash_list2.h: New file.
34535         * lib/gl_avltreehash_list.h: New file.
34536         * lib/gl_avltreehash_list.c: New file.
34537         * lib/gl_rbtreehash_list.h: New file.
34538         * lib/gl_rbtreehash_list.c: New file.
34539         * lib/gl_anytreehash_list1.h: New file.
34540         * lib/gl_anytreehash_list2.h: New file.
34541
34542         * lib/gl_oset.h: New file.
34543         * lib/gl_oset.c: New file.
34544         * lib/gl_array_oset.h: New file.
34545         * lib/gl_array_oset.c: New file.
34546         * lib/gl_avltree_oset.h: New file.
34547         * lib/gl_avltree_oset.c: New file.
34548         * lib/gl_rbtree_oset.h: New file.
34549         * lib/gl_rbtree_oset.c: New file.
34550         * lib/gl_anytree_oset.h: New file.
34551
34552 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
34553
34554         * m4/mkancesdirs.m4: New file.
34555         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
34556         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
34557         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
34558         it.
34559
34560 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
34561
34562         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
34563         * lib/mkancesdirs.h: New files.
34564         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
34565         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
34566         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
34567         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
34568         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
34569         callers changed.  Revamp internals significantly, by not
34570         attempting to create directories that are temporarily more
34571         permissive than the final results.  Do not attempt to use
34572         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
34573         This removes some race conditions, fixes some bugs, and simplifies
34574         things.  Use new dirchownmod function to do owner and mode changes.
34575         * lib/mkdir-p.h: Likewise.
34576         * lib/modechange.c (octal_to_mode): New function.
34577         (struct mode_change): New member mentioned.
34578         (make_node_op_equals): New arg mentioned.  All callers changed.
34579         (mode_compile): Keep track of which mode bits the user has explicitly
34580         mentioned.
34581         (mode_adjust): New arg DIR, so that we implement the X op correctly.
34582         New arg PMODE_BITS, to keep track of which mode bits the user
34583         mentioned; it treats S_ISUID and S_ISGID speciall.
34584         All callers changed.
34585         * lib/modechange.h: Likewise.
34586
34587 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
34588
34589         * MODULES.html.sh: Add mkancestors.
34590         * modules/mkancesdirs: New module.
34591         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
34592         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
34593         The chdir-safer and afs files are now orphans; I'll remove them
34594         unless someone speaks up.
34595         Add lib/dirchownmod.c, lib/dirchownmod.h.
34596         (Depends-on): Remove alloca, chown, save-cwd, dirname.
34597         Add lchown, mkancesdirs.
34598         (Maintainer): Add self.
34599
34600 2006-07-15  Karl Berry  <karl@gnu.org>
34601
34602         * gnulib-tool: help message wording/arrangement.
34603
34604 2006-07-14  Simon Josefsson  <jas@extundo.com>
34605
34606         * doc/gnulib.texi (Libtool and Windows): New section.
34607
34608 2006-07-12  Simon Josefsson  <jas@extundo.com>
34609
34610         * modules/gendocs (License): Fix license, approved by Karl.
34611
34612 2006-07-12  Eric Blake  <ebb9@byu.net>
34613
34614         * MODULES.html.sh: Add gendocs.
34615
34616 2006-07-11  Eric Blake  <ebb9@byu.net>
34617
34618         * modules/fdl: New module, to install doc/fdl.texi.
34619         * MODULES.html.sh: Add new section for documentation modules.
34620         * gnulib-tool: Avoid space-tab.
34621         (--doc-base): New option, to manage files from doc.
34622
34623 2006-07-11  Eric Blake  <ebb9@byu.net>
34624
34625         * m4/absolute-header.m4: Fix comments to match recent change.
34626
34627 2006-07-11  Eric Blake  <ebb9@byu.net>
34628
34629         * gnulib-tool: List --doc-base before --tests-base.
34630
34631 2006-07-11  Derek R. Price  <derek@ximbiot.com>
34632
34633         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
34634
34635 2006-07-11  Bruno Haible  <bruno@clisp.org>
34636
34637         * README: Mention where to put documentation.
34638
34639 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34640
34641         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
34642
34643 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
34644
34645         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
34646         to stdint.m4.
34647
34648 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
34649
34650         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
34651         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
34652         "no/such/file/stdint.h" when there is no such file, so that
34653         the resulting C code can be parsed by dodgy compilers.
34654         Problems reported by Bob Proulx.
34655
34656 2006-07-10  Derek R. Price  <derek@ximbiot.com>
34657
34658         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
34659         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
34660         macros into the GNU _D_EXACT_NAMLEN.
34661         * lib/savedir.c:  Likewise.
34662         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
34663
34664 2006-07-10  Derek R. Price  <derek@ximbiot.com>
34665         and Paul Eggert  <eggert@cs.ucla.edu>
34666
34667         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
34668         * m4/savedir.m4:
34669         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
34670         macros into the GNU _D_EXACT_NAMLEN.
34671
34672 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34673
34674         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
34675         around the absolute name, to work around a problem with the HP-UX
34676         11.23 native C compiler, reported by Bob Proulx.
34677
34678 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34679
34680         * doc/maintain.texi, make-stds.texi: Sync from
34681         <http://savannah.gnu.org/projects/gnustandards>.
34682
34683 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
34684
34685         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
34686
34687 2006-07-09  Jim Meyering  <jim@meyering.net>
34688
34689         * m4/glob.m4: Remove a doubled word in a comment.
34690
34691 2006-07-09  Jim Meyering  <jim@meyering.net>
34692
34693         * lib/argp-pv.c: Remove a doubled word in a comment.
34694         * lib/check-version.c (check_version): Likewise.
34695         * lib/javacomp.c (compile_java_class): Likewise.
34696
34697 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
34698
34699         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
34700         for the benefit of people using Autoconf 2.60.  If you want to
34701         support older Autoconf versions you can copy m4/onceonly_2_57.m4
34702         (or m4/onceonly.m4, if pre-2.57) manually.
34703
34704 2006-07-08  Jim Meyering  <jim@meyering.net>
34705
34706         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
34707         comment.
34708         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
34709         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
34710         comment.
34711
34712 2006-07-08  Jim Meyering  <jim@meyering.net>
34713
34714         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
34715
34716 2006-07-07  Simon Josefsson  <jas@extundo.com>
34717
34718         * tests/test-crc.c: Change expected crc value, the test vector
34719         were probably computed using the old broken crc.c?
34720
34721 2006-07-06  Simon Josefsson  <jas@extundo.com>
34722
34723         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
34724         now the canonical place for the M4 file).
34725
34726         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
34727         from the sys_socket dependency now.
34728
34729         * modules/inet_pton (Files): Ditto.
34730
34731         * modules/inet_ntop (Files): Ditto.
34732
34733 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
34734
34735         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
34736         not gl_PREREQ_GETUSERSHELL.
34737
34738 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34739
34740         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
34741         with only one argument, for Autoconf 2.60.
34742         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
34743         expand to nothing, so add a shell command to avoid syntax error.
34744         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
34745
34746 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34747
34748         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
34749
34750 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34751
34752         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
34753         no longer needed.  Check for isblank decl.
34754         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
34755         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
34756         of existence.
34757
34758 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34759
34760         * lib/getloadavg.c: Use __VMS, not VMS.
34761         * lib/getopt.c: Likewise.
34762         * lib/getpagesize.h: Likewise.
34763         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
34764         and probably does not work.
34765
34766 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
34767
34768         * lib/.cppi-disable: Add wcwidth.
34769         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
34770         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
34771         (ISGRAPH): Remove.  All uses changed to isgraph.
34772         (FOLD) [!defined _LIBC]: Remove special case.
34773         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
34774         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
34775         HAVE_ISBLANK.
34776         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
34777         case.
34778
34779 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
34780
34781         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
34782         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
34783         brackets.  Other minor changes to suppress some compiler
34784         warnings.
34785
34786 2006-07-06  Derek R. Price  <derek@ximbiot.com>
34787         and Paul Eggert  <eggert@cs.ucla.edu>
34788
34789         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
34790         of invoking obsolescent AC_HEADER_DIRENT macro.
34791         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
34792         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
34793         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
34794         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
34795         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
34796         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
34797         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
34798         * m4/readdir.m4: Remove; no longer needed.
34799
34800 2006-07-06  Derek R. Price  <derek@ximbiot.com>
34801         and Paul Eggert  <eggert@cs.ucla.edu>
34802
34803         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
34804         Don't worry about this obsolete case any more.
34805         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
34806         directories.
34807         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
34808         worry about this obsolete case any more.
34809         * lib/fts.c: Likewise.
34810         * lib/getcwd.c: Likewise.
34811         * lib/glob.h: Likewise.
34812         * lib/savedir.c: Likewise.
34813
34814 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
34815
34816         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
34817         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
34818         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
34819         needed.
34820         All uses removed.
34821         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
34822         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
34823         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
34824         needed.
34825         * m4/getdate.m4 (gl_GETDATE): Likewise.
34826         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
34827         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
34828         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
34829         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
34830         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
34831         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
34832         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
34833         needed.
34834
34835 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
34836
34837         * lib/memcasecmp.c: Include <limits.h>.
34838         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
34839         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
34840         Don't assume isdigit succeeds only on '0' through '9'.
34841
34842 2006-07-05  Eric Blake  <ebb9@byu.net>
34843
34844         * modules/getaddrinfo (Depends-on): Add snprintf.
34845
34846 2006-07-05  Eric Blake  <ebb9@byu.net>
34847
34848         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
34849         to avoid 'header present but could not be compiled' on cygwin.
34850
34851 2006-07-05  Eric Blake  <ebb9@byu.net>
34852
34853         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
34854         missing from netdb.h.
34855         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
34856
34857 2006-07-05  Derek R. Price  <derek@ximbiot.com>
34858
34859         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
34860         no longer needed.
34861         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
34862         * m4/getdate.m4 (gl_GETDATE): Likewise.
34863         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
34864         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
34865         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
34866         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
34867         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
34868
34869 2006-07-05  Derek R. Price  <derek@ximbiot.com>
34870
34871         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
34872         All uses of is_space replaced by isspace.
34873         * lib/exit.h: Don't talk about STDC_HEADERS.
34874         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
34875         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
34876         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
34877         replaced by isprint etc.
34878         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
34879         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
34880         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
34881         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
34882         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
34883         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
34884
34885 2006-07-05  Bruno Haible  <bruno@clisp.org>
34886
34887         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
34888         the function exists, before testing against AIX.
34889         Reported by Martin Lambers <marlam@marlam.de>.
34890
34891 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
34892
34893         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
34894         From Mark D. Baushke.
34895
34896 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
34897
34898         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
34899         to the absolute name, not just one, to bypass Sun C 5.8's
34900         "warning: #include of /usr/include/... may be non-portable".
34901
34902 2006-07-04  Eric Blake  <ebb9@byu.net>
34903
34904         * modules/dirname-tests: New test module.
34905         * tests/test-dirname.c: New file, replacing dirname.c
34906         TEST_DIRNAME section that was recently deleted.
34907
34908 2006-07-04  Bruno Haible  <bruno@clisp.org>
34909
34910         Assume ANSI C header files and <ctype.h> functions.
34911         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
34912         (mbsnwidth): Use isprint, iscntrl instead.
34913
34914 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
34915
34916         Merge from coreutils.
34917         * MODULES.html.sh: Add xstrtold.
34918         * modules/xstrtold: New file.
34919         * modules/cycle-check (Files): Add lib/same-inode.h.
34920         * modules/dirname (Files): Add m4/double-slash-root.m4.
34921         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
34922         * modules/mkdir-p (Files): Add lib/same-inode.h.
34923         * modules/same (Files): Add lib/same-inode.h.
34924
34925 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
34926
34927         * m4/absolute-header.m4: Renamed from full-header-path.m4.
34928         This is to keep the terminology clean; POSIX talks about
34929         "absolute pathnames", not "full pathnames", but the GNU
34930         Coding Standards say to use "path" for something else;
34931         so use "absolute" to keep both sides happy.
34932         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
34933         Set gl_absolute_header, not gl_full_header_path.
34934         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
34935         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
34936         All uses changed.
34937
34938         Merge from coreutils.
34939
34940         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
34941
34942         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
34943         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
34944         want to require the building of c-strtod.o.
34945         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
34946         needs -lm directly.
34947         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
34948
34949         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
34950
34951         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
34952         --as-needed option if available.  Problem reported by Albert Chin in
34953         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
34954         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
34955         cc merely issues a bunch of annoying warnings for --as-needed
34956         (this problem was reported by Bob Proulx).  Also, try linking with
34957         -lm to detect a bug in binutils 2.16 (this problem was reported
34958         by Ralf Wildenhues).
34959
34960         2006-06-18  Jim Meyering  <jim@meyering.net>
34961
34962         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
34963         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
34964         macro.
34965         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
34966         also check for glibc-2.4's abort-inducing bug.
34967
34968         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
34969         Low-probability clean-up should be to use rmdir to get rid of
34970         the just-created directory, not unlink.
34971
34972         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
34973         configure fail, and request a bug report to inform us about it.
34974         Add a comment that, barring reports to the contrary, in 2007 we'll
34975         assume ftruncate is universally available.
34976
34977         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
34978
34979         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
34980
34981         2006-03-12  Jim Meyering  <jim@meyering.net>
34982
34983         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
34984         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
34985         * m4/same.m4 (gl_SAME): Likewise.
34986         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
34987
34988         2006-03-11  Eric Blake  <ebb9@byu.net>
34989
34990         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
34991         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
34992         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
34993         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
34994
34995 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
34996
34997         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
34998         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
34999         reported by Mark D. Baushke, one in
35000         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
35001
35002         Merge from coreutils.
35003
35004         * lib/.cppi-disable: Add stdint_.h.
35005         * lib/.cvsignore: Add stdint.h.
35006
35007         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
35008
35009         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
35010         both double and long double versions.
35011         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
35012         * lib/xstrtold.c: New file.
35013         * lib/xstrtod.h (xstrtold): New decl.
35014
35015         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
35016
35017         * lib/filemode.c (setst): Remove.
35018         (strmode): Rewrite to avoid setst.  This makes the code shorter,
35019         (arguably) clearer, and the generated code is a bit smaller on my
35020         Debian GNU/Linux stable x86 host.
35021
35022         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
35023
35024         * lib/filemode.c: Include "filemode.h" first, to test the interface.
35025         Assume that filemode.h includes sys/types.h and sys/stat.h.
35026         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
35027         (ftypelet): Reorder to put common cases first, for efficiency.
35028         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
35029         to do 'M'.
35030         (strmode): Renamed from mode_string, and now stores 12 bytes instead
35031         of 10, for compatibility with FreeBSD.  All callers changed.
35032         (filemodestring): Now stores 12 bytes instead of 10, and sets file
35033         types that can't be deduced solely from st_mode.  First arg is now a
35034         const pointer.
35035         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
35036         (strmode): Renamed from mode_string.
35037         (filemodestring): New decl.
35038         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
35039         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
35040         needed.
35041         (S_ISPORT, S_ISWHT): New macros, if not already defined.
35042
35043         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
35044
35045         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
35046         fsusage.h now does that.  Include fsusage.h first, to test interface.
35047         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
35048         at most one method (the old code could have generated decls that
35049         didn't conform to C89, not that this was ever exercised).
35050         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
35051
35052         2006-03-19  Jim Meyering  <jim@meyering.net>
35053
35054         Work even in a chroot where d_ino values for entries in "/"
35055         don't match the stat.st_ino values for the same names.
35056         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
35057         number, iterate through all entries again, using lstat instead.
35058         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
35059         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
35060
35061         * lib/getcwd.c (__getcwd): Clarify a comment.
35062         Use memcpy in place of a call to strcpy.
35063
35064         2006-03-12  Jim Meyering  <jim@meyering.net>
35065
35066         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
35067         matches that of the current directory (which we're about to chdir ".."
35068         out of), then save the dev-ino of the parent, instead.
35069
35070         * lib/same-inode.h (SAME_INODE): New file/macro.
35071         * lib/chdir-safer.c (SAME_INODE): Remove definition.
35072         Include "same-inode.h", instead.
35073         * lib/same.c: Likewise.
35074         * lib/cycle-check.h: Include "same-inode.h".
35075         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
35076         * lib/cycle-check.c (SAME_INODE): Remove definition.
35077         * lib/root-dev-ino.h: Include "same-inode.h".
35078
35079         2006-03-11  Eric Blake  <ebb9@byu.net>
35080
35081         * lib/same.c (same_name): s/base_name/last_component/
35082         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
35083         * lib/filenamecat.c (file_name_concat): Likewise.
35084
35085         2006-03-11  Eric Blake  <ebb9@byu.net>,
35086                     Paul Eggert  <eggert@cs.ucla.edu>
35087
35088         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
35089         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
35090         drive prefix.
35091         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
35092         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
35093         (last_component): New method.
35094         * lib/dirname.c (dir_len): Determine when drive letters need a
35095         subsequent slash.  Preserve // when it is special.
35096         (dir_name): Don't append dot when drive letter is absolute.
35097         [TEST_DIRNAME]: Move into a full-blown gnulib test.
35098         * lib/basename.c (base_name): New semantics - malloc the result.
35099         Preserve // when it is special.  Preserve relative files that look
35100         like drive letters.
35101         (base_len): Preserve // when it is special.
35102         (last_component): New method, similar to old base_name semantics.
35103         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
35104         base_name.  Strip redundant slashes from ///.
35105
35106 2006-07-03  Jim Meyering  <jim@meyering.net>
35107
35108         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
35109         macro is used before the first cycle_check call.
35110
35111 2006-07-03  Eric Blake  <ebb9@byu.net>
35112
35113         * modules/dirname (Depends-on): Add xstrndup.
35114
35115 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
35116
35117         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
35118         test cases, so that config.log is a bit easier to follow.
35119
35120 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
35121
35122         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
35123         both are 64 bits, since this seems to be the tradition, and this
35124         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
35125         we ever run into a host that prefers long long to long in this
35126         case, we'll need another configure-time test.  Problem reported by
35127         Jim Meyering.
35128
35129 2006-07-02  Eric Blake  <ebb9@byu.net>
35130
35131         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
35132
35133 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
35134
35135         * modules/inttypes (Depends-on): No longer depends on stdint.
35136         * modules/stdint (Description): Say more about assumptions.
35137         Say that the fast types might differ.  Say macros are used.
35138         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
35139         (Makefile.am): Revise list of substituted symbols to match
35140         new stdint.m4.
35141         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
35142         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
35143         * tests/test-stdint.c (verify_same_types)
35144         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
35145         the code conforms to C99/C89.
35146         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
35147         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
35148
35149 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
35150
35151         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
35152         but fix a bug, by requiring at least 64 bits.
35153         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
35154         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
35155         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
35156         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
35157
35158         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
35159         changes.  Make 2.59 a prerequisite.  Check and substitute for
35160         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
35161         inttypes.h.  Do not use special include files; just use the
35162         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
35163         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
35164         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
35165         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
35166         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
35167         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
35168         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
35169         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
35170         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
35171         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
35172         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
35173         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
35174         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
35175         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
35176         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
35177         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
35178         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
35179         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
35180         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
35181         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
35182         WINT_MAX.  Check for C99 conformance more strictly, by detecting
35183         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
35184         not check for things that C99 does not require, e.g., int8_t.  If
35185         a test isn't needed unless <stdint.h> isn't working, and is
35186         unlikely to be needed for any other reason, then don't do it
35187         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
35188         size_t, since we assume C89 freestanding at least.  Do not check
35189         for sig_atomic_t, wchar_t, or wint_t, since the code now does
35190         the right thing even if the types are not defined.  Instead use:
35191         (gl_STDINT_TYPE_PROPERTIES): New macro.
35192         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
35193         testing whether <sys/types.h> clashes, as Autoconf does this for
35194         us now.  All uses removed.
35195         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
35196         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
35197         (gl_CHECK_TYPE_SAME):
35198         Remove; no longer needed.
35199         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
35200         exists, since we'll return 0 anyway in that case.
35201         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
35202
35203 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
35204
35205         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
35206         possible collision with system files.
35207         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
35208         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
35209         WCHAR_MIN and WCHAR_MAX in this case.
35210         (<stddef.h>): Do not include; no longer needed.
35211         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
35212         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
35213         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
35214         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
35215         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
35216         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
35217         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
35218         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
35219         !defined(__c99))]: Include in this case too, since it's harmless
35220         now.
35221         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
35222         dangerous to do so.
35223         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
35224         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
35225         (_STDINT_MIN, _STDINT_MAX): New macros.
35226         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
35227         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
35228         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
35229         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
35230         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
35231         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
35232         macros, not typedefs; this simplifies things quite a bit.
35233         Use long int for all types narrower than int64_t.
35234         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
35235         Define in terms of long long int or int64_t or long int,
35236         not int64_t or int32_t.  This saves some compile-time testing.
35237         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
35238         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
35239         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
35240         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
35241         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
35242         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
35243         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
35244         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
35245         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
35246         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
35247         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
35248         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
35249         undef any previous version and define our own version, for
35250         simplicity and consistency with the new macros for types.
35251         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
35252         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
35253         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
35254         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
35255         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
35256         @WINT_T_SUFFIX@ to keep things simple here.
35257         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
35258         Simplify by assuming typical 8/16/32/64 host, since we're
35259         already doing that elsewhere anyway.
35260         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
35261         and assume long long int is 64 bits if available.  This
35262         speeds up 'configure'.
35263
35264 2006-07-01  Eric Blake  <ebb9@byu.net>
35265
35266         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
35267         Reported by Andreas Buening.
35268
35269 2006-07-01  Eric Blake  <ebb9@byu.net>
35270
35271         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
35272
35273 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
35274
35275         * lib/getaddrinfo.c: fixed typo
35276
35277 2006-06-29  Jim Meyering  <jim@meyering.net>
35278
35279         * modules/strftime (Maintainer): Add my name, since with the
35280         FPRINTFTIME changes strftime.c has forked from glibc.
35281
35282 2006-06-29  Eric Blake  <ebb9@byu.net>
35283
35284         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
35285
35286 2006-06-29  Eric Blake  <ebb9@byu.net>
35287
35288         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
35289
35290 2006-06-29  Eric Blake  <ebb9@byu.net>
35291
35292         * lib/stat_.h: New file.
35293
35294 2006-06-29  Eric Blake  <ebb9@byu.net>
35295
35296         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
35297         unused static function.
35298
35299 2006-06-29  Eric Blake  <ebb9@byu.net>
35300
35301         * doc/functions.texi (Function Portability): Document missing lstat
35302         on mingw.
35303
35304 2006-06-29  Eric Blake  <ebb9@byu.net>
35305
35306         * MODULES.html.sh: Add sys_stat.
35307         * modules/sys_stat: New module.
35308         * modules/mkstemp (Depends-on): Add sys_stat.
35309
35310 2006-06-29  Derek R. Price  <derek@ximbiot.com>
35311
35312         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
35313
35314 2006-06-29  Derek R. Price  <derek@ximbiot.com>
35315
35316         * m4/c-bs-a.m4: Removed.
35317
35318 2006-06-29  Derek R. Price  <derek@ximbiot.com>
35319
35320         * lib/strftime.c: Assume strftime() exists.
35321
35322 2006-06-29  Derek Price  <derek@ximbiot.com>
35323
35324         * modules/c-bs-a: Removed - \a is C89.
35325         * MODULES.html.sh: Remove c-bs-a.
35326
35327 2006-06-29  Bruno Haible  <bruno@clisp.org>
35328
35329         * modules/wcwidth (License): Change to LGPL.
35330
35331 2006-06-28  Simon Josefsson  <jas@extundo.com>
35332
35333         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
35334         on _WIN32.
35335
35336         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
35337         getnameinfo.
35338
35339 2006-06-28  Simon Josefsson  <jas@extundo.com>
35340
35341         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
35342
35343 2006-06-28  Simon Josefsson  <jas@extundo.com>
35344
35345         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
35346         functions there.  It will succeed on Windows XP, but on Windows
35347         2000 and (presumably) earlier, it will fail, and use the internal
35348         re-implementation.
35349         (use_win32_p): New function.
35350         (getaddrinfo): Use strtoul on servname, to support numeric ports.
35351         Support AI_NUMERICSERV to disable getservbyname.
35352         (getnameinfo): New function, only supports
35353         NI_NUMERICHOST|NI_NUMERICSERV for now.
35354
35355         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
35356         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
35357         getnameinfo.
35358
35359 2006-06-28  Eric Blake  <ebb9@byu.net>
35360
35361         * modules/wcwidth: New file.
35362         * modules/mbchar (Depends-on): Add wcwidth.
35363         * modules/mbswidth (Depends-on): Add wcwidth.
35364         * MODULES.html.sh: Add wcwidth.
35365
35366 2006-06-28  Eric Blake  <ebb9@byu.net>
35367
35368         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
35369         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
35370
35371 2006-06-28  Eric Blake  <ebb9@byu.net>
35372
35373         * lib/xvasprintf.h: Fix comments.
35374
35375 2006-06-28  Eric Blake  <ebb9@byu.net>
35376
35377         * lib/mbchar.h (wcwidth): Include wcwidth.h.
35378         * lib/mbswidth.c (wcwidth): Move from here...
35379         * lib/wcwidth.h: ...to this new file.
35380
35381 2006-06-28  Derek R. Price  <derek@ximbiot.com>
35382
35383         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
35384
35385         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
35386         it's obsolete.
35387         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
35388
35389 2006-06-28  Derek R. Price  <derek@ximbiot.com>
35390
35391         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
35392         Autoconf 2.60 says this stuff was obsolete.
35393
35394 2006-06-28  Bruno Haible  <bruno@clisp.org>
35395
35396         * modules/wcwidth (Files): Add m4/wchar_t.m4.
35397
35398 2006-06-28  Bruno Haible  <bruno@clisp.org>
35399
35400         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
35401         gt_TYPE_WCHAR_T.
35402
35403 2006-06-28  Bruno Haible  <bruno@clisp.org>
35404
35405         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
35406         declaration for wcwidth.
35407         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
35408
35409 2006-06-28  Bruno Haible  <bruno@clisp.org>
35410
35411         * lib/mkdtemp.c [MINGW]: Include <io.h>.
35412         (mkdir): Define using _mkdir.
35413
35414 2006-06-28  Bruno Haible  <bruno@clisp.org>
35415
35416         * lib/getaddrinfo.h: Fix POSIX URL.
35417         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
35418         _WIN32.
35419         (use_win32_p): Make static.
35420         (getaddrinfo): Reject service name if it is empty or does not consist
35421         solely of decimal digits, or if its value is > 65535.
35422         (getnameinfo): Remove useless casts.
35423
35424 2006-06-27  Simon Josefsson  <jas@extundo.com>
35425
35426         * modules/sys_select: New file, suggested by Bruno Haible, Paul
35427         Eggert and Martin Lambers.
35428
35429 2006-06-27  Simon Josefsson  <jas@extundo.com>
35430
35431         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
35432         Eggert and Martin Lambers.
35433
35434 2006-06-27  Bruno Haible  <bruno@clisp.org>
35435
35436         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
35437         result to 0, not to empty.
35438         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
35439
35440 2006-06-27  Bruno Haible  <bruno@clisp.org>
35441
35442         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
35443
35444 2006-06-26  Simon Josefsson  <jas@extundo.com>
35445
35446         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
35447         present.
35448
35449 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
35450
35451         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
35452         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
35453         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
35454
35455 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
35456
35457         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
35458
35459 2006-06-26  Bruno Haible  <bruno@clisp.org>
35460
35461         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
35462
35463 2006-06-26  Bruno Haible  <bruno@clisp.org>
35464
35465         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
35466
35467 2006-06-26  Bruno Haible  <bruno@clisp.org>
35468
35469         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
35470         SGI C compiler in pre-C99 mode.
35471         Suggested by Mark D. Baushke and Larry Jones.
35472
35473 2006-06-26  Bruno Haible  <bruno@clisp.org>
35474
35475         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
35476         WCHAR_MAX.
35477         Reported by Mark D. Baushke and Larry Jones.
35478
35479 2006-06-26  Bruno Haible  <bruno@clisp.org>
35480
35481         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
35482         in pre-C99 mode.
35483         Suggested by Mark D. Baushke and Larry Jones.
35484
35485 2006-06-23  Simon Josefsson  <jas@extundo.com>
35486             Bruno Haible  <bruno@clisp.org>
35487
35488         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
35489         Emit mostlyclean-local rule.
35490         (func_emit_tests_Makefile_am): Likewise.
35491         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
35492
35493 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
35494
35495         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
35496
35497 2006-06-23  Bruno Haible  <bruno@clisp.org>
35498
35499         * tests/test-stdint.c: Update to match ISO C 99 Technical
35500         Corrigendum 1.
35501
35502 2006-06-23  Bruno Haible  <bruno@clisp.org>
35503
35504         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
35505
35506 2006-06-23  Bruno Haible  <bruno@clisp.org>
35507
35508         * lib/stdint_.h: Treat IRIX like OpenBSD.
35509
35510 2006-06-23  Bruno Haible  <bruno@clisp.org>
35511
35512         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
35513         ISO C 99 Technical Corrigendum 1.
35514
35515 2006-06-22  Simon Josefsson  <jas@extundo.com>
35516
35517         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
35518         MinGW.
35519
35520 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35521
35522         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
35523         needed.  Some compiler complained about some of them.  Problem reported
35524         by Larry Jones in
35525         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
35526
35527 2006-06-21  Simon Josefsson  <jas@extundo.com>
35528
35529         * tests/test-getaddrinfo.c: New file.
35530
35531         * modules/getaddrinfo-tests: New file.
35532
35533         * MODULES.html.sh: Add inet_pton.
35534
35535         * modules/inet_pton: New file.
35536
35537 2006-06-21  Simon Josefsson  <jas@extundo.com>
35538
35539         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
35540         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
35541         of using the (limited) gnulib implementation on Windows XP.
35542
35543         * m4/inet_pton.m4: New file.
35544
35545 2006-06-21  Simon Josefsson  <jas@extundo.com>
35546
35547         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
35548         variable.
35549
35550         * lib/socket_.h: Don't define WINVER.
35551
35552         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
35553         slightly modified to work in gnulib.
35554
35555 2006-06-21  Simon Josefsson  <jas@extundo.com>
35556
35557         * doc/gnulib.texi (Windows sockets): Add.
35558
35559 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
35560
35561         * lib/read-file.c (fread_file): Start with buffer allocation of
35562         0 bytes rather than 1 byte; this simplifies the code.
35563         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
35564         code to free buffer and save/restore errno.
35565         (internal_read_file): Remove unused local.
35566
35567 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
35568
35569         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
35570         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
35571         Problem reported by Denis Excoffier in
35572         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
35573
35574 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
35575
35576         * modules/sys_socket, modules/socklen: Include sys/types since
35577         FreeBSD 4.x's sys/socket.h needs it.
35578
35579 2006-06-19  Simon Josefsson  <jas@extundo.com>
35580
35581         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
35582
35583 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
35584
35585         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
35586
35587 2006-06-19  Bruno Haible  <bruno@clisp.org>
35588
35589         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
35590         and FULL_PATH_INTTYPES_H in angle brackets.
35591         Reported by Mark D. Baushke <mdb@gnu.org>.
35592
35593 2006-06-17  Eric Blake  <ebb9@byu.net>
35594
35595         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
35596         errno.
35597
35598 2006-06-17  Bruno Haible  <bruno@clisp.org>
35599
35600         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
35601         <sys/inttypes.h>.
35602
35603 2006-06-17  Bruno Haible  <bruno@clisp.org>
35604
35605         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
35606         whether errno is declared. Assume <errno.h> declares errno.
35607
35608 2006-06-17  Bruno Haible  <bruno@clisp.org>
35609
35610         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
35611
35612 2006-06-17  Bruno Haible  <bruno@clisp.org>
35613
35614         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
35615         problem on Solaris 2.5.1.
35616
35617 2006-06-16  Eric Blake  <ebb9@byu.net>
35618
35619         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
35620         * lib/unicodeio.c [!defined errno]: Likewise.
35621         * lib/strtol.c [!defined errno]: Likewise.
35622         * lib/strtod.c [!defined errno]: Likewise.
35623
35624 2006-06-15  Eric Blake  <ebb9@byu.net>
35625
35626         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
35627
35628 2006-06-15  Eric Blake  <ebb9@byu.net>
35629
35630         * config/srclist.txt (ssize_t.m4): Lose sync.
35631
35632 2006-06-15  Bruno Haible  <bruno@clisp.org>
35633
35634         * modules/stdint (Files): Include m4/full-header-path.m4,
35635         m4/size_max.m4, m4/wchar_t.m4.
35636         (Makefile.am): Many more substitutions.
35637         * modules/stdint-tests: New file.
35638         * tests/test-stdint.c: New file.
35639
35640 2006-06-15  Bruno Haible  <bruno@clisp.org>
35641
35642         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
35643         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
35644         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
35645         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
35646         gl_CHECK_TYPE_SAME): New macros.
35647
35648 2006-06-15  Bruno Haible  <bruno@clisp.org>
35649
35650         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
35651
35652 2006-06-15  Bruno Haible  <bruno@clisp.org>
35653
35654         * lib/stdint_.h: Rewritten to be fully auto-configured.
35655         Fixes bug on HP-UX/IA64.
35656
35657 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
35658
35659         * lib/getdate.y (__attribute__): Don't define if already defined.
35660         Problem reported by Larry Jones.
35661         * lib/utimens.c (__attribute__): Likewise.
35662
35663 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
35664
35665         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
35666         reported by Andreas Schwab.
35667
35668 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35669             Bruno Haible  <bruno@clisp.org>
35670
35671         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
35672         check for the declaration of strnlen and a run test that exposes the
35673         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
35674         rpl_strndup.
35675
35676 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35677             Bruno Haible  <bruno@clisp.org>
35678
35679         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
35680
35681 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35682
35683         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
35684         compile test, for Tru64 4.0D.
35685
35686 2006-05-28  Karl Berry  <karl@gnu.org>
35687
35688         * config/srclist.txt (printf-args.c): lose sync.
35689
35690 2006-05-26  Martin Lambers  <marlam@marlam.de>
35691
35692         * lib/getpass.c: Updates the test for the native W32 API, and adds
35693         missing includes, thus fixing compilation warnings.
35694
35695 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
35696
35697         * lib/exclude.c (exclude_fnmatch): New function.
35698         (excluded_file_name): Call exclude_fnmatch.
35699         * lib/exclude.h (excluded_file_name): New prototype
35700
35701 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
35702
35703         * lib/tempname.c (small_open, large_open): New macros.
35704         (__open, __open64) [!_LIBC]: Remove.
35705         (__gen_tempname): Use small_open and large_open instead of __open
35706         and __open64.  This fixes a portability bug on HP-UX 11.11i
35707         reported by Simon Wing-Tang in
35708         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
35709
35710 2006-05-24  Bruno Haible  <bruno@clisp.org>
35711
35712         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
35713         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
35714         Reported by Thorsten Maerz <torte@netztorte.de> via
35715         Aaron Stone <aaron@serendipity.cx>.
35716
35717 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
35718
35719         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
35720         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
35721         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
35722         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
35723         not really conditional on the cache.
35724         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
35725
35726 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
35727
35728         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
35729         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
35730         (my_usleep): Don't mishandle maximum value.
35731
35732 2006-05-19  Jim Meyering  <jim@meyering.net>
35733
35734         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
35735
35736 2006-05-17  Bruno Haible  <bruno@clisp.org>
35737
35738         Cygwin portability.
35739         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
35740
35741 2006-05-17  Bruno Haible  <bruno@clisp.org>
35742
35743         * lib/stdint_.h: Fix recognition of Cygwin.
35744
35745 2006-05-15  Bruno Haible  <bruno@clisp.org>
35746
35747         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
35748         on libtool patch by Ralf Wildenhues.
35749
35750 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
35751
35752         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
35753         test for C99 conformance; (bool) 0.5 is an integer constant
35754         expression, but (bool) -0.5 is not.  Problem reported by Fedor
35755         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
35756
35757 2006-05-11  Simon Josefsson  <jas@extundo.com>
35758
35759         * m4/xvasprintf.m4: Fix obvious typo.
35760
35761 2006-05-11  Jim Meyering  <jim@meyering.net>
35762
35763         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
35764         James Lemley.
35765
35766 2006-05-10  Simon Josefsson  <jas@extundo.com>
35767
35768         * lib/md4.c: Typo fix, update copyright years.
35769         (K1, K2): Don't use L because it turn computations into 64-bit on
35770         64-bit platforms.
35771
35772 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
35773
35774         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
35775         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
35776         unwanted sign propagation, e.g., on hosts with 64-bit int.
35777         There still are some problems with reeelly weird theoretical hosts
35778         (e.g., 33-bit int) but it's not worth worrying about now.
35779         * lib/sha1.c (rol): Likewise.
35780         (K1, K2, K3, K4): Remove unnecessary L suffix.
35781
35782 2006-05-10  Bruno Haible  <bruno@clisp.org>
35783
35784         * lib/des.c: Cast to avoid warnings.
35785
35786 2006-05-09  Bruno Haible  <bruno@clisp.org>
35787
35788         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
35789         (Depends-on): Depend also on xsize, stdarg.
35790         (configure.ac): Add gl_XVASPRINTF.
35791
35792 2006-05-09  Bruno Haible  <bruno@clisp.org>
35793
35794         * m4/xvasprintf.m4: New file.
35795
35796 2006-05-09  Bruno Haible  <bruno@clisp.org>
35797
35798         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
35799         (EOVERFLOW): Define fallback value.
35800         (xstrcat): New function.
35801         (xvasprintf): Recognize the special case of a string concatenation.
35802
35803 2006-05-08  Eric Blake  <ebb9@byu.net>
35804
35805         * gnulib-tool (func_version): Base copyright year on CVS date.
35806         (func_emit_copyright_notice): New function.
35807         (func_emit_lib_Makefile_am): Use it.
35808         (func_emit_tests_Makefile_am): Likewise.
35809         (func_import): Likewise.
35810
35811 2006-05-08  Bruno Haible  <bruno@clisp.org>
35812
35813         * modules/stdarg: New file.
35814         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
35815
35816 2006-05-08  Bruno Haible  <bruno@clisp.org>
35817
35818         * m4/stdarg.m4: New file, from GNU gettext.
35819
35820 2006-05-08  Bruno Haible  <bruno@clisp.org>
35821
35822         * config/srclist.txt (build-aux/config.rpath): different from latest
35823         release.
35824
35825 2006-05-08  Bruno Haible  <bruno@clisp.org>
35826
35827         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
35828
35829 2006-05-05  Jim Meyering  <jim@meyering.net>
35830
35831         * m4/warning.m4: New file, derived from bison's file by the same name.
35832
35833 2006-05-03  Bruno Haible  <bruno@clisp.org>
35834
35835         * lib/stdint_.h: Shorter URL.
35836         * lib/inttypes.h: Likewise.
35837
35838 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
35839
35840         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
35841
35842 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
35843
35844         * lib/verify.h: Document the internals better.  Most of this change
35845         was written by Bruno Haible.
35846
35847 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
35848
35849         * doc/verify.texi: New file, partly based on a proposal by
35850         Bruno Haible.
35851
35852 2006-05-02  Bruno Haible  <bruno@clisp.org>
35853
35854         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
35855         test from here...
35856         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
35857
35858 2006-04-29  Bruno Haible  <bruno@clisp.org>
35859
35860         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
35861         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
35862
35863 2006-04-29  Bruno Haible  <bruno@clisp.org>
35864
35865         * gnulib-tool: Make --update option actually work.
35866
35867 2006-04-29  Bruno Haible  <bruno@clisp.org>
35868
35869         * doc/gcd.texi: New file.
35870         * doc/gnulib.texi: Include it.
35871
35872 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
35873
35874         * lib/getdate.y (get_date): When adding relative date, start with the
35875         initial time, not with the result of the first mktime call.
35876
35877 2006-04-25  Bruno Haible  <bruno@clisp.org>
35878
35879         * gnulib-tool (func_import): Output the include directives in three
35880         blocks, sorted separately.
35881         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35882
35883 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
35884
35885         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
35886         to define main with arguments, for C++.  Reported by Eric Blake.
35887         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
35888         Prefer 'int main ()' to 'int main (void)', for C++.
35889         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
35890         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
35891         for 'main', for C99 and C++.
35892
35893 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
35894
35895         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
35896         Don't assume that exit status -1 is valid.
35897         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
35898         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
35899         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
35900         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
35901         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
35902         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
35903         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
35904         functions can be used without declaring them, or that you can
35905         exit with status -1.
35906         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
35907
35908 2006-04-24  Karl Berry  <karl@gnu.org>
35909
35910         * config/srclist.txt (longdouble.m4): sync lost.
35911
35912 2006-04-24  Eric Blake  <ebb9@byu.net>
35913
35914         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
35915
35916 2006-04-24  Bruno Haible  <bruno@clisp.org>
35917
35918         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
35919         poll() implementation in AIX.
35920         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35921
35922 2006-04-24  Bruno Haible  <bruno@clisp.org>
35923
35924         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
35925         assigned exactly once.
35926
35927 2006-04-23  Claudio Fontana  <claudio@gnu.org>
35928             Bruno Haible  <bruno@clisp.org>
35929
35930         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
35931         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
35932         for AM_CPPFLAGS.
35933
35934 2006-04-23  Bruno Haible  <bruno@clisp.org>
35935
35936         * modules/copy-file: Depend on unistd.
35937         * modules/execute: Likewise.
35938         * modules/fatal-signal: Likewise.
35939         * modules/findprog: Likewise.
35940         * modules/mkdtemp : Likewise.
35941         * modules/pipe: Likewise.
35942         * modules/wait-process: Likewise.
35943
35944 2006-04-23  Bruno Haible  <bruno@clisp.org>
35945
35946         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
35947         condition was already detected.
35948         Reported by Ben Pfaff <blp@cs.stanford.edu>.
35949
35950 2006-04-23  Bruno Haible  <bruno@clisp.org>
35951
35952         * lib/copy-file.c: Include <unistd.h> unconditionally.
35953         * lib/execute.c: Likewise.
35954         * lib/fatal-signal.c: Likewise.
35955         * lib/findprog.c: Likewise.
35956         * lib/mkdtemp.c: Likewise.
35957         * lib/pipe.h: Likewise.
35958         * lib/pipe.c: Likewise.
35959         * lib/wait-process.h: Likewise.
35960
35961 2006-04-23  Bruno Haible  <bruno@clisp.org>
35962
35963         * gnulib-tool (func_usage): Fix --import description. Document
35964         --update.
35965         (func_import): Create temporary file in a temporary directory, if
35966         --dry-run is specified. Silence errors from 'grep' when there are no
35967         m4 files in $m4dir.
35968         (func_create_testdir): Silence errors from 'grep' when there are no
35969         m4 files in $m4dir.
35970         Reported by Karl Berry <karl@freefriends.org>.
35971
35972 2006-04-20  Bruno Haible  <bruno@clisp.org>
35973
35974         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
35975         one argument, so that the code will be portable to Autoconf 2.60.
35976         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
35977         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
35978         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
35979
35980 2006-04-19  Derek Price  <derek@ximbiot.com>
35981             Eric Blake  <ebb9@byu.net>
35982
35983         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
35984         rather than "/full/path.h".  Update comment to match.  Shorten &
35985         generalize m4_translit call via AS_TR_CPP.
35986
35987 2006-04-19  Derek Price  <derek@ximbiot.com>
35988             Eric Blake  <ebb9@byu.net>
35989
35990         * lib/inttypes.h: Correct grammar in comment.
35991
35992 2006-04-18  Derek Price  <derek@ximbiot.com>
35993             Paul Eggert  <eggert@cs.ucla.edu>
35994
35995         * modules/inttypes: New file.
35996         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
35997
35998 2006-04-18  Derek Price  <derek@ximbiot.com>
35999             Paul Eggert  <eggert@cs.ucla.edu>
36000
36001         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
36002         New files.
36003
36004 2006-04-18  Derek Price  <derek@ximbiot.com>
36005             Paul Eggert  <eggert@cs.ucla.edu>
36006
36007         * lib/inttypes.h: New file.
36008         * lib/strtoimax.c: Assume <inttypes.h>.
36009
36010 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
36011
36012         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
36013         isn't mounted.  Problem reported by Kir Kolyshkin.
36014
36015 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
36016
36017         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
36018         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
36019         Derek R. Price.
36020         * lib/regex.h (RE_DUP_MAX): Update comment to match current
36021         implementation.
36022
36023 2006-04-12  Eric Blake  <ebb9@byu.net>
36024
36025         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
36026         is now done automatically by the corresponding Autoconf macro.
36027
36028 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
36029
36030         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
36031         time_r.h.
36032
36033 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
36034
36035         Merge regex changes from libc, removing some of our
36036         POSIX-conformance changes that were rejected and redoing them in a
36037         less-intrusive way.
36038
36039         * lib/regcomp.c (re_compile_internal, init_dfa):
36040         Length arg is now size_t, not Idx.  All uses changed.
36041         (peek_token): Forward decl now says internal_function.
36042         (__re_error_msgid, __re_error_msgid_idx):
36043         Now static rather than extern with attribute_hidden.
36044         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
36045         For some reason libc prefers K&R style defns for external functions.
36046         (regerror) [!defined _LIBC]: Likewise.
36047         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
36048         (seek_collating_symbol_entry, lookup_collation_sequence_value):
36049         (build_range_exp, build_collating_symbol):
36050         Use K&R-style defn.
36051         (re_compile_fastmap): Use '\0' to memset, not 0.
36052         (utf8_sb_map): Make the calculations more obvious.
36053         (init_dfa, parse_bracket_exp, build_charclass_op):
36054         Call calloc and cast result, as glibc does.
36055         (init_word_char, fetch_token, peek_token, peek_token_bracket):
36056         (build_range_exp, build_collating_symbol):
36057         Now internal functions.
36058
36059         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
36060
36061         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
36062         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
36063         Don't depend on VMS; depend on __VMS instead, for POSIX
36064         namespace cleanness.
36065         (regoff_t): Define to ssize_t, not long int.
36066
36067         Remove the REG_ macros named below.  Instead, make the old names
36068         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
36069         __USE_GNU_REGEX.
36070         (REG_BACKSLASH_ESCAPE_IN_LISTS):
36071         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
36072         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
36073         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
36074         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
36075         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
36076         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
36077         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
36078         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
36079         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
36080         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
36081         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
36082         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
36083         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
36084         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
36085         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
36086         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
36087         (REG_NREGS):
36088         Remove.  All uses replaced by the old RE_* names.
36089         (RE_BACKSLASH_ESCAPE_IN_LISTS):
36090         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
36091         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
36092         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
36093         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
36094         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
36095         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
36096         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
36097         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
36098         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
36099         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
36100         Don't bother having these macros be independent of each others'
36101         values, since they no longer exist in the POSIX name space.
36102
36103         Rename the following member names back to their old names,
36104         unless !__USE_GNU_REGEX.  All uses changed back.
36105         (buffer): Renamed from re_buffer.
36106         (allocated): Renamed from re_allocated.
36107         (used): Renamed from re_used.
36108         (syntax): Renamed from re_syntax.
36109         (fastmap): Renamed from re_fastmap.
36110         (translate): Renamed from re_translate.
36111         (can_be_null): Renamed from re_can_be_null.
36112         (regs_allocated): Renamed from re_regs_allocated.
36113         (fastmap_accurate): Renamed from re_fastmap_accurate.
36114         (no_sub): Renamed from re_no_sub.
36115         (not_bol): Renamed from re_not_bol.
36116         (not_eol): Renamed from re_not_eol.
36117         (newline_anchor): Renamed from re_newline_anchor.
36118         (num_regs): Renamed from rm_num_regs.
36119         (start): Renamed from rm_start.
36120         (end): Renamed from rm_end.
36121
36122         (free_state): Move up a bit.
36123
36124         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
36125         #define to be empty.
36126         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
36127         when that is what is intended.
36128         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
36129         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
36130         (MAX): New macro.
36131         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
36132         All uses changed back to re_malloc, etc.  It's now the caller's
36133         responsibility to check for overflow; all callers changed.
36134         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
36135         (re_x2nrealloc): Remove.
36136         (free_state): Remove decl.
36137
36138         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
36139         (re_set_registers, re_exec):
36140         Use K&R-style defn.
36141
36142         2006-01-31  Roland McGrath  <roland@redhat.com>
36143
36144         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
36145         Reported by Mike Frysinger <vapier@gentoo.org>.
36146
36147         2006-01-15  Andreas Jaeger  <aj@suse.de>
36148
36149         [BZ #1950]
36150         * lib/regex_internal.c (re_string_reconstruct): Adjust for
36151         build_wcs_upper_buffer change.
36152         (build_wcs_upper_buffer): Change return type.
36153
36154         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
36155
36156         * lib/regex_internal.h: Include <stdint.h> if available.
36157
36158         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
36159
36160         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
36161
36162         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
36163
36164         * lib/regcomp.c: Adjust for changed secondary hash function.
36165
36166         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
36167
36168         * lib/regex.h: Pretty printing.
36169         Clean up namespace a bit.
36170
36171         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
36172
36173         * lib/regexec.c (update_cur_sifted_state, check_arrival,
36174         check_arrival_add_next_nodes): Avoid using uninitialized variable.
36175
36176         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
36177                     Ulrich Drepper  <drepper@redhat.com>
36178
36179         [BZ #1302]
36180         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
36181         changed.
36182         (bitset_word_t): Renamed from bitset_word.  All uses changed.
36183
36184         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
36185
36186         [BZ #281]
36187         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
36188         * lib/regcomp.c: Remove unnecessary uses of
36189         unsigned RE_TRANSLATE_TYPE.
36190         * lib/regex_internal.h: Likewise.
36191         * lib/regex_internal.c: Likewise.
36192         * lib/regexec.c: Likewise.
36193         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
36194
36195         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
36196
36197         * lib/regexec.c (find_recover_state): Remove unnecessary
36198         initialization.
36199         (transit_state_bkref): Make DFA a const pointer.
36200         (get_subexp): Likewise.
36201         (check_arrival): Likewise.
36202         (update_cur_sifted_state): Likewise.
36203         (re_search_internal): Likewise.
36204         (prune_impossible_nodes): Likewise.
36205         (acquire_init_state_context): Likewise.
36206         (proceed_next_node): Likewise.
36207         (set_regs): Likewise.
36208         (free_fail_stack_return): Likewise.
36209         (check_arrival_expand_ecl): Mark DFA parameter as const.
36210         (check_arrival_expand_ecl_sub): Likewise.
36211         (check_subexp_limits): Likewise.
36212         (sub_epsilon_src_nodes):  Likewise.
36213         (add_epsilon_src_nodes):  Likewise.
36214         (merge_state_array): Likewise.
36215         (update_regs): Likewise.
36216         (build_trtable): Likewise.
36217         (sift_states_backward): Mark MCTX parameter as const.
36218         (build_sifted_states): Likewise.
36219         (update_cur_sifted_state): Likewise.
36220         (sift_states_mkref): Likewise.
36221         (check_arrival_expand_ecl): Mark eclosure as const.
36222         (check_dst_limits_calc_pos_1): Likewise.
36223         * lib/regex_internal.h (re_match_context_t): Make dfa a const
36224         pointer.
36225
36226         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
36227
36228         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
36229         (transit_state_sb): Likewise.
36230         (transit_state_mb): Likewise.
36231         (sift_states_iter_mb): Likewise.
36232         (check_arrival_add_next_nodes): Likewise.
36233         (check_node_accept_bytes): Change first parameter to pointer-to-const.
36234         [_LIBC] (re_search_2_stub): Use mempcpy.
36235
36236         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
36237         mbrtowc for very simple UTF-8 case.
36238
36239         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
36240         a pointer-to-const.
36241         (re_acquire_state_context): Likewise.
36242         * lib/regex_internal.h: Adjust prototypes.
36243
36244         * lib/regex.c: Prevent using C++ compilers.
36245
36246         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
36247         (re_acquire_state_context): Likewise.
36248
36249 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
36250
36251         * modules/regex (Depends-on): Add ssize_t.
36252
36253 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
36254
36255         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
36256         translation table.
36257
36258 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
36259
36260         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
36261
36262 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
36263             Bruno Haible  <bruno@clisp.org>
36264
36265         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
36266         <sys/types.h> and <inttypes.h>.
36267
36268 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36269
36270         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
36271         `__error_t_defined', so argp.h will not typedef the former.
36272
36273 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
36274
36275         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
36276         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
36277         glibc names.  Even if glibc is changed to conform to POSIX, the
36278         traditional names will be available anyway, since regex depends on
36279         the extensions module.  Also, fix a longstanding typo in the
36280         implementation of Spencer ERE test #75 from grep 2.3.  Problems
36281         reported by Emanuele Giaquinta.  Also, change sense of cached
36282         variable, so that the message makes sense.
36283
36284 2006-03-24  Simon Josefsson  <jas@extundo.com>
36285
36286         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
36287         including some doc fixes.
36288         (base64_encode_alloc): Fix +1 bug on allocation failures.
36289
36290 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36291
36292         * lib/base64.c (base64_encode): Do not read past end of array with
36293         unsanitized input on systems with CHAR_BIT > 8.
36294
36295 2006-03-24  Eric Blake  <ebb9@byu.net>
36296
36297         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
36298
36299 2006-03-22  Karl Berry  <karl@gnu.org>
36300
36301         * config/srclist.txt (*setenv.[ch]): get from coreutils.
36302         * config/srclistvars.sh (COREUTILS): new var.
36303
36304 2006-03-17  Jim Meyering  <jim@meyering.net>
36305
36306         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
36307         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
36308
36309 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
36310
36311         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
36312         no longer needs it.  Instead, check that regoff_t is as least
36313         as wide as ptrdiff_t.
36314
36315         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
36316         so that our regex.h stays compatible with the installed regex.
36317         This is helpful for installers who configure --without-included-regex.
36318         Problem reported by Emanuele Giaquinta.
36319
36320 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
36321
36322         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
36323         Typedef to long int, not to off_, as POSIX will likely change
36324         in that direction.
36325
36326 2006-03-15  Eric Blake  <ebb9@byu.net>
36327
36328         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
36329
36330 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
36331
36332         * lib/argp-help.c (validate_uparams): Fix typo
36333         * lib/argp-parse.c (argp_default_options): Consistently begin help
36334         messages with a lowercase letter.
36335
36336 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
36337
36338         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
36339         overrun buffers and shouldn't be used (much as gets shouldn't be
36340         used).
36341         * lib/time_r.c (asctime_r, ctime_r): Likewise.
36342
36343 2006-03-08  Simon Josefsson  <jas@extundo.com>
36344
36345         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
36346         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36347
36348 2006-03-08  Simon Josefsson  <jas@extundo.com>
36349
36350         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
36351         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36352
36353 2006-03-08  Simon Josefsson  <jas@extundo.com>
36354
36355         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
36356         signal that configure disabled the device.
36357
36358 2006-03-08  Simon Josefsson  <jas@extundo.com>
36359
36360         * build-aux/maint.mk: Fix refresh-po, to handle no translated
36361         languages.
36362
36363 2006-03-07  Simon Josefsson  <jas@extundo.com>
36364
36365         * modules/getopt (Depends-on): Add unistd.
36366
36367         * modules/unistd: New file.
36368
36369 2006-03-07  Simon Josefsson  <jas@extundo.com>
36370
36371         * modules/gc-random: New file.
36372
36373 2006-03-07  Simon Josefsson  <jas@extundo.com>
36374
36375         * m4/unistd_h.m4: New file.
36376
36377 2006-03-07  Simon Josefsson  <jas@extundo.com>
36378
36379         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
36380         test to be side-effect free by storing the result in the cache
36381         variable gl_cv_lib_readline, and moving the assignment of
36382         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
36383         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36384
36385 2006-03-07  Simon Josefsson  <jas@extundo.com>
36386
36387         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
36388         error on missing devices (the functions will return an error).
36389
36390         * m4/gc.m4: Move random stuff to gc-random.m4
36391
36392 2006-03-07  Simon Josefsson  <jas@extundo.com>
36393
36394         * lib/unistd_.h: New file.
36395
36396 2006-03-07  Simon Josefsson  <jas@extundo.com>
36397
36398         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
36399
36400 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
36401
36402         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
36403         Problem reported by Juan Manuel Guerrero.
36404
36405 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
36406
36407         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
36408         the unistd module.
36409         * lib/getlogin_r.c: Likewise.
36410         * lib/getlogin_r.h: Likewise.
36411         * lib/glob.c: Likewise.
36412         * lib/pagealign_alloc.c: Likewise.
36413         * lib/unistd_.h: Remove; no longer needed.
36414
36415 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
36416
36417         * MODULES.html.sh (Support for systems lacking POSIX:2001):
36418         Add unistd.
36419         * modules/c-stack (Depends-on): Add unistd.
36420         * modules/getlogin_r: Likewise.
36421         * modules/glob: Likewise.
36422         * modules/pagealign_alloc: Likewise.
36423         * modules/unistd (Files): Remove lib/unistd_.h.
36424         (EXTRA_DIST): Remove.
36425         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
36426         need unistd_.h.
36427         (MOSTLYCLEANFILES): Remove unistd.h-t.
36428
36429 2006-03-03  Simon Josefsson  <jas@extundo.com>
36430
36431         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
36432
36433 2006-03-03  Simon Josefsson  <jas@extundo.com>
36434
36435         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
36436         libidn and bison.
36437
36438 2006-03-03  Simon Josefsson  <jas@extundo.com>
36439
36440         * build-aux/maint.mk: Add indent target.
36441
36442 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
36443
36444         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
36445         our replacement poll.h in any case, to avoid a differing
36446         declaration from a system header.  Seen on AIX.
36447
36448 2006-03-01  Simon Josefsson  <jas@extundo.com>
36449
36450         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
36451         <kasal@ucw.cz>.
36452
36453 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
36454
36455         * modules/gettime (Depends-on): Add extensions module.
36456         * modules/nanosleep (Depends-on): Likewise.
36457         * modules/settime (Depends-on): Likewise.
36458
36459 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
36460
36461         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
36462         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
36463         pedantically.
36464         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
36465         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
36466
36467         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
36468         not "==".  Reported by Ralf Wildenhues.
36469
36470 2006-03-01  Karl Berry  <karl@gnu.org>
36471
36472         * doc/Copyright/request-*: new files, synced from gnuorg.
36473
36474 2006-03-01  Karl Berry  <karl@gnu.org>
36475
36476         * config/srclist.txt (Copyright/*): new entries.
36477
36478 2006-02-28  Simon Josefsson  <jas@extundo.com>
36479
36480         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
36481
36482 2006-02-27  Simon Josefsson  <jas@extundo.com>
36483
36484         * lib/base64.h: Indent #define's.  From Jim Meyering
36485         <jim@meyering.net>.
36486
36487 2006-02-27  Jim Meyering  <jim@meyering.net>
36488
36489         Revert the change of 2006-02-24, so these files can continue
36490         to be sync'd from gettext.
36491         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
36492         of `config.h'.
36493
36494 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
36495
36496         * modules/intprops: New file.
36497         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
36498         Add intprops.
36499         * modules/getloadavg (Files): Remove lib/intprops.h.
36500         (Depends-on): Add intprops.
36501         * modules/human: Likewise.
36502         * modules/inttostr: Likewise.
36503         * modules/openat: Likewise.
36504         * modules/sig2str: Likewise.
36505         * modules/userspec: Likewise.
36506         * modules/utimecmp: Likewise.
36507         * modules/xnanosleep: Likewise.
36508         * modules/xstrtol: Likewise.
36509
36510 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
36511
36512         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
36513         * modules/lock-tests (TESTS): Use $(EXEEXT).
36514         * modules/tls-tests: Likewise.
36515         * modules/argp-tests: Likewise.
36516         (check_PROGRAMS): New var, replacing...
36517         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
36518
36519 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36520
36521         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
36522         `config.h'.
36523
36524 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
36525
36526         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
36527
36528 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36529
36530         Sync from coreutils.
36531         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
36532         gl_CHDIR_SAFER.
36533
36534 2006-02-22  Jim Meyering  <jim@meyering.net>
36535
36536         Sync from coreutils.
36537         * m4/chdir-safer.m4: New file.
36538
36539 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
36540
36541         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
36542         AT_FDCWD exceeds INT_MAX.
36543         * lib/openat.h (AT_FDCWD): Likewise.
36544
36545 2006-02-17  Eric Blake  <address@hidden>
36546
36547         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
36548
36549 2006-02-16  Simon Josefsson  <jas@extundo.com>
36550
36551         * modules/getaddrinfo (Depends-on): Add sys_socket.
36552
36553 2006-02-15  Simon Josefsson  <jas@extundo.com>
36554
36555         * build-aux/maint.mk: Add dsyntax-check rule.
36556
36557 2006-02-15  Eric Blake  <ebb9@byu.net>
36558
36559         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
36560         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
36561         'present but cannot compile' warnings on cygwin.
36562         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
36563         use ws2tcpip.h if sys/socket.h works.
36564         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
36565         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
36566
36567 2006-02-14  Simon Josefsson  <jas@extundo.com>
36568
36569         * modules/maintainer-makefile (Files): Rename.
36570
36571         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
36572         and (the local) Makefile.cfg to maint-cfg.mk.
36573
36574         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
36575         to the latter.
36576
36577         * modules/maintainer-makefile: New module.
36578
36579         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
36580         severaly stripped to make it possible to build it up from scratch
36581         with reliable tests.
36582
36583         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
36584         fixes to permit overriding the default actions when configure and
36585         makefile are not available.
36586
36587 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
36588
36589         Sync from coreutils.
36590         * modules/lstat (Depends-on): Don't depend on xalloc.
36591         (License): Change from GPL to LGPL, since this is now simply a
36592         replacement for a libc function.
36593
36594 2006-02-14  Jim Meyering  <jim@meyering.net>
36595
36596         Sync from coreutils.
36597
36598         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
36599         failure on deficient systems, and simplify gnulib lgpl dependencies.
36600         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
36601         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
36602
36603         * lib/xalloc-die.c: Remove unused definition of N_.
36604
36605 2006-02-14  Jim Meyering  <jim@meyering.net>
36606
36607         Sync from coreutils.
36608         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
36609         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
36610         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
36611         double-quote uses of that variable, to accommodate the rare case in
36612         which getmntent is available in none of the libraries checked.  This
36613         happens at least on FreeBSD 5.0.
36614
36615 2006-02-13  Simon Josefsson  <jas@extundo.com>
36616
36617         * gnulib-tool (Usage): Fix --import, from
36618         karl@freefriends.org (Karl Berry).
36619
36620 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
36621
36622         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
36623
36624 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
36625
36626         * lib/argp-namefrob.h: Restore changes accidentally lost during the
36627         "autoupdate" on 2005-12-12.
36628
36629 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
36630
36631         * modules/closeout (Depends-on): Remove atexit.
36632
36633 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
36634
36635         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
36636         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
36637
36638 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
36639
36640         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
36641         __EXTENSIONS__ if this causes compilation to fail.  Problem
36642         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
36643         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
36644
36645 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
36646
36647         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
36648         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
36649         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
36650         All uses changed.
36651
36652 2006-01-26  Simon Josefsson  <jas@extundo.com>
36653
36654         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
36655         prototype is visible on mingw32.
36656
36657         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
36658         for mingw32.
36659
36660         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
36661         mingw32).
36662
36663 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
36664
36665         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
36666         attempt to open for write; this always fails, at least on POSIX
36667         hosts.  This reinstates the 2006-01-09 change, which was
36668         inadvertently removed.
36669
36670 2006-01-26  Bruno Haible  <bruno@clisp.org>
36671
36672         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
36673         Reported by Paul Eggert.
36674
36675 2006-01-26  Bruno Haible  <bruno@clisp.org>
36676             Paul Eggert  <eggert@cs.ucla.edu>
36677
36678         * lib/stdbool_.h (_Bool)
36679         [(! (defined __cplusplus || defined __BEOS__)
36680           && !defined __GNUC__
36681           && !(defined __HP_cc || defined __xlc__
36682                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
36683                || defined __sgi))]:
36684         #define to signed char in these cases too; this simplifies
36685         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
36686         etc., separately) and makes it more conservative.
36687
36688 2006-01-25  Simon Josefsson  <jas@extundo.com>
36689
36690         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
36691         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
36692         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
36693
36694 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
36695
36696         * lib/argp-namefrob.h: Bugfix. Remove stray #
36697
36698 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
36699
36700         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
36701         so that we test the test.
36702         Check for yet another HP-UX cc bug involving *bool |= bool.
36703
36704 2006-01-25  Karl Berry  <karl@gnu.org>
36705
36706         * config/srclist.txt (vasnprintf.c): sync lost.
36707
36708 2006-01-25  Jim Meyering  <jim@meyering.net>
36709
36710         Sync from the stable (b5) branch of coreutils:
36711
36712         * lib/fts.c (fts_children): Don't let close() clobber errno from
36713         failed fchdir().
36714
36715         * lib/fts.c (fts_stat): When following a symlink-to-directory,
36716         don't necessarily interpret stat-fails+lstat-succeeds as indicating
36717         a dangling symlink.  That can also happen at least for ELOOP.
36718         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
36719         FYI, this bug predates the inclusion of fts.c in coreutils.
36720
36721         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
36722         in their own block, so pre-c99 compilers don't object.
36723
36724         Avoid the double-free (first in fts_read, second in fts_close) that
36725         would occur when an `active' directory is made inaccessible (e.g.,
36726         via chmod a-x) during a traversal.
36727         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
36728         before returning.  Reproduce this failure by
36729         mkdir -p a/b; cd a; chmod a-x . b
36730         Reported by Stavros Passas.
36731
36732 2006-01-25  Jim Meyering  <jim@meyering.net>
36733
36734         * lib/fileblocks.c: Remove more useless parentheses.
36735         * lib/readutmp.h: Likewise.
36736
36737 2006-01-25  Bruno Haible  <bruno@clisp.org>
36738
36739         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
36740         warnings.
36741         Reported by Paul Eggert.
36742
36743 2006-01-25  Bruno Haible  <bruno@clisp.org>
36744
36745         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
36746         rid of a trap command. For Solaris sh.
36747         Reported by Mark D. Baushke <mdb@gnu.org>.
36748
36749 2006-01-24  Simon Josefsson  <jas@extundo.com>
36750
36751         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
36752         Bruno.
36753
36754 2006-01-24  Karl Berry  <karl@gnu.org>
36755
36756         * config/srclist.txt (argp-namefrob.h): sync lost.
36757
36758 2006-01-24  Jim Meyering  <jim@meyering.net>
36759
36760         * modules/openat (Files): Add lib/intprops.h.
36761         From Mark D. Baushke.
36762
36763 2006-01-24  Jim Meyering  <jim@meyering.net>
36764
36765         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
36766         Reported by Mark D. Baushke.
36767
36768 2006-01-24  Jim Meyering  <jim@meyering.net>
36769
36770         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
36771
36772 2006-01-24  Bruno Haible  <bruno@clisp.org>
36773
36774         * modules/strnlen (Maintainer): Change from glibc to all.
36775
36776 2006-01-24  Bruno Haible  <bruno@clisp.org>
36777
36778         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
36779         Patch by Paul Eggert.
36780
36781 2006-01-24  Bruno Haible  <bruno@clisp.org>
36782
36783         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
36784         already has it.
36785         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
36786         2005-11-26.
36787
36788         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
36789         'signed char' to avoid problems with the built-in _Bool type.
36790         Reported by Paul Eggert on 2005-11-26.
36791
36792 2006-01-24  Bruno Haible  <bruno@clisp.org>
36793
36794         * gnulib-tool (func_import): Avoid constructing complicated sed
36795         expressions inside backquote.
36796         Report and solution by Mark D. Baushke <mdb@gnu.org>.
36797
36798 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
36799
36800         These changes imported from libc.
36801         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
36802         test and two separate function calls.
36803         * lib/strndup.c (__strndup): Add libc_hidden_def.
36804
36805 2006-01-23  Simon Josefsson  <jas@extundo.com>
36806
36807         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
36808         Remove the test_*_SOURCES variable: automake infers it by default.
36809         * modules/tls-tests: Likewise.
36810
36811 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
36812
36813         Work around porting bugs reported by Dieter in
36814         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
36815         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
36816         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
36817         Include "getopt.h" first, to check interface.
36818         (getenv): Declare only if defined HAVE_DECL_GETENV &&
36819         !HAVE_DECL_GETENV.
36820         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
36821         (__strndup): Revert to K&R-style function dfns, the glibc style.
36822         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
36823         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
36824         Include strnlen.h first, to get prototype properly.
36825         (strnlen): Renamed from __strnlen.
36826         Remove weak alias.
36827
36828 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
36829
36830         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
36831
36832 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
36833
36834         * config/srclist.txt: Adjust to reflect glibc reorganization.
36835         This affects only comments.
36836
36837 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
36838
36839          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
36840          Reported by Bruce Korb <bkorb@gnu.org>.
36841
36842 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
36843
36844         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
36845         to pacify gcc -Wswitch-default.
36846
36847 2006-01-22  Bruno Haible  <bruno@clisp.org>
36848
36849         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
36850         temporary buffer for sprintf, take into account the precision also
36851         for 'd', 'i', 'u', 'o', 'x', 'X'.
36852
36853 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
36854
36855         * modules/argp-tests: New module
36856         * tests/test-argp.c: New file
36857         * tests/test-argp-2.sh: New file
36858
36859 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
36860
36861         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
36862         (__argp_base_name): Removed
36863         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
36864         typo.
36865         (__argp_base_name): Provide macro definition or extern declaration
36866         depending on the configuration
36867
36868 2006-01-20  Simon Josefsson  <jas@extundo.com>
36869
36870         * modules/inet_ntop (Depends-on): Depend on sys_socket.
36871
36872 2006-01-20  Simon Josefsson  <jas@extundo.com>
36873
36874         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
36875
36876 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
36877
36878         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
36879         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
36880         Suggested by Bruno Haible.
36881
36882 2006-01-20  Karl Berry  <karl@gnu.org>
36883
36884         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
36885         until changes propagate, I guess.
36886
36887 2006-01-19  Simon Josefsson  <jas@extundo.com>
36888
36889         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
36890
36891 2006-01-19  Simon Josefsson  <jas@extundo.com>
36892
36893         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
36894
36895 2006-01-19  Simon Josefsson  <jas@extundo.com>
36896
36897         * gnulib-tool: Set check_PROGRAMS.
36898
36899         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
36900         modules/des-tests, modules/gc-arcfour-tests,
36901         modules/gc-arctwo-tests, modules/gc-des-tests,
36902         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
36903         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
36904         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
36905         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
36906         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
36907         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
36908         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
36909         test_*_SOURCES.
36910
36911 2006-01-18  Simon Josefsson  <jas@extundo.com>
36912
36913         * modules/socklen (Depends-on): Depend on sys_socket.
36914
36915 2006-01-18  Simon Josefsson  <jas@extundo.com>
36916
36917         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
36918         modules/des-tests, modules/gc-arcfour-tests,
36919         modules/gc-arctwo-tests, modules/gc-des-tests,
36920         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
36921         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
36922         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
36923         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
36924         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
36925         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
36926         $(EXEEXT) to automake TESTS variable, for mingw32.
36927
36928 2006-01-17  Simon Josefsson  <jas@extundo.com>
36929
36930         * modules/socklen (Include): Need sys/socket.h.
36931
36932 2006-01-17  Bruno Haible  <bruno@clisp.org>
36933
36934         * modules/ssize_t (Include): Add <sys/types.h>.
36935
36936 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
36937
36938         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
36939         it's not portable and it doesn't work with cross-compiles.
36940         Problem reported by Bruno Haible.  Fix missing-$ typo in
36941         'test "gl_cv_ignore_unused_libraries" ...' that prevented
36942         -zignore from being used with Sun's C compiler.
36943
36944 2006-01-12  Simon Josefsson  <jas@extundo.com>
36945
36946         * lib/base64.c: Fix warning, reported by Bruno Haible
36947         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
36948
36949 2006-01-12  Bruno Haible  <bruno@clisp.org>
36950
36951         * modules/ldd: New file.
36952         * build-aux/ldd.sh.in: New file.
36953         * MODULES.html.sh (Support for building libraries and executables): Add
36954         ldd.
36955
36956 2006-01-12  Bruno Haible  <bruno@clisp.org>
36957
36958         * m4/ldd.m4: New file.
36959
36960 2006-01-12  Bruno Haible  <bruno@clisp.org>
36961
36962         * gnulib-tool (func_import, func_create_testdir): Don't go into an
36963         endless loop while replacing $auxdir with build-aux.
36964
36965 2006-01-11  Simon Josefsson  <jas@extundo.com>
36966
36967         * lib/stdint_.h (SIZE_MAX): Add missing (.
36968
36969 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
36970
36971         Sync from coreutils.
36972         * lib/md5.c: Fix commentary typos.
36973         (alignof, UNALIGNED_P): No need for a GCC-specific version.
36974         * lib/md5.h (__attribute__): Remove; unused.
36975         * lib/sha1.c: Fix commentary to match md5 better.
36976         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
36977         so that we don't need to worry about alignment.  All uses changed.
36978         This merges the 2005-10-28 md5 change into sha1.
36979
36980 2006-01-11  Jim Meyering  <jim@meyering.net>
36981
36982         Sync from coreutils.
36983         * lib/md5.c (OP): Fix spacing.
36984
36985 2006-01-11  Bruno Haible  <bruno@clisp.org>
36986
36987         Ensure automatic ordering between gl_LOCK and gl_ARGP.
36988         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
36989         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
36990
36991 2006-01-11  Bruno Haible  <bruno@clisp.org>
36992
36993         Ensure automatic ordering between gl_LOCK and gl_ARGP.
36994         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
36995         the "early" section as well.
36996
36997 2006-01-11  Bruno Haible  <bruno@clisp.org>
36998
36999         Avoid "ar: no archive members specified" error on MacOS X.
37000         * gnulib-tool (func_modules_add_dummy): New function.
37001         (func_import, func_create_testdir): Invoke it.
37002
37003 2006-01-11  Bruno Haible  <bruno@clisp.org>
37004
37005         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
37006         with $auxdir in AC_CONFIG_FILES statements.
37007
37008 2006-01-11  Bruno Haible  <bruno@clisp.org>
37009
37010         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
37011         Initialize also noinst_HEADERS to empty.
37012
37013 2006-01-11  Bruno Haible  <bruno@clisp.org>
37014
37015         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
37016         variables.
37017         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
37018         autoreconf.
37019
37020 2006-01-11  Bruno Haible  <bruno@clisp.org>
37021
37022         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
37023         overridable by the user.
37024         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37025
37026 2006-01-10  Simon Josefsson  <jas@extundo.com>
37027
37028         * modules/sys_socket: New file.
37029
37030 2006-01-10  Simon Josefsson  <jas@extundo.com>
37031
37032         * m4/sys_socket_h.m4: New file.
37033
37034 2006-01-10  Simon Josefsson  <jas@extundo.com>
37035
37036         * lib/socket_.h: New file.
37037
37038 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
37039
37040         * modules/readutmp (Maintainer): Add myself.
37041
37042 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
37043
37044         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
37045         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
37046         People who are still concerned with buggy memcmp implementations
37047         can invoke gl_FUNC_MEMCMP themselves.
37048
37049 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
37050
37051         * lib/regex_internal.h (BITSET_WORD_BITS):
37052         Work around a bug in 64-bit PGC (before version 6.1-2), where the
37053         preprocessor mishandles large unsigned values as if they were signed.
37054         Problem reported by Claudio Fontana in
37055         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
37056
37057 2006-01-10  Jim Meyering  <jim@meyering.net>
37058
37059         Avoid the double-free (first in fts_read, second in fts_close) that
37060         would occur when an `active' directory is made inaccessible (e.g.,
37061         via chmod a-x) during a traversal.
37062         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
37063         before returning.  Reproduce this failure by
37064         mkdir -p a/b; cd a; chmod a-x . b
37065         Reported by Stavros Passas.
37066
37067         Sync from coreutils.
37068         * lib/sha1.c: Tweak grammar in a comment.
37069
37070 2006-01-10  Jim Meyering  <jim@meyering.net>
37071
37072         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
37073         Patch by Joerg Sonnenberger.
37074
37075 2006-01-10  Bruno Haible  <bruno@clisp.org>
37076
37077         * modules/readutmp: Depend on module free.
37078         * modules/strtok_r: Depend on module restrict.
37079
37080 2006-01-10  Bruno Haible  <bruno@clisp.org>
37081
37082         * modules/gettext (configure.ac): Add an invocation of
37083         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
37084
37085 2006-01-10  Bruno Haible  <bruno@clisp.org>
37086
37087         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
37088         Reported by Werner Lemberg <wl@gnu.org>.
37089
37090 2006-01-10  Bruno Haible  <bruno@clisp.org>
37091
37092         * lib/localcharset.c: Update from GNU gettext.
37093
37094 2006-01-10  Bruno Haible  <bruno@clisp.org>
37095
37096         * lib/argp.h (__const): Remove macro. Use const instead.
37097         * lib/argp-fmtstream.h (__const): Likewise.
37098         * lib/glob_.h (__const): Remove macro.
37099         * lib/glob-libc.h: Use const instead of __const.
37100
37101 2006-01-10  Bruno Haible  <bruno@clisp.org>
37102
37103         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
37104         variable.
37105         Needed to avoid an automake error regarding the 'gettext' module.
37106
37107 2006-01-09  Simon Josefsson  <jas@extundo.com>
37108
37109         * modules/inet_ntop (Depends-on): Add restrict.
37110
37111 2006-01-09  Simon Josefsson  <jas@extundo.com>
37112
37113         * modules/gc-rijndael-tests (License): Put under LGPL.
37114
37115         * modules/gc-des-tests (License): Likewise.
37116
37117         * modules/gc-arcfour-tests (License): Likewise.
37118
37119         * modules/gc-arctwo-tests (License): Likewise.
37120
37121         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
37122
37123         * modules/gc-hmac-sha1-tests (Files): Likewise.
37124
37125         * modules/gc-hmac-md5-tests (License): Likewise.
37126
37127         * modules/gc-sha1-tests (License): Likewise.
37128
37129         * modules/gc-md5-tests (License): Likewise.
37130
37131         * modules/gc-md4-tests (License): Likewise.
37132
37133         * modules/gc-md2-tests (License): Likewise.
37134
37135         * modules/gc-tests (License): Likewise.
37136
37137         * modules/des-tests (License): Likewise.
37138
37139         * modules/md4-tests (License): Likewise.
37140
37141         * modules/md2-tests (License): Likewise.
37142
37143 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
37144
37145         Sync from coreutils:
37146
37147         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
37148         * modules/lib-ignore: New file.
37149         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
37150         chdir-safer.m4, lchmod.m4.
37151         * modules/openat: Add mkdirat.c, openat-priv.h.
37152
37153 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
37154
37155         Sync from coreutils.
37156         * m4/lib-ignore.m4: New file.
37157         * m4/lchmod.m4: New file.
37158
37159 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
37160
37161         Sync from coreutils.
37162         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
37163         for write access: POSIX says that must fail.
37164         * lib/fts.c (diropen): Likewise.
37165         * lib/save-cwd.c (save_cwd): Likewise.
37166         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
37167         well, for minor improvements on hosts that lack O_DIRECTORY.
37168         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
37169         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
37170         Fall back on chown if open failed with EACCES.
37171
37172         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
37173         Report an error at compile-time if only a 1-second nominal clock
37174         resolution is found.
37175
37176         * lib/lchmod.h: New file.
37177         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
37178         (make_dir_parents): Use lchown rather than chown, and
37179         lchmod rather than chmod.
37180
37181         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
37182         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
37183         "proc" reported by n0dalus.
37184
37185         * lib/mountlist.c: Include <limits.h>.
37186         (dev_from_mount_options)
37187         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
37188         New function.  It no longer assumes "dev=" has the System V meaning
37189         on Linux (since it doesn't).  It also parses "dev=" more carefully.
37190         (read_file_system_list)
37191         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
37192         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
37193         dev= in that case.
37194
37195         * lib/posixtm.h (PDS_PRE_2000): New macro.
37196         * lib/posixtm.c (year): Arg is now syntax_bits rather than
37197         allow_century.  All usages changed.  Reject dates outside the range
37198         1969-1999 if PDS_PRE_2000 is used.
37199
37200 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
37201
37202         Sync from coreutils.
37203         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
37204         (Time of day items): Mention the possibility of leap seconds.
37205         Problem reported by Dr. David Alan Gilbert.
37206
37207 2006-01-09  Jim Meyering  <jim@meyering.net>
37208
37209         Sync from coreutils.
37210
37211         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
37212
37213         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
37214
37215         * lib/modechange.c (mode_compile): Reject an invalid mode string
37216         that starts with an octal digit.  From Andreas Gruenbacher.
37217
37218         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
37219         and dup to open_safer and dup_safer, respectively.
37220         (openat_permissive): Fix typo in comment.
37221
37222         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
37223         "gettext.h"; either no longer needed or are guaranteed by openat.h.
37224         (_): Remove; no longer needed.
37225         (openat): Renamed from rpl_openat; no need for rpl_openat
37226         since openat.h renames openat for us.
37227         Replace most of the body with a call to openat_permissive,
37228         to avoid duplicate code.
37229         Port to (probably hypothetical) environments were mode_t is
37230         wider than int.
37231         (openat_permissive): Require mode arg, so that we can check
37232         types better.  Put it just after flags.  Change cwd failure
37233         indicator from pointer-to-bool to pointer-to-errno-value.
37234         All callers changed.
37235         Invoke openat_save_fail and/or openat_restore_fail if
37236         cwd_errno is null, so that openat can call us.
37237         (openat_permissive, fdopendir, fstatat, unlinkat):
37238         Simplify errno handling to avoid some duplicate code,
37239         as it's OK to set errno on success.
37240         * lib/openat.h: Revamp code so that function macros depend on
37241         __OPENAT_PREFIX only, not also on AT_FDCWD.
37242         (openat_ro): Remove.  Caller changed to use openat_permissive.
37243         (openat_permissive): Now a macro, if not a function.
37244         (openat_restore_fail, openat_save_fail): Now always functions,
37245         since mkdirat needs them even if __OPENAT_PREFIX is defined.
37246
37247         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
37248         and openat.c.
37249         * lib/mkdirat.c: Include openat-priv.h.
37250         Remove definitions of macros defined therein.
37251         * lib/openat.c: Likewise.
37252
37253         * lib/mkdirat.c (mkdirat): New file and function.
37254         * lib/openat.h (mkdirat): Declare.
37255
37256         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
37257
37258         * lib/openat.h (openat_permissive): Declare.
37259         (openat_ro): Define.
37260
37261         * lib/openat.c (EXPECTED_ERRNO): New macro.
37262         (openat_permissive): New function -- used in remove.c rewrite.
37263         (all functions): Set errno just before returning, only if there
37264         was an actual failure.
37265         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
37266
37267         Emulate openat-family functions using Linux's procfs, if possible.
37268         Idea and some code based on Ulrich Drepper's glibc changes.
37269
37270         * lib/openat.c: (BUILD_PROC_NAME): New macro.
37271         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
37272         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
37273         before falling back on save_cwd and restore_cwd.
37274         (fdopendir, fstatat, unlinkat): Likewise.
37275
37276         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
37277         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
37278
37279         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
37280         as second argument to va_arg.  Otherwise, some versions of gcc
37281         warn that `if this code is reached, the program will abort'.
37282
37283 2006-01-09  Jim Meyering  <jim@meyering.net>
37284
37285         Sync from coreutils.
37286         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
37287         Require openat-priv.h.
37288
37289 2006-01-09  Bruno Haible  <bruno@clisp.org>
37290
37291         * modules/strnlen (Include): Use strnlen.h.
37292
37293 2006-01-09  Bruno Haible  <bruno@clisp.org>
37294
37295         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
37296
37297 2006-01-09  Bruno Haible  <bruno@clisp.org>
37298
37299         * lib/sysexit_.h (EX_OK): New macro.
37300         Suggested by Martin Lambers <marlam@marlam.de>.
37301
37302 2006-01-09  Bruno Haible  <bruno@clisp.org>
37303
37304         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
37305         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
37306
37307 2006-01-09  Bruno Haible  <bruno@clisp.org>
37308
37309         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
37310         numbers.
37311
37312 2006-01-09  Bruno Haible  <bruno@clisp.org>
37313
37314         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
37315         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
37316         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
37317         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
37318
37319 2006-01-09  Bruno Haible  <bruno@clisp.org>
37320
37321         * build-aux/javacomp.sh.in: New file, moved from lib/.
37322         * modules/javacomp-script (Files): Update.
37323         (configure.ac): Add AC_CONFIG_FILES invocation.
37324         (EXTRA_DIST): Remove variable.
37325
37326         * build-aux/javaexec.sh.in: New file, moved from lib/.
37327         * modules/javaexec (Files): Update.
37328         (configure.ac): Add AC_CONFIG_FILES invocation.
37329         (EXTRA_DIST): Remove javaexec.sh.in.
37330
37331         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
37332         * modules/csharpcomp-script (Files): Update.
37333         (configure.ac): Add AC_CONFIG_FILES invocation.
37334         (EXTRA_DIST): Remove variable.
37335
37336         * build-aux/csharpexec.sh.in: New file, moved from lib/.
37337         * modules/csharpexec (Files): Update.
37338         (configure.ac): Add AC_CONFIG_FILES invocation.
37339         (EXTRA_DIST): Remove csharpexec.sh.in.
37340
37341 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
37342
37343         Sync from coreutils.
37344
37345         Add POSIX ACL support
37346         * lib/acl.h (copy_acl, set_acl): Add declarations.
37347         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
37348         systems other than Linux.
37349         (chmod_or_fchmod): New function: use fchmod when possible,
37350         and chmod otherwise.
37351         (file_has_acl): Add a POSIX ACL implementation, with a
37352         Linux-specific subcase.
37353         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
37354         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
37355         acls are unsupported.
37356         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
37357         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
37358         are unsupported.
37359
37360 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
37361
37362         Sync from coreutils.
37363         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
37364
37365 2006-01-07  Bruno Haible  <bruno@clisp.org>
37366
37367         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
37368         gl_EARLY.
37369
37370 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
37371
37372         * lib/strftime.c (tzname): Don't declare if it is already #defined.
37373         Problem reported for Mingw by Mark Junker.
37374
37375 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
37376
37377         * README: Gnulib normally doesn't generate a tarball.
37378
37379 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
37380
37381         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
37382         long int, not int, for nanosecond counts, so that people who are
37383         used to POSIX struct timespec won't be surprised.  Reported by Jim
37384         Meyering.
37385
37386 2005-12-28  Bruno Haible  <bruno@clisp.org>
37387
37388         * build-aux/config.rpath: Update from GNU gettext.
37389
37390 2005-12-16  Jim Meyering  <jim@meyering.net>
37391
37392         * modules/fprintftime: New module.
37393         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
37394
37395 2005-12-16  Jim Meyering  <jim@meyering.net>
37396
37397         * m4/fprintftime.m4: New file.
37398
37399 2005-12-16  Jim Meyering  <jim@meyering.net>
37400
37401         * lib/fprintftime.c, lib/fprintftime.h: New files.
37402
37403 2005-12-15  Simon Josefsson  <jas@extundo.com>
37404
37405         * modules/socklen (configure.ac): Fix M4 macro name, to align with
37406         new m4/socklen.m4.
37407
37408 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
37409
37410         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
37411         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
37412
37413 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
37414
37415         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
37416         * lib/argp-help.c (fill_in_uparams): Check if the constructed
37417         struct uparams is valid. Fall back to the default values if it is
37418         not.
37419
37420 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
37421
37422         * modules/argp (Files): Add argp-pin.c
37423         (Depends-on): dirname
37424         (lib_SOURCES): Add argp-pin.c
37425
37426 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
37427
37428         * m4/argp.m4:  Check if program_invocation_name and
37429         program_invocation_short_name are declared and define appropriate
37430         macros if they are not.
37431
37432 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
37433
37434         * lib/argp-help.c (__argp_base_name): New function
37435         (__argp_short_program_name): Rewrite using __argp_base_name
37436         * lib/argp-namefrob.h: Define program_invocation_name and
37437         program_invocation_short_name if requested
37438         (__argp_base_name): Add prototype
37439         * lib/argp-parse.c (argp_def): Use gettext wrappers
37440         (argp_default_parser): Use __argp_base_name
37441         * lib/argp-pin.c: New file. Defines program_invocation_name and
37442         program_invocation_short_name on systems that lack them.
37443
37444 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
37445
37446         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
37447         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
37448         porting problem reported by Georg Schwarz in
37449         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
37450
37451 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
37452
37453         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
37454         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
37455         porting problem reported by Georg Schwarz in
37456         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
37457
37458 2005-12-05  Bruno Haible  <bruno@clisp.org>
37459
37460         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
37461         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
37462         Reported by Mark Junker <mjscod@gmx.de>.
37463
37464 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
37465
37466         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
37467         Use implementation from Albert Chin, with some
37468         comments/corrections by Stepan Kasal and myself.
37469
37470 2005-12-02  Bruno Haible  <bruno@clisp.org>
37471
37472         * gnulib-tool (func_import): Accept GPLed build tool modules when
37473         --lgpl is given.
37474         * modules/csharpcomp-script: New file.
37475         * modules/csharpcomp: Depend on it.
37476         * modules/javacomp-script: New file.
37477         * modules/javacomp: Depend on it.
37478         Suggested by Simon Josefsson.
37479
37480 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
37481
37482         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
37483         statement, to work around an HP-UX 10.20 compiler bug reported by
37484         Peter O'Gorman.
37485
37486 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
37487
37488         * modules/savedir (Depends-on): Add openat.
37489
37490 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
37491
37492         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
37493         (uintmax_t) [defined uintmax_t]: Do not declare.
37494         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
37495         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
37496         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
37497         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
37498         sake of portability to weird hosts that C allows (though we don't
37499         know of any practical examples).
37500
37501         * lib/savedir.h (fdsavedir): New decl.
37502         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
37503         contains most of the former guts of savedir.
37504         (savedir): Use savedirstream.
37505         Include "openat.h".
37506
37507 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
37508
37509         * modules/obstack (Files): Add m4/ulonglong.m4.
37510         Problem reported by Davide Angelocola.
37511
37512 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
37513
37514         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
37515         coreutils no longer futzes with rounding modes.
37516
37517 2005-11-14  Jim Meyering  <jim@meyering.net>
37518
37519         * lib/mkstemp-safer.c: Include <config.h>, required for possible
37520         replacement of mkstemp.
37521
37522 2005-11-10  Simon Josefsson  <jas@extundo.com>
37523
37524         * lib/readline.c: Remove EOL.
37525
37526 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
37527
37528         * modules/gethrxtime (Depends-on): Add gettime.
37529
37530 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
37531
37532         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
37533         or gettimeofday; no longer needed.
37534
37535 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
37536
37537         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
37538         time business.
37539         (gethrxtime) [! (HAVE_NANOUPTIME
37540         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
37541         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
37542         our own approximation.
37543
37544 2005-11-08  Eric Blake  <ebb9@byu.net>
37545
37546         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
37547
37548 2005-11-08  Eric Blake  <ebb9@byu.net>
37549
37550         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
37551
37552 2005-11-04  Bruno Haible  <bruno@clisp.org>
37553
37554         * gnulib-tool: Implement --update mode.
37555
37556 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
37557
37558         Fix porting problem reported by Theodoros V. Kalamatianos.
37559         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
37560         Don't assume that futimes failing means we must fail.
37561
37562 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
37563
37564         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
37565         variables to suggest the intended function of the PATH_MAX check.
37566
37567 2005-10-30  Kean Johnston  <jkj@sco.com>
37568
37569         Trivial changes to support SCO systems.
37570         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
37571         as PATH_MAX.
37572         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
37573         where __ptr is null when no I/O is pending.
37574
37575 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
37576
37577         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
37578         leave errno alone.  Problem reported by Dmitry V. Levin.
37579
37580 2005-10-28  Simon Josefsson  <jas@extundo.com>
37581
37582         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
37583         Test more.
37584
37585         * tests/test-gc-md2.c, tests/test-md2.c: New files.
37586
37587         * modules/md2, modules/md2-tests: New files.
37588
37589 2005-10-28  Simon Josefsson  <jas@extundo.com>
37590
37591         * m4/inet_ntop.m4: More tests.
37592
37593         * m4/gc-md2.m4, md2.m4: New file.
37594
37595 2005-10-28  Simon Josefsson  <jas@extundo.com>
37596
37597         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
37598         "restrict" keywords, as per POSIX.  Protect the function
37599         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
37600         Don't use K&R prototypes.  Check the sprintf return values.
37601         Re-define EAFNOSUPPORT if not present.  Indent.
37602
37603         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
37604         suggested by Bruno Haible <bruno@clisp.org>.
37605
37606         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
37607
37608         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
37609
37610         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
37611         libgcrypt).
37612
37613         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
37614
37615         * lib/md2.h, lib/md2.c: New files.
37616
37617 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
37618
37619         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
37620         errno alone.  Problem reported by Frederic Jolliton.
37621
37622 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
37623
37624         * modules/verify (License): Change from GPL to LGPL.  This is a
37625         tiny module and there are apparently near-equivalents that are
37626         under the BSD license.
37627
37628 2005-10-24  Simon Josefsson  <jas@extundo.com>
37629
37630         * modules/sha1: Relicense to LGPL.
37631
37632 2005-10-24  Simon Josefsson  <jas@extundo.com>
37633
37634         * lib/md4.h: Shrink buffer size, now that we changed the type.
37635
37636 2005-10-23  Simon Josefsson  <jas@extundo.com>
37637
37638         * gnulib-tool (func_import): Fix --tests-base.
37639
37640 2005-10-22  Simon Josefsson  <jas@extundo.com>
37641
37642         * modules/arcfour (Depends-on): Need stdint.
37643
37644 2005-10-22  Simon Josefsson  <jas@extundo.com>
37645
37646         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
37647         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
37648
37649 2005-10-22  Simon Josefsson  <jas@extundo.com>
37650
37651         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
37652         suggested by Bruno Haible <bruno@clisp.org>.
37653
37654 2005-10-22  Simon Josefsson  <jas@extundo.com>
37655
37656         * lib/crc.h: Include stddef.h, for size_t.
37657
37658 2005-10-22  Simon Josefsson  <jas@extundo.com>
37659
37660         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
37661         arcfour_context struct (simplify test vector testing in GNU
37662         Shishi).
37663
37664 2005-10-21  Simon Josefsson  <jas@extundo.com>
37665
37666         * modules/des, modules/des-tests: New files.
37667
37668         * modules/gc-des, modules/gc-des-tests: New files.
37669
37670         * tests/test-des.c, tests/test-gc-des.c: New file.
37671
37672 2005-10-21  Simon Josefsson  <jas@extundo.com>
37673
37674         * modules/arctwo, modules/arctwo-tests: New files.
37675
37676         * tests/test-arctwo.c: New file.
37677
37678         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
37679
37680         * tests/test-gc-arctwo.c: New file.
37681
37682 2005-10-21  Simon Josefsson  <jas@extundo.com>
37683
37684         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
37685         Bruno Haible <bruno@clisp.org>.
37686
37687         * m4/gc-des.m4: New file.
37688
37689 2005-10-21  Simon Josefsson  <jas@extundo.com>
37690
37691         * m4/arctwo.m4: New file.
37692
37693         * m4/gc-arctwo.m4: New file.
37694
37695 2005-10-21  Simon Josefsson  <jas@extundo.com>
37696
37697         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
37698         block.
37699
37700 2005-10-21  Simon Josefsson  <jas@extundo.com>
37701
37702         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
37703         <bruno@clisp.org>.
37704
37705         * lib/hmac-sha1.c (hmac_sha1): Likewise.
37706
37707         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
37708         Bruno Haible <bruno@clisp.org>.
37709
37710         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
37711         <bruno@clisp.org>.
37712
37713 2005-10-21  Simon Josefsson  <jas@extundo.com>
37714
37715         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
37716
37717 2005-10-21  Simon Josefsson  <jas@extundo.com>
37718
37719         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
37720
37721 2005-10-21  Simon Josefsson  <jas@extundo.com>
37722
37723         * lib/des.h, lib/des.c: New files.
37724
37725         * lib/gc-gnulib.c: Support DES.c
37726
37727 2005-10-21  Simon Josefsson  <jas@extundo.com>
37728
37729         * lib/arctwo.h, lib/arctwo.c: New files.
37730
37731         * lib/gc-gnulib.c: Support ARCTWO.
37732
37733 2005-10-21  Simon Josefsson  <jas@extundo.com>
37734
37735         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
37736         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
37737
37738 2005-10-21  Simon Josefsson  <jas@extundo.com>
37739
37740         * gnulib-tool (func_import, func_create_testdir): Define automake
37741         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
37742         Makefile.am snippet),
37743         suggested by Bruno Haible <bruno@clisp.org>.
37744
37745         * modules/gc (Makefile.am): Use it.
37746
37747 2005-10-21  Bruno Haible  <bruno@clisp.org>
37748
37749         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
37750         patch.
37751
37752 2005-10-19  Simon Josefsson  <jas@extundo.com>
37753
37754         * tests/test-gc-rijndael.c: New file.
37755
37756         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
37757
37758 2005-10-19  Simon Josefsson  <jas@extundo.com>
37759
37760         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
37761         interface too.
37762
37763 2005-10-19  Simon Josefsson  <jas@extundo.com>
37764
37765         * tests/test-gc-arcfour.c: New file.
37766
37767         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
37768
37769 2005-10-19  Simon Josefsson  <jas@extundo.com>
37770
37771         * modules/gc-md4, modules/gc-md4-tests: New file.
37772
37773         * tests/test-gc-md4.c: New file.
37774
37775 2005-10-19  Simon Josefsson  <jas@extundo.com>
37776
37777         * m4/gc-md4.m4: New file.
37778
37779 2005-10-19  Simon Josefsson  <jas@extundo.com>
37780
37781         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
37782         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
37783         <kasal@ucw.cz>.
37784
37785 2005-10-19  Simon Josefsson  <jas@extundo.com>
37786
37787         * m4/gc-arcfour.m4: New file.
37788
37789         * m4/gc-rijndael.m4: New file.
37790
37791 2005-10-19  Simon Josefsson  <jas@extundo.com>
37792
37793         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
37794
37795 2005-10-19  Simon Josefsson  <jas@extundo.com>
37796
37797         * lib/gc-gnulib.c: Support ARCFOUR.
37798
37799 2005-10-19  Simon Josefsson  <jas@extundo.com>
37800
37801         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
37802         support.
37803
37804         * lib/gc.h: Add ECB enum type.
37805
37806         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
37807
37808 2005-10-18  Simon Josefsson  <jas@extundo.com>
37809
37810         * tests/test-md5.c: New file.
37811
37812         * modules/md5-tests: New file.
37813
37814 2005-10-18  Simon Josefsson  <jas@extundo.com>
37815
37816         * tests/test-md4.c: New file.
37817
37818         * modules/md4, modules/md4-tests: New files.
37819
37820 2005-10-18  Simon Josefsson  <jas@extundo.com>
37821
37822         * m4/md4.m4: New file.
37823
37824 2005-10-18  Simon Josefsson  <jas@extundo.com>
37825
37826         * lib/md4.h, lib/md4.c: New files, based on md5.?.
37827
37828 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
37829
37830         * gnulib-tool (func_create_testdir): Omit the second check whether
37831         BUILT_SOURCES in nonempty.
37832
37833 2005-10-17  Simon Josefsson  <jas@extundo.com>
37834
37835         * tests/test-rijndael.c: New file.
37836
37837 2005-10-17  Simon Josefsson  <jas@extundo.com>
37838
37839         * modules/sha1: Depend on stdint instead of md5.
37840
37841         * modules/md5: Depend on stdint, remove uint32_t.
37842
37843 2005-10-17  Simon Josefsson  <jas@extundo.com>
37844
37845         * modules/gc-sha1-tests: New file.
37846
37847         * tests/test-gc-sha1.c: New file.
37848
37849 2005-10-17  Simon Josefsson  <jas@extundo.com>
37850
37851         * m4/md5.m4: Remove call to uint32_t.m4.
37852
37853 2005-10-17  Simon Josefsson  <jas@extundo.com>
37854
37855         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
37856
37857         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
37858         md5.h.
37859
37860         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
37861
37862         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
37863
37864 2005-10-17  Simon Josefsson  <jas@extundo.com>
37865
37866         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
37867
37868 2005-10-17  Simon Josefsson  <jas@extundo.com>
37869
37870         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
37871
37872 2005-10-17  Simon Josefsson  <jas@extundo.com>
37873
37874         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
37875
37876         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
37877
37878 2005-10-17  Bruno Haible  <bruno@clisp.org>
37879
37880         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
37881         that it can also be used in a test.
37882
37883 2005-10-16  Bruno Haible  <bruno@clisp.org>
37884
37885         * gnulib-tool (func_emit_tests_Makefile_am): Also define
37886         TESTS_ENVIRONMENT, so that individual tests can augment it.
37887
37888         * gnulib-tool (func_create_testdir): Use an intermediate target for
37889         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
37890         macros, like $(ALLOCA_H), which cannot be passed through the command
37891         line.
37892
37893 2005-10-15  Simon Josefsson  <jas@extundo.com>
37894
37895         * modules/rijndael-tests: New file.
37896
37897         * modules/rijndael: New file.
37898
37899 2005-10-15  Simon Josefsson  <jas@extundo.com>
37900
37901         * m4/rijndael.m4: New file.
37902
37903 2005-10-15  Simon Josefsson  <jas@extundo.com>
37904
37905         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
37906
37907         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
37908
37909 2005-10-14  Simon Josefsson  <jas@extundo.com>
37910
37911         * tests/test-arcfour.c: New file.
37912
37913         * modules/arcfour, modules/arcfour-tests: New files.
37914
37915 2005-10-14  Simon Josefsson  <jas@extundo.com>
37916
37917         * m4/arcfour.m4: New file.
37918
37919 2005-10-14  Simon Josefsson  <jas@extundo.com>
37920
37921         * lib/arcfour.h, lib/arcfour.c: New files.
37922
37923 2005-10-14  Roland McGrath  <roland@redhat.com>
37924
37925         Import from libc.  [BZ #1331]
37926         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
37927         macro argument.
37928         Reported by Matej Vela <vela@debian.org>.
37929
37930 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
37931
37932         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
37933         include <wchar.h>; no longer needed.
37934
37935 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
37936
37937         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
37938
37939 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
37940         and  Ulrich Drepper  <drepper@redhat.com>
37941
37942         Import from libc.
37943         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
37944         instead of inline stream orientation test and two separate
37945         function calls.  Pay no attention to USE_IN_LIBIO.
37946
37947 2005-10-13  Simon Josefsson  <jas@extundo.com>
37948
37949         * modules/gc-hmac-md5-tests: New file.
37950
37951         * tests/test-gc-hmac-sha1.c: New file.
37952
37953         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
37954
37955         * modules/gc-hmac-md5-tests: New file.
37956
37957         * tests/test-gc-md5.c: New file.
37958
37959         * modules/gc-md5-tests: New file.
37960
37961 2005-10-13  Simon Josefsson  <jas@extundo.com>
37962
37963         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
37964         Move memory allocation outside of loop.
37965
37966 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
37967
37968         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
37969         intermediate directory is in a read-only file system.  Problem
37970         reported by Eric Blake.
37971
37972 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
37973
37974         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
37975
37976 2005-10-12  Simon Josefsson  <jas@extundo.com>
37977
37978         * tests/test-hmac-sha1.c: New file.
37979
37980         * modules/hmac-sha1-tests: New file.
37981
37982         * modules/hmac-sha1: New file.
37983
37984 2005-10-12  Simon Josefsson  <jas@extundo.com>
37985
37986         * modules/gc-sha1: New file.
37987
37988 2005-10-12  Simon Josefsson  <jas@extundo.com>
37989
37990         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
37991
37992         * tests/test-gc-pbkdf2-sha1.c: New file.
37993
37994 2005-10-12  Simon Josefsson  <jas@extundo.com>
37995
37996         * modules/gc-md5, modules/gc-hmac-md5: New files.
37997
37998         * modules/gc (Files): Remove md5, memxor and hmac files.
37999
38000 2005-10-12  Simon Josefsson  <jas@extundo.com>
38001
38002         * m4/gc-pbkdf2-sha1.m4: New file.
38003
38004         * m4/gc-hmac-sha1.m4: New file.
38005
38006         * m4/gc-sha1: New file.
38007
38008         * m4/hmac-sha1.m4: New file.
38009
38010 2005-10-12  Simon Josefsson  <jas@extundo.com>
38011
38012         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
38013
38014         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
38015
38016 2005-10-12  Simon Josefsson  <jas@extundo.com>
38017
38018         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
38019         suggested by Bruno Haible <bruno@clisp.org>.
38020
38021 2005-10-12  Simon Josefsson  <jas@extundo.com>
38022
38023         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
38024
38025 2005-10-12  Simon Josefsson  <jas@extundo.com>
38026
38027         * lib/gc-pbkdf2-sha1.c: New file.
38028
38029         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
38030
38031 2005-10-12  Simon Josefsson  <jas@extundo.com>
38032
38033         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
38034
38035         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
38036
38037 2005-10-12  Simon Josefsson  <jas@extundo.com>
38038
38039         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
38040         GC_USE_HMAC_MD5, respectively.
38041
38042         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
38043         (gc_md5): Fix typo.
38044
38045         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
38046
38047         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
38048
38049         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
38050
38051 2005-10-12  Bruno Haible  <bruno@clisp.org>
38052
38053         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
38054         Reported by Stepan Kasal <kasal@ucw.cz>.
38055
38056 2005-10-11  Simon Josefsson  <jas@extundo.com>
38057
38058         * tests/test-crc.c: New file.
38059
38060         * modules/crc, modules/crc-tests: New files.
38061
38062 2005-10-11  Simon Josefsson  <jas@extundo.com>
38063
38064         * m4/crc.m4: New file.
38065
38066 2005-10-11  Simon Josefsson  <jas@extundo.com>
38067
38068         * lib/gc.h: Add gc_hash and gc_hash_buffer.
38069
38070         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
38071
38072         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
38073
38074 2005-10-11  Simon Josefsson  <jas@extundo.com>
38075
38076         * lib/crc.h, lib/crc.c: New files.
38077
38078         * lib/gc.h (gc_hash_buffer): Add doc.
38079
38080 2005-10-11  Bruno Haible  <bruno@clisp.org>
38081
38082         * modules/c-strcasestr: New file.
38083         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
38084
38085 2005-10-11  Bruno Haible  <bruno@clisp.org>
38086
38087         * modules/c-strcase: New file.
38088         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
38089
38090 2005-10-11  Bruno Haible  <bruno@clisp.org>
38091
38092         * lib/strcasecmp.c: Include limits.h.
38093         (strcasecmp): Avoid integer overflow on exotic platforms.
38094         * lib/strncasecmp.c: Include limits.h.
38095         (strncasecmp): Avoid integer overflow on exotic platforms.
38096         Reported by Paul Eggert.
38097
38098 2005-10-11  Bruno Haible  <bruno@clisp.org>
38099
38100         * lib/c-strcasestr.h: New file, from GNU gettext.
38101         * lib/c-strcasestr.c: New file, from GNU gettext.
38102
38103 2005-10-11  Bruno Haible  <bruno@clisp.org>
38104
38105         * lib/c-strcase.h: New file, from GNU gettext.
38106         * lib/c-strcasecmp.c: New file, from GNU gettext.
38107         * lib/c-strncasecmp.c: New file, from GNU gettext.
38108
38109 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
38110
38111         * modules/mempcpy (License): GPL -> LGPL.
38112         * modules/strchrnul (License): Likewise.
38113         * modules/sysexits (License): Likewise.
38114
38115 2005-10-08  Simon Josefsson  <jas@extundo.com>
38116
38117         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
38118
38119 2005-10-07  Simon Josefsson  <jas@extundo.com>
38120
38121         * m4/memxor.m4: Remove gl_C_RESTRICT call.
38122
38123 2005-10-06  Simon Josefsson  <jas@extundo.com>
38124
38125         * tests/test-hmac-md5.c: New file.
38126
38127         * modules/hmac-md5-tests: New file.
38128
38129         * modules/hmac-md5: New file.
38130
38131 2005-10-06  Simon Josefsson  <jas@extundo.com>
38132
38133         * m4/hmac-md5.m4: New file.
38134
38135         * m4/memxor.m4: Require gl_C_RESTRICT.
38136
38137 2005-10-06  Simon Josefsson  <jas@extundo.com>
38138
38139         * lib/memxor.c (memxor): Avoid casts and warnings.
38140
38141 2005-10-06  Simon Josefsson  <jas@extundo.com>
38142
38143         * lib/hmac-md5.c: New file.
38144
38145         * lib/hmac.h: New file.
38146
38147 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
38148
38149         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
38150         promotes to int, not unsigned int, to catch the AIX 5.3
38151         compiler bug.
38152
38153 2005-10-05  Simon Josefsson  <jas@extundo.com>
38154
38155         * modules/memxor: New file.
38156
38157         * modules/iconv (Files): Move config.rpath to havelib, it is used
38158         there.
38159
38160         * modules/havelib (Files): Add config.rpath.
38161
38162 2005-10-05  Simon Josefsson  <jas@extundo.com>
38163
38164         * m4/memxor.m4: New file.
38165
38166 2005-10-05  Simon Josefsson  <jas@extundo.com>
38167
38168         * lib/memxor.c (memxor): Fix compiler error.
38169
38170         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
38171         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
38172
38173         * lib/memxor.h, lib/memxor.c: New files.
38174
38175         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
38176         we assume all systems have it, suggested by Jim Meyering
38177         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
38178         any systems lack sys/socket.h; mingw32 is known to lack it, but we
38179         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
38180         same reasons.
38181
38182 2005-10-05  Simon Josefsson  <jas@extundo.com>
38183
38184         * config/srclist.txt: Add glibc bug 1423 for md5.h.
38185
38186 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
38187
38188         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
38189         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
38190         needed, since the source code now assumes these .h files.
38191
38192 2005-10-05  Derek Price  <derek@ximbiot.com>
38193
38194         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
38195
38196 2005-10-05  Bruno Haible  <bruno@clisp.org>
38197
38198         * modules/stdint (License): Change to LGPL.
38199
38200 2005-10-04  Simon Josefsson  <jas@extundo.com>
38201
38202         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
38203         D. Baushke" <mdb@gnu.org>.
38204
38205 2005-10-04  Bruno Haible  <bruno@clisp.org>
38206
38207         * lib/verify.h (verify_true): Provide alternative definition for C++.
38208
38209 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
38210
38211         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
38212         (SSIZE_MAX): New macro, if not already defined.
38213         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
38214         than 2 GiB.
38215
38216 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
38217
38218         Sync from coreutils.
38219         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
38220         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
38221         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
38222         ULLONG_MAX doesn't work with 2.7.2.1.
38223
38224 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
38225
38226         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
38227         From Ben Pfaff.
38228
38229         * modules/exclude (Depends-on): Depend on verify.
38230         * modules/strtoimax (Depends-on): Likewise.
38231         * modules/utimecmp (Depends-on): Likewise.
38232
38233 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
38234
38235         * lib/exclude.c: Include verify.h.
38236         (verify): Remove.  All callers changed to use verify.h's version.
38237         * lib/strtoimax.c: Likewise.
38238         * lib/utimecmp.c: Likewis.e
38239
38240         Sync from coreutils.
38241         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
38242         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
38243         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
38244         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
38245         bother returning ENOSYS if settimeofday or stime fails; just let
38246         them return whatever errno they want to return.
38247         * lib/utimens.c: Include unistd.h, for dup2.
38248         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
38249         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
38250
38251 2005-10-02  Jim Meyering  <jim@meyering.net>
38252
38253         Sync from coreutils.
38254         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
38255         from glibc-2.2.5 that fails for read-only files.
38256
38257 2005-10-02  Jim Meyering  <jim@meyering.net>
38258
38259         Sync from coreutils.
38260         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
38261         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
38262         `#if HAVE_CONFIG_H'.
38263         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
38264         Remove AT_FDCWD test.
38265         Do not consume the fd unless successful.
38266         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
38267         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
38268         block, so that we don't even try to compile it if settimeofday is
38269         available.  This works around a compilation failure on OSF1 V5.1,
38270         due to stime requiring a `long int*' while tv_sec is `int'.
38271
38272 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
38273
38274         Sync from coreutils.
38275         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
38276         against `yes', rather than just testing for nonempty.
38277
38278 2005-10-01  Simon Josefsson  <jas@extundo.com>
38279
38280         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
38281         and Darwin.
38282
38283         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
38284         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
38285         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
38286         freeaddrinfo and gai_strerror are declared by the POSIX headers.
38287         Check if struct addrinfo is declared.
38288
38289 2005-10-01  Simon Josefsson  <jas@extundo.com>
38290
38291         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
38292         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
38293         AI_* and EAI_* definitions.  Protect function declarations.
38294
38295 2005-10-01  Jim Meyering  <jim@meyering.net>
38296
38297         Sync from coreutils.
38298
38299         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
38300         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
38301         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
38302         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
38303         in the inet and nsl libraries.  Required on Solaris 5.7.
38304
38305 2005-10-01  Jim Meyering  <jim@meyering.net>
38306
38307         Sync from coreutils.
38308         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
38309         in the inet and nsl libraries.  Required on Solaris 5.7.
38310
38311 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
38312
38313         * lib/getdelim.c (getdelim): Remove unused variables.
38314
38315 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
38316
38317         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
38318         so that the code works even with ancient cpp.  Portability problem
38319         with GCC 2.7.2.1 reported by Thomas M.Ott.
38320
38321 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
38322
38323         * modules/regex (Depends-on): Add strcase.
38324
38325         * modules/gethostname (Licence): Change from GPL to LGPL, since
38326         gethostname.c is a trivial implementation of a standard library
38327         function.
38328         * modules/poll (License): Change from GPL to LGPL, since it's
38329         derived from LGPL code.
38330
38331 2005-09-27  Jim Meyering  <jim@meyering.net>
38332
38333         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
38334         HAVE_CONFIG_H.
38335
38336         * lib/intprops.h (signed_type_or_expr__): Define.
38337         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
38338         for unsigned types.
38339
38340 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
38341
38342         * lib/verify.h (verify_expr): Remove, replacing with:
38343         (verify_true): New macro that returns true instead of void.
38344         (verify_type__): Remove.
38345         (verify): Use verify_true rather than verify_type__.
38346
38347 2005-09-26  Bruno Haible  <bruno@clisp.org>
38348
38349         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
38350         is necessary.
38351         (lib_SOURCES): Remove mbchar.c.
38352         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
38353         (Files): Add m4/mbrtowc.m4.
38354         * modules/mbiter: Likewise.
38355         * modules/mbuiter: Likewise.
38356
38357 2005-09-26  Bruno Haible  <bruno@clisp.org>
38358
38359         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
38360         compile mbchar.c if they are not both present.
38361         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
38362         * m4/mbiter.m4 (gl_MBITER): Likewise.
38363         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
38364         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
38365         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
38366
38367 2005-09-25  Jim Meyering  <jim@meyering.net>
38368
38369         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
38370         also uses socklen_t.
38371
38372 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
38373
38374         * lib/utimens.c (ENOSYS): Define if not already defined.
38375         (futimens): Support having a null PATH if the file descriptor
38376         is nonnegative.
38377
38378         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
38379         Remove.
38380         (__attribute): Define to empty unless GCC 3.1 or later.
38381         This works around a core dump on OpenBSD 3.4, which has GCC
38382         2.95.3, which dumps core when given __attribute__(()).  It also
38383         simplifies other tests, since we really don't want to bother with
38384         worrying about which ancient version of GCC supported what.
38385         Original problem reported by Yoann Vandoorselaere, with part of
38386         the fix suggested by Derek Price.
38387
38388 2005-09-24  Jim Meyering  <jim@meyering.net>
38389
38390         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
38391         so we can once again use a positive bitfield width of 1 -- now we
38392         don't have to explain why we were using a bitfield width of 2.
38393
38394 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
38395
38396         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
38397         and similarly for the other external symbols.  Problem reported
38398         by James Gallager.
38399
38400         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
38401         bug reported by Jim Meyering.
38402
38403         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
38404         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
38405         not needed, since socklen is a prerequisite module.
38406
38407 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
38408
38409         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
38410         Problem reported by Eric Blake.
38411         (getaddrinfo): Initialize se so that it's not garbage.
38412         Redo internal storage allocation so that it doesn't make unportable
38413         assumptions about alignment.
38414         Fix a memory leak.
38415
38416         * lib/utimens.c (futimens): Use futimesat if available.
38417         Prefer it to futimes since it doesn't have the futimes bug.
38418
38419         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
38420         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
38421         Instead, declare a function that returns a pointer to an array,
38422         and use verify_type__ to declare the size of the array.
38423         Problem and germ of a solution reported by Bruno Haible.
38424         (verify_type__): Use 2, not 1, for bitfield size, to avoid
38425         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
38426
38427 2005-09-23  Jim Meyering  <jim@meyering.net>
38428
38429         Sync from coreutils.
38430         Correct build failure (socklen_t not defined) on at least
38431         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
38432         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
38433
38434 2005-09-23  Jim Meyering  <jim@meyering.net>
38435
38436         * modules/getaddrinfo (Depends-on): Add socklen.
38437
38438 2005-09-23  Bruno Haible  <bruno@clisp.org>
38439
38440         * tests/test-verify.c: New file.
38441
38442 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
38443
38444         Sync from coreutils.
38445
38446         * modules/argmatch (Depends-on): Add verify.
38447         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
38448         unistd-safer.
38449         * modules/save-cwd (Depends-on): Likewise.
38450
38451         * modules/openat (Files): Add lib/openat-die.c.
38452         (Depends-on): Remove error, exitfail.
38453         Add dirname.
38454
38455         * modules/verify: New file.
38456         * MODULES.html.sh (Diagnostics <assert.h>): New section,
38457         with "verify" module.
38458
38459 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
38460
38461         Sync from coreutils.
38462
38463         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
38464         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
38465         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
38466         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
38467         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
38468         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
38469         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
38470         Don't bother checking for string.h, stdlib.h, unistd.h.
38471         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
38472         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
38473         module's job.
38474         * m4/jm-macros.m4 (gl_MACROS): Likewise.
38475         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
38476
38477         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
38478         (gl_GETDATE): Use it.
38479
38480         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
38481
38482 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
38483
38484         Sync from coreutils.
38485
38486         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
38487         stat-time.h.
38488         * lib/argmatch.h: Include verify.h
38489         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
38490         (ARGMATCH_ASSERT): Remove; unused.
38491         * lib/canonicalize.c: Assume STDC_HEADERS.
38492         * lib/exclude.c: Include "strcase.h".
38493         * lib/regex_internal.h [!defined _LIBC]: Likewise.
38494         * lib/getusershell.c: Include stdio--.h rather than stdio.h
38495         and stdio-safer.h.
38496         (getusershell): Call fopen, not fopen_safer.
38497         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
38498         Do not include unistd-safer.h.
38499         (save_cwd): Don't call fd_safer; no longer needed
38500         now that we include fcntl--.h.
38501
38502         * lib/getdate.y (relative_time): New type.
38503         (RELATIVE_TIME_0): New constant.
38504         (parser_control): Use relative_time instead of doing it ourselves.
38505         (%union): Add new relative_time rel member.
38506         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
38507         Now typeless.
38508         (relunit, relunit_snumber): Now of type rel.
38509         (zone, rel, relunit, get_date): Adjust to above changes.
38510
38511         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
38512         Do not include unistd-safer.h.
38513         (getloadavg): Don't call fd_safer; no longer needed
38514         now that we include fcntl--.h.
38515
38516         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
38517         (make_dir_parents): Treat ENOSYS like EEXIST.
38518
38519         Improve quality of diagnostics on restore_cwd failure.
38520         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
38521         (make_dir_parents): Last arg is now int * (for errno), not bool *.
38522         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
38523         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
38524         each time through the loop.  Do not diagnose restore_cwd failure;
38525         that is the caller's job (and perhaps the caller does not care).
38526
38527         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
38528         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
38529         If the file already exists but is not a directory, don't bother
38530         to try to make its parents.
38531         Close potential file descriptor leak if we can't chdir("/") (!).
38532         Don't always return true if chdir($PWD) fails; return true only
38533         if the requested action was done successfully (except for the
38534         chdir($PWD)).
38535         Don't log final directory unless we actually made it.
38536         Refactor to avoid duplicate code to fix up permissions.
38537         Don't attempt to fix up parent permissions if chdir($PWD) fails.
38538
38539         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
38540         to make it a bit faster and (I hope) clearer.
38541         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
38542         Fix bug in formats like %2N.
38543
38544         * lib/verify.h: New file.
38545
38546 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
38547
38548         Sync from coreutils.
38549         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
38550
38551 2005-09-22  Jim Meyering  <jim@meyering.net>
38552
38553         Sync from coreutils.
38554
38555         * m4/lstat.m4 (gl_FUNC_LSTAT):
38556         Use AC_LIBSOURCES to require lstat.c and lstat.h.
38557         Remove obsolete comment.
38558         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
38559         * m4/xstrtod.m4: Likewise.
38560
38561         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
38562
38563 2005-09-22  Jim Meyering  <jim@meyering.net>
38564
38565         Sync from coreutils.
38566
38567         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
38568
38569         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
38570         the .tm_year member, since otherwise gcc-4.0 would now warn about
38571         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
38572
38573         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
38574         order to avoid an unsuppressible warning from gcc on 64-bit systems.
38575
38576         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
38577         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
38578         when run in a time zone for which daylight savings time is in effect
38579         for the starting date.
38580
38581         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
38582         stop us from restricting permissions of just-created absolute-named
38583         directories.
38584         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
38585         to restore initial working directory.
38586         * lib/mkdir-p.c (make_dir_parents): New parameter:
38587         different_working_dir, to tell caller if/when we change the working
38588         directory and are unable to return to the initial one.
38589         * lib/mkdir-p.h (make_dir_parents): Update prototype.
38590         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
38591         `return false'.  This fixes a bug introduced on 2004-07-30.
38592
38593         * lib/openat.c (fdopendir): Be sure to close the supplied
38594         file descriptor before returning.  This makes our replacement
38595         implementation a little closer to Solaris's, where fdopendir
38596         ties the file descriptor to the returned DIR* pointer.
38597         * lib/openat.c (unlinkat): New function.
38598         * lib/openat.h (unlinkat): Add prototype.
38599         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
38600         (openat_restore_fail): Rename from openat_restore_die.
38601         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
38602
38603         Provide an alternative to exiting immediately upon save_cwd or
38604         restore_cwd failure.  Now, an application can arrange e.g.,
38605         to perform a longjump in that case.
38606         * lib/openat.c: Include dirname.h.
38607         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
38608         (rpl_openat, fdopendir, fstatat): Call openat_save_die
38609         and openat_restore_die rather than calling error directly.
38610         Don't include "error.h" or "exitfail.h"; they're no longer needed.
38611
38612         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
38613         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
38614         define.
38615
38616         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
38617         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
38618                             int utc, int nanoseconds);
38619         Background:
38620         date should not have to allocate a megabyte of virtual memory to
38621         handle a format argument like +%1048575T.  When implemented with
38622         strftime, it must allocate such a buffer, use strftime to fill it
38623         in, print it, then free it.
38624         With fprintftime, it simply prints everything and exits.
38625         With no need for memory allocation, that's one fewer way to fail.
38626         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
38627         optional field width, not before, so we accept %9:z, not %:9z.
38628         (my_strftime): Be sure to use L_('x') for literals.
38629
38630         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
38631         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
38632         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
38633         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
38634         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
38635         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
38636         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
38637         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
38638         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
38639         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
38640         * lib/xgethostname.c, lib/xreadlink.c:
38641         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
38642
38643         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
38644         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
38645         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
38646         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
38647         and don't include <sys/file.h>).
38648
38649 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
38650
38651         Sync from coreutils.
38652
38653         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
38654         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
38655         [!LDAV_DONE]: Avoid unused variable warning.
38656
38657 2005-09-21  Bruno Haible  <bruno@clisp.org>
38658
38659         * lib/unicodeio.h (unicode_to_mb): New declaration.
38660
38661 2005-09-20  Derek Price  <derek@ximbiot.com>
38662
38663         * lib/getaddrinfo.c: Don't include <netdb.h> included from
38664         getaddrinfo.h.
38665
38666 2005-09-20  Bruno Haible  <bruno@clisp.org>
38667
38668         * gnulib-tool: Remove trailing slashes from the values specified for
38669         --source-base, --m4-base, --tests-base, --aux-dir.
38670         Suggested by Simon Josefsson <jas@extundo.com>.
38671
38672 2005-09-20  Bruno Haible  <bruno@clisp.org>
38673
38674         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
38675         func_modules_to_filelist, func_import, func_create_testdir): Make all
38676         sorting results locale-independent, so that gnulib-cache.m4 doesn't
38677         change when gnulib-tool is invoked in a different locale.
38678
38679 2005-09-19  Simon Josefsson  <jas@extundo.com>
38680
38681         * m4/socklen.m4: Fix typo.
38682
38683 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38684
38685         Use a consistent style for including <config.h>.
38686         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
38687         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
38688         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
38689         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
38690         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
38691         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
38692         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
38693         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
38694         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
38695         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
38696         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
38697         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
38698         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
38699         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
38700         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
38701         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
38702         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
38703         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
38704         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
38705         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
38706         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
38707         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
38708         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
38709         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
38710         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
38711         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
38712         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
38713         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
38714         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
38715         lib/xstrtoumax.c, lib/yesno.c:
38716         Standardize inclusion of config.h.
38717         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
38718         lib/inttostr.h:  Removed inclusion of config.h from header files.
38719         * lib/inttostr.c:  Adjusted in-tree users.
38720         * lib/timespec.h: Remove superfluous warning to include config.h.
38721         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
38722         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
38723         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
38724         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
38725         config.h with HAVE_CONFIG_H.
38726
38727 2005-09-19  Jim Meyering  <jim@meyering.net>
38728
38729         * modules/pathmax (License): Change to LGPL.
38730
38731 2005-09-19  Derek Price  <derek@ximbiot.com>
38732
38733         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
38734
38735 2005-09-19  Bruno Haible  <bruno@clisp.org>
38736
38737         * gnulib-tool (import): Provide default for --tests-base.
38738
38739 2005-09-19  Bruno Haible  <bruno@clisp.org>
38740
38741         * doc/quote.texi: New file, extracted from gnulib.texi.
38742         * doc/ctime.texi: New file, extracted from gnulib.texi.
38743         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
38744         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
38745         * doc/gnulib.texi: Include them.
38746
38747 2005-09-18  Bruno Haible  <bruno@clisp.org>
38748
38749         Portability fix.
38750         * gnulib-tool (func_readlink): New function.
38751         (func_ln_if_changed): Use it.
38752
38753 2005-09-18  Bruno Haible  <bruno@clisp.org>
38754
38755         * gnulib-tool: Support --with-tests also with --import.
38756         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
38757         (func_import): Use variables $testsbase and $inctests. Emit a
38758         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
38759         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
38760         SUBDIRS += $testsdir.
38761         (func_create_testdir): Update.
38762
38763 2005-09-18  Bruno Haible  <bruno@clisp.org>
38764
38765         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
38766         instead of $dry_run.
38767         (func_cp_if_changed, func_mv_if_changed): Remove functions.
38768         (func_ln_if_changed): Don't handle dry-run here.
38769         (func_import): In dry-run mode, detect more precisely which actions
38770         would be performed, and don't use "...ing" verbs.
38771
38772 2005-09-18  Bruno Haible  <bruno@clisp.org>
38773
38774         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
38775         (func_import): Use join on two temporary files instead of three nested
38776         loops, in order to determine which files are new or old.
38777
38778 2005-09-18  Bruno Haible  <bruno@clisp.org>
38779
38780         * gnulib-tool (func_import): Comment out code that spits out the
38781         new files with --dry-run.
38782
38783 2005-09-18  Bruno Haible  <bruno@clisp.org>
38784
38785         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
38786
38787 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
38788
38789         * lib/stat-time.h: New file.
38790         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
38791         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
38792         in a different way.
38793         (timespec_cmp): New function.
38794         * lib/utimecmp.c: Include stat-time.h.
38795         (SYSCALL_RESOLUTION): Depend on whether various struct stat
38796         members exist, not on the obsolescent ST_MTIM_NSEC.
38797         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
38798
38799 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
38800
38801         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
38802
38803 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
38804
38805         * MODULES.html.sh (File system functions): Add stat-time.
38806         * modules/stat-time: New file.
38807         * modules/timespec (Files): Remove m4/st_mtim.m4; this
38808         is now done in a different way, by the stat-time module.
38809         * modules/utimecmp (Depends-on): Add stat-time.
38810
38811 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
38812
38813         * m4/st_mtim.m4: Remove.  Superseded by...
38814         * m4/stat-time.m4: New file.
38815         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
38816         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
38817
38818 2005-09-15  Derek Price  <derek@ximbiot.com>
38819
38820         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
38821
38822 2005-09-15  Derek Price  <derek@ximbiot.com>
38823
38824         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
38825         * lib/regex_internal.c: Ditto, using this...
38826         (__GNUC_PREREQ): ...new macro.
38827         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
38828         using...
38829         (__GNUC_PREREQ): ...this new macro.
38830
38831         * lib/strstr.h: Include string.h. Define strstr as a macro here.
38832
38833 2005-09-15  Derek Price  <derek@ximbiot.com>
38834             Paul Eggert  <eggert@cs.ucla.edu>
38835
38836         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
38837         changes, consolidating in...
38838         * lib/regex_internal.h: ...this file.
38839
38840 2005-09-13  Jim Meyering  <jim@meyering.net>
38841
38842         * lib/canon-host.c: Filter through gnu indent and reword comments
38843         slightly.
38844         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
38845
38846 2005-09-13  Derek Price  <derek@ximbiot.com>
38847
38848         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
38849         failure.
38850         Reported by Jim Meyering  <jim@meyering.net>.
38851
38852 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
38853
38854         * lib/base64.c: Typo.
38855         (base64_encode): Put b64str in initialized data section.
38856
38857 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
38858
38859         Merge glibc and coreutils changes into gnulib, plus a few
38860         extra fixes.
38861         * lib/md5.c: Use #error rather than a string.
38862         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
38863         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
38864         (__attribute__): Define to empty for non recent-GCC.
38865         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
38866         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
38867         Renamed from their non-__ counterparts, with new macros replacing
38868         them if not _LIBC.  Add __THROW attribute.
38869         (rol): Remove.
38870         (struct md5_ctx): Align buffer if using GCC.
38871         * lib/sha1.h (struct sha1_ctx): Likewise.
38872         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
38873         The old name was backwards.
38874         (NOTSWAP): Remove; not used.
38875         (rol): New macro, moved here from md5.h.
38876         (sha1_process_block): Remove a FIXME that doesn't make sense.
38877
38878 2005-09-12  Derek Price  <derek@ximbiot.com>
38879
38880         Return usable errors from canon-host.
38881         * lib/canon-host.h: New file.
38882         * lib/canon-host.c (canon_host): Wrap...
38883         (canon_host_r): ...this new function, which now relies exclusively on
38884         getaddrinfo.
38885         (ch_strerror): New function.
38886         (last_cherror): New global.
38887         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
38888         interface.
38889         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
38890         void *.
38891         (freeaddrinfo): Free ai->ai_canonname when set.
38892
38893 2005-09-12  Derek Price  <derek@ximbiot.com>
38894
38895         Make canon-host require getaddrinfo.
38896         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
38897         AC_LIBSOURCE canon-host.h.  Call...
38898         (gl_PREREQ_CANON_HOST): ...this new function, which requires
38899         gl_GETADDRINFO.
38900         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
38901
38902 2005-09-12  Derek Price  <derek@ximbiot.com>
38903
38904         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
38905         LGPL.
38906         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
38907
38908 2005-09-12  Derek Price  <derek@ximbiot.com>
38909
38910         * lib/gai_strerror.c: Include config.h when available.  Include
38911         getaddrinfo.h before other headers to test interface.
38912         Reported by Larry Jones <lawrence.jones@ugs.com>.
38913
38914 2005-09-12  Derek Price  <derek@ximbiot.com>
38915             Paul Eggert  <eggert@cs.ucla.edu>
38916
38917         * modules/glob (Files): Add glob-libc.h.
38918
38919 2005-09-12  Derek Price  <derek@ximbiot.com>
38920             Paul Eggert  <eggert@cs.ucla.edu>
38921
38922         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
38923         glob_.h, glob-libc.h.
38924         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
38925
38926 2005-09-12  Derek Price  <derek@ximbiot.com>
38927             Paul Eggert  <eggert@cs.ucla.edu>
38928
38929         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
38930         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
38931         protecting things that should be done only in gnulib contexts.
38932         * lib/glob_.h: New file, containing only the glob things needed for
38933         gnulib.
38934         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
38935         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
38936         (glob, globfree, glob_pattern_p): Now defined simply in terms of
38937         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
38938         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
38939         and to respect the namespace rules better.
38940
38941 2005-09-08  Simon Josefsson  <jas@extundo.com>
38942
38943         * modules/socklen: New file.
38944
38945 2005-09-08  Simon Josefsson  <jas@extundo.com>
38946
38947         * m4/socklen.m4: New file.
38948
38949 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
38950
38951         * modules/utimens (Files): Add m4/utimbuf.m4, since
38952         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
38953         Reported by Sergey Poznyakoff.
38954
38955 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
38956
38957         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
38958         definitions, since that's the preferred style in glibc.
38959         Fix a minor spacing issue, and update copyright notice to match
38960         glibc's.
38961
38962 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
38963
38964         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
38965
38966 2005-09-06  Simon Josefsson  <jas@extundo.com>
38967
38968         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
38969         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
38970
38971 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
38972
38973         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
38974         warning.
38975
38976 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
38977
38978         * config/srclist.txt: Add glibc bug 1302.
38979
38980 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
38981
38982         Change bitset word type from unsigned int to unsigned long int,
38983         as this has better performance on typical 64-bit hosts.
38984         Port bitset code to hosts with unusual word sizes.
38985         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
38986         (build_collating_symbol):
38987         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
38988         argument is a bitset.  This is merely a style issue, but it makes
38989         it clearer that an entire array is expected.
38990         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
38991         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
38992         Port to the case where bitset_word is not the same as unsigned int.
38993         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
38994         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
38995         Likewise.
38996         * lib/regexec.c (check_dst_limits_calc_pos_1,
38997         check_subexp_matching_top):
38998         (build_trtable, group_nodes_into_DFAstates):
38999         Likewise.
39000         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
39001         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
39002         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
39003         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
39004         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
39005         * lib/regcomp.c (optimize_subexps, lower_subexp):
39006         Work even if bitset_word has holes in its bitwise representation.
39007         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
39008         * lib/regexec.c (check_dst_limits_calc_pos_1,
39009         check_subexp_matching_top):
39010         Likewise.
39011         * lib/regex_internal.c (re_string_reconstruct):
39012         Don't assume UCHAR_MAX == 255.
39013         * lib/regex_internal.h (bitset_set_all): Likewise.
39014         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
39015         All uses changed.
39016         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
39017         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
39018         All uses changed.
39019         (BITSET_WORD_MAX): New macro.
39020         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
39021         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
39022         (bitset_empty, bitset_copy):
39023         Prefer sizeof (bitset) to multiplying it out ourselves.
39024         (bitset_not_merge): Remove; unused.
39025         (bitset_contain): Return bool, not unsigned int with one bit on.
39026         All callers changed.
39027         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
39028         alignment than re_node_set; do this by defining a new internal
39029         type struct dests_alloc and using it to allocate memory.
39030
39031 2005-09-05  Bruno Haible  <bruno@clisp.org>
39032
39033         * gnulib-tool (func_import): Fix comparison in handling of symbolic
39034         links.
39035
39036 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
39037
39038         * modules/size_max (Makefile.am): Add size_max.h
39039
39040 2005-09-04  Derek Price  <derek@ximbiot.com>
39041
39042         * gnulib-tool (func_import): Fix reversed $symbolic logic.
39043
39044 2005-09-03  Simon Josefsson  <jas@extundo.com>
39045
39046         * gnulib-tool: Fix typo.
39047
39048 2005-09-03  Simon Josefsson  <jas@extundo.com>
39049
39050         * config/srclist.txt: Add glibc bug 1293.
39051
39052 2005-09-03  Derek Price  <derek@ximbiot.com>
39053
39054         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
39055         From Larry Jones <lawrence.jones@ugs.com>.
39056
39057 2005-09-02  Simon Josefsson  <jas@extundo.com>
39058
39059         * modules/socklen: New file.
39060
39061 2005-09-02  Simon Josefsson  <jas@extundo.com>
39062
39063         * modules/havelib: New module.
39064
39065         * modules/gettext, modules/iconv, modules/lock, modules/readline:
39066         Use havelib.
39067
39068 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
39069
39070         Check for arithmetic overflow when calculating sizes, to prevent
39071         some buffer-overflow issues.  These patches are conservative, in the
39072         sense that when I couldn't determine whether an overflow was possible,
39073         I inserted a run-time check.
39074         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
39075         macros.
39076         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
39077         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
39078         (re_xnrealloc, re_x2nrealloc): New inline functions.
39079         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
39080         parse_bracket_exp):
39081         (build_equiv_class, build_charclass): Check for arithmetic overflow
39082         in size expression calculations.
39083         * lib/regex_internal.c (re_string_realloc_buffers):
39084         (build_wcs_upper_buffer, re_node_set_add_intersect):
39085         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
39086         (re_dfa_add_node, register_state): Likewise.
39087         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
39088         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
39089         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
39090         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
39091
39092 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
39093
39094         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
39095         m4/ulonglong.m4.  Problem reported by Martin Lambers.
39096
39097 2005-09-02  Bruno Haible  <bruno@clisp.org>
39098
39099         Support for lib vs. lib64 distinction on biarch platforms.
39100         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
39101         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
39102         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
39103
39104 2005-09-02  Bruno Haible  <bruno@clisp.org>
39105
39106         * gnulib-tool (import): In the other first-use case, provide defaults
39107         as well.
39108
39109 2005-09-02  Bruno Haible  <bruno@clisp.org>
39110
39111         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
39112         patches not yet found in the latest gettext release.
39113
39114 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
39115
39116         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
39117         to avoid a collision with bits/local_lim.h in glibc.
39118         All uses changed.  Problem reported by Dmitry V. Levin in
39119         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
39120
39121         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
39122         bugs in int versus size_t comparisons.
39123         (re_string_context_at): Fix bug where the code assumed that
39124         Idx is signed.
39125
39126         Use bool where appropriate.
39127         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
39128         All callers changed.
39129         (calc_eclosure_iter): Likewise, for ROOT arg.
39130         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
39131         (build_charclass_op): Likewise, for NON_MATCH arg.
39132         * lib/regex_internal.c (re_string_allocate, re_string_construct):
39133         (re_string_construct_common): Likewise, for ICASE arg.
39134         * lib/regexec.c (re_search_2_stub, re_search_stub):
39135         Likewise, for RET_LEN arg.
39136         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
39137         (set_regs): Likewise, for FL_BACKTRACK arg.
39138         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
39139         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
39140         (calc_eclosure_iter, parse_bracket_exp):
39141         Use bool for internal variables that are booleans.
39142         * lib/regexec.c (re_search_internal, check_matching,
39143         proceed_next_node):
39144         (set_regs, build_sifted_states, sift_states_bkref):
39145         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
39146         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
39147         (find_collation_sequence_value):
39148         Likewise.
39149         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
39150         (re_node_set_compare):
39151         Return bool, not int. All callers changed.
39152         * lib/regexec.c (check_halt_node_context, check_dst_limits):
39153         (build_trtable, check_node_accept): Likewise.
39154         * lib/regex_internal.h: Include stdbool.h.
39155
39156         Fix bugs uncovered when converting to bool.
39157         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
39158         failure instead of charging ahead blindly.
39159         * lib/regex_internal.c (register_state): Likewise.
39160         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
39161         for freeing internal storage.
39162         (group_nodes_into_DFA_states): Use unsigned int, not int, for
39163         bitset pieces used as boolean, to avoid undefined behavior
39164         on hosts that do int overflow checking.
39165
39166 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
39167
39168         * config/srclist.txt: Add glibc bugs 1285-1287.
39169
39170 2005-09-01  Jim Meyering  <jim@meyering.net>
39171
39172         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
39173         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
39174         Require gl_STAT_MACROS, too.
39175
39176 2005-09-01  Bruno Haible  <bruno@clisp.org>
39177
39178         * gnulib-tool (import): In the first-use case, provide defaults.
39179
39180 2005-09-01  Bruno Haible  <bruno@clisp.org>
39181
39182         * gnulib-tool (func_import): Remove the .tmp files.
39183
39184 2005-09-01  Bruno Haible  <bruno@clisp.org>
39185
39186         * gnulib-tool (func_import): Fix handling of symbolic links.
39187
39188 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
39189
39190         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
39191         old glibc regex code mishandles strings longer than 2**31 bytes.
39192         This patch fixes this when the regex code is used in gnulib
39193         (i.e., outside glibc).
39194
39195         This patch should not affect the use of the regex code inside
39196         glibc.  No doubt this problem also needs to be handled for glibc
39197         as well, but the result will be an incompatible change to the
39198         glibc ABI, and the old ABI will have to be supported too.  That
39199         can be the the subject for another patch.
39200
39201         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
39202         governing whether the rest of this patch is active.  By default,
39203         the macro is disabled and the patch has no effect.
39204         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
39205         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
39206         (struct re_pattern_buffer, re_search, re_search_2, re_match):
39207         (re_match_2, re_set_registers): Use the new types.
39208         * lib/regex_internal.h (Idx, re_hashval_t): New types.
39209         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
39210         New macros.
39211         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
39212         (re_string_context_at, bin_tree_t, re_dfastate_t):
39213         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
39214         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
39215         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
39216         (re_string_char_size_at, re_string_wchar_at):
39217         (re_string_elem_size_at):
39218         Use the new types and macros to port to 64-bit hosts.
39219         Use unsigned types for internal values, so that the code
39220         mostly works even for arrays larger than SSIZE_MAX.
39221         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
39222         (search_duplicated_node, calc_eclosure_iter, fetch_number):
39223         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
39224         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
39225         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
39226         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
39227         (calc_inveclosure, parse_dup_op, build_range_exp):
39228         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
39229         (fetch_number, create_token_tree, mark_opt_subexp):
39230         Likewise.
39231         * lib/regex_internal.c (re_string_construct_common,
39232         create_ci_newstate):
39233         (create_cd_newstate, re_string_allocate, re_string_construct):
39234         (re_string_realloc_buffers, build_wcs_upper_buffer):
39235         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
39236         (re_string_reconstruct, re_string_peek_byte_case):
39237         (re_string_fetch_byte_case, re_string_context_at):
39238         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
39239         (re_node_set_init_copy, re_node_set_add_intersect):
39240         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
39241         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
39242         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
39243         (re_acquire_state, re_acquire_state_context, register_state):
39244         Likewise.
39245         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
39246         search_cur_bkref_entry):
39247         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
39248         (re_search_internal, re_search_2_stub, re_search_stub)
39249         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
39250         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
39251         (update_cur_sifted_state, check_dst_limits):
39252         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
39253         (check_subexp_limits, sift_states_bkref, merge_state_array):
39254         (check_subexp_matching_top, get_subexp, get_subexp_sub):
39255         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
39256         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
39257         (expand_bkref_cache, check_node_accept_bytes):
39258         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
39259         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
39260         (acquire_init_state_context, check_halt_node_context):
39261         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
39262         (sift_states_backward, clean_state_log_if_needed):
39263         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
39264         (find_recover_state, transit_state_sb, transit_state_mb):
39265         (transit_state_bkref, build_trtable, match_ctx_clean):
39266         Likewise.
39267         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
39268         to work around an assumption that REG_MISSING is negative.
39269
39270         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
39271         (seek_collating_symbol_entry) [defined _LIBC]:
39272         (lookup_collation_sequence_value) [defined _LIBC]:
39273         (build_range_exp, build_collating_symbol) [defined _LIBC]:
39274         Use prototypes rather than old-style function definitions.
39275         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
39276         (transit_state_sb) [0]:
39277         (find_collation_sequence_value) [defined _LIBC]: Likewise.
39278
39279         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
39280         rm_eo.
39281
39282         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
39283         (optimize_subexps, lower_subexp):
39284         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
39285         since the signed shift might overflow.  Use 1u<<31 instead.
39286         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
39287         Likewise.
39288         * lib/regexec.c (check_dst_limits_calc_pos_1,
39289         check_subexp_matching_top): Likewise.
39290
39291         * lib/regcomp.c (optimize_subexps, lower_subexp):
39292         Use CHAR_BIT rather than 8, for clarity.
39293         * lib/regexec.c (check_dst_limits_calc_pos_1):
39294         (check_subexp_matching_top): Likewise.
39295         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
39296         have to worry about portability issues when shifting it left.
39297         Remove no-longer-needed test for table_size > 0.
39298         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
39299         in a word, as the resulting behavior is undefined.
39300         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
39301         in one case, a <= should have been an <, and in another case the
39302         whole test was missing.
39303         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
39304         the standard name CHAR_BIT.
39305         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
39306         this is not true on one's complement and signed-magnitude hosts.
39307
39308         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
39309         next_last_offset.
39310         (struct re_dfa_t): Remove unused member states_alloc.
39311         * lib/regcomp.c (init_dfa): Don't initialize unused members.
39312
39313 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
39314
39315         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
39316         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
39317         and large-file glibc and in 32-bit large-file Solaris.
39318
39319 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
39320
39321         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
39322         lengths fit in regoff_t; this isn't true if regoff_t is the same
39323         width as size_t.
39324         * lib/regex.c (re_search_internal): 5th arg is LAST_START
39325         (= START + RANGE) instead of RANGE.  This avoids overflow
39326         problems when regoff_t is the same width as size_t.
39327         All callers changed.
39328         (re_search_2_stub): Check for overflow when adding the
39329         sizes of the two strings.
39330         (re_search_stub): Check for overflow when adding START
39331         to RANGE; if it occurs, substitute the extreme value.
39332
39333 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
39334
39335         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
39336
39337 2005-08-31  Jim Meyering  <jim@meyering.net>
39338
39339         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
39340         a pointer-to-const.
39341         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
39342         (register_state): Likewise.
39343         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
39344         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
39345         (group_nodes_into_DFAstates): Likewise.
39346
39347 2005-08-31  Jim Meyering  <jim@meyering.net>
39348
39349         * check-module: Add a FIXME comment.
39350
39351 2005-08-31  Eric Blake  <ebb9@byu.net>
39352
39353         * modules/unistd-safer (Files): Add unistd--.h.
39354         * modules/stdio-safer (Files): Add stdio--.h.
39355
39356 2005-08-31  Derek Price  <derek@ximbiot.com>
39357
39358         * lib/getdelim.c (getdelim): Return EOF on EOF.
39359         Reported by Larry Jones <lawrence.jones@ugs.com>.
39360
39361 2005-08-31  Bruno Haible  <bruno@clisp.org>
39362
39363         Avoid unnecessary diffs in the generated lib/Makefile.am.
39364         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
39365         the generated files.
39366         (func_import): Don't set cmd.
39367
39368 2005-08-31  Bruno Haible  <bruno@clisp.org>
39369
39370         * lib/strstr.c: Include <stddef.h>, for NULL.
39371         * lib/strcasestr.c: Likewise.
39372         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
39373
39374 2005-08-31  Bruno Haible  <bruno@clisp.org>
39375
39376         * gnulib-tool: New option --macro-prefix.
39377         (func_import): Use macro_prefix.
39378         (import): Handle option --macro-prefix.
39379
39380 2005-08-31  Bruno Haible  <bruno@clisp.org>
39381
39382         * gnulib-tool (import): Rename most ac_* variables to cached_*.
39383         Also use new variables cached_lgpl, cached_libtool.
39384
39385 2005-08-31  Bruno Haible  <bruno@clisp.org>
39386
39387         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
39388         always instantiating them.
39389
39390 2005-08-31  Bruno Haible  <bruno@clisp.org>
39391
39392         * gnulib-tool (func_import): Read the previous cached settings
39393         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
39394         earlier added by gnulib but are now dropped. Warn when a gnulib file
39395         overwrites a non-gnulib file.
39396
39397 2005-08-31  Bruno Haible  <bruno@clisp.org>
39398
39399         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
39400         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
39401         projects that don't keep autogenerated files in CVS. Put into
39402         actioncmd only the specified modules, not the transitive closure.
39403
39404 2005-08-31  Bruno Haible  <bruno@clisp.org>
39405
39406         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
39407         Create directories that shall be filled.
39408         (import): Don't look for gl_* macros in configure.ac. Recurse across
39409         all directories containing a gnulib-cache.m4 files, if meaningful.
39410
39411 2005-08-31  Bruno Haible  <bruno@clisp.org>
39412
39413         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
39414         (import): Set seen_libtool when we see gl_LIBTOOL.
39415
39416 2005-08-31  Bruno Haible  <bruno@clisp.org>
39417
39418         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
39419         declaration macro definitions from generated gnulib.m4.
39420
39421 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
39422
39423         * lib/iconvme.h: Add prototype for iconv_alloc.
39424
39425 2005-08-29  Simon Josefsson  <jas@extundo.com>
39426
39427         * lib/iconvme.c: Fix errno.
39428
39429 2005-08-29  Bruno Haible  <bruno@clisp.org>
39430
39431         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
39432         that it works when the directory contains spaces.
39433
39434 2005-08-29  Bruno Haible  <bruno@clisp.org>
39435
39436         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
39437
39438 2005-08-29  Bruno Haible  <bruno@clisp.org>
39439
39440         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
39441         Emit more advice.
39442
39443 2005-08-29  Bruno Haible  <bruno@clisp.org>
39444         and Stepan Kasal  <kasal@ucw.cz>
39445
39446         * check-module: If more parameters are given, check each of them
39447         separately; add more exceptions, as noted by Jim Meyering.
39448         (check_module): New procedure.
39449         (%exempt_header): Now contains all exceptions.
39450
39451 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
39452
39453         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
39454
39455 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
39456
39457         * lib/iconvme.c: Split iconv_string into iconv_alloc.
39458
39459 2005-08-28  Bruno Haible  <bruno@clisp.org>
39460
39461         * m4/gnulib-tool.m4: New file.
39462
39463 2005-08-27  Jim Meyering  <jim@meyering.net>
39464
39465         * modules/unistd-safer (Files): Add pipe-safer.c.
39466         * modules/fcntl-safer (Files): Add creat-safer.c.
39467
39468 2005-08-27  Jim Meyering  <jim@meyering.net>
39469
39470         * m4/stdlib-safer.m4: New file.  From coreutils.
39471         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
39472         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
39473         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
39474         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
39475         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
39476
39477 2005-08-27  Jim Meyering  <jim@meyering.net>
39478
39479         * lib/fopen-safer.c: Merge minor changes from coreutils.
39480         * lib/dup-safer.c: Likewise.
39481         * lib/fd-safer.c: Likewise.
39482
39483         Merge from coreutils.
39484         * lib/stdio--.h: New file.
39485         * lib/stdlib--.h: New file.
39486         * lib/mkstemp-safer.c: New file.
39487
39488         GNU tar needs these.
39489         * lib/pipe-safer.c: New file.
39490         * lib/creat-safer.c: New file.
39491         * lib/fcntl--.h (creat): Define to creat_safer.
39492         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
39493         * lib/unistd--.h (pipe): Define to pipe_safer.
39494         * lib/unistd-safer.h: Declare pipe_safer.
39495
39496 2005-08-26  Simon Josefsson  <jas@extundo.com>
39497
39498         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
39499         Haible <bruno@clisp.org>.
39500
39501 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
39502
39503         * lib/regex_internal.h: Remove all references to
39504         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
39505         or better.
39506         (bitset_not, bitset_merge, bitset_not_merge):
39507         (bitset_mask, re_string_allocate, re_string_construct):
39508         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
39509         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
39510         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
39511         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
39512         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
39513         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
39514         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
39515         (re_acquire_state_context):
39516         Remove unnecessary forward decls.
39517         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
39518         Put __attribute at function definition,
39519         now that the function decl has been removed.
39520         * lib/regex_internal.c (re_string_peek_byte_case):
39521         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
39522         Likewise.
39523
39524 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
39525
39526         * m4/regex.m4: Add AC_PREREQ(2.50).
39527         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
39528
39529 2005-08-25  Simon Josefsson  <jas@extundo.com>
39530
39531         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
39532         __fsetlocking.
39533
39534 2005-08-25  Simon Josefsson  <jas@extundo.com>
39535
39536         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
39537         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
39538         GLIBC specific code.
39539
39540 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
39541
39542         Make regex safe for g++.  This fixes one real bug (an "err"
39543         that should have been "*err").  g++ problem reported by
39544         Sam Steingold.
39545         * lib/regex_internal.h (re_calloc): New macro, consistent with
39546         re_malloc etc.  All callers of calloc changed to use re_calloc.
39547         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
39548         not int.  All callers changed.
39549         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
39550         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
39551         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
39552         (find_recover_state): Change "err" to "*err"; this fixes what
39553         appears to be a real bug.
39554         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
39555         versus int.
39556
39557 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
39558
39559         * modules/regex (Depends-on): Add malloc, since the code
39560         assumes that !malloc(0) means failure.
39561
39562 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
39563
39564         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
39565
39566         alloca modernization/simplification for regex.
39567         * lib/regex.c: Remove portability cruft for alloca.  This no longer
39568         needs to be at the start of the file, and can be moved into
39569         regex_internal.h and simplified.
39570         * lib/regex_internal.h: Include <alloca.h>.
39571         (__libc_use_alloca) [!defined _LIBC]: New macro.
39572         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
39573         now works outside glibc.
39574
39575 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
39576
39577         * config/srclist.txt: Add glibc bugs 1241, 1245.
39578
39579 2005-08-25  Jim Meyering  <jim@meyering.net>
39580
39581         * lib/open-safer.c: Include <config.h>.
39582         Otherwise, we'd lose LARGEFILE support in any file using
39583         e.g. "fcntl--.h"
39584
39585 2005-08-25  Bruno Haible  <bruno@clisp.org>
39586
39587         * m4/minmax.m4: Require autoconf 2.52.
39588         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
39589         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
39590         alternatives of translit over the alphabet.
39591         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
39592
39593 2005-08-24  Simon Josefsson  <jas@extundo.com>
39594
39595         * tests/test-getpass.c: New file.
39596
39597 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
39598
39599         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
39600         for GNU regex features.
39601
39602 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
39603
39604         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
39605         * lib/regex.h (regerror): Likewise.
39606
39607         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
39608         requires this.  (The code never needed it.)
39609
39610         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
39611         All uses of recently-renamed identifiers changed to use the new,
39612         POSIX-compliant names.  The code will build and run just fine
39613         without these changes, but it's better to eat our own dog food
39614         and use the standard-conforming names.
39615
39616         * lib/regex.h: Fix a multitude of POSIX name space violations.
39617         These changes have an effect only for programs that define
39618         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
39619         do not change anything for programs compiled in the normal way.
39620         Also, there is no effect on the ABI.
39621
39622         (_REGEX_SOURCE): New macro.
39623         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
39624         defined and _GNU_SOURCE is not; this fixes a name space violation.
39625
39626         Rename the following macros to obey POSIX requirements.
39627         The old names are still visible as macros if _REGEX_SOURCE is defined.
39628         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
39629         RE_BACKSLASH_ESCAPE_IN_LISTS.
39630         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
39631         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
39632         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
39633         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
39634         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
39635         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
39636         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
39637         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
39638         (REG_INTERVALS): renamed from RE_INTERVALS.
39639         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
39640         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
39641         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
39642         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
39643         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
39644         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
39645         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
39646         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
39647         RE_UNMATCHED_RIGHT_PAREN_ORD.
39648         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
39649         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
39650         (REG_DEBUG): renamed from RE_DEBUG.
39651         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
39652         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
39653         unusual, since we can't clash with the POSIX REG_ICASE.
39654         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
39655         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
39656         (REG_NO_SUB): renamed from RE_NO_SUB.
39657         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
39658         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
39659         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
39660         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
39661         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
39662         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
39663         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
39664         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
39665         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
39666         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
39667         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
39668         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
39669         RE_SYNTAX_POSIX_MINIMAL_BASIC.
39670         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
39671         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
39672         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
39673         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
39674         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
39675         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
39676         (REG_FIXED): Renamed from REGS_FIXED.
39677         (REG_NREGS): Renamed from RE_NREGS.
39678
39679         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
39680         of other REG_* macros, since POSIX says the user is allowed to
39681         #undef these macros selectively.
39682
39683         (reg_errcode_t): Update comment stating what other tables need
39684         to be consistent.
39685
39686         Rename the following enum values to obey POSIX requirements.
39687         The old names are still visible as macros.
39688         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
39689         is not defined, since GNU is supposed to be a superset of POSIX as
39690         much as possible, and since we want reg_errcode_t to be a signed
39691         type for implementation consistency.
39692         (_REG_NOERROR): Renamed from REG_NOERROR.
39693         (_REG_NOMATCH): Renamed from REG_NOMATCH.
39694         (_REG_BADPAT): Renamed from REG_BADPAT.
39695         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
39696         (_REG_ECTYPE): Renamed from REG_ECTYPE.
39697         (_REG_EESCAPE): Renamed from REG_EESCAPE.
39698         (_REG_ESUBREG): Renamed from REG_ESUBREG.
39699         (_REG_EBRACK): Renamed from REG_EBRACK.
39700         (_REG_EPAREN): Renamed from REG_EPAREN.
39701         (_REG_EBRACE): Renamed from REG_EBRACE.
39702         (_REG_BADBR): Renamed from REG_BADBR.
39703         (_REG_ERANGE): Renamed from REG_ERANGE.
39704         (_REG_ESPACE): Renamed from REG_ESPACE.
39705         (_REG_BADRPT): Renamed from REG_BADRPT.
39706         (_REG_EEND): Renamed from REG_EEND.
39707         (_REG_ESIZE): Renamed from REG_ESIZE.
39708         (_REG_ERPAREN): Renamed from REG_ERPAREN.
39709         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
39710         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
39711         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
39712         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
39713
39714         (_REG_RE_NAME, _REG_RM_NAME): New macros.
39715         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
39716         changed.  But support the old name if the new one is not defined
39717         and if _REGEX_SOURCE.
39718
39719         Change the following member names in struct re_pattern_buffer.
39720         The old names are still supported if !_REGEX_SOURCE.
39721         The new names are always supported, regardless of _REGEX_SOURCE.
39722         (re_buffer): Renamed from buffer.
39723         (re_allocated): Renamed from allocated.
39724         (re_used): Renamed from used.
39725         (re_syntax): Renamed from syntax.
39726         (re_fastmap): Renamed from fastmap.
39727         (re_translate): Renamed from translate.
39728         (re_can_be_null): Renamed from can_be_null.
39729         (re_regs_allocated): Renamed from regs_allocated.
39730         (re_fastmap_accurate): Renamed from fastmap_accurate.
39731         (re_no_sub): Renamed from no_sub.
39732         (re_not_bol): Renamed from not_bol.
39733         (re_not_eol): Renamed from not_eol.
39734         (re_newline_anchor): Renamed from newline_anchor.
39735
39736         Change the following member names in struct re_registers.
39737         The old names are still supported if !_REGEX_SOURCE.
39738         The new names are always supported, regardless of _REGEX_SOURCE.
39739         (rm_num_regs): Renamed from num_regs.
39740         (rm_start): Renamed from start.
39741         (rm_end): Renamed from end.
39742
39743         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
39744         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
39745         Prepend __ to parameter names.
39746
39747         Undo yesterday's changes.
39748
39749 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
39750
39751         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
39752         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
39753         lib/regex.c.
39754
39755 2005-08-24  Jim Meyering  <jim@meyering.net>
39756
39757         Sync from coreutils.
39758         * m4/fcntl-safer.m4: New file.
39759
39760         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
39761         and object files for this module.
39762
39763 2005-08-24  Jim Meyering  <jim@meyering.net>
39764
39765         Sync from coreutils.
39766         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
39767
39768 2005-08-24  Jim Meyering  <jim@meyering.net>
39769
39770         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
39771         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
39772
39773 2005-08-24  Jim Meyering  <jim@meyering.net>
39774
39775         * modules/fcntl-safer: New module.
39776         * modules/fts (Depends-on): Add fcntl-safer.
39777         * MODULES.html.sh (File descriptor based Input/Output):
39778         Add fcntl-safer.
39779
39780 2005-08-24  Bruno Haible  <bruno@clisp.org>
39781
39782         Support for unit test modules.
39783         * modules/README: Mention tests modules.
39784         * modules/TEMPLATE-TESTS: New file.
39785         * gnulib-tool: New options --extract-tests-module, --with-tests and
39786         --tests-base (unused for the moment).
39787         (testsbase, inctests): New variables.
39788         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
39789         (func_verify_module): Exclude TEMPLATE-TESTS.
39790         (func_verify_nontests_module, func_verify_tests_module): New functions.
39791         (func_get_dependencies): Add implicit dependency for tests modules.
39792         (func_get_tests_module): New function.
39793         (func_modules_transitive_closure): When --with-tests was specified,
39794         include the unit tests as well, unless explicitly avoided.
39795         (func_emit_lib_Makefile_am): Ignore the tests modules here.
39796         (func_emit_tests_Makefile_am): New function.
39797         (func_create_testdir): When --with-tests was specified, emit a
39798         tests/ directory.
39799         * MODULES.html.sh (Future developments): Update.
39800
39801 2005-08-24  Bruno Haible  <bruno@clisp.org>
39802
39803         * modules/tls-tests: New file.
39804         * tests/test-tls.c: New file, from GNU gettext.
39805
39806 2005-08-24  Bruno Haible  <bruno@clisp.org>
39807
39808         * modules/lock-tests: New file.
39809         * tests/test-lock.c: New file, from GNU gettext.
39810
39811 2005-08-24  Bruno Haible  <bruno@clisp.org>
39812
39813         * lib/lock.h: Add multiple inclusion guard.
39814         * lib/tls.h: Add multiple inclusion guard.
39815
39816 2005-08-24  Bruno Haible  <bruno@clisp.org>
39817
39818         * gnulib-tool: Add support for the --aux-dir option to
39819         --create-testdir, --create-megatestdir, --test, --megatest.
39820         (func_create_testdir, func_create_megatestdir): Optionally emit a
39821         AC_CONFIG_AUX_DIR directive.
39822         (create-testdir, create-megatestdir, test, megatest): Provide a
39823         default value for $auxdir.
39824
39825 2005-08-24  Bruno Haible  <bruno@clisp.org>
39826
39827         * gnulib-tool (import): Use compound statement instead of subshell
39828         where possible.
39829
39830 2005-08-24  Bruno Haible  <bruno@clisp.org>
39831
39832         * gnulib-tool (import): Change --aux-dir default to "build-aux".
39833
39834 2005-08-24  Bruno Haible  <bruno@clisp.org>
39835
39836         * gnulib-tool (func_version): Update.
39837
39838 2005-08-24  Bruno Haible  <bruno@clisp.org>
39839
39840         * gnulib-tool (func_import, func_create_testdir,
39841         func_create_megatestdir): Quote all autoconf macro arguments.
39842
39843 2005-08-24  Bruno Haible  <bruno@clisp.org>
39844
39845         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
39846         option --force, because --force causes the aclocal.m4 of each
39847         subdirectory to be newer than the corresponding config.h.in.
39848
39849 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
39850
39851         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
39852         All contents moved to gl_REGEX.
39853         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
39854         assume that it does.
39855
39856 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
39857
39858         * lib/regex.h (REG_NOSYS)
39859         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
39860         Define, since POSIX requires it as of 2001.
39861         (_REG_ENOSYS)
39862         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
39863         New private symbol, used to keep the enum signed in all cases.
39864         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
39865         Youngman in
39866         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
39867
39868         * lib/regex_internal.c (re_string_skip_chars, register_state):
39869         (calc_state_hash):
39870         Remove forward decls; no longer needed now that we use prototypes.
39871         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
39872         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
39873         (clean_state_log_if_needed): Likewise.
39874
39875 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
39876
39877         * config/srclist.txt: Add glibc bugs 1231-1233.
39878
39879 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
39880
39881         Fix problems reported by Sam Steingold in
39882         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
39883         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
39884         assumed that reg_errcode_t is a signed type, which is not
39885         necessarily true if _XOPEN_SOURCE is not defined.
39886         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
39887         since some compilers warn about it otherwise.
39888
39889 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
39890
39891         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
39892         (init_word_char, create_initial_state, duplicate_node_closure):
39893         (fetch_token, peek_token_bracket, build_range_exp):
39894         (build_collating_symbol): Remove forward decls; no longer needed
39895         now that we use prototypes.
39896
39897         * lib/regcomp.c:
39898         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
39899         (re_compile_fastmap_iter, regcomp, regerror, regfree):
39900         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
39901         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
39902         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
39903         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
39904         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
39905         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
39906         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
39907         (build_range_exp, build_collating_symbol, parse_bracket_exp):
39908         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
39909         (build_charclass, build_charclass_op, fetch_number, create_tree):
39910         (create_token_tree, mark_opt_subexp, duplicate_tree):
39911         Use prototypes rather than old-style definitions.
39912
39913         * lib/regex_internal.c:
39914         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
39915         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
39916         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
39917         (re_string_reconstruct, re_string_peek_byte_case):
39918         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
39919         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
39920         (re_node_set_init_copy, re_node_set_add_intersect):
39921         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
39922         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
39923         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
39924         (re_acquire_state, re_acquire_state_context, register_state):
39925         (create_ci_newstate, create_cd_newstate, free_state):
39926         Likewise.
39927         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
39928         re_search_2):
39929         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
39930         (re_search_internal, prune_impossible_nodes):
39931         (acquire_init_state_context, check_matching, static):
39932         (check_halt_node_context, check_halt_state_context, proceed_next_node):
39933         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
39934         (update_regs, sift_states_backward, build_sifted_states):
39935         (clean_state_log_if_needed, merge_state_array):
39936         (update_cur_sifted_state, add_epsilon_src_nodes):
39937         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
39938         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
39939         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
39940         (find_recover_state, check_subexp_matching_top, transit_state_mb):
39941         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
39942         (check_arrival, check_arrival_add_next_nodes):
39943         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
39944         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
39945         (check_node_accept_bytes, check_node_accept, extend_buffers):
39946         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
39947         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
39948         (sift_ctx_init):
39949         Likewise.
39950
39951         * lib/regex_internal.h:
39952         (re_string_allocate, re_string_construct, re_string_reconstruct):
39953         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
39954         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
39955         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
39956         (re_string_context_at, re_string_peek_byte_case):
39957         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
39958         is defined, since we now use prototypes always.
39959
39960         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
39961         C89 or better.  All uses removed.
39962
39963 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
39964
39965         * config/srclist.txt: Add glibc bugs 1220-1227.
39966
39967 2005-08-20  Jim Meyering  <jim@meyering.net>
39968
39969         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
39970         of unused local, dfa.
39971
39972 2005-08-20  Bruno Haible  <bruno@clisp.org>
39973
39974         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
39975
39976 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
39977
39978         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
39979         (re_node_set_insert_last, re_dfa_add_node):
39980         Rename local variables to avoid GCC shadowing warnings.
39981
39982 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
39983
39984         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
39985         [defined lint]: Suppress bogus uninitialized-variable warnings.
39986
39987         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
39988         and let the caller return REG_ESPACE if out of space.  This
39989         removes an uninitialied-variable warning with GCC 4.0.1, and also
39990         avoids taking the address of a local variable.  All callers
39991         changed.
39992
39993 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
39994
39995         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
39996         $LIBCSRC/posix/regexec.c.
39997         Add glibc bug 1217 for regcomp.c.
39998
39999 2005-08-19  Jim Meyering  <jim@meyering.net>
40000
40001         * lib/regexec.c (proceed_next_node): Redo local variables to
40002         avoid GCC shadowing warnings.
40003
40004 2005-08-18  Bruno Haible  <bruno@clisp.org>
40005
40006         * lib/strstr.c (strstr): Fix return value in multibyte case.
40007         * lib/strcasestr.c (strcasestr): Likewise.
40008
40009 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
40010
40011         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
40012
40013 2005-08-17  Jim Meyering  <jim@meyering.net>
40014
40015         Make the %s format (seconds since the epoch) work for a negative
40016         number and when used with a zero-padded field width, e.g. %015s.
40017
40018         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
40019         label so that it precedes the code to set `digits'.  Otherwise,
40020         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
40021         print `00-22'.  Now, it prints `-0022', as it should.
40022
40023 2005-08-17  Bruno Haible  <bruno@clisp.org>
40024
40025         * modules/strstr (Files): Add m4/mbrtowc.m4.
40026         (Depends-on): Add mbuiter.
40027
40028 2005-08-17  Bruno Haible  <bruno@clisp.org>
40029
40030         * modules/strcasestr: New file.
40031         * MODULES.html.sh (String handling, based on ANSI C 89): Add
40032         strcasestr.
40033
40034 2005-08-17  Bruno Haible  <bruno@clisp.org>
40035
40036         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
40037
40038 2005-08-17  Bruno Haible  <bruno@clisp.org>
40039
40040         * modules/mbuiter: New file.
40041         * MODULES.html.sh (Extended multibyte and wide character utilities):
40042         Add mbuiter.
40043
40044 2005-08-17  Bruno Haible  <bruno@clisp.org>
40045
40046         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
40047         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
40048
40049 2005-08-17  Bruno Haible  <bruno@clisp.org>
40050
40051         * m4/strcasestr.m4: New file.
40052
40053 2005-08-17  Bruno Haible  <bruno@clisp.org>
40054
40055         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
40056         * lib/strstr.c: Completely rewritten, with multibyte locale support.
40057
40058 2005-08-17  Bruno Haible  <bruno@clisp.org>
40059
40060         * lib/strcasestr.h: New file.
40061         * lib/strcasestr.c: New file.
40062
40063 2005-08-17  Bruno Haible  <bruno@clisp.org>
40064
40065         * lib/strcasecmp.c: Use mbuiter.h.
40066
40067 2005-08-17  Bruno Haible  <bruno@clisp.org>
40068
40069         * lib/mbuiter.h: New file.
40070
40071 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
40072
40073         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
40074         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
40075         and gl_GETOPT are both invoked via different paths (as happens
40076         with GNU tar CVS because it uses both argp and getopt), the former
40077         wins.
40078
40079 2005-08-16  Bruno Haible  <bruno@clisp.org>
40080
40081         * modules/tls: New file.
40082         * MODULES.html.sh (Multithreading): Add tls.
40083
40084 2005-08-16  Bruno Haible  <bruno@clisp.org>
40085
40086         * modules/strnlen1: New file.
40087         * MODULES.html.sh (String handling): Add strnlen1.
40088
40089 2005-08-16  Bruno Haible  <bruno@clisp.org>
40090
40091         * modules/strcase (Files): Add m4/mbrtowc.m4.
40092         (Depends-on): Add strnlen1, mbchar.
40093
40094 2005-08-16  Bruno Haible  <bruno@clisp.org>
40095
40096         * modules/mbiter: New file.
40097         * MODULES.html.sh (Extended multibyte and wide character utilities):
40098         Add mbiter.
40099
40100 2005-08-16  Bruno Haible  <bruno@clisp.org>
40101
40102         * modules/mbfile: New file.
40103         * MODULES.html.sh (Extended multibyte and wide character utilities):
40104         Add mbfile.
40105
40106 2005-08-16  Bruno Haible  <bruno@clisp.org>
40107
40108         * modules/mbchar: New file.
40109         * MODULES.html.sh (Extended multibyte and wide character utilities):
40110         New section.
40111
40112 2005-08-16  Bruno Haible  <bruno@clisp.org>
40113
40114         * m4/tls.m4: New file, from GNU gettext.
40115
40116 2005-08-16  Bruno Haible  <bruno@clisp.org>
40117
40118         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
40119         always.
40120         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
40121
40122 2005-08-16  Bruno Haible  <bruno@clisp.org>
40123
40124         * m4/mbiter.m4: New file.
40125
40126 2005-08-16  Bruno Haible  <bruno@clisp.org>
40127
40128         * m4/mbfile.m4: New file.
40129
40130 2005-08-16  Bruno Haible  <bruno@clisp.org>
40131
40132         * m4/mbchar.m4: New file.
40133
40134 2005-08-16  Bruno Haible  <bruno@clisp.org>
40135
40136         * lib/tls.h: New file, from GNU gettext.
40137         * lib/tls.c: New file, from GNU gettext.
40138
40139 2005-08-16  Bruno Haible  <bruno@clisp.org>
40140
40141         * lib/strnlen1.h: New file.
40142         * lib/strnlen1.c: New file.
40143
40144 2005-08-16  Bruno Haible  <bruno@clisp.org>
40145
40146         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
40147         (mbi_init): Update.
40148         (mbi_avail, mbi_advance): Let the iteration end before the terminating
40149         NUL byte, not after it.
40150
40151 2005-08-16  Bruno Haible  <bruno@clisp.org>
40152
40153         * lib/strcase.h (strcasecmp): Add note in comments.
40154         * lib/strncasecmp.c: Use code from strcasecmp.c.
40155         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
40156         (strcasecmp): Work correctly in multibyte locales.
40157
40158 2005-08-16  Bruno Haible  <bruno@clisp.org>
40159
40160         * lib/mbiter.h: New file.
40161
40162 2005-08-16  Bruno Haible  <bruno@clisp.org>
40163
40164         * lib/mbfile.h: New file.
40165
40166 2005-08-16  Bruno Haible  <bruno@clisp.org>
40167
40168         * lib/mbchar.h: New file.
40169         * lib/mbchar.c: New file.
40170
40171 2005-08-16  Bruno Haible  <bruno@clisp.org>
40172
40173         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
40174         the valid ones. Makes the comparison operations transitive:
40175         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
40176         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
40177
40178 2005-08-15  Simon Josefsson  <jas@extundo.com>
40179
40180         * modules/ssize_t (License): Change to 'unlimited'.
40181
40182         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
40183
40184 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
40185
40186         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
40187         Add comments for each pending glibc patch.
40188
40189 2005-08-15  Bruno Haible  <bruno@clisp.org>
40190
40191         * lib/regex.h (__restrict_arr): Don't define to __restrict if
40192         __cplusplus is defined.
40193
40194 2005-08-14  Jim Meyering  <jim@meyering.net>
40195
40196         Sync from coreutils.
40197
40198         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
40199         Use the hash-table-based cycle-detection code not just when
40200         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
40201         Reported by James Youngman in
40202         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
40203         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
40204         FTS_TIGHT_CYCLE_CHECK.
40205         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
40206         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
40207         once again.
40208         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
40209         * lib/fts.c (fd_safer): Remove decl.
40210         Include fcntl--.h rather than unistd-safer.h
40211         (fts_safe_changedir): Don't call fd_safer; no longer needed
40212         now that we include fcntl--.h.
40213
40214 2005-08-12  Simon Josefsson  <jas@extundo.com>
40215
40216         * modules/getndelim2: Use ssize_t module.
40217         * modules/getnline: Likewise.
40218         * modules/safe-read: Likewise.
40219         * modules/xreadlink: Likewise.
40220
40221         * modules/ssize_t: New file.
40222
40223 2005-08-12  Simon Josefsson  <jas@extundo.com>
40224
40225         * m4/readline.m4: Look for termcap, curses or ncurses if required.
40226
40227 2005-08-12  Simon Josefsson  <jas@extundo.com>
40228
40229         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
40230         ssize_t.
40231
40232 2005-08-12  Simon Josefsson  <jas@extundo.com>
40233
40234         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
40235         readline, getdelim and check_version.
40236         (Support for systems lacking ISO C 99: Sizes of integer types):
40237         Add size_max.
40238
40239 2005-08-12  Bruno Haible  <bruno@clisp.org>
40240
40241         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
40242
40243 2005-08-11  Simon Josefsson  <jas@extundo.com>
40244
40245         * modules/readline: New file.
40246
40247         * modules/strnlen (Files): Add strnlen.h.
40248
40249 2005-08-11  Simon Josefsson  <jas@extundo.com>
40250
40251         * m4/readline.m4: New file.
40252
40253 2005-08-11  Simon Josefsson  <jas@extundo.com>
40254
40255         * lib/readline.h, readline.c: New file.
40256
40257 2005-08-11  Simon Josefsson  <jas@extundo.com>
40258
40259         * doc/gnulib.texi (Initial import, Finishing touches): Mention
40260         gl_AVOID.
40261
40262 2005-08-11  Bruno Haible  <bruno@clisp.org>
40263
40264         * lib/strnlen.h (strnlen): Change parameter name to match comment.
40265
40266 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
40267
40268         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
40269
40270 2005-08-10  Simon Josefsson  <jas@extundo.com>
40271
40272         * tests/test-iconvme.c: New file.
40273
40274 2005-08-10  Simon Josefsson  <jas@extundo.com>
40275
40276         * m4/strnlen.m4: New file.
40277
40278         * m4/strndup.m4: Don't check for strnlen declaration, done in
40279         strnlen.m4.
40280
40281 2005-08-10  Simon Josefsson  <jas@extundo.com>
40282
40283         * lib/strndup.c: Use strnlen.h.
40284
40285         * lib/strnlen.h: New file.
40286
40287 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
40288
40289         * README: Typos.
40290
40291 2005-08-02  Simon Josefsson  <jas@extundo.com>
40292
40293         * modules/readline: New file.
40294
40295 2005-08-02  Simon Josefsson  <jas@extundo.com>
40296
40297         * modules/getdelim: New file.
40298
40299         * modules/getline: Rewrite, don't use getndelim2.
40300
40301 2005-08-02  Simon Josefsson  <jas@extundo.com>
40302
40303         * m4/getline.m4: Separate out getdelim stuff into separate module.
40304
40305         * m4/getdelim.m4: New file.
40306
40307 2005-08-02  Simon Josefsson  <jas@extundo.com>
40308
40309         * lib/getline.h, getline.c: Rewrite.
40310
40311         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
40312
40313 2005-07-31  Bruno Haible  <bruno@clisp.org>
40314
40315         * lib/lock.h (gl_lock_initializer): New macro.
40316         (gl_lock_define_initialized): Use it.
40317         (gl_rwlock_initializer): New macro.
40318         (gl_rwlock_define_initialized): Use it.
40319         (gl_recursive_lock_initializer): New macro.
40320         (gl_recursive_lock_define_initialized): Use it.
40321
40322 2005-07-30  Karl Berry  <karl@gnu.org>
40323
40324         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
40325         Report from Ben Pfaff, regarding getopt.
40326
40327 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
40328
40329         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
40330         normal way.
40331         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
40332         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
40333         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
40334         (gl_GETOPT): Use the new macros.  Most of the implementation
40335         is moved to the new macros.  This is for programs like Emacs
40336         that don't want all the functionality of gl_GETOPT.
40337
40338 2005-07-26  Bruno Haible  <bruno@clisp.org>
40339
40340         * m4/lock.m4: Update from GNU gettext.
40341
40342 2005-07-26  Bruno Haible  <bruno@clisp.org>
40343
40344         * lib/lock.h: Update from GNU gettext.
40345         * lib/lock.c: Update from GNU gettext.
40346
40347 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
40348
40349         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
40350         obsolescent AC_TRY_RUN.  Include the default includes files, for
40351         'exit'.
40352
40353 2005-07-24  Bruno Haible  <bruno@clisp.org>
40354
40355         * modules/visibility: New file.
40356         * MODULES.html.sh (Misc): Add visibility.
40357
40358 2005-07-24  Bruno Haible  <bruno@clisp.org>
40359
40360         * m4/visibility.m4: New file.
40361
40362 2005-07-24  Bruno Haible  <bruno@clisp.org>
40363
40364         * doc/visibility.texi: New file.
40365
40366 2005-07-22  Bruno Haible  <bruno@clisp.org>
40367
40368         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
40369         $(ALLOCA_H), redundant through BUILT_SOURCES.
40370         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
40371         redundant through BUILT_SOURCES.
40372         * modules/byteswap (Makefile.am): Remove explicit dependency on
40373         $(BYTESWAP_H), redundant through BUILT_SOURCES.
40374         * modules/fnmatch (Makefile.am): Remove explicit dependency on
40375         $(FNMATCH_H), redundant through BUILT_SOURCES.
40376         * modules/getopt (Makefile.am): Remove explicit dependency on
40377         $(GETOPT_H), redundant through BUILT_SOURCES.
40378         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
40379         redundant through BUILT_SOURCES.
40380         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
40381         redundant through BUILT_SOURCES.
40382         * modules/stdbool (Makefile.am): Remove explicit dependency on
40383         $(STDBOOL_H), redundant through BUILT_SOURCES.
40384         * modules/stdint (Makefile.am): Remove explicit dependency on
40385         $(STDINT_H), redundant through BUILT_SOURCES.
40386         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
40387         Remove explicit dependency on $(SYSEXITS_H).
40388         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
40389
40390 2005-07-18  Simon Josefsson  <jas@extundo.com>
40391
40392         * lib/check-version.c (check_version): Accept identical versions too.
40393
40394 2005-07-18  Bruno Haible  <bruno@clisp.org>
40395
40396         * modules/lock: New file.
40397         * MODULES.html.sh (Multithreading): New section.
40398
40399 2005-07-18  Bruno Haible  <bruno@clisp.org>
40400
40401         * m4/lock.m4: New file, from GNU gettext.
40402
40403 2005-07-18  Bruno Haible  <bruno@clisp.org>
40404
40405         * lib/lock.h: New file, from GNU gettext.
40406         * lib/lock.c: New file, from GNU gettext.
40407
40408 2005-07-18  Bruno Haible  <bruno@clisp.org>
40409
40410         * lib/lock.h (gl_once_t): New type.
40411         (gl_once_define, gl_once): New macros.
40412         * lib/lock.c (fresh_once): New variable.
40413         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
40414         functions.
40415
40416 2005-07-16  Simon Josefsson  <jas@extundo.com>
40417
40418         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
40419         workaround, suggested by Bruno.
40420
40421 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
40422
40423         * modules/xalloc (Depends-on): Add xalloc-die.
40424         * modules/xvasprintf (Depends-on): Add xalloc-die.
40425
40426 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
40427
40428         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
40429         with a minor change.
40430
40431 2005-07-15  Bruno Haible  <bruno@clisp.org>
40432
40433         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
40434         When using lib/poll.c, define poll as rpl_poll.
40435
40436 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
40437
40438         * modules/argp (Depends-on): Remove unlocked-io.
40439
40440 2005-07-14  Derek Price  <derek@ximbiot.com>
40441
40442         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
40443         for glob symlink bug.
40444
40445 2005-07-14  Bruno Haible  <bruno@clisp.org>
40446
40447         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
40448         Instead, test for *_unlocked function declarations directly.
40449
40450 2005-07-11  Simon Josefsson  <jas@extundo.com>
40451
40452         * modules/size_max: New file.
40453
40454         * modules/xsize: Depend on size_max module for size_max.m4.
40455
40456 2005-07-11  Simon Josefsson  <jas@extundo.com>
40457
40458         * lib/size_max.h: New file.
40459
40460 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
40461
40462         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
40463         copyright symbol and the year.
40464         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
40465         (version_etc_va): Use parameterized copyright notice.
40466         Reword to conform to the current GNU coding standards.
40467
40468 2005-07-11  Karl Berry  <karl@gnu.org>
40469
40470         * doc/gnulib.texi (Quoting): new node.
40471         (Initial import): more info, from Patrice.
40472
40473 2005-07-11  Bruno Haible  <bruno@clisp.org>
40474
40475         * gnulib-tool (func_usage): Document option --avoid.
40476         (Command line options): Handle --avoid.
40477         (func_acceptable): New function.
40478         (func_modules_transitive_closure): Use it.
40479
40480 2005-07-11  Bruno Haible  <bruno@clisp.org>
40481
40482         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
40483         Reported by Jim Meyering.
40484
40485 2005-07-10  Bruno Haible  <bruno@clisp.org>
40486
40487         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
40488         Needed when size_t is smaller than 'unsigned int'.
40489         Reported by Paul Eggert.
40490
40491 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
40492
40493         * modules/argp (Depends-on): Add unlocked-io
40494
40495 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
40496
40497         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
40498         block of defines.
40499
40500 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
40501
40502         * config/srclist.txt: Comment out regcomp.c, since we have a porting
40503         fix now.
40504
40505 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
40506         and Paul Eggert  <eggert@cs.ucla.edu>
40507
40508         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
40509         in wint_t, not wchar_t.  Remove now-unnecessary cast.
40510
40511 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
40512
40513         * modules/regex (Files): Add lib/regex_internal.c,
40514         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
40515         (Depends-on): Add extensions.
40516         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
40517
40518 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
40519
40520         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
40521         pathconf.
40522         * m4/same.m4 (gl_SAME): Likewise.
40523         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
40524
40525         * m4/regex.m4: Adjust to new libc regex implementation.
40526         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
40527         all the .c and .h parts of (the new) regex.
40528         Quote the m4 stuff better.
40529         Check for RE_ICASE bug of old gnulib.
40530         Check for REG_STARTEND of recent libc.
40531         Rename local variables from jm_* to gl_*.
40532         Quote operand of "test -f".
40533         Say "recent enough" version of libc, not "version 2".
40534         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
40535         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
40536         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
40537         Remove check for btowc, isascii.
40538         Require AM_LANGINFO_CODESET.
40539
40540 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
40541
40542         * lib/regex.c, regex.h: Sync from libc.
40543         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
40544         * lib/regexec.c:
40545         New files, synced from libc, except that regex_internal.h
40546         currently has a small porting fix.
40547
40548 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
40549
40550         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
40551         regex_internal.c, regexec.c.
40552         Add regex_internal.h too, but as a comment, since the libc version
40553         is currently broken in gnulib mode.
40554
40555 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
40556
40557         Support programs like Emacs that use gnulib but not gettext.
40558         * MODULES.html.sh (Internationalization functions): Add gettext-h.
40559         * modules/gettext-h: New file.
40560         * modules/gettext (Files): Remove lib/gettext.h.
40561         (Depends-on): Add gettext-h.
40562         (Makefile.am): Remove lib_SOURCES.
40563         * modules/argmatch, modules/c-stack, modules/closeout:
40564         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
40565         * modules/execute, modules/file-type, modules/getaddrinfo:
40566         * modules/getopt, modules/human, modules/javacomp:
40567         * modules/javaexec, modules/mkdir-p, modules/obstack:
40568         * modules/openat, modules/pagealign_alloc, modules/pipe:
40569         * modules/quotearg, modules/regex, modules/rpmatch:
40570         * modules/unicodeio, modules/userspec, modules/version-etc:
40571         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
40572         * modules/xsetenv:
40573         Depend on gettext-h, not gettext.
40574
40575 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
40576
40577         * gnulib-tool (func_import): Add support for 'public domain' license.
40578         * modules/alloca, modules/atexit, modules/memmove:
40579         Now public domain, not GPL.
40580         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
40581         * modules/realloc, modules/strerror, modules/strtod:
40582         Now LGPL, not GPL.
40583
40584 2005-07-05  Bruno Haible  <bruno@clisp.org>
40585
40586         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
40587         autoconf CVS. Needed for mingw.
40588
40589 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
40590
40591         Remove the dependency of the strftime module on the tzset module.
40592         * modules/strftime (Depends-on): Remove dependency on tzset.
40593
40594 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
40595
40596         Remove the dependency of the strftime module on the tzset module.
40597         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
40598         gl_FUNC_TZSET_CLOBBER.
40599
40600 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
40601
40602         Remove the dependency of the strftime module on the tzset module.
40603         * lib/strftime.c (my_strftime)
40604         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
40605         Copy the input structure, to work around some of the bug with
40606         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
40607         Solaris releases, you should also use the tzset module, but we won't
40608         require it as a dependency any more since we don't want LGPLed code
40609         to depend on GPLed code.
40610
40611 2005-07-02  Jim Meyering  <jim@meyering.net>
40612
40613         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
40614         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
40615         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
40616         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
40617
40618 2005-07-02  Jim Meyering  <jim@meyering.net>
40619
40620         * lib/backupfile.c (backup_args): Change a `0' to NULL.
40621
40622 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
40623
40624         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
40625         declares only 'struct timespec;' (!).
40626
40627 2005-07-01  Jim Meyering  <jim@meyering.net>
40628
40629         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
40630         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
40631         * lib/save-cwd.c, tempname.c:
40632         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
40633         and don't include <sys/file.h>).
40634
40635 2005-06-29  Jim Meyering  <jim@meyering.net>
40636
40637         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
40638         type name.  Use the variable name instead.
40639         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
40640         Likewise.
40641
40642 2005-06-28  Simon Josefsson  <jas@extundo.com>
40643
40644         * modules/check-version (Files): Add check-version.m4.
40645
40646 2005-06-28  Simon Josefsson  <jas@extundo.com>
40647
40648         * m4/check-version.m4: New file, suggested by Jim Meyering
40649         <jim@meyering.net>.
40650
40651 2005-06-28  Simon Josefsson  <jas@extundo.com>
40652
40653         * lib/check-version.h, lib/check-version.c: New files.
40654
40655 2005-06-28  Simon Josefsson  <jas@extundo.com>
40656
40657         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
40658         collision with global variable.  Better indentation.  Don't
40659         increment buffer pointer beyond buffer end.  Based on comments
40660         from Paul Eggert <eggert@cs.ucla.edu>.
40661
40662         * lib/base64.h: Indent.
40663
40664 2005-06-28  Simon Josefsson  <jas@extundo.com>
40665
40666         * doc/gnulib.texi (Library version handling): New section.
40667
40668 2005-06-28  Jim Meyering  <jim@meyering.net>
40669
40670         * check-module (find_included_lib_files): Hard-code another
40671         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
40672         but modules/fts-lgpl (correctly) does not list those files.
40673
40674         * modules/canonicalize (Files): Add lib/pathmax.h.
40675
40676 2005-06-25  Simon Josefsson  <jas@extundo.com>
40677
40678         * modules/check-version: New file.
40679
40680 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
40681
40682         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
40683         initializer of struct addrinfo, as an indication that we don't
40684         care how many members the structure has.
40685
40686 2005-06-24  Derek Price  <derek@ximbiot.com>
40687         and Bruno Haible  <bruno@clisp.org>
40688
40689         Remove stat module & update lstat.
40690         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
40691         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
40692         * m4/stat.m4: Remove this file.
40693
40694 2005-06-24  Derek Price  <derek@ximbiot.com>
40695         and Bruno Haible  <bruno@clisp.org>
40696
40697         Remove stat module & update lstat.
40698         * lib/stat.c: Remove this file...
40699         (slash_aware_lstat): ...moving this content and its support...
40700         * lib/lstat.c (rpl_lstat): ...into here.
40701         * lib/lstat.h: New file.
40702
40703 2005-06-24  Derek Price  <derek@ximbiot.com>
40704         and Bruno Haible  <bruno@clisp.org>
40705
40706         Remove stat module & update lstat.
40707         * config/srclist.txt (libc sources): Remove stat.
40708
40709 2005-06-24  Derek Price  <derek@ximbiot.com>
40710         and Bruno Haible  <bruno@clisp.org>
40711
40712         Remove stat module & update lstat.
40713         * MODULES.html.sh (stat): Remove.
40714         * MODULES.html: Regenerated.
40715         * modules/lstat (Description): Correct function name.
40716         (Files): Add "lstat.h".
40717         (Depends-on): Remove stat, add xalloc, stat-macros.
40718         * modules/stat: Remove this file.
40719         (Include): Add "lstat.h", remove <sys/stat.h>.
40720
40721 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
40722
40723         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
40724         (ranged_convert): Don't save conversion in a temporary struct.
40725         This causes a warning with GCC 4.0.0, and anyway in the typical
40726         case it's not worth the extra 100 bytes or so of code.
40727         (ranged_convert, __mktime_internal): When calling a function via a
40728         pointer P, use P () rather than (*P) (), as we now assume C89 or
40729         better.
40730
40731 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
40732
40733         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
40734         "who -r" failed to give output.  Problem reported by Tim Waugh.
40735
40736         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
40737         (xcalloc): Use it to avoid needless tests.
40738         Problem reported by Jim Meyering.
40739
40740 2005-06-20  Derek Price  <derek@ximbiot.com>
40741
40742         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
40743         unnecessary for Autoconfs > 2.59c.
40744
40745 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
40746
40747         * lib/argp.h (__option_is_short): Check upper limit of
40748         __key. Isprint() requires its argument to have the value
40749         of an unsigned char or EOF.
40750
40751 2005-06-16  Jim Meyering  <jim@meyering.net>
40752
40753         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
40754         when either N or S is zero.
40755
40756 2005-06-16  Derek Price  <derek@ximbiot.com>
40757
40758         * m4/bison.m4: Declare YACC & YFLAGS precious.
40759
40760 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
40761
40762         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
40763         multibyte string or pattern, fall back on unibyte matching.
40764         Problem reported by James Youngman.
40765
40766 2005-06-08  Bruno Haible  <bruno@clisp.org>
40767
40768         * modules/csharpcomp: New file.
40769         * MODULES.html.sh (C#): Add csharpcomp.
40770
40771 2005-06-08  Bruno Haible  <bruno@clisp.org>
40772
40773         * m4/csharpcomp.m4: New file, from GNU gettext.
40774
40775 2005-06-08  Bruno Haible  <bruno@clisp.org>
40776
40777         * lib/csharpcomp.h: New file, from GNU gettext.
40778         * lib/csharpcomp.c: New file, from GNU gettext.
40779         * lib/csharpcomp.sh.in: New file, from GNU gettext.
40780
40781 2005-06-08  Bruno Haible  <bruno@clisp.org>
40782
40783         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
40784         warning on mingw.
40785
40786 2005-06-07  Derek Price  <derek@ximbiot.com>
40787
40788         Sync from CVS.
40789         * lib/glob_.h: Indent nested #ifdef.
40790
40791 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
40792
40793         Sync from coreutils.
40794         Use "file name" when talking about file names, instead of "filename"
40795         or "path", as per the GNU coding standards.
40796         * lib/mkdir-p.c: Renamed from makepath.c.
40797         (make_dir_parents): Renamed from make_path.  All callers changed.
40798         * lib/mkdir-p.h: Likewise.  All includers changed.
40799         * lib/filenamecat.c: Renamed from path-concat.c.
40800         (file_name_concat): Renamed from path_concat.  All callers changed.
40801         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
40802         * lib/filenamecat.h: Likewise.  All includers changed.
40803         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
40804         in comments or local variable names.
40805         * lib/basename.c: Likewise.
40806         * lib/canonicalize.c, canonicalize.h: Likewise.
40807         * lib/dirname.c, dirname.h: Likewise.
40808         * lib/euidaccess.c: Likewise.
40809         * lib/exclude.c: Likewise
40810         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
40811         * lib/fsusage.c, fsuage.h: Likewise.
40812         * lib/fts.c, fts_.h: Likewise.
40813         * lib/getcwd.c: Likewise.
40814         * lib/getloadavg.c: Likewise.
40815         * lib/mkstemp.c: Likewise.
40816         * lib/mountlist.c, mountlist.h: Likewise.
40817         * lib/openat.c, openat.h: Likewise.
40818         * lib/readlink-stub.c: Likewise.
40819         * lib/readutmp.c, readutmp.h: Likewise.
40820         * lib/rename.c: Likewise.
40821         * lib/rmdir.c: Likewise.
40822         * lib/same.c: Likewise.
40823         * lib/savedir.c: Likewise.
40824         * lib/stripslash.c: Likewise.
40825         * lib/tempname.c: Likewise.
40826         * lib/xreadlink.c: Likewise.
40827         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
40828         All uses changed.
40829         * lib/exclude.h: Likewise.
40830
40831         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
40832         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
40833         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
40834         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
40835         * lib/pathmax.h: Include <limits.h> unconditionally, since other
40836         files have been getting away with it for years (MORE/BSD 4.3
40837         is extinct now).
40838         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
40839         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
40840
40841         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
40842         Define to 256, not 255, as per modern POSIX.
40843
40844 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
40845
40846         Sync from coreutils.
40847         Use "file name" when talking about file names, instead of "filename"
40848         or "path", as per the GNU coding standards.
40849         * MODULES.html.sh: mkdir-p renamed from makepath.
40850         filenamecat renamed from path-concat.
40851         * modules/filenamecat: Renamed from modules/path-concat.
40852         (Files): filenamecat.h and filenamecat.c renamed from
40853         path-concat.h and path-concat.c.
40854         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
40855         (Include): filenamecat.h, not path-concat.h.
40856         * modules/mkdir-p: Renamed from modules/makepath.
40857         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
40858         makepath.c.
40859         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
40860         (Include): mkdir-p.h, not makepath.h.
40861
40862 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
40863
40864         Sync from coreutils.
40865         * m4/mkdir-p.m4: Renamed from makepath.m4.
40866         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
40867         Rename files from makepath.c to mkdir-p.c, and from
40868         makepath.h to mkdir-p.h.
40869         * m4/filenamecat.m4: Renamed from path-concat.m4.
40870         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
40871         Rename files from path-concat.c to filenamecat.c,
40872         and from path-concat.h to filenamecat.h.
40873         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
40874         "file name" in local variables or comments.
40875         * m4/rename.m4: Likewise.
40876
40877 2005-06-01  Bruno Haible  <bruno@clisp.org>
40878
40879         * modules/csharpexec: New file.
40880         * MODULES.html.sh (C#): New section.
40881
40882 2005-06-01  Bruno Haible  <bruno@clisp.org>
40883
40884         * m4/csharp.m4: New file, from GNU gettext.
40885         * m4/csharpexec.m4: New file, from GNU gettext.
40886
40887 2005-06-01  Bruno Haible  <bruno@clisp.org>
40888
40889         * lib/csharpexec.h: New file, from GNU gettext.
40890         * lib/csharpexec.c: New file, from GNU gettext.
40891         * lib/csharpexec.sh.in: New file, from GNU gettext.
40892
40893 2005-05-31  Derek Price  <derek@ximbiot.com>
40894             Paul Eggert  <eggert@cs.ucla.edu>
40895
40896         Sync from cvs.
40897         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
40898
40899 2005-05-31  Derek Price  <derek@ximbiot.com>
40900             Paul Eggert  <eggert@cs.ucla.edu>
40901
40902         Sync from cvs.
40903         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
40904
40905 2005-05-29  Derek Price  <derek@ximbiot.com>
40906
40907         * config/srclist.txt (glob_.h, glob.c): Add these files.
40908
40909 2005-05-29  Derek Price  <derek@ximbiot.com>
40910
40911         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
40912         * modules/glob: New file.
40913         * modules/getlogin_r: Add link to POSIX spec in description.
40914
40915 2005-05-29  Derek Price  <derek@ximbiot.com>
40916             Paul Eggert  <eggert@cs.ucla.edu>
40917
40918         * m4/glob.m4: New file.
40919
40920 2005-05-29  Derek Price  <derek@ximbiot.com>
40921             Paul Eggert  <eggert@cs.ucla.edu>
40922
40923         * lib/glob_.h, lib/glob.c: New files.
40924
40925 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
40926
40927         * modules/fts (Files): Remove m4/inttypes-pri.m4.
40928         * modules/fts-lgpl (Depends-on): Remove gettext.
40929
40930 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
40931
40932         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
40933         and don't require gt_INTTYPES_PRI.
40934
40935 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
40936
40937         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
40938
40939         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
40940         the configuration hassle isn't worth it.
40941         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
40942         (LONGEST_MODIFIER, PRIuMAX): Remove.
40943
40944 2005-05-27  Bruno Haible  <bruno@clisp.org>
40945
40946         * lib/getlogin_r.h: Remove second include of <stddef.h>.
40947
40948 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
40949
40950         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
40951         _POSIX_PTHREAD_SEMANTICS for Solaris.
40952
40953 2005-05-25  Derek Price  <derek@ximbiot.com>
40954
40955         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
40956
40957 2005-05-25  Derek Price  <derek@ximbiot.com>
40958             Paul Eggert  <eggert@cs.ucla.edu>
40959
40960         * modules/getlogin_r, m4/getlogin_r.m4: New files.
40961         * lib/getlogin_r.c, getlogin_r.h: New files.
40962
40963 2005-05-25  Bruno Haible  <bruno@clisp.org>
40964             Derek Price  <derek@ximbiot.com>
40965
40966         * lib/getlogin_r.h: Simplify API documentation.
40967
40968 2005-05-23  Derek Price  <derek@ximbiot.com>
40969
40970         * modules/minmax (Files): Add m4/minmax.m4.
40971         (configure.ac): Add gl_MINMAX.
40972
40973 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
40974
40975         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
40976         so that unistd-safer.h (GPL'ed code) need not be included.
40977
40978 2005-05-22  Bruno Haible  <bruno@clisp.org>
40979
40980         * m4/minmax.m4: New file.
40981         Based on a patch by Derek Price <derek@ximbiot.com>.
40982
40983 2005-05-22  Bruno Haible  <bruno@clisp.org>
40984
40985         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
40986         (INT64_MIN): Fix definition.
40987         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
40988
40989         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
40990         NEED_SIGNED_INT_TYPES.
40991
40992         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
40993         HAVE_SYSTEM_INTTYPES.
40994
40995 2005-05-22  Bruno Haible  <bruno@clisp.org>
40996
40997         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
40998         Also include <sys/param.h> if it defines MIN, MAX.
40999         Based on a patch by Derek Price <derek@ximbiot.com>.
41000
41001 2005-05-21  Jim Meyering  <jim@meyering.net>
41002
41003         * modules/fts (Files): Add m4/inttypes-pri.m4.
41004         (Depends-on): Add lstat and remove gettext.  Alphabetize.
41005
41006 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
41007
41008         New fts module.
41009         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
41010         (setup_dir, free_dir): New functions.
41011         (enter_dir, leave_dir): Define trivial
41012         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
41013         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
41014         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
41015         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
41016         Move to fts-cycle.c.
41017         (fts_open): Use setup_dir.
41018         (fts_close): Use free_dir.
41019         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
41020         This adds a label and some gotos, but the alternatives were messier.
41021         Check for memory allocation failure when entering a dir.
41022         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
41023         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
41024         (FTS): New member fts_cycle, that is a union that contains the
41025         old active_dir_ht and cycle_state.  All uses changed to mention
41026         fts_cycle.ht and fts_cycle.state.
41027         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
41028         fts.c, with the following changes:
41029         (setup_dir, free_dir): New functions.
41030         (enter_dir): Now returns bool.  Return true if successful, false
41031         if memory exhausted.  All callers changed.
41032         Do not bother partly cleaning up on
41033         memory allocation failure; that is free_dir's job.
41034         However, free ad if hash_insert fails, to avoid memory leak.
41035         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
41036         fts->fts_options to see which union member to use.
41037
41038 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
41039
41040         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
41041         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
41042
41043 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
41044
41045         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
41046
41047 2005-05-20  Jim Meyering  <jim@meyering.net>
41048
41049         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
41050         Now a macro, to pacify GCC.
41051
41052 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
41053
41054         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
41055         of -1.
41056
41057 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
41058
41059         * lib/chown.c (rpl_chown): Return -1 on failure.
41060
41061 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
41062
41063         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
41064         Don't check for stddef.h.
41065         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
41066         don't use its results.
41067         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
41068         since we include them unconditionally.  Don't require
41069         AM_STDBOOL_H, since stdbool is a prerequisite.
41070         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
41071         since we assume C89 or better.
41072         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
41073         as we don't use their results.
41074         Don't check for fchdir, memmove, memset, strrchr, as we use
41075         them unconditionally.
41076         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
41077         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
41078
41079 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
41080
41081         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
41082         Include <stddef.h> unconditionally, since we assume C89 now.
41083         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
41084         * lib/fts.c: Include fts_.h first, to check interface.
41085         Do not include intprops.h; no longer needed.
41086         Include cycle-check.h and hash.h, since fts_.h no longer does.
41087         Remove unnecessary casts of closedir to void.
41088         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
41089         decide whether to decrement nlinks.
41090         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
41091         (FTS): Use struct hash_table * instead of Hash_table, so that
41092         we no longer need to include hash.h here.
41093
41094 2005-05-18  Jim Meyering  <jim@meyering.net>
41095
41096         * modules/dirfd (License): Change to LGPL.  Most of the code
41097         is already in the public domain.
41098
41099 2005-05-18  Jim Meyering  <jim@meyering.net>
41100
41101         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
41102         Reported by Yoann Vandoorselaere.
41103
41104 2005-05-17  Jim Meyering  <jim@meyering.net>
41105
41106         * m4/fts.m4: New file, from coreutils.
41107
41108 2005-05-17  Jim Meyering  <jim@meyering.net>
41109
41110         * lib/fts.c, lib/fts_.h: New files, from coreutils.
41111
41112 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
41113
41114         Sync from coreutils.
41115         * m4/unlinkdir.m4: New file.
41116
41117 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
41118
41119         Sync from coreutils.
41120         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
41121         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
41122         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
41123         White space changes only.
41124         * lib/makepath.c (make_path): Port to hosts where leading "//" is
41125         special.
41126         * lib/yesno.c: Include getline.h, not ctype.h.
41127         (yesno): Don't remove leading white space; POSIX doesn't allow it.
41128         Use getline to remove arbitrary restriction on response length.
41129
41130 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
41131
41132         * config/srclist-update: Spell out "Street" in FSF postal
41133         mail address; this is the style the FSF seems to prefer.
41134
41135         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
41136         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
41137         this updates FSF postal mail address.
41138
41139         Sync from coreutils.
41140         * modules/unlinkdir: New file.
41141         * modules/yesno (Depends-on): Add getline.
41142         * MODULES.html.sh (File system functions): Add unlinkdir.
41143
41144 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
41145
41146         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
41147         lib/strsep.h:
41148         Change the initial comment to refer to GPL, not LGPL.
41149         gnulib-tool will change it to LGPL as needed.
41150
41151         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
41152         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
41153         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
41154         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
41155         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
41156         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
41157         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
41158         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
41159         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
41160         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
41161         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
41162         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
41163         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
41164         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
41165         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
41166         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
41167         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
41168         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
41169         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
41170         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
41171         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
41172         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
41173         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
41174         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
41175         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
41176         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
41177         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
41178         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
41179         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
41180         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
41181         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
41182         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
41183         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
41184         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
41185         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
41186         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
41187         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
41188         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
41189         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
41190         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
41191         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
41192         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
41193         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
41194         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
41195         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
41196         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
41197         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
41198         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
41199         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
41200         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
41201         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
41202         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
41203         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
41204         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
41205         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
41206         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
41207         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
41208         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
41209         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
41210         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
41211         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
41212         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
41213         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
41214         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
41215         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
41216         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
41217         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
41218         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
41219         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
41220         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
41221         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
41222         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
41223         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
41224         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
41225         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
41226         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
41227         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
41228         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
41229         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
41230         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
41231         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
41232         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
41233         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
41234         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
41235         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
41236         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
41237         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
41238         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
41239         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
41240         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
41241         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
41242         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
41243         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
41244         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
41245         lib/yesno.c, lib/yesno.h:
41246         Update FSF postal mail address.
41247
41248 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
41249
41250         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
41251         tests/test-memmem.c, tests/test-stpncpy.c:
41252         Update FSF postal mail address.
41253
41254 2005-05-13  Bruno Haible  <bruno@clisp.org>
41255
41256         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
41257         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
41258         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
41259         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
41260         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
41261         Add support for 64-bit integers in the MSVC compiler.
41262
41263 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
41264
41265         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
41266
41267 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
41268
41269         * gnulib-tool (func_import): Sort and uniquify recommended includes.
41270
41271 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
41272
41273         * doc/getdate.texi (General date syntax): Don't say that date
41274         date --iso-8601=ns generates acceptable dates; it doesn't yet.
41275         Problem reported by Nic Ferrier.
41276
41277 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41278
41279         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
41280         specified in ai_socktype. Fix invalid ai_protocol
41281         check. ai_protocol is usually set to 0 or depending on
41282         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
41283         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
41284         ai_socktype / ai_protocol in the returned addrinfo structure.
41285
41286 2005-05-10  Simon Josefsson  <jas@extundo.com>
41287
41288         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
41289         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41290
41291 2005-05-10  Karl Berry  <karl@gnu.org>
41292
41293         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
41294         (from http://www.gnu.org/licenses).
41295         * doc/COPYING.LIB: also rename to COPYING.LESSER.
41296         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
41297         fdl.texi suffices.
41298
41299 2005-05-10  Karl Berry  <karl@gnu.org>
41300
41301         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
41302         (COPYING.DOC): remove.
41303
41304         * config/srclist-update: new FSF address.
41305
41306 2005-05-10  Derek Price  <derek@ximbiot.com>
41307
41308         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
41309         possible.
41310
41311 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41312             Bruno Haible  <bruno@clisp.org>
41313
41314         * modules/inet_ntop: New file.
41315         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
41316         inet_ntop.
41317
41318 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41319             Bruno Haible  <bruno@clisp.org>
41320
41321         * m4/inet_ntop.m4: New file.
41322
41323 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
41324             Bruno Haible  <bruno@clisp.org>
41325
41326         * lib/inet_ntop.h: New file.
41327         * lib/inet_ntop.c: New file, from glibc with modifications.
41328
41329 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
41330
41331         * modules/time_r (License): Change to LGPL.
41332         * modules/extensions (License): Change to LGPL.  Actually,
41333         the license is more permissive than that, but currently gnulib-tool
41334         doesn't know how to handle more-permissive licenses.
41335
41336         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
41337         Problem reported by Dave Love.
41338
41339 2005-05-08  Jim Meyering  <jim@meyering.net>
41340
41341         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
41342         blank.
41343
41344 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
41345
41346         * modules/argmatch (Depends-on): Add stdbool.
41347         * modules/backupfile (Depends-on): Likewise.
41348         * modules/chdir-long (Depends-on): Likewise.
41349         * modules/closeout (Depends-on): Likewise.
41350         * modules/cycle-check (Depends-on): Likewise.
41351         * modules/dirname (Depends-on): Likewise.
41352         * modules/fnmatch (Depends-on): Likewise.
41353         * modules/fsusage (Depends-on): Likewise.
41354         * modules/fwriteerror (Depends-on): Likewise.
41355         * modules/getcwd (Depends-on): Likewise.
41356         * modules/getloadavg (Depends-on): Likewise.
41357         * modules/hard-locale (Depends-on): Likewise.
41358         * modules/makepath (Depends-on): Likewise.
41359         * modules/mountlist (Depends-on): Likewise.
41360         * modules/nanosleep (Depends-on): Likewise.
41361         * modules/posixtm (Depends-on): Likewise.
41362         * modules/quotearg (Depends-on): Likewise.
41363         * modules/readtokens (Depends-on): Likewise.
41364         * modules/readtokens0 (Depends-on): Likewise.
41365         * modules/readutmp (Depends-on): Likewise.
41366         * modules/save-cwd (Depends-on): Likewise.
41367         * modules/strftime (Depends-on): Likewise.
41368         * modules/userspec (Depends-on): Likewise.
41369         * modules/utimecmp (Depends-on): Likewise.
41370         * modules/xgetcwd (Depends-on): Likewise.
41371         * modules/xnanosleep (Depends-on): Likewise.
41372         * modules/xstrtod (Depends-on): Likewise.
41373         * modules/yesno (Depends-on): Likewise.
41374
41375 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
41376
41377         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
41378         needless checks.
41379
41380 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
41381
41382         Merge from coreutils.  Among other things,
41383         add bulletproofing for cases where stdin, stdout, or stderr are closed.
41384         * lib/fd-safer.c: New file.
41385         * lib/fcntl-safer.h, open-safer.c: Remove.
41386         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
41387         * lib/dup-safer.c: Include unistd-safer.h first.
41388         Don't include errno.h.
41389         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
41390         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
41391         * lib/file-type.c: Rely on file-type.h change.
41392         * lib/getloadavg.c: Include unistd-safer.h.
41393         (getloadavg): Use safer open.
41394         * lib/getusershell.c: Include "stdio-safer.h".
41395         (getusershell): Use safer fopen.
41396         * lib/long-options.c (long_options): Use NULL rather than 0.
41397         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
41398         'free'.
41399         * lib/modechange.c: Likewise.
41400         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
41401         (MODE_DONE): New constant.
41402         (struct mode_change): Remove 'next' member.
41403         (make_node_op_equals): New function; like the old one of the
41404         same name, except it allocates an array.
41405         (mode_compile, mode_create_from_ref): Use it.
41406         (mode_compile): Allocate result as an array, not a linked list.
41407         Parse octal string ourself, so that we catch mistakes like "+0".
41408         (mode_adjust): Arg is an array, not a linked list.
41409         * lib/modechange.c: Include stat-macros.h, xalloc.h.
41410         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
41411         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
41412         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
41413         Remove.  This is now stat-macros.h's job.
41414         (talloc): Remove.  All callers replaced by xalloc, so that
41415         our invokers don't have to worry about reporting memory failures.
41416         (make_node_op_equals): Remove.
41417         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
41418         New constants.
41419         (struct mode_change): Moved here from modechange.h.
41420         (mode_append_entry): Remove.
41421         (mode_compile): Remove MASKED_OPS arg, since it encouraged
41422         apps to have incorrect behavior.  Use simpler algorithm for head
41423         and tail.  Don't futz with umask; that's now the job of mode_adjust.
41424         Detect more invalid usages rather than having somewhat-random behavior.
41425         Don't insert an "a=" action, as that leads to incorrect behavior.
41426         (mode_compile, mode_create_from_ref): Return NULL on error instead
41427         of an enum, since now there's only one way to have an error.  All
41428         callers changed.
41429         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
41430         at the correct time.  Simplify calculation of "+u" and its ilk.
41431         Don't mishandle "+X".
41432         (mode_free): Remove "register" and localize decls.
41433         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
41434         (struct mode_change): Move to modechange.c; callers don't
41435         need to see this stuff.
41436         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
41437         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
41438         (mode_change, mode_adjust): Reflect the new signatures noted above.
41439         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
41440         that might redefine system include files.
41441         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
41442         (my_usleep): Use NULL rather than (void *) 0.
41443         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
41444         Use siginterrupt to specify that system calls should be interrupted.
41445         (rpl_nanosleep): Move initialization of suspended closer to call of
41446         my_usleep.
41447         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
41448         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
41449         (desirable_utmp_entry): New function.
41450         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
41451         using x2nrealloc, to simplify logic.
41452         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
41453         size calculation.  Do not assume utmp file is a regular file.
41454         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
41455         (READ_UTMP_CHECK_PIDS): New constant.
41456         * lib/save-cwd.c: Include unistd-safer.h.
41457         (save_cwd): Use fd_safer.
41458         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
41459         [!_LIBC] Include "stat-macros.h" instead.
41460         * lib/unistd-safer.h (fd_safer): New decl.
41461
41462 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
41463
41464         * modules/getloadavg (Depends-on): Add unistd-safer.
41465         * modules/getusershell (Depends-on): Add stdio-safer.
41466         * modules/lstat (Depends-on): Remove xalloc.
41467         * modules/mkstemp (Depends-on): Add stat-macros.
41468         * modules/modechange (Depends-on): Remove xstrtol.
41469         Add stat-macros, xalloc.
41470         * modules/save-cwd (Depends-on): Add unistd-safer.
41471         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
41472         * modules/unistd-safer (Files): Add lib/fd-safer.c
41473         (Makefile.am): Remove lib_SOURCES.
41474
41475         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
41476         Remove fcntl-safer; unistd-safer supersedes it.
41477
41478 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
41479
41480         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
41481         AC_HEADER_STAT.
41482         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
41483         (gl_PREREQ_CHOWN): Remove.
41484         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
41485         it.  Don't require AC_HEADER_STAT.
41486         (gl_PREREQ_LSTAT): Remove.
41487         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
41488         Don't require AC_HEADER_STAT.
41489         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
41490         (gl_PREREQ_RMDIR): Remove.
41491         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
41492         mention stat-macros.h or AC_HEADER_STAT, since we'll make
41493         the stat-macros module a prerequisite.
41494         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
41495         * m4/filemode.m4 (gl_FILEMODE): Likewise.
41496         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
41497         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
41498         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
41499         variable names.
41500         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
41501         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
41502         variable prefixes.
41503         * m4/fcntl-safer.m4: Remove.
41504         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
41505         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
41506         Invoke gl_PREREQ_FD_SAFER.
41507         (gl_PREREQ_FD_SAFER): New macro.
41508         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
41509         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
41510         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
41511         Remove duplicate call to AC_LIBOBJ(readutmp).
41512         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
41513
41514         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
41515         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
41516
41517 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
41518
41519         * MODULES.html.sh (Misc): Add byteswap.
41520
41521 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
41522
41523         * modules/getcwd (Depends-on): Add extensions.
41524         * modules/openat (Depends-on): Likewise.
41525
41526 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
41527
41528         * modules/byteswap: New file.
41529
41530 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
41531
41532         * m4/byteswap.m4: New file.
41533
41534 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
41535
41536         * lib/byteswap_.h: New file.
41537
41538 2005-04-25  Karl Berry  <karl@gnu.org>
41539
41540         * m4/gettext.m4: Update from GNU gettext 0.14.4.
41541
41542 2005-04-25  Albert Chin  <china@thewrittenword.com>
41543
41544         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
41545         Toolkit C bug.
41546
41547 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
41548
41549         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
41550         (func_ln_if_changed) Remove forcibly for no error message
41551         in case file does not exist.
41552
41553 2005-04-19  Simon Josefsson  <jas@extundo.com>
41554
41555         * gnulib-tool (Options): Make --symlink mean --symbolic.
41556
41557 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
41558
41559         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
41560
41561 2005-04-16  Simon Josefsson  <jas@extundo.com>
41562
41563         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
41564
41565 2005-04-15  Simon Josefsson  <jas@extundo.com>
41566
41567         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
41568
41569 2005-04-15  Simon Josefsson  <jas@extundo.com>
41570
41571         * gnulib-tool: Rename --symlink to --symbolic.
41572
41573 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
41574
41575         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
41576         symbolic links to files instead of copying/moving.  Add --aux-dir,
41577         specifying directory relative --dir where auxiliary build tools
41578         are placed.
41579
41580 2005-04-14  Bruno Haible  <bruno@clisp.org>
41581
41582         * modules/allocsa (License): Change to LGPL.
41583         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
41584
41585 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
41586
41587         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
41588         that "UTC +1 second" continues to work.  Problem reported
41589         by Dmitry V. Levin.
41590         (relunit_snumber): New rule.
41591         (relunit): Use it.
41592
41593 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
41594
41595         * lib/getdate.y (universal_time_zone_table): New constant.
41596         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
41597         universal_time_zone_table.
41598         (lookup_zone): Prefer universal_time_zone_table to
41599         local_time_zone_table, so that "GMT" time stamps are allowed in
41600         London during the summer.  Problem reported by Ian Abbott.
41601
41602 2005-04-12  Jim Meyering  <jim@meyering.net>
41603
41604         * lib/human.c (humblock): Set *options even when returning due to
41605         xstrtoumax conversion failure.  Thanks to a used-uninitialized
41606         warning from gcc-4.
41607
41608 2005-04-09  Jim Meyering  <jim@meyering.net>
41609
41610         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
41611         -Wuninitialized: initialize tm0.tm_year.
41612
41613 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
41614
41615         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
41616         count, since there's no maximum.  All uses changed.
41617         Add member dsts_seen.
41618         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
41619         not being INT_MAX.
41620         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
41621         Use pc_rels_seen to decide whther a date is absolute.
41622
41623         * lib/getdate.y (number): Don't overwrite year.
41624         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
41625         check.
41626
41627 2005-04-02  Simon Josefsson  <jas@extundo.com>
41628
41629         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
41630         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
41631
41632 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
41633
41634         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
41635         where no absolute path name can be longer than PATH_MAX.
41636
41637 2005-03-27  Jim Meyering  <jim@meyering.net>
41638
41639         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
41640
41641 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
41642
41643         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
41644         "one's complement" -> "ones' complement" in comment, as per Knuth.
41645         "value of type" -> "type or expression" in comment.
41646         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
41647
41648 2005-03-26  Jim Meyering  <jim@meyering.net>
41649
41650         Comment nits.
41651         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
41652         Correct typos: s/or/of/.
41653
41654 2005-03-26  Jim Meyering  <jim@meyering.net>
41655
41656         * modules/check-include-files: Move to ../ and rename to...
41657         * check-module: ...this.
41658
41659 2005-03-25  Jim Meyering  <jim@meyering.net>
41660
41661         * modules/xvasprintf (Files): Add xalloc.h.
41662
41663 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
41664
41665         * modules/gettext (Files): config/config.rpath ->
41666         build-aux/config.rpath
41667         * modules/iconv (Files): Likewise.
41668         Problem reported by Oskar Liljeblad.
41669
41670 2005-03-23  Jim Meyering  <jim@meyering.net>
41671
41672         * modules/check-include-files: New script to check for
41673         missing dependencies, multiple includes, etc.
41674
41675         * modules/c-strtold (Depends-on): Add xalloc.
41676         * modules/c-strtod (Depends-on): Add xalloc.
41677         * modules/hash (Depends-on): Add xalloc.
41678         (Files): Remove lib/xalloc.h.
41679
41680         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
41681         * modules/userspec (Files): Add lib/inttostr.h.
41682
41683 2005-03-23  Jim Meyering  <jim@meyering.net>
41684
41685         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
41686
41687 2005-03-22  Jim Meyering  <jim@meyering.net>
41688
41689         * modules/stat-macros: New module.
41690         * modules/canonicalize, modules/euidaccess, modules/file-type,
41691         * modules/filemode, modules/lchown, modules/makepath,
41692         * modules/rmdir, modules/stat: Depend on new stat-macros module
41693         rather than listing lib/stat-macros.h manually.
41694         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
41695
41696 2005-03-22  Jim Meyering  <jim@meyering.net>
41697
41698         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
41699
41700 2005-03-22  Bruno Haible  <bruno@clisp.org>
41701
41702         * config/srclist.txt: Replace target directory 'config' with
41703         'build-aux'.
41704         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
41705         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
41706         ../build-aux/.
41707
41708 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
41709
41710         * modules/chdir-long (Depends-on): Add mempcpy.
41711
41712         * modules/acl, modules/backupfile, modules/c-strtod,
41713         modules/c-strtold, modules/canon-host, modules/canonicalize,
41714         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
41715         modules/exclude, modules/exitfail, modules/file-type,
41716         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
41717         modules/getdate, modules/getline, modules/getpagesize,
41718         modules/getpass, modules/getugroups, modules/group-member,
41719         modules/hard-locale, modules/hash, modules/human, modules/idcache,
41720         modules/inttostr, modules/long-options, modules/makepath,
41721         modules/md5, modules/memcasecmp, modules/memcoll,
41722         modules/modechange, modules/mountlist, modules/path-concat,
41723         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
41724         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
41725         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
41726         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
41727         modules/strftime, modules/strndup, modules/strverscmp,
41728         modules/timespec, modules/unlocked-io, modules/userspec,
41729         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
41730         modules/yesno:
41731         Remove lib_SOURCES line from Makefile.am section, as this is now
41732         done automatically by the corresponding Autoconf macro.
41733
41734 2005-03-21  Jim Meyering  <jim@meyering.net>
41735
41736         Changes imported from coreutils.
41737
41738         * lib/cycle-check.c: Don't include xalloc.h.
41739
41740         * lib/path-concat.c: Don't include assert.h.
41741         (path_concat): Remove assertion that would have triggered
41742         for ABASE starting with more than one slash.
41743         Reported by Andreas Schwab.
41744
41745         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
41746         properly when ABASE is an absolute file name.
41747         Correct the description of this function.
41748         Include <assert.h>.
41749         Add an assertion and a test driver.
41750         This fixes a bug introduced on 2004-07-02.
41751         Andreas Schwab reported the resulting failure of cp --parents:
41752         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
41753
41754 2005-03-21  Jim Meyering  <jim@meyering.net>
41755
41756         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
41757         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
41758
41759 2005-03-21  Jim Meyering  <jim@meyering.net>
41760         and  Paul Eggert  <eggert@cs.ucla.edu>
41761
41762         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
41763         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
41764         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
41765         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
41766         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
41767         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
41768         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
41769         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
41770         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
41771         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
41772         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
41773         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
41774         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
41775         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
41776         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
41777         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
41778         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
41779         for these modules.
41780
41781 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
41782
41783         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
41784         (which shouldn't happen), generate nothing instead of returning 0
41785         immediately, so that nstrftime (NULL, ...) doesn't return 0.
41786
41787 2005-03-16  Bruno Haible  <bruno@clisp.org>
41788
41789         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
41790         HAVE_LONGLONG_64BIT.
41791
41792 2005-03-16  Bruno Haible  <bruno@clisp.org>
41793
41794         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
41795         HAVE_LONGLONG_64BIT.
41796
41797 2005-03-16  Bruno Haible  <bruno@clisp.org>
41798
41799         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
41800         HAVE_LONGLONG_64BIT.
41801
41802 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
41803
41804         * lib/strftime.c (my_strftime): Prepend space to format so that we can
41805         reliably distinguish strftime failure from empty output on POSIX
41806         hosts.
41807
41808 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
41809
41810         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
41811         (iconv_string): Don't guess a size-zero buffer, as that might cause
41812         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
41813         result would be 'too large', where 'too large' is (heuristically)
41814         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
41815         overflow concerns.  This will prevent some unwanted malloc failures
41816         when the inputs are very large.
41817
41818 2005-03-15  Karl Berry  <karl@gnu.org>
41819
41820         * config/srclist.txt (config.rpath): from gettext.
41821         * config/config.rpath: update.
41822
41823 2005-03-15  Bruno Haible  <bruno@clisp.org>
41824
41825         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
41826         to 'negate'.
41827
41828         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
41829         variable.
41830
41831         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
41832         results.
41833
41834 2005-03-14  Simon Josefsson  <jas@extundo.com>
41835
41836         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
41837         <fx@gnu.org>.
41838
41839 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
41840
41841         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
41842         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
41843         intprops.h.
41844         * lib/strtol.c: Likewise.
41845
41846 2005-03-14  Jim Meyering  <jim@meyering.net>
41847
41848         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
41849         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
41850         to be nonzero so that we (and caller) can detect the difference
41851         between a valid zero-length expansion and an error return, even
41852         when the underlying strftime fails before writing anything into
41853         that location.
41854
41855 2005-03-14  Bruno Haible  <bruno@clisp.org>
41856
41857         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
41858         Update from GNU gettext 0.14.3.
41859
41860 2005-03-10  Jim Meyering  <jim@meyering.net>
41861
41862         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
41863
41864 2005-03-10  Jim Meyering  <jim@meyering.net>
41865
41866         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
41867         so that this module works on systems without fchdir.
41868
41869 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
41870
41871         Factor int-properties macros into a single file, except for
41872         glibc-related files.
41873         * lib/intprops.h: New file.
41874         * lib/getloadavg.c: Include it instead of limits.h.
41875         (INT_STRLEN_BOUND): Remove.
41876         * lib/human.c: Include intprops.h.
41877         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
41878         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
41879         302/1000.
41880         * lib/inttostr.h: Include intprops.h instead of limits.h.
41881         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
41882         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
41883         for consistency with intprops.h.
41884         (time_t_is_integer, twos_complement_arithmetic): Use them.
41885         * lib/sig2str.h: Include <signal.h>, intprops.h.
41886         (INT_STRLEN_BOUND): Remove.
41887         * lib/strftime.c (TYPE_SIGNED): Remove.
41888         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
41889         * lib/strtol.c: Adjust comments to match intprops.h.
41890         * lib/userspec.c: Include intprops.h.
41891         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
41892         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
41893         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
41894         instead of rolling our own expressions.
41895         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
41896
41897         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
41898         instead of int.
41899         (my_strftime): Do not mishandle years close to INT_MAX, by doing
41900         the right thing even if adding 1900 would overflow.  Similarly
41901         for tm_mon + 1 and tm_yday + 1.
41902         Make %Y always equivalent to %C%y, and similarly for %G and %g.
41903         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
41904         (DO_SIGNED_NUMBER): New macro.
41905         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
41906
41907 2005-03-07  Bruno Haible  <bruno@clisp.org>
41908
41909         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
41910
41911 2005-03-07  Bruno Haible  <bruno@clisp.org>
41912
41913         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
41914
41915 2005-03-04  Derek R. Price  <derek@ximbiot.com>
41916
41917         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
41918         (func_import): Only replace files via --import when they have actually
41919         changed.
41920
41921 2005-03-03  Derek R. Price  <derek@ximbiot.com>
41922
41923         * m4/mmap-anon.m4: New file.
41924         * m4/pagealign_alloc.m4: New file.
41925
41926 2005-03-03  Derek R. Price  <derek@ximbiot.com>
41927             Bruno Haible  <bruno@clisp.org>
41928
41929         * modules/pagealign_alloc: New file.
41930         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
41931
41932 2005-03-03  Derek R. Price  <derek@ximbiot.com>
41933             Bruno Haible  <bruno@clisp.org>
41934
41935         * lib/pagealign_alloc.h: New file.
41936         * lib/pagealign_alloc.c: New file.
41937
41938 2005-03-03  Bruno Haible  <bruno@clisp.org>
41939
41940         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
41941         Use an all-permissive copyright notice, recommended by RMS.
41942
41943 2005-03-02  Bruno Haible  <bruno@clisp.org>
41944
41945         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
41946         of AIX, the replacement has to be done only after <string.h> is
41947         included, therefore not in config.h. stpncpy.h does the replacement,
41948         and stpncpy.c uses it.
41949
41950 2005-03-02  Bruno Haible  <bruno@clisp.org>
41951
41952         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
41953         stpncpy.c uses it.
41954
41955 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
41956
41957         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
41958         The workaround isn't strictly needed for POSIX conformance, and
41959         it's too much of a pain to configure and maintain.  We'll ask
41960         people to fix their kernels instead.
41961         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
41962         (NANOSLEEP_BUG_WORKAROUND): Remove.
41963         (xnanosleep): Remove the workaround.
41964
41965 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
41966
41967         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
41968         Reported by Derek Price.
41969         (Include): Add "timespec.h".
41970
41971         * modules/xnanosleep (Depends-on): Remove gethrxtime.
41972
41973 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
41974
41975         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
41976         to detect nanosleep bug.
41977
41978 2005-03-01  Bruno Haible  <bruno@clisp.org>
41979
41980         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
41981
41982 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
41983
41984         * modules/gethrxtime: New file.
41985         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
41986         (Depends-on): Add gethrxtime.
41987         (configure.ac): Add gl_XNANOSLEEP.
41988         (Makefile.am): Remove lib_SOURCES line.
41989
41990 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
41991
41992         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
41993         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
41994
41995 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
41996
41997         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
41998         * lib/timespec.h (gettime): Return void, since it always
41999         succeeds now.  All uses changed.
42000         * lib/gettime.c (gettime) Likewise.
42001         [HAVE_NANOTIME]: Prefer nanotime.
42002         Assume gettimeofday succeeds, as POSIX requires.
42003         Assime time () succeeds, since other code already does.
42004         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
42005         (timespec_subtract): Remove.
42006         (NANOSLEEP_BUG_WORKAROUND): New constant.
42007         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
42008         things considerably.  Use it only on GNU/Linux hosts, since the
42009         workaround shouldn't be needed elsewhere.
42010
42011 2005-02-24  Bruno Haible  <bruno@clisp.org>
42012
42013         * modules/gettext (Files): Add m4/glibc2.m4.
42014
42015 2005-02-24  Bruno Haible  <bruno@clisp.org>
42016
42017         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
42018         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
42019         * m4/progtest.m4:
42020         Update from GNU gettext 0.14.2.
42021         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
42022
42023 2005-02-24  Bruno Haible  <bruno@clisp.org>
42024
42025         * lib/localcharset.c: Update from GNU gettext 0.14.2.
42026         * lib/config.charset: Update from GNU gettext 0.14.2.
42027
42028 2005-02-24  Bruno Haible  <bruno@clisp.org>
42029
42030         * lib/gettext.h: Update from GNU gettext 0.14.2.
42031
42032 2005-02-23  Simon Josefsson  <jas@extundo.com>
42033
42034         * m4/iconvme.m4: New file.
42035
42036 2005-02-23  Jim Meyering  <jim@meyering.net>
42037
42038         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
42039         change.
42040         Thanks to Bruno Haible for catching it.
42041
42042 2005-02-22  Simon Josefsson  <jas@extundo.com>
42043
42044         * modules/iconvme: New file.
42045
42046         * MODULES.html.sh: Add iconvme.
42047
42048 2005-02-22  Simon Josefsson  <jas@extundo.com>
42049
42050         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
42051
42052 2005-02-22  Simon Josefsson  <jas@extundo.com>
42053
42054         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
42055
42056 2005-02-22  Jim Meyering  <jim@meyering.net>
42057
42058         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
42059         s/ifndef/ifdef/.
42060
42061 2005-02-20  Neil Conway  <neilc@samurai.com>
42062
42063         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
42064         returned by OSX/Darwin if the specified buffer is not large
42065         enough for the hostname.
42066
42067 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42068
42069         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
42070         pass it to _help, otherwise the latter coredumps trying to
42071         dereference state.root_argp.
42072
42073 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
42074
42075         * modules/chdir-long (Depends-on): Add memrchr.
42076         * modules/memrchr (Files): Add lib/memrchr.h.
42077         (Include): "memrchr.h".
42078
42079 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
42080
42081         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
42082
42083 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
42084
42085         * lib/memrchr.h: New file.
42086         * lib/chdir-long.c: Include it.
42087         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
42088         Don't bother including stddef.h.
42089
42090 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
42091
42092         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
42093         inclusion.
42094         Include <sys/types.h>, for dev_t.
42095         (ME_DUMMY, ME_REMOTE): Move from here....
42096         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
42097         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
42098         Dmitry V. Levin.
42099         Include mountlist.h first, to test the interface.
42100
42101 2005-01-29  Bruno Haible  <bruno@clisp.org>
42102
42103         * lib/progname.c (program_name): Initialize.
42104         Needed when linking statically on MacOS X.
42105
42106 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42107
42108         Sync from coreutils.
42109         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
42110         (Depends-on): Add c-strtod.
42111         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
42112
42113 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
42114
42115         Sync from coreutils.
42116         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
42117
42118         Remove files that are specific to coreutils.
42119         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
42120
42121 2005-01-28  Bruno Haible  <bruno@clisp.org>
42122
42123         * modules/javacomp: New file.
42124         * MODULES.html.sh (Java): Add javacomp.
42125
42126 2005-01-28  Bruno Haible  <bruno@clisp.org>
42127
42128         * m4/javacomp.m4: New file, from GNU gettext.
42129
42130 2005-01-28  Bruno Haible  <bruno@clisp.org>
42131
42132         * lib/javacomp.sh.in: New file, from GNU gettext.
42133         * lib/javacomp.h: New file, from GNU gettext.
42134         * lib/javacomp.c: New file, from GNU gettext.
42135
42136 2005-01-26  Simon Josefsson  <jas@extundo.com>
42137
42138         * lib/gai_strerror.c: Use GPL in header.
42139
42140 2005-01-26  Bruno Haible  <bruno@clisp.org>
42141
42142         * modules/javaexec: New file.
42143         * MODULES.html.sh (Java): Add javaexec.
42144
42145 2005-01-26  Bruno Haible  <bruno@clisp.org>
42146
42147         * m4/javaexec.m4: New file, from GNU gettext.
42148
42149 2005-01-26  Bruno Haible  <bruno@clisp.org>
42150
42151         * lib/javaexec.sh.in: New file, from GNU gettext.
42152         * lib/javaexec.h: New file, from GNU gettext.
42153         * lib/javaexec.c: New file, from GNU gettext.
42154
42155 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42156
42157         * modules/lchown (Depends-on): Remove lchown.h
42158
42159 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42160
42161         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
42162         must be defined if the header file was not found, in order
42163         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
42164
42165 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42166
42167         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
42168         initializers for struct pentry_state.
42169         (__argp_error): Check return value of __asprintf
42170         (__argp_failure): Translate error message
42171
42172         * lib/argp-parse.c: Removed braces around the expansion of N_()
42173
42174 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
42175
42176         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
42177         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
42178         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
42179         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
42180         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
42181         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
42182         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
42183         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
42184         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
42185         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
42186         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
42187         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
42188         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
42189         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
42190         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
42191         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
42192         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
42193         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
42194         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
42195         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
42196         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
42197         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
42198         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
42199         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
42200         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
42201         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
42202         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
42203         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
42204         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
42205         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
42206         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
42207         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
42208         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
42209         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
42210         xstrtol.m4, xstrtoumax.m4, yesno.m4:
42211         Use an all-permissive copyright notice, recommended by RMS.
42212
42213 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
42214
42215         * modules/chdir-long (Depends-on): Remove mempcpy.
42216
42217 2005-01-21  Jim Meyering  <jim@meyering.net>
42218
42219         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
42220         same value as for Solaris 9.
42221
42222         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
42223         component length.  This included changing the parameter to be
42224         of type `char *' rather than `char const *'.
42225         * lib/chdir-long.h (chdir_long): Update prototype.
42226
42227         * lib/openat.c (fdopendir, fstatat): New functions.
42228         * lib/openat.h: Include headers required for use of DIR and struct
42229         stat.
42230         [AT_SYMLINK_NOFOLLOW]: Define.
42231         (fdopendir, fstatat): Add prototypes.
42232
42233 2005-01-21  Bruno Haible  <bruno@clisp.org>
42234
42235         * modules/classpath: New file.
42236         * MODULES.html.sh (Java): Add classpath.
42237
42238 2005-01-21  Bruno Haible  <bruno@clisp.org>
42239
42240         * lib/classpath.h: New file, from GNU gettext.
42241         * lib/classpath.c: New file, from GNU gettext.
42242
42243 2005-01-20  Simon Josefsson  <jas@extundo.com>
42244
42245         * modules/version-etc-fsf: New file.
42246
42247 2005-01-20  Simon Josefsson  <jas@extundo.com>
42248
42249         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
42250         * lib/version-etc.c: Remove version_etc_copyright.
42251         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
42252         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
42253
42254 2005-01-20  Simon Josefsson  <jas@extundo.com>
42255
42256         * lib/base64.h (isbase64): Add.
42257
42258         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
42259         using a unsigned prototype, don't inline.
42260         (base64_decode): Use it.
42261
42262 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
42263
42264         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
42265         it.
42266
42267 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
42268
42269         * lib/save-cwd.c (save_cwd): Remove code to support the case
42270         where fchdir is missing or flaky.
42271
42272 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
42273
42274         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
42275
42276 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
42277
42278         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
42279         AC_LIBSOURCES now does this.
42280         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
42281         with new ullong_max module.
42282
42283 2005-01-19  Bruno Haible  <bruno@clisp.org>
42284
42285         * modules/sh-quote: New file.
42286         * MODULES.html.sh (Executing programs): Add sh-quote.
42287
42288 2005-01-19  Bruno Haible  <bruno@clisp.org>
42289
42290         * lib/sh-quote.h: New file, from GNU gettext.
42291         * lib/sh-quote.c: New file, from GNU gettext.
42292
42293 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
42294
42295         Merge from coreutils.
42296         * m4/ullong_max.m4: New file.
42297         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
42298         (gl_MACROS): Assume localeconv exists.
42299
42300 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
42301
42302         Merge changes from coreutils, as described below in several
42303         changelogs dated today.
42304
42305         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
42306         (O_DIRECTORY): Remove; not needed here, since "." must be
42307         a directory.  All uses removed.
42308         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
42309         universal on Suns, and we also need to test for IRIX.
42310         Revamp code to use 'if' rather than '#if'.
42311         Avoid unnecessary comparison of cwd->desc to 0.
42312
42313         * lib/utimens.c (futimens): Robustify the previous patch, by checking
42314         for known valid error numbers rather than observed invalid ones.
42315
42316 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
42317
42318         * modules/ullong_max: New file.
42319
42320         * modules/chdir-long, modules/openat: New files.
42321         * modules/save-cwd (Depends-on): Depend on chdir-long.
42322         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
42323
42324 2005-01-18  Jim Meyering  <jim@meyering.net>
42325
42326         Merge from coreutils.
42327         * m4/chdir-long.m4, m4/openat.m4: New files.
42328         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
42329         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
42330         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
42331         is sane and DOES follow symlinks.  Besides, testing 20 different
42332         systems found no broken chown implementations.
42333         Prompted by a change in rsync's copy of this macro.
42334         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
42335
42336         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
42337
42338         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
42339         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
42340         NULL-means-set-to-current-time semantics.
42341         Remove temporary file immediately, rather than waiting
42342         for configure's at-exit trap code to do it.
42343
42344 2005-01-18  Jim Meyering  <jim@meyering.net>
42345
42346         * lib/version-etc.c (version_etc_copyright): Update copyright date.
42347
42348         * lib/utimens.c (futimens): Account for the fact that futimes
42349         can also fail with errno == ENOSYS or errno == ENOENT.
42350         Patch from Dmitry V. Levin.
42351
42352         Change the name of the robust chdir function from chdir to chdir_long.
42353         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
42354         (restore_cwd): Use chdir_long, not chdir.
42355         * lib/chdir-long.c: Renamed from chdir.c.
42356         * lib/chdir-long.h: Renamed from chdir.h.
42357         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
42358         Hurd.
42359
42360 2005-01-18  Bruno Haible  <bruno@clisp.org>
42361
42362         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
42363         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
42364         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
42365         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
42366         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
42367         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
42368         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
42369         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
42370         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
42371         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
42372         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
42373         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
42374         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
42375         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
42376         Use an all-permissive copyright notice, recommended by RMS.
42377
42378 2005-01-18  Bob Proulx  <bob@proulx.com>
42379
42380         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
42381         simplify offsetof() macro construct to avoid compile failure with
42382         native HP-UX 11.0 ANSI C compiler.
42383
42384 2005-01-17  Bruno Haible  <bruno@clisp.org>
42385
42386         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
42387         redundant because stpncpy.m4 takes care of it.
42388
42389 2005-01-17  Bruno Haible  <bruno@clisp.org>
42390
42391         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
42392
42393 2005-01-17  Bruno Haible  <bruno@clisp.org>
42394
42395         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
42396         used.
42397
42398 2005-01-17  Bruno Haible  <bruno@clisp.org>
42399
42400         * lib/fwriteerror.h (fwriteerror): Change specification to include
42401         fclose.
42402         * lib/fwriteerror.c: Include <stdbool.h>.
42403         (fwriteerror): At the end, close the file stream. Record whether
42404         stdout was already closed.
42405
42406 2005-01-17  Bruno Haible  <bruno@clisp.org>
42407
42408         * lib/execute.c (environ): Declare if needed.
42409         * lib/pipe.c (environ): Likewise.
42410         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
42411
42412 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42413
42414         * modules/argp: Depend on vsnprintf
42415
42416 2005-01-10  Jim Meyering  <jim@meyering.net>
42417
42418         * modules/closeout (Depends-on): Add atexit.
42419
42420 2005-01-06  Bruno Haible  <bruno@clisp.org>
42421
42422         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
42423
42424 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
42425
42426         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
42427         definitions to be after all include files, to avoid collisions.
42428         Problem reported by Bob Proulx.
42429
42430 2005-01-04  Jim Meyering  <jim@meyering.net>
42431
42432         Changes imported from coreutils.
42433         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
42434         as the mkstemp template, use a temporary directory and an
42435         8.3-friendly template to avoid trouble on systems like DJGPP.
42436         Reported by Juan M. Guerrero via Stepan Kasal.
42437         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
42438         close. Remove the temporary directory right away, rather than waiting
42439         for configure's at-exit trap code to do it.
42440         Suggestion from Stepan Kasal.
42441
42442 2005-01-01  Simon Josefsson  <jas@extundo.com>
42443
42444         * gnulib-tool: Print #include directives when --import'ing.
42445
42446 2004-12-28  Simon Josefsson  <jas@extundo.com>
42447
42448         * tests/test-base64.c: Include required header files.  Remove
42449         unused variables.
42450
42451 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
42452
42453         * modules/error (Depends-on): Remove gettext.
42454
42455 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
42456
42457         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
42458         not needed.  This removes a dependency on the gettext module.
42459         [defined _LIBC]: Do not include <libintl.h>; not needed.
42460
42461 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
42462
42463         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
42464         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
42465
42466 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
42467
42468         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
42469         HAVE_DECL_STRTOLD.
42470
42471 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
42472
42473         * modules/getdate (Depends-on): Remove alloca-opt.
42474
42475 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
42476
42477         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
42478
42479 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
42480
42481         * lib/argp-parse.c: Include <stddef.h>.
42482         (alignof, alignto): New macros.
42483         (parser_init): Don't assume that void * is aligned sufficiently
42484         for struct option.
42485
42486         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
42487         need to extend the stack.
42488         (YYINITDEPTH): New macro, so that the initial stack isn't overly
42489         large.
42490
42491 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42492
42493         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
42494
42495 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
42496
42497         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
42498         (2004-10-24) change.  Apparently this was a false alarm.
42499
42500         * modules/getdate: Depend on alloca-opt, not alloca.
42501
42502 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
42503
42504         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
42505         Remove now-obsolete comment about AIX.
42506         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
42507         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
42508         (YYMAXDEPTH): New macro.
42509
42510 2004-12-18  Simon Josefsson  <jas@extundo.com>
42511
42512         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
42513
42514 2004-12-18  Bruno Haible  <bruno@clisp.org>
42515
42516         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
42517
42518 2004-12-18  Bruno Haible  <bruno@clisp.org>
42519
42520         * lib/fatal-signal.c (fatal_signals): Make non-const.
42521         (init_fatal_signals): New function.
42522         (uninstall_handlers, install_handlers): Ignore signals that were set to
42523         SIG_IGN.
42524         (at_fatal_signal): Call init_fatal_signals.
42525         (init_fatal_signal_set): Likewise. Ignore signals that were set to
42526         SIG_IGN.
42527         Reported by Paul Eggert.
42528
42529 2004-12-18  Bruno Haible  <bruno@clisp.org>
42530
42531         * doc/alloca.texi: New file.
42532         * doc/alloca-opt.texi: New file.
42533
42534 2004-12-17  Jim Meyering  <jim@meyering.net>
42535
42536         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
42537         Otherwise, install-sh could exit with improper exit status when
42538         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
42539
42540 2004-12-16  Simon Josefsson  <jas@extundo.com>
42541
42542         * tests/test-base64.c: Add license.
42543
42544 2004-12-15  Stepan Kasal  <address@hidden>
42545
42546         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
42547
42548 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
42549
42550         * modules/getcwd (Files): Add m4/d-ino.m4.
42551         Suggested by Mark D. Baushke.
42552
42553 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
42554
42555         * lib/getdate.y (textint): New member "negative".
42556         (time_zone_hhmm): New function.
42557         Expect 14 shift-reduce conflicts, not 13.
42558         (o_colon_minutes): New rule.
42559         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
42560         (yylex): Set the "negative" member of signed numbers.
42561
42562 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
42563
42564         * doc/getdate.texi (Time of day items, Time zone items):
42565         Describe new formats +00:00, UTC+00:00.
42566
42567 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
42568
42569         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
42570         spurious "-l"s.  Problem reported by Stepan Kasal.
42571
42572 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
42573
42574         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
42575         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
42576
42577 2004-12-04  Simon Josefsson  <jas@extundo.com>
42578
42579         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
42580         Vandoorselaere <yoann@prelude-ids.org>.
42581
42582 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
42583
42584         Changes imported from coreutils.
42585         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
42586         exist.
42587         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
42588
42589 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
42590
42591         Changes imported from coreutils.
42592         * lib/hard-locale.c: Assume <locale.h> exists.
42593         Include "strdup.h".
42594         (GLIBC_VERSION): New macro.
42595         (hard_locale): Assume setlocale exists.
42596         Rewrite to avoid #ifdef.
42597         Use strdup rather than malloc + strcpy.
42598         * lib/human.c: Assume <locale.h> exists.
42599         (human_readable): Assume localeconv exists.
42600
42601 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
42602
42603         * modules/hard-locale (Depends-on): Add strdup.
42604
42605 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
42606
42607         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
42608         convert T2, not T.  (Imported from libc.)
42609
42610 2004-11-30  Simon Josefsson  <jas@extundo.com>
42611
42612         * modules/restrict (License): Change to LGPL.
42613
42614 2004-11-30  Simon Josefsson  <jas@extundo.com>
42615
42616         * m4/restrict.m4: Add copyright and copying conditions.
42617
42618 2004-11-30  Simon Josefsson  <jas@extundo.com>
42619
42620         * m4/base64.m4: New file.
42621
42622 2004-11-30  Simon Josefsson  <jas@extundo.com>
42623
42624         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
42625         base64.
42626
42627         * tests/test-base64.c: New file.
42628
42629         * modules/base64: New file.
42630
42631 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
42632
42633         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
42634         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
42635
42636         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
42637
42638 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
42639
42640         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
42641         (__getcwd.c): Don't restore errno; glibc doesn't.
42642         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
42643         first, falling back to our code only if its results look suspicious.
42644         Ensure that the resulting buffer is only as large as necessary.
42645
42646         * lib/readutmp.c: Include readutmp.h first.
42647         Include <errno.h>, since readutmp.h no longer does that.
42648         * lib/readutmp.h: Don't include <errno.h>,
42649         <sys/param.h>, <time.h>; not needed to establish interface.
42650         (errno): Remove decl.
42651         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
42652         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
42653         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
42654
42655 2004-11-28  Simon Josefsson  <jas@extundo.com>
42656
42657         * lib/base64.h, base64.c: New file.
42658
42659 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
42660
42661         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
42662
42663 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
42664
42665         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
42666         (Depends-on): Remove pathmax, same.  Add mempcpy.
42667         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
42668         (Makefile.am): Append getcwd.h to lib_SOURCES.
42669         (Include): Add getcwd.h.
42670         (Maintainer): Change from Jim Meyering to "all, glibc",
42671         since getdate now uses intended-for-glibc code.
42672         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
42673         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
42674
42675 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
42676
42677         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
42678         HP's ANSI C compiler.
42679         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
42680         Declaring int functions causes warnings on some modern systems and
42681         shouldn't be needed to compile on ancient ones.
42682         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
42683         defined.
42684
42685         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
42686         with the following changes.
42687         (__set_errno): Parenthesize properly.
42688         Include <stdbool.h>.
42689         (MIN, MAX, MATCHING_INO): New macros.
42690         (__getcwd): Define with prototype, not K&R form.
42691         Use heuristics to allocate default buffer on stack if possible.
42692         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
42693         behavior, and to avoid the PATH_MAX limit when computing
42694         ../../../../...
42695         Use MATCHING_INO to compare inode number to file.
42696         Check for arithmetic overflow in size calculations.
42697         Fix bug in reallocation of dot array that caused getcwd to fail
42698         on directories nested deeper than 75.
42699         Be more careful about saving errno on error.
42700         Do not use realloc; use only free+malloc, as this is a bit
42701         more flexible and avoids a needless copy operation.
42702         Do not inspect st_dev and st_ino for symbolic links; POSIX
42703         doesn't specify the latter.
42704         Check for closedir errors.
42705         Avoid needless casts.
42706         Use "#ifdef weak_alias" around weak_alias, to be like other
42707         glibc code.
42708         The following changes to getcwd.c have effect only when used in
42709         gnulib; they have no effect inside glibc proper.
42710         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
42711         as alloca isn't used.
42712         (alloca, __alloca): Likewise.
42713         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
42714         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
42715         unconditionally, as gnulib assumes C89 or better.
42716         Do not include <sys/param.h>.
42717         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
42718         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
42719         better.
42720         (NULL) [!defined NULL]: Remove; we assume C89 or better.
42721         Include <dirent.h> in a way that is compatible with modern Autoconf.
42722         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
42723         New macros, if not already defined.
42724         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
42725         Use "_LIBC", not "defined _LIBC", for consistency.
42726         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
42727         a mempcpy module.
42728         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
42729         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
42730         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
42731         credit only to Jim Meyering and adjust the copyright dates.
42732         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
42733         <stdlib.h>, <unistd.h>, "pathmax.h".
42734         Instead, include "xgetcwd.h" (first) and "getcwd.h".
42735         (INITIAL_BUFFER_SIZE): Remove.
42736         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
42737
42738 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
42739
42740         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
42741         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
42742         Use the _ONCE methods, for efficiency.
42743         Check for fcntl.h.  In test program, include <errno.h>
42744         and <fcntl.h> if available.  Remove old K&R cruft from
42745         test program.  Check for common errors in GNU/Linux,
42746         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
42747         don't do AC_LIBOBJ, as that's getcwd.m4's job.
42748         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
42749         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
42750         name accordingly.
42751         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
42752         accommodate new getcwd.c.
42753         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
42754         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
42755         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
42756         that's all we need now.
42757
42758 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42759
42760         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
42761         argp-parse.c depends on getopt internals, that means we should
42762         always use our getopt, to be on the safe side.
42763         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
42764         order not to spoil the result of an eventual previous invocation
42765         of gl_GETOPT_SUBSTITUTE.
42766
42767 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
42768
42769         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
42770         redefinition warnings. To avoid them, include the defines
42771         in `#if !defined __need_getopt ... #endif'. The only place
42772         where __getopt_argv_const is used is in definitions
42773         of getopt_long and getopt_long_only below, which are as well
42774         protected by `#ifndef __need_getopt'.
42775         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
42776         __need_getopt after including <stdio.h> and <unistd.h> These
42777         headers might have defined it.
42778
42779 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
42780
42781         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
42782
42783 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
42784
42785         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
42786         (futimens): New function, which uses futimes if available.
42787         (futimens, utimens): Support timespec==NULL, with same semantics
42788         as utime and utimens.
42789         * lib/utimens.h (futimens): New decl.
42790
42791 2004-11-23  Jim Meyering  <jim@meyering.net>
42792
42793         * lib/getopt_.h: Remove trailing blanks.
42794
42795 2004-11-23  Jim Meyering  <jim@meyering.net>
42796
42797         * lib/__fpending.c: Add comment.
42798
42799 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
42800
42801         * modules/canonicalize (Depends-on): Add xreadlink.
42802         Problem reported by James Youngman.
42803
42804 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
42805
42806         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
42807         New macros.
42808         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
42809         optopt): Use them instead of invoking ## directly; otherwise, the
42810         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
42811
42812 2004-11-19  Bruno Haible  <bruno@clisp.org>
42813
42814         * lib/strtok_r.c: Move comments from here...
42815         * lib/strtok_r.h: ... to here.
42816
42817 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
42818
42819         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
42820         implementations that mishandle size_t overflow.
42821
42822 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
42823
42824         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
42825         might fail.  Problem reported by Yoann Vandoorselaere.
42826         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
42827         implementations that mishandle size_t overflow.
42828
42829 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
42830
42831         * modules/canon-host (Depends-on): Add strdup.
42832
42833 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
42834
42835         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
42836
42837 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
42838
42839         * lib/canon-host.c: Include "strdup.h".
42840         (canon_host): Use getaddrinfo if available, so that IPv6 works.
42841         Use strdup instead of malloc/strcpy to duplicate strings.
42842
42843         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
42844         (human_space_before_unit): New constant.
42845         * lib/human.c (human_readable): Support it.
42846
42847         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
42848         (xgetcwd): Set errno correctly when failing.
42849         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
42850         the failure is actually due to a PATH_MAX problem.
42851
42852         Further getopt changes to make it more likely that glibc will
42853         buy the changes back.
42854         * lib/getopt.c (POSIXLY_CORRECT): New constant.
42855         (getopt): Use it, so to preserve glibc semantic
42856         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
42857         when compiling for libc.
42858         * lib/getopt_.h (__getopt_argv_const): Bring it back.
42859         (getopt_long, getopt_long_only): Use it.
42860
42861         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
42862         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
42863         (getopt): Argv is now char * const *, as per standard.
42864         (_getopt_internal_r, _getopt_internal): Argv is now char **,
42865         not char *__getopt_argv_const *.
42866         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
42867         _getopt_long_only_r): Likewise.
42868         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
42869         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
42870         _getopt_long_r, _getopt_long_only_r): Likewise.
42871         * lib/getopt_.h (__getopt_argv_const): Remove.
42872         (getopt): Argv is now char * const *, as per standard.
42873
42874         * lib/getdate.y (tORDINAL): New token.
42875         (day, relunit): Allow it for relative times.
42876         (relative_time_table): Use tORDINAL for ordinals.
42877
42878 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
42879
42880         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
42881         Document that "second" isn't allowed as an ordinal number.
42882
42883 2004-11-16  Jim Meyering  <jim@meyering.net>
42884
42885         * modules/closeout (Depends-on): Add fpending.
42886
42887 2004-11-15  Jim Meyering  <jim@meyering.net>
42888
42889         * lib/closeout.c: Include "__fpending.h" once again.
42890         Include <stdbool.h>.
42891         (close_stdout): Don't fail just because stdout was closed initially,
42892         since some programs don't write to stdout in the normal course of
42893         operation (other than --version and --help), and we don't want this
42894         function to make e.g. `touch file >&-' fail.
42895         But do fail if it was closed and someone has tried to write to it.
42896         E.g., `printf foo >&-' must fail.
42897
42898 2004-11-13  Jim Meyering  <jim@meyering.net>
42899
42900         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
42901
42902 2004-11-12  Simon Josefsson  <jas@extundo.com>
42903
42904         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
42905         small doc fix is still pending.
42906
42907 2004-11-11  Simon Josefsson  <jas@extundo.com>
42908
42909         * modules/strtok_r: New file.
42910
42911         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42912         strtok_r.
42913
42914 2004-11-11  Simon Josefsson  <jas@extundo.com>
42915
42916         * m4/strtok_r.m4: New file.
42917
42918         * m4/getopt.m4: Replace opterr.
42919
42920 2004-11-11  Simon Josefsson  <jas@extundo.com>
42921
42922         * lib/strtok_r.h, strtok_r.c: New file.
42923
42924 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
42925
42926         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
42927         of replacing opterr, getopt, etc.  This should handle the
42928         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
42929
42930 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
42931
42932         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
42933         we can stop lying to compilers about the constness of argv when we
42934         are compiled outside glibc.
42935         (getopt, getopt_long, getopt_long_only): Use it.
42936         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
42937         _getopt_internal, getopt): Likewise.
42938         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
42939         _getopt_long_only_r): Likewise.
42940         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
42941         _getopt_long_r, _getopt_long_only_r): Likewise.
42942
42943         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
42944         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
42945         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
42946         the other external symbols.
42947         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
42948         declaration, since the above renaming now works around collisions.
42949
42950 2004-11-11  Jim Meyering  <jim@meyering.net>
42951
42952         * lib/linebreak.c: Remove trailing blanks.
42953         * lib/alloca_.h: Likewise.
42954         * lib/acosl.c: Likewise.
42955         * lib/euidaccess.c: Likewise.
42956         * lib/allocsa.h: Likewise.
42957
42958 2004-11-10  Simon Josefsson  <jas@extundo.com>
42959
42960         * m4/getaddrinfo.m4: New file.
42961
42962 2004-11-10  Simon Josefsson  <jas@extundo.com>
42963
42964         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
42965
42966 2004-11-10  Simon Josefsson  <jas@extundo.com>
42967
42968         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42969         getaddrinfo.
42970
42971         * modules/getaddrinfo: New file.
42972
42973 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
42974
42975         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
42976
42977 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
42978
42979         * lib/mktime.c (SHR): New macro, which is a portable
42980         substitute for >> that should work even on Crays.
42981         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
42982         Problem reported by Mark D. Baushke in
42983         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
42984         * lib/getdate.y (SHR): Likewise.
42985         (tm_diff): Use it.
42986         * lib/strftime.c (SHR): Likewise.
42987         (tm_diff): Use it.
42988         * lib/quotearg.c (struct quoting_options): Use unsigned int for
42989         quote_these_too, so that right shifts are well defined.  All uses
42990         changed.
42991
42992 2004-11-10  Jim Meyering  <jim@meyering.net>
42993
42994         Ensure that no close failure goes unreported.
42995         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
42996         return early when it seems there's nothing to flush.
42997         Don't include __fpending.h.
42998
42999 2004-11-10  Jim Meyering  <jim@meyering.net>
43000
43001         * modules/closeout (Depends-on): Remove fpending.
43002
43003 2004-11-10  Jim Meyering  <jim@meyering.net>
43004
43005         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
43006
43007 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
43008
43009         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
43010         gl_FUNC_STRFTIME.
43011         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
43012         and AC_REQUIRE when possible, to avoid duplicate checks.
43013         Check for <wchar.h>.
43014
43015 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
43016
43017         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
43018
43019 2004-11-09  Bruno Haible  <bruno@clisp.org>
43020
43021         * m4/sockpfaf.m4: New file.
43022
43023 2004-11-05  Bruno Haible  <bruno@clisp.org>
43024
43025         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
43026         Reported by Mark D. Baushke <mdb@cvshome.org>.
43027
43028 2004-11-04  Bruno Haible  <bruno@clisp.org>
43029
43030         2004-09-11  Bruno Haible  <bruno@clisp.org>
43031                 * allocsa.valgrind: New file.
43032         2004-02-06  Bruno Haible  <bruno@clisp.org>
43033                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
43034                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
43035                 Reported by Christopher Seip <chris.seip@hp.com>.
43036
43037 2004-11-04  Bruno Haible  <bruno@clisp.org>
43038
43039         * modules/allocsa (Files): Add lib/allocsa.valgrind.
43040         (Makefile.am): Distribute it.
43041
43042 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
43043
43044         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
43045         with errno == ERANGE if the buffer is too small.
43046         Problem reported by Mark D. Baushke.
43047
43048 2004-11-03  Albert Chin  <china@thewrittenword.com>
43049             Paul Eggert  <eggert@cs.ucla.edu>
43050
43051         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
43052         equivalent, substitute $ac_type for equivalent type rather than
43053         blindly using uint32_t *always* which won't work if uint32_t is not
43054         available.  Define _UINT32_T to work around typedef of uint32_t if
43055         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
43056         2.5.1.
43057
43058 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
43059
43060         * m4/jm-macros.m4: Sync from coreutils.
43061         (gl_MACROS): Check for mbrlen, for pathchk.
43062         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
43063
43064 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
43065
43066         * lib/xreadlink.c (MAXSIZE): New macro.
43067         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
43068         size does not exceed MAXSIZE.  Avoid cast.
43069         As suggested by Mark D. Baushke in
43070         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
43071         if readlink fails with buffer size just under MAXSIZE, try again
43072         with MAXSIZE.
43073
43074 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
43075
43076         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
43077
43078 2004-11-02  Derek R. Price  <derek@ximbiot.com>
43079         and  Paul Eggert  <eggert@cs.ucla.edu>
43080
43081         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
43082         (get_date): Overparenthesize to avoid GCC warning.
43083
43084 2004-11-02  Bruno Haible  <bruno@clisp.org>
43085
43086         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
43087         returns void.
43088
43089 2004-11-02  Bruno Haible  <bruno@clisp.org>
43090
43091         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
43092         function returns void.
43093
43094 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
43095
43096         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
43097         fflush_unlocked, flockfile, funlockfile, funlockfile,
43098         fputs_unlocked, putc_unlocked.
43099
43100 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
43101
43102         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
43103         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
43104         already declared.
43105
43106 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
43107
43108         * modules/getdate (Files): Add doc/getdate.texi.
43109         (Depends-on): Add setenv, xalloc.
43110
43111 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
43112
43113         * lib/getdate.y: Add support for TZ="foo" within a date string.
43114         Fix some bugs near time_t boundaries.  Reject dates with
43115         out-of-range components, e.g., "Sept 31".
43116         Include <stdlib.h>, "setenv.h", "xalloc.h".
43117         (ISDIGIT_LOCALE): Remove; unused.
43118         Note that the TZ and time functions used here are not reentrant.
43119         (mktime_ok, get_tz): New functions.
43120         (TZBUFSIZE): New constant.
43121         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
43122         This requires that we sometimes generate our own TZ="XXX..." setting.
43123
43124 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
43125
43126         * doc/getdate.texi: New file, from coreutils with modifications for
43127         the new TZ parsing.
43128
43129 2004-10-27  Derek R. Price  <derek@ximbiot.com>
43130
43131         * lib/mktime.c (not_equal_tm): Remove redundant check.
43132
43133 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
43134
43135         * modules/regex (lib_SOURCES): Add regex.c.
43136         Reported by James Youngman in
43137         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
43138
43139 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
43140
43141         * lib/getdate.y: Use Bison 1.875 features, and some minor
43142         code cleanups.  This change does not affect semantics.
43143         Don't include <stdlib.h>; no longer needed.
43144         Don't include unlocked-io.h; only the "#if TEST" code uses
43145         stdio, and performance isn't crucial there.
43146         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
43147         Bison 1.875 features as described below.
43148         All uses of "PC." replaced by "pc->".
43149         (YYSTYPE): Add a forward declaration.
43150         (yylex, yyerror): Use full prototypes in forward decls.
43151         Use "%pure-parser" rather than obsolescent "%pure_parser".
43152         Use %parse-param and %lex-param instead of obsolescent
43153         YYPARSE_PARAM and YYLEX_PARAM.
43154         (meridian_table, month_and_day_table, time_units_table,
43155         relative_time_table, time_zone_table, military_table,
43156         lookup_zone, lookup_word, get_date):
43157         Use NULL instead of 0 where appropriate.
43158         (to_hour): Avoid abort (), to avoid a dependency on
43159         stdlib.h.
43160         (yyerror, yylex): Now accepts parser_control * arg.
43161         (main) [TEST]: Use '\0' rather than 0 for char.
43162
43163 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43164
43165         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
43166
43167 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
43168
43169         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
43170         It's now the caller's responsibility to handle the case where
43171         !HAVE_GETPAGESIZE && !defined getpagesize.
43172
43173         * lib/mktime.c (leapyear): Arg is long int, not int.
43174
43175 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
43176
43177         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
43178
43179 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
43180
43181         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
43182         missing.  Problem reported by James Youngman.
43183
43184 2004-10-16  Simon Josefsson  <jas@extundo.com>
43185
43186         * gnulib-tool: Fix comments.  Fix parse problem.
43187         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
43188
43189 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
43190
43191         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
43192         implementation of getopt_long.  Problem reported by Alexander Taler in:
43193         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
43194
43195 2004-10-15  Bruno Haible  <bruno@clisp.org>
43196
43197         * gnulib-tool: Untabify. Initialize supplied_libname.
43198         (func_usage): More homogenous output.
43199         (func_modules_transitive_closure, func_modules_to_filelist,
43200         func_emit_lib_Makefile_am): New functions.
43201         (func_import): New function, extracted from big case statement. Use
43202         func_get_license, func_modules_transitive_closure,
43203         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
43204         opt_lgpl. Don't use test -a, as it's not portable.
43205         (func_create_testdir): Use func_modules_transitive_closure,
43206         func_modules_to_filelist, func_emit_lib_Makefile_am.
43207
43208 2004-10-15  Bruno Haible  <bruno@clisp.org>
43209
43210         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
43211
43212 2004-10-15  Bruno Haible  <bruno@clisp.org>
43213
43214         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
43215         the portions belonging to each module.
43216         Suggested by Derek Robert Price <derek@ximbiot.com>.
43217
43218 2004-10-12  Simon Josefsson  <jas@extundo.com>
43219
43220         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
43221         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
43222         to real functions.
43223
43224 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43225
43226         * modules/vsnprintf: New file.
43227
43228 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43229
43230         * m4/vsnprintf.m4: New file.
43231
43232 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43233
43234         * lib/vsnprintf.h: New file.
43235         * lib/vsnprintf.c: New file.
43236
43237 2004-10-11  Bruno Haible  <bruno@clisp.org>
43238
43239         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
43240         vsnprintf.
43241
43242 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
43243
43244         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
43245
43246 2004-10-07  Bruno Haible  <bruno@clisp.org>
43247
43248         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
43249         fits into the provided buffer.
43250
43251 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
43252
43253         * lib/diacrit.c, diacrit.h: Add GPL notice.
43254
43255         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
43256         notice.
43257         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
43258         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
43259         This avoids a potential constant-folding bug.
43260
43261 2004-10-05  Bruno Haible  <bruno@clisp.org>
43262
43263         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
43264         for the declaration of strsep.
43265
43266 2004-10-05  Bruno Haible  <bruno@clisp.org>
43267
43268         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
43269
43270 2004-10-04  Simon Josefsson  <jas@extundo.com>
43271
43272         * modules/memmem: New file.
43273         * tests/test-memmem.c: New file.
43274         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
43275
43276 2004-10-04  Simon Josefsson  <jas@extundo.com>
43277
43278         * m4/memmem.m4: New file.
43279
43280 2004-10-04  Simon Josefsson  <jas@extundo.com>
43281
43282         * lib/memmem.h: New file.
43283         * lib/memmem.c: New file, taken from glibc.
43284
43285 2004-10-04  Simon Josefsson  <jas@extundo.com>
43286
43287         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
43288         '#ifdef USE_UNLOCKED_IO'.
43289
43290 2004-10-04  Simon Josefsson  <jas@extundo.com>
43291
43292         * config/srclist.txt: Add memmem from glibc.
43293
43294 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
43295
43296         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
43297
43298         * modules/argmatch, modules/argp, modules/closeout, modules/error,
43299         modules/exclude, modules/getdate, modules/getline,
43300         modules/getndelim2, modules/getpass, modules/getpass-gnu,
43301         modules/getusershell, modules/linebuffer, modules/md5,
43302         modules/mountlist, modules/posixtm, modules/readtokens,
43303         modules/readutmp, modules/regex, modules/sha1,
43304         modules/version-etc, modules/yesno:
43305         Remove dependency on unlocked-io.
43306
43307 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
43308
43309         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
43310
43311         * m4/unlocked-io.m4: Add copyright notice.
43312         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
43313
43314 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
43315
43316         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
43317         * lib/xmalloc.c (xmemdup): Likewise.
43318         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
43319         XFREE): Remove these long-obsolescent macros.
43320         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
43321         * lib/xstrdup.c: Remove.
43322
43323         * lib/regex.c (re_comp): Cast gettext return value to char *,
43324         Problem reported by Martin Neitzel via Mark D. Baushke.
43325
43326 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
43327
43328         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
43329         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
43330         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
43331         regex.c, sha1.c, version-etc.c, yesno.c:
43332         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
43333         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
43334         the includer's responsibility.
43335
43336         Sync from coreutils.
43337
43338         * lib/modechange.c (mode_compile): Don't decrement a pointer that
43339         points to the start of a string, as the C Standard says the
43340         resulting behavior is undefined.
43341
43342         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
43343         simple -> simple_backups, numbered_existing ->
43344         numbered_existing_backups, numbered -> numbered_backups
43345         to avoid shadowing problems.  All uses changed.
43346         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
43347         * lib/backupfile.c (check_extension, numbered_backup):
43348         Rename locals to avoid shadowing 'basename'.
43349         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
43350         once.
43351
43352         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
43353         * lib/.cvsignore: Add getopt.h.
43354
43355 2004-10-04  Bruno Haible  <bruno@clisp.org>
43356
43357         * modules/README: New file.
43358         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
43359         not a module.
43360
43361 2004-10-02  Jim Meyering  <jim@meyering.net>
43362
43363         * lib/dirfd.h, getpagesize.h: Add copyright notice.
43364
43365 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43366
43367         * modules/strsep: New file.
43368
43369 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43370
43371         * m4/strsep.m4: New file.
43372
43373 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
43374
43375         * lib/strsep.h: New file.
43376         * lib/strsep.c: New file.
43377
43378 2004-10-01  Simon Josefsson  <jas@extundo.com>
43379
43380         * lib/snprintf.c (snprintf): Handle size==0.
43381
43382 2004-10-01  Simon Josefsson  <jas@extundo.com>
43383             Bruno Haible  <bruno@clisp.org>
43384
43385         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
43386         (snprintf): Declare 'args'.
43387
43388 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
43389
43390         * lib/snprintf.c: Remove comments as to why each header is needed.
43391
43392 2004-10-01  Bruno Haible  <bruno@clisp.org>
43393
43394         * MODULES.html.sh: Add strsep.
43395
43396 2004-09-30  Simon Josefsson  <jas@extundo.com>
43397
43398         * modules/snprintf: New file.
43399
43400 2004-09-30  Simon Josefsson  <jas@extundo.com>
43401
43402         * m4/snprintf.m4: New file.
43403
43404 2004-09-30  Simon Josefsson  <jas@extundo.com>
43405
43406         * lib/snprintf.h, lib/snprintf.c: New files.
43407
43408 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
43409
43410         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
43411         (hol_entry_help): Never translate an empty string.
43412         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
43413         * lib/argp.h (OPTION_NO_TRANS): New option.
43414
43415 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
43416
43417         * modules/argp (Maintainer): Replace Simon Josefsson
43418         by Sergey Poznyakoff.
43419
43420 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
43421
43422         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
43423         changes merged back into glibc.
43424
43425 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
43426
43427         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
43428
43429 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
43430
43431         * lib/xvasprintf.c: Include xalloc.h.
43432         (xvasprintf): Use xalloc_die, not xmalloc_die.
43433
43434 2004-09-29  Bruno Haible  <bruno@clisp.org>
43435
43436         * modules/alloca-opt: New file, derived from modules/alloca.
43437         * modules/allocsa: Depend on alloca-opt instead of alloca.
43438         * modules/setenv: Likewise.
43439         * modules/vasnprintf: Likewise.
43440         * MODULES.html.sh: Add alloca-opt.
43441
43442 2004-09-28  Simon Josefsson  <jas@extundo.com>
43443
43444         * gnulib-tool: New parameter --lgpl, to asseert that modules are
43445         LGPL, and to replace license template from GPL to LGPL.
43446
43447 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
43448
43449         * modules/dummy: Change license to LGPL.
43450
43451 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
43452
43453         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
43454
43455 2004-09-24  Simon Josefsson  <jas@extundo.com>
43456
43457         * modules/minmax (License): Change from GPL to LGPL.
43458
43459 2004-09-23  Simon Josefsson  <jas@extundo.com>
43460
43461         * gnulib-tool (--import): Typo.
43462
43463 2004-09-23  Simon Josefsson  <jas@extundo.com>
43464
43465         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
43466
43467 2004-09-22  Bruno Haible  <bruno@clisp.org>
43468
43469         * modules/*: Add 'License' field.
43470         * gnulib-tool: Accept --extract-license option.
43471         (func_get_license): New function.
43472
43473 2004-09-21  Bruno Haible  <bruno@clisp.org>
43474
43475         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
43476         Reported by Simon Josefsson.
43477
43478 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
43479
43480         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
43481         gl_AC_TYPE_LONG_LONG.
43482
43483 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
43484
43485         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
43486
43487 2004-09-18  Simon Josefsson  <jas@extundo.com>
43488         and  Paul Eggert  <eggert@cs.ucla.edu>
43489
43490         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
43491         calls with autoreconf.  Define GL_LIB.
43492
43493 2004-09-14  Karl Berry  <karl@gnu.org>
43494
43495         * config/srclist.txt: unsync setenv.c, sigh.
43496
43497 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43498
43499         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
43500         Problem reported by Bruno Haible in:
43501         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
43502
43503 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
43504
43505         * config/srclist.txt: Comment out argp-pvh.c.
43506
43507 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
43508
43509         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
43510         in case some system header has #define'd it.  Problem reported by
43511         Soeren D. Schulze in
43512         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
43513
43514 2004-09-09  Karl Berry  <karl@gnu.org>
43515
43516         * regex.[ch]: delete from the root.  These were supposed to be
43517                 synced with emacs cvs, but this has not happened for about
43518                 a year, and anyway nothing else uses emacs regex.[ch].
43519                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
43520                 lib/regex[.ch] is untouched.
43521
43522 2004-09-09  Bruno Haible  <bruno@clisp.org>
43523
43524         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
43525
43526 2004-09-09  Bruno Haible  <bruno@clisp.org>
43527
43528         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
43529         modifications.
43530         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
43531
43532 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
43533
43534         * modules/xvasprintf: New file.
43535         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
43536
43537 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
43538
43539         * lib/xvasprintf.h: New file.
43540         * lib/xvasprintf.c: New file.
43541         * lib/xasprintf.c: New file.
43542
43543 2004-09-08  Bruno Haible  <bruno@clisp.org>
43544
43545         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
43546
43547 2004-09-08  Bruno Haible  <bruno@clisp.org>
43548
43549         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
43550         length is > INT_MAX.
43551         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
43552         more.
43553
43554 2004-09-08  Bruno Haible  <bruno@clisp.org>
43555
43556         * lib/stdint_.h: New file, taken from GNU clisp.
43557
43558 2004-09-08  Bruno Haible  <bruno@clisp.org>
43559             Oskar Liljeblad  <oskar@osk.mine.nu>
43560
43561         * modules/stdint: New file.
43562         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
43563
43564 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43565
43566         Import from coreutils.
43567         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
43568         strings on unbounded length.  alloca's performance benefits aren't
43569         that important here.
43570         (V_STRDUP): Remove.
43571         (parse_with_separator): New function, with most of the internals
43572         of the old parse_user_spec.  Allow user to omit both user and group,
43573         for compatibility with FreeBSD.
43574         Clone only the user name, not the entire spec.
43575         Do not set *uid, *gid unless entirely successful.
43576         Avoid memory leak in some failing cases.
43577         Fix regression for USER.GROUP reported by Dmitry V. Levin in
43578         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
43579         (parse_user_spec): Rewrite to use parse_with_separator.
43580
43581 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43582
43583         * modules/userspec: Don't depend on alloca.
43584
43585 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
43586
43587         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
43588
43589 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
43590
43591         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
43592         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
43593         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
43594
43595 2004-08-16  Simon Josefsson  <jas@extundo.com>
43596
43597         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
43598         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
43599         Add --dry-run for --import.
43600         Let user provided command line parameters override configure.ac
43601         settings.
43602
43603 2004-08-12  Simon Josefsson  <jas@extundo.com>
43604
43605         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
43606         as discussed with Paul Eggert in threads rooted at
43607         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
43608         and
43609         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
43610         Before, the test was empty, and relied on ELIDE_CODE in source
43611         code.)
43612         (gl_PREREQ_GETOPT): New macro.
43613         (gl_GETOPT): Use them.
43614
43615 2004-08-12  Simon Josefsson  <jas@extundo.com>
43616
43617         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
43618         * lib/getopt_.h: Renamed from getopt.h.
43619
43620 2004-08-12  Simon Josefsson  <jas@extundo.com>
43621
43622         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
43623         Change default library name from libfoo to libgnu.
43624         Now, if you have a configure.ac that says:
43625                 gl_SOURCE_BASE(gl)
43626                 gl_M4_BASE(gl/m4)
43627                 gl_MODULES(error getopt etcetera)
43628                 gl_INIT
43629         you can import all you need by running:
43630                 ../gnulib/gnulib-tool --import
43631
43632         * modules/getopt (Files): Rename getopt.h to getopt_.h.
43633         (Makefile.am): Rewrite, use logic from argz.
43634         (Include): Use <getopt.h> instead of "getopt.h".
43635
43636 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
43637
43638         * modules/argp (Files): Add m4/unlocked-io.m4.
43639         (Depends-on): Add extensions.
43640
43641 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
43642
43643         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
43644         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
43645         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
43646         Check for program_invocation_name, program_invocation_short_name,
43647         flockfile, funlockfile, features.h, _getopt_long_only_r.
43648
43649 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
43650
43651         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
43652         its complicated substitute.
43653         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
43654         and program_invocation_name.
43655         (__argp_basename) [!_LIBC]: Remove; the only use was
43656         replaced by its body.
43657         (__argp_short_program_name): Change condition from
43658         !defined __argp_short_program_name to
43659         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
43660         to match argp-namefrob.h.
43661         (__argp_failure): Don't assume strerror_r returns char *.
43662         * lib/argp-parse.c (N_): Define unconditionally.
43663         (argp_default_options): Fill out initializers with 0 to avoid
43664         gcc warnings.
43665
43666 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
43667
43668         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
43669         getopt1.c.
43670
43671 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
43672
43673         Merge from coreutils.
43674
43675         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
43676
43677         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
43678         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
43679
43680 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
43681
43682         Merge from coreutils.
43683
43684         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
43685         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
43686         for Reliant Unix 5.43.
43687
43688         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
43689         (union fooround): Use uintmax_t, not long int.
43690         The rest is a merge from libc:
43691         [defined _LIBC]: Include <shlib-compat.h>.
43692         (_obstack) [defined _LIBC]: Remove after 2.3.4.
43693
43694         * lib/settime.c (settime): Recode to avoid warning with
43695         Sun Forte C 6U2.
43696
43697         * lib/strverscmp.c: Convert to UTF-8.
43698
43699 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
43700
43701         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
43702         m4/uintmax_t.m4.
43703
43704 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43705
43706         * modules/xalloc-die: New file.
43707         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
43708
43709         * modules/md5 (Files): Add m4/uint32_t.m4.
43710         * modules/sha1: Renamed from modules/sha.
43711         (Files):
43712         Rename lib/sha.h to lib/sha1.h.
43713         Rename lib/sha.c to lib/sha1.c.
43714         Rename m4/sha.m4 to m4/sha1.m4.
43715         (lib_SOURCES): Likewise.
43716         (configure.ac): Rename gl_SHA to gl_SHA1.
43717         (Include): sha.h -> sha1.h.
43718
43719 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43720
43721         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
43722         * m4/sha1.m4: Renamed from sha.m4.
43723         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
43724
43725 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
43726
43727         * lib/obstack.h (obstack_empty_p):
43728         Don't assume that chunk->contents is suitably aligned.
43729         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
43730         Likewise. Problem reported by Benno in
43731         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
43732
43733         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
43734         readable.  This could be improved further but it'd take some work.
43735
43736 2004-08-08  Simon Josefsson  <jas@extundo.com>
43737
43738         * modules/xgethostname (Depends-on): Remove exit and error (not
43739         used).
43740
43741         * modules/getpass-gnu: Add getpass.h.
43742         (Depends-on): Add stdbool.
43743         * modules/getpass: Add getpass.h.
43744
43745 2004-08-08  Simon Josefsson  <jas@extundo.com>
43746
43747         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
43748         Check getpass declaration.
43749
43750 2004-08-08  Simon Josefsson  <jas@extundo.com>
43751
43752         * lib/xgethostname.c: Don't include error.h (not used).
43753
43754         * lib/getpass.h: Add.
43755         * lib/getpass.c: Include getpass.h first.
43756
43757 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
43758
43759         * lib/xalloc-die.c: New file.
43760         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
43761         All uses removed.
43762         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
43763         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
43764         xalloc-die.c.
43765         (_, N_, xalloc_die): Move to xalloc-die.c.
43766         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
43767         so that we needn't mess with xalloc_msg_memory_exhausted.
43768
43769         * lib/sha1.h: Renamed from sha.h.
43770         (SHA1_H): Renamed from _SHA_H.
43771         (sha1_ctx): Renamed from sha_ctx.
43772         (sha1_init_ctx): Renamed from sha_init_ctx.
43773         (sha1_process_block): Renamed from sha_process_block.
43774         (sha1_process_bytes): Renamed from sha_process_bytes.
43775         (sha1_finish_ctx): Renamed from sha_finish_ctx.
43776         (sha1_read_ctx): Renamed from sha_read_ctx.
43777         (sha1_stream): Renamed from sha_stream.
43778         (sha1_buffer): Renamed from sha_buffer.
43779         * lib/sha1.c: Likewise; renamed from sha.c.
43780         Do not include <sys/types.h>.
43781         Include <stddef.h> rather than <stdlib.h>.
43782
43783 2004-08-08  Bruno Haible  <bruno@clisp.org>
43784
43785         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
43786         FILESYSTEM_PREFIX_LEN.
43787         * lib/progreloc.c: Likewise.
43788         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
43789
43790 2004-08-06  Simon Josefsson  <jas@extundo.com>
43791
43792         * modules/progname (Depends-on): Don't depend on stdbool.
43793
43794 2004-08-06  Simon Josefsson  <jas@extundo.com>
43795
43796         * modules/getsubopt: New file.
43797         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43798         getsubopt.
43799
43800 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
43801
43802         More merge from coreutils.
43803
43804         * m4/utimens.m4, m4/utimecmp.m4: New files.
43805         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
43806         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
43807         prereq.m4, sha.m4: Import changes from coreutils.
43808
43809 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
43810
43811         More merge from coreutils.
43812         * modules/raise, modules/readtokens0, modules/utimens:
43813         * modules/utimecmp, module/xnanosleep: New files.
43814         * modules/strftime: Add lib/strftime.h.
43815         Change include from <time.h> to "strftime.h".
43816         * modules/yesno: Add lib/yesno.h.
43817         * modules/backupfile: Remove lib/addext.c.
43818         * modules/euidaccess: Add stat-macros.h.
43819         * modules/canonicalize, modules/euidaccess,
43820         modules/filemode, modules/lchown, modules/makepath,
43821         modules/rmdir, modules/stat: Likewise.
43822
43823 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
43824
43825         Merge from tar.
43826         * lib/argp-help.c (make_hol, hol_append): Don't assume that
43827         SIZE_MAX is a valid preprocessor constant.
43828         (__argp_basename): Change from "#ifndef _LIBC"
43829         to "#ifndef __argp_short_program_name", so that
43830         we don't compile these functions for tar.
43831
43832         More merges from coreutils.
43833         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
43834         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
43835         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
43836         * lib/addext.c: Remove; no longer needed.
43837         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
43838         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
43839         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
43840         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
43841         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
43842         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
43843         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
43844         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
43845         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
43846         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
43847         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
43848         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
43849         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
43850         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
43851         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
43852         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
43853         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
43854         Import changes from coreutils.
43855
43856 2004-08-05  Simon Josefsson  <jas@extundo.com>
43857
43858         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
43859
43860 2004-08-05  Simon Josefsson  <jas@extundo.com>
43861
43862         * m4/getsubopt.m4: New file.
43863
43864 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
43865
43866         Merge from coreutils.
43867
43868         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
43869         * m4/getcwd-path-max.m4: New files.
43870
43871         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
43872         FILESYSTEM_PREFIX_LEN ->
43873         FILE_SYSTEM_PREFIX_LEN.
43874         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
43875         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
43876         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
43877         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
43878
43879         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
43880         prerequisite modules now handle the DOS stuff.
43881         Don't check for unistd.h.
43882
43883 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
43884
43885         Merge from coreutils.
43886
43887         * lib/.gdb-history: Remove; this doesn't belong here.
43888
43889         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
43890         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
43891         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
43892         * lib/getcwd.c: New files.
43893
43894         * lib/dirname.h: Include <stdbool.h>.
43895         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
43896         for consistency with POSIX terminology.  All uses changed.
43897         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
43898         (strip_trailing_slashes): Use bool for booleans.
43899         * lib/stripslash.c (strip_trailing_slashes): Likewise.
43900
43901         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
43902         sometimes returns a positive errno value even when it succeeds.
43903         (print_errno_message) [!LIBC]: Fall back on strerror if
43904         __strerror_r fails.
43905
43906         * lib/path-concat.c (mempcpy): Don't define if a system header defines
43907         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
43908         (longest_relative_suffix): New function.
43909         (path_concat): Use it.  Assume first argument is not NULL.
43910         Port to DOS.  Omit redundant separators.
43911         Report an error instead of returning NULL.
43912         Use mempcpy instead of memcpy.
43913         (xpath_concat): Remove: not declared or used.
43914
43915         * lib/same.h: Include <stdbool.h>
43916         (same_name): Return bool, not int.
43917         * lib/same.c (same_name): Likewise.
43918         (errno): Don't declare; we assume C89 or better now.
43919
43920         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
43921         if not already defined.
43922
43923         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
43924         * lib/dup-safer.c (errno): Likewise.
43925
43926 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
43927
43928         Merge from coreutils.
43929         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
43930         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
43931         * modules/path-concat: Don't depend on strdup.
43932
43933 2004-08-03  Simon Josefsson  <jas@extundo.com>
43934
43935         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
43936         * lib/progname.h: Don't include stdbool.h.
43937
43938 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
43939
43940         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
43941         * MODULES.html.sh (func_all_modules): Remove fatal.
43942
43943 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
43944
43945         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
43946
43947 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
43948
43949         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
43950         working.
43951
43952 2004-08-02  Simon Josefsson  <jas@extundo.com>
43953
43954         * lib/getsubopt.h: New file, with comments from Bruno Haible.
43955         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
43956         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
43957
43958 2004-08-01  Simon Josefsson  <jas@extundo.com>
43959
43960         * lib/xgetdomainname.c: Include stdlib.h, for free().
43961
43962 2004-07-19  Bruno Haible  <bruno@clisp.org>
43963
43964         * MODULES.html.sh (func_all_modules): Add dummy.
43965
43966 2004-07-16  Simon Josefsson  <jas@extundo.com>
43967
43968         * modules/dummy: New file.
43969
43970 2004-07-16  Simon Josefsson  <jas@extundo.com>
43971
43972         * lib/dummy.c: New file.
43973
43974 2004-07-16  Bruno Haible  <bruno@clisp.org>
43975
43976         * lib/backupfile.h: Add extern "C" for C++.
43977         * lib/closeout.h: Likewise.
43978         * lib/copy-file.h: Likewise.
43979         * lib/findprog.h: Likewise.
43980         * lib/full-write.h: Likewise.
43981         * lib/pathname.h: Likewise.
43982         * lib/progname.h: Likewise.
43983         * lib/stpcpy.h: Likewise.
43984         * lib/stpncpy.h: Likewise.
43985         * lib/strcase.h: Likewise.
43986         * lib/strstr.h: Likewise.
43987         * lib/xalloc.h: Likewise.
43988
43989         * lib/mbswidth.h: Add extern "C" for C++.
43990         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
43991
43992 2004-07-13  Robert Millan  <robertmh@gnu.org>
43993
43994         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
43995
43996 2004-07-09  Simon Josefsson  <jas@extundo.com>
43997
43998         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
43999         failed without this.)
44000
44001 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44002
44003         * modules/chown (Files): Add lib/fchown-stub.c, since
44004         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
44005
44006 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
44007
44008         * lib/fchown-stub.c: New file.
44009
44010 2004-06-24  Jim Meyering  <jim@meyering.net>
44011
44012         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
44013
44014 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
44015
44016         * modules/argz: Omit "#include".
44017
44018         * MODULES.html.sh (func_all_modules): Add calloc, to match
44019         2004-06-01 addition of calloc module.
44020
44021 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
44022
44023         * m4/argz.m4: New file, which is autoupdated from libtool.
44024
44025 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
44026
44027         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
44028         libtool.
44029
44030 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
44031
44032         * config/srclist-update: Don't insist on "USA." before the
44033         close-comment, as libtool omits the period and puts the */ on a
44034         separate line.
44035         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
44036         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
44037
44038 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
44039
44040         * modules/argz: New file.
44041         * MODULES.html.sh (func_all_modules): Add argz.
44042
44043 2004-06-12  Jim Meyering  <jim@meyering.net>
44044         and  Paul Eggert  <eggert@cs.ucla.edu>
44045
44046         * modules/hash (Files): Add lib/xalloc.h.
44047         * modules/pipe (Depends-on): Add wait-process.
44048         * modules/stat (Depends-on): Add xalloc.
44049         * modules/userspec (Files): Add lib/userspec.h.
44050         * modules/xstrto
44051
44052         Upgrade from gettext-0.13.
44053         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
44054         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
44055         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
44056
44057 2004-06-10  Jim Meyering  <jim@meyering.net>
44058
44059         * lib/calloc.c: New file.
44060
44061 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
44062
44063         * lib/getdate.y (yylex): Allow space between sign and number.
44064         Problem reported by Dan Jacobson.
44065
44066 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
44067
44068         Merge from coreutils CVS.
44069
44070         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
44071         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
44072         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
44073         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
44074         xstrtol.m4: Fix copyright date and/or serial number.
44075
44076         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
44077         See if we need an fchown replacement.
44078         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
44079         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
44080         and use the replacement function if we detect either defect.
44081
44082         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
44083         gl_UTIMECMP.
44084
44085 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
44086         and  Jim Meyering  <jim@meyering.net>
44087
44088         Merge from coreutils CVS.
44089
44090         * lib/stat-macros.h: New file, with contents from file-type.h
44091         and coreutils' system.h.
44092         * lib/file-type.c: Include "stat-macros.h".
44093         * lib/file-type.h (file_type): Move all macro definitions to new file,
44094         stat-macros.h.
44095
44096         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
44097         Wrap old code with this conditional.
44098         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
44099         function that does not dereference symlinks.
44100         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
44101
44102         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
44103         dependency problems.
44104         (xreadlink): Accept new arg SIZE, for efficiency.
44105         All decls and uses changed.
44106         * lib/xreadlink.h: Include <stddef.h>, for size_t.
44107
44108         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
44109         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
44110
44111         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
44112         sysexits.h.
44113
44114 2004-06-01  Jim Meyering  <jim@meyering.net>
44115
44116         * m4/calloc.m4: New file.
44117
44118 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
44119
44120         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
44121         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
44122         Also, fix a typo in a diagnostic.
44123
44124 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
44125
44126         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
44127         or AC_FUNC_REALLOC.
44128
44129 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
44130
44131         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
44132         macros to be defined.
44133         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
44134         the allocator returns NULL because the requested size is zero.
44135
44136 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
44137
44138         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
44139         var.  Add comment explaining why libc still defines it.  This
44140         merges the following patch from glibc:
44141         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
44142
44143 2004-05-20  Andreas Schwab  <schwab@suse.de>
44144
44145         * m4/free.m4: Replace free if it not known to work, not the other
44146         way round.
44147
44148 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
44149
44150         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
44151         present in glibc since revision 1.1 of this file.
44152         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
44153         obstack_alignment_mask, obstack_alloc, obstack_base,
44154         obstack_blank, obstack_blank_fast, obstack_chunk_size,
44155         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
44156         obstack_grow0, obstack_init, obstack_int_grow,
44157         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
44158         obstack_next_free, obstack_object_size, obstack_ptr_grow,
44159         obstack_ptr_grow_fast, obstack_room): Remove declarations of
44160         nonexistent functions.
44161
44162 2004-05-18  Karl Berry  <karl@gnu.org>
44163
44164         * config/srclist.txt: break link for vasnprintf.c.
44165
44166 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
44167
44168         Port obstack to the AS/400, where pointers are 16 bytes wide and
44169         you cannot cast an integer to a valid pointer.  This patch is
44170         currently waiting to be integrated into glibc; see
44171         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
44172
44173         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
44174         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
44175         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
44176         (struct obstack): temp member is now a union of a pointer and
44177         an integer, instead of an integer.  All integer uses changed.
44178         This does not affect the physical layout of struct obstack,
44179         except on hosts (like the AS/400) where the size or alignment of
44180         void * is greater than that of ptrdiff_t.
44181         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
44182         __STDC__)]: Store temporary in pointer member of union, not
44183         integer member.
44184         * lib/obstack.c: Include <stddef.h>, for offsetof.
44185         (struct fooalign): Remove; it doesn't need a name.
44186         (union fooround): Change double to long double, and add void *.
44187         (DEFAULT_ALIGNMENT): Use offsetof to compute.
44188         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
44189         not a macro.  Hence the values are always int; so remove all
44190         casts-to-int in uses.
44191
44192 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
44193
44194         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
44195         we can get this patch merged into glibc.
44196
44197 2004-05-17  Derek R. Price  <derek@ximbiot.com>
44198             Paul Eggert  <eggert@cs.ucla.edu>
44199
44200         * m4/argp: Depend on alloca.
44201
44202 2004-05-17  Derek R. Price  <derek@ximbiot.com>
44203             Paul Eggert  <eggert@cs.ucla.edu>
44204
44205         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
44206         freecoding.
44207
44208 2004-05-17  Bruno Haible  <bruno@clisp.org>
44209
44210         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
44211         precision that consists of a '.' followed by an empty digit string.
44212         Patch by Tor Lillqvist <tml@iki.fi>.
44213
44214 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
44215
44216         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
44217         for backward compatibility with older code.  We need our own
44218         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
44219         it under some other name, and our alloca.h will define it.
44220
44221 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
44222             Derek Price  <derek@ximbiot.com>
44223
44224         * lib/alloca.c: Include <alloca.h>, to get our interface.
44225         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
44226         include <alloca.h> first.  Use C89 prototype for alloca; this
44227         requires including <stddef.h> for size_t.  Use extern "C" if C++.
44228         Use #elif for simplicity, since we can assume C89 now.
44229         Don't try to source the system alloca.h since it will not be found
44230         and to prevent recursively including its replacement.
44231         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
44232         * lib/regex.c: Likewise.
44233
44234 2004-05-16  Derek Price  <derek@ximbiot.com>
44235             Paul Eggert  <eggert@cs.ucla.edu>
44236
44237         getline cleanup.  This changes the getndelim2 API: both order of
44238         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
44239         no delimiter).
44240
44241         * lib/getline.c: Don't include stddef.h or stdio.h, since our
44242         interface does that.
44243         (getline): Always use getdelim, so that we don't have two
44244         copies of this code.
44245         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
44246         if available.
44247         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
44248         (GETNDELIM2_MAXIMUM): New macro.
44249         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
44250         instead of the old practice of delim2==0.  All callers changed.
44251         Return -1 on overflow, instead of returning junk.
44252         Do not set *linesize unless allocation succeeds.
44253         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
44254         that we include sys/types.h.
44255         * lib/getnline.h: Likewise.
44256         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
44257         (getndelim2): Reorder arguments.
44258         * lib/getnline.c (getnline, getndelim):
44259         Don't discard the NMAX argument.
44260         (getnline): Invoke getndelim, to avoid code duplication.
44261         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
44262         of (size_t) -1 by callers of the getnline family.
44263
44264 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
44265
44266         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
44267         Check for gettimeofday.
44268         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
44269         Check for settimeofday, stime.
44270
44271 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
44272
44273         * lib/nanosleep.c (suspended): Change its type from int to
44274         sig_atomic_t volatile.
44275         (first_call): Make it private to rpl_nanosleep, and have it
44276         be zero initially as that's a bit faster.
44277         (my_usleep): Round up fractional times instead of truncating them,
44278         as this is the usual meaning for 'sleep'.
44279
44280         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
44281         doesn't work.
44282         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
44283         (ENOSYS): Define if not defined.
44284         (settime): Fall back on stime if it exists and settimeofday fails.
44285         But don't bother with fallbacks if a method fails with errno == EPERM.
44286
44287 2004-05-11  Jim Meyering  <jim@meyering.net>
44288
44289         Prior to this change, the save_cwd caller required read access to the
44290         current directory on most systems (ones with the fchdir function).
44291
44292         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
44293         fails, try write-only, and finally, resort to using xgetcwd.
44294
44295 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
44296
44297         * lib/obstack.c, obstack.h: Import changes from libc.
44298
44299 2004-04-28  Bruno Haible  <bruno@clisp.org>
44300
44301         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
44302         also implicitly appends .exe to executables.
44303         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
44304         accepts Windows pathnames.
44305         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
44306         Treat Cygwin like Windows, since it now accepts Windows pathnames.
44307         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
44308         Treat Cygwin like Windows, since it now accepts Windows pathnames.
44309         Reported by Derek Robert Price <derek@ximbiot.com>.
44310
44311 2004-04-21  Karl Berry  <karl@gnu.org>
44312
44313         * config/srclist.txt (localcharset.c): break sync.
44314
44315 2004-04-20  Paul Eggert  <eggert@twinsun.com>
44316
44317         * m4/host-os.m4: Add a copyright notice.
44318
44319 2004-04-20  Jim Meyering  <jim@meyering.net>
44320
44321         Change UTILS_ to gl_ in AC_DEFINE'd names.
44322         Change utils_- and jm_-prefixed variables, too.
44323         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
44324         UTILS_FUNC_MKDIR_TRAILING_SLASH.
44325         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
44326
44327         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
44328         Don't emit trailing blanks.
44329         Also rename jm_-prefixed variables to have gl_ prefix.
44330
44331         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
44332         Also rename jm_-prefixed variables to have gl_ prefix.
44333
44334         * m4/jm-macros.m4: Reflect the renamings.
44335         * m4/prereq.m4: Likewise.
44336
44337 2004-04-20  Jim Meyering  <jim@meyering.net>
44338
44339         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
44340         memory.
44341
44342 2004-04-20  Jim Meyering  <jim@meyering.net>
44343             Bruno Haible  <bruno@clisp.org>
44344
44345         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
44346         memory when realloc fails.
44347
44348 2004-04-19  Jim Meyering  <jim@meyering.net>
44349
44350         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
44351         now that readutmp.c may call `free (0)'.
44352
44353 2004-04-19  Bruno Haible  <bruno@clisp.org>
44354
44355         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
44356         * m4/inttypes_h.m4: Likewise.
44357         * m4/stdint_h.m4: Likewise.
44358         * m4/intmax_t.m4: Likewise.
44359         * m4/uintmax_t.m4: Likewise.
44360
44361 2004-04-18  Jim Meyering  <jim@meyering.net>
44362
44363         * m4/prereq.m4: Don't forbid jm_ prefix.
44364
44365         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
44366         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
44367         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
44368         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
44369         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
44370         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
44371         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
44372         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
44373         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
44374         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
44375         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
44376         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
44377         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
44378         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
44379         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
44380         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
44381         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
44382         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
44383         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
44384
44385 2004-04-18  Jim Meyering  <jim@meyering.net>
44386
44387         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
44388         failure, don't leak memory and do call END_UTMP_ENT.
44389
44390 2004-04-16  Jim Meyering  <jim@meyering.net>
44391
44392         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
44393         coreutils' stat program.
44394         (gl_PREREQ): Don't require jm_PREREQ_STAT.
44395
44396 2004-04-11  Paul Eggert  <eggert@twinsun.com>
44397
44398         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
44399         C89.
44400         (CHAR_BIT): Remove, since we assume C89.
44401         Include <stdint.h> if available, as per current Autoconf CVS advice.
44402
44403 2004-03-31  Jim Meyering  <jim@meyering.net>
44404
44405         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
44406         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
44407         * m4/xalloc.m4: Likewise.
44408
44409 2004-03-30  Paul Eggert  <eggert@twinsun.com>
44410
44411         Merge from coreutils.
44412
44413         * m4/inttostr.m4: New file.
44414         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
44415         Require AM_STDBOOL_H and gl_TIMESPEC instead.
44416         Require gl_CLOCK_TIME.
44417         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
44418
44419 2004-03-30  Paul Eggert  <eggert@twinsun.com>
44420
44421         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
44422         not bool, to be more consistent with Unix conventions.
44423         Suggested by Bruno Haible.
44424
44425         Merge from coreutils.
44426
44427         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
44428         * lib/umaxtostr.c: New files.
44429
44430         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
44431         the usual <time.h> dance.
44432         (get_date): Change signature to support fractional time stamps.
44433         All callers changed.
44434         * lib/getdate.y: Include "getdate.h" first, as we can now
44435         assume C89 and don't need to worry about 'const'.
44436         Similarly, include "unlocked-io.h" near start, not in middle.
44437         Include <limits.h>.
44438         (textint.value): Use long int rather than int.
44439         (textint.digits): Use size_t rather than int.
44440         (BILLION, LOG10_BILLION): New constants.
44441         (parser_control): New member rel_ns.  Members day_ordinal,
44442         time_zone, month, day, hour, minutes, rel_year, rel_month,
44443         rel_day, rel_hour, rel_minutes, rel_seconds
44444         are now long int, not int.  Member seconds is now struct timespec,
44445         not int.  New member timespec_seen.  Members dates_seen, days_seen,
44446         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
44447         not int.
44448         (%union.intval): Now long int, not int.
44449         New member timespec.
44450         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
44451         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
44452         (spec): Now is a timespec or an item list.
44453         (timespec, items): New nonterminals.
44454         (time, rel, relunit, number, get_date):
44455         Add support for fractional seconds.
44456         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
44457         (gmtime, localtime, mktime): Remove decls; not needed with C89.
44458         (to_hour): First arg is now long int, not int.
44459         (to_year): Returns long int, not int.
44460         Don't treat year -70 like 70.
44461         (tm_diff): Returns long int, not int.
44462         (lookup_word): Use bool instead of int when appropriate.
44463         (yylex): Use size_t for count, not int.
44464         Detect overflow when parsing large integer constants.
44465         Add support for fractions.
44466         (get_date): Make pointers 'const' if possible.
44467         Use more-portable code to detect integer overflow.
44468         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
44469         Don't use ctime; it's not reliable if the year has >4 digits.
44470
44471         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
44472         This is for compatibility with BSD.
44473
44474         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
44475         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
44476         From coreutils' system.h.
44477
44478         * lib/userspec.c: Don't include "posixver.h".
44479         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
44480         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
44481         compatible extension.  Simplify code by removing a boolean int
44482         that was always nonzero if a string was nonnull.
44483
44484 2004-03-30  Jim Meyering  <jim@meyering.net>
44485
44486         Merge from coreutils.
44487
44488         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
44489         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
44490         on some systems one must include <grp.h> before it.
44491         Reported by Christian Krackowizer.
44492
44493 2004-03-30  Jim Meyering  <jim@meyering.net>
44494
44495         Merge from coreutils.
44496
44497         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
44498
44499         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
44500         an empty input stream.
44501
44502         * lib/readtokens.c: Include <stdbool.h>.
44503         (readtoken): Use `size_t' rather than int/long.
44504         All callers adjusted.
44505         Use `bool' rather than `int' where appropriate.
44506         Use memset rather than an explicit loop.
44507         Use x2nrealloc rather than xrealloc.
44508         Allow the use of `\0' as a delimiter.
44509         (readtokens): Likewise.
44510         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
44511
44512 2004-03-30  Jim Meyering  <jim@meyering.net>
44513
44514         * m4/realloc.m4: Remove file, since now it does no more than
44515         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
44516         the `configure.ac' section of module/realloc.
44517         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
44518
44519 2004-03-30  Bruno Haible  <bruno@clisp.org>
44520
44521         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
44522         nonnull.
44523
44524 2004-03-29  Paul Eggert  <eggert@twinsun.com>
44525
44526         Merge changes to getloadavg.c from coreutils and Emacs.
44527
44528         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
44529         Define to an expression, not to the empty string.
44530         Include cloexec.h and xalloc.h.
44531         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
44532         Use set_cloexec_flag rather than rolling our own.
44533         * lib/cloexec.c, lib/cloexec.h: New files.
44534
44535 2004-03-29  Paul Eggert  <eggert@twinsun.com>
44536
44537         * m4/cloexec.m4: New file.
44538
44539 2004-03-18  Paul Eggert  <eggert@twinsun.com>
44540
44541         * lib/getopt.h: Sync with libc CVS.
44542
44543 2004-03-18  Paul Eggert  <eggert@twinsun.com>
44544             Bruno Haible  <bruno@clisp.org>
44545
44546         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
44547         mbswidth.
44548
44549 2004-03-18  Paul Eggert  <eggert@twinsun.com>
44550             Bruno Haible  <bruno@clisp.org>
44551
44552         * lib/mbswidth.h: Include <wchar.h> only if
44553         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
44554         <wchar.h>.
44555         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
44556
44557 2004-03-09  Paul Eggert  <eggert@twinsun.com>
44558
44559         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
44560         Sync with libc CVS.
44561         * lib/getopt_int.h: New file, also synced from libc.
44562
44563 2004-03-09  Paul Eggert  <eggert@twinsun.com>
44564
44565         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
44566         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
44567         Bring back getopt.c, getopt.h, getopt1.c.
44568
44569 2004-03-07  Paul Eggert  <eggert@twinsun.com>
44570
44571         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
44572         All uses changed.  Check for sa_sigaction member; this fixes
44573         a bug first reported by Jason Andrade in
44574         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
44575
44576 2004-03-07  Paul Eggert  <eggert@twinsun.com>
44577
44578         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
44579         '#if' expressions.  Unlike the code it replaces, it does not
44580         depend on (defined _SC_PAGESIZE).  However, it does depend on
44581         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
44582         first reported by Jason Andrade in
44583         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
44584
44585 2004-02-25  Simon Josefsson  <jas@extundo.com>
44586
44587         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
44588
44589 2004-02-25  Simon Josefsson  <jas@extundo.com>
44590
44591         * lib/strdup.h: New file.
44592         * lib/strdup.c: Include it.
44593         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
44594         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
44595
44596 2004-02-23  Karl Berry  <karl@gnu.org>
44597
44598         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
44599         (from fencepost.gnu.org:/gd/gnuorg).
44600
44601 2004-02-23  Karl Berry  <karl@gnu.org>
44602
44603         * config/srclistvars.sh (GNUORG) [karl]: redefine.
44604         * config/srclist.txt: add maintain/standards documents.
44605
44606 2004-02-18  Bruno Haible  <bruno@clisp.org>
44607
44608         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
44609         Reported by Derek Robert Price <derek@ximbiot.com>.
44610
44611 2004-02-16  Karl Berry  <karl@gnu.org>
44612
44613         * config/mkinstalldirs, install-sh: update from automake.
44614
44615 2004-02-06  Karl Berry  <karl@gnu.org>
44616
44617         * m4/po.m4: update from gettext 0.14.1.
44618
44619 2004-02-06  Karl Berry  <karl@gnu.org>
44620
44621         * lib/config.charset: update from gettext 0.14.1.
44622
44623 2004-02-05  Paul Eggert  <eggert@twinsun.com>
44624
44625         Add comments and code, prompted by suggestions from Bruno Haible
44626         for sh-quote.
44627         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
44628         describing the enum quoting_style values.
44629         * lib/quotearg.c (quotearg_alloc): New function.
44630         (quotearg_buffer_restyled): Treat lone { and } as special.
44631         Treat = as special.  Work around bug with older shells
44632         that "see" a '\' that is really the 2nd byte of a multibyte char.
44633         Quote empty string with shell_quoting_style.
44634
44635 2004-02-03  Bruno Haible  <bruno@clisp.org>
44636
44637         * m4/pipe.m4: New file, from GNU gettext.
44638
44639 2004-02-03  Bruno Haible  <bruno@clisp.org>
44640
44641         * lib/pipe.h: New file, from GNU gettext.
44642         * lib/pipe.c: New file, from GNU gettext.
44643
44644 2004-01-27  Bruno Haible  <bruno@clisp.org>
44645
44646         * m4/execute.m4: New file, from GNU gettext.
44647
44648 2004-01-27  Bruno Haible  <bruno@clisp.org>
44649
44650         * lib/execute.h: New file, from GNU gettext.
44651         * lib/execute.c: New file, from GNU gettext.
44652         * lib/w32spawn.h: New file, from GNU gettext.
44653
44654 2004-01-24  Paul Eggert  <eggert@twinsun.com>
44655
44656         Merge from diffutils.
44657
44658         * lib/file-type.c (file_type): Add typed memory objects.
44659         * lib/file-type.h (S_TYPEISTMO): New macro.
44660
44661         * lib/c-stack.h (c_stack_action): Remove argv argument.
44662         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
44663         (die): Don't calculate message unless segv_action returns.
44664         (get_stack_location, min_address_from_argv, max_address_from_argv,
44665         volatile stack_base, volatile_stack_size): Remove.
44666         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
44667         that every segmentation violation is a stack overflow.  (Ouch!)
44668         See Debian bug 136249 (still outstanding) for more info about why
44669         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
44670
44671 2004-01-24  Paul Eggert  <eggert@twinsun.com>
44672
44673         Exit-status fix from coreutils.
44674
44675         Use exit_failure consistently in place of EXIT_FAILURE,
44676         so that program exit statuses are consistent on failure.
44677
44678         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
44679         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
44680         * lib/argmatch.h: Comment fix to match the above.
44681         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
44682         Now a macro referring to exit_failure, instead of a separate
44683         variable.  Include "exitfail.h" to get it.
44684         * lib/xstrtol.h: Include "exitfail.h".
44685         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
44686
44687         * lib/long-options.c (parse_long_options): Use prototype
44688         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
44689         for clarity.
44690
44691 2004-01-21  Jim Meyering  <jim@meyering.net>
44692
44693         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
44694         so as not to conflict with a different-sized __mktime_internal
44695         function in GNU libc.
44696         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
44697         Problem building statically-linked `ls' reported by Michael Brunnbauer.
44698
44699 2004-01-20  Karl Berry  <karl@gnu.org>
44700
44701         * config/config.guess: update from config.
44702
44703         * config/srclistvars.sh: GNUWWWLICENSES for karl.
44704
44705 2004-01-20  Bruno Haible  <bruno@clisp.org>
44706
44707         Safer stack allocation.
44708         * lib/setenv.c: Include allocsa.h.
44709         (alloca): Remove fallback definition.
44710         (freea): Remove macro.
44711         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
44712         instead of freea.
44713
44714 2004-01-20  Bruno Haible  <bruno@clisp.org>
44715
44716         * m4/eealloc.m4: New file, from GNU gettext.
44717
44718 2004-01-20  Bruno Haible  <bruno@clisp.org>
44719
44720         * m4/allocsa.m4: New file, from GNU gettext.
44721
44722 2004-01-20  Bruno Haible  <bruno@clisp.org>
44723
44724         * lib/xallocsa.h: New file, from GNU gettext.
44725         * lib/xallocsa.c: New file, from GNU gettext.
44726
44727 2004-01-20  Bruno Haible  <bruno@clisp.org>
44728
44729         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
44730
44731 2004-01-20  Bruno Haible  <bruno@clisp.org>
44732
44733         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
44734         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
44735         specially.
44736
44737 2004-01-20  Bruno Haible  <bruno@clisp.org>
44738
44739         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
44740         patch.
44741
44742 2004-01-20  Bruno Haible  <bruno@clisp.org>
44743
44744         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
44745
44746 2004-01-20  Bruno Haible  <bruno@clisp.org>
44747
44748         * lib/eealloc.h: New file.
44749
44750 2004-01-20  Bruno Haible  <bruno@clisp.org>
44751
44752         * lib/binary-io.h: Avoid warnings on Cygwin.
44753
44754 2004-01-20  Bruno Haible  <bruno@clisp.org>
44755
44756         * lib/allocsa.h: New file, from GNU gettext.
44757         * lib/allocsa.c: New file, from GNU gettext.
44758
44759 2004-01-18  Karl Berry  <karl@gnu.org>
44760
44761         * doc/gpl.texi, doc/lgpl.texi: new files.
44762
44763 2004-01-18  Karl Berry  <karl@gnu.org>
44764
44765         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
44766         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
44767
44768 2004-01-15  Paul Eggert  <eggert@twinsun.com>
44769
44770         Merge from coreutils.
44771
44772         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
44773         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
44774         (gl_DEFAULT_POSIX2_VERSION): Move
44775         the documentation from 'configure' into 'config.hin',
44776         so that 'configure --help' isn't burdened by it and
44777         we don't have to worry about its formatting there.
44778         Reword the documentation so that it's more succinct
44779         and can be run together into a single paragraph.
44780         * m4/same.m4 (gl_SAME): Check for pathconf.
44781
44782 2004-01-15  Paul Eggert  <eggert@twinsun.com>
44783
44784         Merge from coreutils.
44785
44786         * lib/posixver.c: Include posixver.h.
44787
44788         * lib/same.c: Include <stdbool.h>, <limits.h>.
44789         (_POSIX_NAME_MAX): Define if not defined.
44790         (MIN): New macro.
44791         (same_name): If file names are silently truncated, report
44792         that the file names are the same if they are the same after
44793         the silent truncation.
44794
44795         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
44796         conversion function.
44797         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
44798         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
44799         longer needed.
44800
44801 2004-01-15  Jim Meyering  <jim@meyering.net>
44802
44803         Merge from coreutils.
44804
44805         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
44806         if no library is required.
44807         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
44808         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
44809         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
44810         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
44811         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
44812         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
44813         value, $ac_cv_search_crypt, if it's "none required".
44814         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
44815         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
44816         not gl_FUNC_GETLOADAVG.
44817         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
44818         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
44819
44820 2004-01-15  Jim Meyering  <jim@meyering.net>
44821
44822         Merge from coreutils.
44823
44824         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
44825         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
44826         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
44827
44828         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
44829         optional configure-time default.
44830
44831         * lib/version-etc.c (version_etc_copyright): Update copyright date.
44832
44833         * lib/xreadlink.c (xreadlink): Correct outdated comment.
44834
44835 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
44836
44837         Merge from coreutils.
44838
44839         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
44840         value, $ac_cv_search_nanosleep, if it's "none required".
44841
44842 2004-01-14  Paul Eggert  <eggert@twinsun.com>
44843
44844         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
44845         with like-named macro in fnmatch.c.
44846         (EXT): Use an internal constant instead.
44847
44848         Merge fnmatch patches from glibc.
44849         * lib/fnmatch.c (mbsinit): Remove define.
44850         Add libc_hidden_ver (__fnmatch, fnmatch).
44851         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
44852         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
44853
44854 2004-01-14  Karl Berry  <karl@gnu.org>
44855
44856         * config/install-sh: update from automake.
44857
44858 2004-01-13  Karl Berry  <karl@gnu.org>
44859
44860         * config/install-sh: update from automake.
44861
44862 2004-01-09  Karl Berry  <karl@gnu.org>
44863
44864         * config/install-sh: update from automake.
44865
44866 2004-01-05  Karl Berry  <karl@gnu.org>
44867
44868         * config/config.{sub,guess}: update from config.
44869
44870 2003-12-31  Karl Berry  <karl@gnu.org>
44871
44872         * config/depcomp: update from automake.
44873
44874 2003-12-14  Karl Berry  <karl@gnu.org>
44875
44876         * lib/config.charset: update from gettext-runtime.
44877
44878 2003-12-03  Paul Eggert  <eggert@twinsun.com>
44879
44880         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
44881         Bug reported by Alfred M. Szmidt.
44882
44883 2003-12-03  Bruno Haible  <bruno@clisp.org>
44884
44885         * m4/gettext.m4: Upgrade from gettext-0.13.
44886         * m4/po.m4: Upgrade from gettext-0.13.
44887         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
44888         * m4/intmax.m4: New file, from gettext-0.13.
44889         * m4/printf-posix.m4: New file, from gettext-0.13.
44890
44891 2003-11-29  Karl Berry  <karl@gnu.org>
44892
44893         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
44894
44895 2003-11-25  Paul Eggert  <eggert@twinsun.com>
44896             Bruno Haible  <bruno@clisp.org>
44897
44898         * lib/printf-parse.h: Don't include sys/types.h.
44899         (ARG_NONE): New macro.
44900         (char_directive): Change type of *arg_index fields to size_t.
44901         * lib/printf-parse.c: Don't include sys/types.h.
44902         (SSIZE_MAX): Remove macro.
44903         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
44904         Remove unnecessary overflow check.
44905         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
44906         fields.
44907
44908 2003-11-25  Bruno Haible  <bruno@clisp.org>
44909
44910         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
44911
44912 2003-11-25  Bruno Haible  <bruno@clisp.org>
44913
44914         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
44915         gt_TYPE_SSIZE_T.
44916
44917 2003-11-24  Paul Eggert  <eggert@twinsun.com>
44918
44919         * modules/alloca: Remove dependency on xalloc.
44920
44921 2003-11-24  Paul Eggert  <eggert@twinsun.com>
44922
44923         * lib/alloca.c: Remove dependency on xalloc module.
44924         (xalloc_die): Remove.
44925         (memory_full) [!defined emacs]: New macro.
44926         [!defined emacs]: Don't include xalloc.h.
44927         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
44928         address arithmetic overflows.  Change datatypes a bit to avoid
44929         unnecessary casts.
44930
44931 2003-11-22  Jim Meyering  <jim@meyering.net>
44932
44933         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
44934         s/size/size_t/.
44935
44936 2003-11-21  Karl Berry  <karl@gnu.org>
44937
44938         * config/config.{sub,guess}: update from config.
44939
44940 2003-11-18  Karl Berry  <karl@gnu.org>
44941
44942         * config/config.{sub,guess}: update from config.
44943
44944         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
44945
44946 2003-11-17  Paul Eggert  <eggert@twinsun.com>
44947
44948         * README: Mention that S+T cannot overflow if S is the size of
44949         an existing object and T is sufficiently small.
44950
44951 2003-11-17  Jim Meyering  <jim@meyering.net>
44952
44953         On systems without utime and without a utimes function capable of
44954         dealing with a NULL struct utimbuf* argument, this utime replacement
44955         could -- in unusual circumstances -- leak a file descriptor.
44956         * lib/utime.c: Include <unistd.h> and <errno.h>.
44957         (utime_null): Be sure to close `fd' and to preserve errno.
44958         Reported by Geoff Collyer via Arnold Robbins.
44959
44960 2003-11-17  Bruno Haible  <bruno@clisp.org>
44961
44962         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
44963         (Depends-on): Add xsize.
44964
44965 2003-11-17  Bruno Haible  <bruno@clisp.org>
44966
44967         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
44968
44969 2003-11-17  Bruno Haible  <bruno@clisp.org>
44970
44971         * lib/vasnprintf.c (alloca): Remove fallback definition.
44972         (freea): Remove definition.
44973         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
44974         Reported by Paul Eggert.
44975
44976 2003-11-16  Paul Eggert  <eggert@twinsun.com>
44977             Bruno Haible  <bruno@clisp.org>
44978
44979         Protect against address arithmetic overflow.
44980         * lib/printf-args.h: Include stddef.h.
44981         (arguments): Change type of field 'count' to size_t.
44982         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
44983         'unsigned int' where appropriate.
44984         * lib/printf-parse.h: Include sys/types.h.
44985         (char_directive): Change type of *arg_index fields to ssize_t.
44986         (char_directives): Change type of fields 'count', max_*_length to
44987         size_t.
44988         * lib/printf-parse.c: Include sys/types.h and xsize.h.
44989         (SSIZE_MAX): Define fallback value.
44990         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
44991         instead of 'int' where appropriate. Check a_allocated, d_allocated
44992         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
44993         * lib/vasnprintf.c: Include xsize.h.
44994         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
44995         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
44996         overflow. Avoid wraparound when converting a width or precision from
44997         decimal to binary.
44998
44999 2003-11-16  Bruno Haible  <bruno@clisp.org>
45000
45001         Update from GNU gettext.
45002         * lib/printf-parse.c: Generalize to it can be compiled for wide
45003         strings.
45004         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
45005         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
45006         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
45007         SNPRINTF): New macros.
45008         Don't include <alloca.h> if the file is used inside libintl.
45009         (local_wcslen): New function, for Solaris 2.5.1.
45010         (VASNPRINTF): Use it instead of wcslen.
45011
45012 2003-11-16  Bruno Haible  <bruno@clisp.org>
45013
45014         * lib/xsize.h (xmax): New function.
45015         (xsum, xsum3, xsum4): Declare as "pure" functions.
45016
45017 2003-11-12  Paul Eggert  <eggert@twinsun.com>
45018
45019         * modules/xalloc (Files): Undo latest change, since xalloc.h
45020         no longer needs SIZE_MAX or PTRDIFF_MAX.
45021
45022 2003-11-12  Paul Eggert  <eggert@twinsun.com>
45023
45024         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
45025         gl_PTRDIFF_MAX.
45026
45027 2003-11-12  Paul Eggert  <eggert@twinsun.com>
45028
45029         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
45030         "return", to pacify some unknown compiler.  Problem reported
45031         by Joerg Schilling.
45032
45033 2003-11-12  Paul Eggert  <eggert@twinsun.com>
45034
45035         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
45036         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
45037         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
45038         heuristic is just as accurate as far as we know, and it removes a
45039         dependency on size_max.m4 and ptrdiff_max.m4.
45040
45041 2003-11-11  Bruno Haible  <bruno@clisp.org>
45042
45043         * modules/xsize (Files): Add m4/size_max.m4.
45044         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
45045
45046 2003-11-11  Bruno Haible  <bruno@clisp.org>
45047
45048         * m4/size_max.m4: New file.
45049         * m4/ptrdiff_max.m4: New file.
45050         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
45051         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
45052         (gl_XALLOC): Invoke it.
45053
45054 2003-11-11  Bruno Haible  <bruno@clisp.org>
45055
45056         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
45057         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
45058         defined.
45059
45060 2003-11-10  Paul Eggert  <eggert@twinsun.com>
45061
45062         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
45063         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
45064         rejected some allocations of exactly SIZE_MAX - 2 bytes.
45065         From Bruno Haible.
45066         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
45067         not (size_t) -1, since it's defined here.
45068
45069 2003-11-09  Karl Berry  <karl@gnu.org>
45070
45071         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
45072
45073 2003-11-06  Paul Eggert  <eggert@twinsun.com>
45074
45075         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
45076         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
45077         Reject sizes of exactly SIZE_MAX bytes.
45078         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
45079         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
45080
45081 2003-11-05  Bruno Haible  <bruno@clisp.org>
45082
45083         * lib/xsize.h: Include limits.h, to avoid a possible collision with
45084         SIZE_MAX defined in <limits.h> on Solaris.
45085
45086 2003-11-04  Jim Meyering  <jim@meyering.net>
45087
45088         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
45089         variable names, rather than @VAR@.
45090         * modules/poll: Likewise.
45091
45092 2003-11-04  Bruno Haible  <bruno@clisp.org>
45093
45094         * modules/xsize: New file.
45095         * modules/linebreak: Depend on xsize.
45096         * MODULES.html.sh (func_all_modules): Add xsize.
45097
45098 2003-11-04  Bruno Haible  <bruno@clisp.org>
45099
45100         * m4/xsize.m4: New file.
45101
45102 2003-11-04  Bruno Haible  <bruno@clisp.org>
45103
45104         * lib/xsize.h: New file.
45105         * lib/linebreak.c: Include xsize.h.
45106         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
45107         argument for overflow.
45108         Suggested by Paul Eggert.
45109
45110 2003-11-03  Karl Berry  <karl@gnu.org>
45111
45112         * config/config.{guess,sub}: update from config.
45113
45114 2003-11-03  Jim Meyering  <jim@meyering.net>
45115
45116         * modules/userspec (lib_SOURCES): Add userspec.h.
45117         (Include): Add "userspec.h".
45118         Improve description.
45119
45120 2003-11-03  Jim Meyering  <jim@meyering.net>
45121
45122         * lib/userspec.c: Include "userspec.h".
45123         * lib/userspec.h: New file.
45124
45125 2003-11-03  Bruno Haible  <bruno@clisp.org>
45126
45127         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
45128
45129 2003-11-03  Bruno Haible  <bruno@clisp.org>
45130
45131         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
45132         available, to avoid (extremely rare) race condition.
45133         Suggested by Paul Eggert.
45134
45135 2003-11-02  Karl Berry  <karl@gnu.org>
45136
45137         * config/srclist.txt (vasprintf.c): sync broken, sigh.
45138
45139 2003-10-31  Paul Eggert  <eggert@twinsun.com>
45140
45141         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
45142         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
45143         (read_filesystem_list): Set and use me_type_malloced.
45144         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
45145         whatever the type happens to be), for brevity and consistency.
45146         Check for size calculation overflow on Alphas running OSF/1.
45147
45148 2003-10-31  Jim Meyering  <jim@meyering.net>
45149
45150         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
45151
45152         * lib/linebuffer.c: Include <string.h> for declaration of memset.
45153
45154 2003-10-30  Paul Eggert  <eggert@twinsun.com>
45155             Bruno Haible  <bruno@clisp.org>
45156
45157         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
45158         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
45159
45160 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
45161
45162         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
45163         netbsd*-gnu*.  Suggested by Robert Millan.
45164
45165 2003-10-29  Paul Eggert  <eggert@twinsun.com>
45166
45167         * modules/group-member: Depend on stdbool.
45168
45169 2003-10-29  Paul Eggert  <eggert@twinsun.com>
45170
45171         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
45172
45173 2003-10-29  Paul Eggert  <eggert@twinsun.com>
45174
45175         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
45176         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
45177         after the 'gnu' in these cases.  This fixes some bugs in the
45178         previous change, and is based on suggestions by Robert Millan.
45179
45180 2003-10-29  Paul Eggert  <eggert@twinsun.com>
45181
45182         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
45183         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
45184         no longer needed.
45185         * lib/quotearg.c (quotearg_n_options): Use it.
45186         * lib/group-member.c: Include <stdbool.h>.
45187         (free_group_info): Arg is now const *; don't free arg.
45188         (get_group_info): Now returns bool and accepts struct group_info *,
45189         rather than returning a malloc'ed struct group_info *.
45190         All uses changed.  Check for overflow in internal size calculation.
45191
45192         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
45193         rather than xmalloc/xrealloc.
45194         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
45195         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
45196         conformance bug: the old code used a pointer after freeing the
45197         storage that it addressed.
45198         * lib/hash.c (hash_initialize): Simplify the code by using
45199         xalloc_oversized rather than doing it by hand.
45200         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
45201         the buffer preserved.  Use free and xmalloc instead.
45202         * lib/quotearg.c (quotearg_n_options): Likewise.
45203         Use a simpler test for size overflow.  Don't use xalloc_oversized
45204         because unsigned int might be wider than size_t (!); this suggests
45205         that we should switch from unsigned int to size_t for slot numbers.
45206
45207 2003-10-28  Paul Eggert  <eggert@twinsun.com>
45208
45209         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
45210         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
45211         NetBSD kernels.  Requested by Richard Stallman.
45212
45213 2003-10-27  Paul Eggert  <eggert@twinsun.com>
45214
45215         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
45216         to allocate the returned structure.  Do not allocate a subarray,
45217         as x2nrealloc will do that.
45218         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
45219         instead of xnrealloc.
45220         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
45221
45222 2003-10-27  Bruno Haible  <bruno@clisp.org>
45223
45224         * lib/stdbool_.h: Better support for BeOS.
45225
45226 2003-10-26  Paul Eggert  <eggert@twinsun.com>
45227
45228         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
45229         now uses inline.
45230
45231 2003-10-26  Paul Eggert  <eggert@twinsun.com>
45232
45233         * lib/xalloc.h (xalloc_oversized): New static inline function, for
45234         callers that want to do their own size-overflow checking.  Include
45235         <stdbool.h>, since xalloc_oversized returns bool.
45236         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
45237         to use xalloc_oversized.
45238
45239         Add two functions x2realloc, x2nrealloc, for programs that grow
45240         arrays dynamically by doubling their sizes.
45241         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
45242         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
45243         New functions.
45244
45245         Port to C99 semantics for 'inline' of external functions.
45246         Bug reported by Bruno Haible.
45247         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
45248         with the old contents of xnmalloc.
45249         (xnmalloc, xmalloc): Use it.
45250         (xnrealloc_inline): New static inline function,
45251         with the old contents of xnrealloc.
45252         (xnrealloc, xrealloc): Use it.
45253
45254         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
45255         that.
45256
45257 2003-10-26  Karl Berry  <karl@gnu.org>
45258
45259         * config/srclist.txt (COPYING.DOC): no longer available from
45260         /gd/gnuorg; don't know where the ultimate source is.
45261
45262 2003-10-25  Paul Eggert  <eggert@twinsun.com>
45263
45264         Fix several address-calculation bugs in the hash modules,
45265         plus some minor code cleanup.
45266
45267         * lib/hash.h: Include <stdbool.h>, for bool.
45268         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
45269         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
45270         hash_get_n_entries, hash_get_max_bucket_length,
45271         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
45272         hash_rehash): Use size_t rather than unsigned.
45273         * lib/hash.c (struct hash_table, hash_get_n_buckets,
45274         hash_get_n_buckets_used, hash_get_n_entries,
45275         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
45276         hash_get_entries, hash_do_for_each, hash_string, is_prime,
45277         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
45278         Likewise.
45279         (SIZE_MAX): Define if not defined.
45280         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
45281         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
45282         hash_print):
45283         Use const * when possible.
45284         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
45285         (check_tuning): Fix bug: if tuning parameters were very close to
45286         0 or 1, rounding errors could have caused subscript violations.
45287         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
45288         (hash_initialize): Add 'fail:' label
45289         to free table and return NULL, and use it to simplify code.
45290         Use calloc rather than clearing the storage ourself.
45291         (hash_initialize, hash_rehash): Check for arithmetic overflow in
45292         buffer size calculations.
45293         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
45294         Include <stddef.h>, for size_t.
45295         * lib/hash-pjw.c (hash_pjw): Likewise.
45296         Switch to method described by Bruno Haible.
45297         Include <limits.h>, for CHAR_BIT.
45298         (SIZE_BITS): New macro.
45299
45300 2003-10-23  Paul Eggert  <eggert@twinsun.com>
45301
45302         * m4/getline.m4 (AM_FUNC_GETLINE):
45303         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
45304         hosts.  Problem reported by Derek Robert Price in
45305         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
45306         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
45307         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
45308
45309 2003-10-21  Paul Eggert  <eggert@twinsun.com>
45310
45311         * lib/getndelim2.c (getndelim2): When size calculation overflows,
45312         ceiling the allocation at NMAX bytes rather than silently
45313         discarding input bytes before NMAX is reached.  This makes
45314         a difference only if NMAX exceeds SIZE_MAX / 2.
45315
45316         * lib/obstack.c: Merge from glibc.
45317         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
45318         Add libc_hidden_def (_obstack_newchunk).
45319         (_obstack_free) [! defined _LIBC]: Remove.
45320         [defined _LIBC]: Make a strong alias from obstack_free, rather than
45321         a clone of the function body.
45322         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
45323         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
45324
45325         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
45326         glibc.
45327         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
45328         arg to memcpy.
45329
45330         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
45331         (obstack_ptr_grow_fast, obstack_int_grow_fast):
45332         Don't use lvalue casts, as GCC plans to remove support for them
45333         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
45334         was also present in the non-GCC version, indicating that this
45335         code had always been buggy and had never been widely used.
45336         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
45337         Use the fast variant of each macro, rather than copying the
45338         definiens of the fast variant; that way, we'll be more likely to
45339         catch future bugs in the fast variants.
45340
45341 2003-10-20  Bruno Haible  <bruno@clisp.org>
45342
45343         * modules/wait-process: New file.
45344         * MODULES.html.sh (func_all_modules): Add wait-process.
45345
45346 2003-10-20  Bruno Haible  <bruno@clisp.org>
45347
45348         * m4/wait-process.m4: New file.
45349
45350 2003-10-20  Bruno Haible  <bruno@clisp.org>
45351
45352         * lib/wait-process.h: New file, from GNU gettext.
45353         * lib/wait-process.c: New file, from GNU gettext.
45354
45355 2003-10-19  Jim Meyering  <jim@meyering.net>
45356
45357         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
45358         HPUX 10.20.
45359
45360 2003-10-18  Karl Berry  <karl@gnu.org>
45361
45362         * config/config.guess: update from config.
45363
45364 2003-10-16  Paul Eggert  <eggert@twinsun.com>
45365
45366         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
45367         (getgroups): First arg is int, not size_t.
45368         Don't let 'free' mangle errno.
45369
45370 2003-10-16  Paul Eggert  <eggert@twinsun.com>
45371
45372         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
45373
45374 2003-10-16  Karl Berry  <karl@gnu.org>
45375
45376         * config/config.{guess,sub}: update from config.
45377
45378 2003-10-16  Jim Meyering  <jim@meyering.net>
45379
45380         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
45381         memcpy.
45382
45383 2003-10-15  Paul Eggert  <eggert@twinsun.com>
45384
45385         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
45386         (SIZE_MAX): Remove.
45387         (new_exclude, add_exclude_file): Initial size no longer needs to
45388         be a power of 2.
45389         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
45390         our own address arithmetic overflow checking.
45391
45392         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
45393         (fnmatch): Do not alloca more than 2000 wide characters;
45394         instead, use malloc for large buffers.
45395         Check for address arithmetic overflow, and return -1
45396         with errno set to ENOMEM in that case.
45397         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
45398         (NEW_PATTERN): Do not alloca more than 8000 bytes;
45399         instead, return -1.  Check for address arithmetic overflow.
45400
45401 2003-10-14  Paul Eggert  <eggert@twinsun.com>
45402
45403         Handle invalid suffixes and overflow independently, so that
45404         callers can treat them independently as needed.  Fix some bugs in
45405         suffix handling, e.g., "100k@" was not diagnosed as an invalid
45406         suffix for a human-readable blocksize.  The major caller-visible
45407         change is the addition of a new
45408         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
45409         that both overflow and suffix chars were found.
45410
45411         * lib/human.c (humblock): Don't check separately for invalid suffix
45412         char; that is xstrtoumax's job (now that its bug is fixed).
45413         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
45414         INTMAX_MAX]: New macros.
45415         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
45416         TYPE_MAXIMUM): New macros.
45417         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
45418         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
45419         if overflow occurs, as it's what __strtol does and it's more useful
45420         in practice.
45421         (__xstrtol): If __strtol reports some error other than ERANGE,
45422         reflect it to the caller as LONGINT_INVALID.  If it reports
45423         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
45424         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
45425         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
45426         value.
45427         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
45428         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
45429         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
45430         [defined UINTMAX_MAX]: New macros.
45431
45432 2003-10-14  Bruno Haible  <bruno@clisp.org>
45433
45434         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
45435
45436 2003-10-14  Bruno Haible  <bruno@clisp.org>
45437
45438         * m4/sig_atomic_t: New file, from GNU gettext.
45439         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
45440
45441 2003-10-14  Bruno Haible  <bruno@clisp.org>
45442
45443         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
45444         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
45445         Also use volatile where needed.
45446
45447 2003-10-12  Paul Eggert  <eggert@twinsun.com>
45448
45449         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
45450         Change maintainer from Bruno Haible to 'all'.
45451
45452 2003-10-12  Paul Eggert  <eggert@twinsun.com>
45453
45454         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
45455
45456 2003-10-12  Paul Eggert  <eggert@twinsun.com>
45457
45458         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
45459         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
45460         and define in terms of the other primitives.
45461         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
45462         (SIZE_MAX): Define if not already defined.
45463         (array_size_overflow): New function.
45464         (xalloc_die): Abort instead of exiting if 'error' returns.
45465         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
45466         (xmalloc, xrealloc): Use them.
45467         (xcalloc): Check for address arithmetic overflow.
45468         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
45469         a bit faster than strcpy.
45470
45471 2003-10-10  Simon Josefsson  <jas@extundo.com>
45472
45473         * modules/argp (Depends-on): Add restrict and strcase.
45474
45475 2003-10-10  Simon Josefsson  <jas@extundo.com>
45476
45477         * m4/argp.m4: Add AC_C_INLINE.
45478
45479 2003-10-08  Paul Eggert  <eggert@twinsun.com>
45480
45481         Merge getpass from libc, plus a few fixes.
45482
45483         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
45484         Include <stdbool.h>.
45485         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
45486         __fsetlocking to empty.
45487         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
45488         do include <bits/libc-lock.h>.
45489         Do not include <fcntl.h>; not needed.
45490         [_LIBC]: Include <wchar.h>.
45491         (NOTCANCEL_MODE): New macro.
45492         (flockfile, funlockfile) [_LIBC]: New macros.
45493         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
45494         [!_LIBC]: New macros.
45495         (call_fclose): New function.
45496         (getpass): Use it.  Save tty stream separately; this simplifies the
45497         code and makes it more reliable if stdin happens to equal stdout.
45498         Invoke __fsetlocking on tty.
45499         Handle thread cancellation if needed.
45500         Namespace cleanup (use __tcgetattr, __getline).
45501         Use bool for Booleans.
45502         [USE_IN_LIBIO]: Handle wide streams.
45503         [!_LIBC]: Unconditionally do the fseek, since we don't know what
45504         stream might go where.
45505
45506         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
45507         doesn't have to include <stdio.h> before us.
45508         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
45509         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
45510         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
45511         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
45512         if not declared, so that we can use getpass.c code from libc without
45513         rewriting it.
45514         (flockfile, ftrylockfile, funlockfile): New macros.
45515
45516 2003-10-08  Paul Eggert  <eggert@twinsun.com>
45517
45518         * modules/getpass: Depend on stdbool.
45519
45520 2003-10-08  Paul Eggert  <eggert@twinsun.com>
45521
45522         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
45523
45524 2003-10-07  Karl Berry  <karl@gnu.org>
45525
45526         * config/config.{guess,sub}: update from config.
45527
45528 2003-10-06  Jim Meyering  <jim@meyering.net>
45529             Bruno Haible  <bruno@clisp.org>
45530
45531         This lets translators provide better translations for the
45532         "Written by ..." part of --version output.
45533         * lib/version-etc.h: Include stdarg.h.
45534         (version_etc_copyright): Declare as readonly.
45535         (version_etc): Make this function variadic with a NULL-terminated list
45536         of author name strings.
45537         (version_etc_va): New declaration.
45538         * lib/version-etc.c: Include stdarg.h, stdlib.h.
45539         (version_etc_copyright): Declare as readonly.
45540         (version_etc_va): New function. Provide a different translatable string
45541         for each possible number of authors < 10. Abbreviate when there are 10
45542         authors or more.
45543         (version_etc): Make this function variadic. Call version_etc_va.
45544         Suggestion from Gary V. Vaughan.
45545
45546         * lib/long-options.h (parse_long_options): Change prototype: the
45547         authors string is moved to the end and becomes variadic.
45548         * lib/long-options.c: Include stdarg.h.
45549         (parse_long_options): Make this function variadic, too.
45550         Call version_etc_va, not version_etc.
45551
45552 2003-10-06  Bruno Haible  <bruno@clisp.org>
45553
45554         * modules/version-etc-2: Remove file.
45555         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
45556
45557 2003-10-06  Bruno Haible  <bruno@clisp.org>
45558
45559         * modules/fatal-signal: New file.
45560         * MODULES.html.sh (func_all_modules): Add fatal-signal.
45561
45562 2003-10-06  Bruno Haible  <bruno@clisp.org>
45563
45564         * m4/fatal-signal.m4: New file.
45565         * m4/signalblocking.m4: New file, from GNU gettext.
45566
45567 2003-10-06  Bruno Haible  <bruno@clisp.org>
45568
45569         * lib/version-etc-2.h: Remove file.
45570         * lib/version-etc-2.c: Remove file.
45571
45572 2003-10-06  Bruno Haible  <bruno@clisp.org>
45573
45574         * lib/fatal-signal.h: New file, from GNU gettext.
45575         * lib/fatal-signal.c: New file, from GNU gettext.
45576
45577 2003-10-05  Paul Eggert  <eggert@twinsun.com>
45578
45579         * README: Rework advice for preventing empty .o files.
45580         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
45581         not <sys/types.h>.
45582
45583 2003-10-04  Karl Berry  <karl@gnu.org>
45584
45585         * lib/argp*: update from libc.
45586
45587 2003-10-04  Karl Berry  <karl@gnu.org>
45588
45589         * config/config.{guess,sub}: update from config.
45590
45591 2003-10-02  Bruno Haible  <bruno@clisp.org>
45592
45593         * modules/lchown (Include): Add lchown.h.
45594         * modules/time_r (Include): Use "..." syntax.
45595         * modules/xgetdomainname (Include): Add xgetdomainname.h.
45596
45597 2003-10-01  Simon Josefsson  <jas@extundo.com>
45598
45599         * MODULES.html.sh (func_all_modules): Move gethostname from section
45600         'based on' to section 'lacking' POSIX:2001.
45601
45602 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
45603
45604         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
45605         to output mode on the same stream.
45606
45607 2003-09-29  Paul Eggert  <eggert@twinsun.com>
45608
45609         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
45610         Fix arg typo in previous patch.
45611
45612 2003-09-28  Jim Meyering  <jim@meyering.net>
45613
45614         * lib/error.c: Correct cpp indentation.
45615
45616 2003-09-27  Paul Eggert  <eggert@twinsun.com>
45617
45618         * modules/free: New file.
45619
45620 2003-09-27  Paul Eggert  <eggert@twinsun.com>
45621
45622         * m4/free.m4: New file.
45623
45624 2003-09-27  Paul Eggert  <eggert@twinsun.com>
45625
45626         * lib/minmax.h (MIN, MAX)
45627         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
45628         Omit the special code that used __typeof__, since we worry that
45629         it could be more trouble than it's worth.  See:
45630         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
45631         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
45632
45633         * lib/free.c: New file.
45634
45635 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
45636
45637         Trivial fixes to Makefile.am parts of module listings.
45638         * modules/strstr: Append strstr.h to lib_SOURCES.
45639         * modules/strcase: Likewise, for strcase.h.
45640
45641 2003-09-27  Karl Berry  <karl@gnu.org>
45642
45643         * config/mkinstalldirs: update from automake.
45644
45645 2003-09-26  Paul Eggert  <eggert@twinsun.com>
45646
45647         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
45648         (error_tail): Do not loop, reallocating temporary buffer, since
45649         the output cannot contain more wide characters than the input
45650         contains bytes, the size must be big enough already.  This avoids
45651         one potential size overflow calculation.  Check for size overflow
45652         when calculating temporary buffer size.  Free temporary buffer
45653         when done, if it was allocated with malloc; this plugs a memory
45654         leak.  Remove casts from void * to pointers, that are no longer
45655         needed now that we're assuming C89 or better.
45656
45657         Merge error changes from glibc.
45658
45659         * lib/error.c, error.h: Update copyright notice header to match glibc.
45660         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
45661         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
45662         Disable cancellation while printing error.
45663         * lib/error.h: Prepend __ to parameter names.
45664
45665 2003-09-26  Jim Meyering  <jim@meyering.net>
45666
45667         * lib/error.c (error_tail): Move some declarations
45668         into inner scope where the local variables are used.
45669
45670 2003-09-26  Bruno Haible  <bruno@clisp.org>
45671
45672         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
45673         stpncpy().
45674         Don't define stpncpy through config.h; it's now done through stpncpy.h.
45675
45676 2003-09-26  Bruno Haible  <bruno@clisp.org>
45677
45678         * lib/stpncpy.h (gnu_stpncpy): New declaration.
45679         (stpncpy): Define as alias for gnu_stpncpy.
45680         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
45681
45682 2003-09-25  Simon Josefsson  <jas@extundo.com>
45683
45684         * lib/xgetdomainname.h: New file.
45685         * lib/xgetdomainname.c: New file.
45686
45687 2003-09-25  Simon Josefsson  <jas@extundo.com>
45688             Bruno Haible  <bruno@clisp.org>
45689
45690         * modules/getdomainname: New file.
45691         * modules/xgetdomainname: New file.
45692         * MODULES.html.sh (func_all_modules): Add getdomainname,
45693         xgetdomainname.
45694
45695 2003-09-25  Simon Josefsson  <jas@extundo.com>
45696             Bruno Haible  <bruno@clisp.org>
45697
45698         * m4/getdomainname.m4: New file.
45699
45700 2003-09-25  Simon Josefsson  <jas@extundo.com>
45701             Bruno Haible  <bruno@clisp.org>
45702
45703         * lib/getdomainname.h: New file.
45704         * lib/getdomainname.c: New file.
45705
45706 2003-09-25  Karl Berry  <karl@gnu.org>
45707
45708         * lib/argp-fmtstream.c, argp-help.c: update from libc.
45709
45710 2003-09-25  Karl Berry  <karl@gnu.org>
45711
45712         * config/install-sh: update from automake.
45713
45714 2003-09-25  Bruno Haible  <bruno@clisp.org>
45715
45716         * modules/version-etc-2: New file, from modules/version-etc with
45717         modifications.
45718         * MODULES.html.sh (func_all_modules): Add version-etc-2.
45719
45720 2003-09-25  Bruno Haible  <bruno@clisp.org>
45721
45722         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
45723         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
45724
45725 2003-09-24  Simon Josefsson  <jas@extundo.com>
45726
45727         * modules/xgethostname: Add xgethostname.h.
45728
45729 2003-09-24  Paul Eggert  <eggert@twinsun.com>
45730
45731         * lib/linebuffer.c (freebuffer): Don't free the argument, just
45732         the buffer associated with the argument.  Bug reported by
45733         Simon Josefsson.
45734
45735 2003-09-24  Paul Eggert  <eggert@twinsun.com>
45736
45737         * README: Document assumptions that 'int' is at least 32 bits
45738         wide, that integer arithmetic is 2's complement without overflow,
45739         that there are no holes in integer values, that adding sizes of
45740         two nonoverlapping objects can't overflow, and that all-bits-zero
45741         yields scalar zero.  Fix spelling and capitalization typos.
45742
45743 2003-09-19  Karl Berry  <karl@gnu.org>
45744
45745         * lib/argp.h: update from libc.
45746
45747 2003-09-17  Paul Eggert  <eggert@twinsun.com>
45748
45749         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
45750         to avoid spurious warnings like "AC_RUN_IFELSE was called before
45751         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
45752
45753 2003-09-17  Paul Eggert  <eggert@twinsun.com>
45754
45755         * gnulib-tool: Use "test -h", not "test -L", for portability
45756         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
45757         (tags_regexp): Remove, since \| doesn't conform to POSIX.
45758         (sed_extract_prog): Issue s commands one-by-one, rather than
45759         using \| in one s command.
45760
45761 2003-09-16  Paul Eggert  <eggert@twinsun.com>
45762
45763         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
45764         input error, instead of returning NULL the next time we are called
45765         (and therefore losing track of errno).
45766
45767 2003-09-16  Bruno Haible  <bruno@clisp.org>
45768
45769         * gnulib-tool (func_create_testdir): Warn about duplicated
45770         dependencies.
45771
45772 2003-09-15  Paul Eggert  <eggert@twinsun.com>
45773
45774         * modules/argmatch, modules/fatal, modules/obstack,
45775         modules/xalloc, modules/xgethostname: Sort dependencies by
45776         importance, not alphabetically.
45777
45778 2003-09-15  Paul Eggert  <eggert@twinsun.com>
45779
45780         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
45781         fails, so that the caller gets the proper errno.
45782
45783         * lib/readutmp.c (read_utmp): Likewise.
45784         Check for fstat error.  Close stream and free storage
45785         when failing.
45786
45787 2003-09-14  Karl Berry  <karl@gnu.org>
45788
45789         * config/srclist.txt (strdup.c): disable for c89 changes.
45790
45791 2003-09-14  Jim Meyering  <jim@meyering.net>
45792
45793         * lib/getloadavg.c: Correct cpp indentation.
45794         * lib/strdup.c: Likewise.
45795         * lib/vasnprintf.c: Likewise.
45796
45797 2003-09-14  Bruno Haible  <bruno@clisp.org>
45798
45799         * modules/fwriteerror: New file.
45800         * MODULES.html.sh (func_all_modules): Add fwriteerror.
45801
45802 2003-09-14  Bruno Haible  <bruno@clisp.org>
45803
45804         * lib/fwriteerror.h: New file.
45805         * lib/fwriteerror.c: New file.
45806
45807 2003-09-12  Paul Eggert  <eggert@twinsun.com>
45808
45809         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
45810         modules/xgethostname, modules/xalloc: Depend on exit.
45811
45812 2003-09-12  Paul Eggert  <eggert@twinsun.com>
45813
45814         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
45815
45816         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
45817         and AC_MINIX, too, so that their extensions are available.
45818
45819         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
45820         This macro has been superseded by gl_BACKUPFILE.
45821
45822         More patches to assume C89 or better.
45823
45824         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
45825
45826         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
45827         unconditionally.
45828         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
45829         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
45830         Include <string.h>, <stdlib.h> unconditionally.
45831         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
45832         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
45833         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
45834         headers or for string.h.
45835         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
45836         or strtoul.
45837
45838         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
45839         headers.
45840         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
45841         * m4/userspec.m4 (gl_USERSPEC): Likewise.
45842         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
45843         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
45844         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
45845         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
45846         memcpy, memset.
45847         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
45848         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
45849         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
45850         strtol.
45851         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
45852         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
45853         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
45854         strtoul.
45855
45856 2003-09-12  Paul Eggert  <eggert@twinsun.com>
45857
45858         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
45859         * lib/obstack.c [!defined _LIBC]: Likewise.
45860         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
45861         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
45862         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
45863
45864         More changes to assume C89 or better.
45865
45866         * lib/error.c (error_tail): Assume vprintf.
45867
45868         * lib/argmatch.c (getenv): Remove decl.
45869         * lib/progreloc.c (get_full_program_name): Define via prototype.
45870         * lib/setenv.c (clearenv): Likewise.
45871         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
45872         needed.
45873         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
45874         (malloc, memcpy): Remove decls.
45875         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
45876         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
45877         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
45878         (memcpy): Remove macro.
45879         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
45880         (__P): Remove.  All uses removed.
45881         (PTR): Remove.  All uses changed to void *.
45882         (CHAR_BIT, NULL): Remove.
45883         (spaces, zeros, memset_space, memset_zero)
45884         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
45885         Remove.
45886         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
45887         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
45888         Define with prototype.
45889         Remove now-unnecessary prototype decl.
45890         (extra_args_spec): Assume ANSI C.  All uses changed.
45891         (extra_args_spec_iso): Remove.
45892         (my_strftime, emacs_strftimeu): Define via prototype.
45893         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
45894         unconditionally.
45895         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
45896         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
45897         (strtoul, strtol): Remove decls.
45898         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
45899         LONG_MAX): Remove.
45900         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
45901         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
45902         (LOCALE_PARAM_PROTO): New macro.
45903         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
45904         (INTERNAL (strtol), strtol): Define with a prototype.
45905         (PARAMS): Remove.  All uses removed.
45906         * lib/tempname.c: Include <string.h> unconditionally.
45907         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
45908         * lib/xgethostname.c (main): Define with a prototype.
45909         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
45910         Include <stdlib.h> unconditionally.
45911         (calloc, malloc, realloc, free): Remove decls.
45912         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
45913         Include <stdlib.h> unconditionally.  Sort include file names.
45914         (strtod): Remove.
45915         (xstrtod): Define with a prototype.
45916         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
45917         (strtol, strtoul): Remove decls.
45918
45919 2003-09-11  Paul Eggert  <eggert@twinsun.com>
45920
45921         More patches to assume C89 or better.
45922         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
45923         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
45924         string.h, memchr, STDC_HEADERS.
45925
45926 2003-09-11  Paul Eggert  <eggert@twinsun.com>
45927
45928         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
45929         Include <stdlib.h>, <string.h> unconditionally.
45930         Remove now-unnecessary cast to char *.
45931         * lib/strnlen.c: Include <string.h> unconditionally.
45932         * lib/yesno.c (yesno): Define with a prototype.
45933
45934 2003-09-11  Bruno Haible  <bruno@clisp.org>
45935
45936         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
45937
45938 2003-09-10  Jim Meyering  <jim@meyering.net>
45939
45940         * lib/error.c: Correct indentation of cpp directives.
45941
45942 2003-09-10  Bruno Haible  <bruno@clisp.org>
45943
45944         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
45945         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
45946         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
45947         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
45948         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
45949         <stdlib.h> and <string.h> checks.
45950         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
45951         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
45952
45953 2003-09-10  Bruno Haible  <bruno@clisp.org>
45954
45955         * lib/strcspn.c: Include <string.h> unconditionally.
45956         * lib/strpbrk.c: Include <string.h> unconditionally.
45957         * lib/strstr.c: Include <string.h> unconditionally.
45958         * lib/unicodeio.c: Include <string.h> unconditionally.
45959         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
45960         * lib/unsetenv.c: Likewise.
45961         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
45962         * lib/yesno.c: Include <stdlib.h> unconditionally.
45963         (rpmatch): Add prototype.
45964
45965 2003-09-09  Paul Eggert  <eggert@twinsun.com>
45966
45967         More patches to assume C89 or better.
45968         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
45969         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
45970         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
45971         or for string.h.
45972         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
45973         stdlib.h.
45974         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
45975         C headers.
45976         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
45977         string.h.
45978         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
45979         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
45980         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
45981         or for string.h.
45982         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
45983         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
45984         C headers.
45985         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
45986         memcpy.
45987         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
45988         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
45989         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
45990         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
45991         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
45992         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
45993         string.h, free.
45994         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
45995         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
45996         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
45997         C headers, or for string.h.
45998         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
45999         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
46000         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
46001         headers, memory.h, stdlib.h, string.h, strings.h.
46002         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
46003         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
46004         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
46005         strchr.
46006         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
46007         headers, memory.h, string.h.
46008         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
46009         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
46010         free.
46011         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
46012         headers.
46013         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
46014         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
46015         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
46016         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
46017         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
46018
46019 2003-09-09  Paul Eggert  <eggert@twinsun.com>
46020
46021         More K&R removal.
46022
46023         * lib/acosl.c (main): Use a prototype.
46024         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
46025         tanl.c: Likewise.
46026
46027         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
46028
46029         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
46030         (getopt, etopt_long, getopt_long_only, _getopt_internal)
46031         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
46032         with a prototype.
46033         * lib/getopt.c (const): Remove macro.
46034         Include <string.h> unconditionally.
46035         (my_index): Remove; all uses changed to strchr.
46036         (strlen): Remove decl.
46037         (exchange): Remove forward decl; no longer needed.
46038         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
46039         Define with prototype.
46040         * lib/getopt1.c (const): Remove macro.
46041         (getopt_long, getopt_long_only, main): Define with prototype.
46042
46043         * lib/getugroups.c: Include <string.h> unconditionally.
46044
46045         * lib/getusershell.c: Include <stdlib.h> unconditionally.
46046         (getusershell, setusershell, endusershell, readname, main):
46047         Define with prototypes.
46048
46049         * lib/group-member.c: Include group-member.h first.
46050         Include <stdlib.h> unconditionally.
46051
46052         * lib/hard-locale.c: Include hard-locale.h first.
46053         Include <stdlib.h>, <string.h> unconditionally.
46054
46055         * lib/hash.c (free, malloc): Remove decls.
46056         Include <stdlib.h> unconditionally.
46057
46058         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
46059         (getenv): Do not declare.
46060
46061         * lib/idcache.c: Include <string.h> unconditionally.
46062
46063         * lib/long-options.c: Include long-options.h first, to test interface.
46064         Include <stdlib.h> unconditionally.
46065
46066         * lib/makepath.c: Include makepath.h first, to test interface.
46067         Include <stdlib.h> and <string.h> unconditionally.
46068
46069         * lib/linebuffer.c: Include <stdlib.h>.
46070         (free): Remove decl.
46071
46072         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
46073         stddef.h. rpl_malloc returns void *, not char *.
46074         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
46075         prototype.
46076
46077         * lib/md5.h: Include <limits.h> unconditionally.
46078         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
46079         (__P): Remove; all uses removed.
46080         * lib/md5.c: Include "md5.h" first.
46081         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
46082         md5_buffer, md5_process_bytes, md5_process_block):
46083         Define with prototypes.
46084         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
46085         * lib/sha.c: Include "sha.h" first.
46086         Include <stdlib.h>, <string.h> unconditionally.
46087
46088         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
46089         * lib/memcmp.c (__ptr_t): Likewise.
46090         * lib/memrchr.c (__ptr_t): Likewise.
46091         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
46092         Include <string.h> unconditionally.
46093         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
46094         * lib/memchr.c: Include <stdlib.h> unconditionally.
46095         * lib/memchr.c (LONG_MAX): Remove.
46096         * lib/memrchr.c (LONG_MAX): Likewise.
46097         * lib/memchr.c (__memchr): Define via a prototype.
46098         * lib/memrchr.c (__memrchr): Likewise.
46099         * lib/memcmp.c (__P): Remove, and remove all uses.
46100         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
46101         Remove forward decls; no longer needed.
46102         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
46103         Use types required by C89 in prototype.
46104
46105         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
46106         * lib/savedir.c: Likewise.
46107         * lib/mkdir.c (free): Remove decl.
46108         * lib/rmdir.c (rmdir): Define with a prototype.
46109         * lib/savedir.c: Include savedir.h first, to test interface.
46110
46111         * lib/mktime.c (STDC_HEADERS): Remove.
46112         Include <stdlib.h>, <string.h> unconditionally.
46113
46114         * lib/modechange.c: Include <stdlib.h> unconditionally.
46115         (malloc): Remove decl.
46116
46117         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
46118         (free): Remove decl.
46119
46120         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
46121         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
46122         (This type really should be intptr_t, but that's a C99ism.)
46123         (_obstack_memcpy): Remove: all uses changed to memcpy.
46124         Include <string.h> unconditionally.
46125         (struct obstack): Assume __STDC__ for types of members
46126         chunkfun, freefun, extra_arg.
46127         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
46128         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
46129         obstack_begin, obstack_specify_allocation,
46130         obstack_specify_allocation_with_arg, obstack_chunkfun,
46131         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
46132         Remove unprototyped decls and the macros that use them.
46133         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
46134         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
46135         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
46136         (defined __STDC__ && __STDC__)]:
46137         Remove nonprototyped code.
46138         Include <stdlib.h> unconditionally.
46139         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
46140         _obstack_allocated_p, _obstack_free, obstack_free,
46141         _obstack_memory_used, print_and_abort):
46142         Define using prototypes.
46143         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
46144         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
46145         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
46146         obstack_next_free, obstack_object_size, obstack_room) [0]:
46147         Remove unused, unprototyped code.
46148
46149         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
46150
46151         * lib/physmem.c (physmem_total, physmem_available, main): Define
46152         with prototypes.
46153
46154         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
46155         (main): Define with a prototype.
46156
46157         * lib/posixver.c (getenv): Remove decl.
46158
46159         * lib/putenv.c (malloc): Returns void *, not char *.
46160         Include <string.h> unconditionally.
46161         (strchr, memcpy, NULL): Do not define.
46162
46163         * lib/readtokens.c: Include readtokens.h first, to test interface.
46164         Include <stdlib.h>, <string.h> unconditionally.
46165         (init_tokenbuffer): Define with a prototype.
46166
46167         * lib/regex.c (PARAMS): Remove.  All uses removed.
46168         All uses of _RE_ARGS removed, too.
46169         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
46170         unconditionally.
46171         (bzero): Assume memset exists.
46172         (memcmp, memcpy, NULL): Remove.
46173         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
46174         char, or assignments to local vars of type signed char.
46175         (init_syntax_once, PREFIX(extract_number_and_incr),
46176         PREFIX(print_partial_compiled_pattern),
46177         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
46178         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
46179         PREFIX(regex_grow_registers), PREFIX(regex_compile),
46180         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
46181         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
46182         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
46183         wcs_compile_range, byte_compile_range, truncate_wchar,
46184         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
46185         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
46186         count_mbs_length, wcs_re_match_2_internal,
46187         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
46188         PREFIX(alt_match_null_string_p),
46189         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
46190         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
46191         regfree, PREFIX(extract_number)): Define with prototype.  Remove
46192         now-unnecessary declaration, if any.
46193         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
46194         regcomp, regexec):
46195         Remove now-unnecessary casts among pointer types.
46196         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
46197
46198         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
46199         (free): Remove decl.
46200
46201         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
46202
46203         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
46204         (free): Remove decl.
46205
46206         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
46207         * lib/xgetcwd.c: Likewise.
46208
46209         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
46210         (free): Remove decl.
46211
46212         * lib/strchrnul.c (strchrnul): Define with a prototype.
46213         Fix bug: c_in was not converted to char before searching.
46214
46215         The following changes are not K&R related:
46216
46217         * lib/group-member.h: Include <sys/types.h>, so that this file is
46218         self-contained.
46219         * lib/makepath.h: Likewise.
46220
46221         * lib/getusershell.c (readname, default_index, line_size, readname):
46222         Use size_t, not int, for sizes.
46223         (readname): If the size overflows, report an error instead of
46224         looping forever.
46225
46226 2003-09-09  Paul Eggert  <eggert@twinsun.com>
46227
46228         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
46229         libc.
46230
46231 2003-09-09  Paul Eggert  <eggert@twinsun.com>
46232
46233         * README: New section: portability guidelines.
46234
46235 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
46236
46237         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
46238         C89 spec.
46239
46240 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
46241
46242         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
46243
46244 2003-09-08  Paul Eggert  <eggert@twinsun.com>
46245
46246         Assume C89 or better; remove K&R cruft.
46247         A few of these changes were first proposed by Derek Robert Price
46248         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
46249
46250         * lib/addext.c: Include <string.h> unconditionally.
46251         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
46252         Don't declare getenv or malloc.
46253
46254         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
46255         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
46256         (NULL): Remove.
46257         (find_stack_direction, alloca): Use prototypes.
46258
46259         * lib/atexit.c (atexit): Define using a prototype.
46260
46261         * lib/basename.c, dirname.c, stripslash.c:
46262         Include <string.h> unconditionally.
46263
46264         * lib/bcopy.c: Include <stddef.h>.
46265         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
46266
46267         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
46268
46269         * lib/error.h (error, error_at_line, error_print_progname)
46270         [! (defined (__STDC__) && __STDC__)]: Remove decls.
46271         * lib/error.c: Include error.h first, to check interface.
46272         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
46273         (VA_START): Remove; all uses changeed to va_start.
46274         (exit, strerror): Remove decls.
46275         (error_print_progname): Prototype uncondionally.
46276         Don't include <errno.h>; no longer needed.
46277         (private_strerror): Remove.
46278         (error_tail): Always define.
46279         (error, error_at_line): Assume C89 or better; always use prototypes.
46280         * lib/fatal.c: Include "fatal.h" first, to test interface.
46281         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
46282         (VA_START): Remove; all uses changed to va_start.
46283         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
46284         this case.
46285         (exit): Remove decl.
46286         (fatal): Prototype unconditionally.  Assume va_start works.
46287         Abort at end, to pacify gcc.
46288
46289         * lib/euidaccess.c (main): Define with a prototype.
46290
46291         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
46292
46293         * lib/exitfail.c: Include <stdlib.h> unconditionally.
46294
46295         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
46296         prototypes.
46297         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
46298         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
46299         (getenv): Remove decl.
46300         (fnmatch): Define using a prototype.
46301         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
46302         (FCT): Define using a prototype.
46303
46304         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
46305
46306         * lib/gethostname.c: Include <stddef.h>.
46307         (gethostname): Define with prototype.  Length is size_t, not int.
46308
46309 2003-09-08  Paul Eggert  <eggert@twinsun.com>
46310
46311         Assume C89 or better; remove K&R cruft.
46312         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
46313         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
46314         string.h, getenv, malloc.
46315         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
46316         headers.
46317         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
46318         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
46319         do not check for strerror.
46320         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
46321         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
46322         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
46323         do not check for doprnt or vprintf.
46324         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
46325         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
46326
46327 2003-09-08  Paul Eggert  <eggert@twinsun.com>
46328
46329         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
46330         getversion.c should have been removed then, but was accidentally
46331         preserved.
46332
46333         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
46334         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
46335
46336 2003-09-08  Karl Berry  <karl@gnu.org>
46337
46338         * config/config.sub, config.guess, srclistvars.sh: update from savannah
46339                 config, forget about prep.
46340
46341         * config/depcomp, missing: update from automake.
46342
46343 2003-09-07  Paul Eggert  <eggert@twinsun.com>
46344
46345         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
46346         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
46347
46348 2003-09-07  Paul Eggert  <eggert@twinsun.com>
46349
46350         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
46351         copy_tm_result.  Bug reported by Simon Josefsson in
46352         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
46353
46354 2003-09-06  Paul Eggert  <eggert@twinsun.com>
46355
46356         * m4/time_r.m4: New file.
46357         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
46358         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
46359         is. Check for timegm declaration.
46360         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
46361         Do not check for gmtime_r.
46362         Replace mktime if __mktime_internal does not exist and if mktime
46363         hasn't been replaced already.
46364
46365 2003-09-06  Paul Eggert  <eggert@twinsun.com>
46366
46367         * lib/time_r.c, lib/time_r.h: New files.
46368
46369         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
46370         __localtime_r.
46371         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
46372         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
46373
46374         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
46375         __gmtime_r.
46376         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
46377         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
46378         Include <time_r.h>.
46379
46380         * lib/timegm.c: Switch to glibc implementation, with the following
46381         changes:
46382         [defined HAVE_CONFIG_H]: Include <config.h>.
46383         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
46384         (__mktime_internal) [!defined _LIBC]: New decl.
46385         (__gmtime_r) [!defined _LIBC]: New macro and function.
46386         (timegm): Use a prototype, since gnulib assumes C89.
46387         Do not bother declaring tmp to be const, as it's not really usefu.
46388         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
46389         (timegm): Declare only if HAVE_DECL_TIMEGM.
46390
46391 2003-09-06  Paul Eggert  <eggert@twinsun.com>
46392
46393         * MODULES.html.sh (func_all_modules): Add time_r.
46394         * modules/time_r: New file.
46395         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
46396         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
46397
46398 2003-09-03  Paul Eggert  <eggert@twinsun.com>
46399
46400         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
46401         Bug reported by Lute Kamstra in
46402         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
46403
46404         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
46405         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
46406         course with correspondingly smaller numbers for tomorrow and
46407         yesterday.  From Tadayoshi Funaba.  Originally installed into
46408         sh-utils on 1999-08-07, but the patch got lost (I guess during the
46409         coreutils merge?).
46410
46411 2003-08-31  Simon Josefsson  <jas@extundo.com>
46412
46413         * modules/timegm: New file.
46414         * MODULES.html.sh (func_all_modules): Add timegm.
46415
46416 2003-08-31  Simon Josefsson  <jas@extundo.com>
46417
46418         * m4/timegm.m4: New file.
46419
46420 2003-08-31  Simon Josefsson  <jas@extundo.com>
46421
46422         * lib/timegm.h: New file.
46423         * lib/timegm.c: New file.  Based on
46424         wget-1.8.2/src/http.c:mktime_from_utc.
46425
46426 2003-08-31  Karl Berry  <karl@gnu.org>
46427
46428         * lib/argp.h: update from libc.
46429
46430 2003-08-28  Bruno Haible  <bruno@clisp.org>
46431
46432         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
46433         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
46434         followed by '#define fnmatch fnmatch_posix' gives an error.
46435
46436 2003-08-28  Bruno Haible  <bruno@clisp.org>
46437
46438         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
46439         warning on QNX, which defines O_BINARY to 000000.
46440
46441 2003-08-27  Jim Meyering  <jim@meyering.net>
46442
46443         * m4/mkstemp.m4: Require that the system mkstemp be able to create
46444         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
46445         would fail after 32.  Reported by Danny Levinson.  Details here:
46446         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
46447
46448 2003-08-24  Bruno Haible  <bruno@clisp.org>
46449
46450         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
46451         MSVC7 <stdio.h> is included later.
46452
46453 2003-08-22  Simon Josefsson  <jas@extundo.com>
46454
46455         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
46456
46457 2003-08-20  Karl Berry  <karl@gnu.org>
46458
46459         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
46460
46461 2003-08-20  Bruno Haible  <bruno@clisp.org>
46462
46463         * modules/progname: New file.
46464         * MODULES.html.sh (func_all_modules): Add progname.
46465
46466 2003-08-20  Bruno Haible  <bruno@clisp.org>
46467
46468         * lib/progname.h: New file, from GNU gettext.
46469         * lib/progname.c: New file, from GNU gettext.
46470         * lib/progreloc.c: New file, from GNU gettext.
46471
46472 2003-08-19  Jim Meyering  <jim@meyering.net>
46473
46474         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
46475         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
46476
46477 2003-08-19  Bruno Haible  <bruno@clisp.org>
46478
46479         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
46480         more.
46481
46482 2003-08-19  Bruno Haible  <bruno@clisp.org>
46483
46484         * lib/xstrdup.c: Assume <string.h> exists.
46485
46486 2003-08-18  Paul Eggert  <eggert@twinsun.com>
46487
46488         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
46489         in makefile rules.
46490
46491 2003-08-18  Jim Meyering  <jim@meyering.net>
46492
46493         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
46494         * m4/lib-ld.m4: Likewise.
46495
46496 2003-08-18  Jim Meyering  <jim@meyering.net>
46497
46498         * lib/setenv.h: Indent nested cpp directive.
46499         * lib/vasnprintf.c: Remove trailing blanks.
46500
46501 2003-08-17  Simon Josefsson  <jas@extundo.com>
46502
46503         * modules/xstrndup: New file.
46504         * MODULES.html.sh (func_all_modules): Add xstrndup.
46505
46506 2003-08-17  Simon Josefsson  <jas@extundo.com>
46507
46508         * modules/argp: Fix autoconf macro name. Add more dependencies.
46509
46510 2003-08-17  Simon Josefsson  <jas@extundo.com>
46511
46512         * m4/xstrndup.m4: New file.
46513
46514 2003-08-17  Simon Josefsson  <jas@extundo.com>
46515
46516         * m4/argp.m4: New file.
46517
46518 2003-08-17  Simon Josefsson  <jas@extundo.com>
46519             Bruno Haible  <bruno@clisp.org>
46520
46521         * lib/xstrndup.h: New file.
46522         * lib/xstrndup.c: New file.
46523
46524 2003-08-17  Bruno Haible  <bruno@clisp.org>
46525
46526         * modules/strndup (Files, Include): Add lib/strndup.h.
46527
46528 2003-08-17  Bruno Haible  <bruno@clisp.org>
46529
46530         * modules/euidaccess (Files): Add lib/euidaccess.h.
46531
46532 2003-08-17  Bruno Haible  <bruno@clisp.org>
46533
46534         * lib/strndup.h: New file.
46535
46536 2003-08-17  Bruno Haible  <bruno@clisp.org>
46537
46538         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
46539         like AC_GNU_SOURCE.
46540         * modules/extensions (configure.ac): Comment out the invocation of
46541         gl_USE_SYSTEM_EXTENSIONS.
46542
46543 2003-08-16  Paul Eggert  <eggert@twinsun.com>
46544
46545         Merges from coreutils, etc.
46546         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
46547         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
46548         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
46549         fixing a typo.
46550         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
46551         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
46552
46553 2003-08-16  Paul Eggert  <eggert@twinsun.com>
46554
46555         Document merge from coreutils.
46556         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
46557         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
46558         * modules/utime: Add m4/utimes-null.m4.
46559
46560 2003-08-16  Paul Eggert  <eggert@twinsun.com>
46561
46562         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
46563         space, undoing this 2003-08-12 change:
46564         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
46565
46566 2003-08-16  Paul Eggert  <eggert@twinsun.com>
46567
46568         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
46569         strtoul.c from libc, undoing this 2003-08-12 change:
46570         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
46571
46572 2003-08-16  Jim Meyering  <jim@meyering.net>
46573
46574         Merges from coreutils.
46575         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
46576         prefix.  Adjust cache variables similarly.  Create 500 rather than
46577         just 300 files, to exercise bug on Darwin6.5, too.
46578         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
46579         $missing_dir.
46580         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
46581         AM_SYS_POSIX_TERMIOS.
46582         Reported by mkc@mathdogs.com.
46583         Also change use of $am_cv_sys_posix_termios
46584         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
46585         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
46586         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
46587         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
46588         in /proc/mounts until it finds one with matching device number.  This
46589         is unnecessary when the FILE argument *is* a mount point.  No stat call
46590         is necessary in that case.  So, disable the statvfs-testing code on
46591         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
46592         as RedHat bug# 84846.
46593         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
46594         to 1MB, so as not to render systems with no stack size limit (e.g.,
46595         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
46596         Include <unistd.h>.  On some systems,
46597         it is required for the definition of _SC_PAGESIZE.
46598
46599 2003-08-16  Jim Meyering  <jim@meyering.net>
46600
46601         Merge from coreutils.
46602         * lib/xstrtoimax.c: #else #if -> #elif.
46603         * lib/xstrtoumax.c: Likewise.
46604
46605 2003-08-16  Jim Meyering  <jim@meyering.net>
46606
46607         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
46608         * m4/utimes.m4: Removed.
46609         * m4/utimes-null.m4: Renamed from utimes.m4.
46610
46611         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
46612         to 1MB, so as not to render systems with no stack size limit (e.g.,
46613         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
46614         Include <unistd.h>.  On some systems,
46615         it is required for the definition of _SC_PAGESIZE.
46616
46617 2003-08-16  Jim Meyering  <jim@meyering.net>
46618         and Paul Eggert  <eggert@cs.ucla.edu>
46619
46620         Merges from coreutils, etc.
46621
46622         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
46623         using the latest version from cvs.  This avoids problems with #line
46624         directives using a vendor (Sun) compiler.
46625         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
46626         Don't set GETGROUPS_LIB here; now it's
46627         done via getgroups.m4's wrapper function.
46628         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
46629         rather than just in sh-util/configure.in, so that the
46630         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
46631         same.
46632         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
46633         AC_FUNC_GETLOADAVG where to find getloadavg.c.
46634         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
46635         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
46636         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
46637         Remove code that is now done by the newly-required macros.
46638         Append $(EXEEXT) to DF_PROG.
46639         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
46640         Do not invoke or require the following here,
46641         since prereq.m4 or some gnulib .m4 now does this for us:
46642         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
46643         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
46644         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
46645         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
46646         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
46647         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
46648         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
46649         AC_FUNC_OBSTACK.
46650         Do not replace the following functions, as this is now the job
46651         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
46652         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
46653         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
46654         atexit getpass, strdup, getpagesize.
46655         Replace 'raise'.
46656         Do not check for the following functions, as this is now the job
46657         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
46658         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
46659         setregid.
46660         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
46661         Check for sys/sysctl.h.
46662         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
46663         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
46664         of checking for ssize_t ourselves.
46665
46666         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
46667         Require every macro that gnulib/modules/* suggests for us.
46668         (jm_PREREQ_ADDEXT): New macro.
46669         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
46670         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
46671
46672         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
46673         (gl_PHYSMEM): Use it.
46674         Also check for `table' function.
46675         Check for new headers and functions.
46676         Add check for sys/sysmp.h.
46677         With suggestions from Kaveh Ghazi.
46678         Ignore headers that are present but cannot be compiled.  This
46679         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
46680         C 5.4.
46681
46682 2003-08-15  Paul Eggert  <eggert@twinsun.com>
46683
46684         Document merge from coreutils.
46685         * modules/userspec: Depend on posixver.
46686         * modules/strftime: Depend on tzset.
46687
46688 2003-08-15  Paul Eggert  <eggert@twinsun.com>
46689
46690         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
46691         rather than tab, after '#' in shell-script copyright notices.
46692         Suggested by Bruno Haible.
46693
46694 2003-08-15  Paul Eggert  <eggert@twinsun.com>
46695
46696         * config/srclist-update: Use three spaces, rather than tab, after '#'
46697         in shell-script copyright notices.  Suggested by Bruno Haible.
46698         Remove unnecessary parenthesization in regular expression.
46699
46700 2003-08-15  Jim Meyering  <jim@meyering.net>
46701
46702         Merge from coreutils.
46703         * lib/xgethostname.c: Include <stdlib.h>.
46704         (xghostname): Don't exit for anything other than memory-related
46705         failure; just return NULL.
46706         * lib/userspec.c: Include "posixver.h".
46707         (parse_user_spec): Accept `.' as a separator only
46708         in pre-POSIX-200112 mode.
46709         * lib/strtoimax.c: Use #elif rather than #else #if.
46710         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
46711         Remove function, now that we can rely on a working tzset function.
46712         [!_LIBC]: Ensure that the required autoconf test has been run.
46713         [!defined _NL_CURRENT && HAVE_STRFTIME]:
46714         Use underlying_strftime for %r.
46715         * lib/sha.c: Merge in some clean-up and optimization changes from
46716         glibc.
46717         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
46718         Ensure that it is a multiple of 64.
46719         Rearrange loop exit tests so as to avoid performing an
46720         additional fread after encountering an error or EOF.
46721         * lib/realloc.c: Update copyright date.
46722
46723 2003-08-15  Jim Meyering  <jim@meyering.net>
46724         and Paul Eggert  <eggert@twinsun.com>
46725
46726         Merge from coreutils.
46727         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
46728         member but strut utmpx does not.  Needed for AIX 4.3.3.
46729         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
46730
46731 2003-08-15  Jim Meyering  <jim@meyering.net>
46732         and Paul Eggert  <eggert@cs.ucla.edu>
46733
46734         Merges from coreutils, etc.
46735         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
46736         Require gl_FUNC_TZSET_CLOBBER.
46737         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
46738         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
46739         members.
46740
46741 2003-08-14  Paul Eggert  <eggert@twinsun.com>
46742
46743         Help the merge from coreutils.
46744         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
46745         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
46746         * m4/tzset.m4: Use it too.
46747
46748 2003-08-14  Paul Eggert  <eggert@twinsun.com>
46749
46750         * modules/tzset: New file.
46751
46752 2003-08-14  Jim Meyering  <jim@meyering.net>
46753
46754         Merges from coreutils.
46755         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
46756         variable names, rather than @FNMATCH_H@.
46757         * modules/alloca: Likewise for $(ALLOCA_H).
46758
46759         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
46760         the three copies of the literal target, `fnmatch.h'.
46761         * modules/alloca (alloca.h): Likewise.
46762
46763 2003-08-14  Jim Meyering  <jim@meyering.net>
46764
46765         Merge from coreutils.
46766         * m4/tzset.m4: New file.
46767         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
46768         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
46769         otherwise, AIX 5.1 systems would end up using the latter.
46770         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
46771         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
46772         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
46773         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
46774
46775 2003-08-14  Jim Meyering  <jim@meyering.net>
46776
46777         Merge from coreutils.
46778         * lib/obstack.h: Whitespace changes.
46779         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
46780         and xcalloc return values.
46781         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
46782         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
46783         hang on OSF/1 5.1 for DIR on both local and remote file systems.
46784         Reported by (and fix confirmed by) Nelson H. F. Beebe.
46785         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
46786         error from mntctl.
46787         Use mntctl's return value to drive the entry-processing loop, since
46788         we can't rely on the value of the vmt_length member in the last
46789         entry.  On some systems doing so could result in exhausting
46790         virtual memory.  Based in part on a patch from Mike Jetzer.
46791
46792 2003-08-14  Jim Meyering  <jim@meyering.net>
46793         and Paul Eggert  <eggert@twinsun.com>
46794
46795         Merges from coreutils, plus other fixes.
46796         * lib/physmem.c: Merge in portability changes from gcc/libiberty
46797         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
46798         for credits and details.  Thanks to Kaveh Ghazi for helping
46799         to keep these files in sync.
46800         (ARRAY_SIZE): Define it.
46801         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
46802         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
46803         (memcasecmp): Don't assume size_t fits in unsigned int.
46804         Remove casts and duplicate code.
46805         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
46806         (memcpy): Remove definition.
46807         Merge in some clean-up and optimization changes from glibc.
46808         [BLOCKSIZE]: Move definition to top of file.
46809         Ensure that it is a multiple of 64.
46810         Rearrange loop exit tests so as to avoid performing an
46811         additional fread after encountering an error or EOF.
46812         * lib/md5.h (md5_uintptr): Define.
46813         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
46814         return to the initial working directory.  Preserve errno
46815         for caller.
46816         * lib/idcache.c: Include "xalloc.h".
46817         (xmalloc, xrealloc): Remove decls.
46818         (getuser): Remove casts no longer required in C89.
46819         * lib/human.c: Include stdio.h, for sprintf.
46820         * lib/group-member.c: Include "xalloc.h".
46821         (xmalloc, xrealloc): Remove decls.
46822         (get_group_info): Remove casts no longer required in C89.
46823         * lib/getusershell.c (readname): Remove casts no longer required in
46824         C89.
46825         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
46826         * lib/getline.c: Whitespace fix, from coreutils.
46827
46828 2003-08-13  Paul Eggert  <eggert@twinsun.com>
46829
46830         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
46831         Check for isascii.
46832
46833         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
46834         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
46835         Undo previous (whitespace-only) change.
46836
46837 2003-08-13  Paul Eggert  <eggert@twinsun.com>
46838
46839         * lib/exclude.c: Include <ctype.h>
46840         (IN_CTYPE_DOMAIN): New macro.
46841         (is_space): New fn.
46842         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
46843         and empty lines.
46844
46845         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
46846         Undo previous (whitespace-only) change.
46847
46848 2003-08-13  Paul Eggert  <eggert@twinsun.com>
46849
46850         * config/srclist-update: Change update back to the old behavior,
46851         leaving whitespace alone.  Use one 'sed' command rather than a
46852         pipeline.
46853         (fixlicense): Now a variable, not a function.
46854         (remove_trailing_blanks): Remove.
46855         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
46856         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
46857         Undo previous (whitespace-only) change.
46858
46859 2003-08-12  Paul Eggert  <eggert@twinsun.com>
46860
46861         Merge from coreutils.
46862         * modules/euidaccess: Add lib_SOURCES, include for new
46863         file euidaccess.h
46864
46865 2003-08-12  Paul Eggert  <eggert@twinsun.com>
46866
46867         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
46868         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
46869         Normalize leading white space and remove trailing white space.
46870
46871         Merge from coreutils
46872         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
46873
46874         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
46875         0.12.1.  These files are now being upgraded automatically by
46876         ../config/srclist-update.
46877
46878 2003-08-12  Paul Eggert  <eggert@twinsun.com>
46879
46880         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
46881         Normalize leading white space and remove trailing white space.
46882         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
46883         notice, as per ../config/srclist-update.
46884
46885         Merge from coreutils.
46886         * lib/euidaccess.h: New file.
46887         * lib/euidaccess.c: Include it.
46888         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
46889         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
46890         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
46891
46892 2003-08-12  Paul Eggert  <eggert@twinsun.com>
46893
46894         * config/srclist-update: Add copyright notice.
46895         (remove_id_lines, remove_trailing_blanks): New constants.
46896         (fixfile): Use them to normalize spacing a bit in copied files.
46897         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
46898         Normalize leading white space and remove trailing white space.
46899
46900         * config/texinfo.tex: Sync with texinfo.
46901
46902         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
46903         strtoul.c from libc, to merge coreutils whitespace changes.
46904
46905         * config/srclist.txt: Get the following m4 files from gettext:
46906         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
46907         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
46908         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
46909         wint_t.m4.
46910
46911 2003-08-12  Karl Berry  <karl@gnu.org>
46912
46913         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
46914         been made.
46915
46916 2003-08-11  Paul Eggert  <eggert@twinsun.com>
46917
46918         * modules/gnu-source, m4/gnu-source.m4:
46919         Remove; we're assuming Autoconf 2.54 or later now.
46920         Suggested by Bruno Haible.
46921         * MODULES.html.sh (func_all_modules): Remove gnu-source.
46922
46923 2003-08-11  Bruno Haible  <bruno@clisp.org>
46924
46925         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
46926
46927 2003-08-11  Bruno Haible  <bruno@clisp.org>
46928
46929         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
46930         (vasnprintf): Use it instead of wcslen.
46931
46932 2003-08-11  Bruno Haible  <bruno@clisp.org>
46933
46934         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
46935         value to ensure that _Bool promotes to int. Use #define for _Bool when
46936         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
46937
46938 2003-08-10  Karl Berry  <karl@gnu.org>
46939
46940         * lib/regex.h: update from libc (whitespace fix).
46941
46942 2003-08-09  Paul Eggert  <eggert@twinsun.com>
46943
46944         Merge some files from coreutils.  These changes were
46945         originally made by Jim Meyering.
46946         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
46947         many older Unixes require this.
46948         * lib/alloca.c (alloca): Remove cast to argument of free;
46949         no longer needed in C89.
46950         * lib/alloca_.h, regex.h: Fix white space to match
46951         what GNU indent does.
46952
46953 2003-08-09  Paul Eggert  <eggert@twinsun.com>
46954
46955         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
46956         apparently Emacs's Unicode mode got confused before my 2003-08-05
46957         checkin.
46958
46959 2003-08-08  Paul Eggert  <eggert@twinsun.com>
46960
46961         * m4/extensions.m4: New file.
46962         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
46963         Require gl_USE_SYSTEM_EXTENSIONS.
46964         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
46965         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
46966
46967 2003-08-08  Paul Eggert  <eggert@twinsun.com>
46968
46969         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
46970         * modules/extensions, modules/gnu-source: New files.
46971         * modules/timespec, modules/unlocked-io: Depend on extensions.
46972
46973 2003-08-07  Paul Eggert  <eggert@twinsun.com>
46974
46975         * modules/restrict: New file.
46976         * MODULES.html.sh (func_all_modules): Add restrict.
46977         * modules/regex: Depend on restrict.
46978
46979 2003-08-07  Paul Eggert  <eggert@twinsun.com>
46980
46981         * m4/restrict.m4: New file.
46982         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
46983
46984 2003-08-07  Bruno Haible  <bruno@clisp.org>
46985
46986         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
46987         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
46988
46989 2003-08-07  Bruno Haible  <bruno@clisp.org>
46990
46991         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
46992         makes the module 'getndelim2' compatible with the module 'getline'.
46993
46994 2003-08-05  Paul Eggert  <eggert@twinsun.com>
46995
46996         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
46997         byte with "\201" to avoid glitches when editing that source file
46998         with multi-gnome-terminal.
46999
47000 2003-08-05  Paul Eggert  <eggert@twinsun.com>
47001
47002         * lib/bumpalloc.h: Remove.
47003
47004 2003-08-05  Paul Eggert  <eggert@twinsun.com>
47005
47006         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
47007         * modules/bumpalloc: Remove.
47008
47009 2003-08-04  Paul Eggert  <eggert@twinsun.com>
47010
47011         * lib/getloadavg.c: Change copyright notice and spacing to conform to
47012         GNU coding style.
47013
47014         Merge from coreutils.
47015         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
47016         1. From glibc.
47017         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
47018         from Karl Berry, implemented by Jim Meyering.
47019         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
47020         from Dmitry V. Levin.
47021         Remove anachronistic cast of xrealloc.
47022         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
47023         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
47024         type. Otherwise, it wouldn't compile with at least /bin/cc on
47025         ymp-cray-unicos9.0.2.X.
47026         Combine two mostly-identical uses of alloca into one.
47027         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
47028
47029 2003-08-04  Dave Love  <d.love@dl.ac.uk>
47030
47031         [From Emacs.]
47032
47033         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
47034         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
47035         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
47036         obsolete NLIST_NAME_UNION.
47037         [__GNU__]: Undef BSD and FSCALE.
47038         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
47039
47040 2003-08-03  Paul Eggert  <eggert@twinsun.com>
47041
47042         * lib/stdbool_.h (_Bool): Make it signed char, instead of
47043         an enum type, so that it's guaranteed to promote to int.  See:
47044         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
47045
47046 2003-08-03  Karl Berry  <karl@gnu.org>
47047
47048         * config/depcomp: update from automake.
47049
47050 2003-07-31  Paul Eggert  <eggert@twinsun.com>
47051
47052         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
47053         (strerror): Don't assume that a printable int fits in 14 bytes.
47054
47055 2003-07-31  Bruno Haible  <bruno@clisp.org>
47056
47057         * modules/getpass-gnu: New file.
47058         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
47059
47060 2003-07-31  Bruno Haible  <bruno@clisp.org>
47061
47062         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
47063
47064 2003-07-24  Karl Berry  <karl@gnu.org>
47065
47066         * config/missing: update from automake.
47067
47068 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
47069             Bruno Haible  <bruno@clisp.org>
47070
47071         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
47072         * lib/getline.c (getline, getdelim): Likewise.
47073         Remove _GNU_SOURCE define; now it's defined in config.h through
47074         m4/getline.m4.
47075
47076 2003-07-23  Karl Berry  <karl@gnu.org>
47077
47078         * config/config.sub: update from prep.
47079
47080 2003-07-22  Paul Eggert  <eggert@twinsun.com>
47081
47082         * modules/xalloc (Depends-on): Add exitfail.
47083         * modules/xmemcoll: Likewise.
47084
47085 2003-07-22  Paul Eggert  <eggert@twinsun.com>
47086
47087         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
47088         over-parenthesization in macros.
47089
47090         Sync with coreutils.
47091
47092         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
47093         required by C99.
47094
47095         Use `exit_failure' for xalloc and xmemcoll instead of their own
47096         private exit-failure variables.
47097         * lib/xalloc.h (xalloc_exit_failure): Remove.
47098         * lib/xmalloc.c: Likewise.  Include exitfail.h.
47099         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
47100         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
47101         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
47102         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
47103
47104 2003-07-20  Jim Meyering  <jim@meyering.net>
47105
47106         * modules/closeout (Depends-on): Add exitfail.
47107         Suggestion from Bruno Haible.
47108
47109 2003-07-19  Karl Berry  <karl@gnu.org>
47110
47111         * config/config.sub: update from prep.
47112
47113 2003-07-18  Paul Eggert  <eggert@twinsun.com>
47114
47115         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
47116         Remove.
47117         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
47118         to test that it can stand by itself.  Include "exitfail.h".
47119         Clients should set exit_failure instead.
47120         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
47121
47122 2003-07-18  Bruno Haible  <bruno@clisp.org>
47123
47124         * modules/getndelim2: New file.
47125         * modules/getline: Share files with module getndelim2.
47126         * modules/getnline: Depend on getndelim2 instead of sharing files with
47127         it. Add getnline.c to lib_SOURCES.
47128         * MODULES.html.sh (func_all_modules): Add getndelim2.
47129
47130 2003-07-18  Bruno Haible  <bruno@clisp.org>
47131
47132         * m4/getndelim2.m4: New file.
47133         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
47134         invoke gl_PREREQ_GETNDELIM2.
47135         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
47136         gl_PREREQ_GETNDELIM2.
47137         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
47138         gl_GETNDELIM2.
47139
47140 2003-07-18  Bruno Haible  <bruno@clisp.org>
47141
47142         * lib/getndelim2.h: New file.
47143         * lib/getndelim2.c: Make into a module of its own. Include config.h,
47144         getndelim2.h.
47145         (getndelim2): Make non-static. Change return type to ssize_t.
47146         * lib/getline.h: Change argument names.
47147         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
47148         * lib/getnline.c: Include getndelim2.h.
47149
47150 2003-07-18  Andreas Schwab  <schwab@suse.de>
47151
47152         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
47153
47154 2003-07-17  Karl Berry  <karl@gnu.org>
47155
47156         * config/config.sub: update from prep.
47157
47158 2003-07-17  Bruno Haible  <bruno@clisp.org>
47159
47160         * modules/getnline: New file.
47161         * modules/getline: Add lib/getndelim2.c to source file list.
47162         * MODULES.html.sh (func_all_modules): Add getnline.
47163
47164 2003-07-17  Bruno Haible  <bruno@clisp.org>
47165
47166         * m4/getnline.m4: New file.
47167
47168 2003-07-17  Bruno Haible  <bruno@clisp.org>
47169
47170         * m4/Makefile.am.in: Remove file.
47171         * m4/Makefile.am: Remove file.
47172         * m4/Makefile.in: Remove file.
47173
47174 2003-07-17  Bruno Haible  <bruno@clisp.org>
47175
47176         * lib/getnline.h: New file.
47177         * lib/getnline.c: New file.
47178         * lib/getndelim2.c: New file, extracted from getline.c.
47179         (getndelim2): Renamed from getdelim2, with added nmax argument.
47180         * lib/getline.c: Include getndelim2.c.
47181         (getdelim2): Moved out to getndelim2.c.
47182         (getline, getdelim): Update.
47183
47184 2003-07-17  Bruno Haible  <bruno@clisp.org>
47185
47186         * lib/Makefile.am: Remove file.
47187         * lib/Makefile.in: Remove file.
47188
47189 2003-07-17  Bruno Haible  <bruno@clisp.org>
47190
47191         * configure.in: Remove file.
47192         * Makefile.in: Remove file.
47193
47194 2003-07-17  Bruno Haible  <bruno@clisp.org>
47195
47196         * MODULES.html.sh: Put the </BODY> right before </HTML>.
47197
47198 2003-07-16  Karl Berry  <karl@gnu.org>
47199
47200         * config/srclist-update: was running fixlicense twice, which caused
47201                 texinfo.tex to be nullified for some reason.  Simplify,
47202                 $gplsrc is no longer needed as far as I can see?
47203
47204 2003-07-16  Jim Meyering  <jim@meyering.net>
47205
47206         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
47207
47208 2003-07-15  Paul Eggert  <eggert@twinsun.com>
47209
47210         * config/srclist.txt: Get the following files from gettext-runtime/intl
47211         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
47212         ref-del.sin.  From Bruno Haible.
47213         * config/srclist-update (fixfile): Change grep pattern again, since the
47214         previous fix didn't work (there was another trailing $).  Use
47215         '[$]' to escape the $s.
47216
47217 2003-07-15  Karl Berry  <karl@gnu.org>
47218
47219         * lib/vasnprintf.c: update from gettext.
47220
47221 2003-07-15  Karl Berry  <karl@gnu.org>
47222
47223         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
47224         gets expanded when surrounded by '$'.
47225
47226 2003-07-15  Jim Meyering  <jim@meyering.net>
47227
47228         * modules/save-cwd: Don't depend on error.  From Derek Price.
47229
47230 2003-07-15  Jim Meyering  <jim@meyering.net>
47231
47232         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
47233
47234 2003-07-14  Simon Josefsson  <jas@extundo.com>
47235
47236         * modules/mempcpy: New file.
47237         * MODULES.html.sh (func_all_modules): Add mempcpy.
47238
47239 2003-07-14  Simon Josefsson  <jas@extundo.com>
47240
47241         * m4/mempcpy.m4: New file.
47242
47243 2003-07-14  Simon Josefsson  <jas@extundo.com>
47244
47245         * lib/mempcpy.h: New file.
47246         * lib/mempcpy.c: New file.
47247
47248 2003-07-14  Paul Eggert  <eggert@twinsun.com>
47249
47250         * modules/getdate, modules/posixtm: Depend on mktime.
47251
47252 2003-07-14  Paul Eggert  <eggert@twinsun.com>
47253
47254         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
47255         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
47256         unicodeio.c, unicodeio.h, unlocked-io.h:
47257         Switch from LGPL to GPL.
47258
47259 2003-07-14  Paul Eggert  <eggert@twinsun.com>
47260
47261         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
47262         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
47263         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
47264         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
47265         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
47266         updated automatically by ../config/srclist-update.  This changes
47267         their license from LPGL to GPL.
47268
47269 2003-07-14  Paul Eggert  <eggert@twinsun.com>
47270
47271         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
47272         assumed to refer to the root of the most recent stable gettext version.
47273         * config/srclistvars.sh: Add defaults for eggert.
47274         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
47275         Match "This program" as well as "The program".  This is needed
47276         for gettext.
47277
47278 2003-07-14  Jim Meyering  <jim@meyering.net>
47279
47280         Don't emit diagnostics.  Let callers do that.
47281         * lib/save-cwd.c: Don't include "error.h".
47282         (save_cwd): Don't call error.  Ensure that errno is valid
47283         when returning nonzero.
47284
47285         * lib/save-cwd.h (restore_cwd): Update prototype.
47286         * lib/save-cwd.c (restore_cwd): Remove two parameters.
47287         Simplify.  Don't call error upon failure.  Let callers do that.
47288         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
47289         when auditing is enabled.  But don't bother updating the #if.
47290
47291 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
47292
47293         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
47294         it breaks C++ compilation.
47295         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
47296
47297 2003-07-10  Simon Josefsson  <jas@extundo.com>
47298
47299         * modules/strchrnul (Makefile.am): Add strchrnul.h.
47300
47301 2003-07-10  Jim Meyering  <jim@meyering.net>
47302
47303         * m4/clock_time.m4: Remove trailing blank.
47304         * m4/intmax_t.m4: Likewise.
47305
47306 2003-07-10  Jim Meyering  <jim@meyering.net>
47307
47308         * lib/vasnprintf.c: Remove trailing blanks.
47309         Make cpp indentation consistent.
47310
47311 2003-07-09  Paul Eggert  <eggert@twinsun.com>
47312
47313         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
47314         posixver.c, strftime.c, strnlen.c, strverscmp.c:
47315         Switch from LGPL to GPL.
47316
47317 2003-07-09  Paul Eggert  <eggert@twinsun.com>
47318
47319         * config/srclist.txt: Sort sublists.  Add
47320         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
47321         that differ from gnulib for one reason or another; we'd like this list
47322         to be smaller but for now let's document what we have.
47323
47324 2003-07-08  Paul Eggert  <eggert@twinsun.com>
47325
47326         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
47327         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
47328         and sweeter "eval x=$x".
47329         * config/srclist.txt: Get lib/argp* from glibc.
47330
47331 2003-07-07  Paul Eggert  <eggert@twinsun.com>
47332
47333         * lib/mktime.c: Fix some boundary cases and remove need for floating
47334         point.
47335
47336         Issue a compile-time diagnostic if time_t is floating point, or if
47337         two's complement arithmetic is not in effect, or if arithmetic
47338         right shift does not propagate the sign.  These assumptions were
47339         all in the original code but they weren't checked.
47340
47341         (TIME_T_MIDPOINT, verify): New macros.
47342         (__isleap): Remove; it has integer overflow problems.
47343         (leapyear): New function, without those problems.
47344         (ydhms_tm_diff): Remove; splitting into two parts.
47345         (ydhms_diff): New function, containing the arithmetic part of
47346         the old ydhms_tm_diff function.  Issue a compile-time
47347         diagnostic if we are not using C99 integer division.
47348         Avoid casts when possible.
47349         (guess_time_tm): New function, containing the checking part of
47350         the old ydhms_tm_diff function.  Return the new value, rather than
47351         the difference between it and the old.  Accept a new argument T
47352         so that *T specifies the old value.  Check for overflow in the result.
47353
47354         (__mktime_internal): Use a time_t offset, not a long int offset.
47355         This undoes the 2003-06-04 change, which is no longer needed now
47356         that we have better overflow checking.
47357         (localtime_offset): Likewise.
47358
47359         (__mktime_internal): Avoid harmful overflow on hosts where time_t
47360         and long are 64-bit but int is only 32-bit.
47361         (ydhms_diff): Use long int to store year1 and yday1.
47362         Issue a compile-time diagnostic if long int is not wide enough.
47363
47364         (__mktime_internal): Use long int to store adjusted year and yday.
47365         Use plain C rather than preprocessor commands, if that doesn't
47366         affect efficiency.
47367         Check for overflow (and try to repair) after each probe
47368         rather than checking only at the very end.  This avoids some bugs
47369         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
47370         does not equal GMT offset at maximum time).
47371         Use integer to check for overflow rather than floating point; this
47372         is more portable to non-IEEE hosts, and is a tad faster.
47373         When we detect that we are oscillating between two values,
47374         don't check whether tm_isdst has the requested value, since
47375         we already know the answer.  When tm_isdst has the wrong value,
47376         use a different heuristic to find the right one, based on the
47377         extreme values actually observed in practice in tz2003a,
47378         rather than the (overly optimistic) "previous 3 calendar quarters".
47379
47380         (not_equal_tm, print_tm, check_result): Use "const T" rather than
47381         "T const" to accommodate glibc style.
47382         (check_result): Use less-confusing report format.  "long" -> "long int.
47383         (main): Likewise.
47384         Don't loop if the iteration overflows time_t.
47385         Allow a negative step in the iteration.
47386
47387 2003-07-06  Karl Berry  <karl@gnu.org>
47388
47389         * config/depcomp: update from automake.
47390         * config/config.sub: update from prep.
47391
47392 2003-07-03  Karl Berry  <karl@gnu.org>
47393
47394         * config/config.guess: update from prep.
47395
47396 2003-07-01  Paul Eggert  <eggert@twinsun.com>
47397
47398         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
47399         xreadlink.c now includes it unconditionally.
47400
47401 2003-07-01  Paul Eggert  <eggert@twinsun.com>
47402
47403         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
47404         having it depend on HAVE_SYS_TYPES_H.
47405
47406 2003-07-01  Bruno Haible  <bruno@clisp.org>
47407
47408         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
47409         <sys/types.h> should be sufficient.
47410         Reported by Paul Eggert.
47411
47412 2003-06-26  Karl Berry  <karl@gnu.org>
47413
47414         * config/depcomp: update from automake.
47415
47416 2003-06-26  Bruno Haible  <bruno@clisp.org>
47417
47418         * modules/human: Depend on module stdbool.
47419
47420 2003-06-25  Bruno Haible  <bruno@clisp.org>
47421
47422         * modules/readlink: New file.
47423         * modules/xreadlink: Depend on it.
47424         * MODULES.html.sh (func_all_modules): Add readlink.
47425
47426 2003-06-25  Bruno Haible  <bruno@clisp.org>
47427
47428         * m4/readlink.m4: New file.
47429
47430 2003-06-25  Bruno Haible  <bruno@clisp.org>
47431
47432         * lib/readlink.c: New file.
47433
47434 2003-06-22  Karl Berry  <karl@gnu.org>
47435
47436         * config/srclist.txt: update mkinstalldirs from automake.
47437         * config/mkinstalldirs: update.
47438
47439 2003-06-22  Bruno Haible  <bruno@clisp.org>
47440
47441         Portability to mingw32.
47442         * m4/ssize_t.m4: New file, from GNU gettext.
47443         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
47444         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
47445
47446 2003-06-22  Bruno Haible  <bruno@clisp.org>
47447
47448         * modules/safe-read: Add m4/ssize_t.m4.
47449         * modules/xreadlink: Add m4/ssize_t.m4.
47450
47451 2003-06-20  Bruno Haible  <bruno@clisp.org>
47452
47453         Assume C89, so PARAMS isn't needed.
47454         * lib/unicodeio.h (PARAMS): Remove.
47455         * lib/unicodeio.c: Don't use PARAMS.
47456
47457 2003-06-18  Karl Berry  <karl@gnu.org>
47458
47459         * config/config.{guess,sub}: update from prep.
47460
47461 2003-06-18  Jim Meyering  <jim@meyering.net>
47462
47463         Merge changes from coreutils.
47464         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
47465         Remove explicit declarations of xmalloc and realloc.
47466         Include xalloc.h.
47467         (read_utmp): Remove anachronistic cast of xmalloc.
47468
47469 2003-06-17  Paul Eggert  <eggert@twinsun.com>
47470
47471         Assume C89, so PARAMS isn't needed.
47472         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
47473         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
47474         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
47475         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
47476         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
47477         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
47478         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
47479         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
47480         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
47481         lib/xstrtod.h, lib/xstrtol.h: Likewise.
47482         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
47483         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
47484         no longer needed. Anyway, config.h should always be included before any
47485         other file.
47486
47487 2003-06-11  Simon Josefsson  <jas@extundo.com>
47488
47489         * modules/sysexits: New file.
47490         * MODULES.html.sh (func_all_modules): Add sysexits.
47491
47492 2003-06-11  Simon Josefsson  <jas@extundo.com>
47493
47494         * lib/sysexit_.h: New file.
47495
47496 2003-06-11  Derek Price  <derek@ximbiot.com>
47497
47498         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
47499         necessary.
47500
47501 2003-06-11  Bruno Haible  <bruno@clisp.org>
47502
47503         * m4/sysexits.m4: New file.
47504
47505 2003-06-10  Simon Josefsson  <jas@extundo.com>
47506
47507         * lib/argp.h: New file, from glibc.
47508         * lib/argp-ba.c: New file, from glibc.
47509         * lib/argp-eexst.c: New file, from glibc.
47510         * lib/argp-fmtstream.c: New file, from glibc.
47511         * lib/argp-fmtstream.h: New file, from glibc.
47512         * lib/argp-fs-xinl.c: New file, from glibc.
47513         * lib/argp-help.c: New file, from glibc.
47514         * lib/argp-namefrob.h: New file, from glibc.
47515         * lib/argp-parse.c: New file, from glibc.
47516         * lib/argp-pv.c: New file, from glibc.
47517         * lib/argp-pvh.c: New file, from glibc.
47518         * lib/argp-xinl.c: New file, from glibc.
47519
47520 2003-06-10  Simon Josefsson  <jas@extundo.com>
47521
47522         * modules/strchrnul: New file.
47523
47524 2003-06-10  Simon Josefsson  <jas@extundo.com>
47525
47526         * modules/argp: New file.
47527
47528 2003-06-10  Simon Josefsson  <jas@extundo.com>
47529
47530         * m4/strchrnul.m4: New file.
47531
47532 2003-06-10  Simon Josefsson  <jas@extundo.com>
47533
47534         * lib/strchrnul.h: New file.
47535         * lib/strchrnul.c: New file.
47536
47537 2003-06-10  Bruno Haible  <bruno@clisp.org>
47538
47539         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
47540
47541 2003-06-07  Karl Berry  <karl@gnu.org>
47542
47543         * config/config.{guess,sub}: update from prep.
47544
47545 2003-06-07  Jim Meyering  <jim@meyering.net>
47546
47547         * modules/strtod: Use $(...) notation, not @...@ for
47548         AC_REPLACE'd variables.
47549         * modules/localcharset: Likewise.
47550
47551 2003-06-07  Jim Meyering  <jim@meyering.net>
47552
47553         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
47554         in place of my name in the copyright comment.
47555         Remove definition and uses of __P.
47556
47557         From coreutils.
47558         * lib/stat.c: Don't declare xmalloc explicitly.
47559         Instead, include "xalloc.h".
47560         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
47561         xrealloc, and xcalloc return values.
47562         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
47563         Improve comment.
47564         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
47565
47566 2003-06-07  Bruno Haible  <bruno@clisp.org>
47567
47568         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
47569         avoid AC_CONFIG_LINKS.
47570         * modules/fnmatch (Makefile.am): Use explicit creation rule for
47571         fnmatch.h, to avoid AC_CONFIG_LINKS.
47572         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
47573
47574 2003-06-07  Bruno Haible  <bruno@clisp.org>
47575
47576         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
47577         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
47578         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
47579         directory.
47580         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
47581         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
47582         directory.
47583
47584 2003-06-06  Jim Meyering  <jim@meyering.net>
47585
47586         Merge from coreutils.
47587         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
47588         Consolidate declarations and initializations of *_base* locals.
47589
47590         Merge from coreutils.
47591         This avoids a core dump on systems without GNU putenv,
47592         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
47593         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
47594         (unsetenv): New static function, from GNU libc.
47595         (rpl_putenv): Use it.
47596
47597         * lib/modechange.c: Remove trailing blanks.
47598
47599         Merge from coreutils.
47600         * lib/fsusage.c: Remove declaration of statfs.
47601         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
47602
47603         * lib/posixtm.c: Include <stdbool.h> unconditionally.
47604
47605 2003-06-06  Jim Meyering  <jim@meyering.net>
47606
47607         * lib/stdbool_.h: Renamed from stdbool.h.in.
47608
47609 2003-06-06  Jim Meyering  <jim@meyering.net>
47610             Bruno Haible  <bruno@clisp.org>
47611
47612         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
47613         Adjust Makefile.am snippet not to redirect directly to target.
47614         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
47615
47616 2003-06-05  Paul Eggert  <eggert@twinsun.com>
47617
47618         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
47619         mismatch, look in future quarters as well as past.  This fixes a
47620         bug when processing fall-backwards gaps immediately after a long
47621         period of daylight-saving time.
47622
47623         * lib/mktime.c: Assume freestanding C89 or better.
47624         (HAVE_LIMITS_H): Remove.  Assume it's 1.
47625         (__P): Remove; not used.
47626         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
47627         (mktime, not_equal_tm, print_tm, check_result,
47628         main): Use prototypes.  Use const * where appropriate.
47629         (main): Fix typo in testing code that uncovered by above changes.
47630         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
47631
47632 2003-06-04  Paul Eggert  <eggert@twinsun.com>
47633
47634         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
47635         locale.h, localeconv.  This merges changes from coreutils.
47636
47637         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
47638         It can be removed after the next Autoconf is released.
47639         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
47640         needed.
47641
47642 2003-06-04  Paul Eggert  <eggert@twinsun.com>
47643
47644         * lib/mktime.c: Fix Debian bug 177940
47645         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
47646         (localtime_offset): Now long int, not time_t, because we want it
47647         to be guaranteed to be signed.  All uses changed.
47648         (__mktime_internal): If overflow would occur when adding offset,
47649         don't add it.
47650
47651         Merge 'human' changes from coreutils.  Rewrite to support
47652         locale-specific notations like thousands separators.
47653         * lib/human.c: Simplify authorship notice.
47654         Include human.h immediately after config.h.
47655         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
47656         <limits.h>: Do not include, since human.h does.
47657         (SIZE_MAX, UINTMAX_MAX): New macros.
47658         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
47659         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
47660         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
47661         (power_letter): Renamed from suffixes.
47662         (generate_suffix_backwards): Remove.
47663         (adjust_value): Now takes int style (because of human.h changes)
47664         and long double value (for greater precision on some platforms).
47665         (group_number): New function.
47666         (human_readable): Use it.  Use integer options, not enum.
47667         Put the options before the sizes in the arg list.
47668         Support all the new options.
47669         The old human_readable function has been removed;
47670         use inttostr.h instead.
47671         (human_readable, default_block_size, humblock):
47672         Use uintmax_t, not int, for block sizes.
47673         (human_readable_inexact, block_size_types): Remove.
47674         (block_size_opts): New constant.
47675         (human_options): Renamed from human_block_size, with new signature
47676         that allows block sizes up to UINTMAX_MAX.  All callers changed.
47677         * lib/human.h: Add copyright and authorship notice.
47678         Include <limits.h> and <stdbool.h> unconditionally.
47679         (PARAMS): Remove.  All uses removed.
47680         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
47681         (enum human_inexact_style): Remove tag; now a nameless enum.
47682         (human_floor, human_ceiling, human_round_to_even): Now have
47683         values 2, 0, 1 rather than -1, 1, 0.
47684         (human_group_digits, human_suppress_point_zero, human_autoscale,
47685         human_base_1024, human_SI, human_B): New constants.
47686         (human_readable_inexact, human_block_size): Remove.
47687         (human_readable): Size args are now uintmax_t, not int.
47688         (human_options): New decl.
47689
47690         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
47691         unnecessary now that we assume C89 or better.  This change
47692         imported from coreutils.
47693
47694         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
47695         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
47696         in the 2003-05-30 sync from glibc.
47697
47698         .h files should stand alone, but we shouldn't include <sys/types.h>
47699         if we can get away with just <stddef.h>.
47700
47701         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
47702         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
47703         rather than <sys/types.h>, as we merely need size_t.
47704         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
47705         to get size_t.
47706         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
47707         Include <stdio.h>, to get FILE.
47708         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
47709         memcasecmp.h has included <stddef.h> and all we need is size_t.
47710         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
47711         our interface, instead of including <sys/types.h>
47712
47713 2003-06-04  Paul Eggert  <eggert@twinsun.com>
47714
47715         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
47716         now, as glibc mktime is buggy on non-glibc systems.
47717
47718 2003-06-03  Karl Berry  <karl@gnu.org>
47719
47720         * config/config.sub: update from prep.
47721
47722 2003-06-02  Paul Eggert  <eggert@twinsun.com>
47723
47724         [from coreutils]
47725         Fix some minor time-related bugs with POSIX time arguments.
47726         Some valid time stamps were being rejected (notably -1, and
47727         time stamps before 1900 on 64-bit hosts).  And some invalid
47728         time stamps were being accepted, e.g. September 31.
47729
47730         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
47731         that we can return (time_t) -1 successfully.
47732         * lib/posixtm.c: Likewise.
47733         [HAVE_STDBOOL_H]: Include <stdbool.h>.
47734         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
47735         (t): Remove static var.
47736         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
47737         of static var.  All uses changed.
47738         (year): Do not reject years before 1900; they can occur with
47739         64-bit time_t.
47740         (posix_time_parse): Do not check for out-of-range components;
47741         that is now the caller's responsibility, since our checks were
47742         only approximations.
47743         (posixtime): Use mktime to check for out-of-range components,
47744         since it knows them exactly.
47745         If mktime returns (time_t) -1, check whether an error actually occurred
47746         by invoking localtime on -1.
47747         (main) [TEST_POSIXTIME]: Check for input data errors, and report
47748         posixtime failures better.
47749         Improve the test data (in comments only).
47750
47751 2003-06-02  Karl Berry  <karl@gnu.org>
47752
47753         * config/mkinstalldirs (version): new variable.
47754         (--version): new option.
47755         (usage): improve message.
47756
47757 2003-05-30  Karl Berry  <karl@gnu.org>
47758
47759         * lib/mktime.c: update from libc.
47760
47761 2003-05-30  Bruno Haible  <bruno@clisp.org>
47762
47763         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
47764         * config/config.rpath: Upgrade to gettext-0.12.1.
47765
47766 2003-05-30  Bruno Haible  <bruno@clisp.org>
47767
47768         * m4/gettext.m4: Upgrade to gettext-0.12.1.
47769         * m4/nls.m4: New file, from gettext-0.12.1.
47770         * m4/po.m4: New file, from gettext-0.12.1.
47771         * m4/progtest.m4: Upgrade to gettext-0.12.1.
47772
47773 2003-05-30  Bruno Haible  <bruno@clisp.org>
47774
47775         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
47776         * lib/localcharset.h: Likewise.
47777         * lib/localcharset.c: Likewise.
47778
47779 2003-05-29  Karl Berry  <karl@gnu.org>
47780
47781         * config/config.rpath: update from gettext.
47782
47783 2003-05-28  Paul Eggert  <eggert@twinsun.com>
47784
47785         Assume the headers required for C89 freestanding compilers.
47786         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
47787         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
47788         * m4/human.m4 (gl_HUMAN): Likewise.
47789         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
47790         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
47791         * m4/userspec.m4 (gl_USERSPEC): Likewise.
47792         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
47793         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
47794         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
47795
47796 2003-05-28  Paul Eggert  <eggert@twinsun.com>
47797
47798         Assume the headers required for C89 freestanding compilers.
47799         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
47800         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
47801         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
47802         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
47803         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
47804         define, since <limits.h> is guaranteed to do that.
47805         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
47806         * lib/exclude.c: Include <stdbool.h> unconditionally.
47807         * lib/tempname.c: Include <stddef.h> unconditionally.
47808         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
47809         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
47810         <stddef.h> does that.
47811         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
47812         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
47813         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
47814         needed.
47815         * lib/xstrtol.c: Likewise.
47816         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
47817         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
47818
47819         * lib/addext.c (addext): Use assignment rather than cast, to avoid
47820         warnings on some platforms.
47821
47822         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
47823         arbitrarily.
47824
47825 2003-05-26  Jim Meyering  <jim@meyering.net>
47826
47827         Merge in a change from coreutils:
47828         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
47829         that is guaranteed to be `no'.  Use `no_such_member' to indicate
47830         that condition, rather than `-1' which is slightly misleading.
47831         Change the name of the cache variable to have the gl_ prefix.
47832         Prompted by a patch from Richard Dawe for DJGPP.
47833
47834 2003-05-24  Karl Berry  <karl@gnu.org>
47835
47836         * config/config.guess: update from prep.
47837
47838 2003-05-22  Karl Berry  <karl@gnu.org>
47839
47840         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
47841
47842 2003-05-20  Karl Berry  <karl@gnu.org>
47843
47844         * config/config.guess: update from prep.
47845
47846 2003-05-18  Karl Berry  <karl@gnu.org>
47847
47848         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
47849         might actually be set by the user.
47850
47851         * config/depcomp, install-sh, mdate-sh: update from automake.
47852
47853 2003-05-17  Bruno Haible  <bruno@clisp.org>
47854
47855         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
47856         invalid expansion for AC_EGREP_CPP.
47857         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
47858         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
47859         Suggested by Akim Demaille <akim@epita.fr> in
47860         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
47861
47862 2003-05-12  Jim Meyering  <jim@meyering.net>
47863
47864         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
47865         the space-padded-by-default conversion specifiers, %e, %k, %l.
47866
47867 2003-05-12  Bruno Haible  <bruno@clisp.org>
47868
47869         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
47870         the string is longer than 4 KB.
47871
47872 2003-05-11  Karl Berry  <karl@gnu.org>
47873
47874         * config/config.{guess,sub}: update from prep.
47875
47876 2003-05-09  Bruno Haible  <bruno@clisp.org>
47877
47878         * modules/error: Add m4/strerror_r.m4 to file list.
47879
47880 2003-05-03  Bruno Haible  <bruno@clisp.org>
47881
47882         Upgrade to Unicode-4.0.
47883         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
47884         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
47885         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
47886         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
47887         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
47888         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
47889         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
47890         Change width of U+E0100..U+E01EF from 1 to 0.
47891
47892 2003-04-25  Jim Meyering  <jim@meyering.net>
47893
47894         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
47895         of type size_t, not int.
47896
47897 2003-04-25  Bruno Haible  <bruno@clisp.org>
47898
47899         * lib/copy-file.c: Include <stddef.h>, for size_t.
47900
47901 2003-04-21  Paul Eggert  <eggert@twinsun.com>
47902
47903         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
47904         code which expansion is under static control.  Patch imported from
47905         Akim Demaille's patch to Bison; see
47906         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
47907
47908 2003-04-14  Bruno Haible  <bruno@clisp.org>
47909
47910         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
47911
47912 2003-04-11  Jim Meyering  <jim@meyering.net>
47913
47914         Merge changes from Coreutils.
47915
47916         2003-03-22  Jim Meyering  <jim@meyering.net>
47917
47918         * lib/strftime.c (widen): Cast alloca return value to proper type.
47919
47920         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
47921
47922         From GNU libc.
47923         * lib/strftime.c (my_strftime): Handle very large width
47924         specifications for numeric values correctly.  Improve checks for
47925         overflow.
47926
47927         2003-01-19  Jim Meyering  <jim@meyering.net>
47928
47929         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
47930         definitions.
47931         (nl_get_alt_digit) [! defined my_strftime]: Define.
47932         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
47933         _nl_get_alt_digit and _nl_get_walt_digit.
47934
47935         * lib/strftime.c (my_strftime): Merge in locale-related changes from
47936         libc. These changes have no effect outside of _LIBC.
47937
47938 2003-04-10  Bruno Haible  <bruno@clisp.org>
47939
47940         * modules/findprog: New file.
47941         * MODULES.html.sh (func_all_modules): Add it.
47942
47943 2003-04-10  Bruno Haible  <bruno@clisp.org>
47944
47945         * m4/findprog.m4: New file.
47946         * m4/eaccess.m4: New file.
47947
47948 2003-04-10  Bruno Haible  <bruno@clisp.org>
47949
47950         * lib/findprog.h: New file, from GNU gettext.
47951         * lib/findprog.c: New file, from GNU gettext.
47952
47953 2003-04-05  Jim Meyering  <jim@meyering.net>
47954
47955         Merge changes from Coreutils.
47956
47957         * lib/exclude.h (PARAMS): Remove definition and uses.
47958         * lib/exclude.c: Remove uses of `PARAMS'.
47959
47960         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
47961         Add test-cases for DOS filenames. Declare program_name.
47962         (main): Set up program_name.  Patch by Rich Dawe.
47963
47964         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
47965         error from mntctl.
47966         Use mntctl's return value to drive the entry-processing loop, since
47967         we can't rely on the value of the vmt_length member in the last
47968         entry.  On some systems doing so could result in exhausting
47969         virtual memory.  Based in part on a patch from Mike Jetzer.
47970
47971 2003-04-04  Bruno Haible  <bruno@clisp.org>
47972
47973         * modules/linebreak: New file.
47974         * MODULES.html.sh (func_all_modules): Add it.
47975
47976 2003-04-04  Bruno Haible  <bruno@clisp.org>
47977
47978         * m4/linebreak.m4: New file.
47979
47980 2003-04-04  Bruno Haible  <bruno@clisp.org>
47981
47982         * lib/linebreak.h: New file, from GNU gettext.
47983         * lib/linebreak.c: New file, from GNU gettext with slight
47984         modifications.
47985         * lib/lbrkprop.h: New file, from GNU gettext.
47986
47987 2003-04-03  Bruno Haible  <bruno@clisp.org>
47988
47989         * modules/utf8-ucs4: New file.
47990         * modules/utf16-ucs4: New file.
47991         * modules/ucs4-utf8: New file.
47992         * modules/ucs4-utf16: New file.
47993         * MODULES.html.sh (func_all_modules): Add them.
47994
47995 2003-04-03  Bruno Haible  <bruno@clisp.org>
47996
47997         * m4/utf-ucs4.m4: New file.
47998         * m4/ucs4-utf.m4: New file.
47999
48000 2003-04-03  Bruno Haible  <bruno@clisp.org>
48001
48002         * lib/utf8-ucs4.h: New file, from GNU gettext.
48003         * lib/utf16-ucs4.h: New file, from GNU gettext.
48004         * lib/ucs4-utf8.h: New file, from GNU gettext.
48005         * lib/ucs4-utf16.h: New file, from GNU gettext.
48006
48007 2003-04-02  Bruno Haible  <bruno@clisp.org>
48008
48009         * modules/binary-io: New file.
48010         * MODULES.html.sh (func_all_modules): Add it.
48011
48012 2003-04-02  Bruno Haible  <bruno@clisp.org>
48013
48014         * lib/binary-io.h: New file, from GNU gettext.
48015
48016 2003-04-01  Bruno Haible  <bruno@clisp.org>
48017
48018         * modules/pathname: New file.
48019         * MODULES.html.sh (func_all_modules): Add it.
48020
48021 2003-04-01  Bruno Haible  <bruno@clisp.org>
48022
48023         * lib/pathname.h: New file, from GNU gettext.
48024         * lib/concatpath.c: New file, from GNU gettext.
48025
48026 2003-03-30  Bruno Haible  <bruno@clisp.org>
48027
48028         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
48029
48030 2003-03-30  Bruno Haible  <bruno@clisp.org>
48031
48032         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
48033         function chown() doesn't exist.
48034
48035 2003-03-28  Bruno Haible  <bruno@clisp.org>
48036
48037         * modules/copy-file: New file.
48038         * MODULES.html.sh (func_all_modules): Add it.
48039
48040 2003-03-28  Bruno Haible  <bruno@clisp.org>
48041
48042         * m4/copy-file.m4: New file.
48043
48044 2003-03-28  Bruno Haible  <bruno@clisp.org>
48045
48046         * lib/copy-file.h: New file, from GNU gettext.
48047         * lib/copy-file.c: New file, from GNU gettext.
48048
48049 2003-03-18  Jim Meyering  <jim@meyering.net>
48050
48051         * lib/quote.c (quote_n): Fix typo in comment.
48052
48053 2003-03-18  Bruno Haible  <bruno@clisp.org>
48054
48055         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
48056         checking.
48057         * m4/onceonly_2_57.m4: Likewise.
48058
48059 2003-03-17  Bruno Haible  <bruno@clisp.org>
48060
48061         * m4/onceonly.m4: Require autoconf 2.54 or newer.
48062         (m4_quote): Remove macro.
48063         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
48064
48065 2003-03-14  Jim Meyering  <jim@meyering.net>
48066
48067         Merge changes from Coreutils.
48068         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
48069         to be const, in order to avoid warnings.
48070         (obstack_room): Likewise.
48071         (obstack_empty_p): Likewise.
48072
48073 2003-03-14  Bruno Haible  <bruno@clisp.org>
48074
48075         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
48076         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
48077
48078 2003-03-13  Paul Eggert  <eggert@twinsun.com>
48079
48080         Merge changes from Bison.
48081         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
48082         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
48083         when compiling Bison 1.875's `bitset bset = obstack_alloc
48084         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
48085         * lib/hash.c: Include <stdbool.h> unconditionally.
48086
48087 2003-03-13  Paul Eggert  <eggert@twinsun.com>
48088
48089         * m4/onceonly.m4 (m4_quote): New macro.
48090         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
48091         Quote AC_FOREACH variable-expansions properly.
48092
48093 2003-03-13  Paul Eggert  <eggert@twinsun.com>
48094
48095         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
48096
48097 2003-03-09  Paul Eggert  <eggert@twinsun.com>
48098
48099         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
48100         Reported by Bruce Becker; see:
48101         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
48102
48103 2003-03-03  Paul Eggert  <eggert@twinsun.com>
48104             Bruno Haible  <bruno@clisp.org>
48105
48106         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
48107         Reported by John Hughes, see
48108         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
48109
48110 2003-02-20  Bruno Haible  <bruno@clisp.org>
48111
48112         * MODULES.html.sh (func_all_modules): Add poll.
48113
48114 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
48115
48116         * modules/poll: New file.
48117
48118 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
48119
48120         * lib/poll_.h: New file.
48121         * lib/poll.c: New file.
48122
48123 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
48124
48125         * m4/poll.m4: New file.
48126
48127 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
48128
48129         * modules/mathl: New file.
48130
48131 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
48132
48133         * lib/mathl.h: New file.
48134         * lib/acosl.c: New file.
48135         * lib/asinl.c: New file.
48136         * lib/atanl.c: New file.
48137         * lib/ceill.c: New file.
48138         * lib/cosl.c: New file.
48139         * lib/expl.c: New file.
48140         * lib/floorl.c: New file.
48141         * lib/frexpl.c: New file.
48142         * lib/ldexpl.c: New file.
48143         * lib/logl.c: New file.
48144         * lib/sincosl.c: New file.
48145         * lib/sinl.c: New file.
48146         * lib/sqrtl.c: New file.
48147         * lib/tanl.c: New file.
48148         * lib/trigl.c: New file.
48149         * lib/trigl.h: New file.
48150
48151 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
48152
48153         * m4/mathl.m4: New file.
48154
48155 2003-02-18  Bruno Haible  <bruno@clisp.org>
48156
48157         * MODULES.html.sh (func_all_modules): Add mathl.
48158
48159 2003-02-17  Bruno Haible  <bruno@clisp.org>
48160
48161         * modules/mkdtemp: New module.
48162         * MODULES.html.sh (func_all_modules): Add it.
48163
48164 2003-02-17  Bruno Haible  <bruno@clisp.org>
48165
48166         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
48167
48168 2003-02-17  Bruno Haible  <bruno@clisp.org>
48169
48170         * lib/mkdtemp.h: New file, from GNU gettext.
48171         * lib/mkdtemp.c: New file, from GNU gettext.
48172
48173 2003-02-02  Jim Meyering  <jim@meyering.net>
48174
48175         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
48176         e.g. glibc-2.2.93.
48177
48178 2003-01-31  Bruno Haible  <bruno@clisp.org>
48179
48180         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
48181         'rpl_rename'.
48182         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
48183         'rpl_strnlen'.
48184         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
48185         'rpl_strtod'.
48186         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
48187         'rpl_utime'.
48188
48189 2003-01-31  Bruno Haible  <bruno@clisp.org>
48190
48191         * lib/rename.c: #undef rename before defining rpl_rename.
48192         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
48193
48194 2003-01-30  Bruno Haible  <bruno@clisp.org>
48195
48196         * modules/vasnprintf, modules/vasprintf: New modules.
48197         * MODULES.html.sh (func_all_modules): Add them.
48198
48199 2003-01-30  Bruno Haible  <bruno@clisp.org>
48200
48201         * m4/signed.m4: New file, from GNU gettext.
48202         * m4/longdouble.m4: New file, from GNU gettext.
48203         * m4/wchar_t.m4: New file, from GNU gettext.
48204         * m4/wint_t.m4: New file, from GNU gettext.
48205         * m4/vasnprintf.m4: New file.
48206         * m4/vasprintf.m4: New file.
48207
48208 2003-01-30  Bruno Haible  <bruno@clisp.org>
48209
48210         * lib/printf-args.h: New file, from GNU gettext.
48211         * lib/printf-args.c: New file, from GNU gettext.
48212         * lib/printf-parse.h: New file, from GNU gettext.
48213         * lib/printf-parse.c: New file, from GNU gettext.
48214         * lib/vasnprintf.h: New file, from GNU gettext.
48215         * lib/vasnprintf.c: New file, from GNU gettext.
48216         * lib/asnprintf.c: New file, from GNU gettext.
48217         * lib/vasprintf.h: New file, from GNU gettext with modifications.
48218         * lib/vasprintf.c: New file, from GNU gettext.
48219         * lib/asprintf.c: New file, from GNU gettext.
48220
48221 2003-01-29  Bruno Haible  <bruno@clisp.org>
48222
48223         * modules/stpncpy: New module.
48224         * MODULES.html.sh (func_all_modules): Add it.
48225
48226 2003-01-29  Bruno Haible  <bruno@clisp.org>
48227
48228         * m4/stpncpy.m4: New file.
48229
48230 2003-01-29  Bruno Haible  <bruno@clisp.org>
48231
48232         * lib/stpncpy.h: New file, from GNU gettext with modifications.
48233         * lib/stpncpy.c: New file, from GNU gettext with modifications.
48234
48235 2003-01-28  Bruno Haible  <bruno@clisp.org>
48236
48237         * modules/c-ctype: New module.
48238         * MODULES.html.sh (func_all_modules): Add it.
48239
48240 2003-01-28  Bruno Haible  <bruno@clisp.org>
48241
48242         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
48243         Paul Eggert.
48244         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
48245         Paul Eggert.
48246
48247 2003-01-27  Bruno Haible  <bruno@clisp.org>
48248
48249         * modules/xsetenv: New module.
48250         * MODULES.html.sh (func_all_modules): Add it.
48251
48252 2003-01-27  Bruno Haible  <bruno@clisp.org>
48253
48254         * lib/xsetenv.h: New file, from GNU gettext.
48255         * lib/xsetenv.c: New file, from GNU gettext.
48256
48257 2003-01-23  Jim Meyering  <jim@meyering.net>
48258
48259         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
48260         from working on systems without dirfd (at least Irix and OSF1/Tru64).
48261
48262 2003-01-23  Bruno Haible  <bruno@clisp.org>
48263
48264         * modules/minmax: New module.
48265         * MODULES.html.sh (func_all_modules): Add it.
48266
48267 2003-01-23  Bruno Haible  <bruno@clisp.org>
48268
48269         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
48270         Eggert.
48271
48272 2003-01-22  Bruno Haible  <bruno@clisp.org>
48273
48274         * modules/exit: New module.
48275         * MODULES.html.sh (func_all_modules): Add it.
48276
48277 2003-01-22  Bruno Haible  <bruno@clisp.org>
48278
48279         * lib/exit.h: New file, from GNU gettext.
48280
48281 2003-01-19  Bruno Haible  <bruno@clisp.org>
48282
48283         * gnulib-tool: Recognize option --extract-maintainer.
48284         (func_get_maintainer): New function.
48285         * modules/*: Add Maintainer entry.
48286
48287 2003-01-16  Jim Meyering  <jim@meyering.net>
48288
48289         * m4/regex.m4: The `regex' struct is both input and output.
48290         Initialize it before each use.  Patch by Tim Waugh.
48291
48292 2003-01-16  Bruno Haible  <bruno@clisp.org>
48293
48294         * MODULES.html.sh: Add a table of contents. Add the module name as
48295         leftmost column. Add hyperlinks.
48296
48297 2003-01-15  Bruno Haible  <bruno@clisp.org>
48298
48299         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
48300
48301 2003-01-15  Bruno Haible  <bruno@clisp.org>
48302
48303         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
48304         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
48305         suffix.
48306
48307 2003-01-15  Bruno Haible  <bruno@clisp.org>
48308
48309         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
48310
48311 2003-01-15  Bruno Haible  <bruno@clisp.org>
48312
48313         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
48314         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
48315
48316 2003-01-14  Jim Meyering  <jim@meyering.net>
48317
48318         * lib/same.c (same_name): Tweak a comment.
48319
48320 2003-01-14  Bruno Haible  <bruno@clisp.org>
48321
48322         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
48323         when a string comparison is sufficient.
48324
48325 2003-01-14  Bruno Haible  <bruno@clisp.org>
48326
48327         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
48328         'unsigned int'.
48329
48330 2003-01-14  Bruno Haible  <bruno@clisp.org>
48331
48332         * lib/hash-pjw.c: Add comment about low quality of this function.
48333
48334 2003-01-13  Bruno Haible  <bruno@clisp.org>
48335
48336         * modules/stpcpy: Distribute lib/stpcpy.h.
48337         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
48338
48339 2003-01-13  Bruno Haible  <bruno@clisp.org>
48340
48341         * modules/*: Add a description.
48342         * modules/strpbrk: Fix Makefile.am snippet.
48343         * modules/strtoimax: Fix dependencies.
48344         * modules/strtoumax: Likewise.
48345
48346 2003-01-13  Bruno Haible  <bruno@clisp.org>
48347
48348         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
48349         * modules/alloca (Makefile.am): All object files depend on alloca.h.
48350         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
48351
48352 2003-01-13  Bruno Haible  <bruno@clisp.org>
48353
48354         * gnulib-tool (func_create_testdir): Store config/* files in the main
48355         directory.
48356         * config.rpath: Move to ...
48357         * config/config.rpath: ... here.
48358         * modules/gettext: Contains config/config.rpath, not config.rpath.
48359         * modules/iconv: Likewise.
48360
48361 2003-01-12  Paul Eggert  <eggert@twinsun.com>
48362
48363         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
48364         to avoid collisions with libcurses and libreadline.
48365
48366         * m4/getstr.m4: Remove.
48367         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
48368
48369 2003-01-12  Paul Eggert  <eggert@twinsun.com>
48370
48371         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
48372         to avoid collisions with libcurses and libreadline.
48373
48374         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
48375         * lib/getstr.h, getstr.c: Remove.
48376         * lib/getline.c: Include "getline.h", to check interface.
48377         Move body of old getstr.c here: this defines MIN_CHUNK and
48378         declares getdelim2, which is renamed from getstr.
48379         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
48380
48381         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
48382         All uses changed.
48383         * lib/linebuffer.h: Likewise.
48384         (readline): Remove backward-compatibility macro.
48385
48386 2003-01-12  Paul Eggert  <eggert@twinsun.com>
48387
48388         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
48389         to avoid collisions with libcurses and libreadline.
48390         * getstr: Remove.
48391         * MODULES.html.sh: Remove getstr.
48392         * modules/getline: Depend on unlocked-io, not getstr.
48393
48394 2003-01-12  Jim Meyering  <jim@meyering.net>
48395
48396         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
48397
48398 2003-01-10  Bruno Haible  <bruno@clisp.org>
48399
48400         * modules/alloca: Change Makefile.am requirements. Simplify Include
48401         requirements. Add lib/alloca_.h to file list.
48402
48403 2003-01-10  Bruno Haible  <bruno@clisp.org>
48404
48405         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
48406
48407 2003-01-10  Bruno Haible  <bruno@clisp.org>
48408
48409         * lib/alloca_.h: New file.
48410         * lib/getdate.y: Unconditionally include alloca.h.
48411         * lib/makepath.c: Likewise.
48412         * lib/setenv.c: Likewise.
48413         * lib/userspec.c: Likewise.
48414
48415 2003-01-09  Karl Berry  <karl@gnu.org>
48416
48417         * MODULES.html.sh: include `dirname $0` in PATH, to find
48418         gnulib-tool.
48419
48420 2003-01-09  Bruno Haible  <bruno@clisp.org>
48421
48422         * modules/stdbool: Change configure.ac, Makefile.am requirements.
48423         Simplify Include requirements. Add lib/stdbool.h.in to file list.
48424
48425 2003-01-09  Bruno Haible  <bruno@clisp.org>
48426
48427         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
48428
48429 2003-01-09  Bruno Haible  <bruno@clisp.org>
48430
48431         * lib/stdbool.h.in: New file.
48432
48433 2003-01-09  Bruno Haible  <bruno@clisp.org>
48434
48435         * gnulib-tool (func_all_modules): Ignore files ending in ~.
48436         * MODULES.html.sh: Likewise.
48437
48438 2003-01-08  Jim Meyering  <jim@meyering.net>
48439
48440         * lib/full-write.c: Undefine and define-away `const' after inclusion
48441         of errno.h, not before.  Suggestion from Bruno Haible.
48442
48443 2003-01-08  Bruno Haible  <bruno@clisp.org>
48444
48445         * modules/full-read: Depend on full-write.
48446
48447 2003-01-08  Bruno Haible  <bruno@clisp.org>
48448
48449         * lib/safe-read.c: Include specification header first, to ensure its
48450         selfcontainedness.
48451         * lib/full-write.c: Likewise.
48452
48453 2003-01-07  Jim Meyering  <jim@meyering.net>
48454
48455         * lib/full-write.c: Rework so that it may serve to define full_read,
48456         too.
48457         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
48458
48459 2003-01-07  Bruno Haible  <bruno@clisp.org>
48460
48461         * lib/strtoimax.c: Include <stdint.h> as an alternative to
48462         <inttypes.h>.
48463         * lib/xstrtol.h: Likewise.
48464         * lib/xstrtoimax.c: Likewise.
48465         * lib/xstrtoumax.c: Likewise.
48466         * lib/human.h: Likewise.
48467
48468         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
48469         on systems that have <inttypes.h> but not <stdint.h>.
48470
48471 2003-01-07  Bruno Haible  <bruno@clisp.org>
48472
48473         * MODULES.html.sh: Add copyright notice.
48474         (missed_files): Omit CVS directory entries.
48475         (func_module): Make it work with sed-3.02.
48476         * MODULES.txt: Remove file.
48477
48478 2003-01-06  Jim Meyering  <jim@meyering.net>
48479
48480         * lib/version-etc.c: Update year in translatable copyright string.
48481
48482 2003-01-03  Karl Berry  <karl@gnu.org>
48483
48484         * config/config.{guess,sub}: update from prep.
48485
48486 2003-01-02  Karl Berry  <karl@gnu.org>
48487
48488         * doc/COPYING.DOC: belatedly updated to 1.2.
48489
48490 2003-01-01  Karl Berry  <karl@gnu.org>
48491
48492         * gnulib-tool (func_verify_module): report module name $module in
48493         error message, not $1.
48494         * gnulib-tool (create-testdir): don't complain if destdir couldn't
48495         be created, only if it doesn't exist.
48496         * gnulib-tool (last_checkin_date): don't expand the $Date here.
48497
48498 2002-12-31  Paul Eggert  <eggert@twinsun.com>
48499
48500         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
48501
48502 2002-12-31  Paul Eggert  <eggert@twinsun.com>
48503
48504         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
48505         memcmp if strcoll doesn't work.
48506
48507 2002-12-31  Bruno Haible  <bruno@clisp.org>
48508
48509         * lib/utime.c (utime_null): No need to call ftruncate if the file was
48510         nonempty.
48511
48512 2002-12-31  Bruno Haible  <bruno@clisp.org>
48513
48514         * lib/memcoll.c (STRCOLL): New macro.
48515         (memcoll): Use it.
48516
48517 2002-12-31  Bruno Haible  <bruno@clisp.org>
48518
48519         * lib/localcharset.h: New file.
48520         * lib/localcharset.c: Include it.
48521         * lib/unicodeio.c: Likewise.
48522
48523 2002-12-31  Bruno Haible  <bruno@clisp.org>
48524
48525         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
48526         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
48527
48528 2002-12-31  Bruno Haible  <bruno@clisp.org>
48529
48530         * lib/getline.h: Include <stddef.h>, for size_t.
48531
48532         * lib/unicodeio.h: Include <stddef.h>, for size_t.
48533         * lib/unicodeio.c: Don't include <stddef.h>.
48534
48535 2002-12-31  Bruno Haible  <bruno@clisp.org>
48536
48537         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
48538         HAVE_TM_ZONE.
48539
48540 2002-12-24  Karl Berry  <karl@gnu.org>
48541
48542         * config/config.guess: update from prep.
48543
48544 2002-12-24  Bruno Haible  <bruno@clisp.org>
48545
48546         General infrasructure.
48547         * m4/README: Rewritten.
48548         * m4/onceonly.m4: New file.
48549         * m4/onceonly_2_57.m4: New file.
48550
48551         Module atexit.
48552         * m4/atexit.m4: New file.
48553
48554         Module strtod.
48555         * m4/strtod.m4: New file.
48556
48557         Module strtol.
48558         * m4/strtol.m4: New file.
48559
48560         Module strtoul.
48561         * m4/strtoul.m4: New file.
48562
48563         Module memchr.
48564         * m4/memchr.m4: New file.
48565
48566         Module memcmp.
48567         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
48568         (jm_FUNC_MEMCMP): Invoke it.
48569
48570         Module memcpy.
48571         * m4/memcpy.m4: New file.
48572
48573         Module memmove.
48574         * m4/memmove.m4: New file.
48575
48576         Module memset.
48577         * m4/memset.m4: New file.
48578
48579         Module strcspn.
48580         * m4/strcspn.m4: New file.
48581
48582         Module strpbrk.
48583         * m4/strpbrk.m4: New file.
48584
48585         Module strstr.
48586         * m4/strstr.m4: New file.
48587
48588         Module strerror.
48589         * m4/strerror.m4: New file.
48590
48591         Module mktime.
48592         * m4/mktime.m4: Renamed from jm-mktime.m4.
48593         (gl_PREREQ_MKTIME): New macro.
48594         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
48595
48596         Module malloc.
48597         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
48598         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
48599         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
48600
48601         Module realloc.
48602         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
48603         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
48604         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
48605
48606         Module strftime.
48607         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
48608         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
48609         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
48610         gl_TM_GMTOFF.
48611         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
48612
48613         Module xalloc.
48614         * m4/xalloc.m4: New file.
48615
48616         Module alloca.
48617         * m4/alloca.m4: New file.
48618
48619         Module putenv.
48620         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
48621         (jm_FUNC_PUTENV): Invoke it.
48622
48623         Module setenv.
48624         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
48625         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
48626         when invoked twice.
48627         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
48628         gt_FUNC_SETENV.
48629
48630         Module memrchr.
48631         * m4/memrchr.m4: New file.
48632
48633         Module stpcpy.
48634         * m4/stpcpy.m4: New file.
48635
48636         Module strcase.
48637         * m4/strcase.m4: New file.
48638
48639         Module strdup.
48640         * m4/strdup.m4: New file.
48641
48642         Module strnlen.
48643         * m4/strnlen.m4: New file.
48644
48645         Module strndup.
48646         * m4/strndup.m4: New file.
48647
48648         Module xstrtod.
48649         * m4/xstrtod.m4: New file.
48650
48651         Module xstrtol.
48652         * m4/xstrtol.m4: New file.
48653
48654         Module getdate.
48655         * m4/getdate.m4: New file.
48656
48657         Module unlocked-io.
48658         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
48659         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
48660         * m4/jm-glibc-io.m4n: Remove file.
48661
48662         Module long-options.
48663         * m4/long-options.m4: New file.
48664
48665         Module md5.
48666         * m4/md5.m4: New file.
48667
48668         Module sha.
48669         * m4/sha.m4: New file.
48670
48671         Module getstr.
48672         * m4/getstr.m4: New file.
48673
48674         Module getline.
48675         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
48676         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
48677         <sys/types.h>, for size_t. Use the function name gnu_getline, not
48678         simply getline. Infoke gl_PREREQ_GETLINE.
48679
48680         Module obstack.
48681         * m4/obstack.m4: New file.
48682
48683         Module hash.
48684         * m4/hash.m4: New file.
48685
48686         Module readtokens.
48687         * m4/readtokens.m4: New file.
48688
48689         Module strverscmp.
48690         * m4/strverscmp.m4: New file.
48691
48692         Module stdbool.
48693         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
48694         OSF/1.
48695
48696         Module strtoll.
48697         * m4/strtoll.m4: New file.
48698
48699         Module strtoull.
48700         * m4/strtoull.m4: New file.
48701
48702         Module strtoimax.
48703         * m4/strtoimax.m4: New file.
48704
48705         Module strtoumax.
48706         * m4/strtoumax.m4: New file.
48707
48708         Module xstrtoimax.
48709         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
48710         jm_AC_PREREQ_XSTRTOIMAX.
48711         Moved the strtol prerequisites to strtol.m4.
48712         Moved the strtoll prerequisites to strtoll.m4.
48713         Moved the strtoimax prerequisites to strtoimax.m4.
48714
48715         Module xstrtoumax.
48716         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
48717         jm_AC_PREREQ_XSTRTOUMAX.
48718         Moved the strtoul prerequisites to strtoul.m4.
48719         Moved the strtoull prerequisites to strtoull.m4.
48720         Moved the strtoumax prerequisites to strtoumax.m4.
48721
48722         Module chown.
48723         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
48724         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
48725
48726         Module dup2.
48727         * m4/dup2.m4: New file.
48728
48729         Module ftruncate.
48730         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
48731         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
48732
48733         Module getgroups.
48734         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
48735         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
48736
48737         Module gettimeofday.
48738         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
48739         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
48740         gl_PREREQ_GETTIMEOFDAY.
48741
48742         Module mkdir.
48743         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
48744         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
48745
48746         Module mkstemp.
48747         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
48748         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
48749         jm_AC_TYPE_UINTMAX_T.
48750         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
48751
48752         Module stat.
48753         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
48754         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
48755
48756         Module lstat.
48757         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
48758         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
48759
48760         Module timespec.
48761         * m4/timespec.m4 (gl_TIMESPEC): New macro.
48762         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
48763         * m4/st_mtim.m4: Indentation.
48764
48765         Module nanosleep.
48766         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
48767         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
48768         gl_PREREQ_NANOSLEEP.
48769
48770         Module regex.
48771         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
48772         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
48773         (gl_REGEX): New macro.
48774
48775         Module rename.
48776         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
48777         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
48778
48779         Module rmdir.
48780         * m4/rmdir.m4: New file.
48781
48782         Module utime.
48783         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
48784         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
48785         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
48786
48787         Module dirname.
48788         * m4/dirname.m4: New file.
48789
48790         Module getopt.
48791         * m4/getopt.m4: New file.
48792
48793         Module unistd-safer.
48794         * m4/unistd-safer.m4: New file.
48795
48796         Module fnmatch.
48797         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
48798         declaration.
48799         (gl_PREREQ_FNMATCH_EXTRA): New macro.
48800         (gl_FUNC_FNMATCH_POSIX): New macro.
48801         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
48802         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
48803         simply fnmatch.
48804
48805         Module exclude.
48806         * m4/exclude.m4: New file.
48807
48808         Module human.
48809         * m4/human.m4: New file.
48810
48811         Module acl.
48812         * m4/acl.m4: Nop.
48813
48814         Module backupfile.
48815         * m4/backupfile.m4: New file.
48816         * m4/d-ino.m4: Indentation.
48817
48818         Module fsusage.
48819         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
48820         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
48821         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
48822
48823         Module dirfd.
48824         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
48825         requirements.
48826
48827         Module euidaccess.
48828         * m4/euidaccess.m4: New file.
48829
48830         Module file-type.
48831         * m4/file-type.m4: New file.
48832
48833         Module fileblocks.
48834         * m4/fileblocks.m4: New file.
48835
48836         Module filemode.
48837         * m4/filemode.m4: New file.
48838
48839         Module isdir.
48840         * m4/isdir.m4: New file.
48841
48842         Module lchown.
48843         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
48844         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
48845
48846         Module makepath.
48847         * m4/makepath.m4: New file.
48848
48849         Module modechange.
48850         * m4/modechange.m4: New file.
48851
48852         Module mountlist.
48853         * m4/mountlist.m4: New file.
48854         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
48855         Indentation.
48856
48857         Module path-concat.
48858         * m4/path-concat.m4: New file.
48859
48860         Module pathmax.
48861         * m4/pathmax.m4: New file.
48862
48863         Module same.
48864         * m4/same.m4: New file.
48865
48866         Module save-cwd.
48867         * m4/save-cwd.m4: New file.
48868
48869         Module savedir.
48870         * m4/savedir.m4: New file.
48871
48872         Module xgetcwd.
48873         * m4/xgetcwd.m4: New file.
48874         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
48875
48876         Module xreadlink.
48877         * m4/xreadlink.m4: New file.
48878
48879         Module safe-read.
48880         * m4/safe-read.m4: New file.
48881
48882         Module safe-write.
48883         * m4/safe-write.m4: New file.
48884
48885         Module closeout.
48886         * m4/closeout.m4: New file.
48887
48888         Module stdio-safer.
48889         * m4/stdio-safer.m4: New file.
48890
48891         Module getpass.
48892         * m4/getpass.m4: New file.
48893
48894         Module getugroups.
48895         * m4/getugroups.m4: New file.
48896
48897         Module group-member.
48898         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
48899         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
48900
48901         Module idcache.
48902         * m4/idcache.m4: New file.
48903
48904         Module userspec.
48905         * m4/userspec.m4: New file.
48906
48907         Module gettime.
48908         * m4/clock_time.m4: New file.
48909         * m4/gettime.m4: New file.
48910
48911         Module settime.
48912         * m4/settime.m4: New file.
48913
48914         Module posixtm.
48915         * m4/posixtm.m4: New file.
48916
48917         Module gethostname.
48918         * m4/gethostname.m4: New file.
48919
48920         Module canon-host.
48921         * m4/canon-host.m4: New file.
48922
48923         Module gettext.
48924         * m4/codeset.m4: New file, from gettext-0.11.5.
48925         * m4/gettext.m4: New file, from gettext-0.11.5.
48926         * m4/glibc21.m4: New file, from gettext-0.11.5.
48927         * m4/iconv.m4: New file, from gettext-0.11.5.
48928         * m4/intdiv0.m4: New file, from gettext-0.11.5.
48929         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
48930         * m4/inttypes.m4: New file, from gettext-0.11.5.
48931         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
48932         * m4/isc-posix.m4: New file, from gettext-0.11.5.
48933         * m4/lcmessage.m4: New file, from gettext-0.11.5.
48934         * m4/lib-ld.m4: New file, from gettext-0.11.5.
48935         * m4/lib-link.m4: New file, from gettext-0.11.5.
48936         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
48937         * m4/progtest.m4: New file, from gettext-0.11.5.
48938         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
48939         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
48940         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
48941
48942         Module localcharset.
48943         * m4/localcharset.m4: New file.
48944
48945         Module hard-locale.
48946         * m4/hard-locale.m4: New file.
48947
48948         Module mbswidth.
48949         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
48950         onceonly macros.
48951         * m4/mbrtowc.m4: Add comment.
48952
48953         Module memcasecmp.
48954         * m4/memcasecmp.m4: New file.
48955
48956         Module memcoll.
48957         * m4/memcoll.m4: New file.
48958
48959         Module unicodeio.
48960         * m4/unicodeio.m4: New file.
48961
48962         Module rpmatch.
48963         * m4/rpmatch.m4: New file.
48964
48965         Module yesno.
48966         * m4/yesno.m4: New file.
48967
48968         Module exitfail.
48969         * m4/exitfail.m4: New file.
48970
48971         Module c-stack.
48972         * m4/c-stack.m4 (gl_C_STACK): New macro.
48973         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
48974
48975         Module error.
48976         * m4/error.m4 (gl_ERROR): New macro.
48977         (jm_PREREQ_ERROR): Use onceonly macros.
48978
48979         Module fatal.
48980         * m4/fatal.m4: New file.
48981
48982         Module getloadavg.
48983         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
48984         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
48985
48986         Module getpagesize.
48987         * m4/getpagesize.m4: New file.
48988
48989         Module getusershell.
48990         * m4/getusershell.m4: New file.
48991
48992         Module physmem.
48993         * m4/physmem.m4: New file.
48994
48995         Module posixver.
48996         * m4/posixver.m4: New file.
48997
48998         Module quotearg.
48999         * m4/quotearg.m4: New file.
49000
49001         Module quote.
49002         * m4/quote.m4: New file.
49003
49004         Module readutmp.
49005         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
49006
49007         Module sig2str.
49008         * m4/sig2str.m4: New file.
49009
49010         Other.
49011         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
49012         ulonglong.m4.
49013         * m4/intmax_t.m4: New file.
49014         * m4/d-type.m4: Indentation.
49015         * m4/jm-macros.m4: Update.
49016         * m4/prereq.m4 (jm_PREREQ): Update.
49017         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
49018         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
49019         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
49020         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
49021         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
49022         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
49023         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
49024         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
49025         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
49026         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
49027         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
49028         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
49029         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
49030         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
49031         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
49032         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
49033         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
49034         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
49035         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
49036
49037 2002-12-24  Bruno Haible  <bruno@clisp.org>
49038
49039         * MODULES.txt: Update according to m4/ changes.
49040
49041         Module gettext.
49042         * config.rpath: New file, from gettext-0.11.5.
49043
49044         * modules/*: New module descriptions.
49045         * gnulib-tool: New file.
49046         * MODULES.html.sh: New file.
49047
49048 2002-12-21  Karl Berry  <karl@gnu.org>
49049
49050         * doc/fdl.texi: update to version 1.2.
49051
49052 2002-12-19  Karl Berry  <karl@gnu.org>
49053
49054         * config/config.guess: update from prep.
49055
49056 2002-12-18  Bruno Haible  <bruno@clisp.org>
49057
49058         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
49059         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
49060
49061 2002-12-17  Bruno Haible  <bruno@clisp.org>
49062
49063         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
49064         stdlib.h, string.h.
49065
49066 2002-12-17  Bruno Haible  <bruno@clisp.org>
49067
49068         * lib/canon-host.c (strdup): Remove unused declaration.
49069
49070         * lib/fsusage.c: Include full_read.h.
49071         (get_fs_usage): Use full_read instead of safe_read.
49072
49073         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
49074
49075 2002-12-12  Karl Berry  <karl@gnu.org>
49076
49077         * config/config.guess: update from prep.
49078
49079 2002-12-11  Bruno Haible  <bruno@clisp.org>
49080
49081         * m4/setenv.m4: New file, from gettext-0.11.5.
49082
49083 2002-12-11  Bruno Haible  <bruno@clisp.org>
49084
49085         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
49086         not unsetenv().
49087         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
49088         modifications:
49089
49090         2002-12-11  Bruno Haible  <bruno@clisp.org>
49091
49092                 * setenv.c (alloca): Fall back to malloc.
49093                 (freea): New macro.
49094                 (setenv): Use freea() to free memory allocated with alloca().
49095
49096         2002-11-13  Bruno Haible  <bruno@clisp.org>
49097
49098                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
49099                 function declarations.
49100                 * unsetenv.c (unsetenv): Likewise.
49101
49102         2002-03-04  Bruno Haible  <bruno@clisp.org>
49103
49104                 Portability to AIX 4.3.3.
49105                 * unsetenv.c: New file, extracted from setenv.c.
49106                 * setenv.c: Move the unsetenv() function to unsetenv.c.
49107
49108         2001-12-20  Bruno Haible  <bruno@clisp.org>
49109
49110                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
49111                 use malloc instead. For SunOS 4.
49112
49113         2001-12-11  Bruno Haible  <bruno@clisp.org>
49114
49115                 * setenv.c: Declare alloca.
49116                 (compar_fn_t): New typedef.
49117                 (KNOWN_VALUE, STORE_VALUE): Use it.
49118
49119         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
49120         setenv.h.
49121
49122 2002-12-10  Paul Eggert  <eggert@twinsun.com>
49123
49124         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
49125         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
49126         Choose values that are less likely to collide with system fnmatch
49127         options.
49128         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
49129         defined (e.g., a pure POSIX system).
49130         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
49131         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
49132
49133 2002-12-06  Paul Eggert  <eggert@twinsun.com>
49134
49135         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
49136         a pain in practice to deal with generated m4 files.  This change
49137         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
49138
49139         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
49140         and jm-glibc-io.m4, as they are no longer a special case.
49141         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
49142         kludge and the auto-generation stuff.  Check only whether the
49143         functions are declared, not whether they exist, since older hosts
49144         that don't declare the functions can't use the optimization anyway.
49145
49146 2002-12-06  Jim Meyering  <jim@meyering.net>
49147
49148         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
49149
49150         Merge in changes from libc's misc/error.c, in preparation
49151         for the merge of gnulib's changes back into libc.
49152
49153         * lib/error.c (_): Define only if not already defined.
49154         Move definition to follow all #include directives.
49155         Include unlocked-io.h only if !_LIBC.
49156         [_LIBC]: Include <libio/libioP.h>.
49157         [USE_IN_LIBIO]: Include <libio/iolibio.h>
49158         (fflush): Tweak definition to use INTUSE.
49159         (putc): Define.
49160
49161 2002-12-05  Paul Eggert  <eggert@twinsun.com>
49162
49163         * lib/alloca.c [defined emacs]: Include "lisp.h".
49164         (xalloc_die) [defined emacs]: New macro.
49165         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
49166         [! defined emacs]: Include <xalloc.h>.
49167         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
49168         (pointer): Typedef to POINTER_TYPE *.
49169         (malloc): Remove decl; we now always use xmalloc.
49170         (alloca): Use old-style definition, since Emacs needs this.
49171         Check for arithmetic overflow when computing combined size.
49172
49173 2002-12-04  Paul Eggert  <eggert@twinsun.com>
49174
49175         Do not generate unlocked-io.h automatically, since it's easier to
49176         maintain it by hand.
49177
49178         * lib/unlocked-io.h: New file, from GNU diffutils,
49179         but with proper copyright notice and attribution.
49180         * lib/gen-uio: Remove.
49181         * lib/Makefile.am: Add copyright notice.
49182         (libfetish_a_SOURCES): Add unlocked-io.h.
49183         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
49184         (DISTCLEANFILES, io_functions): Remove macros.
49185         (EXTRA_DIST): Remove gen_uio.
49186         (unlocked-io.h): Remove rule.
49187
49188 2002-12-04  Jim Meyering  <jim@meyering.net>
49189
49190         Reflect the fact that stat.c and lstat.c are no longer generated.
49191         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
49192         (DISTCLEANFILES): Likewise.
49193         (EXTRA_DIST): Likewise.
49194         (all_local): Don't depend on stat.c or lstat.c.
49195         (stat.c, lstat.c): Remove rules.
49196         (EXTRA_DIST): Remove xstat.in.
49197
49198         * lib/xstat.in: Remove file.  Contents moved into stat.c.
49199         * lib/stat.c: New file.  Contents mostly from xstat.in.
49200         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
49201         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
49202
49203         * lib/safe-read.c: Rework so that it may serve to define safe_write,
49204         too.
49205         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
49206
49207 2002-12-03  Jim Meyering  <jim@meyering.net>
49208
49209         * lib/safe-read.c, safe-write.c: Change variable names and comments,
49210         but not semantics, to minimize the differences between these two files.
49211         (safe_read): Change comment to mention SAFE_READ_ERROR.
49212
49213         * lib/safe-read.c (IS_EINTR): Define.
49214         (safe_read): Use IS_EINTR in place of in-function cpp directives.
49215
49216 2002-12-02  Jim Meyering  <jim@meyering.net>
49217
49218         * lib/safe-read.c (EINTR): Define.
49219         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
49220         (INT_MAX): Provide fallback.
49221         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
49222
49223         * lib/safe-read.h (SAFE_READ_ERROR): Define.
49224
49225 2002-12-02  Bruno Haible  <bruno@clisp.org>
49226
49227         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
49228         Define, taken from safe-read.c.
49229         (INT_MAX): Provide fallback.
49230         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
49231         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
49232
49233         * lib/safe-read.c (EINTR): Remove definition.
49234         (safe_read): Don't use EINTR if it is absent.
49235
49236 2002-12-01  Jim Meyering  <jim@meyering.net>
49237
49238         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
49239         zero.
49240         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
49241
49242 2002-11-27  Paul Eggert  <eggert@twinsun.com>
49243
49244         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
49245         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
49246         with `if (! (value < limit)) abort ();', for readability.
49247
49248 2002-11-26  Karl Berry  <karl@gnu.org>
49249
49250         * lib/strdup.c: copy from libc again, with jim's ok.
49251         * lib/.cppi-disable: re-add strdup.c
49252
49253 2002-11-25  Karl Berry  <karl@gnu.org>
49254
49255         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
49256         instead of "strtol.c".
49257
49258 2002-11-25  Karl Berry  <karl@gnu.org>
49259
49260         * config/install-sh: update from automake for variable quoting, $0 in
49261         error msgs, etc.
49262
49263         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
49264         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
49265         entry.
49266
49267 2002-11-25  Jim Meyering  <jim@meyering.net>
49268
49269         * lib/mktime.c: Sync from libc, now that it has the latest fix.
49270
49271 2002-11-24  Karl Berry  <karl@gnu.org>
49272
49273         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
49274         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
49275
49276 2002-11-24  Jim Meyering  <jim@meyering.net>
49277
49278         Update from coreutils:
49279
49280         * lib/mktime.c: Merge in changes from libc.
49281
49282         Avoid a link-time failure on some Linux systems.
49283         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
49284         (otherwise).
49285         (__mon_yday): Declare with the STATIC attribute.
49286         (__mktime_internal): Likewise.
49287         Based on a report from Greg Schafer.
49288
49289 2002-11-23  Jim Meyering  <jim@meyering.net>
49290
49291         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
49292         Use `unsigned', not `int', as type of index.
49293
49294         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
49295
49296         * lib/fsusage.c: Remove unneeded parentheses around operands of
49297         `defined'.
49298
49299 2002-11-22  Paul Eggert  <eggert@twinsun.com>
49300
49301         * lib/quotearg.h: Allow multiple inclusion by surrounding with
49302         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
49303         so that we can be included first.
49304         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
49305         * lib/quotearg.c: Include quotearg.h immediately after config.h.
49306         No need to include stddef.h or sys/types.h any more.
49307         Surround local include files with "", not "<>".
49308         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
49309         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
49310         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
49311         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
49312         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
49313         (ISPRINT): Remove; no longer needed now that we assume C89.
49314
49315         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
49316         Preserve errno.
49317
49318         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
49319         quotearg_char): Use SIZE_MAX rather than
49320         (size_t) -1 when we are talking about "infinity".
49321
49322         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
49323
49324 2002-11-22  Paul Eggert  <eggert@twinsun.com>
49325
49326         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
49327         hint that one should use `if (! x) abort ();' rather than `assert
49328         (x);', and anyway it's one less thing to worry about configuring.
49329         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
49330         hash_rehash, hash_insert): Use abort rather than assert.
49331
49332 2002-11-22  Bruno Haible  <bruno@clisp.org>
49333
49334         * lib/safe-read.h: Assume C89. Add comments.
49335         (safe_read): Change return type to size_t.
49336         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
49337         byte counts > SSIZE_MAX correctly.
49338         * lib/safe-write.h: New file.
49339         * lib/safe-write.c: New file.
49340         * lib/full-read.h: New file.
49341         * lib/full-read.c: New file.
49342         * lib/full-write.h: Assume C89. Add comments.
49343         * lib/full-write.c: Include safe-write.h.
49344         (full_write): Rewritten to use safe_write.
49345         Suggested by Jim Meyering and Paul Eggert.
49346
49347 2002-11-21  Jim Meyering  <jim@meyering.net>
49348
49349         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
49350
49351         Merge in changes from the coreutils.
49352
49353         2002-09-25  Paul Eggert  <eggert@twinsun.com>
49354         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
49355         <stdint.h>.
49356         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
49357         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
49358         int.  Work more efficiently if X is the same width as uintmax_t.
49359         Do not compare X to -1, to avoid bogus compiler warning.
49360         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
49361         Don't assume that f_frsize and f_bsize are the same type.
49362
49363         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
49364         warning on FreeBSD.
49365
49366         * lib/makepath.c (make_path): Restore umask *before* creating the final
49367         component.
49368         (make_path): Minor reformatting.
49369
49370         * lib/xmalloc.c: Adjust to work with new autoconf macros,
49371         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
49372         HAVE_MALLOC/HAVE_REALLOC.
49373
49374         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
49375         dummy ones.  At least on GNU/Linux systems, `auto' means something
49376         else.
49377         From Michael Stone.
49378
49379 2002-11-21  Bruno Haible  <bruno@clisp.org>
49380
49381         Remove case insensitive option matching.
49382         * lib/argmatch.h (argcasematch): Remove declaration.
49383         (ARGCASEMATCH): Remove macro.
49384         (__xargmatch_internal): Remove case_sensitive argument.
49385         (XARGMATCH): Update.
49386         (XARGCASEMATCH): Remove macro.
49387         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
49388         case_sensitive argument.
49389         (argcasematch): Remove function.
49390         (__xargmatch_internal): Remove case_sensitive argument.
49391         (main): Use XARGMATCH instead of XARGCASEMATCH.
49392
49393         * lib/xmalloc.c: Change compile-time error message. Add comment about
49394         required autoconf version.
49395
49396 2002-11-20  Paul Eggert  <eggert@twinsun.com>
49397
49398         Merge argmatch cleanups from Bison.  Assume C89.
49399
49400         * lib/argmatch.c: Include config.h here, not in argmatch.h.
49401         Include stdlib.h, for EXIT_FAILURE.
49402         Always include <string.h>, since we assume C89.
49403         (EXIT_FAILURE): Remove pre-C89 bug workaround.
49404         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
49405         Include <stddef.h> instead, since it's all we need for size_t.
49406         (PARAMS): Remove.  All uses removed.
49407         (ARRAY_CARDINALITY): Do not bother to #undef.
49408         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
49409         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
49410         Remove unnecessary parentheses.
49411         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
49412         Insert necessary parentheses.
49413         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
49414         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
49415
49416 2002-11-19  Bruno Haible  <bruno@clisp.org>
49417
49418         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
49419         * lib/mbswidth.h: Include <stddef.h>, for size_t.
49420
49421         * lib/mbswidth.h (PARAMS): Remove macro.
49422         (mbswidth, mbsnwidth): Use ANSI C function declarations.
49423         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
49424
49425         * lib/gcd.h (PARAMS): Remove macro.
49426         (gcd): Use ANSI C function declarations.
49427         * lib/gcd.c (gcd): Likewise.
49428
49429 2002-11-15  Bruno Haible  <bruno@clisp.org>
49430
49431         * lib/strcspn.c: Include <stddef.h>.
49432         (strcspn): Use ANSI C function declaration. Change return type to
49433         size_t. Use NULL.
49434         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
49435         (strpbrk): Use NULL.
49436         * lib/strpbrk.h (PARAMS): Remove macro.
49437         (strpbrk): Use ANSI C function declaration.
49438         * lib/strstr.c: Don't include <sys/types.h>.
49439         * lib/strstr.h (PARAMS): Remove macro.
49440         (strstr): Use ANSI C function declarations.
49441
49442 2002-11-14  Karl Berry  <karl@gnu.org>
49443
49444         * config/mkinstalldirs: `do' on separate line, instead of
49445         `for var; do'.
49446
49447 2002-11-06  Bruno Haible  <bruno@clisp.org>
49448
49449         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
49450         * lib/gcd.c (gcd): Likewise.
49451
49452 2002-11-05  Bruno Haible  <bruno@clisp.org>
49453
49454         * lib/gcd.h: New file, from gettext-0.11.5.
49455         * lib/gcd.c: New file, from gettext-0.11.5.
49456
49457 2002-11-05  Bruno Haible  <bruno@clisp.org>
49458
49459         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
49460         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
49461         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
49462         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
49463
49464         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
49465         <libintl.h>.
49466         * lib/makepath.c: Include gettext.h instead of <locale.h> and
49467         <libintl.h>.
49468
49469         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
49470         * lib/human.c: Include gettext.h instead of <libintl.h>.
49471         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
49472         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
49473         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
49474         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
49475         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
49476         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
49477         (textdomain): Remove definition.
49478         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
49479
49480         * lib/long-options.c: Remove include of <libintl.h> and definition of
49481         _.
49482         * lib/same.c: Remove include of <libintl.h> and definition of _.
49483
49484 2002-11-04  Owen Taylor  <otaylor@redhat.com>
49485
49486         * lib/config.charset: A few additions for Solaris.
49487
49488 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
49489
49490         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
49491         * lib/localcharset.c (locale_charset): Declare as extern "C".
49492
49493 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
49494
49495         * lib/config.charset: msdos in uk_UA uses CP1125.
49496
49497 2002-11-04  Bruno Haible  <bruno@clisp.org>
49498
49499         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
49500         * lib/strcase.h: New file, from GNU gettext-0.11.5.
49501         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
49502         * lib/strstr.h: New file, from GNU gettext-0.11.5.
49503         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
49504
49505 2002-11-04  Bruno Haible  <bruno@clisp.org>
49506
49507         * lib/localcharset.c (locale_charset): Don't return an empty string.
49508
49509 2002-11-04  Bruno Haible  <bruno@clisp.org>
49510
49511         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
49512         aliases.
49513
49514 2002-11-04  Bruno Haible  <bruno@clisp.org>
49515
49516         * lib/config.charset: Update for newest glibc. Add canonical names
49517         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
49518
49519 2002-11-04  Bruno Haible  <bruno@clisp.org>
49520
49521         * lib/config.charset: Add support for NetBSD.
49522
49523 2002-11-04  Bruno Haible  <bruno@clisp.org>
49524
49525         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
49526
49527 2002-11-01  Bruno Haible  <bruno@clisp.org>
49528
49529         * configure.in: Add AC_CONFIG_AUX_DIR call.
49530         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
49531         test/Makefile.
49532         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
49533
49534 2002-09-28  Karl Berry  <karl@gnu.org>
49535
49536         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
49537         installed automake until the next release, since changes have been
49538         made.
49539
49540 2002-09-25  Karl Berry  <karl@gnu.org>
49541
49542         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
49543         * lib/getopt*: copy from libc/posix.
49544         * lib/gettext.h: copy from gettext.
49545         * lib/.cppi-disable: add strdup.c, gettext.h.
49546
49547 2002-09-25  Karl Berry  <karl@gnu.org>
49548
49549         * config/srclist.txt: enable gettext.h check.
49550         * config/config.{guess,sub}: update from prep.
49551         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
49552                 from automake 1.6.3.
49553         See srclist*.
49554
49555 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
49556
49557         * regex.c (PATFETCH): Remove the translating fetch.
49558         (PATFETCH_RAW): Rename to PATFETCH.
49559         (set_image_of_range): New fun.
49560         (SET_RANGE_TABLE_WORK_AREA): Use it.
49561         (regex_compile): Don't translate the pattern chars so eagerly.
49562         Only do it when inserting an `exactn' bytecode or when handling
49563         a char-range.
49564         (mutually_exclusive_p): Avoid empty statement.
49565
49566 2002-07-06  Jim Meyering  <meyering@lucent.com>
49567
49568         * m4/README: Don't mention Makefile.am.in.
49569         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
49570
49571 2002-07-01  Jim Meyering  <meyering@lucent.com>
49572
49573         * lib/c-stack.c: Include sys/time.h.
49574         From Volker Borchert.
49575
49576 2002-06-26  Paul Eggert  <eggert@twinsun.com>
49577
49578         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
49579
49580 2002-06-26  Paul Eggert  <eggert@twinsun.com>
49581
49582         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
49583         New macro.  Use it uniformly instead of
49584         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
49585         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
49586         reported by Vin Shelton.
49587
49588 2002-06-22  Paul Eggert  <eggert@twinsun.com>
49589
49590         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
49591         Do not assume SA_SIGINFO behavior.
49592         Bug reported by Jim Meyering on NetBSD 1.5.2.
49593
49594 2002-06-22  Jim Meyering  <meyering@lucent.com>
49595
49596         * m4/c-stack.m4: New file, from diffutils-2.8.2.
49597         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
49598
49599         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
49600         now that configure.ac uses AC_GNU_SOURCE.
49601         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
49602         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
49603
49604         Update to latest tools.  Suggestions from Paul Eggert.
49605         * m4/stdbool.m4: New file, from diffutils-2.8.2.
49606         * m4/gnu-source.m4: Update from diffutils-2.8.2.
49607         * m4/fnmatch.m4: Likewise.
49608         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
49609         to AC_HEADER_STDBOOL
49610
49611 2002-06-22  Jim Meyering  <meyering@lucent.com>
49612
49613         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
49614         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
49615
49616 2002-06-22  Jim Meyering  <meyering@lucent.com>
49617
49618         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
49619
49620         * lib/exitfail.c, exitfail.h: Likewise.
49621         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
49622
49623         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
49624         of fnmatch.h.
49625         (EXTRA_DIST): Add fnmatch_loop.c.
49626         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
49627
49628         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
49629         * lib/fnmatch.c: Update from diffutils-2.8.2.
49630         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
49631         * lib/fnmatch.h: Remove file.
49632
49633 2002-06-21  Jim Meyering  <meyering@lucent.com>
49634
49635         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
49636         * m4/mbrtowc.m4: Likewise.
49637
49638         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
49639         * m4/mbswidth.m4: Reflect name change:
49640         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
49641         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
49642
49643         * m4/lib-link.m4: Update from gettext-0.11.2.
49644         * m4/gettext.m4: Likewise.
49645
49646         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
49647         From Alfred M. Szmidt.
49648
49649 2002-06-18  Paul Eggert  <eggert@twinsun.com>
49650
49651         * lib/file-type.h: Report an error if neither S_ISREG nor
49652         S_IFREG is defined, instead of using a test specific to glibc
49653         2.2.  This should be safe, since POSIX requires S_ISREG and
49654         Unix Version 7 had S_IFREG.  We don't need to check for
49655         <sys/types.h> since we don't use any symbols that it defines.
49656
49657 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
49658
49659         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
49660         $@-t, so that each temporary file name is unique and valid in the first
49661         8 characters, for operation under DOS.
49662
49663 2002-06-15  Paul Eggert  <eggert@twinsun.com>
49664
49665         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
49666
49667 2002-06-15  Jim Meyering  <meyering@lucent.com>
49668
49669         Work even with DJGPP 2.03, which lacks support for symlinks.
49670         From Richard Dawe.
49671         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
49672         is defined.
49673         * lib/lchown.c (S_ISLNK): Likewise.
49674
49675 2002-06-15  Jim Meyering  <meyering@lucent.com>
49676
49677         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
49678         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
49679         have been included before this file.
49680
49681 2002-06-14  Jim Meyering  <meyering@lucent.com>
49682
49683         * lib/file-type.h: Use the version from diffutils-2.8.2.
49684         * lib/file-type.c: Likewise.
49685
49686 2002-06-07  Jim Meyering  <meyering@lucent.com>
49687
49688         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
49689         They're needed at least for NetBSD 1.5.2.
49690         ($statxfs_includes): Include those same headers.
49691         ($statxfs_includes): Include sys/vfs.h if available.
49692         ($statxfs_includes): Likewise for sys/statvfs.h.
49693         Check for the following members in both structs statfs and statvfs:
49694         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
49695
49696 2002-06-01  Jim Meyering  <meyering@lucent.com>
49697
49698         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
49699         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
49700
49701 2002-05-28  Jim Meyering  <meyering@lucent.com>
49702
49703         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
49704         Reported by Volker Borchert.
49705
49706 2002-05-27  Jim Meyering  <meyering@lucent.com>
49707
49708         Fix a problem seen only on nonconforming systems whereby ls.c's
49709         use of localtime, and then of gettimeofday would cause trouble:
49710         the localtime call used to initialize rpl_gettimeofday's save
49711         mechanism would clobber ls's current local time information so
49712         that in any long listing the first file would always be listed
49713         with date 1970-01-01.  Analysis by Volker Borchert.
49714
49715         * lib/gettimeofday.c (localtime): Undefine.
49716         (rpl_localtime): New function.
49717
49718 2002-05-27  Jim Meyering  <meyering@lucent.com>
49719
49720         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
49721         localtime.
49722
49723         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
49724         use the replacement function; it wouldn't resolve at link time.
49725         Reported by Volker Borchert.
49726
49727 2002-05-22  Jim Meyering  <meyering@lucent.com>
49728
49729         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
49730         file-type.h.
49731         * lib/file-type.h: New file.
49732         * lib/file-type.c (file_type): New file/function.  Extracted from
49733         diffutils.
49734
49735 2002-04-30  Jim Meyering  <meyering@lucent.com>
49736
49737         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
49738
49739 2002-04-29  Paul Eggert  <eggert@twinsun.com>
49740
49741         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
49742
49743 2002-04-29  Paul Eggert  <eggert@twinsun.com>
49744
49745         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
49746         Do not check for alloca.h (no longer used) or stdbool.h (was never
49747         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
49748
49749 2002-04-29  Paul Eggert  <eggert@twinsun.com>
49750
49751         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
49752
49753 2002-04-29  Jim Meyering  <meyering@lucent.com>
49754
49755         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
49756         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
49757         Use AC_FUNC_STRNLEN here instead.
49758
49759         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
49760         With autoconf-2.53a, it's part of AC_PROG_CC.
49761
49762 2002-04-28  Paul Eggert  <eggert@twinsun.com>
49763
49764         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
49765         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
49766
49767 2002-04-28  Paul Eggert  <eggert@twinsun.com>
49768
49769         * lib/sig2str.h, lib/sig2str.c: New files.
49770         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
49771
49772 2002-04-28  Paul Eggert  <eggert@twinsun.com>
49773
49774         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
49775         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
49776         of 127, since 64 is the largest conceivable number for ancient
49777         nonstandard hosts.
49778         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
49779
49780 2002-04-28  Jim Meyering  <meyering@lucent.com>
49781
49782         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
49783
49784 2002-04-24  Jim Meyering  <meyering@lucent.com>
49785
49786         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
49787         (jm_PREREQ): Use it.
49788
49789         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
49790         mach/mach.h fcntl.h.
49791         Check for this function: setlocale.
49792
49793 2002-04-24  Jim Meyering  <meyering@lucent.com>
49794
49795         * lib/gettext.h: New file, from Gettext.
49796         * lib/Makefile.am (INCLUDES): Remove -I../intl.
49797         (libfetish_a_SOURCES): Add gettext.h.
49798
49799 2002-04-16  Jim Meyering  <meyering@lucent.com>
49800
49801         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
49802         ut_pid, ut_id, ut_exit.
49803
49804 2002-04-16  Jim Meyering  <meyering@lucent.com>
49805
49806         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
49807         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
49808         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
49809
49810 2002-04-12  Jim Meyering  <meyering@lucent.com>
49811
49812         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
49813         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
49814         existence of the getmntinfo function.  Needed for Darwin 5.3.
49815
49816         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
49817         This is necessary at least on Darwin 5.3.
49818
49819         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
49820         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
49821         strnlen.o in the library, and that makes some versions of ranlib
49822         object.
49823
49824 2002-04-12  Jim Meyering  <meyering@lucent.com>
49825
49826         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
49827
49828 2002-04-09  Jim Meyering  <meyering@lucent.com>
49829
49830         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
49831         to be more precise.  Rather than saying we're checking whether the
49832         function `works', say what we're testing.
49833         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
49834         Reported by Bruno Haible.
49835
49836 2002-03-10  Jim Meyering  <meyering@lucent.com>
49837
49838         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
49839         Suggestion from Santiago Vila.
49840
49841 2002-03-08  Jim Meyering  <meyering@lucent.com>
49842
49843         * lib/rename.c: Mention that this wrapper is needed also on
49844         mips-dec-ultrix4.4 systems.
49845
49846 2002-03-02  Jim Meyering  <meyering@lucent.com>
49847
49848         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
49849         not HAVE_CLOCK_SETTIME.
49850
49851 2002-02-27  Paul Eggert  <eggert@twinsun.com>
49852
49853         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
49854         Check for clock_settime.
49855
49856 2002-02-27  Paul Eggert  <eggert@twinsun.com>
49857
49858         * lib/nanosleep.h: Rename to....
49859         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
49860
49861         * lib/gettime.c: New file.
49862         * lib/settime.c: New file.
49863         * lib/stime.c: Remove.
49864
49865         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
49866         timespec.h.  Remove nanosleep.h.
49867
49868 2002-02-25  Paul Eggert  <eggert@twinsun.com>
49869
49870         * m4/acl.m4: New file.
49871         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
49872         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
49873
49874 2002-02-25  Paul Eggert  <eggert@twinsun.com>
49875
49876         * lib/acl.c, lib/acl.h: New files.
49877         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
49878
49879 2002-02-24  Jim Meyering  <meyering@lucent.com>
49880
49881         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
49882         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
49883         cause trouble.  Reported by Nelson Beebe.
49884
49885 2002-02-23  Paul Eggert  <eggert@twinsun.com>
49886
49887         * lib/path-concat.c (xpath_concat): Reorder code to pacify
49888         compilers that don't know that xalloc_die never returns.
49889
49890 2002-02-20  Jim Meyering  <meyering@lucent.com>
49891
49892         * lib/getdate.c: Regenerate using bison-1.33.
49893
49894 2002-02-17  Jim Meyering  <meyering@lucent.com>
49895
49896         * config/config.guess (main): Don't use `head -1'; it's no longer
49897         portable. Use `sed 1q' instead.
49898
49899 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
49900
49901         * m4/codeset.m4: Upgrade to gettext-0.11.
49902         * m4/gettext.m4: Upgrade to gettext-0.11.
49903         * m4/glibc21.m4: Upgrade to gettext-0.11.
49904         * m4/iconv.m4: Upgrade to gettext-0.11.
49905         * m4/isc-posix.m4: Upgrade to gettext-0.11.
49906         * m4/lcmessage.m4: Upgrade to gettext-0.11.
49907         * m4/lib-ld.m4: New file, from gettext-0.11.
49908         * m4/lib-link.m4: New file, from gettext-0.11.
49909         * m4/lib-prefix.m4: New file, from gettext-0.11.
49910         * m4/progtest.m4: Upgrade to gettext-0.11.
49911
49912 2002-02-15  Paul Eggert  <eggert@twinsun.com>
49913
49914         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
49915         (jm_PREREQ): Use it.
49916
49917 2002-02-15  Paul Eggert  <eggert@twinsun.com>
49918
49919         * lib/posixver.c, lib/posixver.h: New files.
49920         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
49921
49922 2002-02-02  Paul Eggert  <eggert@twinsun.com>
49923             Bruno Haible  <bruno@clisp.org>
49924
49925         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
49926         (fwrite_success_callback): New declaration.
49927         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
49928         print_unicode_char. Call failure callback instead of error.
49929         (fwrite_success_callback): New function.
49930         (exit_failure_callback): New function.
49931         (fallback_failure_callback): New function.
49932         (print_unicode_char): Call unicode_to_mb.
49933
49934 2002-01-26  Jim Meyering  <meyering@lucent.com>
49935
49936         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
49937         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
49938
49939 2002-01-26  Jim Meyering  <meyering@lucent.com>
49940
49941         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
49942
49943 2002-01-22  Paul Eggert  <eggert@twinsun.com>
49944
49945         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
49946
49947 2002-01-22  Jim Meyering  <meyering@lucent.com>
49948
49949         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
49950         Otherwise, some versions of automake would omit the rule that makes
49951         Makefile from Makefile.in.
49952
49953 2002-01-21  Paul Eggert  <eggert@twinsun.com>
49954
49955         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
49956         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
49957         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
49958         (memcoll): Set errno to zero if there is no error.
49959
49960         * lib/quotearg.c (quotearg_buffer_restyled):
49961         Fix bug with quoting buffers containing NUL when backslashing escapes.
49962         This bug was exposed by the other changes in this patch.
49963         (quotearg_n_options): New arg ARGSIZE.
49964         All callers changed.
49965         (quoting_options_from_style): New function.
49966         (quotearg_n_style): Use it.
49967         (quotearg_n_style_mem): New function.
49968
49969         * lib/quotearg.h (quotearg_n_style_mem): New function.
49970
49971 2002-01-19  Jim Meyering  <meyering@lucent.com>
49972
49973         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
49974         Remove useless quotes: DF_PROG="df".
49975         * m4/strnlen.m4: New file.
49976
49977 2002-01-16  Paul Eggert  <eggert@twinsun.com>
49978
49979         * lib/backupfile.c (ISDIGIT): Comment fix.
49980         * lib/getdate.y (ISDIGIT): Likewise.
49981         * lib/posixtm.c (ISDIGIT, year): Likewise.
49982         * lib/strverscmp.c (ISDIGIT): Likewise.
49983         * lib/userspec.c (ISDIGIT): Likewise.
49984
49985 2002-01-16  Jim Meyering  <meyering@lucent.com>
49986
49987         * lib/getdate.y: Add three semicolons, each just before a closing
49988         brace. Bison (as of version 1.31) no longer papers over that mistake.
49989
49990 2002-01-05  Jim Meyering  <meyering@lucent.com>
49991
49992         * lib/version-etc.c (version_etc_copyright): Update copyright year.
49993
49994 2001-12-19  Paul Eggert  <eggert@twinsun.com>
49995
49996         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
49997         not silently exit merely because the output buffer happens to
49998         have nothing pending.
49999
50000 2001-12-18  Paul Eggert  <eggert@twinsun.com>
50001
50002         See the big note in ../ChangeLog.
50003         * lib/human.c (suffixes): Prefer K to k for 1024.
50004         (generate_suffix_backwards): New function.
50005         (human_readable_inexact): Use it.
50006         * lib/xstrtol.c (__xstrtol): If there is no number but there
50007         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
50008         Accept 'K' as well as 'k'.
50009
50010 2001-12-15  Jim Meyering  <meyering@lucent.com>
50011
50012         * lib/regex.h (__restrict_arr): Update from libc.
50013
50014         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
50015         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
50016         (STREQ): Define.
50017
50018 2001-12-14  Jim Meyering  <meyering@lucent.com>
50019
50020         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
50021         Suggestion from Bruno Haible.
50022
50023 2001-12-10  Jim Meyering  <meyering@lucent.com>
50024
50025         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
50026         xrealloc, Instead, include "xalloc.h".
50027         (initbuffer): Don't cast xmalloc return value to char*.
50028         (readline): Reword comment.
50029         Don't cast xrealloc return value to char*
50030         Return NULL, not 0.
50031
50032 2001-12-09  Jim Meyering  <meyering@lucent.com>
50033
50034         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
50035         about `signed and unsigned type in conditional expression'.
50036         * lib/posixtm.c (posix_time_parse): Likewise.
50037
50038         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
50039
50040         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
50041         to avoid a pedantic warning.
50042
50043         * lib/getstr.c: Don't include assert.h.
50044         (getstr): Remove warning-evoking assertions.
50045         Return -1 if offset parameter is out of bounds.
50046         Change the type of a local from int to size_t.
50047
50048         * lib/strftime.c (my_strftime_localtime_r): Include this function
50049         definition in the `#if ! HAVE_TM_GMTOFF' block.
50050
50051         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
50052         Include xalloc.h instead.
50053
50054 2001-12-02  Jim Meyering  <meyering@lucent.com>
50055
50056         * lib/tempname.c: Don't declare getenv, thus reverting the change of
50057         2001-11-18.  It's no longer necessary, now that stdlib.h is always
50058         included.
50059
50060         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
50061         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
50062
50063 2001-11-30  Akim Demaille  <akim@epita.fr>
50064
50065         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
50066         before being defined.
50067
50068 2001-11-27  Paul Eggert  <eggert@twinsun.com>
50069
50070         * lib/quotearg.h (quotearg_n, quotearg_n_style):
50071         First arg is int, not unsigned.
50072         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
50073         (SIZE_MAX, UINT_MAX): New macros.
50074         (quotearg_n_options): Abort if N is negative.
50075         Avoid overflow check on hosts where size_t is 64 bits and int
50076         is 32 bits, as overflow is impossible there.
50077         Fix off-by-one typo that caused unnecessary reallocation.
50078
50079 2001-11-27  Jim Meyering  <meyering@lucent.com>
50080
50081         * lib/tempname.c: Merge with version from libc.
50082         * lib/regex.c: Likewise.
50083
50084         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
50085         systems for which STDC_HEADERS is 0, it was not included, resulting in
50086         a warning about an integer-to-pointer conversion problem with getenv.
50087         Reported by Volker Borchert.
50088
50089 2001-11-26  Jim Meyering  <meyering@lucent.com>
50090
50091         * lib/gtod.h: Remove file.
50092         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
50093         * lib/gettimeofday.c: Don't include gtod.h.
50094         (GTOD_init): Remove function.
50095         (rpl_gettimeofday): Do its job here instead, rather than aborting.
50096         Suggestion from Volker Borchert.
50097
50098 2001-11-23  Jim Meyering  <meyering@lucent.com>
50099
50100         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
50101         it.
50102         * lib/hash.c (struct hash_table): Define it here instead.
50103
50104 2001-11-22  Jim Meyering  <meyering@lucent.com>
50105
50106         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
50107
50108 2001-11-20  Jim Meyering  <meyering@lucent.com>
50109
50110         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
50111         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
50112
50113 2001-11-19  Jim Meyering  <meyering@lucent.com>
50114
50115         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
50116         directory.  Use "conftestXXXXXX" as the template.
50117         Suggestion from Paul Eggert.
50118
50119         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
50120         immediately, so the test doesn't mistakenly hit the max-open-files
50121         limit.
50122
50123 2001-11-18  Paul Eggert  <eggert@twinsun.com>
50124
50125         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
50126         (TEMPORARIES): New macro.
50127         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
50128         removes an artificial limitation (e.g. HP-UX 10.20, where
50129         TMP_MAX is 17576).
50130
50131 2001-11-18  Jim Meyering  <meyering@lucent.com>
50132
50133         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
50134
50135 2001-11-18  Jim Meyering  <meyering@lucent.com>
50136
50137         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
50138         on SunOS 4.
50139
50140         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
50141         files will be created before anything else.
50142
50143 2001-11-17  Paul Eggert  <eggert@twinsun.com>
50144
50145         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
50146         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
50147
50148 2001-11-17  Jim Meyering  <meyering@lucent.com>
50149
50150         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
50151         Prompted by a report from Bob Proulx.
50152
50153         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
50154         Instead, require UTILS_FUNC_MKSTEMP.
50155
50156 2001-11-17  Jim Meyering  <meyering@lucent.com>
50157
50158         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
50159         Now, that's done as part of AC_FUNC_STRTOD.
50160
50161 2001-11-17  Jim Meyering  <meyering@lucent.com>
50162
50163         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
50164         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
50165         rather than group writable.  Patch by Juan F. Codagnone.
50166
50167         * lib/readtokens.c: Remove explicit declarations of xmalloc and
50168         xrealloc, Instead, include "xalloc.h".
50169
50170         * lib/mountlist.c: Include unlocked-io.h after all system headers.
50171         Remove explicit declarations of xmalloc, xrealloc,
50172         and xstrdup.  Instead, include "xalloc.h".
50173
50174         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
50175         unlocked-io.h.
50176         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
50177         Likewise.
50178         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
50179
50180         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
50181         Reported by Padraig Brady.
50182
50183         * lib/mkstemp.c: #undef mkstemp.
50184         Include config.h.
50185         (rpl_mkstemp): Rename from mkstemp.
50186         Protoize.
50187
50188 2001-11-16  Jim Meyering  <meyering@lucent.com>
50189
50190         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
50191         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
50192         determine the amount of total physical memory, use pstat_getstatic.
50193         HPUX-11 doesn't define _SC_PHYS_PAGES.
50194         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
50195         If sysconf couldn't be used to determine the amount of available
50196         physical memory, use both pstat_getstatic and pstat_getdynamic.
50197         Based on a patch from Bob Proulx.
50198
50199 2001-11-10  Jim Meyering  <meyering@lucent.com>
50200
50201         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
50202         (jm_PREREQ): Use it.
50203
50204 2001-11-09  Jim Meyering  <meyering@lucent.com>
50205
50206         * m4/jm-macros.m4: Require autoconf-2.52f.
50207         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
50208         Use these AC_-prefixed names, not the AM_-prefixed ones.
50209
50210         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
50211
50212 2001-11-05  Jim Meyering  <meyering@lucent.com>
50213
50214         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
50215
50216 2001-11-04  Jim Meyering  <meyering@lucent.com>
50217
50218         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
50219         $DEFS.
50220
50221 2001-11-03  Jim Meyering  <meyering@lucent.com>
50222
50223         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
50224         of AC_DEFUN.
50225
50226         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
50227         know the name of the variable in the macro definition.
50228
50229 2001-11-03  Jim Meyering  <meyering@lucent.com>
50230
50231         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
50232         in argmatch_to_argument call.
50233
50234         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
50235         argument.
50236
50237         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
50238         e.g., a fault due to an attempt to free a NULL pointer.
50239
50240 2001-11-01  Jim Meyering  <meyering@lucent.com>
50241
50242         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
50243         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
50244
50245 2001-11-01  Jim Meyering  <meyering@lucent.com>
50246
50247         * lib/dirfd.c, lib/dirfd.h: New files.
50248         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
50249
50250         * lib/hash.c (hash_print) [TESTING]: Clean up.
50251
50252 2001-10-22  Paul Eggert  <eggert@twinsun.com>
50253
50254         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
50255         to avoid a warning if -Wall.
50256
50257 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
50258
50259         * README: New file
50260         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
50261         (per RMS's instructions, this is now the canonical source)
50262         * lgpl/, gpl/: New directories.
50263
50264 2001-10-21  Paul Eggert  <eggert@twinsun.com>
50265
50266         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
50267
50268 2001-10-21  Jim Meyering  <meyering@lucent.com>
50269
50270         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
50271         this code would end up calling gettext even in packages built
50272         with --disable-nls.
50273         * lib/getopt.c (_): Likewise.
50274         * lib/regex.c (_): Likewise.
50275
50276 2001-10-20  Paul Eggert  <eggert@twinsun.com>
50277
50278         * m4/error.m4 (jm_PREREQ_ERROR):
50279         Do not invoke AC_CHECK_FUNCS with strerror_r, as
50280         AC_FUNC_STRERROR_R does that.
50281         Check for strerror declaration.
50282
50283         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
50284         are supposed to have them these days.
50285         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
50286         Merge changes from latest Autoconf CVS.
50287         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
50288         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
50289         POSIX decided to standardize on the int flavor of strerror_r.
50290
50291 2001-10-20  Paul Eggert  <eggert@twinsun.com>
50292
50293         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
50294         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
50295         Use strerror_r that is only a macro, even if it is not a function.
50296         (strerror): Check for HAVE_DECL_STRERROR before declaring.
50297         (private_strerror): Use prototypes, not old-style function definition.
50298         (print_errno_message): New function.
50299         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
50300         char*-flavored one.
50301         (error_tail, error, error_at_line): Use it.
50302
50303 2001-10-11  Jim Meyering  <meyering@lucent.com>
50304
50305         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
50306         and quote_n (1, ... to avoid clobbering a buffer.
50307
50308 2001-10-05  Jim Meyering  <meyering@lucent.com>
50309
50310         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
50311         hash-pjw.h.
50312         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
50313         * lib/hash-pjw.h: New file.
50314
50315 2001-09-30  Jim Meyering  <meyering@lucent.com>
50316
50317         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
50318         `struct fsstat' has the `f_fstypename' member.
50319         Use that to define FS_TYPE, which is now used to make
50320         the getfsstat link test tighter.
50321
50322 2001-09-30  Jim Meyering  <meyering@lucent.com>
50323
50324         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
50325         Include <sys/ucred.h>, for Apple Darwin.
50326         Include sys/mount.h and sys/fs_types.h only if available.
50327         (FS_TYPE): Define.
50328         (read_filesystem_list): Use FS_TYPE.
50329
50330 2001-09-29  Paul Eggert  <eggert@twinsun.com>
50331
50332         * lib/exclude.c (excluded_filename): 0 -> false, since it's
50333         a boolean context.
50334
50335 2001-09-29  Jim Meyering  <meyering@lucent.com>
50336
50337         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
50338         [one-argument getmntent function]): Include stdio.h before mntent.h.
50339         SunOS 4.1.x needs it for the declaration of `FILE'.
50340         Patch by Volker Borchert.
50341
50342         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
50343         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
50344         sys/fs_types.h, and make the link-test for getfsstat guard #include
50345         directives with appropriate #if HAVE_*_H tests so that we can
50346         detect getfsstat on Apple Darwin1.3.7 systems.
50347         Reported by Nelson Beebe.
50348         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
50349
50350 2001-09-28  Paul Eggert  <eggert@twinsun.com>
50351
50352         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
50353         #defines strtoimax.  Also treat the other strto* functions
50354         like strtoimax.
50355
50356         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
50357         Check for strtoul and strtoumax,
50358         as those declarations are made even in the signed case.
50359         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
50360         Likewise, for strtol and strtoimax.
50361
50362 2001-09-28  Paul Eggert  <eggert@twinsun.com>
50363
50364         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
50365         #defines strtoimax.  Also treat the other strto* functions
50366         like strtoimax.
50367
50368         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
50369         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
50370         (strtoimax, strtoumax): Do not declare if already defined as a macro.
50371
50372 2001-09-26  Jim Meyering  <meyering@lucent.com>
50373
50374         Most macros in unlocked-io.h had the wrong number of arguments.
50375         * lib/gen-uio: New script.
50376         (USE_UNLOCKED_IO): Define to 1 if not already defined.
50377         * lib/unlocked-io.hin: Remove file.
50378         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
50379         rather than trying to embed it here.
50380         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
50381         Reported by Padraig Brady.
50382
50383 2001-09-25  Volker Borchert  <bt@teknon.de>
50384
50385         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
50386         `result'.
50387
50388 2001-09-24  Jim Meyering  <meyering@lucent.com>
50389
50390         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
50391
50392 2001-09-23  Jim Meyering  <meyering@lucent.com>
50393
50394         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
50395         instead of the mere test for existence of mntent.h.  The latter
50396         would get a false-positive on AIX 3.4 systems.
50397         In the outer getmntent if-block, don't die if neither of the getmntent
50398         tests succeeds.  Instead, just fall through and continue with the
50399         remaining tests.
50400
50401 2001-09-23  Jim Meyering  <meyering@lucent.com>
50402
50403         * lib/mountlist.c: Remove useless parentheses in #if directives.
50404         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
50405         the deprecated MOUNTED symbol is no longer defined in mntent.h.
50406
50407 2001-09-22  Jim Meyering  <meyering@lucent.com>
50408
50409         * m4/gettext.m4: New file.  From gettext.
50410         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
50411         * m4/progtest.m4: Likewise
50412         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
50413         * m4/glibc21.m4: Likewise.
50414
50415         * m4/libintl.m4: Remove.  No longer used.
50416
50417 2001-09-22  Jim Meyering  <meyering@lucent.com>
50418
50419         * lib/localcharset.c: Update from latest gettext.
50420         * lib/config.charset: Likewise.
50421
50422 2001-09-20  Jim Meyering  <meyering@lucent.com>
50423
50424         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
50425         strtoimax.
50426         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
50427         strtoumax.
50428
50429 2001-09-20  Jim Meyering  <meyering@lucent.com>
50430
50431         * lib/xstrtol.c (strtoimax): Guard declaration with
50432         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
50433         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
50434         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
50435         (strtoumax): Likewise, for completeness (it wasn't necessary).
50436
50437 2001-09-17  Paul Eggert  <eggert@twinsun.com>
50438
50439         * lib/strtoimax.c (HAVE_LONG_LONG):
50440         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
50441         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
50442         to work around bug in IBM C compiler.
50443
50444 2001-09-17  Jim Meyering  <meyering@lucent.com>
50445
50446         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
50447         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
50448         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
50449         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
50450         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
50451         whenever the right hand side need not be expanded by the shell.
50452
50453 2001-09-16  Paul Eggert  <eggert@twinsun.com>
50454
50455         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
50456         library.  It's not correct, as some older glibcs are buggy.
50457         fnmatch wasn't fixed until glibc 2.2.
50458
50459         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
50460         special shell magic here.
50461
50462 2001-09-16  Jim Meyering  <meyering@lucent.com>
50463
50464         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
50465         * m4/jm-macros.m4: Require it.
50466
50467 2001-09-16  Jim Meyering  <meyering@lucent.com>
50468
50469         * lib/mkdir.c: New file.
50470
50471 2001-09-15  Jim Meyering  <meyering@lucent.com>
50472
50473         * m4/jm-macros.m4: Check for help2man.
50474
50475 2001-09-11  Jim Meyering  <meyering@lucent.com>
50476
50477         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
50478         The body, by Paul Eggert, was moved here from configure.in.
50479         * m4/jm-macros.m4: Require UTILS_HOST_OS.
50480
50481 2001-09-04  Paul Eggert  <eggert@twinsun.com>
50482
50483         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
50484         (jm_PREREQ): Use it.
50485
50486 2001-09-04  Paul Eggert  <eggert@twinsun.com>
50487
50488         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
50489         Use ssize_t, not int, to store result of readlink.
50490         Check for ssize_t overflow as well as size_t overflow,
50491         as POSIX says the result of readlink is implementation-defined
50492         when ssize_t overflows.
50493         Remove unnecessary cast to char*.
50494         Use free+malloc instead of realloc, as the storage doesn't need
50495         to be preserved and it's clearer and can be more efficient that way.
50496         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
50497         * lib/xreadlink.h (xreadlink): Update prototype.
50498
50499 2001-09-04  Paul Eggert  <eggert@twinsun.com>
50500
50501         * lib/xgetcwd.c: Revert some of the previous change; intead,
50502         fix the HAVE_GETCWD_NULL code to behave more like the
50503         !HAVE_GETCWD_NULL code used to.
50504
50505         Include "xalloc.h".
50506         (xgetcwd): Do not return NULL when memory is exhausted; instead,
50507         invoke xalloc_die.
50508
50509 2001-09-03  Paul Eggert  <eggert@twinsun.com>
50510
50511         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
50512         sys/param.h, as pathmax.h includes them.
50513
50514 2001-09-03  Paul Eggert  <eggert@twinsun.com>
50515
50516         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
50517         (jm_PREREQ_XGETCWD): New macro.
50518
50519         * m4/getcwd.m4: New file.
50520
50521 2001-09-03  Paul Eggert  <eggert@twinsun.com>
50522
50523         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
50524         like the HAVE_GETCWD_NULL code.
50525         Include pathmax.h if not HAVE_GETCWD.
50526         Do not include xalloc.h.
50527         (INITIAL_BUFFER_SIZE): New symbol.
50528         Do not use xmalloc / xrealloc, since the caller is responsible for
50529         handling errors.  Preserve errno around `free' during failure.
50530         Do not overrun buffer when using getwd.
50531
50532 2001-09-03  Paul Eggert  <eggert@twinsun.com>
50533
50534         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
50535         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
50536         getcwd (NULL, 0).
50537
50538 2001-09-03  Paul Eggert  <eggert@twinsun.com>
50539
50540         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
50541         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
50542         spotted by Jim Meyering.
50543
50544 2001-09-03  Jim Meyering  <meyering@lucent.com>
50545
50546         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
50547         failure.
50548
50549 2001-09-02  Jim Meyering  <meyering@lucent.com>
50550
50551         * lib/error.c: Update from GNU libc.
50552
50553 2001-09-01  Jim Meyering  <meyering@lucent.com>
50554
50555         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
50556         Used by df.
50557
50558 2001-09-01  Jim Meyering  <meyering@lucent.com>
50559
50560         * lib/xreadlink.c: New file.
50561         * lib/xreadlink.h: New file.
50562         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
50563         xreadlink.h.
50564
50565         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
50566         doesn't conflict with sparc Solaris 7's definition in
50567         /usr/include/sys/int_types.h.
50568
50569         * lib/exclude.c: Use `""', not `<>' to #include non-system header
50570         files.
50571         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
50572         and strncasecmp as r-values.  Unixware didn't have declarations.
50573
50574 2001-08-31  Paul Eggert  <eggert@twinsun.com>
50575
50576         * lib/xstrtol.h: Add copyright notice.
50577         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
50578         LONGINT_INVALID_SUFFIX_CHAR.
50579
50580 2001-08-31  Paul Eggert  <eggert@twinsun.com>
50581
50582         * lib/xstrtol.c (strtoimax): New decl.
50583
50584 2001-08-31  Paul Eggert  <eggert@twinsun.com>
50585
50586         * lib/xgetcwd.c: Don't include pathmax.h.
50587         Include stdlib.h and unistd.h if available.
50588         Include xalloc.h.
50589         (xmalloc, xstrdup, free): Remove decls.
50590         (xgetcwd): Don't assume sizes fit in unsigned.
50591         Check for overflow when computing sizes.
50592         Simplify reallocation code.
50593
50594 2001-08-31  Paul Eggert  <eggert@twinsun.com>
50595
50596         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
50597         a directory's st_size can have an arbitrary value, so the old
50598         usage could waste an arbitrary amount of memory.  All uses
50599         changed.
50600         * lib/savedir.h: Update prototype.
50601
50602 2001-08-31  Paul Eggert  <eggert@twinsun.com>
50603
50604         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
50605
50606         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
50607         old strtoimax.c.
50608
50609         Also, make the following further changes to make this file's
50610         configuration more similar to that of strtol.c:
50611         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
50612         (strtoumax, uintmax_t, strtoull, strtol): Remove.
50613         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
50614         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
50615         changed to signed values.
50616
50617         And make the following changes as well:
50618         Fix copyright notice, as 1999 was missing.
50619         (verify): New macro.
50620         (strtoimax): Check sizes at compile-time, not run-time.
50621         Prefer strtol to strtoll if both work.
50622         (main): Remove; it was not that useful and was a pain to maintain.
50623
50624         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
50625
50626 2001-08-31  Jim Meyering  <meyering@lucent.com>
50627
50628         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
50629         Use an initial, malloc'd, buffer of length 128 rather than
50630         a statically allocated one of length 1024.
50631
50632 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50633
50634         Simplify code, partly by assuming autoconf 2.52 semantics.
50635
50636         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
50637
50638         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
50639         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
50640         All uses removed.
50641         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
50642         Move AC_REQUIRE to next-to-top level, to avoid confusion.
50643         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
50644         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
50645         jm_AC_HEADER_INTTYPES_H.
50646         * m4/jm-macros.m4 (jm_MACROS): Likewise.
50647
50648         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
50649
50650         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
50651         Quote first arg of AC_DEFUN.
50652         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
50653         since they are needed to parse the include file even if we need
50654         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
50655         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
50656         but with opposite signedness.
50657
50658 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50659
50660         Merge 'exclude' changes from tar 1.13.22.
50661         This fixes one or two unlikely storage allocation overflow bugs,
50662         but doesn't change user-visible behavior otherwise.
50663
50664 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50665
50666         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
50667         (jm_PREREQ_EXCLUDE): New macro.
50668
50669 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50670
50671         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
50672         tm to be declared.
50673
50674 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50675
50676         * lib/hash.c: Remove '2001' from copyright notice.
50677
50678 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50679
50680         * lib/full-write.h: New file.
50681         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
50682         * lib/full-write.c: Correct credits, as cccp.c no longer
50683         exists and anyway it was so heavily changed from the old cccp
50684         code as to be unrecognizable.  Include full-write.h.
50685         (full_write) Return size_t, with short writes meaning failure.
50686         All callers changed.  This fixes a bug with large buffers
50687         on 64-bit hosts.
50688         * lib/utime.c: Include full-write.h.
50689
50690 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50691
50692         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
50693         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
50694         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
50695         Include if available.
50696         (<xalloc.h>): Include
50697         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
50698         (verify): New macro.  Use it to verify that EXCLUDE macros do not
50699         collide with FNM macros.
50700         (struct patopts): New struct.
50701         (struct exclude): Use it, as exclude patterns now come with options.
50702         (new_exclude): Support above changes.
50703         (new_exclude, add_exclude_file):
50704         Initial size must now be a power of two to simplify overflow checking.
50705         (free_exclude, fnmatch_no_wildcards): New function.
50706         (excluded_filename): No longer requires options arg, as the options
50707         are determined by add_exclude.  Now returns bool, not int.
50708         (excluded_filename, add_exclude):
50709         Add support for the fancy new exclusion options.
50710         (add_exclude, add_exclude_file): Now takes int options arg.
50711         Check for arithmetic overflow when computing sizes.
50712         (add_exclude_file): xrealloc might modify errno, so don't
50713         realloc until after errno might be used.
50714
50715         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
50716         New macros.
50717         (free_exclude): New decl.
50718         (add_exclude, add_exclude_file): Now takes int options arg.
50719         (excluded_filename): No longer requires options arg, as the options
50720         are determined by add_exclude.  Now returns bool, not int.
50721
50722 2001-08-30  Paul Eggert  <eggert@twinsun.com>
50723
50724         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
50725
50726 2001-08-27  Jim Meyering  <meyering@lucent.com>
50727
50728         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
50729
50730         * lib/version-etc.c (N_): Remove definition.
50731         Revert most of last change.
50732         Instead, simply don't mark the `Copyright...' string for translation.
50733         Based on advice from Paul Eggert.
50734
50735         * lib/strtoxmax.c: Tweak comment.
50736
50737 2001-08-26  Jim Meyering  <meyering@lucent.com>
50738
50739         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
50740
50741         * m4/xstrtoimax.m4: New file.
50742         * m4/xstrtoumax.m4: Add comments explaining why we
50743         AC_REPLACE_FUNCS(strtol).
50744
50745 2001-08-26  Jim Meyering  <meyering@lucent.com>
50746
50747         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
50748         of copyright with `%s' so translators don't get an untranslated
50749         message in 2002.
50750         (COPYRIGHT_YEAR): Define.
50751         (version_etc): Use fprintf rather than fputs.
50752         Suggestion from Ulrich Drepper.
50753
50754         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
50755
50756         * lib/strtoll.c: New file, from GNU libc.
50757         * lib/xstrtoimax.c: New file.
50758
50759         * lib/xstrtol.h: Add xstrtoimax.
50760         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
50761         * lib/strtoimax.c: New file.  Likewise, but first define
50762         STRTOUXMAX_SIGNED.
50763
50764         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
50765         ...
50766         * lib/strtoxmax.c: ... then renamed to this.
50767
50768 2001-08-18  Paul Eggert  <eggert@twinsun.com>
50769
50770         * m4/inttypes.m4: Add AC_PREREQ(2.13).
50771         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
50772         (jm_AC_TYPE_INTMAX_T): New macro.
50773         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
50774
50775         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
50776
50777         * m4/longlong.m4: Renamed from ulonglong.m4.
50778         * m4/inttypes.m4: Renamed from inttypes_h.m4.
50779         * m4/uintmax_t.m4: Removed.
50780
50781 2001-08-13  Paul Eggert  <eggert@twinsun.com>
50782
50783         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
50784         Port to Solaris 8, where 'sed' requires a space after the 'r'
50785         command, and where sh dislikes "$/".  Clean up the spacing a bit.
50786         Redirect output to $tmp just once.
50787
50788 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
50789
50790         * lib/addext.c (<errno.h>): Include.
50791         (errno): Declare if not defined.
50792         (addext): Work correctly when pathconf returns -1 and leaves
50793         errno alone because there is no limit.  Also, work even if
50794         pathconf returns a value greater than SIZE_MAX.
50795
50796 2001-08-12  Jim Meyering  <meyering@lucent.com>
50797
50798         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
50799         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
50800         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
50801         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
50802         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
50803         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
50804         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
50805         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
50806         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
50807         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
50808         utime.m4, utimes.m4, xstrtoumax.m4:
50809         Quote the first argument in each use of AC_DEFUN.
50810
50811 2001-08-12  Jim Meyering  <meyering@lucent.com>
50812
50813         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
50814         Simply `return getcwd (NULL, 0);'.
50815         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
50816         Use 1300 as initial value for length, not PATH_MAX.
50817
50818         * lib/pathmax.h: Clean up cpp syntax.
50819
50820 2001-08-12  Jim Meyering  <meyering@lucent.com>
50821
50822         * lib/gettimeofday.c: New file.
50823         * lib/gtod.h: New file.
50824         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
50825
50826 2001-08-05  Jim Meyering  <meyering@lucent.com>
50827
50828         * m4/jm-macros.m4: Require autoconf-2.52.
50829
50830 2001-08-04  Jim Meyering  <meyering@lucent.com>
50831
50832         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
50833         stmt, to get in sync with glibc.
50834
50835 2001-08-03  Paul Eggert  <eggert@twinsun.com>
50836
50837         The following changes are from gettext 0.10.39 as maintained by
50838         Bruno Haible.
50839
50840         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
50841         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
50842         with inverted sense.  All uses changed.
50843
50844         * lib/mbswidth.c: Don't include <limits.h>.
50845         Include <stdlib.h> and <string.h> unconditionally.
50846         (iswcntrl, mbsinit, ISCNTRL): New macros.
50847         (mbsnwidth): Use K&R style function declarations.
50848         Don't bother checking for MB_LEN_MAX == 1, since the compiler
50849         can optimize it when MB_CUR_MAX == 1.
50850         The width of control characters is zero, not 1.
50851
50852 2001-08-03  Paul Eggert  <eggert@twinsun.com>
50853
50854         The following changes are from gettext 0.10.39 as maintained by
50855         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
50856
50857         * m4/codeset.m4: Upgrade to serial AM1.
50858         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
50859         all uses changed.  Quote first arg of AC_DEFUN.
50860         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
50861
50862         * m4/iconv.m4: Upgrade to serial AM2.
50863         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
50864         Add --with-libconv-prefix.
50865         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
50866         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
50867         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
50868         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
50869         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
50870
50871         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
50872         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
50873         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
50874         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
50875         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
50876         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
50877         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
50878         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
50879         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
50880
50881         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
50882         string.h any more.
50883
50884         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
50885         not the default value.
50886
50887         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
50888         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
50889         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
50890         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
50891         Also check for iswcntrl, used for wcwidth fallback.
50892         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
50893         to Autoconf 2.13.
50894
50895 2001-08-03  Jim Meyering  <meyering@lucent.com>
50896
50897         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
50898         as it was in the original.  Reported by Paul Eggert.
50899
50900 2001-07-16  Jim Meyering  <meyering@lucent.com>
50901
50902         * m4/gettimeofday.m4: New file.
50903         Prompted by a report from Bernhard Baehr.
50904
50905 2001-07-15  Jim Meyering  <meyering@lucent.com>
50906
50907         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
50908         stuff. Now it's in ../Makefile.cfg.
50909
50910 2001-07-15  Jim Meyering  <meyering@lucent.com>
50911
50912         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
50913         (BUILT_SOURCES): Add unlocked-io.h.
50914         (io_functions): Define.
50915         (unlocked-io.h): New rule.
50916         (DISTCLEANFILES): Add unlocked-io.h.
50917         (all-local): Depend on unlocked-io.h, to ensure it is created.
50918
50919         * lib/unlocked-io.hin: New file
50920
50921         * lib/regex.c: Update from glibc.
50922
50923 2001-07-05  Jim Meyering  <meyering@lucent.com>
50924
50925         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
50926         recommendation.
50927         (libfetish_a_SOURCES): Put all .h files here instead.
50928         Remove a thus-exposed (better checks in automake) duplicate and
50929         two unnecessary .h files.
50930
50931 2001-07-04  Jim Meyering  <meyering@lucent.com>
50932
50933         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
50934         that generates jm-glibc-io.m4 so that it doesn't trigger any make
50935         distcheck failure.
50936
50937 2001-07-02  Jim Meyering  <meyering@lucent.com>
50938
50939         The following changes were prompted by suggestions from Bruno Haible.
50940
50941         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
50942         is now generated.
50943         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
50944         definition of EXTRA_DIST.
50945         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
50946         ensure that the generated file is created/updated whenever the list
50947         of $(unlocked_functions) is changed.
50948         (jm-glibc-io.m4): New rule.
50949         (unlocked-io.h): New rule -- currently unused.
50950
50951 2001-06-24  Jim Meyering  <meyering@lucent.com>
50952
50953         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
50954         unmatched right bracket, rather than kludging it with an extra,
50955         falsely-matching quote in a comment.  Patch by Akim Demaille.
50956
50957 2001-06-11  Jim Meyering  <meyering@lucent.com>
50958
50959         * lib/regex.c: Update from GNU libc.
50960
50961 2001-05-27  Jim Meyering  <meyering@lucent.com>
50962
50963         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
50964         Check for ut_type in struct utmp.
50965
50966 2001-05-27  Jim Meyering  <meyering@lucent.com>
50967
50968         * lib/readutmp.h (UT_TYPE): Define.
50969
50970 2001-05-24  Jim Meyering  <meyering@lucent.com>
50971
50972         * lib/argmatch.c: Include "quote.h".
50973         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
50974         quote function.  Reported by Göran Uddeborg.
50975
50976 2001-05-22  Jim Meyering  <meyering@lucent.com>
50977
50978         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
50979         now that we use the package-supplied version unconditionally.
50980         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
50981
50982 2001-05-21  Jim Meyering  <meyering@lucent.com>
50983
50984         * m4/regex.m4: Change a couple backticks to single quotes to avoid
50985         shell syntax errors.
50986
50987 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
50988
50989         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
50990
50991 2001-05-20  Paul Eggert  <eggert@twinsun.com>
50992
50993         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
50994         Don't bother to check library strftime, since
50995         we'll be using our own my_strftime function anyway.
50996         Define my_strftime instead of strftime.
50997
50998 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
50999
51000         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
51001         which is not yet declared.
51002
51003 2001-05-15  Jim Meyering  <meyering@lucent.com>
51004
51005         * m4/regex.m4: Use proper quoting so brackets appear in the test
51006         program.
51007         Reported by, and with help from, Bruno Haible.
51008
51009 2001-05-13  Jim Meyering  <meyering@lucent.com>
51010
51011         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
51012         undefined.
51013
51014 2001-05-11  Paul Eggert  <eggert@twinsun.com>
51015
51016         dirname code cleanup.  base_name now behaves more compatibly
51017         with POSIX basename when given file names that have trailing
51018         slashes, and similarly for dir_name.  Add new primitives
51019         base_len and dir_len.  Put the directory-name-related decls
51020         into dirname.h.
51021
51022         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
51023         * lib/backupfile.c (base_name): Likewise.
51024         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
51025         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
51026         * lib/makepath.c (strip_trailing_slashes): Likewise.
51027         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
51028         ISSLASH): Likewise.
51029         * lib/rename.c (strip_trailing_slashes): Likewise.
51030         * lib/same.c (base_name): Likewise.
51031         * lib/stripslash.c (ISSLASH): Likewise.
51032
51033         * lib/addext.c: Include <dirname.h> after size_t is defined.
51034         * lib/backupfile.c: Likewise.
51035
51036         * lib/addext.c (addext): Use base_len to trim redundant
51037         trailing slashes instead of doing it ourselves.
51038         But do not trim the last slash if it is not redundant.
51039
51040         * lib/backupfile.c (find_backup_file_name,
51041         max_backup_version): Use base_len instead of rolling it ourselves.
51042         Handle the case of "" and (on DOS) "C:" correctly.
51043
51044         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
51045         needed. Include <string.h>, <dirname.h>.
51046         (base_name): Allow file names ending in slashes, other than names
51047         that are all slashes.  In this case, return the basename followed
51048         by the slashes.  This is more general, and can be used in places
51049         where the original base_name purposely had an assertion failure.
51050         (base_len): New function.
51051
51052         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
51053         Do not include <assert.h>; no longer needed.
51054         Include xalloc.h.
51055         (memrchr): Remove decl.
51056         (dir_name_r): Remove.
51057         (dir_len): Renamed from dirlen.  All callers changed.
51058         Rewrite in terms of base_name, for simplicity and consistency.
51059         (dir_name): Never return NULL.  All callers changed.
51060         Do not include <stdlib.h> in test program; no longer needed.
51061         return 0; is fine for test program.
51062
51063         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
51064         New macros.
51065         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
51066
51067         * lib/path-concat.c (path_concat): Use base_len to compute
51068         base length, not strlen; this means we cannot rely on memcpy
51069         to null-terminate.
51070
51071         * lib/same.c (STREQ): Remove.
51072         (same_name): Handle the case where the basename ends in trailing '/'.
51073
51074         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
51075         a slash was stripped.  Do not strip the last slash after a
51076         file system prefix.
51077
51078 2001-05-11  Paul Eggert  <eggert@twinsun.com>
51079
51080         * lib/Makefile.am (libfetish_a_SOURCES):
51081         Add strftime.c, since we now compile it on all hosts.
51082
51083         * lib/strftime.c (my_strftime):
51084         Define to nstrftime if emacs, but only if my_strftime is not defined.
51085         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
51086         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
51087         Add one more extra argument: a nanoseconds value.
51088         All uses changed.
51089         (ns): New macro.
51090         (my_strftime function): Add %N format.
51091         (emacs_strftimeu): Renamed from emacs_strftime,
51092         with extra ut argument.
51093
51094 2001-05-09  Paul Eggert  <eggert@twinsun.com>
51095
51096         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
51097
51098 2001-04-21  Jim Meyering  <meyering@lucent.com>
51099
51100         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
51101         doesn't interfere.
51102
51103 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
51104
51105         * m4/ftruncate.m4: Check for chsize.
51106         Link with ftruncate.o unconditionally if ftruncate is missing.
51107         This was required when cross-compiling to i586-mingw32msvc.
51108
51109 2001-04-08  Jim Meyering  <meyering@lucent.com>
51110
51111         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
51112         recomputed; that's necessary when the offset spans a DST transition.
51113         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
51114
51115 2001-04-02  Jim Meyering  <meyering@lucent.com>
51116
51117         * lib/regex.h, regex.c: Update from GNU libc.
51118
51119 2001-03-24  Jim Meyering  <meyering@lucent.com>
51120
51121         * m4/jm-macros.m4: Require autoconf-2.49d.
51122
51123 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
51124
51125         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
51126
51127 2001-03-19  Paul Eggert  <eggert@twinsun.com>
51128
51129         * lib/version-etc.c (version_etc_copyright): Update to 2001.
51130
51131 2001-03-17  Jim Meyering  <meyering@lucent.com>
51132
51133         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
51134         now that the version in autoconf is equivalent.
51135         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
51136
51137         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
51138         Suggestion from Akim Demaille.
51139
51140         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
51141         (jm_PREREQ_TEMPNAME): New function.
51142
51143 2001-03-16  Paul Eggert  <eggert@twinsun.com>
51144
51145         * lib/tempname.c (uint64_t): Define to uintmax_t if
51146         not defined, and if UINT64_MAX is not defined.
51147         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
51148         Reported by John David Anglin.
51149
51150 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
51151
51152         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
51153         resolve alias if codeset is empty.
51154         * lib/config.charset (BeOS): Use wildcard syntax.
51155
51156 2001-03-13  Jim Meyering  <meyering@lucent.com>
51157
51158         * lib/path-concat.c (path_concat)
51159         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
51160         concatenating e.g., `C:' and `foo'.
51161         From Bruno Haible.
51162
51163 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
51164
51165         * lib/localcharset.c (locale_charset): Don't use
51166         setlocale(LC_CTYPE,NULL). Don't return NULL.
51167         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
51168
51169 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
51170
51171         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
51172         support for DOS/DJGPP.
51173
51174 2001-03-01  Paul Eggert  <eggert@twinsun.com>
51175
51176         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
51177         lacks mkstemp.  Compile our own tempname.c if we compile our own
51178         mkstemp.c, as mkstemp relies on tempname.
51179
51180 2001-03-01  Jim Meyering  <meyering@lucent.com>
51181
51182         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
51183         AH_VERBATIM really does output its argument verbatim.
51184
51185 2001-02-28  Paul Eggert  <eggert@twinsun.com>
51186
51187         * lib/Makefile.am (libfetish_a_SOURCES):
51188         Add dup-safer.c, fopen-safer.c.
51189         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
51190
51191         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
51192         * lib/unistd-safer.h: New files.
51193
51194 2001-02-25  Paul Eggert  <eggert@twinsun.com>
51195
51196         The mkstemp replacement is taken from glibc 2.2.2, with some
51197         portability fixes for use outside glibc, as follows:
51198
51199         * lib/tempname.c (struct_stat64): New macro.
51200         (direxists, __gen_tempname): Use it.
51201         This avoids a portability problem with Solaris 8.
51202
51203         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
51204         (<stddef.h>, <stdint.h>, <string.h>):
51205         Include only if STDC_HEADERS || _LIBC.
51206         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
51207         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
51208         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
51209         (__set_errno): Define this macro if <errno.h> doesn't.
51210         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
51211         Define these macros if <stdio.h> doesn't.
51212         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
51213         Define these macros if <sys/stat.h>
51214         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
51215         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
51216         __xstat64): Define if not _LIBC.
51217         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
51218         (__gen_tempname): Invoke gettimeofday only if
51219         HAVE_GETTIMEOFDAY || _LIBC;
51220         otherwise, fall back on plain "time".
51221         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
51222
51223         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
51224
51225         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
51226
51227 2001-02-18  Paul Eggert  <eggert@twinsun.com>
51228
51229         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
51230
51231 2001-02-17  Paul Eggert  <eggert@twinsun.com>
51232
51233         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
51234         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
51235         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
51236         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
51237
51238 2001-02-17  Paul Eggert  <eggert@twinsun.com>
51239
51240         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
51241         Remove workaround macros for hosts that have mbrtowc but not
51242         mbstate_t, as we now insist on proper declarations for both
51243         before using mbrtowc.
51244
51245 2001-02-17  Jim Meyering  <meyering@lucent.com>
51246
51247         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
51248         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
51249         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
51250         UnixWare 7.1.1.
51251
51252         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
51253         rather than AC_CACHE_VAL.
51254
51255 2001-02-17  Jim Meyering  <meyering@lucent.com>
51256
51257         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
51258         around included file name.
51259
51260         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
51261
51262         * lib/strftime.c: Update from GNU libc (the only changes were to
51263         comments).
51264
51265 2001-02-17  Jim Meyering  <meyering@lucent.com>
51266
51267         * lib/regex.c: Update from libc.
51268
51269 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
51270
51271         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
51272         clash.
51273
51274 2001-02-16  Paul Eggert  <eggert@twinsun.com>
51275
51276         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
51277         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
51278         Reported by Mark Hounschell via Paul Eggert.
51279
51280 2001-02-07  Jim Meyering  <meyering@lucent.com>
51281
51282         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
51283
51284 2001-02-05  Jim Meyering  <meyering@lucent.com>
51285
51286         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
51287         it includes the patch required for `large file' support with at least
51288         HP-UX's 10.20 /bin/cc.
51289
51290 2001-02-03  Jim Meyering  <meyering@lucent.com>
51291
51292         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
51293         AS_IF, now that it works once again (mysteriously).
51294         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
51295
51296 2001-01-30  Jim Meyering  <meyering@lucent.com>
51297
51298         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
51299         * m4/chown.m4: Rename conftestchown to conftest.chown.
51300         * m4/rename.m4: s/conftestdir/conftest.d1/ and
51301         s/conftestdir2/conftest.d2/.
51302         * m4/utimes.m4: s/conftestdata/conftest.data/
51303         Inspired by Pavel Roskin's change in autoconf.
51304
51305 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
51306
51307         * lib/config.charset: Update for FreeBSD 4.2.
51308
51309 2001-01-27  Jim Meyering  <meyering@lucent.com>
51310
51311         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
51312         a use of AS_IF.
51313         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
51314
51315 2001-01-26  Jim Meyering  <meyering@lucent.com>
51316
51317         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
51318         quotearg.c includes it.
51319
51320 2001-01-26  Jim Meyering  <meyering@lucent.com>
51321
51322         * lib/quotearg.c: Include stddef.h.
51323         * lib/quote.c: Include stddef.h.
51324         Reported by Axel Kittenberger.
51325
51326         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
51327         line in double quotes so that it evokes a better diagnostic.
51328         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
51329         Reported by Axel Kittenberger.
51330
51331 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
51332
51333         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
51334         as if it was a `charset'.
51335
51336 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
51337
51338         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
51339         has const.
51340
51341 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
51342
51343         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
51344         to avoid a warning.  Add back 'const' to inptr.
51345
51346 2001-01-20  Jim Meyering  <meyering@lucent.com>
51347
51348         Be sure that headers are checked before used in code compiled
51349         for the type checks.
51350         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
51351         In place of that, invoke jm_CHECK_ALL_TYPES.
51352         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
51353         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
51354         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
51355         The check for ssize_t was mistakenly run before the test for unistd.h.
51356
51357         The configure-time check for stdbool.h was missing.
51358         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
51359         (jm_PREREQ_HASH): New function.
51360
51361 2001-01-17  Jim Meyering  <meyering@lucent.com>
51362
51363         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
51364         for autoconf-2.49c.
51365         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
51366
51367 2001-01-16  Jim Meyering  <meyering@lucent.com>
51368
51369         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
51370         From Bruno Haible.
51371
51372 2001-01-14  Jim Meyering  <meyering@lucent.com>
51373
51374         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
51375         foo and bar.  Create conftestdir/ in the script, not in the C code.
51376         Remove directories in the script, not in the C code.
51377         Remove conftestdir{,2} before trying to create the directory.
51378         Make the entire configure script fail if the mkdir fails.
51379
51380 2001-01-14  Jim Meyering  <meyering@lucent.com>
51381
51382         * lib/rename.c: New file.  From Volker Borchert.
51383         Include stdlib.h, string.h or strings.h, and xalloc.h.
51384         Use strip_trailing_slashes rather than open-coding it.
51385
51386 2001-01-03  Paul Eggert  <eggert@twinsun.com>
51387
51388         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
51389
51390 2001-01-03  Jim Meyering  <meyering@lucent.com>
51391
51392         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
51393         of local `inptr' to avoid warning with some system declarations of
51394         iconv.
51395
51396 2001-01-02  Volker Borchert  <bt@teknon.de>
51397
51398         * m4/rename.m4: New file.
51399         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
51400
51401 2001-01-01  Jim Meyering  <meyering@lucent.com>
51402
51403         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
51404         even on systems with utmpx.h.  It's necessary for the declaration of
51405         utmp's ut_user member.  Reported by Andreas Jaeger.
51406
51407         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
51408         available. They are required for the declarations of getgrgid and
51409         getpwuid resp.
51410         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
51411         Reported by Andreas Jaeger.
51412
51413 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
51414
51415         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
51416         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
51417         so `make install' also works in VPATH builds.
51418
51419 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
51420
51421         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
51422         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
51423         can be used in subdirectories.
51424
51425 2000-12-29  Paul Eggert  <eggert@twinsun.com>
51426
51427         * lib/modechange.c: Do not assume that mode_t uses the
51428         traditional octal encoding.  E.g. "chmod 1 FOO" should set
51429         the other-execute bit of FOO even if S_IXOTH != 1.
51430
51431         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
51432         WOTH, XOTH, ALLM): New macros.
51433         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
51434          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
51435         Use them.
51436         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
51437         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
51438         (mode_compile):
51439         No need to use uintmax_t; unsigned long is long enough.
51440         Don't bother to get suffix since we don't use it.
51441
51442 2000-12-26  Jim Meyering  <meyering@lucent.com>
51443
51444         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
51445         better with autoheader.
51446
51447 2000-12-24  Jim Meyering  <meyering@lucent.com>
51448
51449         * lib/hash.c (is_prime): Return explicit boolean values.
51450         (hash_get_first): Return NULL to appease Irix5.6's 89.
51451         Reported by Nelson Beebe.
51452
51453 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
51454
51455         * lib/localcharset.c (locale_charset): Add support for Win32.
51456
51457 2000-12-18  Paul Eggert  <eggert@twinsun.com>
51458
51459         * lib/physmem.h, lib/physmem.c: New files.
51460
51461         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
51462         (noinst_HEADERS): Add physmem.h.
51463
51464         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
51465         't' for compatibility with Solaris 8 sort.
51466
51467 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
51468
51469         * lib/config.charset: Add support for BeOS.
51470
51471 2000-12-17  Jim Meyering  <meyering@lucent.com>
51472
51473         * m4/dos.m4 (jm_AC_DOS): New file and macro.
51474         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
51475
51476 2000-12-16  Jim Meyering  <meyering@lucent.com>
51477
51478         This bug had a serious impact on chown: `chown N:M FILE' (for integer
51479         N and M) would have treated it like `chown N:N FILE'.
51480
51481         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
51482
51483 2000-12-16  Jim Meyering  <meyering@lucent.com>
51484
51485         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
51486         SHELLS_FILE to a file name that's useful on djgpp systems.
51487         Include stdlib.h.
51488         (ADDITIONAL_DEFAULT_SHELLS): Define.
51489         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
51490         Based mostly on a patch from Prashant TR.
51491
51492 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
51493
51494         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
51495         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
51496         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
51497
51498 2000-12-08  Andreas Schwab  <schwab@suse.de>
51499
51500         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
51501         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
51502
51503 2000-12-07  Jim Meyering  <meyering@lucent.com>
51504
51505         * lib/stripslash.c (ISSLASH): Define.
51506         (strip_trailing_slashes): Use ISSLASH rather than comparing against
51507         `/'.
51508         From Prashant TR.
51509
51510         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
51511         (dir_name_r): Declare this function as static.
51512         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
51513         manifest itself on a name containing a mix of slashes and
51514         backslashes.
51515         Make this function work with names starting with a DOS-style
51516         drive letter and colon prefix.
51517         (dir_name): Append `.' if necessary.
51518         Based mostly on patches from Prashant TR and Eli Zaretskii.
51519
51520         * lib/dirname.h (dir_name_r): Remove prototype.
51521
51522 2000-12-06  Paul Eggert  <eggert@twinsun.com>
51523
51524         * m4/off_t-format.m4: Remove this file.
51525         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
51526
51527 2000-12-06  Jim Meyering  <meyering@lucent.com>
51528
51529         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
51530         replacement strtoull, we may well need the replacement strtoul, too.
51531         Check for declarations of strtoul and strtoull.
51532         Check for strtol.  Mainly as a cue to cause automake to include
51533         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
51534         Check for limits.h -- strtol.c needs it.
51535
51536 2000-12-05  Jim Meyering  <meyering@lucent.com>
51537
51538         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
51539
51540 2000-12-04  Jim Meyering  <meyering@lucent.com>
51541
51542         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
51543         Also include memory.h, stdlib.h, unistd.h if appropriate.
51544         Reported by Andreas Jaeger (conflicting declaration of malloc).
51545
51546 2000-12-02  Jim Meyering  <meyering@lucent.com>
51547
51548         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
51549         * m4/jm-macros.m4 (jm_MACROS): require it.
51550
51551 2000-12-02  Jim Meyering  <meyering@lucent.com>
51552
51553         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
51554
51555 2000-12-01  Paul Eggert  <eggert@twinsun.com>
51556
51557         * lib/memrchr.c: Include <config.h> before any system include file.
51558
51559 2000-11-30  Jim Meyering  <meyering@lucent.com>
51560
51561         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
51562
51563 2000-11-30  Jim Meyering  <meyering@lucent.com>
51564
51565         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
51566
51567 2000-11-29  Paul Eggert  <eggert@twinsun.com>
51568
51569         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
51570
51571 2000-11-26  Jim Meyering  <meyering@lucent.com>
51572
51573         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
51574
51575 2000-11-22  Paul Eggert  <eggert@twinsun.com>
51576
51577         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
51578         size of (size_t) -1; it's not portable.
51579
51580 2000-11-17  Jim Meyering  <meyering@lucent.com>
51581
51582         * lib/strstr.c: Update from GNU libc.
51583
51584 2000-11-17  Akim Demaille  <akim@epita.fr>
51585
51586         * lib/obstack.h: Formatting changes.
51587         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
51588         prevent type checking.
51589         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
51590         cast the value to (void *): assigning a `foo *' to a `void *'
51591         variable is valid.
51592         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
51593
51594 2000-11-16  Jim Meyering  <meyering@lucent.com>
51595
51596         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
51597
51598 2000-11-11  Jim Meyering  <meyering@lucent.com>
51599
51600         * lib/error.c: Add a couple #includes, merging from GNU libc version.
51601
51602 2000-11-10  Jim Meyering  <meyering@lucent.com>
51603
51604         * lib/obstack.h: Update from GNU libc.
51605         * lib/obstack.c: Likewise.
51606
51607 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
51608
51609         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
51610
51611 2000-11-06  Paul Eggert  <eggert@twinsun.com>
51612
51613         * lib/getusershell.c (setusershell): Use rewind rather than
51614         fseek/fseeko, to avoid configuration hassles with fseeko.
51615         Don't bother opening SHELLS_FILE if shellstream is NULL;
51616         it's not necessary.
51617
51618 2000-11-05  Jim Meyering  <meyering@lucent.com>
51619
51620         * lib/makepath.h (make_dir): Declare.
51621         * lib/makepath.c (make_dir): Remove `static' attribute.
51622         Tweak a comment.
51623
51624 2000-11-04  Jim Meyering  <meyering@lucent.com>
51625
51626         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
51627
51628 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
51629
51630         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
51631         last one in a bucket, advance to the next bucket.
51632
51633 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
51634
51635         * lib/fnmatch.c: Do not comment out all the code if we are using
51636         the GNU C library, because in some cases we are replacing buggy
51637         code in the GNU C library itself.
51638
51639 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
51640
51641         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
51642         (regex_compile): Catch bogus \(\1\).
51643
51644 2000-10-30  Paul Eggert  <eggert@twinsun.com>
51645
51646         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
51647         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
51648         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
51649
51650 2000-10-30  Paul Eggert  <eggert@twinsun.com>
51651
51652         * lib/error.h, getline.h, modechange.h:
51653         Remove "2000" from Copyright line, as the file hasn't been
51654         changed this year other than in the copyright notice.
51655
51656         * lib/xalloc.h: Add "2000" to Copyright line, as this file
51657         was changed this year.
51658
51659 2000-10-29  Jim Meyering  <meyering@lucent.com>
51660
51661         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
51662         renaming.
51663         * m4/ls-mntd-fs.m4: Likewise
51664
51665 2000-10-29  Jim Meyering  <meyering@lucent.com>
51666
51667         * lib/xstat.in: Fix grammar in comment.
51668
51669 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
51670
51671         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
51672         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
51673         doesn't define __restrict_arr.
51674
51675 2000-10-28  Jim Meyering  <meyering@lucent.com>
51676
51677         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
51678         (jm_PREREQ_MEMCHR): New function.
51679
51680 2000-10-28  Jim Meyering  <meyering@lucent.com>
51681
51682         * lib/memchr.c: Update from libc.
51683         Adjust for portability:
51684         [HAVE_STDLIB_H]: Include stdlib.h.
51685         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
51686         Undef __memchr, too.
51687         [!weak_alias]: Define __memchr to memchr.
51688
51689         * lib/regex.c: Update from libc.
51690         * lib/regex.h: Likewise.
51691         * lib/getopt1.c: Likewise.
51692         * lib/memcmp.c: Likewise.
51693
51694         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
51695         Avoid using fseek, when possible -- it's broken by design.
51696         Patch by Ulrich Drepper.
51697
51698 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
51699
51700         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
51701         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
51702         Giving in to popular pressure to shut up the compiler with casts.
51703
51704 2000-10-26  Jim Meyering  <meyering@lucent.com>
51705
51706         * lib/strftime.c: Update from libc.
51707
51708 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
51709
51710         * regex.c: More `unsigned char' -> `re_char' changes.
51711         Also change several `int' into `re_wchar_t'.
51712         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
51713         (PUSH_FAILURE_POINTER): Don't cast any more.
51714         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
51715         We want GCC to complain, since this piece of code makes
51716         re_match non-reentrant, which *should* be fixed.
51717         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
51718         (EXTEND_BUFFER): Use RETALLOC.
51719         (SET_LIST_BIT): Don't cast.
51720         (re_wchar_t): New type.
51721         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
51722         that those two functions will always properly return.
51723         (IMMEDIATE_QUIT_CHECK): Cast to void.
51724         (analyse_first): Use recursion rather than an explicit stack.
51725         (re_compile_fastmap): Can't fail anymore.
51726         (re_search_2): Don't check re_compile_fastmap for failure.
51727         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
51728         Now also sets the new value (passed in a new argument).
51729         (re_match_2_internal): Use it.
51730         Also, use a new var `reg' of type size_t when looping through regs
51731         rather than reuse the inappropriate `mcnt'.
51732
51733 2000-10-25  Jim Meyering  <meyering@lucent.com>
51734
51735         * lib/obstack.c: Update from libc.
51736
51737 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
51738
51739         * regex.c (regex_compile): Change the way of handling a range from
51740         a char less than 256 to a char not less than 256.
51741
51742 2000-10-24  Andrew Innes  <andrewi@gnu.org>
51743
51744         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
51745         NT-Emacs only.
51746         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
51747         so that re_search functions only quit when callers expect them to.
51748
51749 2000-10-23  Jim Meyering  <meyering@lucent.com>
51750
51751         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
51752         wrong.  That set_locale call must not have any side effects.
51753         From Paul Eggert.
51754
51755 2000-10-22  Jim Meyering  <meyering@lucent.com>
51756
51757         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
51758         [CYCLIC]: Remove now-unused definition.
51759
51760         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
51761         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
51762         Suggestion from Ulrich Drepper.
51763
51764 2000-10-21  Jim Meyering  <meyering@lucent.com>
51765
51766         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
51767         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
51768         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
51769
51770 2000-10-21  Jim Meyering  <meyering@lucent.com>
51771
51772         * lib/dirname.c (memrchr): Declare if necessary.
51773         (dir_name): Remove the restriction that there be no
51774         trailing slashes.  Now, this code skips past them, effectively
51775         ignoring them.
51776         [TEST_DIRNAME] (main): New unit tests.
51777
51778         * lib/memrchr.c: New file from GNU libc.
51779         Undef __memrchr, too.
51780         [!weak_alias]: Define __memrchr to memrchr.
51781         Guard weak_alias use with `#ifdef weak_alias'.
51782
51783 2000-10-21  Jim Meyering  <meyering@lucent.com>
51784
51785         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
51786         (dir_name): Use dir_name_r.
51787         * lib/dirname.h (dir_name_r): Declare it.
51788
51789 2000-10-17  Jim Meyering  <meyering@lucent.com>
51790
51791         * lib/quote.h (PARAMS): Define and use.
51792         Reported by Akim Demaille.
51793
51794         * lib/getopt.c: Update from libc.
51795
51796 2000-10-16  Jim Meyering  <meyering@lucent.com>
51797
51798         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
51799         setlocale.
51800         From Jan Fedak.
51801
51802 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
51803
51804         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
51805
51806 2000-09-25  Jim Meyering  <meyering@lucent.com>
51807
51808         * lib/md5.h (rol): Define (from GnuPG).
51809
51810         * lib/sha.c: Give credit (GnuPG) where due.
51811         (M): Use rol rather than open-coding it.
51812         Add a FIXME comment.
51813
51814 2000-09-21  Jim Meyering  <meyering@lucent.com>
51815
51816         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
51817         Reported by Michael Stone.
51818
51819 2000-09-20  Jim Meyering  <meyering@lucent.com>
51820
51821         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
51822         (noinst_HEADERS): Add sha.h.
51823         Based on code from Scott G. Miller and from GnuPG.
51824
51825 2000-09-18  Jim Meyering  <meyering@lucent.com>
51826
51827         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
51828         LIBS. Otherwise, everyone ends up linking with -lelf for some
51829         configurations.
51830         Reported by Mike Stone.
51831
51832 2000-09-15  Jim Meyering  <meyering@lucent.com>
51833
51834         * lib/regex.c: Update from libc.
51835
51836 2000-09-10  Jim Meyering  <meyering@lucent.com>
51837
51838         * lib/getopt.c (_getopt_internal): Update from glibc.
51839
51840 2000-09-09  Jim Meyering  <meyering@lucent.com>
51841
51842         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
51843         think it should be used as a general replacement for isascii.
51844         * lib/fnmatch.c: Likewise.
51845         * lib/mbswidth.c: Likewise
51846         * lib/regex.c: Likewise.
51847
51848         Don't use atoi.
51849         * lib/userspec.c: Include sys/param.h and limits.h.
51850         Include xstrtol.h.
51851         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
51852         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
51853         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
51854         UID, GID.  Check range.
51855
51856 2000-09-06  Jim Meyering  <meyering@lucent.com>
51857
51858         * lib/getopt.c (_getopt_internal): Update from glibc.
51859
51860 2000-08-30  Jim Meyering  <meyering@lucent.com>
51861
51862         * lib/strftime.c: Merge in changes from GNU libc.
51863
51864 2000-08-26  Jim Meyering  <meyering@lucent.com>
51865
51866         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
51867         * m4/fpending.m4: New file.
51868
51869 2000-08-26  Jim Meyering  <meyering@lucent.com>
51870
51871         * lib/closeout.c: Include "__fpending.h".
51872         (close_stdout_status): Return right away if there's nothing to flush.
51873
51874         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
51875         * lib/__fpending.c: New file.
51876         * lib/__fpending.h: New file.
51877
51878 2000-08-20  Jim Meyering  <meyering@lucent.com>
51879
51880         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
51881         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
51882         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
51883
51884 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
51885
51886         Improve fileutils installation on systems where running
51887         programs (like install) can't be unlinked.
51888         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
51889         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
51890
51891 2000-08-07  Paul Eggert  <eggert@twinsun.com>
51892
51893         Standardize on "memory exhausted" instead of "Memory exhausted"
51894         or "virtual memory exhausted".
51895         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
51896         "virtual memory exhausted".
51897         * lib/same.c (same_name): Invoke xalloc_die instead of printing
51898         our own message.
51899         * lib/userspec.c (parse_user_spec): Likewise.
51900         * lib/bumpalloc.h: comment fix
51901         * lib/same.c, userspec.c: Include xalloc.h.
51902
51903         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
51904         not char *const and pointing to a constant array.
51905         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
51906         (xrealloc): Comment fix.
51907
51908         * lib/userspec.c (parse_user_spec):
51909         Don't translate a message until just before returning,
51910         to avoid unnecessary translation.
51911
51912 2000-08-07  Jim Meyering  <meyering@lucent.com>
51913
51914         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
51915         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
51916         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
51917         getgroups.c, gethostname.c, getopt.h, group-member.c,
51918         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
51919         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
51920         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
51921         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
51922         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
51923         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
51924         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
51925         yesno.c: Back out Copyright date changes for each file with no change
51926         this year.  This eases coordination with other programs using the same
51927         source code modules.  From Paul Eggert.
51928
51929 2000-08-06  Paul Eggert  <eggert@twinsun.com>
51930
51931         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
51932         not char, for compatibility with glibc 2.1.3 strftime.c.
51933
51934 2000-08-03  Greg McGary  <greg@mcgary.org>
51935
51936         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
51937         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
51938         (EXTEND_BUFFER): Use them.
51939
51940 2000-08-01  Jim Meyering  <meyering@lucent.com>
51941
51942         * lib/dirname.c (ISSLASH): Define.
51943         (BACKSLASH_IS_PATH_SEPARATOR): Define.
51944         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
51945         both `\' and `/' may be use as path separators.
51946         Based on a patch from Prashant TR.
51947
51948 2000-07-31  Paul Eggert  <eggert@twinsun.com>
51949
51950         * lib/quotearg.c (quotearg_n_options): Don't make the initial
51951         slot vector a constant, since it might get modified.
51952
51953 2000-07-31  Jim Meyering  <meyering@lucent.com>
51954
51955         * lib/xmalloc.c: Use `virtual memory exhausted', not
51956         `Memory exhausted'.
51957         * lib/obstack.c (print_and_abort): Likewise.
51958
51959 2000-07-30  Paul Eggert  <eggert@twinsun.com>
51960
51961         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
51962         buffer, so that the caller can always quote one small
51963         component of a "memory exhausted" message in slot 0.
51964         From a suggestion by Jim Meyering.
51965
51966 2000-07-30  Jim Meyering  <meyering@lucent.com>
51967
51968         * lib/makepath.c (make_path): Quote the other instance, too.
51969
51970         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
51971         (STATIC_BUF_SIZE): Define.
51972         (quotearg_n_options): Use only statically allocated storage when
51973         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
51974         than STATIC_BUF_SIZE.
51975
51976 2000-07-29  Jim Meyering  <meyering@lucent.com>
51977
51978         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
51979         * lib/dirname.c (dir_name): Likewise.
51980
51981         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
51982         `/'.
51983
51984         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
51985         (dir_name): Assert that there are no trailing slashes.
51986
51987 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
51988
51989         * lib/mbswidth.h (mbswidth): Add a flags argument.
51990         (mbswidth): New declaration.
51991         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
51992         * lib/mbswidth.c (mbswidth): Add a flags argument.
51993         (mbsnwidth): New function.
51994
51995 2000-07-24  Jim Meyering  <meyering@lucent.com>
51996
51997         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
51998
51999 2000-07-23  Paul Eggert  <eggert@twinsun.com>
52000
52001         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
52002
52003 2000-07-23  Paul Eggert  <eggert@twinsun.com>
52004
52005         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
52006         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
52007         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
52008         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
52009         invoke multibyte primitives.
52010
52011 2000-07-23  Paul Eggert  <eggert@twinsun.com>
52012
52013         * lib/quotearg.c:
52014         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
52015         so that mbstate_t is always defined.
52016
52017         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
52018         be 1 in at least one GCC installation, and this configuration
52019         error is likely to be common.  Ignoring MB_LEN_MAX hurts
52020         performance on hosts that have mbrtowc but have only unibyte
52021         locales, but I assume these hosts are rare.
52022
52023 2000-07-23  Paul Eggert  <eggert@twinsun.com>
52024
52025         * lib/mbswidth.c (_XOPEN_SOURCE):
52026         Don't define; this causes problems on Solaris 7.
52027         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
52028
52029 2000-07-23  Jim Meyering  <meyering@lucent.com>
52030
52031         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
52032         too: getgrgid, getpwuid, getuid.
52033
52034 2000-07-23  Jim Meyering  <meyering@lucent.com>
52035
52036         * lib/basename.c (base_name): Add an assertion.
52037
52038 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
52039
52040         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
52041         shadow its mbsinit function.
52042
52043 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
52044
52045         * lib/mbswidth.h: New file.
52046         * lib/mbswidth.c: New file.
52047         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
52048         (noinst_HEADERS): Add mbswidth.h.
52049
52050 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
52051
52052         * lib/config.charset: Add support for FreeBSD. Improve support for
52053         HP-UX and IRIX 6.
52054
52055 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
52056
52057         * m4/mbswidth.m4: New file.
52058         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
52059
52060 2000-07-15  Jim Meyering  <meyering@lucent.com>
52061
52062         * lib/makepath.c: Include quote.h.
52063         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
52064         corresponding argument in a `quote (...)' call.
52065         Give better diagnostics.
52066
52067         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
52068         (noinst_HEADERS): Add quote.h.
52069
52070         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
52071         from tar's src/misc.c.
52072         * lib/quote.h: New file.  Prototypes for same.
52073
52074 2000-07-14  Paul Eggert  <eggert@twinsun.com>
52075
52076         From a suggestion by Bruno Haible.
52077         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
52078         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
52079         to decide whether to define the BeOS workaround macro;
52080         this adjusts to the change to AC_MBSTATE_T.
52081
52082 2000-07-14  Jim Meyering  <meyering@lucent.com>
52083
52084         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
52085         jm_AC_TYPE_UINTMAX_T.
52086
52087 2000-07-13  Paul Eggert  <eggert@twinsun.com>
52088
52089         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
52090
52091         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
52092         quotearg_buffer_restyled): Add support for
52093         clocale_quoting_style.  Undo previous change to
52094         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
52095         and "{RIGHT QUOTATION MARK}" msgids.
52096
52097 2000-07-10  Paul Eggert  <eggert@twinsun.com>
52098
52099         From a suggestion by Bruno Haible.
52100         * m4/mbstate_t.m4 (AC_MBSTATE_T):
52101         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
52102         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
52103         and mbstate_t, to a single-part test that simply defines mbstate_t.
52104         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
52105         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
52106
52107 2000-07-10  Jim Meyering  <meyering@lucent.com>
52108
52109         * m4/strerror_r.m4: Mirror the correction made in autoconf.
52110
52111         * m4/gnu-source.m4: Output to confdefs.h directly.
52112         Suggestion from Akim Demaille.
52113
52114 2000-07-09  Paul Eggert  <eggert@twinsun.com>
52115
52116         The old behavior of quoting `like this' doesn't look good with
52117         newer, ISO-style fonts.  See:
52118         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
52119
52120         Instead, quote "like this" by default.  Let the translator
52121         tailor the locale-specific quoting behavior by providing
52122         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
52123
52124         * lib/quotearg.c (N_): New macro.
52125         (gettext_default): New function.
52126         (quotearg_buffer_restyled): Use
52127         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
52128         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
52129
52130 2000-07-09  Jim Meyering  <meyering@lucent.com>
52131
52132         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
52133         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
52134
52135         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
52136         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
52137
52138 2000-07-09  Jim Meyering  <meyering@lucent.com>
52139
52140         * lib/Most files: Update copyright dates to include 2000.
52141
52142 2000-07-08  Jim Meyering  <meyering@lucent.com>
52143
52144         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
52145         if not defined.
52146         (xgethostname): Remove now-unnecessary #ifdef.
52147         Move declaration of `err' into loop where it's used.
52148
52149 2000-07-05  Paul Eggert  <eggert@twinsun.com>
52150         and Bruno Haible  <haible@clisp.cons.org>
52151
52152         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
52153         only if the test for an object-type mbstate_t fails.  This
52154         prevents us from mistakenly reporting that mbstate_t is a
52155         system object type after we "#define mbstate_t int" to work
52156         around its lack.
52157
52158 2000-07-05  Paul Eggert  <eggert@twinsun.com>
52159         and Bruno Haible  <haible@clisp.cons.org>
52160
52161         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
52162
52163 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
52164
52165         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
52166         to strerror_r.
52167         Include <ctype.h> for use of isalpha.
52168
52169 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
52170
52171         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
52172         by allocating a larger buffer. Test the gethostname return value for
52173         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
52174         returns an error and ENAMETOOLONG isn't defined.
52175
52176 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
52177
52178         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
52179         dimension.
52180
52181 2000-07-04  Jim Meyering  <meyering@lucent.com>
52182
52183         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
52184         of the deprecated AC_CHECKING.
52185
52186 2000-07-04  Jim Meyering  <meyering@lucent.com>
52187
52188         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
52189         Reported by Bruno Haible.
52190
52191 2000-07-04  Jim Meyering  <meyering@lucent.com>
52192
52193         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
52194         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
52195         lacks mbrtowc.
52196
52197 2000-07-03  Paul Eggert  <eggert@twinsun.com>
52198
52199         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
52200         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
52201
52202 2000-07-03  Paul Eggert  <eggert@twinsun.com>
52203         and Bruno Haible  <haible@clisp.cons.org>
52204
52205         * lib/quotearg.c (mbrtowc):
52206         Assign to *pwc, and return 1 only if result is nonzero.
52207         (iswprint): Use ISPRINT when substituting our own mbrtowc.
52208
52209 2000-07-03  Jim Meyering  <meyering@lucent.com>
52210
52211         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
52212
52213 2000-07-03  Jim Meyering  <meyering@lucent.com>
52214
52215         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
52216         This is necessary to get a definition of e.g., UTMP_FILE on
52217         HP-UX 10.20.
52218         From Bob Proulx.
52219
52220 2000-07-02  Jim Meyering  <meyering@lucent.com>
52221
52222         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
52223
52224         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
52225         AC_LIBOBJ(function_name).
52226         * m4/chown.m4: Likewise.
52227         * m4/fnmatch.m4: Likewise.
52228         * m4/ftruncate.m4: Likewise.
52229         * m4/getgroups.m4: Likewise.
52230         * m4/getline.m4: Likewise.
52231         * m4/group-member.m4: Likewise.
52232         * m4/jm-macros.m4: Likewise.
52233         * m4/lstat.m4: Likewise.
52234         * m4/malloc.m4: Likewise.
52235         * m4/memcmp.m4: Likewise.
52236         * m4/nanosleep.m4: Likewise.
52237         * m4/putenv.m4: Likewise.
52238         * m4/realloc.m4: Likewise.
52239         * m4/regex.m4: Likewise.
52240         * m4/stat.m4: Likewise.
52241         * m4/strftime.m4: Likewise.
52242
52243 2000-07-02  Jim Meyering  <meyering@lucent.com>
52244
52245         * lib/quotearg.c (mbstate_t): Don't define here.
52246
52247 2000-07-02  Jim Meyering  <meyering@lucent.com>
52248
52249         * lib/nanosleep.c (SIGCONT): Define if not already defined.
52250
52251 2000-07-01  Jim Meyering  <meyering@lucent.com>
52252
52253         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
52254
52255 2000-07-01  Jim Meyering  <meyering@lucent.com>
52256
52257         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
52258         problem.
52259
52260 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
52261
52262         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
52263         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
52264
52265 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
52266
52267         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
52268         per change in ../m4/ls-mntd-fs.m4.
52269         (read_filesystem_list): Ignore symbolic links.
52270
52271 2000-06-29  Jim Meyering  <meyering@lucent.com>
52272
52273         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
52274         for declaration of strcmp.
52275
52276         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
52277
52278         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
52279         Avoid warning by casting result to `char *' to remove `const'.
52280
52281 2000-06-28  Jim Meyering  <meyering@lucent.com>
52282
52283         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
52284         included by quotearg.c, for which we perform this test.  From
52285         Bruno Haible.
52286
52287 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
52288
52289         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
52290         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
52291         <utmpx.h> exists, put readutmp.o into LIBOBJS.
52292
52293 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
52294
52295         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
52296
52297 2000-06-26  Paul Eggert  <eggert@twinsun.com>
52298
52299         savedir now sets errno on failure and invokes xmalloc to get memory.
52300         Fix a couple of other minor bugs while we're at it.
52301
52302         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
52303         (NAMLEN): Remove macro.
52304         (malloc, realloc): Remove decls.
52305         (stpcpy): Likewise.
52306         ("xalloc.h"): Include.
52307         (NAME_SIZE_DEFAULT): New macro.
52308         (savedir): Use xmalloc / xrealloc to allocate memory.
52309         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
52310         Skip "" directory entries.
52311         Use strlen to calculate directory entry length, since the old method
52312         is rarely used these days and isn't worth supporting.
52313         Don't use a pointer after freeing it.
52314         Check for integer overflow when calculating allocation size.
52315         Use memcpy to copy entries, instead of stpcpy.
52316         Set errno properly when returning NULL.
52317         Check for readdir error.
52318
52319 2000-06-26  Jim Meyering  <meyering@lucent.com>
52320
52321         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
52322
52323 2000-06-25  Jim Meyering  <meyering@lucent.com>
52324
52325         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
52326         Linux header bug when _XOPEN_SOURCE is defined to 500.
52327
52328 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
52329
52330         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
52331         deficiency.
52332
52333 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
52334
52335         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
52336         Include xalloc.h.
52337         Don't include <stdlib.h>.  Don't declare malloc, realloc.
52338
52339 2000-06-24  Jim Meyering  <meyering@lucent.com>
52340
52341         * m4/strerror_r.m4: Revive this file -- to try out an experimental
52342         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
52343         for which strerror does return char*, but which lacks a conveniently
52344         accessible declaration of the function.  If the compile-test says
52345         strerror_r doesn't work, then resort to a `run'-test that works on
52346         BeOS and segfaults on DEC Unix.
52347
52348 2000-06-24  Jim Meyering  <meyering@lucent.com>
52349
52350         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
52351
52352 2000-06-23  Paul Eggert  <eggert@twinsun.com>
52353
52354         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
52355         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
52356
52357 2000-06-23  Paul Eggert  <eggert@twinsun.com>
52358
52359         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
52360         (mbrtowc, mbstate_t): Define substitutes if
52361         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
52362         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
52363         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
52364
52365 2000-06-23  Jim Meyering  <meyering@lucent.com>
52366
52367         * m4/afs.m4: Add missing AC_MSG_RESULT.
52368         Reported by Bruno Haible.
52369
52370         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
52371         Suggestion from Bruno Haible.
52372
52373 2000-06-23  Jim Meyering  <meyering@lucent.com>
52374
52375         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
52376
52377 2000-06-21  Jim Meyering  <meyering@lucent.com>
52378
52379         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
52380
52381 2000-06-21  Jim Meyering  <meyering@lucent.com>
52382
52383         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
52384         (noinst_HEADERS): Add getstr.h.
52385
52386         * lib/getline.c (getstr): Move into a separate file.
52387         * lib/getstr.c (getstr): New file, extracted from getline.c, with
52388         the following changes: new parameter, delim2; both delim[12]
52389         parameters have type `int', not `char'.  The latter would lose
52390         with 8-bit delimiters.
52391         * lib/getstr.h: New file.
52392
52393 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
52394
52395         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
52396         than 1024, return a memory chunk of least possible size, instead
52397         of size PATH_MAX + 2. In the loop, increment the size proportionally.
52398         Use free/xmalloc instead of xrealloc to avoid copying for very long
52399         paths.
52400
52401 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
52402
52403         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
52404         the empty string.
52405
52406 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
52407
52408         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
52409         address, not strdup.  Include <stdlib.h> and don't declare free().
52410
52411 2000-06-19  Jim Meyering  <meyering@lucent.com>
52412
52413         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
52414
52415 2000-06-18  Jim Meyering  <meyering@lucent.com>
52416
52417         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
52418
52419         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
52420         `checking whether...' message to be consistent with that of the
52421         lstat test.
52422
52423 2000-06-18  Jim Meyering  <meyering@lucent.com>
52424
52425         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
52426         Besides, these days every porting target provides a mkdir function.
52427
52428         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
52429         needed. (this snippet comes from src/system.h).
52430
52431 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
52432
52433         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
52434
52435 2000-06-15  Paul Eggert  <eggert@twinsun.com>
52436
52437         * lib/human.c (adjust_value): New function.
52438         (human_readable_inexact): Apply rounding style even when
52439         printing approximate values.
52440
52441 2000-06-14  Paul Eggert  <eggert@twinsun.com>
52442
52443         * lib/human.c (human_readable_inexact): Allow an input block
52444         size that is not a multiple of the output block size, and vice versa.
52445         Reported by Piergiorgio Sartor.
52446
52447 2000-06-14  Paul Eggert  <eggert@twinsun.com>
52448
52449         * lib/getdate.y (get_date): Apply relative times after time
52450         zone indicator, not before.  Reported by Todd A. Jacobs.
52451
52452 2000-06-13  Jim Meyering  <meyering@lucent.com>
52453
52454         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
52455
52456         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
52457
52458 2000-06-12  Paul Eggert  <eggert@twinsun.com>
52459
52460         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
52461
52462 2000-06-12  Jim Meyering  <meyering@lucent.com>
52463
52464         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
52465         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
52466         optional argument.
52467         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
52468         the optional argument, `lib'.
52469
52470 2000-06-08  Jim Meyering  <meyering@lucent.com>
52471
52472         * m4/largefile.m4: Remove file (now that it's part of autoconf).
52473
52474 2000-06-04  Paul Eggert  <eggert@twinsun.com>
52475
52476         Rewrite largefile configuration so that we don't need to run
52477         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
52478         AC_CANONICAL_HOST in configure.in -- jmm]
52479
52480         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
52481         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
52482         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
52483         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
52484         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
52485         All uses changed.
52486         Instead of inspecting the output of getconf, try to compile the
52487         test program without and with the macro definition.
52488         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
52489         for getconf.  Instead, check for the needed flags by compiling
52490         test programs.
52491
52492 2000-06-04  Paul Eggert  <eggert@twinsun.com>
52493
52494         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
52495
52496 2000-06-04  Jim Meyering  <meyering@lucent.com>
52497
52498         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
52499         SunOS 4.1.4 for which gid_t is an unsigned type.
52500
52501 2000-06-03  Jim Meyering  <meyering@lucent.com>
52502
52503         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
52504         now that autoconf requires that.
52505
52506         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
52507         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
52508         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
52509
52510 2000-06-03  Jim Meyering  <meyering@lucent.com>
52511
52512         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
52513
52514 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
52515
52516         * m4/glibc21.m4: New file.
52517         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
52518
52519 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
52520
52521         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
52522         newer, don't install charset.alias.
52523         * lib/config.charset: Change the Linux/glibc rules so they become empty
52524         on glibc-2.1 or newer.
52525
52526 2000-06-02  Jim Meyering  <meyering@lucent.com>
52527
52528         * lib/mountlist.c: Back out last change.  Instead, do this...
52529         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
52530         me_dummy member using the same `ignore'-testing code.
52531         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
52532         fs_type strings.
52533         From Mark D. Roth.
52534
52535 2000-05-29  Jim Meyering  <meyering@lucent.com>
52536
52537         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
52538         mounts with the `ignore' attribute.  Based on a patch from
52539         Mark D. Roth.
52540
52541 2000-05-28  Jim Meyering  <meyering@lucent.com>
52542
52543         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
52544         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52545         * m4/stat.m4: Likewise.
52546         * m4/lstat.m4: Likewise.
52547         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
52548
52549         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
52550         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
52551
52552 2000-05-26  Jim Meyering  <meyering@lucent.com>
52553
52554         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
52555
52556 2000-05-24  Jim Meyering  <meyering@lucent.com>
52557
52558         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
52559         autoconf requires that.
52560         * m4/lib-check.m4: Likewise.
52561         * m4/jm-macros.m4: Likewise.
52562         * m4/strftime.m4: Likewise.
52563
52564         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
52565         AC_CHECK_DECLS, now that autoconf requires that.
52566
52567 2000-05-22  Jim Meyering  <meyering@lucent.com>
52568
52569         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52570         * m4/lstat.m4: Likewise.
52571
52572 2000-05-22  Jim Meyering  <meyering@lucent.com>
52573
52574         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
52575
52576 2000-05-20  Jim Meyering  <meyering@lucent.com>
52577
52578         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
52579         (jm_PREREQ): Use it.
52580
52581 2000-05-18  Jim Meyering  <meyering@lucent.com>
52582
52583         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
52584         back, too, since it may have been modified by allocate_entry.
52585         (hash_delete): Rewrite to use neither the assignment operator
52586         nor the comma operator in an if-expression.
52587
52588 2000-05-15  Paul Eggert  <eggert@twinsun.com>
52589
52590         * lib/closeout.c:
52591         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
52592         Remove; no longer needed.
52593         "quotearg.h": Add include.
52594         (file_name): Do not bother to explicitly initialize to NULL; it's less
52595         efficient on some hosts.
52596         (close_stdout_status): Remove test as to whether stdout was already
52597         closed; it breaks for the case "echo x | sort >&-".
52598         Quote file name colons.
52599         Do not assume that _("write error") lacks format strings.
52600
52601 2000-05-15  Jim Meyering  <meyering@lucent.com>
52602
52603         * lib/version-etc.c (version_etc_copyright): Update the copyright
52604         string used in all --version output.
52605
52606 2000-05-14  Jim Meyering  <meyering@lucent.com>
52607
52608         * lib/closeout.c (close_stdout_set_file_name): New function.
52609         (close_stdout_status): Use new file-scoped global.
52610         Return right away if fstat says the stdout file descriptor is invalid.
52611         * lib/closeout.h (close_stdout_set_file_name): Declare.
52612
52613 2000-05-10  Jim Meyering  <meyering@lucent.com>
52614
52615         * lib/closeout.c [default_exit_status]: New file-scoped variable.
52616         (close_stdout_set_status): New function.
52617         * lib/closeout.h (close_stdout_set_status): Declare.
52618
52619 2000-05-09  Jim Meyering  <meyering@lucent.com>
52620
52621         * m4/gettext.m4: Rename this...
52622         * m4/libintl.m4: ...to this.
52623
52624 2000-05-08  Jim Meyering  <meyering@lucent.com>
52625
52626         * lib/long-options.c: Don't include closeout.h.
52627         (parse_long_options): Don't call close_stdout for --version.
52628
52629 2000-05-06  Paul Eggert  <eggert@twinsun.com>
52630
52631         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
52632         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
52633         2.1.3 bug.  This avoids a clash when files like regex.c define
52634         _GNU_SOURCE.
52635
52636 2000-05-06  Jim Meyering  <meyering@lucent.com>
52637
52638         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
52639         (AC_REPLACE_FUNCS): Add strnlen.
52640
52641         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
52642         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
52643
52644         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
52645         AC_SEARCH_LIBS call for nanosleep.
52646         (LIB_NANOSLEEP): Set and AC_SUBST.
52647
52648 2000-05-06  Jim Meyering  <meyering@lucent.com>
52649
52650         * lib/strnlen.c: Undefine __strnlen and strnlen.
52651         [!weak_alias]: Define __strnlen to strnlen.
52652
52653         * lib/atexit.c: New file, from libiberty.
52654
52655 2000-05-06  Jim Meyering  <meyering@lucent.com>
52656
52657         * lib/closeout.c (close_stdout_status): Also check for errors on the
52658         stderr stream.
52659
52660 2000-05-05  Jim Meyering  <meyering@lucent.com>
52661
52662         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
52663         AC_SEARCH_LIBS call for clock_gettime.
52664         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
52665
52666         * m4/search-libs.m4: Update from autoconf.
52667
52668         su doesn't work on Solaris 2.6.
52669         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
52670         <shadow.h>.  Reported by Dragos Harabor.
52671
52672 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
52673
52674         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
52675         memcpy instead of xmalloc, xrealloc, path_concat.
52676         (locale_charset): Treat empty environment variables as absent.
52677         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
52678
52679 2000-05-04  Jim Meyering  <meyering@lucent.com>
52680
52681         * lib/getopt.c: Update from glibc.
52682         * lib/obstack.c: Likewise.
52683         * lib/obstack.h: Likewise.
52684         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
52685         file
52686
52687         * lib/regex.h: Likewise.
52688         * lib/strndup.c: Likewise.
52689         * lib/strnlen.c: New file, from glibc.
52690
52691 2000-05-03  Jim Meyering  <meyering@lucent.com>
52692
52693         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
52694
52695 2000-05-02  Paul Eggert  <eggert@twinsun.com>
52696
52697         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
52698         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
52699         compile-time test, rather than inspecting host and OS, to
52700         decide whether to define _LARGEFILE_SOURCE.
52701
52702 2000-05-01  Jim Meyering  <meyering@lucent.com>
52703
52704         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
52705
52706         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
52707         Based on a patch from Bruno Haible.
52708
52709 2000-05-01  Jim Meyering  <meyering@lucent.com>
52710
52711         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
52712
52713 2000-04-29  Jim Meyering  <meyering@lucent.com>
52714
52715         * lib/path-concat.c: Declare strdup only if it's not defined.
52716         * lib/canon-host.c: Likewise.
52717
52718 2000-04-28  Jim Meyering  <meyering@lucent.com>
52719
52720         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
52721         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
52722         is included first, then limits.h is included by locale.h by libintl.h.
52723         From John David Anglin.
52724
52725 2000-04-25  Jim Meyering  <meyering@lucent.com>
52726
52727         * lib/makepath.c (S_IRWXUGO): Define.
52728         (make_path): Always perform explicit chmod if MODE specifies any
52729         of the `special' permission bits.  Prompted by a bug report against
52730         install from Mate Wierdl and Joost van Baal.
52731
52732 2000-04-18  Jim Meyering  <meyering@lucent.com>
52733
52734         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
52735         (jm_PREREQ): Use it.
52736
52737 2000-04-18  Jim Meyering  <meyering@lucent.com>
52738
52739         * lib/README: New file.
52740
52741         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
52742         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
52743
52744 2000-04-17  Jim Meyering  <meyering@lucent.com>
52745
52746         Get it right :-)
52747         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
52748         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
52749         Suggestion from Akim Demaille.
52750
52751 2000-04-17  Jim Meyering  <meyering@lucent.com>
52752
52753         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
52754         the definition of it to rpl_strftime also defined-away the system's
52755         declaration.
52756
52757 2000-04-15  Jim Meyering  <meyering@lucent.com>
52758
52759         Use `C' to denote so-called `contiguous' files, the same way
52760         that tar does.
52761         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
52762         (ftypelet): Use S_ISCTG.
52763         From Michael Deutschmann.
52764
52765 2000-04-14  Jim Meyering  <meyering@lucent.com>
52766
52767         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
52768         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
52769         clobbered.
52770
52771 2000-04-14  Jim Meyering  <meyering@lucent.com>
52772
52773         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
52774
52775 2000-04-13  Jim Meyering  <meyering@lucent.com>
52776
52777         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
52778         AH_VERBATIM to insert required #ifndef into config.h.in.
52779         Suggestion from Akim Demaille.
52780
52781 2000-04-12  Jim Meyering  <meyering@lucent.com>
52782
52783         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
52784         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
52785         Christian Krackowizer.
52786
52787         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
52788         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
52789         (AC_SYS_LARGEFILE): Require.
52790         (AM_C_PROTOTYPES): Require.
52791
52792 2000-04-08  Jim Meyering  <meyering@lucent.com>
52793
52794         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
52795         names don't conflict.  Reported by Eli Zaretskii.
52796
52797 2000-04-07  Jim Meyering  <meyering@lucent.com>
52798
52799         * lib/putenv.c: Move inclusion of errno.h so it follows that of
52800         sys/types.h, to work around system header problems on AIX 3.2.5.
52801         From Bruno Haible.
52802
52803 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
52804
52805         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
52806         bug.  Deal with the different error behavior of Irix iconv.
52807
52808 2000-04-05  Paul Eggert  <eggert@twinsun.com>
52809
52810         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
52811         IRIX if the installer said otherwise.
52812
52813 2000-04-05  Jim Meyering  <meyering@lucent.com>
52814
52815         Portability tweaks required for ultrix4.3.
52816         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
52817         (jm_CHECK_DECLS): Add getutent to the list of functions.
52818         (_jm_DECL_HEADERS): Add utmpx.h.
52819         From John David Anglin.
52820
52821         * m4/strftime.m4: Back out the 2000-04-02 change.
52822         Instead of that change, simply undefine putenv in the test program.
52823
52824 2000-04-05  Jim Meyering  <meyering@lucent.com>
52825
52826         Portability tweaks required for ultrix4.3.
52827         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
52828         getutent.
52829         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
52830         * lib/canon-host.c: Declare strdup.
52831         * lib/path-concat.c: Likewise.
52832         From John David Anglin.
52833
52834 2000-04-04  Jim Meyering  <meyering@lucent.com>
52835
52836         Be more DOS 8.3-friendly.
52837         * lib/ref-add.sin: Renamed from ref-add.sed.in.
52838         * lib/ref-del.sin: Renamed from ref-del.sed.in.
52839         * lib/Makefile.am: Reflect renaming.
52840         Reported by Eli Zaretskii.
52841
52842         Use a temporary file name that won't clash with `charset.alias'
52843         in the DOS 8.3 name space.
52844         * lib/Makefile.am (charset_tmp): Define.
52845         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
52846         (uninstall-local): Likewise.
52847         Reported by Eli Zaretskii.
52848
52849 2000-04-03  Jim Meyering  <meyering@lucent.com>
52850
52851         * m4/gettext.m4: Fix typo in comment.
52852
52853         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
52854         textutils/configure.in).  Suggestion from Paul Eggert.
52855         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
52856
52857 2000-04-02  Paul Eggert  <eggert@twinsun.com>
52858
52859         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
52860         variable in the shell rather than using putenv, which isn't
52861         portable.  This avoids the configure-time inter-test dependency
52862         on the potentially-renamed putenv function.
52863
52864 2000-03-30  Paul Eggert  <eggert@twinsun.com>
52865
52866         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
52867         before checking struct stat.st_blksize, so that
52868         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
52869
52870 2000-03-29  Paul Eggert  <eggert@twinsun.com>
52871
52872         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
52873         since strftime.c uses HAVE_STRFTIME to decide whether to use
52874         the underlying strftime.
52875
52876 2000-03-29  Paul Eggert  <eggert@twinsun.com>
52877
52878         * lib/time/strftime.c (my_strftime): Make sure we call the system
52879         strftime, not ourselves, when invoking the underlying strftime.
52880
52881 2000-03-24  Jim Meyering  <meyering@lucent.com>
52882
52883         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
52884         (charset_alias): Define.
52885         (install-exec-local): Factor out common code.
52886         (uninstall-local): Split lines longer than 80.
52887         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
52888         (SUFFIXES): Define.
52889         (.sed.in.sed): New rule.  Don't redirect directly to $@.
52890         (CLEANFILES): Add ref-add.sed and ref-del.sed.
52891
52892 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
52893
52894         * lib/config.charset: Output a line containing "Packages using this
52895         file".
52896         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
52897         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
52898         ref-del.sed): New rules.
52899
52900 2000-03-17  Jim Meyering  <meyering@lucent.com>
52901
52902         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
52903         Otherwise, include <strings.h>
52904
52905 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
52906
52907         * lib/unicodeio.c (utf8_wctomb): New function.
52908         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
52909         format instead of in UCS-4 with platform dependent endianness.
52910
52911 2000-03-10  Jim Meyering  <meyering@lucent.com>
52912
52913         * m4/lib-check.m4: Look for getspnam in -lgen, too.
52914         From Marco Franzen.
52915
52916 2000-03-07  Paul Eggert  <eggert@twinsun.com>
52917
52918         * lib/savedir.c (savedir): Work even if directory size is
52919         negative; this can happen with some screwy NFS configurations.
52920
52921 2000-03-06  Jim Meyering  <meyering@lucent.com>
52922
52923         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
52924         if it's NULL (because we ran out of memory).  From Bruno Haible.
52925
52926 2000-03-05  Jim Meyering  <meyering@lucent.com>
52927
52928         * lib/localcharset.c ("path-concat.h"): Include.
52929         (get_charset_aliases): Use path_concat instead of ANSI string
52930         concatenation.
52931
52932         * lib/unicodeio.h (PARAMS): Define.
52933         Use it to guard prototype.
52934
52935 2000-03-04  Jim Meyering  <meyering@lucent.com>
52936
52937         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
52938         for lib/localcharset.c.
52939
52940 2000-03-04  Jim Meyering  <meyering@lucent.com>
52941
52942         * lib/Makefile.am (install-exec-local): Create $(libdir) before
52943         installing into it.
52944         (uninstall-local): Uncomment this rule so `make distcheck' works
52945         once again.
52946
52947         * lib/unicodeio.c (<errno.h>): Include it.
52948         (errno): Declare if not defined.
52949
52950         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
52951
52952         * lib/config.charset: New version, incorporating remarks from a linux
52953         i18n mailing list.  From Bruno Haible.
52954
52955 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
52956
52957         * m4/codeset.m4: New file.
52958         * m4/iconv.m4: New file.
52959         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
52960
52961 2000-03-03  Jim Meyering  <meyering@lucent.com>
52962
52963         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
52964
52965 2000-03-02  Jim Meyering  <meyering@lucent.com>
52966
52967         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
52968         the messages come out on separate lines.
52969
52970         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
52971         rather than jm_CHECK_DECLARATIONS.
52972         * m4/decl.m4: Remove now-unused file.
52973
52974         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
52975         geteuid.
52976
52977 2000-03-02  Jim Meyering  <meyering@lucent.com>
52978
52979         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
52980
52981 2000-03-01  Jim Meyering  <meyering@lucent.com>
52982
52983         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
52984         * lib/unicodeio.c: Likewise.
52985
52986 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
52987
52988         * lib/config.charset: New file.
52989         * lib/localcharset.c: New file.
52990         * lib/unicodeio.h, lib/unicodeio.c: New files.
52991         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
52992         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
52993         (noinst_HEADERS): Add unicodeio.h.
52994         (all-local, install-exec-local, charset.alias): New targets.
52995
52996 2000-02-28  Paul Eggert  <eggert@twinsun.com>
52997
52998         * lib/quotearg.c (ALERT_CHAR): New macro.
52999         (quotearg_buffer_restyled): Use it.
53000
53001 2000-02-27  Jim Meyering  <meyering@lucent.com>
53002
53003         * m4/check-decl.m4: Add getenv to the list.
53004
53005 2000-02-27  Jim Meyering  <meyering@lucent.com>
53006
53007         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
53008         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
53009
53010         * lib/backupfile.c: Guard inclusion of stdlib.h with
53011         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
53012         Declare malloc if needed.
53013
53014         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
53015         `#ifndef HAVE_DECL..'
53016         now that autoconf always defines the HAVE_DECL_ symbols.
53017         * lib/human.c: Likewise.
53018         * lib/same.c: Likewise.
53019         * lib/strtoumax.c: Likewise.
53020
53021         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
53022         declaration check was not run.
53023         * lib/hash.c: Likewise.
53024         * lib/human.c: Likewise.
53025         * lib/same.c: Likewise.
53026         * lib/strtoumax.c: Likewise.
53027
53028         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
53029         `.', then first look up the entire `.'-containing string as a login
53030         name.
53031
53032 2000-02-23  Jim Meyering  <meyering@lucent.com>
53033
53034         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
53035         in place of my hack.
53036
53037 2000-02-18  Paul Eggert  <eggert@twinsun.com>
53038
53039         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
53040         (textint): New typedef.
53041         (parser_control): Member year changed from int to textint.
53042         All uses changed.
53043         (YYSTYPE): Removed; replaced by %union with int and textint members.
53044         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
53045         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
53046         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
53047         (tSNUMBER, tUNUMBER): Now of type <textintval>.
53048         (date, number, to_year): Use width of number in digits, not its value,
53049         to determine whether it's a 2-digit year, or a 2-digit time.
53050         (yylex): Store number of digits of numeric tokens.
53051         Reported by John Kendall.
53052
53053         (parser_control): Changed from struct parser_control to typedef (for
53054         consistency).  All uses changed.
53055
53056         (tID): Removed; not used.
53057         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
53058
53059 2000-02-14  Paul Eggert  <eggert@twinsun.com>
53060
53061         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
53062         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
53063
53064 2000-02-12  Jim Meyering  <meyering@lucent.com>
53065
53066         * lib/userspec.c (ISDIGIT): Define it.
53067         (isdigit): Remove definition.
53068         (is_number): Use ISDIGIT, not isdigit.
53069         <libintl.h>: Include.
53070         (_ and N_): Define.
53071         (parse_user_spec): Mark translatable strings.
53072
53073 2000-02-10  Jim Meyering  <meyering@lucent.com>
53074
53075         With these changes, nanosleep.[ch] are finally enough like the other
53076         lib/* replacement files to compile on a few more losing systems.
53077
53078         * lib/nanosleep.h: Don't include config.h.
53079         Remove prototype from declaration of nanosleep.
53080         (PARAMS): Remove now-unneeded definition.
53081         * lib/nanosleep.c: #undef nanosleep.
53082         (rpl_nanosleep): Rename from nanosleep.
53083
53084 2000-02-10  Jim Meyering  <meyering@lucent.com>
53085
53086         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
53087         gnu_nanosleep to rpl_nanosleep.
53088
53089 2000-02-09  Jim Meyering  <meyering@lucent.com>
53090
53091         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
53092         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
53093
53094 2000-02-08  Akim Demaille  <akim@epita.fr>
53095
53096         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
53097         `[' and `]' and remove uses of `changequote'.
53098         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
53099         (AC_SYS_LARGEFILE): Likewise.
53100         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
53101         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
53102         of changequote.
53103         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
53104         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
53105         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
53106         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
53107
53108 2000-02-05  Jim Meyering  <meyering@lucent.com>
53109
53110         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
53111         Remove explicit use of AC_HEADER_TIME.  It is required by
53112         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
53113         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
53114         in autoconf whereby the expansion of the latter ended up preceding
53115         the expansion of its prerequisite, AC_HEADER_TIME.
53116         Reported by Volker Borchert.
53117
53118 2000-02-03  Jim Meyering  <meyering@lucent.com>
53119
53120         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
53121
53122 2000-02-03  Jim Meyering  <meyering@lucent.com>
53123
53124         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
53125         rather than with `#if HAVE_UTMPNAME'.
53126
53127 2000-02-02  Jim Meyering  <meyering@lucent.com>
53128
53129         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
53130         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
53131         Reported by Eli Zaretskii.
53132
53133 2000-02-01  Jim Meyering  <meyering@lucent.com>
53134
53135         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
53136
53137 2000-01-31  Jim Meyering  <meyering@lucent.com>
53138
53139         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
53140         functions.  Add the time.h and sys/time.h headers along with the
53141         AC_REQUIRE'ment of AC_HEADER_TIME.
53142
53143 2000-01-31  Jim Meyering  <meyering@lucent.com>
53144
53145         * lib/nanosleep.h (nanosleep): Guard declaration with
53146         `#if ! HAVE_DECL_NANOSLEEP'.
53147         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
53148         the declaration in that vendor's sys/timers.h.
53149         Reported by Christian Krackowizer.
53150
53151         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
53152         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
53153         (ISPRINT): Likewise.
53154         Reported by Tom Tromey.
53155
53156 2000-01-30  Jim Meyering  <meyering@lucent.com>
53157
53158         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
53159
53160         * m4/prereq.m4 (utmp_includes): Define.
53161         Check for ut_user and ut_name members in both struct utmpx
53162         and struct utmp.
53163
53164 2000-01-30  Jim Meyering  <meyering@lucent.com>
53165
53166         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
53167         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
53168         header files where only utmpx.ut_user is declared.
53169
53170         * lib/readutmp.h (UT_USER): Define.
53171
53172 2000-01-29  Jim Meyering  <meyering@lucent.com>
53173
53174         * m4/lib-check.m4: New file containing library-related checks from
53175         fileutils and sh-utils (textutils had none).
53176
53177 2000-01-28  Jim Meyering  <meyering@lucent.com>
53178
53179         * m4/perl.m4: Change format of warning message to look more like that
53180         from the missing script.  Suggestion from François Pinard.
53181
53182 2000-01-25  Jim Meyering  <meyering@lucent.com>
53183
53184         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
53185         well as time.h in the compile check.
53186         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
53187         Fix typo in cross-compiling case: s/yes/no/.
53188
53189 2000-01-23  Jim Meyering  <meyering@lucent.com>
53190
53191         * m4/jm-macros.m4: Move df-related tests here from
53192         fileutils/configure.in
53193
53194         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
53195         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
53196
53197         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
53198         s/space/ac_fsusage_space/.
53199         (jm_FILE_SYSTEM_USAGE): Take two parameters.
53200
53201         * m4/ftruncate.m4: New file (derived from part of
53202         fileutils/configure.in).
53203         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
53204         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
53205
53206         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
53207         AC_SUBST these here, rather than just in sh-util/configure.in, so
53208         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
53209         all the same.
53210         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
53211         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
53212         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
53213         (AC_SUBST(POW_LIBM)): Likewise.
53214         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
53215
53216 2000-01-23  Jim Meyering  <meyering@lucent.com>
53217
53218         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
53219         obstack.c.
53220
53221 2000-01-22  Jim Meyering  <meyering@lucent.com>
53222
53223         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
53224
53225         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
53226
53227         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
53228         configure.in
53229         (AC_CHECK_HEADERS): Likewise for sh-utils.
53230         (AC_CHECK_HEADERS): Likewise for textutils.
53231         Merge the three lists of headers.
53232
53233         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
53234         from fileutils' configure.in.
53235
53236         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
53237         code. Moved tests into their own function (_jm_DECL_HEADERS) in
53238         check-decl.m4.
53239
53240         * m4/check-decl.m4: Use #if rather than #ifdef.
53241         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
53242         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
53243         (_jm_DECL_HEADERS): Define new function.
53244         (jm_CHECK_DECLARATIONS): Require it.
53245
53246 2000-01-22  Jim Meyering  <meyering@lucent.com>
53247
53248         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
53249         [! HAVE_DECL_STRTOULL]: Declare strtoull.
53250         Required for some AIX systems.  Reported by Christian Krackowizer.
53251         [TESTING] (main): New function.
53252
53253         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
53254         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
53255         letters.
53256
53257         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
53258         iswprint.
53259
53260         * lib/strverscmp.c (ISDIGIT): Define.
53261         (strverscmp): Use ISDIGIT, not isdigit.
53262
53263 2000-01-19  Jim Meyering  <meyering@lucent.com>
53264
53265         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
53266         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
53267         defines `struct timespec' in <sys/time.h>
53268
53269         * m4/c-bs-a.m4: Remove uses of changequote altogether.
53270         Thanks to Akim for explaining.
53271
53272 2000-01-17  Paul Eggert  <eggert@twinsun.com>
53273
53274         * lib/nanosleep.c (nanosleep):
53275         Don't use SA_INTERRUPT to decide whether to call sigaction, as
53276         POSIX.1 doesn't require SA_INTERRUPT and some systems
53277         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
53278         it's been part of POSIX.1 since day 1 (in 1988).
53279
53280 2000-01-17  Jim Meyering  <meyering@lucent.com>
53281
53282         * lib/interlock: Remove unused file.  Reported by François Pinard.
53283
53284 2000-01-16  Paul Eggert  <eggert@twinsun.com>
53285
53286         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
53287         alert, backslash, formfeed, and vertical tab unnecessarily in
53288         shell quoting style.
53289
53290 2000-01-16  Jim Meyering  <meyering@lucent.com>
53291
53292         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
53293         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
53294         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
53295         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
53296
53297 2000-01-16  Jim Meyering  <meyering@lucent.com>
53298
53299         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
53300         because the latter didn't work.
53301
53302 2000-01-15  Jim Meyering  <meyering@lucent.com>
53303
53304         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
53305         (AC_REPLACE_FUNCS): Add memcpy and memset.
53306         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
53307         Add strpbrk.
53308         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
53309
53310 2000-01-12  Jim Meyering  <meyering@lucent.com>
53311
53312         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
53313         (jm_PREREQ): Use it.
53314         (jm_PREREQ_READUTMP): New macro.
53315         (jm_PREREQ): Use it.
53316
53317 2000-01-11  Paul Eggert  <eggert@twinsun.com>
53318
53319         Quote multibyte characters correctly.
53320         * m4/c-bs-a.m4: New file.
53321         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
53322         (jm_PREREQ): Use it.
53323
53324 2000-01-11  Paul Eggert  <eggert@twinsun.com>
53325
53326         * m4/uintmax_t.m4: Port to autoconf 2.13.
53327
53328 2000-01-08  Jim Meyering  <meyering@ascend.com>
53329
53330         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
53331         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
53332
53333 2000-01-04  Jim Meyering  <meyering@ascend.com>
53334
53335         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
53336         jm_STRUCT_DIRENT_D_TYPE.
53337         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
53338         jm_STRUCT_DIRENT_D_INO.
53339         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
53340         jm_STRUCT_UTIMBUF.
53341         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
53342         renamings.
53343         * m4/utime.m4: Likewise.
53344
53345         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
53346         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
53347
53348 2000-01-03  Paul Eggert  <eggert@twinsun.com>
53349
53350         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
53351         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
53352
53353 2000-01-02  Jim Meyering  <meyering@ascend.com>
53354
53355         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
53356         remember if this is necessary.
53357
53358 1999-12-26  Jim Meyering  <meyering@ascend.com>
53359
53360         * m4/jm-macros.m4: Use it here.
53361         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
53362
53363 1999-12-23  Jim Meyering  <meyering@ascend.com>
53364
53365         * m4/jm-macros.m4: Check for clock_gettime (moved from
53366         fileutils/configure.in)
53367         Check for gettimeofday.
53368
53369 1999-12-20  Jim Meyering  <meyering@ascend.com>
53370
53371         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
53372         autoconf-2.14a-1999-12-20.
53373
53374 1999-12-19  Jim Meyering  <meyering@ascend.com>
53375
53376         * m4/lstat-slash.m4: New file.
53377         * m4/jm-macros.m4: Use the new macro:
53378         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
53379
53380 1999-12-07  Jim Meyering  <meyering@ascend.com>
53381
53382         * m4/perl.m4: Require that File::Compare be available, too.
53383         Too many systems seem to lack it.
53384
53385         * m4/strftime.m4: Add checks for most of the cpp macros tested in
53386         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
53387
53388 1999-11-18  Paul Eggert  <eggert@twinsun.com>
53389
53390         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
53391         problem with the QNX 4.25 shell, which doesn't propagate exit
53392         status of failed commands inside shell assignments.
53393
53394 1999-11-17  Jim Meyering  <meyering@ascend.com>
53395
53396         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
53397
53398 1999-11-07  Jim Meyering  <meyering@ascend.com>
53399
53400         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
53401
53402 1999-11-06  Jim Meyering  <meyering@ascend.com>
53403
53404         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
53405         * m4/jm-macros.m4 (jm_MACROS): Use it here.
53406
53407 1999-11-05  Jim Meyering  <meyering@ascend.com>
53408
53409         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
53410         configure.in of textutils, fileutils, and sh-utils into this one
53411         (shared between those packages) file.
53412         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
53413         AC_STRUCT_ST_BLKSIZE.
53414
53415 1999-11-03  Jim Meyering  <meyering@ascend.com>
53416
53417         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
53418         of AC_CHECK_TYPE checks includes unistd.h.
53419         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
53420         Suggestion from Akim Demaille.
53421
53422 1999-10-30  Jim Meyering  <meyering@ascend.com>
53423
53424         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
53425         m4-quoted string.
53426         * m4/ls-mntd-fs.m4: Likewise.
53427         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
53428         * m4/jm-winsz1.m4: Likewise.
53429
53430         * m4/const.m4: Remove file, since the fix made it into the experimental
53431         version of autoconf.
53432         * m4/mktime.m4: Likewise.
53433
53434         * m4/check-type.m4: Remove file, now that the latest version of
53435         AC_CHECK_TYPE takes a third arg to specify additional #includes.
53436
53437         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
53438         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
53439         AC_CHECK_TYPE.
53440
53441 1999-10-04  Jim Meyering  <meyering@ascend.com>
53442
53443         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
53444
53445 1999-09-22  Paul Eggert  <eggert@twinsun.com>
53446
53447         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
53448         2.95.1 bug with HP-UX 10.20.
53449
53450 1999-09-17  Jim Meyering  <meyering@ascend.com>
53451
53452         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
53453         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
53454         due to missing strdup (against sh-utils-2.0).
53455
53456 1999-08-29  Jim Meyering  <meyering@ascend.com>
53457
53458         * m4/jm-macros.m4: Require jm_BISON.
53459         * m4/bison.m4: New file.
53460
53461 1999-08-17  Paul Eggert  <eggert@twinsun.com>
53462
53463         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
53464         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
53465
53466 1999-08-05  Jim Meyering  <meyering@ascend.com>
53467
53468         * m4/getline.m4: Rename test file from conftestdata to conftest.data
53469         to avoid conflicts with `conftest' on 8+3 filesystems.
53470         Suggestion from Eli Zaretskii.
53471
53472 1999-08-04  Jim Meyering  <meyering@ascend.com>
53473
53474         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
53475         fileutils and sh-utils (textutils's getline test was inadequate).
53476         (AM_FUNC_GETLINE): Run this test.
53477         (AC_CHECK_FUNCS): Check for getdelim.
53478         Reported by Bob Proulx.
53479
53480 1999-08-02  Jim Meyering  <meyering@ascend.com>
53481
53482         * m4/jm-macros.m4: Add a comment.
53483
53484 1999-08-01  Paul Eggert  <eggert@twinsun.com>
53485
53486         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
53487         <inttypes.h> defines strtoumax as a macro (and not as a
53488         function).
53489
53490 1999-08-01  Paul Eggert  <eggert@twinsun.com>
53491
53492         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
53493         that we can shift, multiply and divide unsigned long long
53494         values; Ultrix cc can't do it.
53495
53496 1999-08-01  Paul Eggert  <eggert@twinsun.com>
53497
53498         * m4/mktime.m4: New file, which is a preview of what should appear
53499         in the next public autoconf release.
53500
53501 1999-08-01  Paul Eggert  <eggert@twinsun.com>
53502
53503         * m4/lfs.m4: Remove this file.
53504         * m4/largefile.m4: New file.  It contains the old contents of
53505         lfs.m4, except that all names with prefix AC_LFS have been
53506         changed to use the prefix AC_SYS_LARGEFILE instead, to be
53507         compatible with future autoconf versions.  Also, some minor m4
53508         quoting problems have been fixed.
53509
53510 1999-08-01  Paul Eggert  <eggert@twinsun.com>
53511
53512         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
53513         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
53514         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
53515         and simplify the shell code.
53516
53517 1999-08-01  Jim Meyering  <meyering@ascend.com>
53518
53519         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
53520         m4.
53521
53522 1999-07-20  Jim Meyering  <meyering@ascend.com>
53523
53524         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
53525
53526 1999-07-15  Jim Meyering  <meyering@ascend.com>
53527
53528         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
53529
53530 1999-05-22  Jim Meyering  <meyering@ascend.com>
53531
53532         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
53533
53534 1999-05-20  Jim Meyering  <meyering@ascend.com>
53535
53536         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
53537         Add a colon after each `then' in case $4 is empty.
53538
53539 1999-05-16  Jim Meyering  <meyering@ascend.com>
53540
53541         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
53542
53543 1999-05-10  Jim Meyering  <meyering@ascend.com>
53544
53545         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
53546
53547         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
53548         AC_FUNC_MKTIME.
53549
53550 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
53551
53552         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
53553
53554 1999-05-04  Paul Eggert  <eggert@twinsun.com>
53555
53556         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
53557         not CPPFLAGS, so that linking works correctly in IRIX.
53558
53559 1999-04-30  Paul Eggert  <eggert@twinsun.com>
53560
53561         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
53562
53563 1999-04-20  Paul Eggert  <eggert@twinsun.com>
53564
53565         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
53566         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
53567         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
53568         jm_AC_TYPE_UNSIGNED_LONG_LONG.
53569         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
53570
53571         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
53572
53573 1999-04-20  Jim Meyering  <meyering@ascend.com>
53574
53575         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
53576         AC_REPLACE xstroull if necessary.  From Paul Eggert.
53577         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
53578
53579 1999-04-18  Jim Meyering  <meyering@ascend.com>
53580
53581         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
53582         * m4/jm-macros.m4: Use it.
53583
53584 1999-04-06  Jim Meyering  <meyering@ascend.com>
53585
53586         * m4/strftime.m4: Remove test for %f.
53587
53588 1999-03-29  Jim Meyering  <meyering@ascend.com>
53589
53590         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
53591         superset of the AC_TYPE_* checks in the textutils, fileutils,
53592         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
53593         AC_TYPE_PID_T.
53594
53595 1999-03-28  Jim Meyering  <meyering@ascend.com>
53596
53597         * m4/jm-macros.m4: Define GNU_PACKAGE here.
53598         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
53599         replaced e.g., in the *.sh files of the sh-utils.
53600
53601 1999-03-20  Jim Meyering  <meyering@ascend.com>
53602
53603         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
53604         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
53605         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
53606
53607 1999-03-19  Jim Meyering  <meyering@ascend.com>
53608
53609         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
53610
53611 1999-03-12  Jim Meyering  <meyering@ascend.com>
53612
53613         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
53614
53615 1999-03-07  Jim Meyering  <meyering@ascend.com>
53616
53617         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
53618         declared.
53619
53620 1999-02-17  Jim Meyering  <meyering@ascend.com>
53621
53622         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
53623         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
53624
53625 1999-02-07  Jim Meyering  <meyering@ascend.com>
53626
53627         * m4/group-member.m4: New file -- extracted from sh-utils'
53628         configure.in.
53629
53630         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
53631         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
53632
53633 1999-02-06  Jim Meyering  <meyering@ascend.com>
53634
53635         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
53636         * m4/fnmatch.m4: Likewise.
53637         * m4/getgroups.m4: Likewise.
53638         * m4/lstat.m4: Likewise.
53639         * m4/malloc.m4: Likewise.
53640         * m4/putenv.m4: Likewise.
53641         * m4/realloc.m4: Likewise.
53642         * m4/regex.m4: Likewise.
53643         * m4/stat.m4: Likewise.
53644         * m4/strftime.m4: Likewise.
53645         Suggestion from Alain Magloire.
53646
53647         * m4/chown.m4: Use `.$ac_objext', not `.o'.
53648         * m4/fnmatch.m4: Likewise.
53649         * m4/getgroups.m4: Likewise.
53650         * m4/getline.m4: Likewise.
53651         * m4/lstat.m4: Likewise.
53652         * m4/malloc.m4: Likewise.
53653         * m4/memcmp.m4: Likewise.
53654         * m4/putenv.m4: Likewise.
53655         * m4/realloc.m4: Likewise.
53656         * m4/regex.m4: Likewise.
53657         * m4/stat.m4: Likewise.
53658         * m4/strftime.m4: Likewise.
53659         Suggestion from Alain Magloire.
53660
53661         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
53662         an argument.
53663
53664         * m4/regex.m4: Add a run-time Test for proper operation of
53665         re_compile_pattern.
53666
53667 1999-01-31  Jim Meyering  <meyering@ascend.com>
53668
53669         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
53670
53671 1999-01-30  Jim Meyering  <meyering@ascend.com>
53672
53673         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
53674
53675         * m4/jm-mktime.m4: Make this a wrapper around the official
53676         AM_FUNC_MKTIME rather than my private copy, now that the official one
53677         is up to date.
53678         * m4/mktime.m4: Remove file.
53679
53680         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
53681         * m4/uptime.m4: Likewise.
53682         * m4/uintmax_t.m4: Likewise.
53683
53684 1999-01-28  Jim Meyering  <meyering@ascend.com>
53685
53686         * m4/jm-macros.m4: Use jm_AFS.
53687         * m4/afs.m4: New file (from fileutils' configure.in).
53688
53689         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
53690         * m4/chown.m4: Likewise.
53691         * m4/d-ino.m4: Likewise.
53692         * m4/d-type.m4: Likewise.
53693         * m4/fnmatch.m4: Likewise.
53694         * m4/getgroups.m4: Likewise.
53695         * m4/gettext.m4: Likewise.
53696         * m4/jm-mktime.m4: Likewise.
53697         * m4/jm-winsz2.m4: Likewise.
53698         * m4/lcmessage.m4: Likewise.
53699         * m4/ls-mntd-fs.m4: Likewise.
53700         * m4/malloc.m4: Likewise.
53701         * m4/memcmp.m4: Likewise.
53702         * m4/putenv.m4: Likewise.
53703         * m4/realloc.m4: Likewise.
53704         * m4/st_mtim.m4: Likewise.
53705         * m4/strftime.m4: Likewise.
53706
53707 1999-01-16  Jim Meyering  <meyering@ascend.com>
53708
53709         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
53710         (ARGMATCH_DIE_DECL): Define.
53711
53712 1999-01-12  Jim Meyering  <meyering@ascend.com>
53713
53714         * m4/Makefile.am.in: Rewrite to avoid using fmt.
53715         Reported by Lars Hecking.
53716
53717 1999-01-10  Jim Meyering  <meyering@ascend.com>
53718
53719         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
53720         gross kludge.
53721         * m4/inttypes_h.m4: Likewise.
53722         * m4/lstat.m4: Likewise.
53723         * m4/malloc.m4: Likewise.
53724         * m4/readdir.m4: Likewise.
53725         * m4/realloc.m4: Likewise.
53726         * m4/st_dm_mode.m4: Likewise.
53727         * m4/stat.m4: Likewise.
53728         * m4/utimbuf.m4: Likewise.
53729         * m4/utimes.m4: Likewise.
53730
53731         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
53732         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
53733         comments in config.h.in are meaningful.
53734
53735         * m4/jm-macros.m4: Require autoconf-2.13 here.
53736
53737         * m4/regex.m4: By default, don't use the included regex.c on systems
53738         with glibc 2.  Suggestion from Uli Drepper.
53739
53740 1999-01-02  Jim Meyering  <meyering@ascend.com>
53741
53742         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
53743
53744 1998-12-18  Jim Meyering  <meyering@ascend.com>
53745
53746         * m4/Makefile.am.in (Makefile.am): Simplify rule.
53747         Based on a suggestion from Lars Hecking.
53748
53749 1998-11-16  Paul Eggert  <eggert@twinsun.com>
53750
53751         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
53752
53753 1998-11-16  Jim Meyering  <meyering@ascend.com>
53754
53755         * m4/lfs.m4: Double-quote the `uname...` expression.
53756
53757 1998-11-14  Jim Meyering  <meyering@ascend.com>
53758
53759         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
53760         * m4/stat.m4: Likewise.
53761
53762 1998-11-03  Jim Meyering  <meyering@ascend.com>
53763
53764         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
53765         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
53766
53767 1998-10-18  Jim Meyering  <meyering@ascend.com>
53768
53769         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
53770
53771 1998-10-17  Jim Meyering  <meyering@ascend.com>
53772
53773         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
53774         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
53775         calls for those previously hard-coded headers.  Instead, take a new
53776         parameter.
53777         (jm_CHECK_DECLARATIONS): Reflect interface change.
53778         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
53779         (jm_CHECK_DECL_LOCALTIME_R): New macro.
53780
53781         * m4/mktime.m4: Test for spring-forward gap before long-running test.
53782
53783 1998-10-14  Jim Meyering  <meyering@ascend.com>
53784
53785         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
53786         instead of "TZ=America/Vancouver".  From Paul Eggert.
53787
53788 1998-10-11  Jim Meyering  <meyering@ascend.com>
53789
53790         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
53791         This adds a test for a recently added compatibility fix for mktime.c.
53792         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
53793
53794 1998-09-27  Jim Meyering  <meyering@ascend.com>
53795
53796         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
53797
53798         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
53799         ../configure.in, including a change from Gordon Matzigkeit to allow
53800         cross-compiling for the Hurd.
53801
53802         * m4/glibc.m4: New file/macro to test for the GNU C Library
53803         versions 1 and 2.  From Gordon Matzigkeit.
53804         Indent.
53805
53806 1998-09-21  Jim Meyering  <meyering@ascend.com>
53807
53808         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
53809
53810 1998-08-18  Paul Eggert  <eggert@twinsun.com>
53811
53812         Port nanosecond-resolution times to UnixWare 2.1.2 and
53813         pedantic Solaris 2.6.
53814
53815         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
53816         AC_STRUCT_ST_MTIM.
53817         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
53818         Generate name of ns member, instead of just 1 or undef.
53819         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
53820
53821 1998-08-15  Jim Meyering  <meyering@ascend.com>
53822
53823         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
53824         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
53825         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
53826         instead of jm_TYPE_SSIZE_T.
53827
53828 1998-08-12  Jim Meyering  <meyering@ascend.com>
53829
53830         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
53831
53832 1998-08-02  Jim Meyering  <meyering@ascend.com>
53833
53834         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
53835         in acconfig.h manually.
53836
53837 1998-07-31  Paul Eggert  <eggert@twinsun.com>
53838
53839         * m4/st_mtim.m4: New file.
53840
53841 1998-07-28  Jim Meyering  <meyering@ascend.com>
53842
53843         * m4/utimes.m4: Undef stat.
53844
53845 1998-07-25  Jim Meyering  <meyering@ascend.com>
53846
53847         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
53848         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
53849
53850 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
53851
53852         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
53853         uid and gid actually remain unchanged.
53854
53855 1998-07-07  Jim Meyering  <meyering@ascend.com>
53856
53857         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
53858
53859 1998-07-04  Jim Meyering  <meyering@ascend.com>
53860
53861         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
53862         to prove that this macro can be used in packages without regex.c.
53863
53864 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
53865
53866         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
53867         is to be used.
53868
53869 1998-07-03  Jim Meyering  <meyering@ascend.com>
53870
53871         * m4/gettext.m4: Add -lintl if it's found to be necessary.
53872
53873         * m4/gettext.m4: New file -- from gettext-0.10.35.
53874         * m4/lcmessage.m4: Likewise.
53875         * m4/progtest.m4: Likewise.
53876
53877         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
53878         * m4/jm-macros.m4: Require the new macro.
53879
53880 1998-06-29  Jim Meyering  <meyering@ascend.com>
53881
53882         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
53883         for the definition of NGROUPS (used in a system header included
53884         by sys/mount.h).
53885
53886 1998-06-28  Jim Meyering  <meyering@ascend.com>
53887
53888         * m4/ls-mntd-fs.m4: New file.
53889         * m4/fstypename.m4: New file.
53890
53891         * m4/jm-macros.m4: Require the new macro.
53892         * m4/jm-glibc-io.m4: New file.
53893
53894 1998-05-19  Jim Meyering  <meyering@ascend.com>
53895
53896         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
53897         * m4/lchown.m4: New file.
53898
53899         * m4/Makefile.am.in: New file.
53900         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
53901
53902 1998-05-14  Jim Meyering  <meyering@ascend.com>
53903
53904         * m4/Makefile.am (EXTRA_DIST): Add them.
53905         * m4/jm-macros.m4: New file.
53906         * m4/utimbuf.m4: New file.
53907
53908 1998-05-12  Jim Meyering  <meyering@ascend.com>
53909
53910         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
53911
53912 1998-05-11  Jim Meyering  <meyering@ascend.com>
53913
53914         * m4/isc-posix.m4: New file.
53915
53916 1998-05-10  Jim Meyering  <meyering@ascend.com>
53917
53918         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
53919
53920 1998-05-09  Jim Meyering  <meyering@ascend.com>
53921
53922         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
53923         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
53924         with automake.
53925
53926         * m4/ssize_t.m4: New file.
53927         * m4/mktime.m4: Remove file -- the new automake has this now.
53928
53929 1998-04-26  Jim Meyering  <meyering@ascend.com>
53930
53931         * m4/assert.m4: New file.
53932         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
53933
53934 1998-04-05  Jim Meyering  <meyering@ascend.com>
53935
53936         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
53937         (jm_PREREQ): Use it here.
53938
53939 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
53940
53941         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
53942         in acconfig.h.
53943
53944 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
53945
53946         * m4/prereq.m4: New file.
53947         * m4/error.m4: New file.
53948         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
53949
53950 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
53951
53952         * m4/getline.m4: Don't set am_cv_func_working_getline before the
53953         cache-check for the same variable -- that defeated the purpose of
53954         the test; the test program was never run.  This was a problem only
53955         on systems with losing getline functions -- HP-UX 10.20 is one.
53956         Reported by Bjorn Helgaas.
53957
53958 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
53959
53960         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
53961
53962 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
53963
53964         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
53965
53966         * m4/const.m4: New file.  Use an initializer in this declaration
53967         typedef int charset[2]; const charset x;
53968         Reported by Bob Glickstein.
53969
53970 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
53971
53972         * m4/chown.m4: Fix reversed types on -1 args to chown.
53973         From Kaveh Ghazi.
53974
53975 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
53976
53977         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
53978         Add lseek and memchr.
53979
53980         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
53981         T.E.Dickey <dickey@clark.net> said that some older preprocessors
53982         have a 20-character limit on names.
53983
53984 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
53985
53986         * m4/inttypes_h.m4: New file.
53987         * m4/uintmax_t.m4: New file.
53988         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
53989
53990
53991         -----
53992
53993         Local Variables:
53994         coding: utf-8
53995         End:
53996
53997         Copyright (C) 1997-2009 Free Software Foundation, Inc.
53998
53999         Copying and distribution of this file, with or without
54000         modification, are permitted provided the copyright notice
54001         and this notice are preserved.